Skip to content

Commit 86cc527

Browse files
committed
2.3.0
1 parent 2d6dbe7 commit 86cc527

13 files changed

Lines changed: 1763 additions & 1260 deletions

dist/css/materialize.colors.min.css

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/materialize.css

Lines changed: 447 additions & 281 deletions
Large diffs are not rendered by default.

dist/css/materialize.min.css

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/materialize.cjs.js

Lines changed: 428 additions & 304 deletions
Large diffs are not rendered by default.

dist/js/materialize.d.ts

Lines changed: 16 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ declare class Autocomplete extends Component<AutocompleteOptions> {
304304
static _keydown: boolean;
305305
selectedValues: AutocompleteData[];
306306
menuItems: AutocompleteData[];
307+
data: AutocompleteData[];
307308
constructor(el: HTMLInputElement, options: Partial<AutocompleteOptions>);
308309
static get defaults(): AutocompleteOptions;
309310
/**
@@ -354,8 +355,9 @@ declare class Autocomplete extends Component<AutocompleteOptions> {
354355
* @param menuItems Items to be available.
355356
* @param selected Selected item ids
356357
* @param open Option to conditionally open dropdown
358+
* @param initial Condition to set initial data
357359
*/
358-
setMenuItems(menuItems: AutocompleteData[], selected?: number[] | string[], open?: boolean): void;
360+
setMenuItems(menuItems: AutocompleteData[], selected?: number[] | string[], open?: boolean, initial?: boolean): void;
359361
/**
360362
* Sets selected values.
361363
* @deprecated @see https://github.com/materializecss/materialize/issues/552
@@ -388,14 +390,11 @@ interface FloatingActionButtonOptions extends BaseOptions$1 {
388390
toolbarEnabled: boolean;
389391
}
390392
declare class FloatingActionButton extends Component<FloatingActionButtonOptions> implements Openable {
393+
#private;
391394
/**
392395
* Describes open/close state of FAB.
393396
*/
394397
isOpen: boolean;
395-
private _anchor;
396-
private _menu;
397-
private _floatingBtns;
398-
private _floatingBtnsReverse;
399398
offsetY: number;
400399
offsetX: number;
401400
btnBottom: number;
@@ -417,12 +416,6 @@ declare class FloatingActionButton extends Component<FloatingActionButtonOptions
417416
static init(els: InitElements<MElement>, options?: Partial<FloatingActionButtonOptions>): FloatingActionButton[];
418417
static getInstance(el: HTMLElement): FloatingActionButton;
419418
destroy(): void;
420-
_setupEventHandlers(): void;
421-
_removeEventHandlers(): void;
422-
_handleFABClick: () => void;
423-
_handleFABKeyPress: (e: any) => void;
424-
_handleFABToggle: () => void;
425-
_handleDocumentClick: (e: MouseEvent) => void;
426419
/**
427420
* Open FAB.
428421
*/
@@ -431,9 +424,6 @@ declare class FloatingActionButton extends Component<FloatingActionButtonOptions
431424
* Close FAB.
432425
*/
433426
close: () => void;
434-
_animateInFAB(): void;
435-
_animateOutFAB(): void;
436-
_animateInToolbar(): void;
437427
}
438428

439429
interface CardsOptions extends BaseOptions$1 {
@@ -443,11 +433,8 @@ interface CardsOptions extends BaseOptions$1 {
443433
outDuration: number;
444434
}
445435
declare class Cards extends Component<CardsOptions> implements Openable {
436+
#private;
446437
isOpen: boolean;
447-
private readonly cardReveal;
448-
private readonly initialOverflow;
449-
private _activators;
450-
private cardRevealClose;
451438
constructor(el: HTMLElement, options: Partial<CardsOptions>);
452439
static get defaults(): CardsOptions;
453440
/**
@@ -467,14 +454,6 @@ declare class Cards extends Component<CardsOptions> implements Openable {
467454
* {@inheritDoc}
468455
*/
469456
destroy(): void;
470-
_setupEventHandlers: () => void;
471-
_removeEventHandlers: () => void;
472-
_handleClickInteraction: () => void;
473-
_handleKeypressEvent: (e: KeyboardEvent) => void;
474-
_handleRevealEvent: () => void;
475-
_setupRevealCloseEventHandlers: () => void;
476-
_removeRevealCloseEventHandlers: () => void;
477-
_handleKeypressCloseEvent: (e: KeyboardEvent) => void;
478457
/**
479458
* Show card reveal.
480459
*/
@@ -618,17 +597,11 @@ declare class Carousel extends Component<CarouselOptions> {
618597
}
619598

620599
interface ChipData {
621-
/**
622-
* Unique identifier.
623-
*/
600+
/** Unique identifier. */
624601
id: number | string;
625-
/**
626-
* Chip text. If not specified, "id" will be used.
627-
*/
602+
/** Chip text. If not specified, "id" will be used. */
628603
text?: string;
629-
/**
630-
* Chip image (URL).
631-
*/
604+
/** Chip image (URL). */
632605
image?: string;
633606
}
634607
interface ChipsOptions extends BaseOptions$1 {
@@ -689,17 +662,13 @@ interface ChipsOptions extends BaseOptions$1 {
689662
onChipDelete: (element: HTMLElement, chip: HTMLElement) => void;
690663
}
691664
declare class Chips extends Component<ChipsOptions> {
665+
#private;
692666
/** Array of the current chips data. */
693667
chipsData: ChipData[];
694668
/** If the chips has autocomplete enabled. */
695669
hasAutocomplete: boolean;
696670
/** Autocomplete instance, if any. */
697671
autocomplete: Autocomplete;
698-
_input: HTMLInputElement;
699-
_label: HTMLLabelElement;
700-
_chips: HTMLElement[];
701-
static _keydown: boolean;
702-
private _selectedChip;
703672
constructor(el: HTMLElement, options: Partial<ChipsOptions>);
704673
static get defaults(): ChipsOptions;
705674
/**
@@ -717,22 +686,6 @@ declare class Chips extends Component<ChipsOptions> {
717686
static getInstance(el: HTMLElement): Chips;
718687
getData(): ChipData[];
719688
destroy(): void;
720-
_setupEventHandlers(): void;
721-
_removeEventHandlers(): void;
722-
_handleChipClick: (e: MouseEvent) => void;
723-
static _handleChipsKeydown(e: KeyboardEvent): void;
724-
static _handleChipsKeyup(): void;
725-
static _handleChipsBlur(e: Event): void;
726-
_handleInputFocus: () => void;
727-
_handleInputBlur: () => void;
728-
_handleInputKeydown: (e: KeyboardEvent) => void;
729-
_renderChip(chip: ChipData): HTMLDivElement;
730-
_renderChips(): void;
731-
_setupAutocomplete(): void;
732-
_setupInput(): void;
733-
_setupLabel(): void;
734-
_setPlaceholder(): void;
735-
_isValidAndNotExist(chip: ChipData): boolean;
736689
/**
737690
* Add chip to input.
738691
* @param chip Chip data object
@@ -1117,6 +1070,10 @@ declare class Datepicker extends Component<DatepickerOptions> {
11171070
* Sets given date as the input value on the given element.
11181071
*/
11191072
setInputValue(el: any, date: any): void;
1073+
/**
1074+
* Display plugin setup.
1075+
*/
1076+
_setupDisplayPlugin(): void;
11201077
/**
11211078
* Renders the date in the modal head section.
11221079
*/
@@ -1140,6 +1097,7 @@ declare class Datepicker extends Component<DatepickerOptions> {
11401097
draw(): void;
11411098
_setupEventHandlers(): void;
11421099
_setupVariables(): void;
1100+
_pickerSetup(): void;
11431101
_removeEventHandlers(): void;
11441102
_handleInputClick: (e: any) => void;
11451103
_handleInputKeydown: (e: KeyboardEvent) => void;
@@ -1875,6 +1833,7 @@ declare class Timepicker extends Component<TimepickerOptions> {
18751833
_insertHTMLIntoDOM(): void;
18761834
_setupVariables(): void;
18771835
_pickerSetup(): void;
1836+
private _setupDisplayPlugin;
18781837
_clockSetup(): void;
18791838
_buildSVGClock(): void;
18801839
_buildHoursView(): void;
@@ -2560,7 +2519,7 @@ declare class Waves {
25602519
static Init(): void;
25612520
}
25622521

2563-
declare const version = "2.2.2";
2522+
declare const version = "2.3.0";
25642523
interface AutoInitOptions {
25652524
Autocomplete?: Partial<AutocompleteOptions>;
25662525
Cards?: Partial<CardsOptions>;

0 commit comments

Comments
 (0)