@materializecss/materialize 2.2.1 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +94 -94
- package/dist/css/materialize.colors.min.css +6 -0
- package/dist/css/materialize.css +9624 -8820
- package/dist/css/materialize.min.css +6 -8
- package/dist/css/materialize.min.css.map +1 -1
- package/dist/js/materialize.cjs.js +8370 -7926
- package/dist/js/materialize.d.ts +2552 -2491
- package/dist/js/materialize.js +8375 -7931
- package/dist/js/materialize.min.js +6 -6
- package/dist/js/materialize.mjs +8342 -7898
- package/package.json +95 -79
- package/sass/{components/_color-variables.scss → _colors.scss} +403 -370
- package/sass/{components/_global.scss → _global.scss} +490 -558
- package/sass/{components/_grid.scss → _grid.scss} +172 -170
- package/sass/{components/_table_of_contents.scss → _table_of_contents.scss} +28 -32
- package/sass/{components/_tapTarget.scss → _tapTarget.scss} +102 -103
- package/sass/{components/_typography.scss → _typography.scss} +59 -62
- package/sass/{components/_variables.scss → _variables.scss} +57 -56
- package/sass/components/forms/_forms.scss +19 -24
- package/sass/materialize.scss +48 -47
- package/sass/mixins.module.scss +168 -0
- package/sass/components/_badges.scss +0 -75
- package/sass/components/_buttons.scss +0 -455
- package/sass/components/_cards.scss +0 -210
- package/sass/components/_carousel.scss +0 -95
- package/sass/components/_chips.scss +0 -148
- package/sass/components/_collapsible.scss +0 -80
- package/sass/components/_collection.scss +0 -115
- package/sass/components/_color-classes.scss +0 -32
- package/sass/components/_datepicker.scss +0 -216
- package/sass/components/_dropdown.scss +0 -78
- package/sass/components/_icons-material-design.scss +0 -6
- package/sass/components/_materialbox.scss +0 -43
- package/sass/components/_modal.scss +0 -68
- package/sass/components/_navbar.scss +0 -231
- package/sass/components/_normalize.scss +0 -349
- package/sass/components/_preloader.scss +0 -418
- package/sass/components/_pulse.scss +0 -35
- package/sass/components/_sidenav.scss +0 -249
- package/sass/components/_slider.scss +0 -121
- package/sass/components/_tabs.scss +0 -155
- package/sass/components/_timepicker.scss +0 -279
- package/sass/components/_toast.scss +0 -65
- package/sass/components/_tooltip.scss +0 -48
- package/sass/components/_transitions.scss +0 -13
- package/sass/components/colors.module.scss +0 -74
- package/sass/components/forms/_checkboxes.scss +0 -200
- package/sass/components/forms/_file-input.scss +0 -43
- package/sass/components/forms/_input-fields.scss +0 -350
- package/sass/components/forms/_radio-buttons.scss +0 -112
- package/sass/components/forms/_range.scss +0 -153
- package/sass/components/forms/_select.scss +0 -195
- package/sass/components/forms/_switches.scss +0 -122
- package/sass/components/theme.module.scss +0 -140
- package/sass/components/tokens.module.scss +0 -272
- package/sass/components/typography.module.scss +0 -150
package/dist/js/materialize.d.ts
CHANGED
|
@@ -1,2491 +1,2552 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Base options for component initialization.
|
|
3
|
-
*/
|
|
4
|
-
interface BaseOptions$1 {
|
|
5
|
-
}
|
|
6
|
-
type MElement = HTMLElement | Element;
|
|
7
|
-
type InitElements<T extends MElement> = NodeListOf<T> | HTMLCollectionOf<T>;
|
|
8
|
-
type ComponentConstructor<T extends Component<O>, O extends BaseOptions$1> = {
|
|
9
|
-
new (el: HTMLElement, options: Partial<O>): T;
|
|
10
|
-
};
|
|
11
|
-
type ComponentType<C extends Component<O>, O extends BaseOptions$1> = ComponentConstructor<C, O> & typeof Component<O>;
|
|
12
|
-
interface I18nOptions {
|
|
13
|
-
cancel: string;
|
|
14
|
-
clear: string;
|
|
15
|
-
done: string;
|
|
16
|
-
}
|
|
17
|
-
interface Openable {
|
|
18
|
-
isOpen: boolean;
|
|
19
|
-
open(): void;
|
|
20
|
-
close(): void;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Base class implementation for Materialize components.
|
|
24
|
-
*/
|
|
25
|
-
declare class Component<O extends BaseOptions$1> {
|
|
26
|
-
/**
|
|
27
|
-
* The DOM element the plugin was initialized with.
|
|
28
|
-
*/
|
|
29
|
-
el: HTMLElement;
|
|
30
|
-
/**
|
|
31
|
-
* The options the instance was initialized with.
|
|
32
|
-
*/
|
|
33
|
-
options: O;
|
|
34
|
-
/**
|
|
35
|
-
* Constructs component instance and set everything up.
|
|
36
|
-
*/
|
|
37
|
-
constructor(el: HTMLElement, options: Partial<O>, classDef: ComponentType<Component<O>, O>);
|
|
38
|
-
/**
|
|
39
|
-
* Initializes component instance.
|
|
40
|
-
* @param el HTML element.
|
|
41
|
-
* @param options Component options.
|
|
42
|
-
* @param classDef Class definition.
|
|
43
|
-
*/
|
|
44
|
-
protected static init<I extends HTMLElement, O extends BaseOptions$1, C extends Component<O>>(el: I, options: O, classDef: ComponentType<C, O>): C;
|
|
45
|
-
/**
|
|
46
|
-
* Initializes component instances.
|
|
47
|
-
* @param els HTML elements.
|
|
48
|
-
* @param options Component options.
|
|
49
|
-
* @param classDef Class definition.
|
|
50
|
-
*/
|
|
51
|
-
protected static init<I extends MElement, O extends BaseOptions$1, C extends Component<O>>(els: InitElements<I>, options: Partial<O>, classDef: ComponentType<C, O>): C[];
|
|
52
|
-
/**
|
|
53
|
-
* Initializes component instances.
|
|
54
|
-
* @param els HTML elements.
|
|
55
|
-
* @param options Component options.
|
|
56
|
-
* @param classDef Class definition.
|
|
57
|
-
*/
|
|
58
|
-
protected static init<I extends MElement, O extends BaseOptions$1, C extends Component<O>>(els: I | InitElements<I>, options: Partial<O>, classDef: ComponentType<C, O>): C | C[];
|
|
59
|
-
/**
|
|
60
|
-
* @returns default options for component instance.
|
|
61
|
-
*/
|
|
62
|
-
static get defaults(): BaseOptions$1;
|
|
63
|
-
/**
|
|
64
|
-
* Retrieves component instance for the given element.
|
|
65
|
-
* @param el Associated HTML Element.
|
|
66
|
-
*/
|
|
67
|
-
static getInstance(el: HTMLElement): Component<BaseOptions$1>;
|
|
68
|
-
/**
|
|
69
|
-
* Destroy plugin instance and teardown.
|
|
70
|
-
*/
|
|
71
|
-
destroy(): void;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
interface DropdownOptions extends BaseOptions$1 {
|
|
75
|
-
/**
|
|
76
|
-
* Defines the edge the menu is aligned to.
|
|
77
|
-
* @default 'left'
|
|
78
|
-
*/
|
|
79
|
-
alignment: 'left' | 'right';
|
|
80
|
-
/**
|
|
81
|
-
* If true, automatically focus dropdown el for keyboard.
|
|
82
|
-
* @default true
|
|
83
|
-
*/
|
|
84
|
-
autoFocus: boolean;
|
|
85
|
-
/**
|
|
86
|
-
* If true, constrainWidth to the size of the dropdown activator.
|
|
87
|
-
* @default true
|
|
88
|
-
*/
|
|
89
|
-
constrainWidth: boolean;
|
|
90
|
-
/**
|
|
91
|
-
* Provide an element that will be the bounding container of the dropdown.
|
|
92
|
-
* @default null
|
|
93
|
-
*/
|
|
94
|
-
container: Element;
|
|
95
|
-
/**
|
|
96
|
-
* If false, the dropdown will show below the trigger.
|
|
97
|
-
* @default true
|
|
98
|
-
*/
|
|
99
|
-
coverTrigger: boolean;
|
|
100
|
-
/**
|
|
101
|
-
* If true, close dropdown on item click.
|
|
102
|
-
* @default true
|
|
103
|
-
*/
|
|
104
|
-
closeOnClick: boolean;
|
|
105
|
-
/**
|
|
106
|
-
* If true, the dropdown will open on hover.
|
|
107
|
-
* @default false
|
|
108
|
-
*/
|
|
109
|
-
hover: boolean;
|
|
110
|
-
/**
|
|
111
|
-
* The duration of the transition enter in milliseconds.
|
|
112
|
-
* @default 150
|
|
113
|
-
*/
|
|
114
|
-
inDuration: number;
|
|
115
|
-
/**
|
|
116
|
-
* The duration of the transition out in milliseconds.
|
|
117
|
-
* @default 250
|
|
118
|
-
*/
|
|
119
|
-
outDuration: number;
|
|
120
|
-
/**
|
|
121
|
-
* Function called when dropdown starts entering.
|
|
122
|
-
* @default null
|
|
123
|
-
*/
|
|
124
|
-
onOpenStart: (el: HTMLElement) => void;
|
|
125
|
-
/**
|
|
126
|
-
* Function called when dropdown finishes entering.
|
|
127
|
-
* @default null
|
|
128
|
-
*/
|
|
129
|
-
onOpenEnd: (el: HTMLElement) => void;
|
|
130
|
-
/**
|
|
131
|
-
* Function called when dropdown starts exiting.
|
|
132
|
-
* @default null
|
|
133
|
-
*/
|
|
134
|
-
onCloseStart: (el: HTMLElement) => void;
|
|
135
|
-
/**
|
|
136
|
-
* Function called when dropdown finishes exiting.
|
|
137
|
-
* @default null
|
|
138
|
-
*/
|
|
139
|
-
onCloseEnd: (el: HTMLElement) => void;
|
|
140
|
-
/**
|
|
141
|
-
* Function called when item is clicked.
|
|
142
|
-
* @default null
|
|
143
|
-
*/
|
|
144
|
-
onItemClick: (el: HTMLLIElement) => void;
|
|
145
|
-
}
|
|
146
|
-
declare class Dropdown extends Component<DropdownOptions> implements Openable {
|
|
147
|
-
static _dropdowns: Dropdown[];
|
|
148
|
-
/** ID of the dropdown element. */
|
|
149
|
-
id: string;
|
|
150
|
-
/** The DOM element of the dropdown. */
|
|
151
|
-
dropdownEl: HTMLElement;
|
|
152
|
-
/** If the dropdown is open. */
|
|
153
|
-
isOpen: boolean;
|
|
154
|
-
/** If the dropdown content is scrollable. */
|
|
155
|
-
isScrollable: boolean;
|
|
156
|
-
isTouchMoving: boolean;
|
|
157
|
-
/** The index of the item focused. */
|
|
158
|
-
focusedIndex: number;
|
|
159
|
-
filterQuery: string[];
|
|
160
|
-
filterTimeout: NodeJS.Timeout | number;
|
|
161
|
-
constructor(el: HTMLElement, options: Partial<DropdownOptions>);
|
|
162
|
-
static get defaults(): DropdownOptions;
|
|
163
|
-
/**
|
|
164
|
-
* Initializes instance of Dropdown.
|
|
165
|
-
* @param el HTML element.
|
|
166
|
-
* @param options Component options.
|
|
167
|
-
*/
|
|
168
|
-
static init(el: HTMLElement, options?: Partial<DropdownOptions>): Dropdown;
|
|
169
|
-
/**
|
|
170
|
-
* Initializes instances of Dropdown.
|
|
171
|
-
* @param els HTML elements.
|
|
172
|
-
* @param options Component options.
|
|
173
|
-
*/
|
|
174
|
-
static init(els: InitElements<MElement>, options?: Partial<DropdownOptions>): Dropdown[];
|
|
175
|
-
static getInstance(el: HTMLElement): Dropdown;
|
|
176
|
-
destroy(): void;
|
|
177
|
-
_setupEventHandlers(): void;
|
|
178
|
-
_removeEventHandlers(): void;
|
|
179
|
-
_setupTemporaryEventHandlers(): void;
|
|
180
|
-
_removeTemporaryEventHandlers(): void;
|
|
181
|
-
_handleClick: (e: MouseEvent) => void;
|
|
182
|
-
_handleMouseEnter: (
|
|
183
|
-
_handleMouseLeave: (e: MouseEvent) => void;
|
|
184
|
-
_handleDocumentClick: (e: MouseEvent) => void;
|
|
185
|
-
_handleTriggerKeydown: (e: KeyboardEvent) => void;
|
|
186
|
-
_handleDocumentTouchmove: (e: TouchEvent) => void;
|
|
187
|
-
_handleDropdownClick: (e: MouseEvent) => void;
|
|
188
|
-
_handleDropdownKeydown: (e: KeyboardEvent) => void;
|
|
189
|
-
_handleWindowResize: () => void;
|
|
190
|
-
_resetFilterQuery: () => void;
|
|
191
|
-
_resetDropdownStyles(): void;
|
|
192
|
-
_resetDropdownPositioningStyles(): void;
|
|
193
|
-
|
|
194
|
-
_makeDropdownFocusable(): void;
|
|
195
|
-
_focusFocusedItem(): void;
|
|
196
|
-
_getDropdownPosition(closestOverflowParent: HTMLElement): {
|
|
197
|
-
x: number;
|
|
198
|
-
y: number;
|
|
199
|
-
verticalAlignment: string;
|
|
200
|
-
horizontalAlignment: "left" | "right";
|
|
201
|
-
height: number;
|
|
202
|
-
width: number;
|
|
203
|
-
};
|
|
204
|
-
_animateIn(): void;
|
|
205
|
-
_animateOut(): void;
|
|
206
|
-
private _getClosestAncestor;
|
|
207
|
-
_placeDropdown(): void;
|
|
208
|
-
/**
|
|
209
|
-
* Open dropdown.
|
|
210
|
-
*/
|
|
211
|
-
open: () => void;
|
|
212
|
-
/**
|
|
213
|
-
* Close dropdown.
|
|
214
|
-
*/
|
|
215
|
-
close: () => void;
|
|
216
|
-
/**
|
|
217
|
-
* While dropdown is open, you can recalculate its dimensions if its contents have changed.
|
|
218
|
-
*/
|
|
219
|
-
recalculateDimensions: () => void;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
interface AutocompleteData {
|
|
223
|
-
/**
|
|
224
|
-
* A primitive value that can be converted to string.
|
|
225
|
-
* If "text" is not provided, it will also be used as "option text" as well
|
|
226
|
-
*/
|
|
227
|
-
id: string | number;
|
|
228
|
-
/**
|
|
229
|
-
* This optional attribute is used as "display value" for the current entry.
|
|
230
|
-
* When provided, it will also be taken into consideration by the standard search function.
|
|
231
|
-
*/
|
|
232
|
-
text?: string;
|
|
233
|
-
/**
|
|
234
|
-
* This optional attribute is used to provide a valid image URL to the current option.
|
|
235
|
-
*/
|
|
236
|
-
image?: string;
|
|
237
|
-
/**
|
|
238
|
-
* Optional attributes which describes the option.
|
|
239
|
-
*/
|
|
240
|
-
description?: string;
|
|
241
|
-
}
|
|
242
|
-
interface AutocompleteOptions extends BaseOptions$1 {
|
|
243
|
-
/**
|
|
244
|
-
* Data object defining autocomplete options with
|
|
245
|
-
* optional icon strings.
|
|
246
|
-
*/
|
|
247
|
-
data: AutocompleteData[];
|
|
248
|
-
/**
|
|
249
|
-
* Flag which can be set if multiple values can be selected. The Result will be an Array.
|
|
250
|
-
* @default false
|
|
251
|
-
*/
|
|
252
|
-
isMultiSelect: boolean;
|
|
253
|
-
/**
|
|
254
|
-
* Callback for when autocompleted.
|
|
255
|
-
*/
|
|
256
|
-
onAutocomplete: (entries: AutocompleteData[]) => void;
|
|
257
|
-
/**
|
|
258
|
-
* Minimum number of characters before autocomplete starts.
|
|
259
|
-
* @default 1
|
|
260
|
-
*/
|
|
261
|
-
minLength: number;
|
|
262
|
-
/**
|
|
263
|
-
* The height of the Menu which can be set via css-property.
|
|
264
|
-
* @default '300px'
|
|
265
|
-
*/
|
|
266
|
-
maxDropDownHeight: string;
|
|
267
|
-
/**
|
|
268
|
-
* Function is called when the input text is altered and data can also be loaded asynchronously.
|
|
269
|
-
* If the results are collected the items in the list can be updated via the function setMenuItems(collectedItems).
|
|
270
|
-
* @param text Searched text.
|
|
271
|
-
* @param autocomplete Current autocomplete instance.
|
|
272
|
-
*/
|
|
273
|
-
onSearch: (text: string, autocomplete: Autocomplete) => void;
|
|
274
|
-
/**
|
|
275
|
-
* If true will render the key from each item directly as HTML.
|
|
276
|
-
* User input MUST be properly sanitized first.
|
|
277
|
-
* @default false
|
|
278
|
-
*/
|
|
279
|
-
allowUnsafeHTML: boolean;
|
|
280
|
-
/**
|
|
281
|
-
* Pass options object to select dropdown initialization.
|
|
282
|
-
* @default {}
|
|
283
|
-
*/
|
|
284
|
-
dropdownOptions: Partial<DropdownOptions>;
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
/**
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
static
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
*
|
|
313
|
-
* @param
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
*
|
|
351
|
-
*/
|
|
352
|
-
|
|
353
|
-
/**
|
|
354
|
-
*
|
|
355
|
-
* @param
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
*
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
/**
|
|
377
|
-
*
|
|
378
|
-
* @default
|
|
379
|
-
*/
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
*
|
|
407
|
-
* @param
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
static
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
interface CardsOptions extends BaseOptions$1 {
|
|
430
|
-
onOpen: (el: Element) => void;
|
|
431
|
-
onClose: (el: Element) => void;
|
|
432
|
-
inDuration: number;
|
|
433
|
-
outDuration: number;
|
|
434
|
-
}
|
|
435
|
-
declare class Cards extends Component<CardsOptions> implements Openable {
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
/**
|
|
480
|
-
*
|
|
481
|
-
* @default
|
|
482
|
-
*/
|
|
483
|
-
|
|
484
|
-
/**
|
|
485
|
-
*
|
|
486
|
-
* @default
|
|
487
|
-
*/
|
|
488
|
-
|
|
489
|
-
/**
|
|
490
|
-
* Set the
|
|
491
|
-
* @default
|
|
492
|
-
*/
|
|
493
|
-
|
|
494
|
-
/**
|
|
495
|
-
*
|
|
496
|
-
* @default
|
|
497
|
-
*/
|
|
498
|
-
|
|
499
|
-
/**
|
|
500
|
-
* Set
|
|
501
|
-
* @default
|
|
502
|
-
*/
|
|
503
|
-
|
|
504
|
-
/**
|
|
505
|
-
*
|
|
506
|
-
* @default false
|
|
507
|
-
*/
|
|
508
|
-
|
|
509
|
-
/**
|
|
510
|
-
*
|
|
511
|
-
* @default
|
|
512
|
-
*/
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
noWrap: boolean;
|
|
519
|
-
/**
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
/**
|
|
592
|
-
* Move carousel to
|
|
593
|
-
* @param n
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
*
|
|
616
|
-
*/
|
|
617
|
-
|
|
618
|
-
/**
|
|
619
|
-
*
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
*
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
*
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
*
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
*
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
*
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
*
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
*
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
*
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
/**
|
|
675
|
-
*
|
|
676
|
-
* @
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
/**
|
|
695
|
-
*
|
|
696
|
-
* @param
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
*
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
*
|
|
751
|
-
* @
|
|
752
|
-
*/
|
|
753
|
-
|
|
754
|
-
/**
|
|
755
|
-
*
|
|
756
|
-
* @
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
/**
|
|
770
|
-
*
|
|
771
|
-
* @
|
|
772
|
-
*/
|
|
773
|
-
|
|
774
|
-
/**
|
|
775
|
-
*
|
|
776
|
-
* @
|
|
777
|
-
*/
|
|
778
|
-
|
|
779
|
-
}
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
*
|
|
793
|
-
*
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
/**
|
|
828
|
-
*
|
|
829
|
-
*
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
*
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
*
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
*
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
*
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
*
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
*
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
*
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
/** Field used for internal calculations DO NOT CHANGE IT */
|
|
957
|
-
|
|
958
|
-
/** Field used for internal calculations DO NOT CHANGE IT */
|
|
959
|
-
|
|
960
|
-
/**
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
/**
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
}
|
|
969
|
-
declare class Datepicker extends Component<DatepickerOptions> {
|
|
970
|
-
el: HTMLInputElement;
|
|
971
|
-
id: string;
|
|
972
|
-
multiple: boolean;
|
|
973
|
-
calendarEl: HTMLElement;
|
|
974
|
-
/** CLEAR button instance. */
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
private
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
*
|
|
1000
|
-
* @param
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
*
|
|
1006
|
-
* @param
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
static
|
|
1010
|
-
static
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
static
|
|
1016
|
-
static
|
|
1017
|
-
static
|
|
1018
|
-
static
|
|
1019
|
-
static
|
|
1020
|
-
static
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
*
|
|
1042
|
-
* @param
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
/**
|
|
1124
|
-
*
|
|
1125
|
-
*
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
*
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
/**
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
private
|
|
1184
|
-
private
|
|
1185
|
-
private
|
|
1186
|
-
private
|
|
1187
|
-
private
|
|
1188
|
-
private
|
|
1189
|
-
private
|
|
1190
|
-
private
|
|
1191
|
-
private
|
|
1192
|
-
private
|
|
1193
|
-
private
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
*
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
static
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
/**
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
*
|
|
1323
|
-
* @param
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
*
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
/**
|
|
1379
|
-
*
|
|
1380
|
-
* @
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
*
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
/**
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
static
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
/**
|
|
1465
|
-
*
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
*
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
*
|
|
1505
|
-
* @
|
|
1506
|
-
*/
|
|
1507
|
-
|
|
1508
|
-
/**
|
|
1509
|
-
*
|
|
1510
|
-
* @
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
*
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
*
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
/**
|
|
1619
|
-
*
|
|
1620
|
-
* @
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
*
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
*
|
|
1652
|
-
*/
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
/**
|
|
1680
|
-
*
|
|
1681
|
-
* @
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
*
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
*
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
*
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
*
|
|
1746
|
-
* @default
|
|
1747
|
-
*/
|
|
1748
|
-
|
|
1749
|
-
/**
|
|
1750
|
-
*
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
*
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
close
|
|
1867
|
-
}
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
*
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
*
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
*
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
*
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
*
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
*
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
*
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
*
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
*
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
*
|
|
2027
|
-
*/
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
/**
|
|
2056
|
-
*
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
static
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
*
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
/**
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
/**
|
|
2197
|
-
*
|
|
2198
|
-
*
|
|
2199
|
-
* @param
|
|
2200
|
-
*/
|
|
2201
|
-
static
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
height: number;
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
/**
|
|
2235
|
-
*
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
*
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
static
|
|
2268
|
-
/**
|
|
2269
|
-
*
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
*
|
|
2276
|
-
* @param
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
/**
|
|
2297
|
-
*
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
*
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
/**
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
*
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
*
|
|
2392
|
-
*/
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
*
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
static
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
*
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
*
|
|
2440
|
-
* @
|
|
2441
|
-
*/
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Base options for component initialization.
|
|
3
|
+
*/
|
|
4
|
+
interface BaseOptions$1 {
|
|
5
|
+
}
|
|
6
|
+
type MElement = HTMLElement | Element;
|
|
7
|
+
type InitElements<T extends MElement> = NodeListOf<T> | HTMLCollectionOf<T>;
|
|
8
|
+
type ComponentConstructor<T extends Component<O>, O extends BaseOptions$1> = {
|
|
9
|
+
new (el: HTMLElement, options: Partial<O>): T;
|
|
10
|
+
};
|
|
11
|
+
type ComponentType<C extends Component<O>, O extends BaseOptions$1> = ComponentConstructor<C, O> & typeof Component<O>;
|
|
12
|
+
interface I18nOptions {
|
|
13
|
+
cancel: string;
|
|
14
|
+
clear: string;
|
|
15
|
+
done: string;
|
|
16
|
+
}
|
|
17
|
+
interface Openable {
|
|
18
|
+
isOpen: boolean;
|
|
19
|
+
open(): void;
|
|
20
|
+
close(): void;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Base class implementation for Materialize components.
|
|
24
|
+
*/
|
|
25
|
+
declare class Component<O extends BaseOptions$1> {
|
|
26
|
+
/**
|
|
27
|
+
* The DOM element the plugin was initialized with.
|
|
28
|
+
*/
|
|
29
|
+
el: HTMLElement;
|
|
30
|
+
/**
|
|
31
|
+
* The options the instance was initialized with.
|
|
32
|
+
*/
|
|
33
|
+
options: O;
|
|
34
|
+
/**
|
|
35
|
+
* Constructs component instance and set everything up.
|
|
36
|
+
*/
|
|
37
|
+
constructor(el: HTMLElement, options: Partial<O>, classDef: ComponentType<Component<O>, O>);
|
|
38
|
+
/**
|
|
39
|
+
* Initializes component instance.
|
|
40
|
+
* @param el HTML element.
|
|
41
|
+
* @param options Component options.
|
|
42
|
+
* @param classDef Class definition.
|
|
43
|
+
*/
|
|
44
|
+
protected static init<I extends HTMLElement, O extends BaseOptions$1, C extends Component<O>>(el: I, options: O, classDef: ComponentType<C, O>): C;
|
|
45
|
+
/**
|
|
46
|
+
* Initializes component instances.
|
|
47
|
+
* @param els HTML elements.
|
|
48
|
+
* @param options Component options.
|
|
49
|
+
* @param classDef Class definition.
|
|
50
|
+
*/
|
|
51
|
+
protected static init<I extends MElement, O extends BaseOptions$1, C extends Component<O>>(els: InitElements<I>, options: Partial<O>, classDef: ComponentType<C, O>): C[];
|
|
52
|
+
/**
|
|
53
|
+
* Initializes component instances.
|
|
54
|
+
* @param els HTML elements.
|
|
55
|
+
* @param options Component options.
|
|
56
|
+
* @param classDef Class definition.
|
|
57
|
+
*/
|
|
58
|
+
protected static init<I extends MElement, O extends BaseOptions$1, C extends Component<O>>(els: I | InitElements<I>, options: Partial<O>, classDef: ComponentType<C, O>): C | C[];
|
|
59
|
+
/**
|
|
60
|
+
* @returns default options for component instance.
|
|
61
|
+
*/
|
|
62
|
+
static get defaults(): BaseOptions$1;
|
|
63
|
+
/**
|
|
64
|
+
* Retrieves component instance for the given element.
|
|
65
|
+
* @param el Associated HTML Element.
|
|
66
|
+
*/
|
|
67
|
+
static getInstance(el: HTMLElement): Component<BaseOptions$1>;
|
|
68
|
+
/**
|
|
69
|
+
* Destroy plugin instance and teardown.
|
|
70
|
+
*/
|
|
71
|
+
destroy(): void;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
interface DropdownOptions extends BaseOptions$1 {
|
|
75
|
+
/**
|
|
76
|
+
* Defines the edge the menu is aligned to.
|
|
77
|
+
* @default 'left'
|
|
78
|
+
*/
|
|
79
|
+
alignment: 'left' | 'right';
|
|
80
|
+
/**
|
|
81
|
+
* If true, automatically focus dropdown el for keyboard.
|
|
82
|
+
* @default true
|
|
83
|
+
*/
|
|
84
|
+
autoFocus: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* If true, constrainWidth to the size of the dropdown activator.
|
|
87
|
+
* @default true
|
|
88
|
+
*/
|
|
89
|
+
constrainWidth: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Provide an element that will be the bounding container of the dropdown.
|
|
92
|
+
* @default null
|
|
93
|
+
*/
|
|
94
|
+
container: Element;
|
|
95
|
+
/**
|
|
96
|
+
* If false, the dropdown will show below the trigger.
|
|
97
|
+
* @default true
|
|
98
|
+
*/
|
|
99
|
+
coverTrigger: boolean;
|
|
100
|
+
/**
|
|
101
|
+
* If true, close dropdown on item click.
|
|
102
|
+
* @default true
|
|
103
|
+
*/
|
|
104
|
+
closeOnClick: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* If true, the dropdown will open on hover.
|
|
107
|
+
* @default false
|
|
108
|
+
*/
|
|
109
|
+
hover: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* The duration of the transition enter in milliseconds.
|
|
112
|
+
* @default 150
|
|
113
|
+
*/
|
|
114
|
+
inDuration: number;
|
|
115
|
+
/**
|
|
116
|
+
* The duration of the transition out in milliseconds.
|
|
117
|
+
* @default 250
|
|
118
|
+
*/
|
|
119
|
+
outDuration: number;
|
|
120
|
+
/**
|
|
121
|
+
* Function called when dropdown starts entering.
|
|
122
|
+
* @default null
|
|
123
|
+
*/
|
|
124
|
+
onOpenStart: (el: HTMLElement) => void;
|
|
125
|
+
/**
|
|
126
|
+
* Function called when dropdown finishes entering.
|
|
127
|
+
* @default null
|
|
128
|
+
*/
|
|
129
|
+
onOpenEnd: (el: HTMLElement) => void;
|
|
130
|
+
/**
|
|
131
|
+
* Function called when dropdown starts exiting.
|
|
132
|
+
* @default null
|
|
133
|
+
*/
|
|
134
|
+
onCloseStart: (el: HTMLElement) => void;
|
|
135
|
+
/**
|
|
136
|
+
* Function called when dropdown finishes exiting.
|
|
137
|
+
* @default null
|
|
138
|
+
*/
|
|
139
|
+
onCloseEnd: (el: HTMLElement) => void;
|
|
140
|
+
/**
|
|
141
|
+
* Function called when item is clicked.
|
|
142
|
+
* @default null
|
|
143
|
+
*/
|
|
144
|
+
onItemClick: (el: HTMLLIElement) => void;
|
|
145
|
+
}
|
|
146
|
+
declare class Dropdown extends Component<DropdownOptions> implements Openable {
|
|
147
|
+
static _dropdowns: Dropdown[];
|
|
148
|
+
/** ID of the dropdown element. */
|
|
149
|
+
id: string;
|
|
150
|
+
/** The DOM element of the dropdown. */
|
|
151
|
+
dropdownEl: HTMLElement;
|
|
152
|
+
/** If the dropdown is open. */
|
|
153
|
+
isOpen: boolean;
|
|
154
|
+
/** If the dropdown content is scrollable. */
|
|
155
|
+
isScrollable: boolean;
|
|
156
|
+
isTouchMoving: boolean;
|
|
157
|
+
/** The index of the item focused. */
|
|
158
|
+
focusedIndex: number;
|
|
159
|
+
filterQuery: string[];
|
|
160
|
+
filterTimeout: NodeJS.Timeout | number;
|
|
161
|
+
constructor(el: HTMLElement, options: Partial<DropdownOptions>);
|
|
162
|
+
static get defaults(): DropdownOptions;
|
|
163
|
+
/**
|
|
164
|
+
* Initializes instance of Dropdown.
|
|
165
|
+
* @param el HTML element.
|
|
166
|
+
* @param options Component options.
|
|
167
|
+
*/
|
|
168
|
+
static init(el: HTMLElement, options?: Partial<DropdownOptions>): Dropdown;
|
|
169
|
+
/**
|
|
170
|
+
* Initializes instances of Dropdown.
|
|
171
|
+
* @param els HTML elements.
|
|
172
|
+
* @param options Component options.
|
|
173
|
+
*/
|
|
174
|
+
static init(els: InitElements<MElement>, options?: Partial<DropdownOptions>): Dropdown[];
|
|
175
|
+
static getInstance(el: HTMLElement): Dropdown;
|
|
176
|
+
destroy(): void;
|
|
177
|
+
_setupEventHandlers(): void;
|
|
178
|
+
_removeEventHandlers(): void;
|
|
179
|
+
_setupTemporaryEventHandlers(): void;
|
|
180
|
+
_removeTemporaryEventHandlers(): void;
|
|
181
|
+
_handleClick: (e: MouseEvent) => void;
|
|
182
|
+
_handleMouseEnter: () => void;
|
|
183
|
+
_handleMouseLeave: (e: MouseEvent) => void;
|
|
184
|
+
_handleDocumentClick: (e: MouseEvent) => void;
|
|
185
|
+
_handleTriggerKeydown: (e: KeyboardEvent) => void;
|
|
186
|
+
_handleDocumentTouchmove: (e: TouchEvent) => void;
|
|
187
|
+
_handleDropdownClick: (e: MouseEvent) => void;
|
|
188
|
+
_handleDropdownKeydown: (e: KeyboardEvent) => void;
|
|
189
|
+
_handleWindowResize: () => void;
|
|
190
|
+
_resetFilterQuery: () => void;
|
|
191
|
+
_resetDropdownStyles(): void;
|
|
192
|
+
_resetDropdownPositioningStyles(): void;
|
|
193
|
+
_moveDropdownToElement(containerEl?: HTMLElement): void;
|
|
194
|
+
_makeDropdownFocusable(): void;
|
|
195
|
+
_focusFocusedItem(): void;
|
|
196
|
+
_getDropdownPosition(closestOverflowParent: HTMLElement): {
|
|
197
|
+
x: number;
|
|
198
|
+
y: number;
|
|
199
|
+
verticalAlignment: string;
|
|
200
|
+
horizontalAlignment: "left" | "right";
|
|
201
|
+
height: number;
|
|
202
|
+
width: number;
|
|
203
|
+
};
|
|
204
|
+
_animateIn(): void;
|
|
205
|
+
_animateOut(): void;
|
|
206
|
+
private _getClosestAncestor;
|
|
207
|
+
_placeDropdown(): void;
|
|
208
|
+
/**
|
|
209
|
+
* Open dropdown.
|
|
210
|
+
*/
|
|
211
|
+
open: () => void;
|
|
212
|
+
/**
|
|
213
|
+
* Close dropdown.
|
|
214
|
+
*/
|
|
215
|
+
close: () => void;
|
|
216
|
+
/**
|
|
217
|
+
* While dropdown is open, you can recalculate its dimensions if its contents have changed.
|
|
218
|
+
*/
|
|
219
|
+
recalculateDimensions: () => void;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
interface AutocompleteData {
|
|
223
|
+
/**
|
|
224
|
+
* A primitive value that can be converted to string.
|
|
225
|
+
* If "text" is not provided, it will also be used as "option text" as well
|
|
226
|
+
*/
|
|
227
|
+
id: string | number;
|
|
228
|
+
/**
|
|
229
|
+
* This optional attribute is used as "display value" for the current entry.
|
|
230
|
+
* When provided, it will also be taken into consideration by the standard search function.
|
|
231
|
+
*/
|
|
232
|
+
text?: string;
|
|
233
|
+
/**
|
|
234
|
+
* This optional attribute is used to provide a valid image URL to the current option.
|
|
235
|
+
*/
|
|
236
|
+
image?: string;
|
|
237
|
+
/**
|
|
238
|
+
* Optional attributes which describes the option.
|
|
239
|
+
*/
|
|
240
|
+
description?: string;
|
|
241
|
+
}
|
|
242
|
+
interface AutocompleteOptions extends BaseOptions$1 {
|
|
243
|
+
/**
|
|
244
|
+
* Data object defining autocomplete options with
|
|
245
|
+
* optional icon strings.
|
|
246
|
+
*/
|
|
247
|
+
data: AutocompleteData[];
|
|
248
|
+
/**
|
|
249
|
+
* Flag which can be set if multiple values can be selected. The Result will be an Array.
|
|
250
|
+
* @default false
|
|
251
|
+
*/
|
|
252
|
+
isMultiSelect: boolean;
|
|
253
|
+
/**
|
|
254
|
+
* Callback for when autocompleted.
|
|
255
|
+
*/
|
|
256
|
+
onAutocomplete: (entries: AutocompleteData[]) => void;
|
|
257
|
+
/**
|
|
258
|
+
* Minimum number of characters before autocomplete starts.
|
|
259
|
+
* @default 1
|
|
260
|
+
*/
|
|
261
|
+
minLength: number;
|
|
262
|
+
/**
|
|
263
|
+
* The height of the Menu which can be set via css-property.
|
|
264
|
+
* @default '300px'
|
|
265
|
+
*/
|
|
266
|
+
maxDropDownHeight: string;
|
|
267
|
+
/**
|
|
268
|
+
* Function is called when the input text is altered and data can also be loaded asynchronously.
|
|
269
|
+
* If the results are collected the items in the list can be updated via the function setMenuItems(collectedItems).
|
|
270
|
+
* @param text Searched text.
|
|
271
|
+
* @param autocomplete Current autocomplete instance.
|
|
272
|
+
*/
|
|
273
|
+
onSearch: (text: string, autocomplete: Autocomplete) => void;
|
|
274
|
+
/**
|
|
275
|
+
* If true will render the key from each item directly as HTML.
|
|
276
|
+
* User input MUST be properly sanitized first.
|
|
277
|
+
* @default false
|
|
278
|
+
*/
|
|
279
|
+
allowUnsafeHTML: boolean;
|
|
280
|
+
/**
|
|
281
|
+
* Pass options object to select dropdown initialization.
|
|
282
|
+
* @default {}
|
|
283
|
+
*/
|
|
284
|
+
dropdownOptions: Partial<DropdownOptions>;
|
|
285
|
+
/**
|
|
286
|
+
* Predefined selected values
|
|
287
|
+
*/
|
|
288
|
+
selected: number[] | string[];
|
|
289
|
+
}
|
|
290
|
+
declare class Autocomplete extends Component<AutocompleteOptions> {
|
|
291
|
+
el: HTMLInputElement;
|
|
292
|
+
/** If the autocomplete is open. */
|
|
293
|
+
isOpen: boolean;
|
|
294
|
+
/** Number of matching autocomplete options. */
|
|
295
|
+
count: number;
|
|
296
|
+
/** Index of the current selected option. */
|
|
297
|
+
activeIndex: number;
|
|
298
|
+
private oldVal;
|
|
299
|
+
private $active;
|
|
300
|
+
private _mousedown;
|
|
301
|
+
container: HTMLElement;
|
|
302
|
+
/** Instance of the dropdown plugin for this autocomplete. */
|
|
303
|
+
dropdown: Dropdown;
|
|
304
|
+
static _keydown: boolean;
|
|
305
|
+
selectedValues: AutocompleteData[];
|
|
306
|
+
menuItems: AutocompleteData[];
|
|
307
|
+
data: AutocompleteData[];
|
|
308
|
+
constructor(el: HTMLInputElement, options: Partial<AutocompleteOptions>);
|
|
309
|
+
static get defaults(): AutocompleteOptions;
|
|
310
|
+
/**
|
|
311
|
+
* Initializes instance of Autocomplete.
|
|
312
|
+
* @param el HTML element.
|
|
313
|
+
* @param options Component options.
|
|
314
|
+
*/
|
|
315
|
+
static init(el: HTMLInputElement, options?: Partial<AutocompleteOptions>): Autocomplete;
|
|
316
|
+
/**
|
|
317
|
+
* Initializes instances of Autocomplete.
|
|
318
|
+
* @param els HTML elements.
|
|
319
|
+
* @param options Component options.
|
|
320
|
+
*/
|
|
321
|
+
static init(els: InitElements<HTMLInputElement | MElement>, options?: Partial<AutocompleteOptions>): Autocomplete[];
|
|
322
|
+
static getInstance(el: HTMLElement): Autocomplete;
|
|
323
|
+
destroy(): void;
|
|
324
|
+
_setupEventHandlers(): void;
|
|
325
|
+
_removeEventHandlers(): void;
|
|
326
|
+
_setupDropdown(): void;
|
|
327
|
+
_removeDropdown(): void;
|
|
328
|
+
_handleInputBlur: () => void;
|
|
329
|
+
_handleInputKeyup: (e: KeyboardEvent) => void;
|
|
330
|
+
_handleInputFocus: () => void;
|
|
331
|
+
_inputChangeDetection: (value: string) => void;
|
|
332
|
+
_handleInputKeydown: (e: KeyboardEvent) => void;
|
|
333
|
+
_handleInputClick: () => void;
|
|
334
|
+
_handleContainerMousedownAndTouchstart: () => void;
|
|
335
|
+
_handleContainerMouseupAndTouchend: () => void;
|
|
336
|
+
_resetCurrentElementPosition(): void;
|
|
337
|
+
_resetAutocomplete(): void;
|
|
338
|
+
_highlightPartialText(input: string, label: string): string[];
|
|
339
|
+
_createDropdownItem(entry: AutocompleteData): HTMLLIElement;
|
|
340
|
+
_renderDropdown(): void;
|
|
341
|
+
_setStatusLoading(): void;
|
|
342
|
+
_updateSelectedInfo(): void;
|
|
343
|
+
_refreshInputText(): void;
|
|
344
|
+
_triggerChanged(): void;
|
|
345
|
+
/**
|
|
346
|
+
* Show autocomplete.
|
|
347
|
+
*/
|
|
348
|
+
open: () => void;
|
|
349
|
+
/**
|
|
350
|
+
* Hide autocomplete.
|
|
351
|
+
*/
|
|
352
|
+
close: () => void;
|
|
353
|
+
/**
|
|
354
|
+
* Updates the visible or selectable items shown in the menu.
|
|
355
|
+
* @param menuItems Items to be available.
|
|
356
|
+
* @param selected Selected item ids
|
|
357
|
+
* @param open Option to conditionally open dropdown
|
|
358
|
+
* @param initial Condition to set initial data
|
|
359
|
+
*/
|
|
360
|
+
setMenuItems(menuItems: AutocompleteData[], selected?: number[] | string[], open?: boolean, initial?: boolean): void;
|
|
361
|
+
/**
|
|
362
|
+
* Sets selected values.
|
|
363
|
+
* @deprecated @see https://github.com/materializecss/materialize/issues/552
|
|
364
|
+
* @param entries
|
|
365
|
+
*/
|
|
366
|
+
setValues(entries: AutocompleteData[]): void;
|
|
367
|
+
/**
|
|
368
|
+
* Select a specific autocomplete option via id-property.
|
|
369
|
+
* @param id The id of a data-entry.
|
|
370
|
+
*/
|
|
371
|
+
selectOption(id: number | string): void;
|
|
372
|
+
selectOptions(ids: []): void;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
interface FloatingActionButtonOptions extends BaseOptions$1 {
|
|
376
|
+
/**
|
|
377
|
+
* Direction FAB menu opens.
|
|
378
|
+
* @default "top"
|
|
379
|
+
*/
|
|
380
|
+
direction: 'top' | 'right' | 'bottom' | 'left';
|
|
381
|
+
/**
|
|
382
|
+
* true: FAB menu appears on hover, false: FAB menu appears on click.
|
|
383
|
+
* @default true
|
|
384
|
+
*/
|
|
385
|
+
hoverEnabled: boolean;
|
|
386
|
+
/**
|
|
387
|
+
* Enable transit the FAB into a toolbar on click.
|
|
388
|
+
* @default false
|
|
389
|
+
*/
|
|
390
|
+
toolbarEnabled: boolean;
|
|
391
|
+
}
|
|
392
|
+
declare class FloatingActionButton extends Component<FloatingActionButtonOptions> implements Openable {
|
|
393
|
+
#private;
|
|
394
|
+
/**
|
|
395
|
+
* Describes open/close state of FAB.
|
|
396
|
+
*/
|
|
397
|
+
isOpen: boolean;
|
|
398
|
+
offsetY: number;
|
|
399
|
+
offsetX: number;
|
|
400
|
+
btnBottom: number;
|
|
401
|
+
btnLeft: number;
|
|
402
|
+
btnWidth: number;
|
|
403
|
+
constructor(el: HTMLElement, options: Partial<FloatingActionButtonOptions>);
|
|
404
|
+
static get defaults(): FloatingActionButtonOptions;
|
|
405
|
+
/**
|
|
406
|
+
* Initializes instance of FloatingActionButton.
|
|
407
|
+
* @param el HTML element.
|
|
408
|
+
* @param options Component options.
|
|
409
|
+
*/
|
|
410
|
+
static init(el: HTMLElement, options?: Partial<FloatingActionButtonOptions>): FloatingActionButton;
|
|
411
|
+
/**
|
|
412
|
+
* Initializes instances of FloatingActionButton.
|
|
413
|
+
* @param els HTML elements.
|
|
414
|
+
* @param options Component options.
|
|
415
|
+
*/
|
|
416
|
+
static init(els: InitElements<MElement>, options?: Partial<FloatingActionButtonOptions>): FloatingActionButton[];
|
|
417
|
+
static getInstance(el: HTMLElement): FloatingActionButton;
|
|
418
|
+
destroy(): void;
|
|
419
|
+
/**
|
|
420
|
+
* Open FAB.
|
|
421
|
+
*/
|
|
422
|
+
open: () => void;
|
|
423
|
+
/**
|
|
424
|
+
* Close FAB.
|
|
425
|
+
*/
|
|
426
|
+
close: () => void;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
interface CardsOptions extends BaseOptions$1 {
|
|
430
|
+
onOpen: (el: Element) => void;
|
|
431
|
+
onClose: (el: Element) => void;
|
|
432
|
+
inDuration: number;
|
|
433
|
+
outDuration: number;
|
|
434
|
+
}
|
|
435
|
+
declare class Cards extends Component<CardsOptions> implements Openable {
|
|
436
|
+
#private;
|
|
437
|
+
isOpen: boolean;
|
|
438
|
+
constructor(el: HTMLElement, options: Partial<CardsOptions>);
|
|
439
|
+
static get defaults(): CardsOptions;
|
|
440
|
+
/**
|
|
441
|
+
* Initializes instance of Cards.
|
|
442
|
+
* @param el HTML element.
|
|
443
|
+
* @param options Component options.
|
|
444
|
+
*/
|
|
445
|
+
static init(el: HTMLElement, options?: Partial<CardsOptions>): Cards;
|
|
446
|
+
/**
|
|
447
|
+
* Initializes instances of Cards.
|
|
448
|
+
* @param els HTML elements.
|
|
449
|
+
* @param options Component options.
|
|
450
|
+
*/
|
|
451
|
+
static init(els: InitElements<MElement>, options?: Partial<CardsOptions>): Cards[];
|
|
452
|
+
static getInstance(el: HTMLElement): Cards;
|
|
453
|
+
/**
|
|
454
|
+
* {@inheritDoc}
|
|
455
|
+
*/
|
|
456
|
+
destroy(): void;
|
|
457
|
+
/**
|
|
458
|
+
* Show card reveal.
|
|
459
|
+
*/
|
|
460
|
+
open: () => void;
|
|
461
|
+
/**
|
|
462
|
+
* Hide card reveal.
|
|
463
|
+
*/
|
|
464
|
+
close: () => void;
|
|
465
|
+
static Init(): void;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
interface CarouselOptions extends BaseOptions$1 {
|
|
469
|
+
/**
|
|
470
|
+
* Transition duration in milliseconds.
|
|
471
|
+
* @default 200
|
|
472
|
+
*/
|
|
473
|
+
duration: number;
|
|
474
|
+
/**
|
|
475
|
+
* Perspective zoom. If 0, all items are the same size.
|
|
476
|
+
* @default -100
|
|
477
|
+
*/
|
|
478
|
+
dist: number;
|
|
479
|
+
/**
|
|
480
|
+
* Set the spacing of the center item.
|
|
481
|
+
* @default 0
|
|
482
|
+
*/
|
|
483
|
+
shift: number;
|
|
484
|
+
/**
|
|
485
|
+
* Set the padding between non center items.
|
|
486
|
+
* @default 0
|
|
487
|
+
*/
|
|
488
|
+
padding: number;
|
|
489
|
+
/**
|
|
490
|
+
* Set the number of visible items.
|
|
491
|
+
* @default 5
|
|
492
|
+
*/
|
|
493
|
+
numVisible: number;
|
|
494
|
+
/**
|
|
495
|
+
* Make the carousel a full width slider like the second example.
|
|
496
|
+
* @default false
|
|
497
|
+
*/
|
|
498
|
+
fullWidth: boolean;
|
|
499
|
+
/**
|
|
500
|
+
* Set to true to show indicators.
|
|
501
|
+
* @default false
|
|
502
|
+
*/
|
|
503
|
+
indicators: boolean;
|
|
504
|
+
/**
|
|
505
|
+
* Don't wrap around and cycle through items.
|
|
506
|
+
* @default false
|
|
507
|
+
*/
|
|
508
|
+
noWrap: boolean;
|
|
509
|
+
/**
|
|
510
|
+
* Callback for when a new slide is cycled to.
|
|
511
|
+
* @default null
|
|
512
|
+
*/
|
|
513
|
+
onCycleTo: (current: Element, dragged: boolean) => void;
|
|
514
|
+
}
|
|
515
|
+
declare class Carousel extends Component<CarouselOptions> {
|
|
516
|
+
hasMultipleSlides: boolean;
|
|
517
|
+
showIndicators: boolean;
|
|
518
|
+
noWrap: boolean;
|
|
519
|
+
/** If the carousel is being clicked or tapped. */
|
|
520
|
+
pressed: boolean;
|
|
521
|
+
/** If the carousel is currently being dragged. */
|
|
522
|
+
dragged: boolean;
|
|
523
|
+
offset: number;
|
|
524
|
+
target: number;
|
|
525
|
+
images: HTMLElement[];
|
|
526
|
+
itemWidth: number;
|
|
527
|
+
itemHeight: number;
|
|
528
|
+
dim: number;
|
|
529
|
+
_indicators: HTMLUListElement;
|
|
530
|
+
count: number;
|
|
531
|
+
xform: string;
|
|
532
|
+
verticalDragged: boolean;
|
|
533
|
+
reference: number;
|
|
534
|
+
referenceY: number;
|
|
535
|
+
velocity: number;
|
|
536
|
+
frame: number;
|
|
537
|
+
timestamp: number;
|
|
538
|
+
ticker: string | number | NodeJS.Timeout;
|
|
539
|
+
amplitude: number;
|
|
540
|
+
/** The index of the center carousel item. */
|
|
541
|
+
center: number;
|
|
542
|
+
imageHeight: number;
|
|
543
|
+
scrollingTimeout: number | NodeJS.Timeout;
|
|
544
|
+
oneTimeCallback: (current: Element, dragged: boolean) => void | null;
|
|
545
|
+
constructor(el: HTMLElement, options: Partial<CarouselOptions>);
|
|
546
|
+
static get defaults(): CarouselOptions;
|
|
547
|
+
/**
|
|
548
|
+
* Initializes instance of Carousel.
|
|
549
|
+
* @param el HTML element.
|
|
550
|
+
* @param options Component options.
|
|
551
|
+
*/
|
|
552
|
+
static init(el: HTMLElement, options?: Partial<CarouselOptions>): Carousel;
|
|
553
|
+
/**
|
|
554
|
+
* Initializes instances of Carousel.
|
|
555
|
+
* @param els HTML elements.
|
|
556
|
+
* @param options Component options.
|
|
557
|
+
*/
|
|
558
|
+
static init(els: InitElements<MElement>, options?: Partial<CarouselOptions>): Carousel[];
|
|
559
|
+
static getInstance(el: HTMLElement): Carousel;
|
|
560
|
+
destroy(): void;
|
|
561
|
+
_setupEventHandlers(): void;
|
|
562
|
+
_removeEventHandlers(): void;
|
|
563
|
+
_handleThrottledResize: () => void;
|
|
564
|
+
_handleCarouselTap: (e: MouseEvent | TouchEvent) => void;
|
|
565
|
+
_handleCarouselDrag: (e: MouseEvent | TouchEvent) => boolean;
|
|
566
|
+
_handleCarouselRelease: (e: MouseEvent | TouchEvent) => boolean;
|
|
567
|
+
_handleCarouselClick: (e: MouseEvent | TouchEvent) => boolean;
|
|
568
|
+
_handleIndicatorClick: (e: Event) => void;
|
|
569
|
+
_handleIndicatorKeyPress: (e: KeyboardEvent) => void;
|
|
570
|
+
_handleIndicatorInteraction: (e: Event) => void;
|
|
571
|
+
_handleResize: () => void;
|
|
572
|
+
_setCarouselHeight(imageOnly?: boolean): void;
|
|
573
|
+
_xpos(e: MouseEvent | TouchEvent): number;
|
|
574
|
+
_ypos(e: MouseEvent | TouchEvent): number;
|
|
575
|
+
_wrap(x: number): any;
|
|
576
|
+
_track: () => void;
|
|
577
|
+
_autoScroll: () => void;
|
|
578
|
+
_scroll(x?: number): void;
|
|
579
|
+
_updateItemStyle(el: HTMLElement, opacity: number, zIndex: number, transform: string): void;
|
|
580
|
+
_cycleTo(n: number, callback?: CarouselOptions['onCycleTo']): void;
|
|
581
|
+
/**
|
|
582
|
+
* Move carousel to next slide or go forward a given amount of slides.
|
|
583
|
+
* @param n How many times the carousel slides.
|
|
584
|
+
*/
|
|
585
|
+
next(n?: number): void;
|
|
586
|
+
/**
|
|
587
|
+
* Move carousel to previous slide or go back a given amount of slides.
|
|
588
|
+
* @param n How many times the carousel slides.
|
|
589
|
+
*/
|
|
590
|
+
prev(n?: number): void;
|
|
591
|
+
/**
|
|
592
|
+
* Move carousel to nth slide.
|
|
593
|
+
* @param n Index of slide.
|
|
594
|
+
* @param callback "onCycleTo" optional callback.
|
|
595
|
+
*/
|
|
596
|
+
set(n: number, callback?: CarouselOptions['onCycleTo']): void;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
interface ChipData {
|
|
600
|
+
/** Unique identifier. */
|
|
601
|
+
id: number | string;
|
|
602
|
+
/** Chip text. If not specified, "id" will be used. */
|
|
603
|
+
text?: string;
|
|
604
|
+
/** Chip image (URL). */
|
|
605
|
+
image?: string;
|
|
606
|
+
}
|
|
607
|
+
interface ChipsOptions extends BaseOptions$1 {
|
|
608
|
+
/**
|
|
609
|
+
* Set the chip data.
|
|
610
|
+
* @default []
|
|
611
|
+
*/
|
|
612
|
+
data: ChipData[];
|
|
613
|
+
/**
|
|
614
|
+
* Set first placeholder when there are no tags.
|
|
615
|
+
* @default ""
|
|
616
|
+
*/
|
|
617
|
+
placeholder: string;
|
|
618
|
+
/**
|
|
619
|
+
* Set second placeholder when adding additional tags.
|
|
620
|
+
* @default ""
|
|
621
|
+
*/
|
|
622
|
+
secondaryPlaceholder: string;
|
|
623
|
+
/**
|
|
624
|
+
* Set autocomplete options.
|
|
625
|
+
* @default {}
|
|
626
|
+
*/
|
|
627
|
+
autocompleteOptions: Partial<AutocompleteOptions>;
|
|
628
|
+
/**
|
|
629
|
+
* Toggles abililty to add custom value not in autocomplete list.
|
|
630
|
+
* @default false
|
|
631
|
+
*/
|
|
632
|
+
autocompleteOnly: boolean;
|
|
633
|
+
/**
|
|
634
|
+
* Set chips limit.
|
|
635
|
+
* @default Infinity
|
|
636
|
+
*/
|
|
637
|
+
limit: number;
|
|
638
|
+
/**
|
|
639
|
+
* Specifies class to be used in "close" button (useful when working with Material Symbols icon set).
|
|
640
|
+
* @default 'material-icons'
|
|
641
|
+
*/
|
|
642
|
+
closeIconClass: string;
|
|
643
|
+
/**
|
|
644
|
+
* Specifies option to render user input field
|
|
645
|
+
* @default false;
|
|
646
|
+
*/
|
|
647
|
+
allowUserInput: boolean;
|
|
648
|
+
/**
|
|
649
|
+
* Callback for chip add.
|
|
650
|
+
* @default null
|
|
651
|
+
*/
|
|
652
|
+
onChipAdd: (element: HTMLElement, chip: HTMLElement) => void;
|
|
653
|
+
/**
|
|
654
|
+
* Callback for chip select.
|
|
655
|
+
* @default null
|
|
656
|
+
*/
|
|
657
|
+
onChipSelect: (element: HTMLElement, chip: HTMLElement) => void;
|
|
658
|
+
/**
|
|
659
|
+
* Callback for chip delete.
|
|
660
|
+
* @default null
|
|
661
|
+
*/
|
|
662
|
+
onChipDelete: (element: HTMLElement, chip: HTMLElement) => void;
|
|
663
|
+
}
|
|
664
|
+
declare class Chips extends Component<ChipsOptions> {
|
|
665
|
+
#private;
|
|
666
|
+
/** Array of the current chips data. */
|
|
667
|
+
chipsData: ChipData[];
|
|
668
|
+
/** If the chips has autocomplete enabled. */
|
|
669
|
+
hasAutocomplete: boolean;
|
|
670
|
+
/** Autocomplete instance, if any. */
|
|
671
|
+
autocomplete: Autocomplete;
|
|
672
|
+
constructor(el: HTMLElement, options: Partial<ChipsOptions>);
|
|
673
|
+
static get defaults(): ChipsOptions;
|
|
674
|
+
/**
|
|
675
|
+
* Initializes instance of Chips.
|
|
676
|
+
* @param el HTML element.
|
|
677
|
+
* @param options Component options.
|
|
678
|
+
*/
|
|
679
|
+
static init(el: HTMLElement, options?: Partial<ChipsOptions>): Chips;
|
|
680
|
+
/**
|
|
681
|
+
* Initializes instances of Chips.
|
|
682
|
+
* @param els HTML elements.
|
|
683
|
+
* @param options Component options.
|
|
684
|
+
*/
|
|
685
|
+
static init(els: InitElements<MElement>, options?: Partial<ChipsOptions>): Chips[];
|
|
686
|
+
static getInstance(el: HTMLElement): Chips;
|
|
687
|
+
getData(): ChipData[];
|
|
688
|
+
destroy(): void;
|
|
689
|
+
/**
|
|
690
|
+
* Add chip to input.
|
|
691
|
+
* @param chip Chip data object
|
|
692
|
+
*/
|
|
693
|
+
addChip(chip: ChipData): void;
|
|
694
|
+
/**
|
|
695
|
+
* Delete nth chip.
|
|
696
|
+
* @param chipIndex Index of chip
|
|
697
|
+
*/
|
|
698
|
+
deleteChip(chipIndex: number): void;
|
|
699
|
+
/**
|
|
700
|
+
* Select nth chip.
|
|
701
|
+
* @param chipIndex Index of chip
|
|
702
|
+
*/
|
|
703
|
+
selectChip(chipIndex: number): void;
|
|
704
|
+
static Init(): void;
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
interface CollapsibleOptions extends BaseOptions$1 {
|
|
708
|
+
/**
|
|
709
|
+
* If accordion versus collapsible.
|
|
710
|
+
* @default true
|
|
711
|
+
*/
|
|
712
|
+
accordion: boolean;
|
|
713
|
+
/**
|
|
714
|
+
* Transition in duration in milliseconds.
|
|
715
|
+
* @default 300
|
|
716
|
+
*/
|
|
717
|
+
inDuration: number;
|
|
718
|
+
/**
|
|
719
|
+
* Transition out duration in milliseconds.
|
|
720
|
+
* @default 300
|
|
721
|
+
*/
|
|
722
|
+
outDuration: number;
|
|
723
|
+
/**
|
|
724
|
+
* Callback function called before collapsible is opened.
|
|
725
|
+
* @default null
|
|
726
|
+
*/
|
|
727
|
+
onOpenStart: (el: Element) => void;
|
|
728
|
+
/**
|
|
729
|
+
* Callback function called after collapsible is opened.
|
|
730
|
+
* @default null
|
|
731
|
+
*/
|
|
732
|
+
onOpenEnd: (el: Element) => void;
|
|
733
|
+
/**
|
|
734
|
+
* Callback function called before collapsible is closed.
|
|
735
|
+
* @default null
|
|
736
|
+
*/
|
|
737
|
+
onCloseStart: (el: Element) => void;
|
|
738
|
+
/**
|
|
739
|
+
* Callback function called after collapsible is closed.
|
|
740
|
+
* @default null
|
|
741
|
+
*/
|
|
742
|
+
onCloseEnd: (el: Element) => void;
|
|
743
|
+
}
|
|
744
|
+
declare class Collapsible extends Component<CollapsibleOptions> {
|
|
745
|
+
private _headers;
|
|
746
|
+
constructor(el: HTMLElement, options: Partial<CollapsibleOptions>);
|
|
747
|
+
static get defaults(): CollapsibleOptions;
|
|
748
|
+
/**
|
|
749
|
+
* Initializes instance of Collapsible.
|
|
750
|
+
* @param el HTML element.
|
|
751
|
+
* @param options Component options.
|
|
752
|
+
*/
|
|
753
|
+
static init(el: HTMLElement, options?: Partial<CollapsibleOptions>): Collapsible;
|
|
754
|
+
/**
|
|
755
|
+
* Initializes instances of Collapsible.
|
|
756
|
+
* @param els HTML elements.
|
|
757
|
+
* @param options Component options.
|
|
758
|
+
*/
|
|
759
|
+
static init(els: InitElements<MElement>, options?: Partial<CollapsibleOptions>): Collapsible[];
|
|
760
|
+
static getInstance(el: HTMLElement): Collapsible;
|
|
761
|
+
destroy(): void;
|
|
762
|
+
_setupEventHandlers(): void;
|
|
763
|
+
_removeEventHandlers(): void;
|
|
764
|
+
_handleCollapsibleClick: (e: MouseEvent | KeyboardEvent) => void;
|
|
765
|
+
_handleCollapsibleKeydown: (e: KeyboardEvent) => void;
|
|
766
|
+
private _setExpanded;
|
|
767
|
+
_animateIn(index: number): void;
|
|
768
|
+
_animateOut(index: number): void;
|
|
769
|
+
/**
|
|
770
|
+
* Open collapsible section.
|
|
771
|
+
* @param n Nth section to open.
|
|
772
|
+
*/
|
|
773
|
+
open: (index: number) => void;
|
|
774
|
+
/**
|
|
775
|
+
* Close collapsible section.
|
|
776
|
+
* @param n Nth section to close.
|
|
777
|
+
*/
|
|
778
|
+
close: (index: number) => void;
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
interface DateI18nOptions extends I18nOptions {
|
|
782
|
+
previousMonth: string;
|
|
783
|
+
nextMonth: string;
|
|
784
|
+
months: string[];
|
|
785
|
+
monthsShort: string[];
|
|
786
|
+
weekdays: string[];
|
|
787
|
+
weekdaysShort: string[];
|
|
788
|
+
weekdaysAbbrev: string[];
|
|
789
|
+
}
|
|
790
|
+
interface DatepickerOptions extends BaseOptions$1 {
|
|
791
|
+
/**
|
|
792
|
+
* The date output format for the input field value
|
|
793
|
+
* or a function taking the date and outputting the
|
|
794
|
+
* formatted date string.
|
|
795
|
+
* @default 'mmm dd, yyyy'
|
|
796
|
+
*/
|
|
797
|
+
format: string | ((d: Date) => string);
|
|
798
|
+
/**
|
|
799
|
+
* Used to create date object from current input string.
|
|
800
|
+
* @default null
|
|
801
|
+
*/
|
|
802
|
+
parse: ((value: string, format: string) => Date) | null;
|
|
803
|
+
/**
|
|
804
|
+
* The initial condition if the datepicker is based on date range.
|
|
805
|
+
* @default false
|
|
806
|
+
*/
|
|
807
|
+
isDateRange: boolean;
|
|
808
|
+
/**
|
|
809
|
+
* The selector of the user specified date range end element
|
|
810
|
+
*/
|
|
811
|
+
dateRangeEndEl: string | null;
|
|
812
|
+
/**
|
|
813
|
+
* The initial condition if the datepicker is based on multiple date selection.
|
|
814
|
+
* @default false
|
|
815
|
+
*/
|
|
816
|
+
isMultipleSelection: boolean;
|
|
817
|
+
/**
|
|
818
|
+
* The initial date to view when first opened.
|
|
819
|
+
* @default null
|
|
820
|
+
*/
|
|
821
|
+
defaultDate: Date | null;
|
|
822
|
+
/**
|
|
823
|
+
* The initial end date to view when first opened.
|
|
824
|
+
* @default null
|
|
825
|
+
*/
|
|
826
|
+
defaultEndDate: Date | null;
|
|
827
|
+
/**
|
|
828
|
+
* Make the `defaultDate` the initial selected value.
|
|
829
|
+
* @default false
|
|
830
|
+
*/
|
|
831
|
+
setDefaultDate: boolean;
|
|
832
|
+
/**
|
|
833
|
+
* Make the `defaultEndDate` the initial selected value.
|
|
834
|
+
* @default false
|
|
835
|
+
*/
|
|
836
|
+
setDefaultEndDate: boolean;
|
|
837
|
+
/**
|
|
838
|
+
* Prevent selection of any date on the weekend.
|
|
839
|
+
* @default false
|
|
840
|
+
*/
|
|
841
|
+
disableWeekends: boolean;
|
|
842
|
+
/**
|
|
843
|
+
* Custom function to disable certain days.
|
|
844
|
+
* @default null
|
|
845
|
+
*/
|
|
846
|
+
disableDayFn: ((day: Date) => boolean) | null;
|
|
847
|
+
/**
|
|
848
|
+
* First day of week (0: Sunday, 1: Monday etc).
|
|
849
|
+
* @default 0
|
|
850
|
+
*/
|
|
851
|
+
firstDay: number;
|
|
852
|
+
/**
|
|
853
|
+
* The earliest date that can be selected.
|
|
854
|
+
* @default null
|
|
855
|
+
*/
|
|
856
|
+
minDate: Date | null;
|
|
857
|
+
/**
|
|
858
|
+
* The latest date that can be selected.
|
|
859
|
+
* @default null
|
|
860
|
+
*/
|
|
861
|
+
maxDate: Date | null;
|
|
862
|
+
/**
|
|
863
|
+
* Number of years either side, or array of upper/lower range.
|
|
864
|
+
* @default 10
|
|
865
|
+
*/
|
|
866
|
+
yearRange: number | number[];
|
|
867
|
+
/**
|
|
868
|
+
* Sort year range in reverse order.
|
|
869
|
+
* @default false
|
|
870
|
+
*/
|
|
871
|
+
yearRangeReverse: boolean;
|
|
872
|
+
/**
|
|
873
|
+
* Changes Datepicker to RTL.
|
|
874
|
+
* @default false
|
|
875
|
+
*/
|
|
876
|
+
isRTL: boolean;
|
|
877
|
+
/**
|
|
878
|
+
* Show month after year in Datepicker title.
|
|
879
|
+
* @default false
|
|
880
|
+
*/
|
|
881
|
+
showMonthAfterYear: boolean;
|
|
882
|
+
/**
|
|
883
|
+
* Render days of the calendar grid that fall in the next
|
|
884
|
+
* or previous month.
|
|
885
|
+
* @default false
|
|
886
|
+
*/
|
|
887
|
+
showDaysInNextAndPreviousMonths: boolean;
|
|
888
|
+
/**
|
|
889
|
+
* Specify if the docked datepicker is in open state by default
|
|
890
|
+
*/
|
|
891
|
+
openByDefault: boolean;
|
|
892
|
+
/**
|
|
893
|
+
* Specify a DOM element OR selector for a DOM element to render
|
|
894
|
+
* the calendar in, by default it will be placed before the input.
|
|
895
|
+
* @default null
|
|
896
|
+
*/
|
|
897
|
+
container: HTMLElement | string | null;
|
|
898
|
+
/**
|
|
899
|
+
* Show the clear button in the datepicker.
|
|
900
|
+
* @default false
|
|
901
|
+
*/
|
|
902
|
+
showClearBtn: boolean;
|
|
903
|
+
/**
|
|
904
|
+
* Autosubmit calendar day select to input field
|
|
905
|
+
* @default false
|
|
906
|
+
*/
|
|
907
|
+
autoSubmit: true;
|
|
908
|
+
/**
|
|
909
|
+
* Internationalization options.
|
|
910
|
+
*/
|
|
911
|
+
i18n: Partial<DateI18nOptions>;
|
|
912
|
+
/**
|
|
913
|
+
* An array of string returned by `Date.toDateString()`,
|
|
914
|
+
* indicating there are events in the specified days.
|
|
915
|
+
* @default []
|
|
916
|
+
*/
|
|
917
|
+
events: string[];
|
|
918
|
+
/**
|
|
919
|
+
* Callback function when date is selected,
|
|
920
|
+
* first parameter is the newly selected date.
|
|
921
|
+
* @default null
|
|
922
|
+
*/
|
|
923
|
+
onSelect: ((selectedDate: Date) => void) | null;
|
|
924
|
+
/**
|
|
925
|
+
* Callback function when Datepicker is closed.
|
|
926
|
+
* @default null
|
|
927
|
+
*/
|
|
928
|
+
/**
|
|
929
|
+
* Callback function when Datepicker HTML is refreshed.
|
|
930
|
+
* @default null
|
|
931
|
+
*/
|
|
932
|
+
onDraw: (() => void) | null;
|
|
933
|
+
/**
|
|
934
|
+
* Callback function for interaction with input field.
|
|
935
|
+
* @default null
|
|
936
|
+
*/
|
|
937
|
+
onInputInteraction: (() => void) | null;
|
|
938
|
+
/**
|
|
939
|
+
* Callback function for interaction with confirm button.
|
|
940
|
+
* @default null
|
|
941
|
+
*/
|
|
942
|
+
onConfirm: (() => void) | null;
|
|
943
|
+
/**
|
|
944
|
+
* Callback function for interaction with close button.
|
|
945
|
+
* @default null
|
|
946
|
+
*/
|
|
947
|
+
onCancel: (() => void) | null;
|
|
948
|
+
/** Field used for internal calculations DO NOT CHANGE IT */
|
|
949
|
+
minYear?: number;
|
|
950
|
+
/** Field used for internal calculations DO NOT CHANGE IT */
|
|
951
|
+
maxYear?: number;
|
|
952
|
+
/** Field used for internal calculations DO NOT CHANGE IT */
|
|
953
|
+
minMonth?: number;
|
|
954
|
+
/** Field used for internal calculations DO NOT CHANGE IT */
|
|
955
|
+
maxMonth?: number;
|
|
956
|
+
/** Field used for internal calculations DO NOT CHANGE IT */
|
|
957
|
+
startRange?: Date;
|
|
958
|
+
/** Field used for internal calculations DO NOT CHANGE IT */
|
|
959
|
+
endRange?: Date;
|
|
960
|
+
/**
|
|
961
|
+
* Display plugin
|
|
962
|
+
*/
|
|
963
|
+
displayPlugin: string;
|
|
964
|
+
/**
|
|
965
|
+
* Configurable display plugin options
|
|
966
|
+
*/
|
|
967
|
+
displayPluginOptions: object;
|
|
968
|
+
}
|
|
969
|
+
declare class Datepicker extends Component<DatepickerOptions> {
|
|
970
|
+
el: HTMLInputElement;
|
|
971
|
+
id: string;
|
|
972
|
+
multiple: boolean;
|
|
973
|
+
calendarEl: HTMLElement;
|
|
974
|
+
/** CLEAR button instance. */
|
|
975
|
+
/** DONE button instance */
|
|
976
|
+
containerEl: HTMLElement;
|
|
977
|
+
yearTextEl: HTMLElement;
|
|
978
|
+
dateTextEl: HTMLElement;
|
|
979
|
+
endDateEl: HTMLInputElement;
|
|
980
|
+
dateEls: HTMLInputElement[];
|
|
981
|
+
/** The selected Date. */
|
|
982
|
+
date: Date;
|
|
983
|
+
endDate: null | Date;
|
|
984
|
+
dates: Date[];
|
|
985
|
+
formats: object;
|
|
986
|
+
calendars: [{
|
|
987
|
+
month: number;
|
|
988
|
+
year: number;
|
|
989
|
+
}];
|
|
990
|
+
private _y;
|
|
991
|
+
private _m;
|
|
992
|
+
private displayPlugin;
|
|
993
|
+
private footer;
|
|
994
|
+
static _template: string;
|
|
995
|
+
constructor(el: HTMLInputElement, options: Partial<DatepickerOptions>);
|
|
996
|
+
static get defaults(): DatepickerOptions;
|
|
997
|
+
/**
|
|
998
|
+
* Initializes instance of Datepicker.
|
|
999
|
+
* @param el HTML element.
|
|
1000
|
+
* @param options Component options.
|
|
1001
|
+
*/
|
|
1002
|
+
static init(el: HTMLInputElement, options?: Partial<DatepickerOptions>): Datepicker;
|
|
1003
|
+
/**
|
|
1004
|
+
* Initializes instances of Datepicker.
|
|
1005
|
+
* @param els HTML elements.
|
|
1006
|
+
* @param options Component options.
|
|
1007
|
+
*/
|
|
1008
|
+
static init(els: InitElements<HTMLInputElement | MElement>, options?: Partial<DatepickerOptions>): Datepicker[];
|
|
1009
|
+
static _isDate(obj: any): boolean;
|
|
1010
|
+
static _isWeekend(date: any): boolean;
|
|
1011
|
+
/**
|
|
1012
|
+
* @deprecated as this function has no effect without any return statement or global parameter setter.
|
|
1013
|
+
*/
|
|
1014
|
+
static _setToStartOfDay(date: any): void;
|
|
1015
|
+
static _getDaysInMonth(year: any, month: any): number;
|
|
1016
|
+
static _isLeapYear(year: any): boolean;
|
|
1017
|
+
static _compareDates(a: any, b: any): boolean;
|
|
1018
|
+
static _compareWithinRange(day: Date, date: Date, dateEnd: Date): boolean;
|
|
1019
|
+
static _comparePastDate(a: Date, b: Date): boolean;
|
|
1020
|
+
static getInstance(el: HTMLElement): Datepicker;
|
|
1021
|
+
destroy(): void;
|
|
1022
|
+
destroySelects(): void;
|
|
1023
|
+
_insertHTMLIntoDOM(): void;
|
|
1024
|
+
/**
|
|
1025
|
+
* Renders the date input format
|
|
1026
|
+
*/
|
|
1027
|
+
_renderDateInputFormat(el: HTMLInputElement): void;
|
|
1028
|
+
/**
|
|
1029
|
+
* Gets a string representation of the given date.
|
|
1030
|
+
*/
|
|
1031
|
+
toString(date?: Date, format?: string | ((d: Date) => string)): string;
|
|
1032
|
+
/**
|
|
1033
|
+
* Returns the formatted date.
|
|
1034
|
+
*/
|
|
1035
|
+
formatDate(date: Date, format: string): string;
|
|
1036
|
+
/**
|
|
1037
|
+
* Sets date from input field.
|
|
1038
|
+
*/
|
|
1039
|
+
setDateFromInput(el: HTMLInputElement): void;
|
|
1040
|
+
/**
|
|
1041
|
+
* Set a date on the datepicker.
|
|
1042
|
+
* @param date Date to set on the datepicker.
|
|
1043
|
+
* @param preventOnSelect Undocumented as of 5 March 2018.
|
|
1044
|
+
* @param isEndDate
|
|
1045
|
+
* @param fromUserInput
|
|
1046
|
+
*/
|
|
1047
|
+
setDate(date?: Date, preventOnSelect?: boolean, isEndDate?: boolean, fromUserInput?: boolean): void;
|
|
1048
|
+
validateDate(date: Date): void | Date;
|
|
1049
|
+
/**
|
|
1050
|
+
* Set a single date on the datepicker.
|
|
1051
|
+
* @param date Date to set on the datepicker.
|
|
1052
|
+
* @param isEndDate
|
|
1053
|
+
*/
|
|
1054
|
+
setSingleDate(date: Date, isEndDate: boolean): void;
|
|
1055
|
+
/**
|
|
1056
|
+
* Set a multi date on the datepicker.
|
|
1057
|
+
* @param date Date to set on the datepicker.
|
|
1058
|
+
*/
|
|
1059
|
+
setMultiDate(date: Date): void;
|
|
1060
|
+
/**
|
|
1061
|
+
* Sets the data-date attribute on the date input field
|
|
1062
|
+
*/
|
|
1063
|
+
setDataDate(el: any, date: any): void;
|
|
1064
|
+
/**
|
|
1065
|
+
* Sets dates on the input values.
|
|
1066
|
+
*/
|
|
1067
|
+
setInputValues(): void;
|
|
1068
|
+
setMultipleSelectionInputValues(): void;
|
|
1069
|
+
/**
|
|
1070
|
+
* Sets given date as the input value on the given element.
|
|
1071
|
+
*/
|
|
1072
|
+
setInputValue(el: any, date: any): void;
|
|
1073
|
+
/**
|
|
1074
|
+
* Display plugin setup.
|
|
1075
|
+
*/
|
|
1076
|
+
_setupDisplayPlugin(): void;
|
|
1077
|
+
/**
|
|
1078
|
+
* Renders the date in the modal head section.
|
|
1079
|
+
*/
|
|
1080
|
+
_renderDateDisplay(date: Date, endDate?: Date): void;
|
|
1081
|
+
/**
|
|
1082
|
+
* Change date view to a specific date on the datepicker.
|
|
1083
|
+
* @param date Date to show on the datepicker.
|
|
1084
|
+
*/
|
|
1085
|
+
gotoDate(date: Date): void;
|
|
1086
|
+
adjustCalendars(): void;
|
|
1087
|
+
adjustCalendar(calendar: any): any;
|
|
1088
|
+
nextMonth(): void;
|
|
1089
|
+
prevMonth(): void;
|
|
1090
|
+
render(year: any, month: any, randId: any): string;
|
|
1091
|
+
renderDay(opts: any): string;
|
|
1092
|
+
renderRow(days: any, isRTL: any, isRowSelected: any): string;
|
|
1093
|
+
renderTable(opts: any, data: any, randId: any): string;
|
|
1094
|
+
renderHead(opts: any): string;
|
|
1095
|
+
renderBody(rows: any): string;
|
|
1096
|
+
renderTitle(instance: any, c: any, year: any, month: any, refYear: any, randId: any): string;
|
|
1097
|
+
draw(): void;
|
|
1098
|
+
_setupEventHandlers(): void;
|
|
1099
|
+
_setupVariables(): void;
|
|
1100
|
+
_pickerSetup(): void;
|
|
1101
|
+
_removeEventHandlers(): void;
|
|
1102
|
+
_handleInputClick: (e: any) => void;
|
|
1103
|
+
_handleInputKeydown: (e: KeyboardEvent) => void;
|
|
1104
|
+
_handleCalendarClick: (e: any) => void;
|
|
1105
|
+
_handleDateRangeCalendarClick: (date: Date) => void;
|
|
1106
|
+
_handleClearClick: () => void;
|
|
1107
|
+
_clearDates: () => void;
|
|
1108
|
+
_handleMonthChange: (e: any) => void;
|
|
1109
|
+
_handleYearChange: (e: any) => void;
|
|
1110
|
+
gotoMonth(month: any): void;
|
|
1111
|
+
gotoYear(year: any): void;
|
|
1112
|
+
_handleInputChange: (e: Event) => void;
|
|
1113
|
+
renderDayName(opts: any, day: any, abbr?: boolean): any;
|
|
1114
|
+
createDateInput(): HTMLInputElement;
|
|
1115
|
+
_finishSelection: () => void;
|
|
1116
|
+
_confirm: () => void;
|
|
1117
|
+
_cancel: () => void;
|
|
1118
|
+
open(): this;
|
|
1119
|
+
close(): this;
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
declare class Forms {
|
|
1123
|
+
/**
|
|
1124
|
+
* Checks if the label has validation and apply
|
|
1125
|
+
* the correct class and styles
|
|
1126
|
+
* @param textfield
|
|
1127
|
+
*/
|
|
1128
|
+
static validateField(textfield: HTMLInputElement): void;
|
|
1129
|
+
/**
|
|
1130
|
+
* Resizes the given TextArea after updating the
|
|
1131
|
+
* value content dynamically.
|
|
1132
|
+
* @param e EventTarget
|
|
1133
|
+
*/
|
|
1134
|
+
static textareaAutoResize(e: EventTarget): void;
|
|
1135
|
+
static Init(): void;
|
|
1136
|
+
static InitTextarea(textarea: HTMLTextAreaElement): void;
|
|
1137
|
+
static InitFileInputPath(fileInput: HTMLInputElement): void;
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
interface MaterialboxOptions extends BaseOptions$1 {
|
|
1141
|
+
/**
|
|
1142
|
+
* Transition in duration in milliseconds.
|
|
1143
|
+
* @default 275
|
|
1144
|
+
*/
|
|
1145
|
+
inDuration: number;
|
|
1146
|
+
/**
|
|
1147
|
+
* Transition out duration in milliseconds.
|
|
1148
|
+
* @default 200
|
|
1149
|
+
*/
|
|
1150
|
+
outDuration: number;
|
|
1151
|
+
/**
|
|
1152
|
+
* Callback function called before materialbox is opened.
|
|
1153
|
+
* @default null
|
|
1154
|
+
*/
|
|
1155
|
+
onOpenStart: (el: Element) => void;
|
|
1156
|
+
/**
|
|
1157
|
+
* Callback function called after materialbox is opened.
|
|
1158
|
+
* @default null
|
|
1159
|
+
*/
|
|
1160
|
+
onOpenEnd: (el: Element) => void;
|
|
1161
|
+
/**
|
|
1162
|
+
* Callback function called before materialbox is closed.
|
|
1163
|
+
* @default null
|
|
1164
|
+
*/
|
|
1165
|
+
onCloseStart: (el: Element) => void;
|
|
1166
|
+
/**
|
|
1167
|
+
* Callback function called after materialbox is closed.
|
|
1168
|
+
* @default null
|
|
1169
|
+
*/
|
|
1170
|
+
onCloseEnd: (el: Element) => void;
|
|
1171
|
+
}
|
|
1172
|
+
declare class Materialbox extends Component<MaterialboxOptions> {
|
|
1173
|
+
/** If the materialbox overlay is showing. */
|
|
1174
|
+
overlayActive: boolean;
|
|
1175
|
+
/** If the materialbox is no longer being animated. */
|
|
1176
|
+
doneAnimating: boolean;
|
|
1177
|
+
/** Caption, if specified. */
|
|
1178
|
+
caption: string;
|
|
1179
|
+
/** Original width of image. */
|
|
1180
|
+
originalWidth: number;
|
|
1181
|
+
/** Original height of image. */
|
|
1182
|
+
originalHeight: number;
|
|
1183
|
+
private originInlineStyles;
|
|
1184
|
+
private placeholder;
|
|
1185
|
+
private _changedAncestorList;
|
|
1186
|
+
private newHeight;
|
|
1187
|
+
private newWidth;
|
|
1188
|
+
private windowWidth;
|
|
1189
|
+
private windowHeight;
|
|
1190
|
+
private attrWidth;
|
|
1191
|
+
private attrHeight;
|
|
1192
|
+
private _overlay;
|
|
1193
|
+
private _photoCaption;
|
|
1194
|
+
constructor(el: HTMLElement, options: Partial<MaterialboxOptions>);
|
|
1195
|
+
static get defaults(): MaterialboxOptions;
|
|
1196
|
+
/**
|
|
1197
|
+
* Initializes instance of MaterialBox.
|
|
1198
|
+
* @param el HTML element.
|
|
1199
|
+
* @param options Component options.
|
|
1200
|
+
*/
|
|
1201
|
+
static init(el: HTMLElement, options?: Partial<MaterialboxOptions>): Materialbox;
|
|
1202
|
+
/**
|
|
1203
|
+
* Initializes instances of MaterialBox.
|
|
1204
|
+
* @param els HTML elements.
|
|
1205
|
+
* @param options Component options.
|
|
1206
|
+
*/
|
|
1207
|
+
static init(els: InitElements<MElement>, options?: Partial<MaterialboxOptions>): Materialbox[];
|
|
1208
|
+
static getInstance(el: HTMLElement): Materialbox;
|
|
1209
|
+
destroy(): void;
|
|
1210
|
+
private _setupEventHandlers;
|
|
1211
|
+
private _removeEventHandlers;
|
|
1212
|
+
private _handleMaterialboxClick;
|
|
1213
|
+
private _handleMaterialboxKeypress;
|
|
1214
|
+
private _handleMaterialboxToggle;
|
|
1215
|
+
private _handleWindowScroll;
|
|
1216
|
+
private _handleWindowResize;
|
|
1217
|
+
private _handleWindowEscape;
|
|
1218
|
+
private _makeAncestorsOverflowVisible;
|
|
1219
|
+
private _offset;
|
|
1220
|
+
private _updateVars;
|
|
1221
|
+
private _animateImageIn;
|
|
1222
|
+
private _animateImageOut;
|
|
1223
|
+
private _addCaption;
|
|
1224
|
+
private _removeCaption;
|
|
1225
|
+
private _addOverlay;
|
|
1226
|
+
private _removeOverlay;
|
|
1227
|
+
/**
|
|
1228
|
+
* Open materialbox.
|
|
1229
|
+
*/
|
|
1230
|
+
open: () => void;
|
|
1231
|
+
/**
|
|
1232
|
+
* Close materialbox.
|
|
1233
|
+
*/
|
|
1234
|
+
close: () => void;
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1237
|
+
interface ModalOptions extends BaseOptions$1 {
|
|
1238
|
+
opacity: number;
|
|
1239
|
+
inDuration: number;
|
|
1240
|
+
outDuration: number;
|
|
1241
|
+
preventScrolling: boolean;
|
|
1242
|
+
onOpenStart: (this: Modal, el: HTMLElement) => void;
|
|
1243
|
+
onOpenEnd: (this: Modal, el: HTMLElement) => void;
|
|
1244
|
+
onCloseStart: (el: HTMLElement) => void;
|
|
1245
|
+
onCloseEnd: (el: HTMLElement) => void;
|
|
1246
|
+
dismissible: boolean;
|
|
1247
|
+
startingTop: string;
|
|
1248
|
+
endingTop: string;
|
|
1249
|
+
}
|
|
1250
|
+
declare class Modal extends Component<ModalOptions> {
|
|
1251
|
+
#private;
|
|
1252
|
+
constructor(el: HTMLElement, options: Partial<ModalOptions>);
|
|
1253
|
+
static get defaults(): {
|
|
1254
|
+
opacity: number;
|
|
1255
|
+
inDuration: number;
|
|
1256
|
+
outDuration: number;
|
|
1257
|
+
onOpenStart: any;
|
|
1258
|
+
onOpenEnd: any;
|
|
1259
|
+
onCloseStart: any;
|
|
1260
|
+
onCloseEnd: any;
|
|
1261
|
+
preventScrolling: boolean;
|
|
1262
|
+
dismissible: boolean;
|
|
1263
|
+
startingTop: string;
|
|
1264
|
+
endingTop: string;
|
|
1265
|
+
};
|
|
1266
|
+
static init(el: HTMLElement, options?: Partial<ModalOptions>): Modal;
|
|
1267
|
+
static init(els: InitElements<MElement>, options?: Partial<ModalOptions>): Modal[];
|
|
1268
|
+
static getInstance(el: HTMLElement): Modal;
|
|
1269
|
+
destroy(): void;
|
|
1270
|
+
_setupEventHandlers(): void;
|
|
1271
|
+
_removeEventHandlers(): void;
|
|
1272
|
+
_handleTriggerClick(): void;
|
|
1273
|
+
_handleOverlayClick(): void;
|
|
1274
|
+
_handleModalCloseClick(): void;
|
|
1275
|
+
_handleKeydown(): void;
|
|
1276
|
+
_handleFocus(): void;
|
|
1277
|
+
open(): this;
|
|
1278
|
+
close(): this;
|
|
1279
|
+
static create(config: any): string | HTMLDialogElement;
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1282
|
+
interface FormSelectOptions extends BaseOptions$1 {
|
|
1283
|
+
/**
|
|
1284
|
+
* Classes to be added to the select wrapper element.
|
|
1285
|
+
* @default ""
|
|
1286
|
+
*/
|
|
1287
|
+
classes: string;
|
|
1288
|
+
/**
|
|
1289
|
+
* Pass options object to select dropdown initialization.
|
|
1290
|
+
* @default {}
|
|
1291
|
+
*/
|
|
1292
|
+
dropdownOptions: Partial<DropdownOptions>;
|
|
1293
|
+
}
|
|
1294
|
+
type ValueStruct = {
|
|
1295
|
+
el: HTMLOptionElement;
|
|
1296
|
+
optionEl: HTMLElement;
|
|
1297
|
+
};
|
|
1298
|
+
declare class FormSelect extends Component<FormSelectOptions> {
|
|
1299
|
+
el: HTMLSelectElement;
|
|
1300
|
+
/** If this is a multiple select. */
|
|
1301
|
+
isMultiple: boolean;
|
|
1302
|
+
/**
|
|
1303
|
+
* Label associated with the current select element.
|
|
1304
|
+
* Is "null", if not detected.
|
|
1305
|
+
*/
|
|
1306
|
+
labelEl: HTMLLabelElement;
|
|
1307
|
+
/** Dropdown UL element. */
|
|
1308
|
+
dropdownOptions: HTMLUListElement;
|
|
1309
|
+
/** Text input that shows current selected option. */
|
|
1310
|
+
input: HTMLInputElement;
|
|
1311
|
+
/** Instance of the dropdown plugin for this select. */
|
|
1312
|
+
dropdown: Dropdown;
|
|
1313
|
+
/** The select wrapper element. */
|
|
1314
|
+
wrapper: HTMLDivElement;
|
|
1315
|
+
selectOptions: (HTMLOptionElement | HTMLOptGroupElement)[];
|
|
1316
|
+
private _values;
|
|
1317
|
+
nativeTabIndex: number;
|
|
1318
|
+
constructor(el: HTMLSelectElement, options: FormSelectOptions);
|
|
1319
|
+
static get defaults(): FormSelectOptions;
|
|
1320
|
+
/**
|
|
1321
|
+
* Initializes instance of FormSelect.
|
|
1322
|
+
* @param el HTML element.
|
|
1323
|
+
* @param options Component options.
|
|
1324
|
+
*/
|
|
1325
|
+
static init(el: HTMLSelectElement, options?: Partial<FormSelectOptions>): FormSelect;
|
|
1326
|
+
/**
|
|
1327
|
+
* Initializes instances of FormSelect.
|
|
1328
|
+
* @param els HTML elements.
|
|
1329
|
+
* @param options Component options.
|
|
1330
|
+
*/
|
|
1331
|
+
static init(els: InitElements<HTMLSelectElement | MElement>, options?: Partial<FormSelectOptions>): FormSelect[];
|
|
1332
|
+
static getInstance(el: HTMLElement): FormSelect;
|
|
1333
|
+
destroy(): void;
|
|
1334
|
+
_setupEventHandlers(): void;
|
|
1335
|
+
_removeEventHandlers(): void;
|
|
1336
|
+
_handleSelectChange: () => void;
|
|
1337
|
+
_handleOptionClick: (e: MouseEvent | KeyboardEvent) => void;
|
|
1338
|
+
_arraysEqual<T, E>(a: T[], b: (E | T)[]): boolean;
|
|
1339
|
+
_selectOptionElement(virtualOption: HTMLElement): void;
|
|
1340
|
+
_handleInputClick: () => void;
|
|
1341
|
+
_setupDropdown(): void;
|
|
1342
|
+
_addOptionToValues(realOption: HTMLOptionElement, virtualOption: HTMLElement): void;
|
|
1343
|
+
_removeDropdown(): void;
|
|
1344
|
+
_createAndAppendOptionWithIcon(realOption: HTMLOptionElement | HTMLOptGroupElement, type: string): HTMLLIElement;
|
|
1345
|
+
_selectValue(value: ValueStruct): void;
|
|
1346
|
+
_deselectValue(value: ValueStruct): void;
|
|
1347
|
+
_deselectAll(): void;
|
|
1348
|
+
_isValueSelected(value: ValueStruct): boolean;
|
|
1349
|
+
_toggleEntryFromArray(value: ValueStruct): void;
|
|
1350
|
+
_getSelectedOptions(): HTMLOptionElement[];
|
|
1351
|
+
_setValueToInput(): void;
|
|
1352
|
+
_setSelectedStates(): void;
|
|
1353
|
+
_activateOption(ul: HTMLElement, li: HTMLElement): void;
|
|
1354
|
+
getSelectedValues(): string[];
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1357
|
+
interface SidenavOptions extends BaseOptions$1 {
|
|
1358
|
+
/**
|
|
1359
|
+
* Side of screen on which Sidenav appears.
|
|
1360
|
+
* @default 'left'
|
|
1361
|
+
*/
|
|
1362
|
+
edge: 'left' | 'right';
|
|
1363
|
+
/**
|
|
1364
|
+
* Allow swipe gestures to open/close Sidenav.
|
|
1365
|
+
* @default true
|
|
1366
|
+
*/
|
|
1367
|
+
draggable: boolean;
|
|
1368
|
+
/**
|
|
1369
|
+
* Width of the area where you can start dragging.
|
|
1370
|
+
* @default '10px'
|
|
1371
|
+
*/
|
|
1372
|
+
dragTargetWidth: string;
|
|
1373
|
+
/**
|
|
1374
|
+
* Length in ms of enter transition.
|
|
1375
|
+
* @default 250
|
|
1376
|
+
*/
|
|
1377
|
+
inDuration: number;
|
|
1378
|
+
/**
|
|
1379
|
+
* Length in ms of exit transition.
|
|
1380
|
+
* @default 200
|
|
1381
|
+
*/
|
|
1382
|
+
outDuration: number;
|
|
1383
|
+
/**
|
|
1384
|
+
* Prevent page from scrolling while sidenav is open.
|
|
1385
|
+
* @default true
|
|
1386
|
+
*/
|
|
1387
|
+
preventScrolling: boolean;
|
|
1388
|
+
/**
|
|
1389
|
+
* Function called when sidenav starts entering.
|
|
1390
|
+
*/
|
|
1391
|
+
onOpenStart: (elem: HTMLElement) => void;
|
|
1392
|
+
/**
|
|
1393
|
+
* Function called when sidenav finishes entering.
|
|
1394
|
+
*/
|
|
1395
|
+
onOpenEnd: (elem: HTMLElement) => void;
|
|
1396
|
+
/**
|
|
1397
|
+
* Function called when sidenav starts exiting.
|
|
1398
|
+
*/
|
|
1399
|
+
onCloseStart: (elem: HTMLElement) => void;
|
|
1400
|
+
/**
|
|
1401
|
+
* Function called when sidenav finishes exiting.
|
|
1402
|
+
*/
|
|
1403
|
+
onCloseEnd: (elem: HTMLElement) => void;
|
|
1404
|
+
}
|
|
1405
|
+
declare class Sidenav extends Component<SidenavOptions> implements Openable {
|
|
1406
|
+
id: string;
|
|
1407
|
+
/** Describes open/close state of Sidenav. */
|
|
1408
|
+
isOpen: boolean;
|
|
1409
|
+
/** Describes if sidenav is fixed. */
|
|
1410
|
+
isFixed: boolean;
|
|
1411
|
+
/** Describes if Sidenav is being dragged. */
|
|
1412
|
+
isDragged: boolean;
|
|
1413
|
+
lastWindowWidth: number;
|
|
1414
|
+
lastWindowHeight: number;
|
|
1415
|
+
static _sidenavs: Sidenav[];
|
|
1416
|
+
private _overlay;
|
|
1417
|
+
dragTarget: Element;
|
|
1418
|
+
private _startingXpos;
|
|
1419
|
+
private _xPos;
|
|
1420
|
+
private _time;
|
|
1421
|
+
private _width;
|
|
1422
|
+
private _initialScrollTop;
|
|
1423
|
+
private _verticallyScrolling;
|
|
1424
|
+
private deltaX;
|
|
1425
|
+
private velocityX;
|
|
1426
|
+
private percentOpen;
|
|
1427
|
+
constructor(el: HTMLElement, options: Partial<SidenavOptions>);
|
|
1428
|
+
static get defaults(): SidenavOptions;
|
|
1429
|
+
/**
|
|
1430
|
+
* Initializes instance of Sidenav.
|
|
1431
|
+
* @param el HTML element.
|
|
1432
|
+
* @param options Component options.
|
|
1433
|
+
*/
|
|
1434
|
+
static init(el: HTMLElement, options?: Partial<SidenavOptions>): Sidenav;
|
|
1435
|
+
/**
|
|
1436
|
+
* Initializes instances of Sidenav.
|
|
1437
|
+
* @param els HTML elements.
|
|
1438
|
+
* @param options Component options.
|
|
1439
|
+
*/
|
|
1440
|
+
static init(els: InitElements<MElement>, options?: Partial<SidenavOptions>): Sidenav[];
|
|
1441
|
+
static getInstance(el: HTMLElement): Sidenav;
|
|
1442
|
+
destroy(): void;
|
|
1443
|
+
private _createOverlay;
|
|
1444
|
+
private _setupEventHandlers;
|
|
1445
|
+
private _removeEventHandlers;
|
|
1446
|
+
private _handleTriggerClick;
|
|
1447
|
+
private _startDrag;
|
|
1448
|
+
private _dragMoveUpdate;
|
|
1449
|
+
private _handleDragTargetDrag;
|
|
1450
|
+
private _handleDragTargetRelease;
|
|
1451
|
+
private _handleCloseDrag;
|
|
1452
|
+
private _calculateDelta;
|
|
1453
|
+
private _handleCloseRelease;
|
|
1454
|
+
private _handleCloseTriggerClick;
|
|
1455
|
+
private _handleWindowResize;
|
|
1456
|
+
private _setupClasses;
|
|
1457
|
+
private _removeClasses;
|
|
1458
|
+
private _setupFixed;
|
|
1459
|
+
private _isDraggable;
|
|
1460
|
+
private _isCurrentlyFixed;
|
|
1461
|
+
private _createDragTarget;
|
|
1462
|
+
private _preventBodyScrolling;
|
|
1463
|
+
private _enableBodyScrolling;
|
|
1464
|
+
/**
|
|
1465
|
+
* Opens Sidenav.
|
|
1466
|
+
*/
|
|
1467
|
+
open: () => void;
|
|
1468
|
+
/**
|
|
1469
|
+
* Closes Sidenav.
|
|
1470
|
+
*/
|
|
1471
|
+
close: () => void;
|
|
1472
|
+
private _animateIn;
|
|
1473
|
+
private _animateOut;
|
|
1474
|
+
private _animateSidenavIn;
|
|
1475
|
+
private _animateSidenavOut;
|
|
1476
|
+
private _animateOverlayIn;
|
|
1477
|
+
private _animateOverlayOut;
|
|
1478
|
+
private _setAriaHidden;
|
|
1479
|
+
private _setTabIndex;
|
|
1480
|
+
}
|
|
1481
|
+
|
|
1482
|
+
interface SliderOptions extends BaseOptions$1 {
|
|
1483
|
+
/**
|
|
1484
|
+
* Set to false to hide slide indicators.
|
|
1485
|
+
* @default true
|
|
1486
|
+
*/
|
|
1487
|
+
indicators: boolean;
|
|
1488
|
+
/**
|
|
1489
|
+
* Set height of slider.
|
|
1490
|
+
* @default 400
|
|
1491
|
+
*/
|
|
1492
|
+
height: number;
|
|
1493
|
+
/**
|
|
1494
|
+
* Set the duration of the transition animation in ms.
|
|
1495
|
+
* @default 500
|
|
1496
|
+
*/
|
|
1497
|
+
duration: number;
|
|
1498
|
+
/**
|
|
1499
|
+
* Set the duration between transitions in ms.
|
|
1500
|
+
* @default 6000
|
|
1501
|
+
*/
|
|
1502
|
+
interval: number;
|
|
1503
|
+
/**
|
|
1504
|
+
* If slider should pause when keyboard focus is received.
|
|
1505
|
+
* @default true
|
|
1506
|
+
*/
|
|
1507
|
+
pauseOnFocus: boolean;
|
|
1508
|
+
/**
|
|
1509
|
+
* If slider should pause when is hovered by a pointer.
|
|
1510
|
+
* @default true
|
|
1511
|
+
*/
|
|
1512
|
+
pauseOnHover: boolean;
|
|
1513
|
+
/**
|
|
1514
|
+
* Optional function used to generate ARIA label to indicators (for accessibility purposes).
|
|
1515
|
+
* @param index Current index, starting from "1".
|
|
1516
|
+
* @param current A which indicates whether it is the current element or not
|
|
1517
|
+
* @returns a string to be used as label indicator.
|
|
1518
|
+
* @default null
|
|
1519
|
+
*/
|
|
1520
|
+
indicatorLabelFunc: (index: number, current: boolean) => string;
|
|
1521
|
+
}
|
|
1522
|
+
declare class Slider extends Component<SliderOptions> {
|
|
1523
|
+
/** Index of current slide. */
|
|
1524
|
+
activeIndex: number;
|
|
1525
|
+
interval: string | number | NodeJS.Timeout;
|
|
1526
|
+
eventPause: boolean;
|
|
1527
|
+
_slider: HTMLUListElement;
|
|
1528
|
+
_slides: HTMLLIElement[];
|
|
1529
|
+
_activeSlide: HTMLLIElement;
|
|
1530
|
+
_indicators: HTMLLIElement[];
|
|
1531
|
+
_hovered: boolean;
|
|
1532
|
+
_focused: boolean;
|
|
1533
|
+
_focusCurrent: boolean;
|
|
1534
|
+
_sliderId: string;
|
|
1535
|
+
constructor(el: HTMLElement, options: Partial<SliderOptions>);
|
|
1536
|
+
static get defaults(): SliderOptions;
|
|
1537
|
+
/**
|
|
1538
|
+
* Initializes instance of Slider.
|
|
1539
|
+
* @param el HTML element.
|
|
1540
|
+
* @param options Component options.
|
|
1541
|
+
*/
|
|
1542
|
+
static init(el: HTMLElement, options?: Partial<SliderOptions>): Slider;
|
|
1543
|
+
/**
|
|
1544
|
+
* Initializes instances of Slider.
|
|
1545
|
+
* @param els HTML elements.
|
|
1546
|
+
* @param options Component options.
|
|
1547
|
+
*/
|
|
1548
|
+
static init(els: InitElements<MElement>, options?: Partial<SliderOptions>): Slider[];
|
|
1549
|
+
static getInstance(el: HTMLElement): Slider;
|
|
1550
|
+
destroy(): void;
|
|
1551
|
+
private _setupEventHandlers;
|
|
1552
|
+
private _removeEventHandlers;
|
|
1553
|
+
private _handleIndicatorClick;
|
|
1554
|
+
private _handleAutoPauseHover;
|
|
1555
|
+
private _handleAutoPauseFocus;
|
|
1556
|
+
private _handleAutoStartHover;
|
|
1557
|
+
private _handleAutoStartFocus;
|
|
1558
|
+
private _handleInterval;
|
|
1559
|
+
private _animateSlide;
|
|
1560
|
+
private _setSliderHeight;
|
|
1561
|
+
private _setupIndicators;
|
|
1562
|
+
private _removeIndicators;
|
|
1563
|
+
set(index: number): void;
|
|
1564
|
+
_pause(fromEvent: boolean): void;
|
|
1565
|
+
/**
|
|
1566
|
+
* Pause slider autoslide.
|
|
1567
|
+
*/
|
|
1568
|
+
pause: () => void;
|
|
1569
|
+
/**
|
|
1570
|
+
* Start slider autoslide.
|
|
1571
|
+
*/
|
|
1572
|
+
start: () => void;
|
|
1573
|
+
/**
|
|
1574
|
+
* Move to next slider.
|
|
1575
|
+
*/
|
|
1576
|
+
next: () => void;
|
|
1577
|
+
/**
|
|
1578
|
+
* Move to prev slider.
|
|
1579
|
+
*/
|
|
1580
|
+
prev: () => void;
|
|
1581
|
+
}
|
|
1582
|
+
|
|
1583
|
+
interface TabsOptions extends BaseOptions$1 {
|
|
1584
|
+
/**
|
|
1585
|
+
* Transition duration in milliseconds.
|
|
1586
|
+
* @default 300
|
|
1587
|
+
*/
|
|
1588
|
+
duration: number;
|
|
1589
|
+
/**
|
|
1590
|
+
* Callback for when a new tab content is shown.
|
|
1591
|
+
* @default null
|
|
1592
|
+
*/
|
|
1593
|
+
onShow: (newContent: Element) => void;
|
|
1594
|
+
/**
|
|
1595
|
+
* Set to true to enable swipeable tabs.
|
|
1596
|
+
* This also uses the responsiveThreshold option.
|
|
1597
|
+
* @default false
|
|
1598
|
+
*/
|
|
1599
|
+
swipeable: boolean;
|
|
1600
|
+
/**
|
|
1601
|
+
* The maximum width of the screen, in pixels,
|
|
1602
|
+
* where the swipeable functionality initializes.
|
|
1603
|
+
* @default infinity
|
|
1604
|
+
*/
|
|
1605
|
+
responsiveThreshold: number;
|
|
1606
|
+
}
|
|
1607
|
+
declare class Tabs extends Component<TabsOptions> {
|
|
1608
|
+
_tabLinks: NodeListOf<HTMLAnchorElement>;
|
|
1609
|
+
_index: number;
|
|
1610
|
+
_indicator: HTMLLIElement;
|
|
1611
|
+
_tabWidth: number;
|
|
1612
|
+
_tabsWidth: number;
|
|
1613
|
+
_tabsCarousel: Carousel;
|
|
1614
|
+
_activeTabLink: HTMLAnchorElement;
|
|
1615
|
+
_content: HTMLElement;
|
|
1616
|
+
constructor(el: HTMLElement, options: Partial<TabsOptions>);
|
|
1617
|
+
static get defaults(): TabsOptions;
|
|
1618
|
+
/**
|
|
1619
|
+
* Initializes instance of Tabs.
|
|
1620
|
+
* @param el HTML element.
|
|
1621
|
+
* @param options Component options.
|
|
1622
|
+
*/
|
|
1623
|
+
static init(el: HTMLElement, options?: Partial<TabsOptions>): Tabs;
|
|
1624
|
+
/**
|
|
1625
|
+
* Initializes instances of Tabs.
|
|
1626
|
+
* @param els HTML elements.
|
|
1627
|
+
* @param options Component options.
|
|
1628
|
+
*/
|
|
1629
|
+
static init(els: InitElements<MElement>, options?: Partial<TabsOptions>): Tabs[];
|
|
1630
|
+
static getInstance(el: HTMLElement): Tabs;
|
|
1631
|
+
destroy(): void;
|
|
1632
|
+
/**
|
|
1633
|
+
* The index of tab that is currently shown.
|
|
1634
|
+
*/
|
|
1635
|
+
get index(): number;
|
|
1636
|
+
_setupEventHandlers(): void;
|
|
1637
|
+
_removeEventHandlers(): void;
|
|
1638
|
+
_handleWindowResize: () => void;
|
|
1639
|
+
_handleTabClick: (e: MouseEvent) => void;
|
|
1640
|
+
_createIndicator(): void;
|
|
1641
|
+
_setupActiveTabLink(): void;
|
|
1642
|
+
_setupSwipeableTabs(): void;
|
|
1643
|
+
_teardownSwipeableTabs(): void;
|
|
1644
|
+
_setupNormalTabs(): void;
|
|
1645
|
+
_teardownNormalTabs(): void;
|
|
1646
|
+
_setTabsAndTabWidth(): void;
|
|
1647
|
+
_calcRightPos(el: any): number;
|
|
1648
|
+
_calcLeftPos(el: any): number;
|
|
1649
|
+
/**
|
|
1650
|
+
* Recalculate tab indicator position. This is useful when
|
|
1651
|
+
* the indicator position is not correct.
|
|
1652
|
+
*/
|
|
1653
|
+
updateTabIndicator(): void;
|
|
1654
|
+
_animateIndicator(prevIndex: any): void;
|
|
1655
|
+
/**
|
|
1656
|
+
* Show tab content that corresponds to the tab with the id.
|
|
1657
|
+
* @param tabId The id of the tab that you want to switch to.
|
|
1658
|
+
*/
|
|
1659
|
+
select(tabId: string): void;
|
|
1660
|
+
}
|
|
1661
|
+
|
|
1662
|
+
type Views = 'hours' | 'minutes';
|
|
1663
|
+
interface TimepickerOptions extends BaseOptions$1 {
|
|
1664
|
+
/**
|
|
1665
|
+
* Dial radius.
|
|
1666
|
+
* @default 135
|
|
1667
|
+
*/
|
|
1668
|
+
dialRadius: number;
|
|
1669
|
+
/**
|
|
1670
|
+
* Outer radius.
|
|
1671
|
+
* @default 105
|
|
1672
|
+
*/
|
|
1673
|
+
outerRadius: number;
|
|
1674
|
+
/**
|
|
1675
|
+
* Inner radius.
|
|
1676
|
+
* @default 70
|
|
1677
|
+
*/
|
|
1678
|
+
innerRadius: number;
|
|
1679
|
+
/**
|
|
1680
|
+
* Tick radius.
|
|
1681
|
+
* @default 20
|
|
1682
|
+
*/
|
|
1683
|
+
tickRadius: number;
|
|
1684
|
+
/**
|
|
1685
|
+
* Duration of the transition from/to the hours/minutes view.
|
|
1686
|
+
* @default 350
|
|
1687
|
+
*/
|
|
1688
|
+
duration: number;
|
|
1689
|
+
/**
|
|
1690
|
+
* Specify a DOM element OR selector for a DOM element to render
|
|
1691
|
+
* the time picker in, by default it will be placed before the input.
|
|
1692
|
+
* @default null
|
|
1693
|
+
*/
|
|
1694
|
+
container: HTMLElement | string | null;
|
|
1695
|
+
/**
|
|
1696
|
+
* Show the clear button in the Timepicker.
|
|
1697
|
+
* @default false
|
|
1698
|
+
*/
|
|
1699
|
+
showClearBtn: boolean;
|
|
1700
|
+
/**
|
|
1701
|
+
* Autosubmit timepicker selection to input field
|
|
1702
|
+
* @default true
|
|
1703
|
+
*/
|
|
1704
|
+
autoSubmit: true;
|
|
1705
|
+
/**
|
|
1706
|
+
* Default time to set on the timepicker 'now' or '13:14'.
|
|
1707
|
+
* @default 'now';
|
|
1708
|
+
*/
|
|
1709
|
+
defaultTime: string;
|
|
1710
|
+
/**
|
|
1711
|
+
* Millisecond offset from the defaultTime.
|
|
1712
|
+
* @default 0
|
|
1713
|
+
*/
|
|
1714
|
+
fromNow: number;
|
|
1715
|
+
/**
|
|
1716
|
+
* Internationalization options.
|
|
1717
|
+
*/
|
|
1718
|
+
i18n: Partial<I18nOptions>;
|
|
1719
|
+
/**
|
|
1720
|
+
* Use 12 hour AM/PM clock instead of 24 hour clock.
|
|
1721
|
+
* @default true
|
|
1722
|
+
*/
|
|
1723
|
+
twelveHour: boolean;
|
|
1724
|
+
/**
|
|
1725
|
+
* Vibrate device when dragging clock hand.
|
|
1726
|
+
* @default true
|
|
1727
|
+
*/
|
|
1728
|
+
vibrate: boolean;
|
|
1729
|
+
/**
|
|
1730
|
+
* Callback function when a time is selected.
|
|
1731
|
+
* @default null
|
|
1732
|
+
*/
|
|
1733
|
+
onSelect: (hour: number, minute: number) => void;
|
|
1734
|
+
/**
|
|
1735
|
+
* Callback function for interaction with input field.
|
|
1736
|
+
* @default null
|
|
1737
|
+
*/
|
|
1738
|
+
onInputInteraction: (() => void) | null;
|
|
1739
|
+
/**
|
|
1740
|
+
* Callback function for done.
|
|
1741
|
+
* @default null
|
|
1742
|
+
*/
|
|
1743
|
+
onDone: (() => void) | null;
|
|
1744
|
+
/**
|
|
1745
|
+
* Callback function for cancel.
|
|
1746
|
+
* @default null
|
|
1747
|
+
*/
|
|
1748
|
+
onCancel: (() => void) | null;
|
|
1749
|
+
/**
|
|
1750
|
+
* Display plugin
|
|
1751
|
+
*/
|
|
1752
|
+
displayPlugin: string;
|
|
1753
|
+
/**
|
|
1754
|
+
* Configurable display plugin options
|
|
1755
|
+
*/
|
|
1756
|
+
displayPluginOptions: object;
|
|
1757
|
+
}
|
|
1758
|
+
type Point = {
|
|
1759
|
+
x: number;
|
|
1760
|
+
y: number;
|
|
1761
|
+
};
|
|
1762
|
+
declare class Timepicker extends Component<TimepickerOptions> {
|
|
1763
|
+
el: HTMLInputElement;
|
|
1764
|
+
id: string;
|
|
1765
|
+
containerEl: HTMLElement;
|
|
1766
|
+
plate: HTMLElement;
|
|
1767
|
+
digitalClock: HTMLElement;
|
|
1768
|
+
inputHours: HTMLInputElement;
|
|
1769
|
+
inputMinutes: HTMLInputElement;
|
|
1770
|
+
x0: number;
|
|
1771
|
+
y0: number;
|
|
1772
|
+
moved: boolean;
|
|
1773
|
+
dx: number;
|
|
1774
|
+
dy: number;
|
|
1775
|
+
/**
|
|
1776
|
+
* Current view on the timepicker.
|
|
1777
|
+
* @default 'hours'
|
|
1778
|
+
*/
|
|
1779
|
+
currentView: Views;
|
|
1780
|
+
hand: SVGElement;
|
|
1781
|
+
minutesView: HTMLElement;
|
|
1782
|
+
hours: number;
|
|
1783
|
+
minutes: number;
|
|
1784
|
+
/** The selected time. */
|
|
1785
|
+
time: string;
|
|
1786
|
+
/**
|
|
1787
|
+
* If the time is AM or PM on twelve-hour clock.
|
|
1788
|
+
* @default 'PM'
|
|
1789
|
+
*/
|
|
1790
|
+
amOrPm: 'AM' | 'PM';
|
|
1791
|
+
static _template: any;
|
|
1792
|
+
/** Vibrate device when dragging clock hand. */
|
|
1793
|
+
vibrate: 'vibrate' | 'webkitVibrate' | null;
|
|
1794
|
+
_canvas: HTMLElement;
|
|
1795
|
+
hoursView: HTMLElement;
|
|
1796
|
+
spanAmPm: HTMLSpanElement;
|
|
1797
|
+
footer: HTMLElement;
|
|
1798
|
+
private _amBtn;
|
|
1799
|
+
private _pmBtn;
|
|
1800
|
+
bg: Element;
|
|
1801
|
+
bearing: Element;
|
|
1802
|
+
g: Element;
|
|
1803
|
+
toggleViewTimer: string | number | NodeJS.Timeout;
|
|
1804
|
+
vibrateTimer: NodeJS.Timeout | number;
|
|
1805
|
+
private displayPlugin;
|
|
1806
|
+
constructor(el: HTMLInputElement, options: Partial<TimepickerOptions>);
|
|
1807
|
+
static get defaults(): TimepickerOptions;
|
|
1808
|
+
/**
|
|
1809
|
+
* Initializes instance of Timepicker.
|
|
1810
|
+
* @param el HTML element.
|
|
1811
|
+
* @param options Component options.
|
|
1812
|
+
*/
|
|
1813
|
+
static init(el: HTMLInputElement, options?: Partial<TimepickerOptions>): Timepicker;
|
|
1814
|
+
/**
|
|
1815
|
+
* Initializes instances of Timepicker.
|
|
1816
|
+
* @param els HTML elements.
|
|
1817
|
+
* @param options Component options.
|
|
1818
|
+
*/
|
|
1819
|
+
static init(els: InitElements<HTMLInputElement | MElement>, options?: Partial<TimepickerOptions>): Timepicker[];
|
|
1820
|
+
static _addLeadingZero(num: number): string;
|
|
1821
|
+
static _createSVGEl(name: string): SVGElement;
|
|
1822
|
+
static _Pos(e: TouchEvent | MouseEvent): Point;
|
|
1823
|
+
static getInstance(el: HTMLElement): Timepicker;
|
|
1824
|
+
destroy(): void;
|
|
1825
|
+
_setupEventHandlers(): void;
|
|
1826
|
+
_removeEventHandlers(): void;
|
|
1827
|
+
_handleInputClick: () => void;
|
|
1828
|
+
_handleInputKeydown: (e: KeyboardEvent) => void;
|
|
1829
|
+
_handleTimeInputEnterKey: (e: KeyboardEvent) => void;
|
|
1830
|
+
_handleClockClickStart: (e: any) => void;
|
|
1831
|
+
_handleDocumentClickMove: (e: any) => void;
|
|
1832
|
+
_handleDocumentClickEnd: (e: any) => void;
|
|
1833
|
+
_insertHTMLIntoDOM(): void;
|
|
1834
|
+
_setupVariables(): void;
|
|
1835
|
+
_pickerSetup(): void;
|
|
1836
|
+
private _setupDisplayPlugin;
|
|
1837
|
+
_clockSetup(): void;
|
|
1838
|
+
_buildSVGClock(): void;
|
|
1839
|
+
_buildHoursView(): void;
|
|
1840
|
+
_buildHoursTick(i: number, radian: number, radius: number): void;
|
|
1841
|
+
_buildMinutesView(): void;
|
|
1842
|
+
_handleAmPmClick: (e: MouseEvent) => void;
|
|
1843
|
+
_handleAmPmKeypress: (e: KeyboardEvent) => void;
|
|
1844
|
+
_handleAmPmInteraction: (e: HTMLElement) => void;
|
|
1845
|
+
_updateAmPmView(): void;
|
|
1846
|
+
_updateTimeFromInput(): void;
|
|
1847
|
+
/**
|
|
1848
|
+
* Show hours or minutes view on timepicker.
|
|
1849
|
+
* @param view The name of the view you want to switch to, 'hours' or 'minutes'.
|
|
1850
|
+
* @param delay
|
|
1851
|
+
*/
|
|
1852
|
+
showView: (view: Views, delay?: number) => void;
|
|
1853
|
+
resetClock(delay: any): void;
|
|
1854
|
+
_inputFromTextField: () => void;
|
|
1855
|
+
drawClockFromTimeInput(value: any, isHours: any): void;
|
|
1856
|
+
setHand(x: any, y: any, roundBy5?: boolean): void;
|
|
1857
|
+
setClockAttributes(radian: number, radius: number): void;
|
|
1858
|
+
formatHours(): void;
|
|
1859
|
+
formatMinutes(): void;
|
|
1860
|
+
setHoursDefault(): void;
|
|
1861
|
+
done: (clearValue?: any) => void;
|
|
1862
|
+
confirm: () => void;
|
|
1863
|
+
cancel: () => void;
|
|
1864
|
+
clear: () => void;
|
|
1865
|
+
open(): this;
|
|
1866
|
+
close(): this;
|
|
1867
|
+
}
|
|
1868
|
+
|
|
1869
|
+
interface ToastOptions extends BaseOptions$1 {
|
|
1870
|
+
/**
|
|
1871
|
+
* The content of the Toast.
|
|
1872
|
+
* @default ""
|
|
1873
|
+
*/
|
|
1874
|
+
text: string;
|
|
1875
|
+
/**
|
|
1876
|
+
* Element Id for the tooltip.
|
|
1877
|
+
* @default ""
|
|
1878
|
+
*/
|
|
1879
|
+
toastId?: string;
|
|
1880
|
+
/**
|
|
1881
|
+
* Length in ms the Toast stays before dismissal.
|
|
1882
|
+
* @default 4000
|
|
1883
|
+
*/
|
|
1884
|
+
displayLength: number;
|
|
1885
|
+
/**
|
|
1886
|
+
* Transition in duration in milliseconds.
|
|
1887
|
+
* @default 300
|
|
1888
|
+
*/
|
|
1889
|
+
inDuration: number;
|
|
1890
|
+
/**
|
|
1891
|
+
* Transition out duration in milliseconds.
|
|
1892
|
+
* @default 375
|
|
1893
|
+
*/
|
|
1894
|
+
outDuration: number;
|
|
1895
|
+
/**
|
|
1896
|
+
* Classes to be added to the toast element.
|
|
1897
|
+
* @default ""
|
|
1898
|
+
*/
|
|
1899
|
+
classes: string;
|
|
1900
|
+
/**
|
|
1901
|
+
* Callback function called when toast is dismissed.
|
|
1902
|
+
* @default null
|
|
1903
|
+
*/
|
|
1904
|
+
completeCallback: () => void;
|
|
1905
|
+
/**
|
|
1906
|
+
* The percentage of the toast's width it takes fora drag
|
|
1907
|
+
* to dismiss a Toast.
|
|
1908
|
+
* @default 0.8
|
|
1909
|
+
*/
|
|
1910
|
+
activationPercent: number;
|
|
1911
|
+
}
|
|
1912
|
+
declare class Toast {
|
|
1913
|
+
/** The toast element. */
|
|
1914
|
+
el: HTMLElement;
|
|
1915
|
+
/**
|
|
1916
|
+
* The remaining amount of time in ms that the toast
|
|
1917
|
+
* will stay before dismissal.
|
|
1918
|
+
*/
|
|
1919
|
+
timeRemaining: number;
|
|
1920
|
+
/**
|
|
1921
|
+
* Describes the current pan state of the Toast.
|
|
1922
|
+
*/
|
|
1923
|
+
panning: boolean;
|
|
1924
|
+
options: ToastOptions;
|
|
1925
|
+
message: string;
|
|
1926
|
+
counterInterval: NodeJS.Timeout | number;
|
|
1927
|
+
wasSwiped: boolean;
|
|
1928
|
+
startingXPos: number;
|
|
1929
|
+
xPos: number;
|
|
1930
|
+
time: number;
|
|
1931
|
+
deltaX: number;
|
|
1932
|
+
velocityX: number;
|
|
1933
|
+
static _toasts: Toast[];
|
|
1934
|
+
static _container: HTMLElement;
|
|
1935
|
+
static _draggedToast: Toast;
|
|
1936
|
+
constructor(options: Partial<ToastOptions>);
|
|
1937
|
+
static get defaults(): ToastOptions;
|
|
1938
|
+
static getInstance(el: HTMLElement): Toast;
|
|
1939
|
+
static _createContainer(): void;
|
|
1940
|
+
static _removeContainer(): void;
|
|
1941
|
+
static _onDragStart(e: TouchEvent | MouseEvent): void;
|
|
1942
|
+
static _onDragMove(e: TouchEvent | MouseEvent): void;
|
|
1943
|
+
static _onDragEnd(): void;
|
|
1944
|
+
static _xPos(e: TouchEvent | MouseEvent): number;
|
|
1945
|
+
/**
|
|
1946
|
+
* dismiss all toasts.
|
|
1947
|
+
*/
|
|
1948
|
+
static dismissAll(): void;
|
|
1949
|
+
_createToast(): HTMLElement;
|
|
1950
|
+
_animateIn(): void;
|
|
1951
|
+
/**
|
|
1952
|
+
* Create setInterval which automatically removes toast when timeRemaining >= 0
|
|
1953
|
+
* has been reached.
|
|
1954
|
+
*/
|
|
1955
|
+
_setTimer(): void;
|
|
1956
|
+
/**
|
|
1957
|
+
* Dismiss toast with animation.
|
|
1958
|
+
*/
|
|
1959
|
+
dismiss(): void;
|
|
1960
|
+
}
|
|
1961
|
+
|
|
1962
|
+
type TooltipPosition = 'top' | 'right' | 'bottom' | 'left';
|
|
1963
|
+
interface TooltipOptions extends BaseOptions$1 {
|
|
1964
|
+
/**
|
|
1965
|
+
* Delay time before tooltip disappears.
|
|
1966
|
+
* @default 200
|
|
1967
|
+
*/
|
|
1968
|
+
exitDelay: number;
|
|
1969
|
+
/**
|
|
1970
|
+
* Delay time before tooltip appears.
|
|
1971
|
+
* @default 0
|
|
1972
|
+
*/
|
|
1973
|
+
enterDelay: number;
|
|
1974
|
+
/**
|
|
1975
|
+
* Element Id for the tooltip.
|
|
1976
|
+
* @default ""
|
|
1977
|
+
*/
|
|
1978
|
+
tooltipId?: string;
|
|
1979
|
+
/**
|
|
1980
|
+
* Text string for the tooltip.
|
|
1981
|
+
* @default ""
|
|
1982
|
+
*/
|
|
1983
|
+
text: string;
|
|
1984
|
+
/**
|
|
1985
|
+
* Set distance tooltip appears away from its activator
|
|
1986
|
+
* excluding transitionMovement.
|
|
1987
|
+
* @default 5
|
|
1988
|
+
*/
|
|
1989
|
+
margin: number;
|
|
1990
|
+
/**
|
|
1991
|
+
* Enter transition duration.
|
|
1992
|
+
* @default 300
|
|
1993
|
+
*/
|
|
1994
|
+
inDuration: number;
|
|
1995
|
+
/**
|
|
1996
|
+
* Opacity of the tooltip.
|
|
1997
|
+
* @default 1
|
|
1998
|
+
*/
|
|
1999
|
+
opacity: number;
|
|
2000
|
+
/**
|
|
2001
|
+
* Exit transition duration.
|
|
2002
|
+
* @default 250
|
|
2003
|
+
*/
|
|
2004
|
+
outDuration: number;
|
|
2005
|
+
/**
|
|
2006
|
+
* Set the direction of the tooltip.
|
|
2007
|
+
* @default 'bottom'
|
|
2008
|
+
*/
|
|
2009
|
+
position: TooltipPosition;
|
|
2010
|
+
/**
|
|
2011
|
+
* Amount in px that the tooltip moves during its transition.
|
|
2012
|
+
* @default 10
|
|
2013
|
+
*/
|
|
2014
|
+
transitionMovement: number;
|
|
2015
|
+
}
|
|
2016
|
+
declare class Tooltip extends Component<TooltipOptions> {
|
|
2017
|
+
/**
|
|
2018
|
+
* If tooltip is open.
|
|
2019
|
+
*/
|
|
2020
|
+
isOpen: boolean;
|
|
2021
|
+
/**
|
|
2022
|
+
* If tooltip is hovered.
|
|
2023
|
+
*/
|
|
2024
|
+
isHovered: boolean;
|
|
2025
|
+
/**
|
|
2026
|
+
* If tooltip is focused.
|
|
2027
|
+
*/
|
|
2028
|
+
isFocused: boolean;
|
|
2029
|
+
tooltipEl: HTMLElement;
|
|
2030
|
+
private _exitDelayTimeout;
|
|
2031
|
+
private _enterDelayTimeout;
|
|
2032
|
+
xMovement: number;
|
|
2033
|
+
yMovement: number;
|
|
2034
|
+
constructor(el: HTMLElement, options: Partial<TooltipOptions>);
|
|
2035
|
+
static get defaults(): TooltipOptions;
|
|
2036
|
+
/**
|
|
2037
|
+
* Initializes instance of Tooltip.
|
|
2038
|
+
* @param el HTML element.
|
|
2039
|
+
* @param options Component options.
|
|
2040
|
+
*/
|
|
2041
|
+
static init(el: HTMLElement, options?: Partial<TooltipOptions>): Tooltip;
|
|
2042
|
+
/**
|
|
2043
|
+
* Initializes instances of Tooltip.
|
|
2044
|
+
* @param els HTML elements.
|
|
2045
|
+
* @param options Component options.
|
|
2046
|
+
*/
|
|
2047
|
+
static init(els: InitElements<MElement>, options?: Partial<TooltipOptions>): Tooltip[];
|
|
2048
|
+
static getInstance(el: HTMLElement): Tooltip;
|
|
2049
|
+
destroy(): void;
|
|
2050
|
+
_appendTooltipEl(): void;
|
|
2051
|
+
_setTooltipContent(tooltipContentEl: HTMLElement): void;
|
|
2052
|
+
_updateTooltipContent(): void;
|
|
2053
|
+
_setupEventHandlers(): void;
|
|
2054
|
+
_removeEventHandlers(): void;
|
|
2055
|
+
/**
|
|
2056
|
+
* Show tooltip.
|
|
2057
|
+
*/
|
|
2058
|
+
open: (isManual: boolean) => void;
|
|
2059
|
+
/**
|
|
2060
|
+
* Hide tooltip.
|
|
2061
|
+
*/
|
|
2062
|
+
close: () => void;
|
|
2063
|
+
_setExitDelayTimeout(): void;
|
|
2064
|
+
_setEnterDelayTimeout(isManual: any): void;
|
|
2065
|
+
_positionTooltip(): void;
|
|
2066
|
+
_repositionWithinScreen(x: number, y: number, width: number, height: number): {
|
|
2067
|
+
x: number;
|
|
2068
|
+
y: number;
|
|
2069
|
+
};
|
|
2070
|
+
_animateIn(): void;
|
|
2071
|
+
_animateOut(): void;
|
|
2072
|
+
_handleMouseEnter: () => void;
|
|
2073
|
+
_handleMouseLeave: () => void;
|
|
2074
|
+
_handleFocus: () => void;
|
|
2075
|
+
_handleBlur: () => void;
|
|
2076
|
+
_getAttributeOptions(): Partial<TooltipOptions>;
|
|
2077
|
+
}
|
|
2078
|
+
|
|
2079
|
+
interface RangeOptions extends BaseOptions$1 {
|
|
2080
|
+
}
|
|
2081
|
+
declare class Range extends Component<RangeOptions> {
|
|
2082
|
+
el: HTMLInputElement;
|
|
2083
|
+
private _mousedown;
|
|
2084
|
+
value: HTMLElement;
|
|
2085
|
+
thumb: HTMLElement;
|
|
2086
|
+
constructor(el: HTMLInputElement, options: Partial<RangeOptions>);
|
|
2087
|
+
static get defaults(): RangeOptions;
|
|
2088
|
+
/**
|
|
2089
|
+
* Initializes instance of Range.
|
|
2090
|
+
* @param el HTML element.
|
|
2091
|
+
* @param options Component options.
|
|
2092
|
+
*/
|
|
2093
|
+
static init(el: HTMLInputElement, options?: Partial<RangeOptions>): Range;
|
|
2094
|
+
/**
|
|
2095
|
+
* Initializes instances of Range.
|
|
2096
|
+
* @param els HTML elements.
|
|
2097
|
+
* @param options Component options.
|
|
2098
|
+
*/
|
|
2099
|
+
static init(els: InitElements<HTMLInputElement | MElement>, options?: Partial<RangeOptions>): Range[];
|
|
2100
|
+
static getInstance(el: HTMLInputElement): Range;
|
|
2101
|
+
destroy(): void;
|
|
2102
|
+
_setupEventHandlers(): void;
|
|
2103
|
+
_removeEventHandlers(): void;
|
|
2104
|
+
_handleRangeChange: () => void;
|
|
2105
|
+
_handleRangeMousedownTouchstart: (e: MouseEvent | TouchEvent) => void;
|
|
2106
|
+
_handleRangeInputMousemoveTouchmove: () => void;
|
|
2107
|
+
_handleRangeMouseupTouchend: () => void;
|
|
2108
|
+
_handleRangeBlurMouseoutTouchleave: () => void;
|
|
2109
|
+
_setupThumb(): void;
|
|
2110
|
+
_removeThumb(): void;
|
|
2111
|
+
_showRangeBubble(): void;
|
|
2112
|
+
_calcRangeOffset(): number;
|
|
2113
|
+
/**
|
|
2114
|
+
* Initializes every range input in the current document.
|
|
2115
|
+
*/
|
|
2116
|
+
static Init(): void;
|
|
2117
|
+
}
|
|
2118
|
+
|
|
2119
|
+
interface TapTargetOptions extends BaseOptions$1 {
|
|
2120
|
+
/**
|
|
2121
|
+
* Callback function called when Tap Target is opened.
|
|
2122
|
+
* @default null
|
|
2123
|
+
*/
|
|
2124
|
+
onOpen: (origin: HTMLElement) => void;
|
|
2125
|
+
/**
|
|
2126
|
+
* Callback function called when Tap Target is closed.
|
|
2127
|
+
* @default null
|
|
2128
|
+
*/
|
|
2129
|
+
onClose: (origin: HTMLElement) => void;
|
|
2130
|
+
}
|
|
2131
|
+
declare class TapTarget extends Component<TapTargetOptions> implements Openable {
|
|
2132
|
+
/**
|
|
2133
|
+
* If the tap target is open.
|
|
2134
|
+
*/
|
|
2135
|
+
isOpen: boolean;
|
|
2136
|
+
static _taptargets: TapTarget[];
|
|
2137
|
+
private wrapper;
|
|
2138
|
+
private originEl;
|
|
2139
|
+
private waveEl;
|
|
2140
|
+
private contentEl;
|
|
2141
|
+
constructor(el: HTMLElement, options: Partial<TapTargetOptions>);
|
|
2142
|
+
static get defaults(): TapTargetOptions;
|
|
2143
|
+
/**
|
|
2144
|
+
* Initializes instance of TapTarget.
|
|
2145
|
+
* @param el HTML element.
|
|
2146
|
+
* @param options Component options.
|
|
2147
|
+
*/
|
|
2148
|
+
static init(el: HTMLElement, options?: Partial<TapTargetOptions>): TapTarget;
|
|
2149
|
+
/**
|
|
2150
|
+
* Initializes instances of TapTarget.
|
|
2151
|
+
* @param els HTML elements.
|
|
2152
|
+
* @param options Component options.
|
|
2153
|
+
*/
|
|
2154
|
+
static init(els: InitElements<MElement>, options?: Partial<TapTargetOptions>): TapTarget[];
|
|
2155
|
+
static getInstance(el: HTMLElement): TapTarget;
|
|
2156
|
+
destroy(): void;
|
|
2157
|
+
_setupEventHandlers(): void;
|
|
2158
|
+
_removeEventHandlers(): void;
|
|
2159
|
+
_handleThrottledResize: () => void;
|
|
2160
|
+
_handleKeyboardInteraction: (e: KeyboardEvent) => void;
|
|
2161
|
+
_handleTargetToggle: () => void;
|
|
2162
|
+
_handleResize: () => void;
|
|
2163
|
+
_handleDocumentClick: (e: MouseEvent | TouchEvent | KeyboardEvent) => void;
|
|
2164
|
+
_setup(): void;
|
|
2165
|
+
private _offset;
|
|
2166
|
+
_calculatePositioning(): void;
|
|
2167
|
+
/**
|
|
2168
|
+
* Open Tap Target.
|
|
2169
|
+
*/
|
|
2170
|
+
open: () => void;
|
|
2171
|
+
/**
|
|
2172
|
+
* Close Tap Target.
|
|
2173
|
+
*/
|
|
2174
|
+
close: () => void;
|
|
2175
|
+
}
|
|
2176
|
+
|
|
2177
|
+
interface BaseOptions {
|
|
2178
|
+
}
|
|
2179
|
+
type InputElement = HTMLInputElement | HTMLTextAreaElement;
|
|
2180
|
+
declare class CharacterCounter extends Component<object> {
|
|
2181
|
+
el: InputElement;
|
|
2182
|
+
/** Stores the reference to the counter HTML element. */
|
|
2183
|
+
counterEl: HTMLSpanElement;
|
|
2184
|
+
/** Specifies whether the input is valid or not. */
|
|
2185
|
+
isInvalid: boolean;
|
|
2186
|
+
/** Specifies whether the input text has valid length or not. */
|
|
2187
|
+
isValidLength: boolean;
|
|
2188
|
+
constructor(el: HTMLInputElement | HTMLTextAreaElement, options: Partial<BaseOptions>);
|
|
2189
|
+
static get defaults(): BaseOptions;
|
|
2190
|
+
/**
|
|
2191
|
+
* Initializes instance of CharacterCounter.
|
|
2192
|
+
* @param el HTML element.
|
|
2193
|
+
* @param options Component options.
|
|
2194
|
+
*/
|
|
2195
|
+
static init(el: InputElement, options?: Partial<BaseOptions>): CharacterCounter;
|
|
2196
|
+
/**
|
|
2197
|
+
* Initializes instances of CharacterCounter.
|
|
2198
|
+
* @param els HTML elements.
|
|
2199
|
+
* @param options Component options.
|
|
2200
|
+
*/
|
|
2201
|
+
static init(els: InitElements<InputElement | MElement>, options?: Partial<BaseOptions>): CharacterCounter[];
|
|
2202
|
+
static getInstance(el: InputElement): CharacterCounter;
|
|
2203
|
+
destroy(): void;
|
|
2204
|
+
_setupEventHandlers(): void;
|
|
2205
|
+
_removeEventHandlers(): void;
|
|
2206
|
+
_setupCounter(): void;
|
|
2207
|
+
_removeCounter(): void;
|
|
2208
|
+
updateCounter: () => void;
|
|
2209
|
+
_validateInput(): void;
|
|
2210
|
+
}
|
|
2211
|
+
|
|
2212
|
+
declare class Edges {
|
|
2213
|
+
top: boolean;
|
|
2214
|
+
right: boolean;
|
|
2215
|
+
bottom: boolean;
|
|
2216
|
+
left: boolean;
|
|
2217
|
+
}
|
|
2218
|
+
|
|
2219
|
+
declare class Bounding {
|
|
2220
|
+
left: number;
|
|
2221
|
+
top: number;
|
|
2222
|
+
width: number;
|
|
2223
|
+
height: number;
|
|
2224
|
+
}
|
|
2225
|
+
|
|
2226
|
+
/**
|
|
2227
|
+
* Class with utilitary functions for global usage.
|
|
2228
|
+
*/
|
|
2229
|
+
declare class Utils {
|
|
2230
|
+
/** Specifies wether tab is pressed or not. */
|
|
2231
|
+
static tabPressed: boolean;
|
|
2232
|
+
/** Specifies wether there is a key pressed. */
|
|
2233
|
+
static keyDown: boolean;
|
|
2234
|
+
/**
|
|
2235
|
+
* Key maps.
|
|
2236
|
+
*/
|
|
2237
|
+
static keys: {
|
|
2238
|
+
TAB: string[];
|
|
2239
|
+
ENTER: string[];
|
|
2240
|
+
ESC: string[];
|
|
2241
|
+
BACKSPACE: string[];
|
|
2242
|
+
ARROW_UP: string[];
|
|
2243
|
+
ARROW_DOWN: string[];
|
|
2244
|
+
ARROW_LEFT: string[];
|
|
2245
|
+
ARROW_RIGHT: string[];
|
|
2246
|
+
DELETE: string[];
|
|
2247
|
+
};
|
|
2248
|
+
/**
|
|
2249
|
+
* Detects when a key is pressed.
|
|
2250
|
+
* @param e Event instance.
|
|
2251
|
+
*/
|
|
2252
|
+
static docHandleKeydown(e: KeyboardEvent): void;
|
|
2253
|
+
/**
|
|
2254
|
+
* Detects when a key is released.
|
|
2255
|
+
* @param e Event instance.
|
|
2256
|
+
*/
|
|
2257
|
+
static docHandleKeyup(e: KeyboardEvent): void;
|
|
2258
|
+
/**
|
|
2259
|
+
* Detects when document is focused.
|
|
2260
|
+
* @param e Event instance.
|
|
2261
|
+
*/
|
|
2262
|
+
static docHandleFocus(e: FocusEvent): void;
|
|
2263
|
+
/**
|
|
2264
|
+
* Detects when document is not focused.
|
|
2265
|
+
* @param e Event instance.
|
|
2266
|
+
*/
|
|
2267
|
+
static docHandleBlur(e: FocusEvent): void;
|
|
2268
|
+
/**
|
|
2269
|
+
* Generates a unique string identifier.
|
|
2270
|
+
*/
|
|
2271
|
+
static guid(): string;
|
|
2272
|
+
/**
|
|
2273
|
+
* Checks for exceeded edges
|
|
2274
|
+
* @param container Container element.
|
|
2275
|
+
* @param bounding Bounding rect.
|
|
2276
|
+
* @param offset Element offset.
|
|
2277
|
+
*/
|
|
2278
|
+
static checkWithinContainer(container: HTMLElement, bounding: Bounding, offset: number): Edges;
|
|
2279
|
+
/**
|
|
2280
|
+
* Checks if element can be aligned in multiple directions.
|
|
2281
|
+
* @param el Element to be inspected.
|
|
2282
|
+
* @param container Container element.
|
|
2283
|
+
* @param bounding Bounding rect.
|
|
2284
|
+
* @param offset Element offset.
|
|
2285
|
+
*/
|
|
2286
|
+
static checkPossibleAlignments(el: HTMLElement, container: HTMLElement, bounding: Bounding, offset: number): {
|
|
2287
|
+
top: boolean;
|
|
2288
|
+
right: boolean;
|
|
2289
|
+
bottom: boolean;
|
|
2290
|
+
left: boolean;
|
|
2291
|
+
spaceOnTop: number;
|
|
2292
|
+
spaceOnRight: number;
|
|
2293
|
+
spaceOnBottom: number;
|
|
2294
|
+
spaceOnLeft: number;
|
|
2295
|
+
};
|
|
2296
|
+
/**
|
|
2297
|
+
* Retrieves target element id from trigger.
|
|
2298
|
+
* @param trigger Trigger element.
|
|
2299
|
+
*/
|
|
2300
|
+
static getIdFromTrigger(trigger: HTMLElement): string;
|
|
2301
|
+
/**
|
|
2302
|
+
* Retrieves document scroll postion from top.
|
|
2303
|
+
*/
|
|
2304
|
+
static getDocumentScrollTop(): number;
|
|
2305
|
+
/**
|
|
2306
|
+
* Retrieves document scroll postion from left.
|
|
2307
|
+
*/
|
|
2308
|
+
static getDocumentScrollLeft(): number;
|
|
2309
|
+
/**
|
|
2310
|
+
* Fires the given function after a certain ammount of time.
|
|
2311
|
+
* @param func Function to be fired.
|
|
2312
|
+
* @param wait Wait time.
|
|
2313
|
+
* @param options Additional options.
|
|
2314
|
+
*/
|
|
2315
|
+
static throttle(func: (Function: object) => void, wait: number, options?: Partial<{
|
|
2316
|
+
leading: boolean;
|
|
2317
|
+
trailing: boolean;
|
|
2318
|
+
}>): (...args: any[]) => any;
|
|
2319
|
+
/**
|
|
2320
|
+
* Renders confirm/close buttons with callback function
|
|
2321
|
+
*/
|
|
2322
|
+
static createConfirmationContainer(container: HTMLElement, confirmText: string, cancelText: string, onConfirm: (Function: object) => void, onCancel: (Function: object) => void): void;
|
|
2323
|
+
/**
|
|
2324
|
+
* Renders a button with optional callback function
|
|
2325
|
+
*/
|
|
2326
|
+
static createButton(container: HTMLElement, text: string, className?: string[], visibility?: boolean, callback?: (Function: object) => void): void;
|
|
2327
|
+
static _setAbsolutePosition(origin: HTMLElement, container: HTMLElement, position: string, margin: number, transitionMovement: number, align?: string): {
|
|
2328
|
+
x: number;
|
|
2329
|
+
y: number;
|
|
2330
|
+
};
|
|
2331
|
+
static _repositionWithinScreen(x: number, y: number, width: number, height: number, margin: number, transitionMovement: number, align: string): {
|
|
2332
|
+
x: number;
|
|
2333
|
+
y: number;
|
|
2334
|
+
};
|
|
2335
|
+
}
|
|
2336
|
+
|
|
2337
|
+
interface ParallaxOptions extends BaseOptions$1 {
|
|
2338
|
+
/**
|
|
2339
|
+
* The minimum width of the screen, in pixels, where the parallax functionality starts working.
|
|
2340
|
+
* @default 0
|
|
2341
|
+
*/
|
|
2342
|
+
responsiveThreshold: number;
|
|
2343
|
+
}
|
|
2344
|
+
declare class Parallax extends Component<ParallaxOptions> {
|
|
2345
|
+
private _enabled;
|
|
2346
|
+
private _img;
|
|
2347
|
+
static _parallaxes: Parallax[];
|
|
2348
|
+
static _handleScrollThrottled: () => Utils;
|
|
2349
|
+
static _handleWindowResizeThrottled: () => Utils;
|
|
2350
|
+
constructor(el: HTMLElement, options: Partial<ParallaxOptions>);
|
|
2351
|
+
static get defaults(): ParallaxOptions;
|
|
2352
|
+
/**
|
|
2353
|
+
* Initializes instance of Parallax.
|
|
2354
|
+
* @param el HTML element.
|
|
2355
|
+
* @param options Component options.
|
|
2356
|
+
*/
|
|
2357
|
+
static init(el: HTMLElement, options?: Partial<ParallaxOptions>): Parallax;
|
|
2358
|
+
/**
|
|
2359
|
+
* Initializes instances of Parallax.
|
|
2360
|
+
* @param els HTML elements.
|
|
2361
|
+
* @param options Component options.
|
|
2362
|
+
*/
|
|
2363
|
+
static init(els: InitElements<MElement>, options?: Partial<ParallaxOptions>): Parallax[];
|
|
2364
|
+
static getInstance(el: HTMLElement): Parallax;
|
|
2365
|
+
destroy(): void;
|
|
2366
|
+
static _handleScroll(): void;
|
|
2367
|
+
static _handleWindowResize(): void;
|
|
2368
|
+
_setupEventHandlers(): void;
|
|
2369
|
+
_removeEventHandlers(): void;
|
|
2370
|
+
_setupStyles(): void;
|
|
2371
|
+
_handleImageLoad: () => void;
|
|
2372
|
+
private _offset;
|
|
2373
|
+
_updateParallax(): void;
|
|
2374
|
+
}
|
|
2375
|
+
|
|
2376
|
+
interface PushpinOptions extends BaseOptions$1 {
|
|
2377
|
+
/**
|
|
2378
|
+
* The distance in pixels from the top of the page where
|
|
2379
|
+
* the element becomes fixed.
|
|
2380
|
+
* @default 0
|
|
2381
|
+
*/
|
|
2382
|
+
top: number;
|
|
2383
|
+
/**
|
|
2384
|
+
* The distance in pixels from the top of the page where
|
|
2385
|
+
* the elements stops being fixed.
|
|
2386
|
+
* @default Infinity
|
|
2387
|
+
*/
|
|
2388
|
+
bottom: number;
|
|
2389
|
+
/**
|
|
2390
|
+
* The offset from the top the element will be fixed at.
|
|
2391
|
+
* @default 0
|
|
2392
|
+
*/
|
|
2393
|
+
offset: number;
|
|
2394
|
+
/**
|
|
2395
|
+
* Callback function called when pushpin position changes.
|
|
2396
|
+
* You are provided with a position string.
|
|
2397
|
+
* @default null
|
|
2398
|
+
*/
|
|
2399
|
+
onPositionChange: (position: 'pinned' | 'pin-top' | 'pin-bottom') => void;
|
|
2400
|
+
}
|
|
2401
|
+
declare class Pushpin extends Component<PushpinOptions> {
|
|
2402
|
+
static _pushpins: Pushpin[];
|
|
2403
|
+
originalOffset: number;
|
|
2404
|
+
constructor(el: HTMLElement, options: Partial<PushpinOptions>);
|
|
2405
|
+
static get defaults(): PushpinOptions;
|
|
2406
|
+
/**
|
|
2407
|
+
* Initializes instance of Pushpin.
|
|
2408
|
+
* @param el HTML element.
|
|
2409
|
+
* @param options Component options.
|
|
2410
|
+
*/
|
|
2411
|
+
static init(el: HTMLElement, options?: Partial<PushpinOptions>): Pushpin;
|
|
2412
|
+
/**
|
|
2413
|
+
* Initializes instances of Pushpin.
|
|
2414
|
+
* @param els HTML elements.
|
|
2415
|
+
* @param options Component options.
|
|
2416
|
+
*/
|
|
2417
|
+
static init(els: InitElements<MElement>, options?: Partial<PushpinOptions>): Pushpin[];
|
|
2418
|
+
static getInstance(el: HTMLElement): Pushpin;
|
|
2419
|
+
destroy(): void;
|
|
2420
|
+
static _updateElements(): void;
|
|
2421
|
+
_setupEventHandlers(): void;
|
|
2422
|
+
_removeEventHandlers(): void;
|
|
2423
|
+
_updatePosition(): void;
|
|
2424
|
+
_removePinClasses(): void;
|
|
2425
|
+
}
|
|
2426
|
+
|
|
2427
|
+
interface ScrollSpyOptions extends BaseOptions$1 {
|
|
2428
|
+
/**
|
|
2429
|
+
* Throttle of scroll handler.
|
|
2430
|
+
* @default 100
|
|
2431
|
+
*/
|
|
2432
|
+
throttle: number;
|
|
2433
|
+
/**
|
|
2434
|
+
* Offset for centering element when scrolled to.
|
|
2435
|
+
* @default 200
|
|
2436
|
+
*/
|
|
2437
|
+
scrollOffset: number;
|
|
2438
|
+
/**
|
|
2439
|
+
* Class applied to active elements.
|
|
2440
|
+
* @default 'active'
|
|
2441
|
+
*/
|
|
2442
|
+
activeClass: string;
|
|
2443
|
+
/**
|
|
2444
|
+
* Used to find active element.
|
|
2445
|
+
* @default id => 'a[href="#' + id + '"]'
|
|
2446
|
+
*/
|
|
2447
|
+
getActiveElement: (id: string) => string;
|
|
2448
|
+
/**
|
|
2449
|
+
* Used to keep last top element active even if
|
|
2450
|
+
* scrollbar goes outside of scrollspy elements.
|
|
2451
|
+
*
|
|
2452
|
+
* If there is no last top element,
|
|
2453
|
+
* then the active one will be the first element.
|
|
2454
|
+
*
|
|
2455
|
+
* @default false
|
|
2456
|
+
*/
|
|
2457
|
+
keepTopElementActive: boolean;
|
|
2458
|
+
/**
|
|
2459
|
+
* Used to set scroll animation duration in milliseconds.
|
|
2460
|
+
* @default null (browser's native animation implementation/duration)
|
|
2461
|
+
*/
|
|
2462
|
+
animationDuration: number | null;
|
|
2463
|
+
}
|
|
2464
|
+
declare class ScrollSpy extends Component<ScrollSpyOptions> {
|
|
2465
|
+
static _elements: ScrollSpy[];
|
|
2466
|
+
static _count: number;
|
|
2467
|
+
static _increment: number;
|
|
2468
|
+
static _elementsInView: ScrollSpy[];
|
|
2469
|
+
static _visibleElements: HTMLElement[];
|
|
2470
|
+
static _ticks: number;
|
|
2471
|
+
static _keptTopActiveElement: HTMLElement | null;
|
|
2472
|
+
private tickId;
|
|
2473
|
+
private id;
|
|
2474
|
+
constructor(el: HTMLElement, options: Partial<ScrollSpyOptions>);
|
|
2475
|
+
static get defaults(): ScrollSpyOptions;
|
|
2476
|
+
/**
|
|
2477
|
+
* Initializes instance of ScrollSpy.
|
|
2478
|
+
* @param el HTML element.
|
|
2479
|
+
* @param options Component options.
|
|
2480
|
+
*/
|
|
2481
|
+
static init(el: HTMLElement, options?: Partial<ScrollSpyOptions>): ScrollSpy;
|
|
2482
|
+
/**
|
|
2483
|
+
* Initializes instances of ScrollSpy.
|
|
2484
|
+
* @param els HTML elements.
|
|
2485
|
+
* @param options Component options.
|
|
2486
|
+
*/
|
|
2487
|
+
static init(els: InitElements<MElement>, options?: Partial<ScrollSpyOptions>): ScrollSpy[];
|
|
2488
|
+
static getInstance(el: HTMLElement): ScrollSpy;
|
|
2489
|
+
destroy(): void;
|
|
2490
|
+
_setupEventHandlers(): void;
|
|
2491
|
+
_removeEventHandlers(): void;
|
|
2492
|
+
_handleThrottledResize: () => void;
|
|
2493
|
+
_handleTriggerClick: (e: MouseEvent) => void;
|
|
2494
|
+
_handleWindowScroll: () => void;
|
|
2495
|
+
static _offset(el: any): {
|
|
2496
|
+
top: number;
|
|
2497
|
+
left: number;
|
|
2498
|
+
};
|
|
2499
|
+
static _findElements(top: number, right: number, bottom: number, left: number): ScrollSpy[];
|
|
2500
|
+
_enter(): void;
|
|
2501
|
+
_exit(): void;
|
|
2502
|
+
private _resetKeptTopActiveElementIfNeeded;
|
|
2503
|
+
private static _getDistanceToViewport;
|
|
2504
|
+
private static _smoothScrollIntoView;
|
|
2505
|
+
}
|
|
2506
|
+
|
|
2507
|
+
type RGBColor = {
|
|
2508
|
+
r: number;
|
|
2509
|
+
g: number;
|
|
2510
|
+
b: number;
|
|
2511
|
+
};
|
|
2512
|
+
type Position = {
|
|
2513
|
+
x: number;
|
|
2514
|
+
y: number;
|
|
2515
|
+
};
|
|
2516
|
+
declare class Waves {
|
|
2517
|
+
private static _offset;
|
|
2518
|
+
static renderWaveEffect(targetElement: HTMLElement, position?: Position | null, color?: RGBColor | null): void;
|
|
2519
|
+
static Init(): void;
|
|
2520
|
+
}
|
|
2521
|
+
|
|
2522
|
+
declare const version = "2.3.0";
|
|
2523
|
+
interface AutoInitOptions {
|
|
2524
|
+
Autocomplete?: Partial<AutocompleteOptions>;
|
|
2525
|
+
Cards?: Partial<CardsOptions>;
|
|
2526
|
+
Carousel?: Partial<CarouselOptions>;
|
|
2527
|
+
Chips?: Partial<ChipsOptions>;
|
|
2528
|
+
Collapsible?: Partial<CollapsibleOptions>;
|
|
2529
|
+
Datepicker?: Partial<DatepickerOptions>;
|
|
2530
|
+
Dropdown?: Partial<DropdownOptions>;
|
|
2531
|
+
Materialbox?: Partial<MaterialboxOptions>;
|
|
2532
|
+
Modal?: Partial<ModalOptions>;
|
|
2533
|
+
Parallax?: Partial<ParallaxOptions>;
|
|
2534
|
+
Pushpin?: Partial<PushpinOptions>;
|
|
2535
|
+
ScrollSpy?: Partial<ScrollSpyOptions>;
|
|
2536
|
+
FormSelect?: Partial<FormSelectOptions>;
|
|
2537
|
+
Sidenav?: Partial<SidenavOptions>;
|
|
2538
|
+
Tabs?: Partial<TabsOptions>;
|
|
2539
|
+
TapTarget?: Partial<TapTargetOptions>;
|
|
2540
|
+
Timepicker?: Partial<TimepickerOptions>;
|
|
2541
|
+
Tooltip?: Partial<TooltipOptions>;
|
|
2542
|
+
FloatingActionButton?: Partial<FloatingActionButtonOptions>;
|
|
2543
|
+
}
|
|
2544
|
+
/**
|
|
2545
|
+
* Automatically initialize components.
|
|
2546
|
+
* @param context Root element to initialize. Defaults to `document.body`.
|
|
2547
|
+
* @param options Options for each component.
|
|
2548
|
+
*/
|
|
2549
|
+
declare function AutoInit(context?: HTMLElement, options?: Partial<AutoInitOptions>): void;
|
|
2550
|
+
|
|
2551
|
+
export { AutoInit, Autocomplete, Cards, Carousel, CharacterCounter, Chips, Collapsible, Datepicker, Dropdown, FloatingActionButton, FormSelect, Forms, Materialbox, Modal, Parallax, Pushpin, Range, ScrollSpy, Sidenav, Slider, Tabs, TapTarget, Timepicker, Toast, Tooltip, Waves, version };
|
|
2552
|
+
export type { AutoInitOptions };
|