domma-js 1.1.0 → 1.2.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/README.md +6 -0
- package/assets/types/catalogue.json +29 -29
- package/assets/types/generated/public/assets/icons/code.d.ts +236 -1
- package/assets/types/generated/src/auth.d.ts +38 -38
- package/assets/types/generated/src/avatar.d.ts +31 -31
- package/assets/types/generated/src/binding-source.d.ts +3 -3
- package/assets/types/generated/src/component-factory.d.ts +15 -15
- package/assets/types/generated/src/component.d.ts +4 -4
- package/assets/types/generated/src/components/back-to-top.d.ts +18 -18
- package/assets/types/generated/src/components/badge.d.ts +26 -26
- package/assets/types/generated/src/components/card.d.ts +30 -30
- package/assets/types/generated/src/components/command-palette.d.ts +69 -69
- package/assets/types/generated/src/components/dropzone.d.ts +54 -54
- package/assets/types/generated/src/components/focus-trap.d.ts +22 -22
- package/assets/types/generated/src/components/loader.d.ts +15 -15
- package/assets/types/generated/src/components/modal.d.ts +59 -59
- package/assets/types/generated/src/components/range-slider.d.ts +54 -54
- package/assets/types/generated/src/components/shared.d.ts +1 -1
- package/assets/types/generated/src/components/split-pane.d.ts +45 -45
- package/assets/types/generated/src/components/toast.d.ts +38 -38
- package/assets/types/generated/src/components/tooltip.d.ts +24 -24
- package/assets/types/generated/src/components/virtual-list.d.ts +61 -61
- package/assets/types/generated/src/config.d.ts +21 -21
- package/assets/types/generated/src/context-cursor.d.ts +6 -6
- package/assets/types/generated/src/context-menu.d.ts +72 -72
- package/assets/types/generated/src/dom.d.ts +12 -12
- package/assets/types/generated/src/effects.d.ts +154 -141
- package/assets/types/generated/src/elements.d.ts +644 -644
- package/assets/types/generated/src/flags.d.ts +38 -38
- package/assets/types/generated/src/forms.d.ts +100 -100
- package/assets/types/generated/src/globals.d.ts +6 -6
- package/assets/types/generated/src/http.d.ts +12 -12
- package/assets/types/generated/src/i18n.d.ts +8 -8
- package/assets/types/generated/src/icons.d.ts +13 -13
- package/assets/types/generated/src/index.d.ts +10 -10
- package/assets/types/generated/src/input-group.d.ts +21 -21
- package/assets/types/generated/src/models.d.ts +21 -21
- package/assets/types/generated/src/popover.d.ts +45 -45
- package/assets/types/generated/src/router.d.ts +30 -30
- package/assets/types/generated/src/sanitize.d.ts +13 -5
- package/assets/types/generated/src/schema-builder.d.ts +34 -34
- package/assets/types/generated/src/skeleton.d.ts +11 -11
- package/assets/types/generated/src/sortable.d.ts +46 -46
- package/assets/types/generated/src/tables.d.ts +75 -75
- package/assets/types/generated/src/theme.d.ts +8 -8
- package/assets/types/generated/src/treeview.d.ts +48 -48
- package/assets/types/generated/src/utils.d.ts +13 -13
- package/assets/types/generated/vendor/domma-reactive.d.ts +2 -2
- package/package.json +22 -16
- package/public/dist/bundles/domma-complete.css +53 -14
- package/public/dist/bundles/domma-data-focused.css +53 -14
- package/public/dist/bundles/domma-essentials.css +53 -14
- package/public/dist/bundles/domma-full.css +53 -14
- package/public/dist/bundles/domma-minimal.css +47 -8
- package/public/dist/domma-flags.esm.js +3 -3
- package/public/dist/domma-flags.min.js +3 -3
- package/public/dist/domma-syntax.min.js +3 -3
- package/public/dist/domma.css +42 -3
- package/public/dist/domma.esm.js +4 -4
- package/public/dist/domma.esm.js.map +1 -1
- package/public/dist/domma.min.js +4 -4
- package/public/dist/domma.min.js.map +1 -1
- package/public/dist/elements.css +3 -3
- package/public/dist/grid.css +3 -3
- package/public/dist/syntax.css +3 -3
- package/public/dist/themes/domma-themes.css +3 -3
|
@@ -229,31 +229,31 @@ export type TabsOptions = {
|
|
|
229
229
|
/**
|
|
230
230
|
* - Initially active tab index
|
|
231
231
|
*/
|
|
232
|
-
active?: number;
|
|
232
|
+
active?: number | undefined;
|
|
233
233
|
/**
|
|
234
234
|
* - Panel animation
|
|
235
235
|
*/
|
|
236
|
-
animation?: "fade" | "none";
|
|
236
|
+
animation?: "fade" | "none" | undefined;
|
|
237
237
|
/**
|
|
238
238
|
* - Animation duration in ms
|
|
239
239
|
*/
|
|
240
|
-
animationDuration?: number;
|
|
240
|
+
animationDuration?: number | undefined;
|
|
241
241
|
/**
|
|
242
242
|
* - Selector for tab items
|
|
243
243
|
*/
|
|
244
|
-
tabSelector?: string;
|
|
244
|
+
tabSelector?: string | undefined;
|
|
245
245
|
/**
|
|
246
246
|
* - Selector for tab panels
|
|
247
247
|
*/
|
|
248
|
-
panelSelector?: string;
|
|
248
|
+
panelSelector?: string | undefined;
|
|
249
249
|
/**
|
|
250
250
|
* - CSS class for the active tab
|
|
251
251
|
*/
|
|
252
|
-
activeClass?: string;
|
|
252
|
+
activeClass?: string | undefined;
|
|
253
253
|
/**
|
|
254
254
|
* - Called when the active tab changes
|
|
255
255
|
*/
|
|
256
|
-
onChange?: ((event: TabChangeEvent) => void) | null;
|
|
256
|
+
onChange?: ((event: TabChangeEvent) => void) | null | undefined;
|
|
257
257
|
};
|
|
258
258
|
/**
|
|
259
259
|
* Tabs: tab items paired by index with panels, with ARIA roles set up.
|
|
@@ -275,39 +275,39 @@ export type AccordionOptions = {
|
|
|
275
275
|
/**
|
|
276
276
|
* - Allow several panels open at once
|
|
277
277
|
*/
|
|
278
|
-
allowMultiple?: boolean;
|
|
278
|
+
allowMultiple?: boolean | undefined;
|
|
279
279
|
/**
|
|
280
280
|
* - Alias of allowMultiple (wins when set)
|
|
281
281
|
*/
|
|
282
|
-
multiExpand?: boolean | null;
|
|
282
|
+
multiExpand?: boolean | null | undefined;
|
|
283
283
|
/**
|
|
284
284
|
* - Initially open panel index(es); null keeps the markup's active class
|
|
285
285
|
*/
|
|
286
|
-
activeIndex?: number | number[] | null;
|
|
286
|
+
activeIndex?: number | number[] | null | undefined;
|
|
287
287
|
/**
|
|
288
288
|
* - Animate the height
|
|
289
289
|
*/
|
|
290
|
-
animation?: boolean;
|
|
290
|
+
animation?: boolean | undefined;
|
|
291
291
|
/**
|
|
292
292
|
* - Animation duration in ms
|
|
293
293
|
*/
|
|
294
|
-
animationDuration?: number;
|
|
294
|
+
animationDuration?: number | undefined;
|
|
295
295
|
/**
|
|
296
296
|
* - Selector for headers
|
|
297
297
|
*/
|
|
298
|
-
headerSelector?: string;
|
|
298
|
+
headerSelector?: string | undefined;
|
|
299
299
|
/**
|
|
300
300
|
* - Selector for panels (outermost matches only)
|
|
301
301
|
*/
|
|
302
|
-
contentSelector?: string;
|
|
302
|
+
contentSelector?: string | undefined;
|
|
303
303
|
/**
|
|
304
304
|
* - Class put on the open item (the header's parent)
|
|
305
305
|
*/
|
|
306
|
-
activeClass?: string;
|
|
306
|
+
activeClass?: string | undefined;
|
|
307
307
|
/**
|
|
308
308
|
* - Called when toggle() opens or closes a panel
|
|
309
309
|
*/
|
|
310
|
-
onChange?: ((event: AccordionChangeEvent) => void) | null;
|
|
310
|
+
onChange?: ((event: AccordionChangeEvent) => void) | null | undefined;
|
|
311
311
|
};
|
|
312
312
|
export type AccordionInstance = Accordion;
|
|
313
313
|
export type ListGroupVariant = "primary" | "secondary" | "success" | "danger" | "warning" | "info";
|
|
@@ -315,47 +315,47 @@ export type ListGroupOptions = {
|
|
|
315
315
|
/**
|
|
316
316
|
* - Items can be selected (role="listbox")
|
|
317
317
|
*/
|
|
318
|
-
selectable?: boolean;
|
|
318
|
+
selectable?: boolean | undefined;
|
|
319
319
|
/**
|
|
320
320
|
* - Allow several selected items at once
|
|
321
321
|
*/
|
|
322
|
-
multiSelect?: boolean;
|
|
322
|
+
multiSelect?: boolean | undefined;
|
|
323
323
|
/**
|
|
324
324
|
* - Class on selected items
|
|
325
325
|
*/
|
|
326
|
-
activeClass?: string;
|
|
326
|
+
activeClass?: string | undefined;
|
|
327
327
|
/**
|
|
328
328
|
* - Class marking disabled items
|
|
329
329
|
*/
|
|
330
|
-
disabledClass?: string;
|
|
330
|
+
disabledClass?: string | undefined;
|
|
331
331
|
/**
|
|
332
332
|
* - Selector for the items
|
|
333
333
|
*/
|
|
334
|
-
itemSelector?: string;
|
|
334
|
+
itemSelector?: string | undefined;
|
|
335
335
|
/**
|
|
336
336
|
* - Arrow keys, Home/End, Enter/Space
|
|
337
337
|
*/
|
|
338
|
-
keyboard?: boolean;
|
|
338
|
+
keyboard?: boolean | undefined;
|
|
339
339
|
/**
|
|
340
340
|
* - Keyboard navigation wraps from last to first
|
|
341
341
|
*/
|
|
342
|
-
loop?: boolean;
|
|
342
|
+
loop?: boolean | undefined;
|
|
343
343
|
/**
|
|
344
344
|
* - Focus the first enabled item on init
|
|
345
345
|
*/
|
|
346
|
-
focusOnInit?: boolean;
|
|
346
|
+
focusOnInit?: boolean | undefined;
|
|
347
347
|
/**
|
|
348
348
|
* - Selection changed; the selected items
|
|
349
349
|
*/
|
|
350
|
-
onChange?: ((selected: HTMLElement[], event: Event | null) => void) | null;
|
|
350
|
+
onChange?: ((selected: HTMLElement[], event: Event | null) => void) | null | undefined;
|
|
351
351
|
/**
|
|
352
352
|
* - An item was selected
|
|
353
353
|
*/
|
|
354
|
-
onSelect?: ((item: HTMLElement, index: number, event: Event | null) => void) | null;
|
|
354
|
+
onSelect?: ((item: HTMLElement, index: number, event: Event | null) => void) | null | undefined;
|
|
355
355
|
/**
|
|
356
356
|
* - An item was deselected
|
|
357
357
|
*/
|
|
358
|
-
onDeselect?: ((item: HTMLElement, index: number, event: Event | null) => void) | null;
|
|
358
|
+
onDeselect?: ((item: HTMLElement, index: number, event: Event | null) => void) | null | undefined;
|
|
359
359
|
};
|
|
360
360
|
/**
|
|
361
361
|
* A list group. `E.listGroup()` returns the first instance; `all()` (non-enumerable) lists every
|
|
@@ -371,15 +371,15 @@ export type DropdownItem = {
|
|
|
371
371
|
/**
|
|
372
372
|
* - Display text
|
|
373
373
|
*/
|
|
374
|
-
label?: string;
|
|
374
|
+
label?: string | undefined;
|
|
375
375
|
/**
|
|
376
376
|
* - Alternative to label
|
|
377
377
|
*/
|
|
378
|
-
text?: string;
|
|
378
|
+
text?: string | undefined;
|
|
379
379
|
/**
|
|
380
380
|
* - Alternative to label
|
|
381
381
|
*/
|
|
382
|
-
name?: string;
|
|
382
|
+
name?: string | undefined;
|
|
383
383
|
/**
|
|
384
384
|
* - Value when selected (default: the item's index)
|
|
385
385
|
*/
|
|
@@ -387,19 +387,19 @@ export type DropdownItem = {
|
|
|
387
387
|
/**
|
|
388
388
|
* - Icon HTML
|
|
389
389
|
*/
|
|
390
|
-
icon?: string;
|
|
390
|
+
icon?: string | undefined;
|
|
391
391
|
/**
|
|
392
392
|
* - Shown greyed, not selectable
|
|
393
393
|
*/
|
|
394
|
-
disabled?: boolean;
|
|
394
|
+
disabled?: boolean | undefined;
|
|
395
395
|
/**
|
|
396
396
|
* - Render as a divider
|
|
397
397
|
*/
|
|
398
|
-
divider?: boolean;
|
|
398
|
+
divider?: boolean | undefined;
|
|
399
399
|
/**
|
|
400
400
|
* - Render as a header with this text
|
|
401
401
|
*/
|
|
402
|
-
header?: string;
|
|
402
|
+
header?: string | undefined;
|
|
403
403
|
};
|
|
404
404
|
/**
|
|
405
405
|
* Passed to onSelect / `.on('select')`.
|
|
@@ -413,55 +413,55 @@ export type DropdownOptions = {
|
|
|
413
413
|
/**
|
|
414
414
|
* - 'hover' also opens on click (touch has no hover)
|
|
415
415
|
*/
|
|
416
|
-
trigger?: "click" | "hover";
|
|
416
|
+
trigger?: "click" | "hover" | undefined;
|
|
417
417
|
/**
|
|
418
418
|
* - Preferred menu position - flipped or clamped if it would open off screen
|
|
419
419
|
*/
|
|
420
|
-
position?: DropdownPosition;
|
|
420
|
+
position?: DropdownPosition | undefined;
|
|
421
421
|
/**
|
|
422
422
|
* - Position offset [x, y]
|
|
423
423
|
*/
|
|
424
|
-
offset?: [number, number];
|
|
424
|
+
offset?: [number, number] | undefined;
|
|
425
425
|
/**
|
|
426
426
|
* - Flip to the opposite side and clamp to the viewport rather than open off screen
|
|
427
427
|
*/
|
|
428
|
-
flip?: boolean;
|
|
428
|
+
flip?: boolean | undefined;
|
|
429
429
|
/**
|
|
430
430
|
* - Fade the menu
|
|
431
431
|
*/
|
|
432
|
-
animation?: boolean;
|
|
432
|
+
animation?: boolean | undefined;
|
|
433
433
|
/**
|
|
434
434
|
* - Animation duration in ms
|
|
435
435
|
*/
|
|
436
|
-
animationDuration?: number;
|
|
436
|
+
animationDuration?: number | undefined;
|
|
437
437
|
/**
|
|
438
438
|
* - ms before a hover opens the menu
|
|
439
439
|
*/
|
|
440
|
-
hoverOpenDelay?: number;
|
|
440
|
+
hoverOpenDelay?: number | undefined;
|
|
441
441
|
/**
|
|
442
442
|
* - ms of grace before a hover menu closes once the pointer has left trigger, menu and the gap between
|
|
443
443
|
*/
|
|
444
|
-
hoverCloseDelay?: number;
|
|
444
|
+
hoverCloseDelay?: number | undefined;
|
|
445
445
|
/**
|
|
446
446
|
* - Close after an item is chosen
|
|
447
447
|
*/
|
|
448
|
-
closeOnSelect?: boolean;
|
|
448
|
+
closeOnSelect?: boolean | undefined;
|
|
449
449
|
/**
|
|
450
450
|
* - Close on a click outside
|
|
451
451
|
*/
|
|
452
|
-
closeOnClickOutside?: boolean;
|
|
452
|
+
closeOnClickOutside?: boolean | undefined;
|
|
453
453
|
/**
|
|
454
454
|
* - Close on Esc and restore focus to the trigger
|
|
455
455
|
*/
|
|
456
|
-
closeOnEscape?: boolean;
|
|
456
|
+
closeOnEscape?: boolean | undefined;
|
|
457
457
|
/**
|
|
458
458
|
* - Opening this dropdown closes any other open one
|
|
459
459
|
*/
|
|
460
|
-
closeOthers?: boolean;
|
|
460
|
+
closeOthers?: boolean | undefined;
|
|
461
461
|
/**
|
|
462
462
|
* - Menu items
|
|
463
463
|
*/
|
|
464
|
-
items?: (
|
|
464
|
+
items?: (string | DropdownItem)[] | undefined;
|
|
465
465
|
/**
|
|
466
466
|
* - A Domma Model holding the items array (with modelKey)
|
|
467
467
|
*/
|
|
@@ -469,66 +469,66 @@ export type DropdownOptions = {
|
|
|
469
469
|
/**
|
|
470
470
|
* - Model key for the items array
|
|
471
471
|
*/
|
|
472
|
-
modelKey?: string | null;
|
|
472
|
+
modelKey?: string | null | undefined;
|
|
473
473
|
/**
|
|
474
474
|
* - Model key the selected value is written to (default `<modelKey>_selected`)
|
|
475
475
|
*/
|
|
476
|
-
selectedKey?: string;
|
|
476
|
+
selectedKey?: string | undefined;
|
|
477
477
|
/**
|
|
478
478
|
* - Item HTML for object items
|
|
479
479
|
*/
|
|
480
|
-
itemTemplate?: ((item: DropdownItem, index: number) => string) | null;
|
|
480
|
+
itemTemplate?: ((item: DropdownItem, index: number) => string) | null | undefined;
|
|
481
481
|
/**
|
|
482
482
|
* - Return false to keep it closed
|
|
483
483
|
*/
|
|
484
|
-
onBeforeOpen?: ((dropdown: DropdownInstance) => boolean | void) | null;
|
|
484
|
+
onBeforeOpen?: ((dropdown: DropdownInstance) => boolean | void) | null | undefined;
|
|
485
485
|
/**
|
|
486
486
|
* - Menu opened
|
|
487
487
|
*/
|
|
488
|
-
onOpen?: ((dropdown: DropdownInstance) => void) | null;
|
|
488
|
+
onOpen?: ((dropdown: DropdownInstance) => void) | null | undefined;
|
|
489
489
|
/**
|
|
490
490
|
* - Return false to keep it open
|
|
491
491
|
*/
|
|
492
|
-
onBeforeClose?: ((dropdown: DropdownInstance) => boolean | void) | null;
|
|
492
|
+
onBeforeClose?: ((dropdown: DropdownInstance) => boolean | void) | null | undefined;
|
|
493
493
|
/**
|
|
494
494
|
* - Menu closed
|
|
495
495
|
*/
|
|
496
|
-
onClose?: ((dropdown: DropdownInstance) => void) | null;
|
|
496
|
+
onClose?: ((dropdown: DropdownInstance) => void) | null | undefined;
|
|
497
497
|
/**
|
|
498
498
|
* - An item was chosen
|
|
499
499
|
*/
|
|
500
|
-
onSelect?: ((event: DropdownSelectEvent, dropdown: DropdownInstance) => void) | null;
|
|
500
|
+
onSelect?: ((event: DropdownSelectEvent, dropdown: DropdownInstance) => void) | null | undefined;
|
|
501
501
|
};
|
|
502
502
|
export type DropdownInstance = Dropdown;
|
|
503
503
|
export type DesktopNotificationOptions = {
|
|
504
504
|
/**
|
|
505
505
|
* - Notification title
|
|
506
506
|
*/
|
|
507
|
-
title?: string;
|
|
507
|
+
title?: string | undefined;
|
|
508
508
|
/**
|
|
509
509
|
* - Body text
|
|
510
510
|
*/
|
|
511
|
-
body?: string;
|
|
511
|
+
body?: string | undefined;
|
|
512
512
|
/**
|
|
513
513
|
* - Icon URL
|
|
514
514
|
*/
|
|
515
|
-
icon?: string | null;
|
|
515
|
+
icon?: string | null | undefined;
|
|
516
516
|
/**
|
|
517
517
|
* - Badge URL
|
|
518
518
|
*/
|
|
519
|
-
badge?: string | null;
|
|
519
|
+
badge?: string | null | undefined;
|
|
520
520
|
/**
|
|
521
521
|
* - Tag: a new notification with the same tag replaces the old one
|
|
522
522
|
*/
|
|
523
|
-
tag?: string | null;
|
|
523
|
+
tag?: string | null | undefined;
|
|
524
524
|
/**
|
|
525
525
|
* - Stay until the user dismisses it
|
|
526
526
|
*/
|
|
527
|
-
requireInteraction?: boolean;
|
|
527
|
+
requireInteraction?: boolean | undefined;
|
|
528
528
|
/**
|
|
529
529
|
* - No sound or vibration
|
|
530
530
|
*/
|
|
531
|
-
silent?: boolean;
|
|
531
|
+
silent?: boolean | undefined;
|
|
532
532
|
/**
|
|
533
533
|
* - Data kept on the native notification
|
|
534
534
|
*/
|
|
@@ -536,77 +536,77 @@ export type DesktopNotificationOptions = {
|
|
|
536
536
|
/**
|
|
537
537
|
* - Notification clicked
|
|
538
538
|
*/
|
|
539
|
-
onClick?: ((event: Event, notification: DesktopNotification) => void) | null;
|
|
539
|
+
onClick?: ((event: Event, notification: DesktopNotification) => void) | null | undefined;
|
|
540
540
|
/**
|
|
541
541
|
* - Notification closed
|
|
542
542
|
*/
|
|
543
|
-
onClose?: ((event: Event, notification: DesktopNotification) => void) | null;
|
|
543
|
+
onClose?: ((event: Event, notification: DesktopNotification) => void) | null | undefined;
|
|
544
544
|
/**
|
|
545
545
|
* - Unsupported, permission denied, or the native notification failed
|
|
546
546
|
*/
|
|
547
|
-
onError?: ((error: Error | Event, notification?: DesktopNotification) => void) | null;
|
|
547
|
+
onError?: ((error: Error | Event, notification?: DesktopNotification) => void) | null | undefined;
|
|
548
548
|
/**
|
|
549
549
|
* - Notification shown
|
|
550
550
|
*/
|
|
551
|
-
onShow?: ((event: Event, notification: DesktopNotification) => void) | null;
|
|
551
|
+
onShow?: ((event: Event, notification: DesktopNotification) => void) | null | undefined;
|
|
552
552
|
};
|
|
553
553
|
export type TimerOptions = {
|
|
554
554
|
/**
|
|
555
555
|
* - Countdown length in ms
|
|
556
556
|
*/
|
|
557
|
-
duration?: number;
|
|
557
|
+
duration?: number | undefined;
|
|
558
558
|
/**
|
|
559
559
|
* - Start at once
|
|
560
560
|
*/
|
|
561
|
-
autoStart?: boolean;
|
|
561
|
+
autoStart?: boolean | undefined;
|
|
562
562
|
/**
|
|
563
563
|
* - Display format (case-insensitive)
|
|
564
564
|
*/
|
|
565
|
-
format?:
|
|
565
|
+
format?: string | undefined;
|
|
566
566
|
/**
|
|
567
567
|
* - Show start/pause/reset buttons
|
|
568
568
|
*/
|
|
569
|
-
showControls?: boolean;
|
|
569
|
+
showControls?: boolean | undefined;
|
|
570
570
|
/**
|
|
571
571
|
* - Tick interval in ms
|
|
572
572
|
*/
|
|
573
|
-
updateInterval?: number;
|
|
573
|
+
updateInterval?: number | undefined;
|
|
574
574
|
/**
|
|
575
575
|
* - Desktop notification on completion
|
|
576
576
|
*/
|
|
577
|
-
notification?: boolean;
|
|
577
|
+
notification?: boolean | undefined;
|
|
578
578
|
/**
|
|
579
579
|
* - Options for that notification
|
|
580
580
|
*/
|
|
581
|
-
notificationOptions?: DesktopNotificationOptions;
|
|
581
|
+
notificationOptions?: DesktopNotificationOptions | undefined;
|
|
582
582
|
/**
|
|
583
583
|
* - Play soundUrl on completion
|
|
584
584
|
*/
|
|
585
|
-
sound?: boolean;
|
|
585
|
+
sound?: boolean | undefined;
|
|
586
586
|
/**
|
|
587
587
|
* - Sound to play
|
|
588
588
|
*/
|
|
589
|
-
soundUrl?: string | null;
|
|
589
|
+
soundUrl?: string | null | undefined;
|
|
590
590
|
/**
|
|
591
591
|
* - Every tick, with the ms remaining
|
|
592
592
|
*/
|
|
593
|
-
onTick?: ((remaining: number) => void) | null;
|
|
593
|
+
onTick?: ((remaining: number) => void) | null | undefined;
|
|
594
594
|
/**
|
|
595
595
|
* - Reached zero
|
|
596
596
|
*/
|
|
597
|
-
onComplete?: (() => void) | null;
|
|
597
|
+
onComplete?: (() => void) | null | undefined;
|
|
598
598
|
/**
|
|
599
599
|
* - Started
|
|
600
600
|
*/
|
|
601
|
-
onStart?: (() => void) | null;
|
|
601
|
+
onStart?: (() => void) | null | undefined;
|
|
602
602
|
/**
|
|
603
603
|
* - Paused
|
|
604
604
|
*/
|
|
605
|
-
onPause?: (() => void) | null;
|
|
605
|
+
onPause?: (() => void) | null | undefined;
|
|
606
606
|
/**
|
|
607
607
|
* - Reset
|
|
608
608
|
*/
|
|
609
|
-
onReset?: (() => void) | null;
|
|
609
|
+
onReset?: (() => void) | null | undefined;
|
|
610
610
|
};
|
|
611
611
|
export type TimerInstance = Timer;
|
|
612
612
|
/**
|
|
@@ -616,7 +616,7 @@ export type AlarmItem = {
|
|
|
616
616
|
/**
|
|
617
617
|
* - Assigned by add() ('alarm-<n>')
|
|
618
618
|
*/
|
|
619
|
-
id?: string;
|
|
619
|
+
id?: string | undefined;
|
|
620
620
|
/**
|
|
621
621
|
* - Time of day, 'HH:MM'
|
|
622
622
|
*/
|
|
@@ -624,75 +624,75 @@ export type AlarmItem = {
|
|
|
624
624
|
/**
|
|
625
625
|
* - Shown in the notification
|
|
626
626
|
*/
|
|
627
|
-
label?: string;
|
|
628
|
-
enabled?: boolean;
|
|
627
|
+
label?: string | undefined;
|
|
628
|
+
enabled?: boolean | undefined;
|
|
629
629
|
/**
|
|
630
630
|
* - null = once; an array of day names ('monday', ...)
|
|
631
631
|
*/
|
|
632
|
-
repeat?:
|
|
632
|
+
repeat?: string[] | "daily" | "weekdays" | "weekends" | null | undefined;
|
|
633
633
|
/**
|
|
634
634
|
* - Desktop notification when it goes off
|
|
635
635
|
*/
|
|
636
|
-
notification?: boolean;
|
|
636
|
+
notification?: boolean | undefined;
|
|
637
637
|
/**
|
|
638
638
|
* - Options for that notification
|
|
639
639
|
*/
|
|
640
|
-
notificationOptions?: DesktopNotificationOptions;
|
|
640
|
+
notificationOptions?: DesktopNotificationOptions | undefined;
|
|
641
641
|
/**
|
|
642
642
|
* - Play soundUrl
|
|
643
643
|
*/
|
|
644
|
-
sound?: boolean;
|
|
645
|
-
soundUrl?: string | null;
|
|
644
|
+
sound?: boolean | undefined;
|
|
645
|
+
soundUrl?: string | null | undefined;
|
|
646
646
|
/**
|
|
647
647
|
* - Timestamp (ms) it last went off
|
|
648
648
|
*/
|
|
649
|
-
lastTriggered?: number | null;
|
|
649
|
+
lastTriggered?: number | null | undefined;
|
|
650
650
|
/**
|
|
651
651
|
* - Timestamp (ms) a snooze ends
|
|
652
652
|
*/
|
|
653
|
-
snoozedUntil?: number | null;
|
|
653
|
+
snoozedUntil?: number | null | undefined;
|
|
654
654
|
/**
|
|
655
655
|
* - Set on the copy getNextAlarm() returns
|
|
656
656
|
*/
|
|
657
|
-
nextTrigger?: Date;
|
|
657
|
+
nextTrigger?: Date | undefined;
|
|
658
658
|
};
|
|
659
659
|
export type AlarmOptions = {
|
|
660
660
|
/**
|
|
661
661
|
* - Initial alarms, used when storage holds none
|
|
662
662
|
*/
|
|
663
|
-
alarms?: AlarmItem[];
|
|
663
|
+
alarms?: AlarmItem[] | undefined;
|
|
664
664
|
/**
|
|
665
665
|
* - Not read: times are local
|
|
666
666
|
*/
|
|
667
|
-
timezone?: string;
|
|
667
|
+
timezone?: string | undefined;
|
|
668
668
|
/**
|
|
669
669
|
* - How often alarms are checked, in ms
|
|
670
670
|
*/
|
|
671
|
-
checkInterval?: number;
|
|
671
|
+
checkInterval?: number | undefined;
|
|
672
672
|
/**
|
|
673
673
|
* - localStorage key
|
|
674
674
|
*/
|
|
675
|
-
storageKey?: string;
|
|
675
|
+
storageKey?: string | undefined;
|
|
676
676
|
/**
|
|
677
677
|
* - An alarm went off
|
|
678
678
|
*/
|
|
679
|
-
onTrigger?: ((alarm: AlarmItem) => void) | null;
|
|
679
|
+
onTrigger?: ((alarm: AlarmItem) => void) | null | undefined;
|
|
680
680
|
/**
|
|
681
681
|
* - An alarm was snoozed
|
|
682
682
|
*/
|
|
683
|
-
onSnooze?: ((alarm: AlarmItem, duration: number) => void) | null;
|
|
683
|
+
onSnooze?: ((alarm: AlarmItem, duration: number) => void) | null | undefined;
|
|
684
684
|
/**
|
|
685
685
|
* - Not called by the current code
|
|
686
686
|
*/
|
|
687
|
-
onDismiss?: (() => void) | null;
|
|
687
|
+
onDismiss?: (() => void) | null | undefined;
|
|
688
688
|
/**
|
|
689
689
|
* - add() added one
|
|
690
690
|
*/
|
|
691
|
-
onAlarmAdd?: ((alarm: AlarmItem) => void) | null;
|
|
691
|
+
onAlarmAdd?: ((alarm: AlarmItem) => void) | null | undefined;
|
|
692
692
|
/**
|
|
693
693
|
* - removeAlarm() removed one
|
|
694
694
|
*/
|
|
695
|
-
onAlarmRemove?: ((alarm: AlarmItem) => void) | null;
|
|
695
|
+
onAlarmRemove?: ((alarm: AlarmItem) => void) | null | undefined;
|
|
696
696
|
};
|
|
697
697
|
export type AlarmInstance = Alarm;
|
|
698
698
|
/**
|
|
@@ -707,59 +707,59 @@ export type CarouselOptions = {
|
|
|
707
707
|
/**
|
|
708
708
|
* - Advance on a timer
|
|
709
709
|
*/
|
|
710
|
-
autoplay?: boolean;
|
|
710
|
+
autoplay?: boolean | undefined;
|
|
711
711
|
/**
|
|
712
712
|
* - Autoplay interval in ms
|
|
713
713
|
*/
|
|
714
|
-
interval?: number;
|
|
714
|
+
interval?: number | undefined;
|
|
715
715
|
/**
|
|
716
716
|
* - Pause autoplay on hover
|
|
717
717
|
*/
|
|
718
|
-
pauseOnHover?: boolean;
|
|
718
|
+
pauseOnHover?: boolean | undefined;
|
|
719
719
|
/**
|
|
720
720
|
* - Wrap from the last slide to the first
|
|
721
721
|
*/
|
|
722
|
-
loop?: boolean;
|
|
722
|
+
loop?: boolean | undefined;
|
|
723
723
|
/**
|
|
724
724
|
* - 'slide' (track translate), 'fade' (clean swap), or 'crossfade' (overlapping opacity)
|
|
725
725
|
*/
|
|
726
|
-
animation?: "
|
|
726
|
+
animation?: "fade" | "slide" | "crossfade" | undefined;
|
|
727
727
|
/**
|
|
728
728
|
* - Animation duration in ms
|
|
729
729
|
*/
|
|
730
|
-
animationDuration?: number;
|
|
730
|
+
animationDuration?: number | undefined;
|
|
731
731
|
/**
|
|
732
732
|
* - Any CSS timing function ('ease', 'linear', 'ease-in-out', 'cubic-bezier(...)' etc.)
|
|
733
733
|
*/
|
|
734
|
-
animationEasing?: string;
|
|
734
|
+
animationEasing?: string | undefined;
|
|
735
735
|
/**
|
|
736
736
|
* - Image carousels: 'crop' = the shortest image, 'average' = halfway between shortest and tallest
|
|
737
737
|
*/
|
|
738
|
-
heightMode?: "crop" | "average";
|
|
738
|
+
heightMode?: "crop" | "average" | undefined;
|
|
739
739
|
/**
|
|
740
740
|
* - Fixed viewport height in px
|
|
741
741
|
*/
|
|
742
|
-
height?: number | null;
|
|
742
|
+
height?: number | null | undefined;
|
|
743
743
|
/**
|
|
744
744
|
* - Previous / next arrows
|
|
745
745
|
*/
|
|
746
|
-
showArrows?: boolean;
|
|
746
|
+
showArrows?: boolean | undefined;
|
|
747
747
|
/**
|
|
748
748
|
* - Indicator dots
|
|
749
749
|
*/
|
|
750
|
-
showIndicators?: boolean;
|
|
750
|
+
showIndicators?: boolean | undefined;
|
|
751
751
|
/**
|
|
752
752
|
* - Selector for slides
|
|
753
753
|
*/
|
|
754
|
-
slideSelector?: string;
|
|
754
|
+
slideSelector?: string | undefined;
|
|
755
755
|
/**
|
|
756
756
|
* - Class on the active slide
|
|
757
757
|
*/
|
|
758
|
-
activeClass?: string;
|
|
758
|
+
activeClass?: string | undefined;
|
|
759
759
|
/**
|
|
760
760
|
* - The slide changed
|
|
761
761
|
*/
|
|
762
|
-
onChange?: ((event: CarouselChangeEvent) => void) | null;
|
|
762
|
+
onChange?: ((event: CarouselChangeEvent) => void) | null | undefined;
|
|
763
763
|
};
|
|
764
764
|
export type CarouselInstance = Carousel;
|
|
765
765
|
/**
|
|
@@ -767,83 +767,83 @@ export type CarouselInstance = Carousel;
|
|
|
767
767
|
*/
|
|
768
768
|
export type CookieCategory = {
|
|
769
769
|
label: string;
|
|
770
|
-
description?: string;
|
|
770
|
+
description?: string | undefined;
|
|
771
771
|
/**
|
|
772
772
|
* - Always on; cannot be switched off
|
|
773
773
|
*/
|
|
774
|
-
required?: boolean;
|
|
774
|
+
required?: boolean | undefined;
|
|
775
775
|
};
|
|
776
776
|
export type CookieConsentState = "accepted" | "rejected" | "customized" | "undecided";
|
|
777
777
|
export type CookieConsentOptions = {
|
|
778
778
|
/**
|
|
779
779
|
* - Banner text
|
|
780
780
|
*/
|
|
781
|
-
message?: string;
|
|
782
|
-
acceptAllText?: string;
|
|
783
|
-
rejectAllText?: string;
|
|
784
|
-
customizeText?: string;
|
|
785
|
-
savePreferencesText?: string;
|
|
786
|
-
privacyPolicyText?: string;
|
|
787
|
-
privacyPolicyUrl?: string | null;
|
|
788
|
-
cookiePolicyText?: string;
|
|
789
|
-
cookiePolicyUrl?: string | null;
|
|
781
|
+
message?: string | undefined;
|
|
782
|
+
acceptAllText?: string | undefined;
|
|
783
|
+
rejectAllText?: string | undefined;
|
|
784
|
+
customizeText?: string | undefined;
|
|
785
|
+
savePreferencesText?: string | undefined;
|
|
786
|
+
privacyPolicyText?: string | undefined;
|
|
787
|
+
privacyPolicyUrl?: string | null | undefined;
|
|
788
|
+
cookiePolicyText?: string | undefined;
|
|
789
|
+
cookiePolicyUrl?: string | null | undefined;
|
|
790
790
|
/**
|
|
791
791
|
* - Default: necessary, functional, analytics, marketing
|
|
792
792
|
*/
|
|
793
|
-
categories?: Record<string, CookieCategory
|
|
794
|
-
position?: "
|
|
793
|
+
categories?: Record<string, CookieCategory> | undefined;
|
|
794
|
+
position?: "top" | "bottom" | "bottom-right" | "bottom-left" | "center-modal" | undefined;
|
|
795
795
|
/**
|
|
796
796
|
* - 'auto' follows the system
|
|
797
797
|
*/
|
|
798
|
-
theme?: "light" | "dark" |
|
|
799
|
-
layout?: "bar" | "box" |
|
|
800
|
-
animation?: boolean;
|
|
798
|
+
theme?: "auto" | "light" | "dark" | undefined;
|
|
799
|
+
layout?: "modal" | "bar" | "box" | undefined;
|
|
800
|
+
animation?: boolean | undefined;
|
|
801
801
|
/**
|
|
802
802
|
* - Backdrop behind the modal layout
|
|
803
803
|
*/
|
|
804
|
-
backdrop?: boolean;
|
|
804
|
+
backdrop?: boolean | undefined;
|
|
805
805
|
/**
|
|
806
806
|
* - Show on a first visit
|
|
807
807
|
*/
|
|
808
|
-
autoShow?: boolean;
|
|
808
|
+
autoShow?: boolean | undefined;
|
|
809
809
|
/**
|
|
810
810
|
* - Hide once a choice is made
|
|
811
811
|
*/
|
|
812
|
-
hideAfterAction?: boolean;
|
|
812
|
+
hideAfterAction?: boolean | undefined;
|
|
813
813
|
/**
|
|
814
814
|
* - Elements that reopen the banner
|
|
815
815
|
*/
|
|
816
|
-
reopenSelector?: string;
|
|
817
|
-
storageKey?: string;
|
|
816
|
+
reopenSelector?: string | undefined;
|
|
817
|
+
storageKey?: string | undefined;
|
|
818
818
|
/**
|
|
819
819
|
* - Days the choice is remembered
|
|
820
820
|
*/
|
|
821
|
-
storageDuration?: number;
|
|
822
|
-
defaultState?: CookieConsentState;
|
|
821
|
+
storageDuration?: number | undefined;
|
|
822
|
+
defaultState?: CookieConsentState | undefined;
|
|
823
823
|
/**
|
|
824
824
|
* - GDPR mode: optional categories start off
|
|
825
825
|
*/
|
|
826
|
-
requireExplicitConsent?: boolean;
|
|
826
|
+
requireExplicitConsent?: boolean | undefined;
|
|
827
827
|
/**
|
|
828
828
|
* - Bump when the policy changes to ask again
|
|
829
829
|
*/
|
|
830
|
-
consentVersion?: string;
|
|
830
|
+
consentVersion?: string | undefined;
|
|
831
831
|
/**
|
|
832
832
|
* - The stored choice was for another version
|
|
833
833
|
*/
|
|
834
|
-
onVersionMismatch?: ((oldVersion: string, newVersion: string) => void) | null;
|
|
834
|
+
onVersionMismatch?: ((oldVersion: string, newVersion: string) => void) | null | undefined;
|
|
835
835
|
/**
|
|
836
836
|
* - Accept all, or saved custom preferences
|
|
837
837
|
*/
|
|
838
|
-
onAccept?: ((preferences: Record<string, boolean>) => void) | null;
|
|
839
|
-
onReject?: (() => void) | null;
|
|
838
|
+
onAccept?: ((preferences: Record<string, boolean>) => void) | null | undefined;
|
|
839
|
+
onReject?: (() => void) | null | undefined;
|
|
840
840
|
/**
|
|
841
841
|
* - The customise panel opened
|
|
842
842
|
*/
|
|
843
|
-
onCustomize?: ((preferences: Record<string, boolean>) => void) | null;
|
|
844
|
-
onChange?: ((state: CookieConsentState, preferences: Record<string, boolean>) => void) | null;
|
|
845
|
-
onShow?: (() => void) | null;
|
|
846
|
-
onHide?: (() => void) | null;
|
|
843
|
+
onCustomize?: ((preferences: Record<string, boolean>) => void) | null | undefined;
|
|
844
|
+
onChange?: ((state: CookieConsentState, preferences: Record<string, boolean>) => void) | null | undefined;
|
|
845
|
+
onShow?: (() => void) | null | undefined;
|
|
846
|
+
onHide?: (() => void) | null | undefined;
|
|
847
847
|
};
|
|
848
848
|
export type CookieConsentInstance = CookieConsent;
|
|
849
849
|
/**
|
|
@@ -853,75 +853,75 @@ export type DialogOptions = {
|
|
|
853
853
|
/**
|
|
854
854
|
* - Heading (basic HTML, sanitised)
|
|
855
855
|
*/
|
|
856
|
-
title?: string;
|
|
856
|
+
title?: string | undefined;
|
|
857
857
|
/**
|
|
858
858
|
* - Message (basic HTML, sanitised); the first argument wins
|
|
859
859
|
*/
|
|
860
|
-
message?: string;
|
|
860
|
+
message?: string | undefined;
|
|
861
861
|
/**
|
|
862
862
|
* - Confirm button label
|
|
863
863
|
*/
|
|
864
|
-
confirmText?: string;
|
|
864
|
+
confirmText?: string | undefined;
|
|
865
865
|
/**
|
|
866
866
|
* - Cancel button label (confirm and prompt)
|
|
867
867
|
*/
|
|
868
|
-
cancelText?: string;
|
|
868
|
+
cancelText?: string | undefined;
|
|
869
869
|
/**
|
|
870
870
|
* - Prompt: input placeholder
|
|
871
871
|
*/
|
|
872
|
-
inputPlaceholder?: string;
|
|
872
|
+
inputPlaceholder?: string | undefined;
|
|
873
873
|
/**
|
|
874
874
|
* - Prompt: initial value
|
|
875
875
|
*/
|
|
876
|
-
inputValue?: string;
|
|
876
|
+
inputValue?: string | undefined;
|
|
877
877
|
/**
|
|
878
878
|
* - Prompt: input type
|
|
879
879
|
*/
|
|
880
|
-
inputType?: string;
|
|
881
|
-
animation?: boolean;
|
|
882
|
-
backdrop?: boolean;
|
|
880
|
+
inputType?: string | undefined;
|
|
881
|
+
animation?: boolean | undefined;
|
|
882
|
+
backdrop?: boolean | undefined;
|
|
883
883
|
/**
|
|
884
884
|
* - A backdrop click cancels
|
|
885
885
|
*/
|
|
886
|
-
backdropClose?: boolean;
|
|
886
|
+
backdropClose?: boolean | undefined;
|
|
887
887
|
/**
|
|
888
888
|
* - Esc cancels, Enter confirms
|
|
889
889
|
*/
|
|
890
|
-
keyboard?: boolean;
|
|
890
|
+
keyboard?: boolean | undefined;
|
|
891
891
|
/**
|
|
892
892
|
* - Danger-styled confirm; focus starts on Cancel
|
|
893
893
|
*/
|
|
894
|
-
danger?: boolean;
|
|
894
|
+
danger?: boolean | undefined;
|
|
895
895
|
/**
|
|
896
896
|
* - Tab stays in the dialog
|
|
897
897
|
*/
|
|
898
|
-
trapFocus?: boolean;
|
|
898
|
+
trapFocus?: boolean | undefined;
|
|
899
899
|
/**
|
|
900
900
|
* - Answering puts focus back where it was
|
|
901
901
|
*/
|
|
902
|
-
returnFocus?: boolean;
|
|
902
|
+
returnFocus?: boolean | undefined;
|
|
903
903
|
/**
|
|
904
904
|
* - Extra class on the dialog
|
|
905
905
|
*/
|
|
906
|
-
className?: string;
|
|
906
|
+
className?: string | undefined;
|
|
907
907
|
};
|
|
908
908
|
export type ButtonGroupOptions = {
|
|
909
909
|
/**
|
|
910
910
|
* - 'single' behaves like radios, 'multiple' like checkboxes
|
|
911
911
|
*/
|
|
912
|
-
mode?: "
|
|
912
|
+
mode?: "multiple" | "single" | undefined;
|
|
913
913
|
/**
|
|
914
914
|
* - Class on active buttons
|
|
915
915
|
*/
|
|
916
|
-
activeClass?: string;
|
|
916
|
+
activeClass?: string | undefined;
|
|
917
917
|
/**
|
|
918
918
|
* - Single mode: clicking the active button deselects it
|
|
919
919
|
*/
|
|
920
|
-
allowEmpty?: boolean;
|
|
920
|
+
allowEmpty?: boolean | undefined;
|
|
921
921
|
/**
|
|
922
922
|
* - Selection changed (index -1 from selectAll/deselectAll)
|
|
923
923
|
*/
|
|
924
|
-
onChange?: ((value: number | number[] | null, index: number, button: HTMLElement | null) => void) | null;
|
|
924
|
+
onChange?: ((value: number | number[] | null, index: number, button: HTMLElement | null) => void) | null | undefined;
|
|
925
925
|
};
|
|
926
926
|
/**
|
|
927
927
|
* A button group. `E.buttonGroup()` returns the first instance; `all()` (non-enumerable) lists every
|
|
@@ -941,30 +941,30 @@ export type BreadcrumbItem = {
|
|
|
941
941
|
/**
|
|
942
942
|
* - Link (default '#'); the last item is never a link
|
|
943
943
|
*/
|
|
944
|
-
url?: string;
|
|
944
|
+
url?: string | undefined;
|
|
945
945
|
/**
|
|
946
946
|
* - Render as the current page
|
|
947
947
|
*/
|
|
948
|
-
active?: boolean;
|
|
948
|
+
active?: boolean | undefined;
|
|
949
949
|
};
|
|
950
950
|
export type BreadcrumbsOptions = {
|
|
951
|
-
items?: (
|
|
951
|
+
items?: (string | BreadcrumbItem)[] | undefined;
|
|
952
952
|
/**
|
|
953
953
|
* - A preset, or custom HTML
|
|
954
954
|
*/
|
|
955
|
-
separator?:
|
|
955
|
+
separator?: string | undefined;
|
|
956
956
|
/**
|
|
957
957
|
* - Home icon on the first item
|
|
958
958
|
*/
|
|
959
|
-
homeIcon?: boolean;
|
|
959
|
+
homeIcon?: boolean | undefined;
|
|
960
960
|
/**
|
|
961
961
|
* - Collapse on small screens
|
|
962
962
|
*/
|
|
963
|
-
responsive?: boolean;
|
|
963
|
+
responsive?: boolean | undefined;
|
|
964
964
|
/**
|
|
965
965
|
* - A crumb link was clicked (setting it prevents navigation)
|
|
966
966
|
*/
|
|
967
|
-
onChange?: ((item: BreadcrumbItem | string, index: number, event: MouseEvent) => void) | null;
|
|
967
|
+
onChange?: ((item: BreadcrumbItem | string, index: number, event: MouseEvent) => void) | null | undefined;
|
|
968
968
|
};
|
|
969
969
|
export type BreadcrumbsInstance = Breadcrumbs;
|
|
970
970
|
/**
|
|
@@ -974,88 +974,88 @@ export type NavbarItem = {
|
|
|
974
974
|
/**
|
|
975
975
|
* - Label
|
|
976
976
|
*/
|
|
977
|
-
text?: string;
|
|
977
|
+
text?: string | undefined;
|
|
978
978
|
/**
|
|
979
979
|
* - Link
|
|
980
980
|
*/
|
|
981
|
-
url?: string;
|
|
981
|
+
url?: string | undefined;
|
|
982
982
|
/**
|
|
983
983
|
* - Domma icon name
|
|
984
984
|
*/
|
|
985
|
-
icon?: string;
|
|
985
|
+
icon?: string | undefined;
|
|
986
986
|
/**
|
|
987
987
|
* - Highlighted as the current page
|
|
988
988
|
*/
|
|
989
|
-
active?: boolean;
|
|
989
|
+
active?: boolean | undefined;
|
|
990
990
|
/**
|
|
991
991
|
* - Opens in a new tab
|
|
992
992
|
*/
|
|
993
|
-
external?: boolean;
|
|
993
|
+
external?: boolean | undefined;
|
|
994
994
|
/**
|
|
995
995
|
* - Inside a dropdown: a divider
|
|
996
996
|
*/
|
|
997
|
-
divider?: boolean;
|
|
997
|
+
divider?: boolean | undefined;
|
|
998
998
|
/**
|
|
999
999
|
* - Dropdown entries
|
|
1000
1000
|
*/
|
|
1001
|
-
items?: NavbarItem[];
|
|
1001
|
+
items?: NavbarItem[] | undefined;
|
|
1002
1002
|
};
|
|
1003
1003
|
export type NavbarBrand = {
|
|
1004
|
-
text?: string;
|
|
1004
|
+
text?: string | undefined;
|
|
1005
1005
|
/**
|
|
1006
1006
|
* - Logo image URL
|
|
1007
1007
|
*/
|
|
1008
|
-
logo?: string;
|
|
1008
|
+
logo?: string | undefined;
|
|
1009
1009
|
/**
|
|
1010
1010
|
* - Brand link
|
|
1011
1011
|
*/
|
|
1012
|
-
url?: string;
|
|
1012
|
+
url?: string | undefined;
|
|
1013
1013
|
/**
|
|
1014
1014
|
* - Brand markup instead of text/logo
|
|
1015
1015
|
*/
|
|
1016
|
-
html?: string;
|
|
1016
|
+
html?: string | undefined;
|
|
1017
1017
|
};
|
|
1018
1018
|
export type NavbarAction = {
|
|
1019
|
-
text?: string;
|
|
1020
|
-
url?: string;
|
|
1019
|
+
text?: string | undefined;
|
|
1020
|
+
url?: string | undefined;
|
|
1021
1021
|
/**
|
|
1022
1022
|
* - Domma icon name
|
|
1023
1023
|
*/
|
|
1024
|
-
icon?: string;
|
|
1024
|
+
icon?: string | undefined;
|
|
1025
1025
|
/**
|
|
1026
1026
|
* - Button variant ('primary', 'outline', ...)
|
|
1027
1027
|
*/
|
|
1028
|
-
variant?: string;
|
|
1028
|
+
variant?: string | undefined;
|
|
1029
1029
|
};
|
|
1030
1030
|
export type NavbarOptions = {
|
|
1031
|
-
brand?: NavbarBrand | null;
|
|
1032
|
-
items?: NavbarItem[];
|
|
1033
|
-
position?: "static" | "fixed" | "sticky";
|
|
1034
|
-
variant?:
|
|
1031
|
+
brand?: NavbarBrand | null | undefined;
|
|
1032
|
+
items?: NavbarItem[] | undefined;
|
|
1033
|
+
position?: "static" | "fixed" | "sticky" | undefined;
|
|
1034
|
+
variant?: string | undefined;
|
|
1035
1035
|
/**
|
|
1036
1036
|
* - Hamburger menu on small screens
|
|
1037
1037
|
*/
|
|
1038
|
-
collapsible?: boolean;
|
|
1038
|
+
collapsible?: boolean | undefined;
|
|
1039
1039
|
/**
|
|
1040
1040
|
* - Below this width (px) the bar is collapsed
|
|
1041
1041
|
*/
|
|
1042
|
-
collapseAt?: number;
|
|
1042
|
+
collapseAt?: number | undefined;
|
|
1043
1043
|
/**
|
|
1044
1044
|
* - Desktop: open dropdowns/flyouts on hover (click still works)
|
|
1045
1045
|
*/
|
|
1046
|
-
appearOnHover?: boolean;
|
|
1046
|
+
appearOnHover?: boolean | undefined;
|
|
1047
1047
|
/**
|
|
1048
1048
|
* - ms of grace when the pointer leaves the bar
|
|
1049
1049
|
*/
|
|
1050
|
-
hoverCloseDelay?: number;
|
|
1050
|
+
hoverCloseDelay?: number | undefined;
|
|
1051
1051
|
/**
|
|
1052
1052
|
* - Right-side buttons
|
|
1053
1053
|
*/
|
|
1054
|
-
actions?: NavbarAction[];
|
|
1054
|
+
actions?: NavbarAction[] | undefined;
|
|
1055
1055
|
/**
|
|
1056
1056
|
* - A link was clicked (sub-items also get the parent)
|
|
1057
1057
|
*/
|
|
1058
|
-
onItemClick?: ((item: NavbarItem, index: number, event: MouseEvent, parent?: NavbarItem) => void) | null;
|
|
1058
|
+
onItemClick?: ((item: NavbarItem, index: number, event: MouseEvent, parent?: NavbarItem) => void) | null | undefined;
|
|
1059
1059
|
};
|
|
1060
1060
|
export type NavbarInstance = Navbar;
|
|
1061
1061
|
/**
|
|
@@ -1065,47 +1065,47 @@ export type SidebarItem = {
|
|
|
1065
1065
|
/**
|
|
1066
1066
|
* - Label (HTML)
|
|
1067
1067
|
*/
|
|
1068
|
-
text?: string;
|
|
1068
|
+
text?: string | undefined;
|
|
1069
1069
|
/**
|
|
1070
1070
|
* - Link
|
|
1071
1071
|
*/
|
|
1072
|
-
url?: string;
|
|
1072
|
+
url?: string | undefined;
|
|
1073
1073
|
/**
|
|
1074
1074
|
* - Domma icon name
|
|
1075
1075
|
*/
|
|
1076
|
-
icon?: string;
|
|
1076
|
+
icon?: string | undefined;
|
|
1077
1077
|
/**
|
|
1078
1078
|
* - Section key; setActive(section) highlights it, and clicking it makes it active
|
|
1079
1079
|
*/
|
|
1080
|
-
section?: string;
|
|
1080
|
+
section?: string | undefined;
|
|
1081
1081
|
/**
|
|
1082
1082
|
* - Badge text
|
|
1083
1083
|
*/
|
|
1084
|
-
badge?: string | number;
|
|
1084
|
+
badge?: string | number | undefined;
|
|
1085
1085
|
/**
|
|
1086
1086
|
* - Render as a heading with this text
|
|
1087
1087
|
*/
|
|
1088
|
-
heading?: string;
|
|
1088
|
+
heading?: string | undefined;
|
|
1089
1089
|
/**
|
|
1090
1090
|
* - Render as a divider
|
|
1091
1091
|
*/
|
|
1092
|
-
divider?: boolean;
|
|
1092
|
+
divider?: boolean | undefined;
|
|
1093
1093
|
/**
|
|
1094
1094
|
* - Children (an expandable group)
|
|
1095
1095
|
*/
|
|
1096
|
-
items?: SidebarItem[];
|
|
1096
|
+
items?: SidebarItem[] | undefined;
|
|
1097
1097
|
};
|
|
1098
1098
|
export type SidebarOptions = {
|
|
1099
|
-
position?: "left" | "right";
|
|
1099
|
+
position?: "left" | "right" | undefined;
|
|
1100
1100
|
/**
|
|
1101
1101
|
* - Fixed rather than static positioning
|
|
1102
1102
|
*/
|
|
1103
|
-
fixed?: boolean;
|
|
1104
|
-
width?: string;
|
|
1103
|
+
fixed?: boolean | undefined;
|
|
1104
|
+
width?: string | undefined;
|
|
1105
1105
|
/**
|
|
1106
1106
|
* - Top offset, e.g. '60px' under a navbar
|
|
1107
1107
|
*/
|
|
1108
|
-
top?: string;
|
|
1108
|
+
top?: string | undefined;
|
|
1109
1109
|
/**
|
|
1110
1110
|
* - Header; `toggle: false` hides its close button
|
|
1111
1111
|
*/
|
|
@@ -1113,174 +1113,174 @@ export type SidebarOptions = {
|
|
|
1113
1113
|
title?: string;
|
|
1114
1114
|
toggle?: boolean;
|
|
1115
1115
|
icon?: string;
|
|
1116
|
-
} | null;
|
|
1117
|
-
items?: SidebarItem[];
|
|
1116
|
+
} | null | undefined;
|
|
1117
|
+
items?: SidebarItem[] | undefined;
|
|
1118
1118
|
footer?: {
|
|
1119
1119
|
text?: string;
|
|
1120
1120
|
html?: string;
|
|
1121
|
-
} | null;
|
|
1121
|
+
} | null | undefined;
|
|
1122
1122
|
/**
|
|
1123
1123
|
* - 'theme' follows the active theme
|
|
1124
1124
|
*/
|
|
1125
|
-
variant?: "light" | "dark" |
|
|
1125
|
+
variant?: "theme" | "light" | "dark" | undefined;
|
|
1126
1126
|
/**
|
|
1127
1127
|
* - Toggle on small screens
|
|
1128
1128
|
*/
|
|
1129
|
-
collapsible?: boolean;
|
|
1129
|
+
collapsible?: boolean | undefined;
|
|
1130
1130
|
/**
|
|
1131
1131
|
* - Breakpoint in px
|
|
1132
1132
|
*/
|
|
1133
|
-
collapseAt?: number;
|
|
1133
|
+
collapseAt?: number | undefined;
|
|
1134
1134
|
/**
|
|
1135
1135
|
* - Initially active section
|
|
1136
1136
|
*/
|
|
1137
|
-
activeSection?: string | null;
|
|
1137
|
+
activeSection?: string | null | undefined;
|
|
1138
1138
|
/**
|
|
1139
1139
|
* - Initially expanded groups (their paths)
|
|
1140
1140
|
*/
|
|
1141
|
-
expandedSections?: string[];
|
|
1141
|
+
expandedSections?: string[] | undefined;
|
|
1142
1142
|
/**
|
|
1143
1143
|
* - Remember expanded groups in localStorage
|
|
1144
1144
|
*/
|
|
1145
|
-
persistExpanded?: boolean;
|
|
1145
|
+
persistExpanded?: boolean | undefined;
|
|
1146
1146
|
/**
|
|
1147
1147
|
* - Storage key for that
|
|
1148
1148
|
*/
|
|
1149
|
-
persistKey?: string | null;
|
|
1149
|
+
persistKey?: string | null | undefined;
|
|
1150
1150
|
/**
|
|
1151
1151
|
* - ms
|
|
1152
1152
|
*/
|
|
1153
|
-
animationDuration?: number;
|
|
1153
|
+
animationDuration?: number | undefined;
|
|
1154
1154
|
/**
|
|
1155
1155
|
* - Push the content aside rather than overlay it
|
|
1156
1156
|
*/
|
|
1157
|
-
push?: boolean;
|
|
1157
|
+
push?: boolean | undefined;
|
|
1158
1158
|
/**
|
|
1159
1159
|
* - The content pushed aside
|
|
1160
1160
|
*/
|
|
1161
|
-
contentSelector?: string;
|
|
1161
|
+
contentSelector?: string | undefined;
|
|
1162
1162
|
/**
|
|
1163
1163
|
* - Track the active section while scrolling
|
|
1164
1164
|
*/
|
|
1165
|
-
scrollSpy?: boolean;
|
|
1165
|
+
scrollSpy?: boolean | undefined;
|
|
1166
1166
|
/**
|
|
1167
1167
|
* - IntersectionObserver rootMargin
|
|
1168
1168
|
*/
|
|
1169
|
-
scrollSpyOffset?: string;
|
|
1169
|
+
scrollSpyOffset?: string | undefined;
|
|
1170
1170
|
/**
|
|
1171
1171
|
* - IntersectionObserver threshold
|
|
1172
1172
|
*/
|
|
1173
|
-
scrollSpyThreshold?: number;
|
|
1173
|
+
scrollSpyThreshold?: number | undefined;
|
|
1174
1174
|
/**
|
|
1175
1175
|
* - Floating toggle at the bottom left
|
|
1176
1176
|
*/
|
|
1177
|
-
floating?: boolean;
|
|
1177
|
+
floating?: boolean | undefined;
|
|
1178
1178
|
/**
|
|
1179
1179
|
* - HTML to show instead of items
|
|
1180
1180
|
*/
|
|
1181
|
-
customContent?: string | null;
|
|
1181
|
+
customContent?: string | null | undefined;
|
|
1182
1182
|
/**
|
|
1183
1183
|
* - Desktop collapse to icons only
|
|
1184
1184
|
*/
|
|
1185
|
-
collapsibleDesktop?: boolean;
|
|
1185
|
+
collapsibleDesktop?: boolean | undefined;
|
|
1186
1186
|
/**
|
|
1187
1187
|
* - Width when collapsed
|
|
1188
1188
|
*/
|
|
1189
|
-
collapsedWidth?: string;
|
|
1189
|
+
collapsedWidth?: string | undefined;
|
|
1190
1190
|
/**
|
|
1191
1191
|
* - Remember the collapsed state
|
|
1192
1192
|
*/
|
|
1193
|
-
persistCollapsed?: boolean;
|
|
1193
|
+
persistCollapsed?: boolean | undefined;
|
|
1194
1194
|
/**
|
|
1195
1195
|
* - Storage key for that
|
|
1196
1196
|
*/
|
|
1197
|
-
persistCollapseKey?: string | null;
|
|
1197
|
+
persistCollapseKey?: string | null | undefined;
|
|
1198
1198
|
/**
|
|
1199
1199
|
* - A link was clicked; path is its index path ('2.0')
|
|
1200
1200
|
*/
|
|
1201
|
-
onItemClick?: ((item: SidebarItem | null, path: string, event: MouseEvent) => void) | null;
|
|
1201
|
+
onItemClick?: ((item: SidebarItem | null, path: string, event: MouseEvent) => void) | null | undefined;
|
|
1202
1202
|
/**
|
|
1203
1203
|
* - Return false to keep it closed
|
|
1204
1204
|
*/
|
|
1205
|
-
onBeforeOpen?: (() => boolean | void) | null;
|
|
1205
|
+
onBeforeOpen?: (() => boolean | void) | null | undefined;
|
|
1206
1206
|
/**
|
|
1207
1207
|
* - Return false to keep it open
|
|
1208
1208
|
*/
|
|
1209
|
-
onBeforeClose?: (() => boolean | void) | null;
|
|
1209
|
+
onBeforeClose?: (() => boolean | void) | null | undefined;
|
|
1210
1210
|
/**
|
|
1211
1211
|
* - Opened or closed
|
|
1212
1212
|
*/
|
|
1213
|
-
onToggle?: ((isOpen: boolean) => void) | null;
|
|
1213
|
+
onToggle?: ((isOpen: boolean) => void) | null | undefined;
|
|
1214
1214
|
/**
|
|
1215
1215
|
* - A group expanded (no arguments: the desktop sidebar expanded)
|
|
1216
1216
|
*/
|
|
1217
|
-
onExpand?: ((item?: SidebarItem, depth?: number) => void) | null;
|
|
1217
|
+
onExpand?: ((item?: SidebarItem, depth?: number) => void) | null | undefined;
|
|
1218
1218
|
/**
|
|
1219
1219
|
* - A group collapsed (no arguments: the desktop sidebar collapsed)
|
|
1220
1220
|
*/
|
|
1221
|
-
onCollapse?: ((item?: SidebarItem, depth?: number) => void) | null;
|
|
1221
|
+
onCollapse?: ((item?: SidebarItem, depth?: number) => void) | null | undefined;
|
|
1222
1222
|
};
|
|
1223
1223
|
export type SidebarInstance = Sidebar;
|
|
1224
1224
|
export type FooterLink = {
|
|
1225
|
-
text?: string;
|
|
1226
|
-
url?: string;
|
|
1225
|
+
text?: string | undefined;
|
|
1226
|
+
url?: string | undefined;
|
|
1227
1227
|
/**
|
|
1228
1228
|
* - Domma icon name
|
|
1229
1229
|
*/
|
|
1230
|
-
icon?: string;
|
|
1230
|
+
icon?: string | undefined;
|
|
1231
1231
|
};
|
|
1232
1232
|
export type FooterBrand = {
|
|
1233
|
-
text?: string;
|
|
1233
|
+
text?: string | undefined;
|
|
1234
1234
|
/**
|
|
1235
1235
|
* - Logo image URL
|
|
1236
1236
|
*/
|
|
1237
|
-
logo?: string;
|
|
1238
|
-
url?: string;
|
|
1239
|
-
description?: string;
|
|
1237
|
+
logo?: string | undefined;
|
|
1238
|
+
url?: string | undefined;
|
|
1239
|
+
description?: string | undefined;
|
|
1240
1240
|
};
|
|
1241
1241
|
export type FooterColumn = {
|
|
1242
|
-
title?: string;
|
|
1243
|
-
links?: FooterLink[];
|
|
1242
|
+
title?: string | undefined;
|
|
1243
|
+
links?: FooterLink[] | undefined;
|
|
1244
1244
|
};
|
|
1245
1245
|
export type FooterSocial = {
|
|
1246
1246
|
/**
|
|
1247
1247
|
* - Domma icon name
|
|
1248
1248
|
*/
|
|
1249
1249
|
icon: string;
|
|
1250
|
-
url?: string;
|
|
1250
|
+
url?: string | undefined;
|
|
1251
1251
|
/**
|
|
1252
1252
|
* - Accessible name (default: the icon name)
|
|
1253
1253
|
*/
|
|
1254
|
-
label?: string;
|
|
1254
|
+
label?: string | undefined;
|
|
1255
1255
|
};
|
|
1256
1256
|
export type FooterOptions = {
|
|
1257
|
-
variant?:
|
|
1258
|
-
layout?: "simple" | "columns" | "minimal";
|
|
1259
|
-
brand?: FooterBrand | null;
|
|
1257
|
+
variant?: string | undefined;
|
|
1258
|
+
layout?: "simple" | "columns" | "minimal" | undefined;
|
|
1259
|
+
brand?: FooterBrand | null | undefined;
|
|
1260
1260
|
/**
|
|
1261
1261
|
* - For the 'columns' layout
|
|
1262
1262
|
*/
|
|
1263
|
-
columns?: FooterColumn[];
|
|
1263
|
+
columns?: FooterColumn[] | undefined;
|
|
1264
1264
|
/**
|
|
1265
1265
|
* - Simple link list
|
|
1266
1266
|
*/
|
|
1267
|
-
links?: FooterLink[];
|
|
1267
|
+
links?: FooterLink[] | undefined;
|
|
1268
1268
|
/**
|
|
1269
1269
|
* - Social icons
|
|
1270
1270
|
*/
|
|
1271
|
-
social?: FooterSocial[];
|
|
1271
|
+
social?: FooterSocial[] | undefined;
|
|
1272
1272
|
/**
|
|
1273
1273
|
* - Text, or the year for '© <year> All rights reserved'
|
|
1274
1274
|
*/
|
|
1275
1275
|
copyright?: string | {
|
|
1276
1276
|
text?: string;
|
|
1277
1277
|
year?: number;
|
|
1278
|
-
} | null;
|
|
1278
|
+
} | null | undefined;
|
|
1279
1279
|
/**
|
|
1280
1280
|
* - Extra classes
|
|
1281
1281
|
*/
|
|
1282
|
-
className?: string;
|
|
1283
|
-
position?: "static" | "fixed" | "sticky";
|
|
1282
|
+
className?: string | undefined;
|
|
1283
|
+
position?: "static" | "fixed" | "sticky" | undefined;
|
|
1284
1284
|
};
|
|
1285
1285
|
export type FooterInstance = Footer;
|
|
1286
1286
|
/**
|
|
@@ -1295,71 +1295,71 @@ export type AutocompleteOptions = {
|
|
|
1295
1295
|
/**
|
|
1296
1296
|
* - Suggestions to filter
|
|
1297
1297
|
*/
|
|
1298
|
-
data?: AutocompleteItem[];
|
|
1298
|
+
data?: AutocompleteItem[] | undefined;
|
|
1299
1299
|
/**
|
|
1300
1300
|
* - Fetch suggestions instead of filtering data
|
|
1301
1301
|
*/
|
|
1302
|
-
dataSource?: ((query: string) => AutocompleteItem[] | Promise<AutocompleteItem[]>) | null;
|
|
1302
|
+
dataSource?: ((query: string) => AutocompleteItem[] | Promise<AutocompleteItem[]>) | null | undefined;
|
|
1303
1303
|
/**
|
|
1304
1304
|
* - Characters typed before suggesting
|
|
1305
1305
|
*/
|
|
1306
|
-
minChars?: number;
|
|
1307
|
-
maxResults?: number;
|
|
1306
|
+
minChars?: number | undefined;
|
|
1307
|
+
maxResults?: number | undefined;
|
|
1308
1308
|
/**
|
|
1309
1309
|
* - ms
|
|
1310
1310
|
*/
|
|
1311
|
-
debounce?: number;
|
|
1311
|
+
debounce?: number | undefined;
|
|
1312
1312
|
/**
|
|
1313
1313
|
* - Replaces the default contains-match
|
|
1314
1314
|
*/
|
|
1315
|
-
filterFn?: ((item: AutocompleteItem, query: string) => boolean) | null;
|
|
1315
|
+
filterFn?: ((item: AutocompleteItem, query: string) => boolean) | null | undefined;
|
|
1316
1316
|
/**
|
|
1317
1317
|
* - Suggestion HTML or a node
|
|
1318
1318
|
*/
|
|
1319
|
-
renderItem?: ((item: AutocompleteItem, query: string) => string | Node) | null;
|
|
1320
|
-
highlightMatches?: boolean;
|
|
1319
|
+
renderItem?: ((item: AutocompleteItem, query: string) => string | Node) | null | undefined;
|
|
1320
|
+
highlightMatches?: boolean | undefined;
|
|
1321
1321
|
/**
|
|
1322
1322
|
* - Where the list opens; 'auto' picks the side with room
|
|
1323
1323
|
*/
|
|
1324
|
-
position?: "auto" | "above" | "below";
|
|
1325
|
-
placeholder?: string;
|
|
1326
|
-
emptyMessage?: string;
|
|
1327
|
-
loadingMessage?: string;
|
|
1328
|
-
caseSensitive?: boolean;
|
|
1329
|
-
selectOnEnter?: boolean;
|
|
1324
|
+
position?: "auto" | "above" | "below" | undefined;
|
|
1325
|
+
placeholder?: string | undefined;
|
|
1326
|
+
emptyMessage?: string | undefined;
|
|
1327
|
+
loadingMessage?: string | undefined;
|
|
1328
|
+
caseSensitive?: boolean | undefined;
|
|
1329
|
+
selectOnEnter?: boolean | undefined;
|
|
1330
1330
|
/**
|
|
1331
1331
|
* - Empty the input after a choice
|
|
1332
1332
|
*/
|
|
1333
|
-
clearOnSelect?: boolean;
|
|
1333
|
+
clearOnSelect?: boolean | undefined;
|
|
1334
1334
|
/**
|
|
1335
1335
|
* - A Domma Model the typed value is written to (with modelKey)
|
|
1336
1336
|
*/
|
|
1337
1337
|
model?: any;
|
|
1338
|
-
modelKey?: string;
|
|
1338
|
+
modelKey?: string | undefined;
|
|
1339
1339
|
/**
|
|
1340
1340
|
* - A suggestion was chosen
|
|
1341
1341
|
*/
|
|
1342
1342
|
onSelect?: ((item: AutocompleteItem, event: {
|
|
1343
1343
|
target: HTMLElement;
|
|
1344
|
-
}) => void) | null;
|
|
1344
|
+
}) => void) | null | undefined;
|
|
1345
1345
|
/**
|
|
1346
1346
|
* - The input's value changed
|
|
1347
1347
|
*/
|
|
1348
|
-
onChange?: ((value: string, event: Event) => void) | null;
|
|
1348
|
+
onChange?: ((value: string, event: Event) => void) | null | undefined;
|
|
1349
1349
|
/**
|
|
1350
1350
|
* - Return false to keep it closed
|
|
1351
1351
|
*/
|
|
1352
|
-
onBeforeOpen?: (() => boolean | void) | null;
|
|
1353
|
-
onOpen?: (() => void) | null;
|
|
1352
|
+
onBeforeOpen?: (() => boolean | void) | null | undefined;
|
|
1353
|
+
onOpen?: (() => void) | null | undefined;
|
|
1354
1354
|
/**
|
|
1355
1355
|
* - Return false to keep it open
|
|
1356
1356
|
*/
|
|
1357
|
-
onBeforeClose?: (() => boolean | void) | null;
|
|
1358
|
-
onClose?: (() => void) | null;
|
|
1357
|
+
onBeforeClose?: (() => boolean | void) | null | undefined;
|
|
1358
|
+
onClose?: (() => void) | null | undefined;
|
|
1359
1359
|
/**
|
|
1360
1360
|
* - May return a replacement result list
|
|
1361
1361
|
*/
|
|
1362
|
-
onFilter?: ((results: AutocompleteItem[], query: string) => AutocompleteItem[] | void) | null;
|
|
1362
|
+
onFilter?: ((results: AutocompleteItem[], query: string) => AutocompleteItem[] | void) | null | undefined;
|
|
1363
1363
|
};
|
|
1364
1364
|
export type AutocompleteInstance = Autocomplete;
|
|
1365
1365
|
/**
|
|
@@ -1375,73 +1375,73 @@ export type PillboxOptions = {
|
|
|
1375
1375
|
/**
|
|
1376
1376
|
* - Options to choose from
|
|
1377
1377
|
*/
|
|
1378
|
-
data?: PillboxItem[];
|
|
1378
|
+
data?: PillboxItem[] | undefined;
|
|
1379
1379
|
/**
|
|
1380
1380
|
* - Initial values
|
|
1381
1381
|
*/
|
|
1382
|
-
value?: string[];
|
|
1383
|
-
placeholder?: string;
|
|
1382
|
+
value?: string[] | undefined;
|
|
1383
|
+
placeholder?: string | undefined;
|
|
1384
1384
|
/**
|
|
1385
1385
|
* - Filter the options while typing
|
|
1386
1386
|
*/
|
|
1387
|
-
searchable?: boolean;
|
|
1387
|
+
searchable?: boolean | undefined;
|
|
1388
1388
|
/**
|
|
1389
1389
|
* - Enter adds typed text that is not an option
|
|
1390
1390
|
*/
|
|
1391
|
-
creatable?: boolean;
|
|
1392
|
-
maxItems?: number | null;
|
|
1393
|
-
duplicates?: boolean;
|
|
1391
|
+
creatable?: boolean | undefined;
|
|
1392
|
+
maxItems?: number | null | undefined;
|
|
1393
|
+
duplicates?: boolean | undefined;
|
|
1394
1394
|
/**
|
|
1395
1395
|
* - Clear-all button
|
|
1396
1396
|
*/
|
|
1397
|
-
clearable?: boolean;
|
|
1398
|
-
size?:
|
|
1397
|
+
clearable?: boolean | undefined;
|
|
1398
|
+
size?: string | undefined;
|
|
1399
1399
|
/**
|
|
1400
1400
|
* - Pill HTML or a node
|
|
1401
1401
|
*/
|
|
1402
1402
|
renderPill?: ((pill: {
|
|
1403
1403
|
value: string;
|
|
1404
1404
|
label: string;
|
|
1405
|
-
}) => string | Node) | null;
|
|
1405
|
+
}) => string | Node) | null | undefined;
|
|
1406
1406
|
/**
|
|
1407
1407
|
* - Option HTML or a node
|
|
1408
1408
|
*/
|
|
1409
|
-
renderOption?: ((item: PillboxItem) => string | Node) | null;
|
|
1409
|
+
renderOption?: ((item: PillboxItem) => string | Node) | null | undefined;
|
|
1410
1410
|
/**
|
|
1411
1411
|
* - Pill HTML when there is no renderPill
|
|
1412
1412
|
*/
|
|
1413
|
-
pillTemplate?: string;
|
|
1413
|
+
pillTemplate?: string | undefined;
|
|
1414
1414
|
/**
|
|
1415
1415
|
* - true/undefined accepts; a string is the error message
|
|
1416
1416
|
*/
|
|
1417
|
-
validatePill?: ((value: string) => boolean | string | void) | null;
|
|
1418
|
-
maxItemsMessage?: string;
|
|
1419
|
-
duplicateMessage?: string;
|
|
1420
|
-
noResultsMessage?: string;
|
|
1417
|
+
validatePill?: ((value: string) => boolean | string | void) | null | undefined;
|
|
1418
|
+
maxItemsMessage?: string | undefined;
|
|
1419
|
+
duplicateMessage?: string | undefined;
|
|
1420
|
+
noResultsMessage?: string | undefined;
|
|
1421
1421
|
/**
|
|
1422
1422
|
* - A Domma Model the values are kept in (with modelKey)
|
|
1423
1423
|
*/
|
|
1424
1424
|
model?: any;
|
|
1425
|
-
modelKey?: string;
|
|
1425
|
+
modelKey?: string | undefined;
|
|
1426
1426
|
/**
|
|
1427
1427
|
* - Return false to keep it closed
|
|
1428
1428
|
*/
|
|
1429
|
-
onBeforeOpen?: (() => boolean | void) | null;
|
|
1430
|
-
onOpen?: (() => void) | null;
|
|
1429
|
+
onBeforeOpen?: (() => boolean | void) | null | undefined;
|
|
1430
|
+
onOpen?: (() => void) | null | undefined;
|
|
1431
1431
|
/**
|
|
1432
1432
|
* - Return false to keep it open
|
|
1433
1433
|
*/
|
|
1434
|
-
onBeforeClose?: (() => boolean | void) | null;
|
|
1435
|
-
onClose?: (() => void) | null;
|
|
1436
|
-
onAdd?: ((value: string, pill: HTMLElement) => void) | null;
|
|
1437
|
-
onRemove?: ((value: string, pill: HTMLElement) => void) | null;
|
|
1438
|
-
onChange?: ((values: string[]) => void) | null;
|
|
1434
|
+
onBeforeClose?: (() => boolean | void) | null | undefined;
|
|
1435
|
+
onClose?: (() => void) | null | undefined;
|
|
1436
|
+
onAdd?: ((value: string, pill: HTMLElement) => void) | null | undefined;
|
|
1437
|
+
onRemove?: ((value: string, pill: HTMLElement) => void) | null | undefined;
|
|
1438
|
+
onChange?: ((values: string[]) => void) | null | undefined;
|
|
1439
1439
|
/**
|
|
1440
1440
|
* - Typed text was added (creatable)
|
|
1441
1441
|
*/
|
|
1442
|
-
onCreate?: ((text: string) => void) | null;
|
|
1443
|
-
onMaxReached?: (() => void) | null;
|
|
1444
|
-
onValidationError?: ((error: string, value: string) => void) | null;
|
|
1442
|
+
onCreate?: ((text: string) => void) | null | undefined;
|
|
1443
|
+
onMaxReached?: (() => void) | null | undefined;
|
|
1444
|
+
onValidationError?: ((error: string, value: string) => void) | null | undefined;
|
|
1445
1445
|
};
|
|
1446
1446
|
export type PillboxInstance = Pillbox;
|
|
1447
1447
|
export type SlideoverSize = "sm" | "md" | "lg" | "xl" | "full";
|
|
@@ -1449,74 +1449,74 @@ export type SlideoverOptions = {
|
|
|
1449
1449
|
/**
|
|
1450
1450
|
* - Edge it slides from
|
|
1451
1451
|
*/
|
|
1452
|
-
position?: "
|
|
1452
|
+
position?: "top" | "bottom" | "left" | "right" | undefined;
|
|
1453
1453
|
/**
|
|
1454
1454
|
* - A preset (sm 25%, md 50%, lg 75%, xl 90%, full), a customSizes key, or a CSS length ('400px', '60%', '30rem')
|
|
1455
1455
|
*/
|
|
1456
|
-
size?:
|
|
1457
|
-
backdrop?: boolean;
|
|
1456
|
+
size?: string | undefined;
|
|
1457
|
+
backdrop?: boolean | undefined;
|
|
1458
1458
|
/**
|
|
1459
1459
|
* - A backdrop click closes it
|
|
1460
1460
|
*/
|
|
1461
|
-
backdropClose?: boolean;
|
|
1461
|
+
backdropClose?: boolean | undefined;
|
|
1462
1462
|
/**
|
|
1463
1463
|
* - Esc closes it (with closeOnEscape)
|
|
1464
1464
|
*/
|
|
1465
|
-
keyboard?: boolean;
|
|
1466
|
-
animation?: boolean;
|
|
1465
|
+
keyboard?: boolean | undefined;
|
|
1466
|
+
animation?: boolean | undefined;
|
|
1467
1467
|
/**
|
|
1468
1468
|
* - ms
|
|
1469
1469
|
*/
|
|
1470
|
-
animationDuration?: number;
|
|
1471
|
-
closeOnEscape?: boolean;
|
|
1470
|
+
animationDuration?: number | undefined;
|
|
1471
|
+
closeOnEscape?: boolean | undefined;
|
|
1472
1472
|
/**
|
|
1473
1473
|
* - Title (create(): the header text)
|
|
1474
1474
|
*/
|
|
1475
|
-
title?: string;
|
|
1475
|
+
title?: string | undefined;
|
|
1476
1476
|
/**
|
|
1477
1477
|
* - Body (create(): HTML or an element)
|
|
1478
1478
|
*/
|
|
1479
|
-
content?: string | Element;
|
|
1479
|
+
content?: string | Element | undefined;
|
|
1480
1480
|
/**
|
|
1481
1481
|
* - Close button in the header (create())
|
|
1482
1482
|
*/
|
|
1483
|
-
closable?: boolean;
|
|
1483
|
+
closable?: boolean | undefined;
|
|
1484
1484
|
/**
|
|
1485
1485
|
* - Domma icon name for it (create())
|
|
1486
1486
|
*/
|
|
1487
|
-
closeIcon?: string;
|
|
1488
|
-
headerClass?: string;
|
|
1489
|
-
bodyClass?: string;
|
|
1490
|
-
footerClass?: string;
|
|
1487
|
+
closeIcon?: string | undefined;
|
|
1488
|
+
headerClass?: string | undefined;
|
|
1489
|
+
bodyClass?: string | undefined;
|
|
1490
|
+
footerClass?: string | undefined;
|
|
1491
1491
|
/**
|
|
1492
1492
|
* - Named sizes, e.g. {wide: '640px'}
|
|
1493
1493
|
*/
|
|
1494
|
-
customSizes?: Record<string, string
|
|
1494
|
+
customSizes?: Record<string, string> | undefined;
|
|
1495
1495
|
/**
|
|
1496
1496
|
* - Tab stays in the panel; default off when backdrop is false unless given
|
|
1497
1497
|
*/
|
|
1498
|
-
trapFocus?: boolean;
|
|
1498
|
+
trapFocus?: boolean | undefined;
|
|
1499
1499
|
/**
|
|
1500
1500
|
* - Closing puts focus back where it was
|
|
1501
1501
|
*/
|
|
1502
|
-
returnFocus?: boolean;
|
|
1502
|
+
returnFocus?: boolean | undefined;
|
|
1503
1503
|
/**
|
|
1504
1504
|
* - Return false to keep it closed
|
|
1505
1505
|
*/
|
|
1506
|
-
onBeforeOpen?: ((slideover: SlideoverInstance) => boolean | void) | null;
|
|
1507
|
-
onOpen?: ((slideover: SlideoverInstance) => void) | null;
|
|
1506
|
+
onBeforeOpen?: ((slideover: SlideoverInstance) => boolean | void) | null | undefined;
|
|
1507
|
+
onOpen?: ((slideover: SlideoverInstance) => void) | null | undefined;
|
|
1508
1508
|
/**
|
|
1509
1509
|
* - Return false to keep it open
|
|
1510
1510
|
*/
|
|
1511
|
-
onBeforeClose?: ((slideover: SlideoverInstance) => boolean | void) | null;
|
|
1511
|
+
onBeforeClose?: ((slideover: SlideoverInstance) => boolean | void) | null | undefined;
|
|
1512
1512
|
/**
|
|
1513
1513
|
* - Closing (before the animation)
|
|
1514
1514
|
*/
|
|
1515
|
-
onClose?: ((slideover: SlideoverInstance) => void) | null;
|
|
1515
|
+
onClose?: ((slideover: SlideoverInstance) => void) | null | undefined;
|
|
1516
1516
|
/**
|
|
1517
1517
|
* - After the close animation
|
|
1518
1518
|
*/
|
|
1519
|
-
onClosed?: ((slideover: SlideoverInstance) => void) | null;
|
|
1519
|
+
onClosed?: ((slideover: SlideoverInstance) => void) | null | undefined;
|
|
1520
1520
|
};
|
|
1521
1521
|
/**
|
|
1522
1522
|
* Options for `E.slideover({...})` / `Slideover.create()`: a new panel at the end of `<body>`.
|
|
@@ -1535,28 +1535,28 @@ export type ProgressionItem = {
|
|
|
1535
1535
|
/**
|
|
1536
1536
|
* - Lets methods find it by id instead of index
|
|
1537
1537
|
*/
|
|
1538
|
-
id?: string | number;
|
|
1539
|
-
title?: string;
|
|
1538
|
+
id?: string | number | undefined;
|
|
1539
|
+
title?: string | undefined;
|
|
1540
1540
|
/**
|
|
1541
1541
|
* - Text (HTML when allowHtml, sanitised)
|
|
1542
1542
|
*/
|
|
1543
|
-
description?: string;
|
|
1544
|
-
date?: string;
|
|
1543
|
+
description?: string | undefined;
|
|
1544
|
+
date?: string | undefined;
|
|
1545
1545
|
/**
|
|
1546
1546
|
* - Timeline marker (default: date)
|
|
1547
1547
|
*/
|
|
1548
|
-
year?: string | number;
|
|
1548
|
+
year?: string | number | undefined;
|
|
1549
1549
|
/**
|
|
1550
1550
|
* - Roadmap status
|
|
1551
1551
|
*/
|
|
1552
|
-
status?:
|
|
1552
|
+
status?: string | undefined;
|
|
1553
1553
|
/**
|
|
1554
1554
|
* - 0-100, shown for 'in-progress'
|
|
1555
1555
|
*/
|
|
1556
|
-
progress?: number;
|
|
1557
|
-
priority?: string;
|
|
1558
|
-
tags?: string[];
|
|
1559
|
-
assignee?: string;
|
|
1556
|
+
progress?: number | undefined;
|
|
1557
|
+
priority?: string | undefined;
|
|
1558
|
+
tags?: string[] | undefined;
|
|
1559
|
+
assignee?: string | undefined;
|
|
1560
1560
|
};
|
|
1561
1561
|
/**
|
|
1562
1562
|
* The loader settings `E.fullscreenLoader()` passes on (the rest are fixed for a full-screen loader).
|
|
@@ -1566,77 +1566,77 @@ export type ProgressionOptions = {
|
|
|
1566
1566
|
/**
|
|
1567
1567
|
* - 'timeline' (dated events) or 'roadmap' (items with a status)
|
|
1568
1568
|
*/
|
|
1569
|
-
mode?: "timeline" | "roadmap";
|
|
1570
|
-
items?: ProgressionItem[];
|
|
1569
|
+
mode?: "timeline" | "roadmap" | undefined;
|
|
1570
|
+
items?: ProgressionItem[] | undefined;
|
|
1571
1571
|
/**
|
|
1572
1572
|
* - Items down one side, across, or alternating either side of a centre line
|
|
1573
1573
|
*/
|
|
1574
|
-
layout?: "vertical" | "horizontal" | "centered";
|
|
1574
|
+
layout?: "vertical" | "horizontal" | "centered" | undefined;
|
|
1575
1575
|
/**
|
|
1576
1576
|
* - Items animate in
|
|
1577
1577
|
*/
|
|
1578
|
-
animation?: boolean;
|
|
1578
|
+
animation?: boolean | undefined;
|
|
1579
1579
|
/**
|
|
1580
1580
|
* - ms between items
|
|
1581
1581
|
*/
|
|
1582
|
-
animationDelay?: number;
|
|
1583
|
-
responsive?: boolean;
|
|
1582
|
+
animationDelay?: number | undefined;
|
|
1583
|
+
responsive?: boolean | undefined;
|
|
1584
1584
|
/**
|
|
1585
1585
|
* - Look of the markers, line and cards
|
|
1586
1586
|
*/
|
|
1587
|
-
theme?: "default" | "
|
|
1588
|
-
clickable?: boolean;
|
|
1589
|
-
onItemClick?: ((item: ProgressionItem, index: number, element: HTMLElement) => void) | null;
|
|
1587
|
+
theme?: "default" | "corporate" | "minimal" | "modern" | undefined;
|
|
1588
|
+
clickable?: boolean | undefined;
|
|
1589
|
+
onItemClick?: ((item: ProgressionItem, index: number, element: HTMLElement) => void) | null | undefined;
|
|
1590
1590
|
/**
|
|
1591
1591
|
* - HTML in descriptions (sanitised)
|
|
1592
1592
|
*/
|
|
1593
|
-
allowHtml?: boolean;
|
|
1593
|
+
allowHtml?: boolean | undefined;
|
|
1594
1594
|
/**
|
|
1595
1595
|
* - Timeline
|
|
1596
1596
|
*/
|
|
1597
|
-
yearWidth?: string;
|
|
1597
|
+
yearWidth?: string | undefined;
|
|
1598
1598
|
/**
|
|
1599
1599
|
* - Timeline
|
|
1600
1600
|
*/
|
|
1601
|
-
contentMaxWidth?: string;
|
|
1601
|
+
contentMaxWidth?: string | undefined;
|
|
1602
1602
|
/**
|
|
1603
1603
|
* - Timeline
|
|
1604
1604
|
*/
|
|
1605
|
-
dateFormat?: string;
|
|
1605
|
+
dateFormat?: string | undefined;
|
|
1606
1606
|
/**
|
|
1607
1607
|
* - Timeline
|
|
1608
1608
|
*/
|
|
1609
|
-
showConnector?: boolean;
|
|
1609
|
+
showConnector?: boolean | undefined;
|
|
1610
1610
|
/**
|
|
1611
1611
|
* - Roadmap: overall progress bar
|
|
1612
1612
|
*/
|
|
1613
|
-
showProgress?: boolean;
|
|
1613
|
+
showProgress?: boolean | undefined;
|
|
1614
1614
|
/**
|
|
1615
1615
|
* - Roadmap
|
|
1616
1616
|
*/
|
|
1617
|
-
progressPosition?: "top" | "bottom" |
|
|
1617
|
+
progressPosition?: "none" | "top" | "bottom" | undefined;
|
|
1618
1618
|
/**
|
|
1619
1619
|
* - Roadmap
|
|
1620
1620
|
*/
|
|
1621
|
-
statusIcons?: boolean;
|
|
1621
|
+
statusIcons?: boolean | undefined;
|
|
1622
1622
|
/**
|
|
1623
1623
|
* - Roadmap: status can be changed from the UI
|
|
1624
1624
|
*/
|
|
1625
|
-
allowStatusChange?: boolean;
|
|
1626
|
-
onStatusChange?: ((item: ProgressionItem, oldStatus: string | undefined, status: string) => void) | null;
|
|
1625
|
+
allowStatusChange?: boolean | undefined;
|
|
1626
|
+
onStatusChange?: ((item: ProgressionItem, oldStatus: string | undefined, status: string) => void) | null | undefined;
|
|
1627
1627
|
/**
|
|
1628
1628
|
* - Roadmap: the current item's id or index
|
|
1629
1629
|
*/
|
|
1630
|
-
currentItem?: string | number | null;
|
|
1631
|
-
completedAnimation?: boolean;
|
|
1630
|
+
currentItem?: string | number | null | undefined;
|
|
1631
|
+
completedAnimation?: boolean | undefined;
|
|
1632
1632
|
/**
|
|
1633
1633
|
* - Domma icon name per status
|
|
1634
1634
|
*/
|
|
1635
|
-
icons?: Partial<Record<ProgressionStatus, string
|
|
1635
|
+
icons?: Partial<Record<ProgressionStatus, string>> | undefined;
|
|
1636
1636
|
/**
|
|
1637
1637
|
* - CSS colour per status
|
|
1638
1638
|
*/
|
|
1639
|
-
colors?: Partial<Record<ProgressionStatus, string
|
|
1639
|
+
colors?: Partial<Record<ProgressionStatus, string>> | undefined;
|
|
1640
1640
|
};
|
|
1641
1641
|
export type ProgressionInstance = Progression;
|
|
1642
1642
|
/**
|
|
@@ -1655,153 +1655,153 @@ export type SignatureOptions = {
|
|
|
1655
1655
|
/**
|
|
1656
1656
|
* - Not read: the pad fills its container
|
|
1657
1657
|
*/
|
|
1658
|
-
width?: number | null;
|
|
1658
|
+
width?: number | null | undefined;
|
|
1659
1659
|
/**
|
|
1660
1660
|
* - Canvas height in px
|
|
1661
1661
|
*/
|
|
1662
|
-
height?: number;
|
|
1662
|
+
height?: number | undefined;
|
|
1663
1663
|
/**
|
|
1664
1664
|
* - Default pen colour
|
|
1665
1665
|
*/
|
|
1666
|
-
penColour?: string;
|
|
1666
|
+
penColour?: string | undefined;
|
|
1667
1667
|
/**
|
|
1668
1668
|
* - Default pen width in px
|
|
1669
1669
|
*/
|
|
1670
|
-
penWidth?: number;
|
|
1670
|
+
penWidth?: number | undefined;
|
|
1671
1671
|
/**
|
|
1672
1672
|
* - Export format
|
|
1673
1673
|
*/
|
|
1674
|
-
format?: "
|
|
1674
|
+
format?: "svg" | "png" | undefined;
|
|
1675
1675
|
/**
|
|
1676
1676
|
* - Toolbar label text
|
|
1677
1677
|
*/
|
|
1678
|
-
label?: string;
|
|
1678
|
+
label?: string | undefined;
|
|
1679
1679
|
/**
|
|
1680
1680
|
* - Dashed guide line
|
|
1681
1681
|
*/
|
|
1682
|
-
guideLine?: boolean;
|
|
1683
|
-
placeholder?: string;
|
|
1682
|
+
guideLine?: boolean | undefined;
|
|
1683
|
+
placeholder?: string | undefined;
|
|
1684
1684
|
/**
|
|
1685
1685
|
* - Colour swatches in the toolbar
|
|
1686
1686
|
*/
|
|
1687
|
-
colours?: string[];
|
|
1687
|
+
colours?: string[] | undefined;
|
|
1688
1688
|
/**
|
|
1689
1689
|
* - Pen widths in the toolbar
|
|
1690
1690
|
*/
|
|
1691
|
-
widths?: number[];
|
|
1691
|
+
widths?: number[] | undefined;
|
|
1692
1692
|
/**
|
|
1693
1693
|
* - Show the toolbar
|
|
1694
1694
|
*/
|
|
1695
|
-
toolbar?: boolean;
|
|
1695
|
+
toolbar?: boolean | undefined;
|
|
1696
1696
|
/**
|
|
1697
1697
|
* - Name of the hidden input
|
|
1698
1698
|
*/
|
|
1699
|
-
name?: string;
|
|
1700
|
-
disabled?: boolean;
|
|
1699
|
+
name?: string | undefined;
|
|
1700
|
+
disabled?: boolean | undefined;
|
|
1701
1701
|
/**
|
|
1702
1702
|
* - Draw / Type toggle
|
|
1703
1703
|
*/
|
|
1704
|
-
typeFallback?: boolean;
|
|
1704
|
+
typeFallback?: boolean | undefined;
|
|
1705
1705
|
/**
|
|
1706
1706
|
* - Points needed to keep a stroke
|
|
1707
1707
|
*/
|
|
1708
|
-
minStrokeLength?: number;
|
|
1708
|
+
minStrokeLength?: number | undefined;
|
|
1709
1709
|
/**
|
|
1710
1710
|
* - Honour prefers-reduced-motion
|
|
1711
1711
|
*/
|
|
1712
|
-
respectMotionPreference?: boolean;
|
|
1712
|
+
respectMotionPreference?: boolean | undefined;
|
|
1713
1713
|
/**
|
|
1714
1714
|
* - The signature changed - receives the data URL ('' when empty)
|
|
1715
1715
|
*/
|
|
1716
|
-
onChange?: ((base64: string) => void) | null;
|
|
1717
|
-
onClear?: (() => void) | null;
|
|
1716
|
+
onChange?: ((base64: string) => void) | null | undefined;
|
|
1717
|
+
onClear?: (() => void) | null | undefined;
|
|
1718
1718
|
/**
|
|
1719
1719
|
* - A stroke began
|
|
1720
1720
|
*/
|
|
1721
|
-
onBegin?: ((stroke: SignatureStroke) => void) | null;
|
|
1721
|
+
onBegin?: ((stroke: SignatureStroke) => void) | null | undefined;
|
|
1722
1722
|
/**
|
|
1723
1723
|
* - A stroke ended
|
|
1724
1724
|
*/
|
|
1725
|
-
onEnd?: ((stroke: SignatureStroke) => void) | null;
|
|
1725
|
+
onEnd?: ((stroke: SignatureStroke) => void) | null | undefined;
|
|
1726
1726
|
};
|
|
1727
1727
|
export type SignatureInstance = Signature;
|
|
1728
1728
|
export type DatePickerOptions = {
|
|
1729
1729
|
/**
|
|
1730
1730
|
* - Initial date; null reads the input
|
|
1731
1731
|
*/
|
|
1732
|
-
value?: string | Date | null;
|
|
1732
|
+
value?: string | Date | null | undefined;
|
|
1733
1733
|
/**
|
|
1734
1734
|
* - What the input shows (YYYY YY MMMM MMM MM M DDDD DDD DD D); the value stays ISO
|
|
1735
1735
|
*/
|
|
1736
|
-
format?: string;
|
|
1736
|
+
format?: string | undefined;
|
|
1737
1737
|
/**
|
|
1738
1738
|
* - Earliest selectable date
|
|
1739
1739
|
*/
|
|
1740
|
-
min?: string | Date | null;
|
|
1740
|
+
min?: string | Date | null | undefined;
|
|
1741
1741
|
/**
|
|
1742
1742
|
* - Latest selectable date
|
|
1743
1743
|
*/
|
|
1744
|
-
max?: string | Date | null;
|
|
1744
|
+
max?: string | Date | null | undefined;
|
|
1745
1745
|
/**
|
|
1746
1746
|
* - First day of the week: 0 Sunday, 1 Monday
|
|
1747
1747
|
*/
|
|
1748
|
-
firstDay?: number;
|
|
1748
|
+
firstDay?: number | undefined;
|
|
1749
1749
|
/**
|
|
1750
1750
|
* - true means unavailable
|
|
1751
1751
|
*/
|
|
1752
|
-
disabledDates?: ((date: Date) => boolean) | null;
|
|
1753
|
-
openOnFocus?: boolean;
|
|
1754
|
-
closeOnSelect?: boolean;
|
|
1755
|
-
closeOnClickOutside?: boolean;
|
|
1756
|
-
closeOnEscape?: boolean;
|
|
1752
|
+
disabledDates?: ((date: Date) => boolean) | null | undefined;
|
|
1753
|
+
openOnFocus?: boolean | undefined;
|
|
1754
|
+
closeOnSelect?: boolean | undefined;
|
|
1755
|
+
closeOnClickOutside?: boolean | undefined;
|
|
1756
|
+
closeOnEscape?: boolean | undefined;
|
|
1757
1757
|
/**
|
|
1758
1758
|
* - Clear button
|
|
1759
1759
|
*/
|
|
1760
|
-
clearable?: boolean;
|
|
1761
|
-
todayButton?: boolean;
|
|
1760
|
+
clearable?: boolean | undefined;
|
|
1761
|
+
todayButton?: boolean | undefined;
|
|
1762
1762
|
/**
|
|
1763
1763
|
* - Stop typing; only the calendar sets it
|
|
1764
1764
|
*/
|
|
1765
|
-
readonlyInput?: boolean;
|
|
1765
|
+
readonlyInput?: boolean | undefined;
|
|
1766
1766
|
/**
|
|
1767
1767
|
* - Render in place instead of as a popup
|
|
1768
1768
|
*/
|
|
1769
|
-
inline?: boolean;
|
|
1769
|
+
inline?: boolean | undefined;
|
|
1770
1770
|
/**
|
|
1771
1771
|
* - Popup position
|
|
1772
1772
|
*/
|
|
1773
|
-
position?: DropdownPosition;
|
|
1773
|
+
position?: DropdownPosition | undefined;
|
|
1774
1774
|
/**
|
|
1775
1775
|
* - Popup offset [x, y]
|
|
1776
1776
|
*/
|
|
1777
|
-
offset?: [number, number];
|
|
1777
|
+
offset?: [number, number] | undefined;
|
|
1778
1778
|
/**
|
|
1779
1779
|
* - ISO week numbers
|
|
1780
1780
|
*/
|
|
1781
|
-
weekNumbers?: boolean;
|
|
1781
|
+
weekNumbers?: boolean | undefined;
|
|
1782
1782
|
/**
|
|
1783
1783
|
* - Default: the format
|
|
1784
1784
|
*/
|
|
1785
|
-
placeholder?: string | null;
|
|
1785
|
+
placeholder?: string | null | undefined;
|
|
1786
1786
|
/**
|
|
1787
1787
|
* - ISO value ('' when cleared)
|
|
1788
1788
|
*/
|
|
1789
|
-
onChange?: ((value: string, date: Date | null, picker: DatePickerInstance) => void) | null;
|
|
1789
|
+
onChange?: ((value: string, date: Date | null, picker: DatePickerInstance) => void) | null | undefined;
|
|
1790
1790
|
/**
|
|
1791
1791
|
* - Return false to keep it closed
|
|
1792
1792
|
*/
|
|
1793
|
-
onBeforeOpen?: ((picker: DatePickerInstance) => boolean | void) | null;
|
|
1794
|
-
onOpen?: ((picker: DatePickerInstance) => void) | null;
|
|
1793
|
+
onBeforeOpen?: ((picker: DatePickerInstance) => boolean | void) | null | undefined;
|
|
1794
|
+
onOpen?: ((picker: DatePickerInstance) => void) | null | undefined;
|
|
1795
1795
|
/**
|
|
1796
1796
|
* - Return false to keep it open
|
|
1797
1797
|
*/
|
|
1798
|
-
onBeforeClose?: ((picker: DatePickerInstance) => boolean | void) | null;
|
|
1799
|
-
onClose?: ((picker: DatePickerInstance) => void) | null;
|
|
1798
|
+
onBeforeClose?: ((picker: DatePickerInstance) => boolean | void) | null | undefined;
|
|
1799
|
+
onClose?: ((picker: DatePickerInstance) => void) | null | undefined;
|
|
1800
1800
|
};
|
|
1801
1801
|
export type DatePickerInstance = DatePicker;
|
|
1802
1802
|
export type ChooserBadge = {
|
|
1803
1803
|
text: string;
|
|
1804
|
-
type?: "success" | "
|
|
1804
|
+
type?: "primary" | "success" | "danger" | "warning" | "info" | undefined;
|
|
1805
1805
|
};
|
|
1806
1806
|
export type ChooserOption = {
|
|
1807
1807
|
value: string | number;
|
|
@@ -1809,15 +1809,15 @@ export type ChooserOption = {
|
|
|
1809
1809
|
/**
|
|
1810
1810
|
* - Domma icon name
|
|
1811
1811
|
*/
|
|
1812
|
-
icon?: string;
|
|
1812
|
+
icon?: string | undefined;
|
|
1813
1813
|
/**
|
|
1814
1814
|
* - Card variant, comfortable density only
|
|
1815
1815
|
*/
|
|
1816
|
-
description?: string;
|
|
1817
|
-
tooltip?: string;
|
|
1818
|
-
badge?: ChooserBadge;
|
|
1819
|
-
recommended?: boolean;
|
|
1820
|
-
disabled?: boolean;
|
|
1816
|
+
description?: string | undefined;
|
|
1817
|
+
tooltip?: string | undefined;
|
|
1818
|
+
badge?: ChooserBadge | undefined;
|
|
1819
|
+
recommended?: boolean | undefined;
|
|
1820
|
+
disabled?: boolean | undefined;
|
|
1821
1821
|
};
|
|
1822
1822
|
export type ChooserSemanticColour = "primary" | "success" | "info" | "warning" | "danger";
|
|
1823
1823
|
export type ChooserOptions = {
|
|
@@ -1825,60 +1825,60 @@ export type ChooserOptions = {
|
|
|
1825
1825
|
* - The choices
|
|
1826
1826
|
*/
|
|
1827
1827
|
options: ChooserOption[];
|
|
1828
|
-
variant?: "card" | "chip";
|
|
1828
|
+
variant?: "card" | "chip" | undefined;
|
|
1829
1829
|
/**
|
|
1830
1830
|
* - Multi-select
|
|
1831
1831
|
*/
|
|
1832
|
-
multiple?: boolean;
|
|
1833
|
-
density?: "comfortable" | "compact";
|
|
1832
|
+
multiple?: boolean | undefined;
|
|
1833
|
+
density?: "comfortable" | "compact" | undefined;
|
|
1834
1834
|
/**
|
|
1835
1835
|
* - Grid columns (card variant)
|
|
1836
1836
|
*/
|
|
1837
|
-
columns?: number;
|
|
1837
|
+
columns?: number | undefined;
|
|
1838
1838
|
/**
|
|
1839
1839
|
* - Label rendered above
|
|
1840
1840
|
*/
|
|
1841
|
-
label?: string;
|
|
1841
|
+
label?: string | undefined;
|
|
1842
1842
|
/**
|
|
1843
1843
|
* - Required indicator
|
|
1844
1844
|
*/
|
|
1845
|
-
required?: boolean;
|
|
1845
|
+
required?: boolean | undefined;
|
|
1846
1846
|
/**
|
|
1847
1847
|
* - Hidden-input name for native form submission
|
|
1848
1848
|
*/
|
|
1849
|
-
name?: string;
|
|
1849
|
+
name?: string | undefined;
|
|
1850
1850
|
/**
|
|
1851
1851
|
* - Initial selection
|
|
1852
1852
|
*/
|
|
1853
|
-
value?: string | string[] | null;
|
|
1853
|
+
value?: string | string[] | null | undefined;
|
|
1854
1854
|
/**
|
|
1855
1855
|
* - Selected/recommended highlight colour - semantic name or any CSS colour string
|
|
1856
1856
|
*/
|
|
1857
|
-
accent?:
|
|
1857
|
+
accent?: string | undefined;
|
|
1858
1858
|
/**
|
|
1859
1859
|
* - Visual style of the selected state
|
|
1860
1860
|
*/
|
|
1861
|
-
accentStyle?: "border" | "solid" | "glow" | "overlay" | "underline";
|
|
1861
|
+
accentStyle?: "border" | "solid" | "glow" | "overlay" | "underline" | undefined;
|
|
1862
1862
|
/**
|
|
1863
1863
|
* - Soft outer glow on the selected option
|
|
1864
1864
|
*/
|
|
1865
|
-
glow?: boolean;
|
|
1865
|
+
glow?: boolean | undefined;
|
|
1866
1866
|
/**
|
|
1867
1867
|
* - Glow colour override - semantic name or any CSS colour string. Defaults to the accent colour.
|
|
1868
1868
|
*/
|
|
1869
|
-
glowColour?:
|
|
1869
|
+
glowColour?: string | null | undefined;
|
|
1870
1870
|
/**
|
|
1871
1871
|
* - Shadow weight applied to every option
|
|
1872
1872
|
*/
|
|
1873
|
-
shadow?: "none" | "sm" | "md" | "lg" | "xl";
|
|
1873
|
+
shadow?: "none" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
1874
1874
|
/**
|
|
1875
1875
|
* - Optional shadow tint - any CSS colour string
|
|
1876
1876
|
*/
|
|
1877
|
-
shadowColour?: string | null;
|
|
1877
|
+
shadowColour?: string | null | undefined;
|
|
1878
1878
|
/**
|
|
1879
1879
|
* - Called with the new value (user changes only, not setValue)
|
|
1880
1880
|
*/
|
|
1881
|
-
onChange?: (value: string | string[] | null) => void;
|
|
1881
|
+
onChange?: ((value: string | string[] | null) => void) | undefined;
|
|
1882
1882
|
};
|
|
1883
1883
|
/**
|
|
1884
1884
|
* What `E.chooser()` returns. A missing host gets an inert one (`element` null, methods do nothing).
|
|
@@ -2208,16 +2208,16 @@ export class DesktopNotification {
|
|
|
2208
2208
|
static defaults: {
|
|
2209
2209
|
title: string;
|
|
2210
2210
|
body: string;
|
|
2211
|
-
icon:
|
|
2212
|
-
badge:
|
|
2213
|
-
tag:
|
|
2211
|
+
icon: null;
|
|
2212
|
+
badge: null;
|
|
2213
|
+
tag: null;
|
|
2214
2214
|
requireInteraction: boolean;
|
|
2215
2215
|
silent: boolean;
|
|
2216
|
-
data:
|
|
2217
|
-
onClick:
|
|
2218
|
-
onClose:
|
|
2219
|
-
onError:
|
|
2220
|
-
onShow:
|
|
2216
|
+
data: null;
|
|
2217
|
+
onClick: null;
|
|
2218
|
+
onClose: null;
|
|
2219
|
+
onError: null;
|
|
2220
|
+
onShow: null;
|
|
2221
2221
|
};
|
|
2222
2222
|
/**
|
|
2223
2223
|
* Request notification permission
|
|
@@ -2306,7 +2306,7 @@ declare class Tabs extends Component {
|
|
|
2306
2306
|
tabSelector: string;
|
|
2307
2307
|
panelSelector: string;
|
|
2308
2308
|
activeClass: string;
|
|
2309
|
-
onChange:
|
|
2309
|
+
onChange: null;
|
|
2310
2310
|
};
|
|
2311
2311
|
/**
|
|
2312
2312
|
* @param {string|HTMLElement} selector - The tabs container
|
|
@@ -2315,8 +2315,8 @@ declare class Tabs extends Component {
|
|
|
2315
2315
|
constructor(selector: string | HTMLElement, options?: TabsOptions);
|
|
2316
2316
|
_activeIndex: any;
|
|
2317
2317
|
_init(): void;
|
|
2318
|
-
_tabs: NodeListOf<any
|
|
2319
|
-
_panels: NodeListOf<any
|
|
2318
|
+
_tabs: NodeListOf<any> | undefined;
|
|
2319
|
+
_panels: NodeListOf<any> | undefined;
|
|
2320
2320
|
/**
|
|
2321
2321
|
* Activate a tab by index, or by its `data-tab` / `href` value.
|
|
2322
2322
|
* @param {number|string} index
|
|
@@ -2375,14 +2375,14 @@ declare class Tabs extends Component {
|
|
|
2375
2375
|
declare class Accordion extends Component {
|
|
2376
2376
|
static defaults: {
|
|
2377
2377
|
allowMultiple: boolean;
|
|
2378
|
-
multiExpand:
|
|
2379
|
-
activeIndex:
|
|
2378
|
+
multiExpand: null;
|
|
2379
|
+
activeIndex: null;
|
|
2380
2380
|
animation: boolean;
|
|
2381
2381
|
animationDuration: number;
|
|
2382
2382
|
headerSelector: string;
|
|
2383
2383
|
contentSelector: string;
|
|
2384
2384
|
activeClass: string;
|
|
2385
|
-
onChange:
|
|
2385
|
+
onChange: null;
|
|
2386
2386
|
};
|
|
2387
2387
|
/**
|
|
2388
2388
|
* @param {string|HTMLElement} selector - The accordion container
|
|
@@ -2390,8 +2390,8 @@ declare class Accordion extends Component {
|
|
|
2390
2390
|
*/
|
|
2391
2391
|
constructor(selector: string | HTMLElement, options?: AccordionOptions);
|
|
2392
2392
|
_init(): void;
|
|
2393
|
-
_headers: NodeListOf<any
|
|
2394
|
-
_contents: any[];
|
|
2393
|
+
_headers: NodeListOf<any> | undefined;
|
|
2394
|
+
_contents: any[] | undefined;
|
|
2395
2395
|
/**
|
|
2396
2396
|
* Open or close a panel; closes the others unless allowMultiple.
|
|
2397
2397
|
* @param {number} index
|
|
@@ -2458,9 +2458,9 @@ declare class ListGroup extends Component {
|
|
|
2458
2458
|
keyboard: boolean;
|
|
2459
2459
|
loop: boolean;
|
|
2460
2460
|
focusOnInit: boolean;
|
|
2461
|
-
onChange:
|
|
2462
|
-
onSelect:
|
|
2463
|
-
onDeselect:
|
|
2461
|
+
onChange: null;
|
|
2462
|
+
onSelect: null;
|
|
2463
|
+
onDeselect: null;
|
|
2464
2464
|
};
|
|
2465
2465
|
/**
|
|
2466
2466
|
* @param {string|HTMLElement} selector - The list-group element
|
|
@@ -2610,15 +2610,15 @@ declare class Dropdown extends Component {
|
|
|
2610
2610
|
closeOnEscape: boolean;
|
|
2611
2611
|
closeOthers: boolean;
|
|
2612
2612
|
flip: boolean;
|
|
2613
|
-
items:
|
|
2614
|
-
model:
|
|
2615
|
-
modelKey:
|
|
2616
|
-
itemTemplate:
|
|
2617
|
-
onBeforeOpen:
|
|
2618
|
-
onOpen:
|
|
2619
|
-
onBeforeClose:
|
|
2620
|
-
onClose:
|
|
2621
|
-
onSelect:
|
|
2613
|
+
items: never[];
|
|
2614
|
+
model: null;
|
|
2615
|
+
modelKey: null;
|
|
2616
|
+
itemTemplate: null;
|
|
2617
|
+
onBeforeOpen: null;
|
|
2618
|
+
onOpen: null;
|
|
2619
|
+
onBeforeClose: null;
|
|
2620
|
+
onClose: null;
|
|
2621
|
+
onSelect: null;
|
|
2622
2622
|
};
|
|
2623
2623
|
static _open: Set<any>;
|
|
2624
2624
|
/**
|
|
@@ -2626,17 +2626,17 @@ declare class Dropdown extends Component {
|
|
|
2626
2626
|
* @param {DropdownOptions} [options]
|
|
2627
2627
|
*/
|
|
2628
2628
|
constructor(selector: string | HTMLElement, options?: DropdownOptions);
|
|
2629
|
-
_menu: HTMLDivElement;
|
|
2629
|
+
_menu: HTMLDivElement | null;
|
|
2630
2630
|
_isOpen: boolean;
|
|
2631
2631
|
_items: any[];
|
|
2632
2632
|
_selectedValue: any;
|
|
2633
2633
|
_modelUnsubscribe: any;
|
|
2634
|
-
_hoverOpenTimer: number;
|
|
2634
|
+
_hoverOpenTimer: number | null;
|
|
2635
2635
|
_hoverCloseTimer: any;
|
|
2636
2636
|
_removeTimer: any;
|
|
2637
2637
|
_init(): void;
|
|
2638
|
-
_outsideClickHandler: (e: any) => void;
|
|
2639
|
-
_keydownHandler: (e: any) => void;
|
|
2638
|
+
_outsideClickHandler: ((e: any) => void) | null | undefined;
|
|
2639
|
+
_keydownHandler: ((e: any) => void) | null | undefined;
|
|
2640
2640
|
_bindToModel(model: any, key: any): void;
|
|
2641
2641
|
/**
|
|
2642
2642
|
* Open the menu (onBeforeOpen may refuse).
|
|
@@ -2675,10 +2675,10 @@ declare class Dropdown extends Component {
|
|
|
2675
2675
|
*/
|
|
2676
2676
|
_pointerInSafeZone(x: any, y: any): boolean;
|
|
2677
2677
|
_bindOpenListeners(): void;
|
|
2678
|
-
_openListenersBound: boolean;
|
|
2679
|
-
_repositionHandler: () => void;
|
|
2680
|
-
_pointerMoveHandler: (e: any) => void;
|
|
2681
|
-
_pointerLeaveHandler: () => void;
|
|
2678
|
+
_openListenersBound: boolean | undefined;
|
|
2679
|
+
_repositionHandler: (() => void) | null | undefined;
|
|
2680
|
+
_pointerMoveHandler: ((e: any) => void) | null | undefined;
|
|
2681
|
+
_pointerLeaveHandler: (() => void) | null | undefined;
|
|
2682
2682
|
_unbindOpenListeners(): void;
|
|
2683
2683
|
_createMenu(): void;
|
|
2684
2684
|
_renderMenu(): void;
|
|
@@ -2750,12 +2750,12 @@ declare class Timer extends Component {
|
|
|
2750
2750
|
notification: boolean;
|
|
2751
2751
|
notificationOptions: {};
|
|
2752
2752
|
sound: boolean;
|
|
2753
|
-
soundUrl:
|
|
2754
|
-
onTick:
|
|
2755
|
-
onComplete:
|
|
2756
|
-
onStart:
|
|
2757
|
-
onPause:
|
|
2758
|
-
onReset:
|
|
2753
|
+
soundUrl: null;
|
|
2754
|
+
onTick: null;
|
|
2755
|
+
onComplete: null;
|
|
2756
|
+
onStart: null;
|
|
2757
|
+
onPause: null;
|
|
2758
|
+
onReset: null;
|
|
2759
2759
|
};
|
|
2760
2760
|
/**
|
|
2761
2761
|
* @param {string|HTMLElement|null} [selector] - Where to draw the display; null for a headless timer
|
|
@@ -2764,27 +2764,27 @@ declare class Timer extends Component {
|
|
|
2764
2764
|
constructor(selector?: string | HTMLElement | null, options?: TimerOptions);
|
|
2765
2765
|
_running: boolean;
|
|
2766
2766
|
_remaining: any;
|
|
2767
|
-
_intervalId: number;
|
|
2768
|
-
_startTime: number;
|
|
2769
|
-
_pausedTime: number;
|
|
2770
|
-
_display: HTMLDivElement;
|
|
2771
|
-
_controls: HTMLDivElement;
|
|
2772
|
-
_audio: HTMLAudioElement;
|
|
2767
|
+
_intervalId: number | null;
|
|
2768
|
+
_startTime: number | null;
|
|
2769
|
+
_pausedTime: number | null;
|
|
2770
|
+
_display: HTMLDivElement | null;
|
|
2771
|
+
_controls: HTMLDivElement | null;
|
|
2772
|
+
_audio: HTMLAudioElement | null;
|
|
2773
2773
|
_init(): void;
|
|
2774
2774
|
/**
|
|
2775
2775
|
* Create visual display
|
|
2776
2776
|
* @private
|
|
2777
2777
|
*/
|
|
2778
2778
|
private _createDisplay;
|
|
2779
|
-
_container: HTMLDivElement;
|
|
2779
|
+
_container: HTMLDivElement | null | undefined;
|
|
2780
2780
|
/**
|
|
2781
2781
|
* Create control buttons
|
|
2782
2782
|
* @private
|
|
2783
2783
|
*/
|
|
2784
2784
|
private _createControls;
|
|
2785
|
-
_startBtn: HTMLButtonElement;
|
|
2786
|
-
_pauseBtn: HTMLButtonElement;
|
|
2787
|
-
_resetBtn: HTMLButtonElement;
|
|
2785
|
+
_startBtn: HTMLButtonElement | undefined;
|
|
2786
|
+
_pauseBtn: HTMLButtonElement | undefined;
|
|
2787
|
+
_resetBtn: HTMLButtonElement | undefined;
|
|
2788
2788
|
/**
|
|
2789
2789
|
* Update visual display
|
|
2790
2790
|
* @private
|
|
@@ -2898,18 +2898,18 @@ declare class Timer extends Component {
|
|
|
2898
2898
|
*/
|
|
2899
2899
|
declare class Alarm {
|
|
2900
2900
|
static defaults: {
|
|
2901
|
-
alarms:
|
|
2901
|
+
alarms: never[];
|
|
2902
2902
|
timezone: string;
|
|
2903
2903
|
checkInterval: number;
|
|
2904
2904
|
storageKey: string;
|
|
2905
|
-
onTrigger:
|
|
2906
|
-
onSnooze:
|
|
2907
|
-
onDismiss:
|
|
2908
|
-
onAlarmAdd:
|
|
2909
|
-
onAlarmRemove:
|
|
2905
|
+
onTrigger: null;
|
|
2906
|
+
onSnooze: null;
|
|
2907
|
+
onDismiss: null;
|
|
2908
|
+
onAlarmAdd: null;
|
|
2909
|
+
onAlarmRemove: null;
|
|
2910
2910
|
};
|
|
2911
|
-
static _instance:
|
|
2912
|
-
static _checkInterval:
|
|
2911
|
+
static _instance: null;
|
|
2912
|
+
static _checkInterval: null;
|
|
2913
2913
|
static _nextAlarmId: number;
|
|
2914
2914
|
/**
|
|
2915
2915
|
* Constructor - implements singleton pattern
|
|
@@ -2918,7 +2918,7 @@ declare class Alarm {
|
|
|
2918
2918
|
constructor(options?: AlarmOptions);
|
|
2919
2919
|
/** @type {AlarmOptions} */
|
|
2920
2920
|
options: AlarmOptions;
|
|
2921
|
-
_alarms: any[];
|
|
2921
|
+
_alarms: any[] | undefined;
|
|
2922
2922
|
/**
|
|
2923
2923
|
* Initialize alarm system
|
|
2924
2924
|
* @private
|
|
@@ -3103,12 +3103,12 @@ declare class Carousel extends Component {
|
|
|
3103
3103
|
animationDuration: number;
|
|
3104
3104
|
animationEasing: string;
|
|
3105
3105
|
heightMode: string;
|
|
3106
|
-
height:
|
|
3106
|
+
height: null;
|
|
3107
3107
|
showArrows: boolean;
|
|
3108
3108
|
showIndicators: boolean;
|
|
3109
3109
|
slideSelector: string;
|
|
3110
3110
|
activeClass: string;
|
|
3111
|
-
onChange:
|
|
3111
|
+
onChange: null;
|
|
3112
3112
|
};
|
|
3113
3113
|
/**
|
|
3114
3114
|
* @param {string|HTMLElement} selector - The carousel element
|
|
@@ -3116,25 +3116,25 @@ declare class Carousel extends Component {
|
|
|
3116
3116
|
*/
|
|
3117
3117
|
constructor(selector: string | HTMLElement, options?: CarouselOptions);
|
|
3118
3118
|
_currentIndex: number;
|
|
3119
|
-
_autoplayTimer: number;
|
|
3119
|
+
_autoplayTimer: number | null;
|
|
3120
3120
|
_isAnimating: boolean;
|
|
3121
3121
|
_init(): void;
|
|
3122
|
-
_slides: NodeListOf<any
|
|
3123
|
-
_track: Element;
|
|
3122
|
+
_slides: NodeListOf<any> | undefined;
|
|
3123
|
+
_track: Element | null | undefined;
|
|
3124
3124
|
_initHeight(): void;
|
|
3125
|
-
_images: any[];
|
|
3126
|
-
_originalHeight: string;
|
|
3127
|
-
_originalHeightPriority: string;
|
|
3128
|
-
_wasSized: boolean;
|
|
3129
|
-
_heightObserver: ResizeObserver;
|
|
3125
|
+
_images: any[] | undefined;
|
|
3126
|
+
_originalHeight: string | undefined;
|
|
3127
|
+
_originalHeightPriority: string | undefined;
|
|
3128
|
+
_wasSized: boolean | undefined;
|
|
3129
|
+
_heightObserver: ResizeObserver | undefined;
|
|
3130
3130
|
_sizeSlides(): void;
|
|
3131
3131
|
_applyOptions(): void;
|
|
3132
3132
|
_createArrows(): void;
|
|
3133
|
-
_prevBtn: HTMLButtonElement;
|
|
3134
|
-
_nextBtn: HTMLButtonElement;
|
|
3133
|
+
_prevBtn: HTMLButtonElement | undefined;
|
|
3134
|
+
_nextBtn: HTMLButtonElement | undefined;
|
|
3135
3135
|
_createIndicators(): void;
|
|
3136
|
-
_indicators: HTMLDivElement;
|
|
3137
|
-
_updateState(oldIndex?:
|
|
3136
|
+
_indicators: HTMLDivElement | undefined;
|
|
3137
|
+
_updateState(oldIndex?: null): void;
|
|
3138
3138
|
_applyCrossfade(oldIndex: any, newIndex: any): void;
|
|
3139
3139
|
_crossfadeSwapTimer: any;
|
|
3140
3140
|
_startAutoplay(): void;
|
|
@@ -3234,7 +3234,7 @@ declare class CookieConsent extends Component {
|
|
|
3234
3234
|
privacyPolicyText: string;
|
|
3235
3235
|
privacyPolicyUrl: string;
|
|
3236
3236
|
cookiePolicyText: string;
|
|
3237
|
-
cookiePolicyUrl:
|
|
3237
|
+
cookiePolicyUrl: null;
|
|
3238
3238
|
categories: {
|
|
3239
3239
|
necessary: {
|
|
3240
3240
|
label: string;
|
|
@@ -3270,13 +3270,13 @@ declare class CookieConsent extends Component {
|
|
|
3270
3270
|
defaultState: string;
|
|
3271
3271
|
requireExplicitConsent: boolean;
|
|
3272
3272
|
consentVersion: string;
|
|
3273
|
-
onVersionMismatch:
|
|
3274
|
-
onAccept:
|
|
3275
|
-
onReject:
|
|
3276
|
-
onCustomize:
|
|
3277
|
-
onChange:
|
|
3278
|
-
onShow:
|
|
3279
|
-
onHide:
|
|
3273
|
+
onVersionMismatch: null;
|
|
3274
|
+
onAccept: null;
|
|
3275
|
+
onReject: null;
|
|
3276
|
+
onCustomize: null;
|
|
3277
|
+
onChange: null;
|
|
3278
|
+
onShow: null;
|
|
3279
|
+
onHide: null;
|
|
3280
3280
|
};
|
|
3281
3281
|
/**
|
|
3282
3282
|
* @param {CookieConsentOptions} [options]
|
|
@@ -3284,7 +3284,7 @@ declare class CookieConsent extends Component {
|
|
|
3284
3284
|
constructor(options?: CookieConsentOptions);
|
|
3285
3285
|
_state: any;
|
|
3286
3286
|
_preferences: {};
|
|
3287
|
-
_customizeModal: HTMLDivElement;
|
|
3287
|
+
_customizeModal: HTMLDivElement | null;
|
|
3288
3288
|
_isVisible: boolean;
|
|
3289
3289
|
_init(): void;
|
|
3290
3290
|
_loadPreferences(): void;
|
|
@@ -3395,7 +3395,7 @@ declare class ButtonGroup extends Component {
|
|
|
3395
3395
|
mode: string;
|
|
3396
3396
|
activeClass: string;
|
|
3397
3397
|
allowEmpty: boolean;
|
|
3398
|
-
onChange:
|
|
3398
|
+
onChange: null;
|
|
3399
3399
|
};
|
|
3400
3400
|
/**
|
|
3401
3401
|
* @param {string|HTMLElement} selector - The group container
|
|
@@ -3403,7 +3403,7 @@ declare class ButtonGroup extends Component {
|
|
|
3403
3403
|
*/
|
|
3404
3404
|
constructor(selector: string | HTMLElement, options?: ButtonGroupOptions);
|
|
3405
3405
|
_init(): void;
|
|
3406
|
-
buttons: Element[];
|
|
3406
|
+
buttons: Element[] | undefined;
|
|
3407
3407
|
_handleClick(btn: any, index: any): void;
|
|
3408
3408
|
/**
|
|
3409
3409
|
* Get the current value(s)
|
|
@@ -3461,11 +3461,11 @@ declare class ButtonGroup extends Component {
|
|
|
3461
3461
|
*/
|
|
3462
3462
|
declare class Breadcrumbs extends Component {
|
|
3463
3463
|
static defaults: {
|
|
3464
|
-
items:
|
|
3464
|
+
items: never[];
|
|
3465
3465
|
separator: string;
|
|
3466
3466
|
homeIcon: boolean;
|
|
3467
3467
|
responsive: boolean;
|
|
3468
|
-
onChange:
|
|
3468
|
+
onChange: null;
|
|
3469
3469
|
};
|
|
3470
3470
|
static separators: {
|
|
3471
3471
|
'/': string;
|
|
@@ -3550,16 +3550,16 @@ declare class Breadcrumbs extends Component {
|
|
|
3550
3550
|
*/
|
|
3551
3551
|
declare class Navbar extends Component {
|
|
3552
3552
|
static defaults: {
|
|
3553
|
-
brand:
|
|
3554
|
-
items:
|
|
3553
|
+
brand: null;
|
|
3554
|
+
items: never[];
|
|
3555
3555
|
position: string;
|
|
3556
3556
|
variant: string;
|
|
3557
3557
|
collapsible: boolean;
|
|
3558
3558
|
collapseAt: number;
|
|
3559
3559
|
appearOnHover: boolean;
|
|
3560
3560
|
hoverCloseDelay: number;
|
|
3561
|
-
actions:
|
|
3562
|
-
onItemClick:
|
|
3561
|
+
actions: never[];
|
|
3562
|
+
onItemClick: null;
|
|
3563
3563
|
};
|
|
3564
3564
|
/**
|
|
3565
3565
|
* @param {string|HTMLElement} selector - The element to render into
|
|
@@ -3569,11 +3569,11 @@ declare class Navbar extends Component {
|
|
|
3569
3569
|
_isCollapsed: boolean;
|
|
3570
3570
|
_pinned: any;
|
|
3571
3571
|
_hoverSuppressed: any;
|
|
3572
|
-
_navCloseTimer: number;
|
|
3572
|
+
_navCloseTimer: number | null;
|
|
3573
3573
|
_init(): void;
|
|
3574
3574
|
_render(): void;
|
|
3575
|
-
_toggle: Element;
|
|
3576
|
-
_collapse: Element;
|
|
3575
|
+
_toggle: Element | null | undefined;
|
|
3576
|
+
_collapse: Element | null | undefined;
|
|
3577
3577
|
/**
|
|
3578
3578
|
* Render a list of nav items as <li> markup, recursing into `items` so
|
|
3579
3579
|
* dropdowns can nest to arbitrary depth.
|
|
@@ -3691,16 +3691,16 @@ declare class Sidebar extends Component {
|
|
|
3691
3691
|
fixed: boolean;
|
|
3692
3692
|
width: string;
|
|
3693
3693
|
top: string;
|
|
3694
|
-
header:
|
|
3695
|
-
items:
|
|
3696
|
-
footer:
|
|
3694
|
+
header: null;
|
|
3695
|
+
items: never[];
|
|
3696
|
+
footer: null;
|
|
3697
3697
|
variant: string;
|
|
3698
3698
|
collapsible: boolean;
|
|
3699
3699
|
collapseAt: number;
|
|
3700
|
-
activeSection:
|
|
3701
|
-
expandedSections:
|
|
3700
|
+
activeSection: null;
|
|
3701
|
+
expandedSections: never[];
|
|
3702
3702
|
persistExpanded: boolean;
|
|
3703
|
-
persistKey:
|
|
3703
|
+
persistKey: null;
|
|
3704
3704
|
animationDuration: number;
|
|
3705
3705
|
push: boolean;
|
|
3706
3706
|
contentSelector: string;
|
|
@@ -3708,17 +3708,17 @@ declare class Sidebar extends Component {
|
|
|
3708
3708
|
scrollSpyOffset: string;
|
|
3709
3709
|
scrollSpyThreshold: number;
|
|
3710
3710
|
floating: boolean;
|
|
3711
|
-
customContent:
|
|
3711
|
+
customContent: null;
|
|
3712
3712
|
collapsibleDesktop: boolean;
|
|
3713
3713
|
collapsedWidth: string;
|
|
3714
3714
|
persistCollapsed: boolean;
|
|
3715
|
-
persistCollapseKey:
|
|
3716
|
-
onItemClick:
|
|
3717
|
-
onBeforeOpen:
|
|
3718
|
-
onBeforeClose:
|
|
3719
|
-
onToggle:
|
|
3720
|
-
onExpand:
|
|
3721
|
-
onCollapse:
|
|
3715
|
+
persistCollapseKey: null;
|
|
3716
|
+
onItemClick: null;
|
|
3717
|
+
onBeforeOpen: null;
|
|
3718
|
+
onBeforeClose: null;
|
|
3719
|
+
onToggle: null;
|
|
3720
|
+
onExpand: null;
|
|
3721
|
+
onCollapse: null;
|
|
3722
3722
|
};
|
|
3723
3723
|
/**
|
|
3724
3724
|
* @param {string|HTMLElement} selector - The element to render into
|
|
@@ -3733,10 +3733,10 @@ declare class Sidebar extends Component {
|
|
|
3733
3733
|
_contentElement: any;
|
|
3734
3734
|
_handleInitialPushState(): void;
|
|
3735
3735
|
_render(): void;
|
|
3736
|
-
_toggle: Element;
|
|
3737
|
-
_nav: Element;
|
|
3738
|
-
_overlay: HTMLDivElement;
|
|
3739
|
-
_floatingToggle: HTMLButtonElement;
|
|
3736
|
+
_toggle: Element | null | undefined;
|
|
3737
|
+
_nav: Element | null | undefined;
|
|
3738
|
+
_overlay: HTMLDivElement | null | undefined;
|
|
3739
|
+
_floatingToggle: HTMLButtonElement | null | undefined;
|
|
3740
3740
|
_renderItems(items: any, depth?: number, parentPath?: string): string;
|
|
3741
3741
|
_bindEvents(): void;
|
|
3742
3742
|
_toggleSubmenu(itemElement: any, path: any): void;
|
|
@@ -3749,7 +3749,7 @@ declare class Sidebar extends Component {
|
|
|
3749
3749
|
_loadCollapsedState(): void;
|
|
3750
3750
|
_saveCollapsedState(): void;
|
|
3751
3751
|
_initScrollSpy(): void;
|
|
3752
|
-
_scrollSpyObserver: IntersectionObserver;
|
|
3752
|
+
_scrollSpyObserver: IntersectionObserver | null | undefined;
|
|
3753
3753
|
_createOverlay(): void;
|
|
3754
3754
|
_removeOverlay(): void;
|
|
3755
3755
|
_applyPush(): void;
|
|
@@ -3889,11 +3889,11 @@ declare class Footer extends Component {
|
|
|
3889
3889
|
static defaults: {
|
|
3890
3890
|
variant: string;
|
|
3891
3891
|
layout: string;
|
|
3892
|
-
brand:
|
|
3893
|
-
columns:
|
|
3894
|
-
links:
|
|
3895
|
-
social:
|
|
3896
|
-
copyright:
|
|
3892
|
+
brand: null;
|
|
3893
|
+
columns: never[];
|
|
3894
|
+
links: never[];
|
|
3895
|
+
social: never[];
|
|
3896
|
+
copyright: null;
|
|
3897
3897
|
className: string;
|
|
3898
3898
|
position: string;
|
|
3899
3899
|
};
|
|
@@ -3978,13 +3978,13 @@ declare class Footer extends Component {
|
|
|
3978
3978
|
*/
|
|
3979
3979
|
declare class Autocomplete extends Component {
|
|
3980
3980
|
static defaults: {
|
|
3981
|
-
data:
|
|
3982
|
-
dataSource:
|
|
3981
|
+
data: never[];
|
|
3982
|
+
dataSource: null;
|
|
3983
3983
|
minChars: number;
|
|
3984
3984
|
maxResults: number;
|
|
3985
3985
|
debounce: number;
|
|
3986
|
-
filterFn:
|
|
3987
|
-
renderItem:
|
|
3986
|
+
filterFn: null;
|
|
3987
|
+
renderItem: null;
|
|
3988
3988
|
highlightMatches: boolean;
|
|
3989
3989
|
position: string;
|
|
3990
3990
|
placeholder: string;
|
|
@@ -3993,13 +3993,13 @@ declare class Autocomplete extends Component {
|
|
|
3993
3993
|
caseSensitive: boolean;
|
|
3994
3994
|
selectOnEnter: boolean;
|
|
3995
3995
|
clearOnSelect: boolean;
|
|
3996
|
-
onSelect:
|
|
3997
|
-
onChange:
|
|
3998
|
-
onBeforeOpen:
|
|
3999
|
-
onOpen:
|
|
4000
|
-
onBeforeClose:
|
|
4001
|
-
onClose:
|
|
4002
|
-
onFilter:
|
|
3996
|
+
onSelect: null;
|
|
3997
|
+
onChange: null;
|
|
3998
|
+
onBeforeOpen: null;
|
|
3999
|
+
onOpen: null;
|
|
4000
|
+
onBeforeClose: null;
|
|
4001
|
+
onClose: null;
|
|
4002
|
+
onFilter: null;
|
|
4003
4003
|
};
|
|
4004
4004
|
/**
|
|
4005
4005
|
* @param {string|HTMLElement} selector - The input
|
|
@@ -4007,16 +4007,16 @@ declare class Autocomplete extends Component {
|
|
|
4007
4007
|
*/
|
|
4008
4008
|
constructor(selector: string | HTMLElement, options?: AutocompleteOptions);
|
|
4009
4009
|
model: any;
|
|
4010
|
-
modelKey: string;
|
|
4010
|
+
modelKey: string | null;
|
|
4011
4011
|
_isOpen: boolean;
|
|
4012
4012
|
_activeIndex: number;
|
|
4013
4013
|
_filteredData: any[];
|
|
4014
4014
|
_loading: boolean;
|
|
4015
|
-
_debounceTimer: number;
|
|
4016
|
-
_dropdown: HTMLDivElement;
|
|
4017
|
-
_list: HTMLUListElement;
|
|
4018
|
-
_loadingEl: HTMLDivElement;
|
|
4019
|
-
_emptyEl: HTMLDivElement;
|
|
4015
|
+
_debounceTimer: number | null;
|
|
4016
|
+
_dropdown: HTMLDivElement | null;
|
|
4017
|
+
_list: HTMLUListElement | null;
|
|
4018
|
+
_loadingEl: HTMLDivElement | null;
|
|
4019
|
+
_emptyEl: HTMLDivElement | null;
|
|
4020
4020
|
_modelUnsubscribe: any;
|
|
4021
4021
|
_init(): void;
|
|
4022
4022
|
_createDropdown(): void;
|
|
@@ -4139,32 +4139,32 @@ declare class Autocomplete extends Component {
|
|
|
4139
4139
|
*/
|
|
4140
4140
|
declare class Pillbox extends Component {
|
|
4141
4141
|
static defaults: {
|
|
4142
|
-
data:
|
|
4143
|
-
value:
|
|
4142
|
+
data: never[];
|
|
4143
|
+
value: never[];
|
|
4144
4144
|
placeholder: string;
|
|
4145
4145
|
searchable: boolean;
|
|
4146
4146
|
creatable: boolean;
|
|
4147
|
-
maxItems:
|
|
4147
|
+
maxItems: null;
|
|
4148
4148
|
duplicates: boolean;
|
|
4149
4149
|
clearable: boolean;
|
|
4150
4150
|
size: string;
|
|
4151
|
-
renderPill:
|
|
4152
|
-
renderOption:
|
|
4151
|
+
renderPill: null;
|
|
4152
|
+
renderOption: null;
|
|
4153
4153
|
pillTemplate: string;
|
|
4154
|
-
validatePill:
|
|
4154
|
+
validatePill: null;
|
|
4155
4155
|
maxItemsMessage: string;
|
|
4156
4156
|
duplicateMessage: string;
|
|
4157
4157
|
noResultsMessage: string;
|
|
4158
|
-
onBeforeOpen:
|
|
4159
|
-
onOpen:
|
|
4160
|
-
onBeforeClose:
|
|
4161
|
-
onClose:
|
|
4162
|
-
onAdd:
|
|
4163
|
-
onRemove:
|
|
4164
|
-
onChange:
|
|
4165
|
-
onCreate:
|
|
4166
|
-
onMaxReached:
|
|
4167
|
-
onValidationError:
|
|
4158
|
+
onBeforeOpen: null;
|
|
4159
|
+
onOpen: null;
|
|
4160
|
+
onBeforeClose: null;
|
|
4161
|
+
onClose: null;
|
|
4162
|
+
onAdd: null;
|
|
4163
|
+
onRemove: null;
|
|
4164
|
+
onChange: null;
|
|
4165
|
+
onCreate: null;
|
|
4166
|
+
onMaxReached: null;
|
|
4167
|
+
onValidationError: null;
|
|
4168
4168
|
};
|
|
4169
4169
|
/**
|
|
4170
4170
|
* @param {string|HTMLElement} selector - The input (or select) to enhance
|
|
@@ -4172,20 +4172,20 @@ declare class Pillbox extends Component {
|
|
|
4172
4172
|
*/
|
|
4173
4173
|
constructor(selector: string | HTMLElement, options?: PillboxOptions);
|
|
4174
4174
|
model: any;
|
|
4175
|
-
modelKey: string;
|
|
4175
|
+
modelKey: string | null;
|
|
4176
4176
|
_pills: any[];
|
|
4177
4177
|
_isOpen: boolean;
|
|
4178
4178
|
_activeIndex: number;
|
|
4179
|
-
_container: HTMLDivElement;
|
|
4180
|
-
_input: HTMLInputElement;
|
|
4181
|
-
_clearBtn: HTMLButtonElement;
|
|
4182
|
-
_dropdown: HTMLDivElement;
|
|
4183
|
-
_optionsList: HTMLUListElement;
|
|
4179
|
+
_container: HTMLDivElement | null;
|
|
4180
|
+
_input: HTMLInputElement | null;
|
|
4181
|
+
_clearBtn: HTMLButtonElement | null;
|
|
4182
|
+
_dropdown: HTMLDivElement | null;
|
|
4183
|
+
_optionsList: HTMLUListElement | null;
|
|
4184
4184
|
_filteredData: any[];
|
|
4185
4185
|
_modelUnsubscribe: any;
|
|
4186
4186
|
_init(): void;
|
|
4187
4187
|
_createStructure(): void;
|
|
4188
|
-
_wrapper: HTMLDivElement;
|
|
4188
|
+
_wrapper: HTMLDivElement | undefined;
|
|
4189
4189
|
_bindEvents(): void;
|
|
4190
4190
|
_handleInput(e: any): void;
|
|
4191
4191
|
_handleKeydown(e: any): void;
|
|
@@ -4358,11 +4358,11 @@ declare class Slideover extends Component {
|
|
|
4358
4358
|
customSizes: {};
|
|
4359
4359
|
trapFocus: boolean;
|
|
4360
4360
|
returnFocus: boolean;
|
|
4361
|
-
onBeforeOpen:
|
|
4362
|
-
onOpen:
|
|
4363
|
-
onBeforeClose:
|
|
4364
|
-
onClose:
|
|
4365
|
-
onClosed:
|
|
4361
|
+
onBeforeOpen: null;
|
|
4362
|
+
onOpen: null;
|
|
4363
|
+
onBeforeClose: null;
|
|
4364
|
+
onClose: null;
|
|
4365
|
+
onClosed: null;
|
|
4366
4366
|
};
|
|
4367
4367
|
/**
|
|
4368
4368
|
* Build a slideover (header, close button, body) at the end of `<body>`. With `schema`, the body
|
|
@@ -4377,11 +4377,11 @@ declare class Slideover extends Component {
|
|
|
4377
4377
|
*/
|
|
4378
4378
|
constructor(selector: string | HTMLElement, options?: SlideoverOptions);
|
|
4379
4379
|
_isOpen: boolean;
|
|
4380
|
-
_backdrop: HTMLDivElement;
|
|
4381
|
-
_trap: FocusTrap;
|
|
4380
|
+
_backdrop: HTMLDivElement | null;
|
|
4381
|
+
_trap: FocusTrap | null;
|
|
4382
4382
|
_trapAsked: boolean;
|
|
4383
|
-
_originalBodyOverflow: string;
|
|
4384
|
-
_keydownHandler: (e: any) => void;
|
|
4383
|
+
_originalBodyOverflow: string | null;
|
|
4384
|
+
_keydownHandler: ((e: any) => void) | null;
|
|
4385
4385
|
_init(): void;
|
|
4386
4386
|
_setupElement(): void;
|
|
4387
4387
|
_applyPosition(): void;
|
|
@@ -4403,7 +4403,7 @@ declare class Slideover extends Component {
|
|
|
4403
4403
|
bottom: string;
|
|
4404
4404
|
left?: undefined;
|
|
4405
4405
|
right?: undefined;
|
|
4406
|
-
};
|
|
4406
|
+
} | undefined;
|
|
4407
4407
|
/**
|
|
4408
4408
|
* Open (onBeforeOpen may refuse).
|
|
4409
4409
|
* @returns {this}
|
|
@@ -4417,7 +4417,7 @@ declare class Slideover extends Component {
|
|
|
4417
4417
|
* a caller focusing a field after open() is unaffected.
|
|
4418
4418
|
*/
|
|
4419
4419
|
_startTrap(): void;
|
|
4420
|
-
_addedTabindex: boolean;
|
|
4420
|
+
_addedTabindex: boolean | undefined;
|
|
4421
4421
|
_stopTrap(): void;
|
|
4422
4422
|
_createForm(): void;
|
|
4423
4423
|
_formaForm: any;
|
|
@@ -4532,14 +4532,14 @@ declare class Slideover extends Component {
|
|
|
4532
4532
|
declare class Progression extends Component {
|
|
4533
4533
|
static defaults: {
|
|
4534
4534
|
mode: string;
|
|
4535
|
-
items:
|
|
4535
|
+
items: never[];
|
|
4536
4536
|
layout: string;
|
|
4537
4537
|
animation: boolean;
|
|
4538
4538
|
animationDelay: number;
|
|
4539
4539
|
responsive: boolean;
|
|
4540
4540
|
theme: string;
|
|
4541
4541
|
clickable: boolean;
|
|
4542
|
-
onItemClick:
|
|
4542
|
+
onItemClick: null;
|
|
4543
4543
|
allowHtml: boolean;
|
|
4544
4544
|
yearWidth: string;
|
|
4545
4545
|
contentMaxWidth: string;
|
|
@@ -4549,8 +4549,8 @@ declare class Progression extends Component {
|
|
|
4549
4549
|
progressPosition: string;
|
|
4550
4550
|
statusIcons: boolean;
|
|
4551
4551
|
allowStatusChange: boolean;
|
|
4552
|
-
onStatusChange:
|
|
4553
|
-
currentItem:
|
|
4552
|
+
onStatusChange: null;
|
|
4553
|
+
currentItem: null;
|
|
4554
4554
|
completedAnimation: boolean;
|
|
4555
4555
|
icons: {
|
|
4556
4556
|
planned: string;
|
|
@@ -4726,7 +4726,7 @@ declare class Progression extends Component {
|
|
|
4726
4726
|
*/
|
|
4727
4727
|
declare class Signature extends Component {
|
|
4728
4728
|
static defaults: {
|
|
4729
|
-
width:
|
|
4729
|
+
width: null;
|
|
4730
4730
|
height: number;
|
|
4731
4731
|
penColour: string;
|
|
4732
4732
|
penWidth: number;
|
|
@@ -4742,18 +4742,18 @@ declare class Signature extends Component {
|
|
|
4742
4742
|
typeFallback: boolean;
|
|
4743
4743
|
minStrokeLength: number;
|
|
4744
4744
|
respectMotionPreference: boolean;
|
|
4745
|
-
onChange:
|
|
4746
|
-
onClear:
|
|
4747
|
-
onBegin:
|
|
4748
|
-
onEnd:
|
|
4745
|
+
onChange: null;
|
|
4746
|
+
onClear: null;
|
|
4747
|
+
onBegin: null;
|
|
4748
|
+
onEnd: null;
|
|
4749
4749
|
};
|
|
4750
4750
|
/**
|
|
4751
4751
|
* @param {string|HTMLElement} selector - The container
|
|
4752
4752
|
* @param {SignatureOptions} [options]
|
|
4753
4753
|
*/
|
|
4754
4754
|
constructor(selector: string | HTMLElement, options?: SignatureOptions);
|
|
4755
|
-
_strokes: any[];
|
|
4756
|
-
_undoneStrokes: any[];
|
|
4755
|
+
_strokes: any[] | undefined;
|
|
4756
|
+
_undoneStrokes: any[] | undefined;
|
|
4757
4757
|
_currentStroke: {
|
|
4758
4758
|
points: {
|
|
4759
4759
|
x: number;
|
|
@@ -4762,24 +4762,24 @@ declare class Signature extends Component {
|
|
|
4762
4762
|
}[];
|
|
4763
4763
|
colour: any;
|
|
4764
4764
|
width: any;
|
|
4765
|
-
};
|
|
4766
|
-
_mode: string;
|
|
4767
|
-
_isDrawing: boolean;
|
|
4765
|
+
} | null;
|
|
4766
|
+
_mode: string | undefined;
|
|
4767
|
+
_isDrawing: boolean | undefined;
|
|
4768
4768
|
_currentColour: any;
|
|
4769
4769
|
_currentWidth: any;
|
|
4770
|
-
_resizeObserver: ResizeObserver;
|
|
4771
|
-
_canvas: Element;
|
|
4770
|
+
_resizeObserver: ResizeObserver | null;
|
|
4771
|
+
_canvas: Element | null;
|
|
4772
4772
|
_ctx: any;
|
|
4773
|
-
_canvasW: number;
|
|
4774
|
-
_canvasH: number;
|
|
4775
|
-
_dpr: number;
|
|
4773
|
+
_canvasW: number | undefined;
|
|
4774
|
+
_canvasH: number | undefined;
|
|
4775
|
+
_dpr: number | undefined;
|
|
4776
4776
|
_esc(str: any): string;
|
|
4777
4777
|
_render(): void;
|
|
4778
|
-
_wrapper: Element;
|
|
4779
|
-
_placeholder: Element;
|
|
4780
|
-
_statusEl: Element;
|
|
4781
|
-
_hiddenInput: Element;
|
|
4782
|
-
_typeInput: Element;
|
|
4778
|
+
_wrapper: Element | null | undefined;
|
|
4779
|
+
_placeholder: Element | null | undefined;
|
|
4780
|
+
_statusEl: Element | null | undefined;
|
|
4781
|
+
_hiddenInput: Element | null | undefined;
|
|
4782
|
+
_typeInput: Element | null | undefined;
|
|
4783
4783
|
_initCanvas(): void;
|
|
4784
4784
|
_scaleCanvas(): void;
|
|
4785
4785
|
_initEvents(): void;
|
|
@@ -4888,12 +4888,12 @@ declare class Signature extends Component {
|
|
|
4888
4888
|
*/
|
|
4889
4889
|
declare class DatePicker extends Component {
|
|
4890
4890
|
static defaults: {
|
|
4891
|
-
value:
|
|
4891
|
+
value: null;
|
|
4892
4892
|
format: string;
|
|
4893
|
-
min:
|
|
4894
|
-
max:
|
|
4893
|
+
min: null;
|
|
4894
|
+
max: null;
|
|
4895
4895
|
firstDay: number;
|
|
4896
|
-
disabledDates:
|
|
4896
|
+
disabledDates: null;
|
|
4897
4897
|
openOnFocus: boolean;
|
|
4898
4898
|
closeOnSelect: boolean;
|
|
4899
4899
|
closeOnClickOutside: boolean;
|
|
@@ -4905,22 +4905,22 @@ declare class DatePicker extends Component {
|
|
|
4905
4905
|
position: string;
|
|
4906
4906
|
offset: number[];
|
|
4907
4907
|
weekNumbers: boolean;
|
|
4908
|
-
placeholder:
|
|
4909
|
-
onChange:
|
|
4910
|
-
onBeforeOpen:
|
|
4911
|
-
onOpen:
|
|
4912
|
-
onBeforeClose:
|
|
4913
|
-
onClose:
|
|
4908
|
+
placeholder: null;
|
|
4909
|
+
onChange: null;
|
|
4910
|
+
onBeforeOpen: null;
|
|
4911
|
+
onOpen: null;
|
|
4912
|
+
onBeforeClose: null;
|
|
4913
|
+
onClose: null;
|
|
4914
4914
|
};
|
|
4915
4915
|
/** Only one popup is ever open, exactly as with a dropdown. */
|
|
4916
|
-
static _open:
|
|
4916
|
+
static _open: null;
|
|
4917
4917
|
/**
|
|
4918
4918
|
* @param {string|HTMLElement} selector - The input to attach to
|
|
4919
4919
|
* @param {DatePickerOptions} [options]
|
|
4920
4920
|
*/
|
|
4921
4921
|
constructor(selector: string | HTMLElement, options?: DatePickerOptions);
|
|
4922
|
-
_panel: HTMLDivElement;
|
|
4923
|
-
_isOpen: boolean;
|
|
4922
|
+
_panel: HTMLDivElement | null;
|
|
4923
|
+
_isOpen: boolean | undefined;
|
|
4924
4924
|
_value: any;
|
|
4925
4925
|
_view: any;
|
|
4926
4926
|
_focused: any;
|
|
@@ -4944,21 +4944,21 @@ declare class DatePicker extends Component {
|
|
|
4944
4944
|
silent?: boolean;
|
|
4945
4945
|
fromInput?: boolean;
|
|
4946
4946
|
}): this;
|
|
4947
|
-
_suppress: boolean;
|
|
4947
|
+
_suppress: boolean | undefined;
|
|
4948
4948
|
/** @returns {this} */
|
|
4949
4949
|
clear(): this;
|
|
4950
4950
|
_renderInput(): void;
|
|
4951
|
-
_min(): Date;
|
|
4952
|
-
_max(): Date;
|
|
4951
|
+
_min(): Date | null;
|
|
4952
|
+
_max(): Date | null;
|
|
4953
4953
|
/** Pull a date inside min/max, or null if there is no date. */
|
|
4954
4954
|
_clamp(date: any): any;
|
|
4955
4955
|
/** Is this day off limits? */
|
|
4956
4956
|
_disabled(date: any): boolean;
|
|
4957
4957
|
_buildPanel(): void;
|
|
4958
|
-
_grid: HTMLDivElement;
|
|
4959
|
-
_foot: HTMLDivElement;
|
|
4960
|
-
_monthSelect: HTMLSelectElement;
|
|
4961
|
-
_yearSelect: HTMLSelectElement;
|
|
4958
|
+
_grid: HTMLDivElement | undefined;
|
|
4959
|
+
_foot: HTMLDivElement | undefined;
|
|
4960
|
+
_monthSelect: HTMLSelectElement | undefined;
|
|
4961
|
+
_yearSelect: HTMLSelectElement | undefined;
|
|
4962
4962
|
_shiftMonth(delta: any): void;
|
|
4963
4963
|
/** Redraw the month on screen. */
|
|
4964
4964
|
_paint(): void;
|
|
@@ -4967,8 +4967,8 @@ declare class DatePicker extends Component {
|
|
|
4967
4967
|
_weekNumber(date: any): number;
|
|
4968
4968
|
/** @returns {this} */
|
|
4969
4969
|
open(): this;
|
|
4970
|
-
_onOutside: (e: any) => void;
|
|
4971
|
-
_onReposition: () => void;
|
|
4970
|
+
_onOutside: ((e: any) => void) | undefined;
|
|
4971
|
+
_onReposition: (() => void) | undefined;
|
|
4972
4972
|
/**
|
|
4973
4973
|
* @param {{focus?: boolean}} [options] - focus true returns the caret to the input
|
|
4974
4974
|
* @returns {this}
|