material 3.2.6 → 3.2.7
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/dist/components/badge/badge.d.ts +0 -59
- package/dist/components/badge/constants.d.ts +0 -15
- package/dist/components/badge/index.d.ts +0 -6
- package/dist/components/badge/types.d.ts +0 -244
- package/dist/components/bottom-app-bar/bottom-app-bar.d.ts +0 -10
- package/dist/components/bottom-app-bar/constants.d.ts +0 -9
- package/dist/components/bottom-app-bar/index.d.ts +0 -4
- package/dist/components/bottom-app-bar/types.d.ts +0 -76
- package/dist/components/bottom-sheet/bottom-sheet.d.ts +0 -21
- package/dist/components/bottom-sheet/constants.d.ts +0 -29
- package/dist/components/bottom-sheet/types.d.ts +0 -89
- package/dist/components/button/button.d.ts +0 -62
- package/dist/components/button/constants.d.ts +0 -41
- package/dist/components/button/index.d.ts +0 -4
- package/dist/components/button/types.d.ts +0 -347
- package/dist/components/button-group/button-group.d.ts +0 -51
- package/dist/components/button-group/constants.d.ts +0 -83
- package/dist/components/button-group/index.d.ts +0 -10
- package/dist/components/button-group/types.d.ts +0 -234
- package/dist/components/card/card.d.ts +0 -64
- package/dist/components/card/constants.d.ts +0 -33
- package/dist/components/card/content.d.ts +0 -86
- package/dist/components/card/index.d.ts +0 -66
- package/dist/components/card/types.d.ts +0 -366
- package/dist/components/carousel/carousel.d.ts +0 -22
- package/dist/components/carousel/constants.d.ts +0 -16
- package/dist/components/carousel/types.d.ts +0 -29
- package/dist/components/checkbox/checkbox.d.ts +0 -61
- package/dist/components/checkbox/constants.d.ts +0 -33
- package/dist/components/checkbox/index.d.ts +0 -25
- package/dist/components/checkbox/types.d.ts +0 -206
- package/dist/components/chips/chips.d.ts +0 -14
- package/dist/components/chips/constants.d.ts +0 -1
- package/dist/components/chips/factories.d.ts +0 -4
- package/dist/components/chips/types.d.ts +0 -278
- package/dist/components/datepicker/constants.d.ts +0 -56
- package/dist/components/datepicker/datepicker.d.ts +0 -5
- package/dist/components/datepicker/types.d.ts +12 -257
- package/dist/components/dialog/constants.d.ts +0 -65
- package/dist/components/dialog/dialog.d.ts +0 -86
- package/dist/components/dialog/index.d.ts +0 -12
- package/dist/components/dialog/types.d.ts +0 -511
- package/dist/components/divider/config.d.ts +0 -130
- package/dist/components/divider/constants.d.ts +0 -27
- package/dist/components/divider/divider.d.ts +0 -36
- package/dist/components/divider/index.d.ts +0 -29
- package/dist/components/divider/types.d.ts +0 -126
- package/dist/components/drawer/constants.d.ts +0 -53
- package/dist/components/drawer/drawer.d.ts +0 -56
- package/dist/components/drawer/index.d.ts +0 -4
- package/dist/components/drawer/types.d.ts +0 -200
- package/dist/components/extended-fab/constants.d.ts +0 -46
- package/dist/components/extended-fab/extended-fab.d.ts +0 -58
- package/dist/components/extended-fab/index.d.ts +0 -34
- package/dist/components/extended-fab/types.d.ts +0 -654
- package/dist/components/fab/constants.d.ts +0 -40
- package/dist/components/fab/fab.d.ts +0 -42
- package/dist/components/fab/index.d.ts +0 -33
- package/dist/components/fab/types.d.ts +0 -543
- package/dist/components/fab-menu/constants.d.ts +0 -22
- package/dist/components/fab-menu/fab-menu.d.ts +0 -36
- package/dist/components/fab-menu/types.d.ts +0 -80
- package/dist/components/icon-button/constants.d.ts +0 -90
- package/dist/components/icon-button/icon-button.d.ts +0 -83
- package/dist/components/icon-button/index.d.ts +0 -44
- package/dist/components/icon-button/types.d.ts +0 -314
- package/dist/components/index.d.ts +0 -9
- package/dist/components/list/constants.d.ts +0 -47
- package/dist/components/list/index.d.ts +0 -1
- package/dist/components/list/list.d.ts +0 -26
- package/dist/components/list/types.d.ts +0 -263
- package/dist/components/loading-indicator/constants.d.ts +0 -35
- package/dist/components/loading-indicator/features/renderer.d.ts +0 -14
- package/dist/components/loading-indicator/loading-indicator.d.ts +0 -6
- package/dist/components/loading-indicator/types.d.ts +0 -35
- package/dist/components/menu/constants.d.ts +0 -79
- package/dist/components/menu/index.d.ts +0 -25
- package/dist/components/menu/inner.d.ts +0 -3
- package/dist/components/menu/menu.d.ts +0 -26
- package/dist/components/menu/types.d.ts +0 -423
- package/dist/components/navigation-bar/navigation-bar.d.ts +0 -7
- package/dist/components/navigation-bar/types.d.ts +0 -25
- package/dist/components/navigation-rail/constants.d.ts +0 -2
- package/dist/components/navigation-rail/navigation-rail.d.ts +0 -5
- package/dist/components/navigation-rail/types.d.ts +0 -22
- package/dist/components/progress/constants.d.ts +24 -56
- package/dist/components/progress/progress.d.ts +0 -21
- package/dist/components/progress/types.d.ts +0 -251
- package/dist/components/radios/constants.d.ts +0 -22
- package/dist/components/radios/radios.d.ts +0 -5
- package/dist/components/radios/types.d.ts +0 -142
- package/dist/components/search/constants.d.ts +0 -59
- package/dist/components/search/search.d.ts +0 -32
- package/dist/components/search/types.d.ts +0 -159
- package/dist/components/select/constants.d.ts +0 -60
- package/dist/components/select/index.d.ts +0 -22
- package/dist/components/select/select.d.ts +0 -33
- package/dist/components/select/types.d.ts +0 -241
- package/dist/components/side-sheet/constants.d.ts +0 -28
- package/dist/components/side-sheet/side-sheet.d.ts +0 -21
- package/dist/components/side-sheet/types.d.ts +0 -82
- package/dist/components/slider/constants.d.ts +0 -86
- package/dist/components/slider/slider.d.ts +0 -16
- package/dist/components/slider/types.d.ts +0 -184
- package/dist/components/snackbar/constants.d.ts +0 -73
- package/dist/components/snackbar/snackbar.d.ts +0 -13
- package/dist/components/snackbar/types.d.ts +0 -147
- package/dist/components/split-button/constants.d.ts +0 -33
- package/dist/components/split-button/split-button.d.ts +0 -21
- package/dist/components/split-button/types.d.ts +0 -81
- package/dist/components/switch/constants.d.ts +0 -49
- package/dist/components/switch/switch.d.ts +0 -5
- package/dist/components/switch/types.d.ts +0 -80
- package/dist/components/tabs/constants.d.ts +0 -76
- package/dist/components/tabs/indicator.d.ts +0 -27
- package/dist/components/tabs/responsive.d.ts +0 -30
- package/dist/components/tabs/tab.d.ts +0 -13
- package/dist/components/tabs/tabs.d.ts +0 -24
- package/dist/components/tabs/types.d.ts +0 -335
- package/dist/components/tabs/utils.d.ts +0 -66
- package/dist/components/text-field/constants.d.ts +0 -82
- package/dist/components/text-field/features/trailing-icon.d.ts +0 -61
- package/dist/components/text-field/text-field.d.ts +0 -33
- package/dist/components/text-field/types.d.ts +0 -123
- package/dist/components/timepicker/constants.d.ts +0 -88
- package/dist/components/timepicker/types.d.ts +0 -268
- package/dist/components/toolbar/constants.d.ts +0 -27
- package/dist/components/toolbar/toolbar.d.ts +0 -25
- package/dist/components/toolbar/types.d.ts +0 -102
- package/dist/components/tooltip/constants.d.ts +0 -58
- package/dist/components/tooltip/tooltip.d.ts +0 -5
- package/dist/components/tooltip/types.d.ts +0 -140
- package/dist/components/top-app-bar/constants.d.ts +0 -41
- package/dist/components/top-app-bar/index.d.ts +0 -4
- package/dist/components/top-app-bar/top-app-bar.d.ts +0 -10
- package/dist/components/top-app-bar/types.d.ts +0 -94
- package/dist/core/canvas/animation.d.ts +0 -13
- package/dist/core/canvas/drawing.d.ts +18 -55
- package/dist/core/canvas/index.d.ts +0 -4
- package/dist/core/canvas/resize.d.ts +0 -13
- package/dist/core/canvas/utils.d.ts +0 -62
- package/dist/core/compose/base.d.ts +0 -22
- package/dist/core/compose/cleanup.d.ts +0 -2
- package/dist/core/compose/component.d.ts +0 -31
- package/dist/core/compose/features/badge.d.ts +0 -25
- package/dist/core/compose/features/checkable.d.ts +0 -36
- package/dist/core/compose/features/debounce.d.ts +0 -57
- package/dist/core/compose/features/disabled.d.ts +0 -31
- package/dist/core/compose/features/events.d.ts +0 -38
- package/dist/core/compose/features/icon.d.ts +0 -49
- package/dist/core/compose/features/input.d.ts +0 -82
- package/dist/core/compose/features/lifecycle.d.ts +0 -36
- package/dist/core/compose/features/position.d.ts +0 -27
- package/dist/core/compose/features/ripple.d.ts +0 -29
- package/dist/core/compose/features/size.d.ts +0 -9
- package/dist/core/compose/features/style.d.ts +0 -9
- package/dist/core/compose/features/text.d.ts +0 -45
- package/dist/core/compose/features/textinput.d.ts +0 -88
- package/dist/core/compose/features/textlabel.d.ts +0 -44
- package/dist/core/compose/features/throttle.d.ts +0 -54
- package/dist/core/compose/features/track.d.ts +0 -34
- package/dist/core/compose/features/variant.d.ts +0 -9
- package/dist/core/compose/features/withEvents.d.ts +0 -30
- package/dist/core/compose/index.d.ts +0 -4
- package/dist/core/compose/pipe.d.ts +0 -55
- package/dist/core/compose/utils/type-guards.d.ts +0 -15
- package/dist/core/config/component.d.ts +0 -45
- package/dist/core/config/global.d.ts +0 -43
- package/dist/core/config.d.ts +0 -59
- package/dist/core/dom/attributes.d.ts +0 -41
- package/dist/core/dom/classes.d.ts +0 -49
- package/dist/core/dom/create.d.ts +0 -98
- package/dist/core/dom/events.d.ts +0 -52
- package/dist/core/dom/focus.d.ts +0 -32
- package/dist/core/dom/html.d.ts +0 -24
- package/dist/core/dom/layer.d.ts +0 -98
- package/dist/core/dom/roving.d.ts +0 -19
- package/dist/core/index.d.ts +0 -9
- package/dist/core/navigation/destinations.d.ts +0 -23
- package/dist/core/shapes/cubic.d.ts +24 -19
- package/dist/core/shapes/material.d.ts +0 -64
- package/dist/core/shapes/polygon.d.ts +6 -16
- package/dist/core/state/emitter.d.ts +0 -36
- package/dist/core/state/events.d.ts +0 -29
- package/dist/core/state/store.d.ts +0 -70
- package/dist/core/theme/index.d.ts +0 -3
- package/dist/core/theme/shape.d.ts +0 -7
- package/dist/core/theme/tokens.d.ts +48 -32
- package/dist/core/utils/background.d.ts +0 -29
- package/dist/core/utils/color.d.ts +0 -13
- package/dist/core/utils/index.d.ts +0 -11
- package/dist/core/utils/mobile.d.ts +0 -31
- package/dist/core/utils/object.d.ts +0 -11
- package/dist/core/utils/performance.d.ts +0 -70
- package/dist/core/utils/theme.d.ts +0 -36
- package/dist/core/utils/url.d.ts +0 -17
- package/dist/elements/adapter.d.ts +13 -62
- package/dist/elements/badge.d.ts +0 -17
- package/dist/elements/bottom-app-bar.d.ts +7 -17
- package/dist/elements/bottom-sheet.d.ts +9 -38
- package/dist/elements/button-group.d.ts +0 -31
- package/dist/elements/button.d.ts +0 -18
- package/dist/elements/card.d.ts +8 -24
- package/dist/elements/carousel.d.ts +5 -29
- package/dist/elements/checkbox.d.ts +5 -15
- package/dist/elements/chips.d.ts +0 -33
- package/dist/elements/datepicker.d.ts +4 -48
- package/dist/elements/define.d.ts +3 -161
- package/dist/elements/dialog.d.ts +8 -39
- package/dist/elements/divider.d.ts +0 -14
- package/dist/elements/drawer.d.ts +0 -35
- package/dist/elements/extended-fab.d.ts +6 -18
- package/dist/elements/fab-menu.d.ts +5 -30
- package/dist/elements/fab.d.ts +4 -17
- package/dist/elements/icon-button.d.ts +5 -26
- package/dist/elements/index.d.ts +0 -16
- package/dist/elements/list.d.ts +0 -34
- package/dist/elements/loading-indicator.d.ts +4 -13
- package/dist/elements/menu.d.ts +5 -51
- package/dist/elements/navigation-bar.d.ts +4 -29
- package/dist/elements/navigation-rail.d.ts +8 -49
- package/dist/elements/preupgrade/badge.css +1 -1
- package/dist/elements/preupgrade/bottom-app-bar.css +1 -1
- package/dist/elements/preupgrade/bottom-sheet.css +1 -1
- package/dist/elements/preupgrade/button-group.css +1 -1
- package/dist/elements/preupgrade/button.css +1 -1
- package/dist/elements/preupgrade/card.css +1 -1
- package/dist/elements/preupgrade/carousel.css +1 -1
- package/dist/elements/preupgrade/checkbox.css +1 -1
- package/dist/elements/preupgrade/chips.css +1 -1
- package/dist/elements/preupgrade/datepicker.css +1 -1
- package/dist/elements/preupgrade/dialog.css +1 -1
- package/dist/elements/preupgrade/divider.css +1 -1
- package/dist/elements/preupgrade/drawer.css +1 -1
- package/dist/elements/preupgrade/extended-fab.css +1 -1
- package/dist/elements/preupgrade/fab-menu.css +1 -1
- package/dist/elements/preupgrade/fab.css +1 -1
- package/dist/elements/preupgrade/icon-button.css +1 -1
- package/dist/elements/preupgrade/list.css +1 -1
- package/dist/elements/preupgrade/loading-indicator.css +1 -1
- package/dist/elements/preupgrade/menu.css +1 -1
- package/dist/elements/preupgrade/navigation-bar.css +1 -1
- package/dist/elements/preupgrade/navigation-rail.css +1 -1
- package/dist/elements/preupgrade/progress.css +1 -1
- package/dist/elements/preupgrade/radios.css +1 -1
- package/dist/elements/preupgrade/search.css +1 -1
- package/dist/elements/preupgrade/select.css +1 -1
- package/dist/elements/preupgrade/side-sheet.css +1 -1
- package/dist/elements/preupgrade/slider.css +1 -1
- package/dist/elements/preupgrade/snackbar.css +1 -1
- package/dist/elements/preupgrade/split-button.css +1 -1
- package/dist/elements/preupgrade/switch.css +1 -1
- package/dist/elements/preupgrade/tabs.css +1 -1
- package/dist/elements/preupgrade/text-field.css +1 -1
- package/dist/elements/preupgrade/timepicker.css +1 -1
- package/dist/elements/preupgrade/toolbar.css +1 -1
- package/dist/elements/preupgrade/tooltip.css +1 -1
- package/dist/elements/preupgrade/top-app-bar.css +1 -1
- package/dist/elements/preupgrade.css +1 -1
- package/dist/elements/preupgrade.d.ts +0 -1
- package/dist/elements/progress.d.ts +0 -15
- package/dist/elements/radios.d.ts +0 -22
- package/dist/elements/search.d.ts +5 -53
- package/dist/elements/select.d.ts +0 -31
- package/dist/elements/side-sheet.d.ts +7 -29
- package/dist/elements/slider.d.ts +3 -22
- package/dist/elements/snackbar.d.ts +4 -28
- package/dist/elements/split-button.d.ts +0 -30
- package/dist/elements/styles.d.ts +0 -63
- package/dist/elements/switch.d.ts +5 -17
- package/dist/elements/tabs.d.ts +0 -22
- package/dist/elements/text-field.d.ts +4 -38
- package/dist/elements/timepicker.d.ts +4 -44
- package/dist/elements/toolbar.d.ts +8 -25
- package/dist/elements/tooltip.d.ts +4 -30
- package/dist/elements/top-app-bar.d.ts +7 -23
- package/dist/index.d.ts +0 -11
- package/dist/package.json +1 -1
- package/dist/react/create.d.ts +0 -42
- package/dist/react/index.d.ts +0 -6
- package/dist/react/jsx.d.ts +0 -13
- package/dist/solid/create.d.ts +0 -48
- package/dist/solid/index.d.ts +0 -6
- package/dist/solid/jsx.d.ts +0 -9
- package/dist/ssr/index.d.ts +0 -49
- package/dist/ssr/solid.d.ts +0 -4
- package/dist/ssr/svelte.d.ts +0 -4
- package/dist/ssr/vue.d.ts +0 -4
- package/dist/styles/badge.css +1 -1
- package/dist/styles/base.css +1 -1
- package/dist/styles/bottom-app-bar.css +1 -1
- package/dist/styles/bottom-sheet.css +1 -1
- package/dist/styles/button-group.css +1 -1
- package/dist/styles/button.css +1 -1
- package/dist/styles/card.css +1 -1
- package/dist/styles/carousel.css +1 -1
- package/dist/styles/checkbox.css +1 -1
- package/dist/styles/chips.css +1 -1
- package/dist/styles/contrast.css +1 -1
- package/dist/styles/datepicker.css +1 -1
- package/dist/styles/dialog.css +1 -1
- package/dist/styles/divider.css +1 -1
- package/dist/styles/drawer.css +1 -1
- package/dist/styles/extended-fab.css +1 -1
- package/dist/styles/fab-menu.css +1 -1
- package/dist/styles/fab.css +1 -1
- package/dist/styles/icon-button.css +1 -1
- package/dist/styles/list.css +1 -1
- package/dist/styles/loading-indicator.css +1 -1
- package/dist/styles/menu.css +1 -1
- package/dist/styles/navigation-bar.css +1 -1
- package/dist/styles/navigation-rail.css +1 -1
- package/dist/styles/progress.css +1 -1
- package/dist/styles/radios.css +1 -1
- package/dist/styles/search.css +1 -1
- package/dist/styles/select.css +1 -1
- package/dist/styles/side-sheet.css +1 -1
- package/dist/styles/slider.css +1 -1
- package/dist/styles/snackbar.css +1 -1
- package/dist/styles/split-button.css +1 -1
- package/dist/styles/switch.css +1 -1
- package/dist/styles/tabs.css +1 -1
- package/dist/styles/text-field.css +1 -1
- package/dist/styles/timepicker.css +1 -1
- package/dist/styles/toolbar.css +1 -1
- package/dist/styles/tooltip.css +1 -1
- package/dist/styles/top-app-bar.css +1 -1
- package/dist/styles/typography.css +1 -1
- package/dist/styles/utilities.css +1 -1
- package/dist/styles.css +1 -1
- package/dist/svelte/runtime.d.ts +8 -62
- package/dist/themes/autumn-contrast.css +1 -1
- package/dist/themes/autumn.css +1 -1
- package/dist/themes/baseline-contrast.css +1 -1
- package/dist/themes/baseline.css +1 -1
- package/dist/themes/brownbeige-contrast.css +1 -1
- package/dist/themes/brownbeige.css +1 -1
- package/dist/themes/content-contrast.css +1 -1
- package/dist/themes/content.css +1 -1
- package/dist/themes/desert-contrast.css +1 -1
- package/dist/themes/desert.css +1 -1
- package/dist/themes/expressive-contrast.css +1 -1
- package/dist/themes/expressive.css +1 -1
- package/dist/themes/fidelity-contrast.css +1 -1
- package/dist/themes/fidelity.css +1 -1
- package/dist/themes/forest-contrast.css +1 -1
- package/dist/themes/forest.css +1 -1
- package/dist/themes/fruit-salad-contrast.css +1 -1
- package/dist/themes/fruit-salad.css +1 -1
- package/dist/themes/highcontrast-contrast.css +1 -1
- package/dist/themes/highcontrast.css +1 -1
- package/dist/themes/monochrome-contrast.css +1 -1
- package/dist/themes/monochrome.css +1 -1
- package/dist/themes/neutral-contrast.css +1 -1
- package/dist/themes/neutral.css +1 -1
- package/dist/themes/ocean-contrast.css +1 -1
- package/dist/themes/ocean.css +1 -1
- package/dist/themes/rainbow-contrast.css +1 -1
- package/dist/themes/rainbow.css +1 -1
- package/dist/themes/sageivory-contrast.css +1 -1
- package/dist/themes/sageivory.css +1 -1
- package/dist/themes/spring-contrast.css +1 -1
- package/dist/themes/spring.css +1 -1
- package/dist/themes/summer-contrast.css +1 -1
- package/dist/themes/summer.css +1 -1
- package/dist/themes/sunset-contrast.css +1 -1
- package/dist/themes/sunset.css +1 -1
- package/dist/themes/tealcaramel-contrast.css +1 -1
- package/dist/themes/tealcaramel.css +1 -1
- package/dist/themes/vibrant-contrast.css +1 -1
- package/dist/themes/vibrant.css +1 -1
- package/dist/vue/create.d.ts +15 -58
- package/dist/vue/index.d.ts +0 -6
- package/package.json +1 -1
- package/dist/components/badge/api.d.ts +0 -41
- package/dist/components/badge/config.d.ts +0 -631
- package/dist/components/badge/features.d.ts +0 -38
- package/dist/components/bottom-app-bar/config.d.ts +0 -16
- package/dist/components/bottom-sheet/api.d.ts +0 -44
- package/dist/components/bottom-sheet/config.d.ts +0 -547
- package/dist/components/bottom-sheet/features/drag.d.ts +0 -35
- package/dist/components/bottom-sheet/features/index.d.ts +0 -3
- package/dist/components/bottom-sheet/features/state.d.ts +0 -31
- package/dist/components/bottom-sheet/features/structure.d.ts +0 -26
- package/dist/components/button/api.d.ts +0 -68
- package/dist/components/button/config.d.ts +0 -594
- package/dist/components/button/features/progress.d.ts +0 -43
- package/dist/components/button/features/toggle.d.ts +0 -43
- package/dist/components/button-group/config.d.ts +0 -147
- package/dist/components/card/api.d.ts +0 -24
- package/dist/components/card/config.d.ts +0 -635
- package/dist/components/card/features.d.ts +0 -124
- package/dist/components/carousel/api.d.ts +0 -20
- package/dist/components/carousel/arrangement.d.ts +0 -23
- package/dist/components/carousel/config.d.ts +0 -540
- package/dist/components/carousel/features/index.d.ts +0 -2
- package/dist/components/carousel/features/scroll.d.ts +0 -20
- package/dist/components/carousel/features/slides.d.ts +0 -18
- package/dist/components/carousel/keylines.d.ts +0 -68
- package/dist/components/carousel/strategy.d.ts +0 -36
- package/dist/components/checkbox/api.d.ts +0 -7
- package/dist/components/checkbox/config.d.ts +0 -568
- package/dist/components/chips/api.d.ts +0 -62
- package/dist/components/chips/chip/chip.d.ts +0 -4
- package/dist/components/chips/chip/constants.d.ts +0 -38
- package/dist/components/chips/chip/index.d.ts +0 -1
- package/dist/components/chips/config.d.ts +0 -583
- package/dist/components/chips/features/chip-items.d.ts +0 -39
- package/dist/components/chips/features/container.d.ts +0 -75
- package/dist/components/chips/features/controller.d.ts +0 -61
- package/dist/components/chips/features/dom.d.ts +0 -24
- package/dist/components/chips/features/index.d.ts +0 -4
- package/dist/components/chips/schema.d.ts +0 -35
- package/dist/components/datepicker/api.d.ts +0 -7
- package/dist/components/datepicker/config.d.ts +0 -542
- package/dist/components/datepicker/render.d.ts +0 -3
- package/dist/components/datepicker/utils.d.ts +0 -84
- package/dist/components/dialog/api.d.ts +0 -66
- package/dist/components/dialog/config.d.ts +0 -583
- package/dist/components/dialog/features.d.ts +0 -42
- package/dist/components/divider/features.d.ts +0 -6
- package/dist/components/drawer/api.d.ts +0 -55
- package/dist/components/drawer/config.d.ts +0 -620
- package/dist/components/drawer/features/headline.d.ts +0 -27
- package/dist/components/drawer/features/index.d.ts +0 -3
- package/dist/components/drawer/features/items.d.ts +0 -32
- package/dist/components/drawer/features/state.d.ts +0 -22
- package/dist/components/extended-fab/api.d.ts +0 -96
- package/dist/components/extended-fab/config.d.ts +0 -600
- package/dist/components/fab/api.d.ts +0 -74
- package/dist/components/fab/config.d.ts +0 -596
- package/dist/components/fab-menu/config.d.ts +0 -11
- package/dist/components/fab-menu/stagger.d.ts +0 -10
- package/dist/components/icon-button/api.d.ts +0 -84
- package/dist/components/icon-button/config.d.ts +0 -624
- package/dist/components/icon-button/features/toggle.d.ts +0 -133
- package/dist/components/list/api.d.ts +0 -156
- package/dist/components/list/config.d.ts +0 -625
- package/dist/components/list/features/anatomy.d.ts +0 -6
- package/dist/components/list/features/index.d.ts +0 -2
- package/dist/components/list/features/renderer.d.ts +0 -8
- package/dist/components/list/features/selection.d.ts +0 -3
- package/dist/components/loading-indicator/api.d.ts +0 -14
- package/dist/components/loading-indicator/config.d.ts +0 -557
- package/dist/components/loading-indicator/features/motion.d.ts +0 -22
- package/dist/components/menu/api.d.ts +0 -63
- package/dist/components/menu/config.d.ts +0 -576
- package/dist/components/menu/features/controller.d.ts +0 -15
- package/dist/components/menu/features/index.d.ts +0 -5
- package/dist/components/menu/features/keyboard.d.ts +0 -23
- package/dist/components/menu/features/layer.d.ts +0 -15
- package/dist/components/menu/features/loader.d.ts +0 -35
- package/dist/components/menu/features/opener.d.ts +0 -16
- package/dist/components/menu/features/position.d.ts +0 -18
- package/dist/components/menu/features/registry.d.ts +0 -37
- package/dist/components/menu/features/submenu.d.ts +0 -28
- package/dist/components/menu/features/tasks.d.ts +0 -9
- package/dist/components/navigation-bar/config.d.ts +0 -2
- package/dist/components/navigation-rail/config.d.ts +0 -2
- package/dist/components/progress/api.d.ts +0 -81
- package/dist/components/progress/config.d.ts +0 -620
- package/dist/components/progress/features/canvas.d.ts +0 -60
- package/dist/components/progress/features/circular.d.ts +0 -19
- package/dist/components/progress/features/colors.d.ts +0 -17
- package/dist/components/progress/features/index.d.ts +0 -8
- package/dist/components/progress/features/linear.d.ts +0 -25
- package/dist/components/progress/features/motion.d.ts +0 -43
- package/dist/components/progress/features/resize-observer.d.ts +0 -5
- package/dist/components/progress/features/state.d.ts +0 -44
- package/dist/components/radios/api.d.ts +0 -37
- package/dist/components/radios/config.d.ts +0 -568
- package/dist/components/radios/radio.d.ts +0 -26
- package/dist/components/search/api.d.ts +0 -63
- package/dist/components/search/config.d.ts +0 -657
- package/dist/components/search/features/index.d.ts +0 -4
- package/dist/components/search/features/input.d.ts +0 -93
- package/dist/components/search/features/states.d.ts +0 -111
- package/dist/components/search/features/structure.d.ts +0 -16
- package/dist/components/search/features/suggestions.d.ts +0 -60
- package/dist/components/select/api.d.ts +0 -8
- package/dist/components/select/config.d.ts +0 -18
- package/dist/components/select/features.d.ts +0 -14
- package/dist/components/side-sheet/api.d.ts +0 -34
- package/dist/components/side-sheet/config.d.ts +0 -547
- package/dist/components/side-sheet/features/index.d.ts +0 -2
- package/dist/components/side-sheet/features/state.d.ts +0 -28
- package/dist/components/side-sheet/features/structure.d.ts +0 -21
- package/dist/components/slider/api.d.ts +0 -65
- package/dist/components/slider/config.d.ts +0 -605
- package/dist/components/slider/features/axis.d.ts +0 -42
- package/dist/components/slider/features/controller.d.ts +0 -528
- package/dist/components/slider/features/dom.d.ts +0 -22
- package/dist/components/slider/features/handlers.d.ts +0 -16
- package/dist/components/slider/features/index.d.ts +0 -5
- package/dist/components/slider/features/range.d.ts +0 -14
- package/dist/components/slider/features/states.d.ts +0 -76
- package/dist/components/slider/features/tracks.d.ts +0 -50
- package/dist/components/snackbar/api.d.ts +0 -7
- package/dist/components/snackbar/config.d.ts +0 -596
- package/dist/components/snackbar/features.d.ts +0 -26
- package/dist/components/snackbar/layer.d.ts +0 -23
- package/dist/components/snackbar/position.d.ts +0 -16
- package/dist/components/snackbar/queue.d.ts +0 -15
- package/dist/components/split-button/api.d.ts +0 -14
- package/dist/components/split-button/config.d.ts +0 -553
- package/dist/components/split-button/features/buttons.d.ts +0 -8
- package/dist/components/split-button/features/menu.d.ts +0 -10
- package/dist/components/switch/api.d.ts +0 -7
- package/dist/components/switch/config.d.ts +0 -558
- package/dist/components/switch/features.d.ts +0 -63
- package/dist/components/tabs/api.d.ts +0 -54
- package/dist/components/tabs/config.d.ts +0 -31
- package/dist/components/tabs/features.d.ts +0 -131
- package/dist/components/tabs/scroll-indicators.d.ts +0 -18
- package/dist/components/tabs/state.d.ts +0 -48
- package/dist/components/text-field/api.d.ts +0 -29
- package/dist/components/text-field/config.d.ts +0 -560
- package/dist/components/text-field/features/counter.d.ts +0 -29
- package/dist/components/text-field/features/density.d.ts +0 -28
- package/dist/components/text-field/features/error.d.ts +0 -55
- package/dist/components/text-field/features/field.d.ts +0 -37
- package/dist/components/text-field/features/index.d.ts +0 -20
- package/dist/components/text-field/features/leading-icon.d.ts +0 -68
- package/dist/components/text-field/features/placement.d.ts +0 -30
- package/dist/components/text-field/features/prefix-text.d.ts +0 -67
- package/dist/components/text-field/features/required.d.ts +0 -33
- package/dist/components/text-field/features/suffix-text.d.ts +0 -67
- package/dist/components/text-field/features/supporting-text.d.ts +0 -59
- package/dist/components/timepicker/api.d.ts +0 -26
- package/dist/components/timepicker/config.d.ts +0 -570
- package/dist/components/timepicker/dial.d.ts +0 -35
- package/dist/components/timepicker/render.d.ts +0 -9
- package/dist/components/timepicker/utils.d.ts +0 -55
- package/dist/components/toolbar/config.d.ts +0 -19
- package/dist/components/tooltip/api.d.ts +0 -18
- package/dist/components/tooltip/config.d.ts +0 -563
- package/dist/components/top-app-bar/config.d.ts +0 -16
- package/dist/core/compose/features/constants.d.ts +0 -8
- package/dist/core/dom/direction.d.ts +0 -16
- package/dist/core/dom/form-value.d.ts +0 -24
- package/dist/core/dom/utils.d.ts +0 -33
- package/dist/core/navigation/ripple.d.ts +0 -2
- package/dist/core/utils/attributes.d.ts +0 -29
- package/dist/core/utils/validate.d.ts +0 -73
- package/dist/core/utils/warn.d.ts +0 -16
- package/dist/elements/form-button.d.ts +0 -29
- package/dist/elements/lifecycle.d.ts +0 -4
- package/dist/elements/sheet.d.ts +0 -44
- package/dist/react/shadow.d.ts +0 -2
- package/dist/solid/shadow.d.ts +0 -3
- package/dist/vue/shadow.d.ts +0 -7
|
@@ -1,45 +1,35 @@
|
|
|
1
1
|
import type { ForwardedEventPayload } from "../../core/dom/index.js";
|
|
2
2
|
import type { NormalizedEvent } from "../../core/utils/mobile.js";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export type DatePickerInput = Date | string | [
|
|
3
|
+
export type DatePickerValue = Date | [
|
|
4
|
+
Date,
|
|
5
|
+
Date
|
|
6
|
+
] | null;
|
|
7
|
+
export type DatePickerValueOf<M> = M extends "range" ? [
|
|
8
|
+
Date,
|
|
9
|
+
Date
|
|
10
|
+
] | null : M extends "single" ? Date | null : DatePickerValue;
|
|
11
|
+
export type DatePickerInput = Date | string | [
|
|
12
|
+
Date | string,
|
|
13
|
+
Date | string
|
|
14
|
+
] | {
|
|
12
15
|
start: Date | string;
|
|
13
16
|
end: Date | string;
|
|
14
17
|
};
|
|
15
|
-
/**
|
|
16
|
-
* One shape whatever committed the value: a range's `value` is the
|
|
17
|
-
* pair, and `rangeEndDate` its end, kept for compatibility (null otherwise).
|
|
18
|
-
* The docked calendar sent the start as the value and the end apart.
|
|
19
|
-
*/
|
|
20
18
|
export interface DatePickerChangePayload<V = DatePickerValue> {
|
|
21
19
|
value: V;
|
|
22
20
|
rangeEndDate: Date | null;
|
|
23
21
|
formattedValue: string;
|
|
24
|
-
/**
|
|
25
|
-
* The value as ISO 8601 text, the `value` of the `<m-datepicker>` element's
|
|
26
|
-
* `change`: a date (`2026-09-10`), a `start/end` interval, or ""
|
|
27
|
-
*/
|
|
28
22
|
iso: string;
|
|
29
23
|
}
|
|
30
|
-
/** Visibility events carry the committed value, including complete ranges. */
|
|
31
24
|
export interface DatePickerVisibilityPayload<V = DatePickerValue> {
|
|
32
25
|
value: V;
|
|
33
26
|
}
|
|
34
|
-
/** Normalized touch-end event emitted by the interactive root. */
|
|
35
27
|
export type DatePickerTapPayload = NormalizedEvent;
|
|
36
|
-
/** Horizontal swipe emitted by the interactive root. */
|
|
37
28
|
export interface DatePickerSwipePayload {
|
|
38
29
|
direction: "left" | "right";
|
|
39
30
|
deltaX: number;
|
|
40
31
|
deltaY: number;
|
|
41
32
|
}
|
|
42
|
-
/** Events emitted by the picker API, calendar selections and interactive root. */
|
|
43
33
|
export interface DatePickerEvents<V = DatePickerValue> {
|
|
44
34
|
change: (payload: DatePickerChangePayload<V>) => void;
|
|
45
35
|
open: (payload: DatePickerVisibilityPayload<V>) => void;
|
|
@@ -49,155 +39,38 @@ export interface DatePickerEvents<V = DatePickerValue> {
|
|
|
49
39
|
tap: (payload: DatePickerTapPayload) => void;
|
|
50
40
|
swipe: (payload: DatePickerSwipePayload) => void;
|
|
51
41
|
}
|
|
52
|
-
/**
|
|
53
|
-
* DatePicker variant types
|
|
54
|
-
* @category Components
|
|
55
|
-
*/
|
|
56
42
|
export type DatePickerVariant = 'docked' | 'modal' | 'modal-input' | 'fullscreen';
|
|
57
|
-
/**
|
|
58
|
-
* DatePicker view types
|
|
59
|
-
* @category Components
|
|
60
|
-
*/
|
|
61
43
|
export type DatePickerView = 'day' | 'month' | 'year';
|
|
62
|
-
/**
|
|
63
|
-
* DatePicker selection mode types
|
|
64
|
-
* @category Components
|
|
65
|
-
*/
|
|
66
44
|
export type DatePickerSelectionMode = 'single' | 'range';
|
|
67
|
-
/**
|
|
68
|
-
* Day names for the calendar
|
|
69
|
-
* @internal
|
|
70
|
-
*/
|
|
71
45
|
export declare const DAY_NAMES: string[];
|
|
72
|
-
/**
|
|
73
|
-
* Month names for the calendar
|
|
74
|
-
* @internal
|
|
75
|
-
*/
|
|
76
46
|
export declare const MONTH_NAMES: string[];
|
|
77
|
-
/**
|
|
78
|
-
* Month names abbreviated
|
|
79
|
-
* @internal
|
|
80
|
-
*/
|
|
81
47
|
export declare const MONTH_NAMES_SHORT: string[];
|
|
82
|
-
/**
|
|
83
|
-
* CSS class name for today's date
|
|
84
|
-
* @internal
|
|
85
|
-
*/
|
|
86
48
|
export declare const TODAY_CLASS = "datepicker__day--today";
|
|
87
|
-
/**
|
|
88
|
-
* CSS class name for selected date
|
|
89
|
-
* @internal
|
|
90
|
-
*/
|
|
91
49
|
export declare const SELECTED_CLASS = "datepicker__day--selected";
|
|
92
|
-
/**
|
|
93
|
-
* CSS class name for dates outside the current month
|
|
94
|
-
* @internal
|
|
95
|
-
*/
|
|
96
50
|
export declare const OUTSIDE_MONTH_CLASS = "datepicker__day--outside";
|
|
97
|
-
/**
|
|
98
|
-
* CSS class for the first date in a range
|
|
99
|
-
* @internal
|
|
100
|
-
*/
|
|
101
51
|
export declare const RANGE_START_CLASS = "datepicker__cell--range-start";
|
|
102
|
-
/**
|
|
103
|
-
* CSS class for the last date in a range
|
|
104
|
-
* @internal
|
|
105
|
-
*/
|
|
106
52
|
export declare const RANGE_END_CLASS = "datepicker__cell--range-end";
|
|
107
|
-
/**
|
|
108
|
-
* CSS class for dates between start and end in a range
|
|
109
|
-
* @internal
|
|
110
|
-
*/
|
|
111
53
|
export declare const RANGE_MIDDLE_CLASS = "datepicker__cell--range";
|
|
112
|
-
/**
|
|
113
|
-
* Configuration interface for the DatePicker component
|
|
114
|
-
* @category Components
|
|
115
|
-
*/
|
|
116
54
|
export interface DatePickerConfig {
|
|
117
|
-
/** Name of the committed form input. */
|
|
118
55
|
name?: string;
|
|
119
|
-
/**
|
|
120
|
-
* DatePicker variant that determines display style
|
|
121
|
-
* @default 'docked'
|
|
122
|
-
*/
|
|
123
56
|
variant?: DatePickerVariant | string;
|
|
124
|
-
/**
|
|
125
|
-
* Whether the datepicker is initially disabled
|
|
126
|
-
* @default false
|
|
127
|
-
*/
|
|
128
57
|
disabled?: boolean;
|
|
129
|
-
/**
|
|
130
|
-
* Initial view to display (day, month, year)
|
|
131
|
-
* @default 'day'
|
|
132
|
-
*/
|
|
133
58
|
initialView?: DatePickerView | string;
|
|
134
|
-
/**
|
|
135
|
-
* Selection mode for the datepicker (single or range)
|
|
136
|
-
* @default 'single'
|
|
137
|
-
*/
|
|
138
59
|
selectionMode?: DatePickerSelectionMode | string;
|
|
139
|
-
/**
|
|
140
|
-
* Initial selected date(s)
|
|
141
|
-
* Accepts a Date object, Date string, or two dates for range selection
|
|
142
|
-
*/
|
|
143
60
|
value?: DatePickerInput;
|
|
144
|
-
/** The value shows and cannot change: no typing, no calendar. */
|
|
145
61
|
readOnly?: boolean;
|
|
146
|
-
/** A date is required: on the input for forms, and checkValidity(). */
|
|
147
62
|
required?: boolean;
|
|
148
|
-
/** The supporting text under the field. Default: the date format. */
|
|
149
63
|
supportingText?: string;
|
|
150
|
-
/**
|
|
151
|
-
* Minimum selectable date
|
|
152
|
-
*/
|
|
153
64
|
minDate?: Date | string;
|
|
154
|
-
/**
|
|
155
|
-
* Maximum selectable date
|
|
156
|
-
*/
|
|
157
65
|
maxDate?: Date | string;
|
|
158
|
-
/**
|
|
159
|
-
* Format for displaying dates
|
|
160
|
-
* @default 'MM/DD/YYYY'
|
|
161
|
-
*/
|
|
162
66
|
dateFormat?: string;
|
|
163
|
-
/**
|
|
164
|
-
* Label text for the datepicker
|
|
165
|
-
* @example 'Select Date'
|
|
166
|
-
*/
|
|
167
67
|
label?: string;
|
|
168
|
-
/**
|
|
169
|
-
* Placeholder text for the input field
|
|
170
|
-
* @example 'MM/DD/YYYY'
|
|
171
|
-
*/
|
|
172
68
|
placeholder?: string;
|
|
173
|
-
/**
|
|
174
|
-
* Additional CSS classes to add to the datepicker
|
|
175
|
-
* @example 'form-field event-date'
|
|
176
|
-
*/
|
|
177
69
|
class?: string;
|
|
178
|
-
/**
|
|
179
|
-
* Component prefix for class names
|
|
180
|
-
* @default 'mtrl'
|
|
181
|
-
*/
|
|
182
70
|
prefix?: string;
|
|
183
|
-
/**
|
|
184
|
-
* Component name used in class generation
|
|
185
|
-
*/
|
|
186
71
|
componentName?: string;
|
|
187
|
-
/**
|
|
188
|
-
* Whether to enable animation effects
|
|
189
|
-
* @default true
|
|
190
|
-
*/
|
|
191
72
|
animate?: boolean;
|
|
192
|
-
/**
|
|
193
|
-
* Whether pointer or Space selection also closes the picker. Enter on a
|
|
194
|
-
* focused day accepts a single date and closes independently of this option.
|
|
195
|
-
* @default false
|
|
196
|
-
*/
|
|
197
73
|
closeOnSelect?: boolean;
|
|
198
|
-
/**
|
|
199
|
-
* Array of dates to highlight or disable
|
|
200
|
-
*/
|
|
201
74
|
specialDates?: Array<{
|
|
202
75
|
date: Date | string;
|
|
203
76
|
highlight?: boolean;
|
|
@@ -205,179 +78,62 @@ export interface DatePickerConfig {
|
|
|
205
78
|
tooltip?: string;
|
|
206
79
|
}>;
|
|
207
80
|
}
|
|
208
|
-
/**
|
|
209
|
-
* Date object with additional properties for rendering
|
|
210
|
-
* @internal
|
|
211
|
-
*/
|
|
212
81
|
export interface CalendarDate {
|
|
213
|
-
/** JavaScript Date object */
|
|
214
82
|
date: Date;
|
|
215
|
-
/** Day of the month (1-31) */
|
|
216
83
|
day: number;
|
|
217
|
-
/** Whether the date is in the current month being displayed */
|
|
218
84
|
isCurrentMonth: boolean;
|
|
219
|
-
/** Whether the date is today */
|
|
220
85
|
isToday: boolean;
|
|
221
|
-
/** Whether the date is selected */
|
|
222
86
|
isSelected: boolean;
|
|
223
|
-
/** Whether the date is disabled */
|
|
224
87
|
isDisabled: boolean;
|
|
225
|
-
/** Whether the date is the first date in a range */
|
|
226
88
|
isRangeStart?: boolean;
|
|
227
|
-
/** Whether the date is the last date in a range */
|
|
228
89
|
isRangeEnd?: boolean;
|
|
229
|
-
/** Whether the date is between start and end in a range */
|
|
230
90
|
isRangeMiddle?: boolean;
|
|
231
91
|
}
|
|
232
|
-
/**
|
|
233
|
-
* Calendar API interface for managing calendar navigation
|
|
234
|
-
* @category Components
|
|
235
|
-
*/
|
|
236
92
|
export interface CalendarAPI {
|
|
237
|
-
/** Updates the calendar view to display a specific month/year */
|
|
238
93
|
goToDate: (date: Date) => void;
|
|
239
|
-
/** Moves to the next month */
|
|
240
94
|
nextMonth: () => void;
|
|
241
|
-
/** Moves to the previous month */
|
|
242
95
|
prevMonth: () => void;
|
|
243
|
-
/** Moves to the next year */
|
|
244
96
|
nextYear: () => void;
|
|
245
|
-
/** Moves to the previous year */
|
|
246
97
|
prevYear: () => void;
|
|
247
|
-
/** Switches to day selection view */
|
|
248
98
|
showDayView: () => void;
|
|
249
|
-
/** Switches to month selection view */
|
|
250
99
|
showMonthView: () => void;
|
|
251
|
-
/** Switches to year selection view */
|
|
252
100
|
showYearView: () => void;
|
|
253
|
-
/** Gets the current calendar view */
|
|
254
101
|
getCurrentView: () => string;
|
|
255
102
|
}
|
|
256
|
-
/**
|
|
257
|
-
* DatePicker component interface
|
|
258
|
-
* @category Components
|
|
259
|
-
*/
|
|
260
103
|
export interface DatePickerComponent<V = DatePickerValue> {
|
|
261
|
-
/** The datepicker's main DOM element */
|
|
262
104
|
element: HTMLElement;
|
|
263
|
-
/** The input field DOM element */
|
|
264
105
|
input: HTMLInputElement;
|
|
265
|
-
/** API for managing calendar and selected dates */
|
|
266
106
|
calendar: CalendarAPI;
|
|
267
|
-
/** API for managing disabled state */
|
|
268
107
|
disabled: {
|
|
269
|
-
/** Enables the datepicker */
|
|
270
108
|
enable: () => void;
|
|
271
|
-
/** Disables the datepicker */
|
|
272
109
|
disable: () => void;
|
|
273
|
-
/** Checks if the datepicker is disabled */
|
|
274
110
|
isDisabled: () => boolean;
|
|
275
111
|
};
|
|
276
|
-
/** API for managing component lifecycle */
|
|
277
112
|
lifecycle: {
|
|
278
|
-
/** Destroys the component and cleans up resources */
|
|
279
113
|
destroy: () => void;
|
|
280
114
|
};
|
|
281
|
-
/**
|
|
282
|
-
* Gets a class name with the component's prefix
|
|
283
|
-
* @param name - Base class name
|
|
284
|
-
* @returns Prefixed class name
|
|
285
|
-
*/
|
|
286
115
|
getClass: (name: string) => string;
|
|
287
|
-
/**
|
|
288
|
-
* Opens the datepicker dropdown/modal. When it returns, `isOpen()` is true
|
|
289
|
-
* and `open` has been emitted; the surface may be painted after `open()`
|
|
290
|
-
* returns. On an open, disabled or read-only picker it does nothing. The
|
|
291
|
-
* click that called it does not count as a click outside.
|
|
292
|
-
* @returns The datepicker component for chaining
|
|
293
|
-
*/
|
|
294
116
|
open: () => DatePickerComponent<V>;
|
|
295
|
-
/**
|
|
296
|
-
* Closes the datepicker dropdown/modal. When it returns, `isOpen()` is false
|
|
297
|
-
* and `close` has been emitted. On a closed picker it does nothing.
|
|
298
|
-
* @returns The datepicker component for chaining
|
|
299
|
-
*/
|
|
300
117
|
close: () => DatePickerComponent<V>;
|
|
301
|
-
/** Whether the dropdown or modal is open */
|
|
302
118
|
isOpen: () => boolean;
|
|
303
|
-
/**
|
|
304
|
-
* Gets the selected date(s)
|
|
305
|
-
* @returns Date object, array of two Date objects for range, or null if none selected
|
|
306
|
-
*/
|
|
307
119
|
getValue: () => V;
|
|
308
|
-
/**
|
|
309
|
-
* Sets the selected date(s). Silent: only the user's choice emits `change`
|
|
310
|
-
* @param value - Date, string, or array of dates for range selection
|
|
311
|
-
* @returns The datepicker component for chaining
|
|
312
|
-
*/
|
|
313
120
|
setValue: (value: DatePickerInput) => DatePickerComponent<V>;
|
|
314
|
-
/** Read-only: the value shows and cannot change */
|
|
315
121
|
setReadOnly: (readOnly: boolean) => DatePickerComponent<V>;
|
|
316
|
-
/** Whether the picker is read-only */
|
|
317
122
|
isReadOnly: () => boolean;
|
|
318
|
-
/** Whether a date is required */
|
|
319
123
|
setRequired: (required: boolean) => DatePickerComponent<V>;
|
|
320
|
-
/**
|
|
321
|
-
* False when a date is required and missing. A dialog variant's input is
|
|
322
|
-
* read-only, which forms do not validate.
|
|
323
|
-
*/
|
|
324
124
|
checkValidity: () => boolean;
|
|
325
|
-
/** As checkValidity(), and shows the error on the field when false */
|
|
326
125
|
reportValidity: () => boolean;
|
|
327
|
-
/** The supporting text; empty or null shows the date format */
|
|
328
126
|
setSupportingText: (text: string | null) => DatePickerComponent<V>;
|
|
329
|
-
/**
|
|
330
|
-
* Gets the formatted date string based on the selected date(s)
|
|
331
|
-
* @returns Formatted date string or empty string if none selected
|
|
332
|
-
*/
|
|
333
127
|
getFormattedValue: () => string;
|
|
334
|
-
/**
|
|
335
|
-
* Clears the selected date(s). Silent
|
|
336
|
-
* @returns The datepicker component for chaining
|
|
337
|
-
*/
|
|
338
128
|
clear: () => DatePickerComponent<V>;
|
|
339
|
-
/**
|
|
340
|
-
* Enables the datepicker
|
|
341
|
-
* @returns The datepicker component for chaining
|
|
342
|
-
*/
|
|
343
129
|
enable: () => DatePickerComponent<V>;
|
|
344
|
-
/**
|
|
345
|
-
* Disables the datepicker
|
|
346
|
-
* @returns The datepicker component for chaining
|
|
347
|
-
*/
|
|
348
130
|
disable: () => DatePickerComponent<V>;
|
|
349
|
-
/**
|
|
350
|
-
* Sets the minimum selectable date
|
|
351
|
-
* @param date - Date object or string
|
|
352
|
-
* @returns The datepicker component for chaining
|
|
353
|
-
*/
|
|
354
131
|
setMinDate: (date: Date | string) => DatePickerComponent<V>;
|
|
355
|
-
/**
|
|
356
|
-
* Sets the maximum selectable date
|
|
357
|
-
* @param date - Date object or string
|
|
358
|
-
* @returns The datepicker component for chaining
|
|
359
|
-
*/
|
|
360
132
|
setMaxDate: (date: Date | string) => DatePickerComponent<V>;
|
|
361
|
-
/**
|
|
362
|
-
* Destroys the datepicker component and cleans up resources
|
|
363
|
-
*/
|
|
364
133
|
destroy: () => void;
|
|
365
|
-
/**
|
|
366
|
-
* Adds an event listener to the datepicker
|
|
367
|
-
* @param event - Event name ('change', 'open', 'close', etc.)
|
|
368
|
-
* @param handler - Event handler function
|
|
369
|
-
* @returns The datepicker component for chaining
|
|
370
|
-
*/
|
|
371
134
|
on: <K extends keyof DatePickerEvents<V>>(event: K, handler: DatePickerEvents<V>[K]) => DatePickerComponent<V>;
|
|
372
|
-
/**
|
|
373
|
-
* Removes an event listener from the datepicker
|
|
374
|
-
* @param event - Event name
|
|
375
|
-
* @param handler - Event handler function
|
|
376
|
-
* @returns The datepicker component for chaining
|
|
377
|
-
*/
|
|
378
135
|
off: <K extends keyof DatePickerEvents<V>>(event: K, handler: DatePickerEvents<V>[K]) => DatePickerComponent<V>;
|
|
379
136
|
}
|
|
380
|
-
/** Internal calendar view model. Dates are local civil dates, without a time. */
|
|
381
137
|
export interface DatePickerState {
|
|
382
138
|
selectedDate: Date | null;
|
|
383
139
|
rangeEndDate: Date | null;
|
|
@@ -396,7 +152,6 @@ export interface DatePickerState {
|
|
|
396
152
|
label: string;
|
|
397
153
|
specialDates: NonNullable<DatePickerConfig["specialDates"]>;
|
|
398
154
|
isAllowed(date: Date): boolean;
|
|
399
|
-
/** Full screen: the first month of the rendered list, and how many follow. */
|
|
400
155
|
listStart?: Date;
|
|
401
156
|
listLength?: number;
|
|
402
157
|
}
|
|
@@ -1,116 +1,51 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Dialog sizes
|
|
3
|
-
*/
|
|
4
1
|
export declare const DIALOG_SIZES: {
|
|
5
|
-
/** 320px width, for simple messages or choices */
|
|
6
2
|
readonly SMALL: "small";
|
|
7
|
-
/** 560px width, for standard forms or content (default) */
|
|
8
3
|
readonly MEDIUM: "medium";
|
|
9
|
-
/** 800px width, for complex forms or rich content */
|
|
10
4
|
readonly LARGE: "large";
|
|
11
|
-
/** Spans the full width of the viewport with margins */
|
|
12
5
|
readonly FULLWIDTH: "fullwidth";
|
|
13
|
-
/** Takes up the entire viewport (similar to a new page) */
|
|
14
6
|
readonly FULLSCREEN: "fullscreen";
|
|
15
7
|
};
|
|
16
|
-
/**
|
|
17
|
-
* Dialog animation types
|
|
18
|
-
*/
|
|
19
8
|
export declare const DIALOG_ANIMATIONS: {
|
|
20
|
-
/** Scale up/down animation from center (default) */
|
|
21
9
|
readonly SCALE: "scale";
|
|
22
|
-
/** Slide in from bottom, slide out to bottom */
|
|
23
10
|
readonly SLIDE_UP: "slide-up";
|
|
24
|
-
/** Slide in from top, slide out to top */
|
|
25
11
|
readonly SLIDE_DOWN: "slide-down";
|
|
26
|
-
/** Simple fade in/out animation */
|
|
27
12
|
readonly FADE: "fade";
|
|
28
13
|
};
|
|
29
|
-
/**
|
|
30
|
-
* Footer alignment options
|
|
31
|
-
*/
|
|
32
14
|
export declare const DIALOG_FOOTER_ALIGNMENTS: {
|
|
33
|
-
/** Align buttons to the right (default, follows Material Design guidelines) */
|
|
34
15
|
readonly RIGHT: "right";
|
|
35
|
-
/** Align buttons to the left */
|
|
36
16
|
readonly LEFT: "left";
|
|
37
|
-
/** Center buttons in footer */
|
|
38
17
|
readonly CENTER: "center";
|
|
39
|
-
/** Space buttons evenly, with first button at left, last at right */
|
|
40
18
|
readonly SPACE_BETWEEN: "space-between";
|
|
41
19
|
};
|
|
42
|
-
/**
|
|
43
|
-
* Dialog events
|
|
44
|
-
*/
|
|
45
20
|
export declare const DIALOG_EVENTS: {
|
|
46
|
-
/** Fired when the dialog begins opening */
|
|
47
21
|
readonly OPEN: "open";
|
|
48
|
-
/** Fired when the dialog begins closing */
|
|
49
22
|
readonly CLOSE: "close";
|
|
50
|
-
/** Fired before the dialog starts opening (can be prevented) */
|
|
51
23
|
readonly BEFORE_OPEN: "beforeopen";
|
|
52
|
-
/** Fired before the dialog starts closing (can be prevented) */
|
|
53
24
|
readonly BEFORE_CLOSE: "beforeclose";
|
|
54
|
-
/** Fired after the dialog has fully opened (animation complete) */
|
|
55
25
|
readonly AFTER_OPEN: "afteropen";
|
|
56
|
-
/** Fired after the dialog has fully closed (animation complete) */
|
|
57
26
|
readonly AFTER_CLOSE: "afterclose";
|
|
58
27
|
};
|
|
59
|
-
/**
|
|
60
|
-
* Dialog CSS classes
|
|
61
|
-
*/
|
|
62
28
|
export declare const DIALOG_CLASSES: {
|
|
63
|
-
/** Root dialog element */
|
|
64
29
|
readonly ROOT: "dialog";
|
|
65
|
-
/** Overlay background */
|
|
66
30
|
readonly OVERLAY: "dialog__overlay";
|
|
67
|
-
/** Dialog container */
|
|
68
31
|
readonly CONTAINER: "dialog__container";
|
|
69
|
-
/** Dialog header */
|
|
70
32
|
readonly HEADER: "dialog__header";
|
|
71
|
-
/** Dialog title */
|
|
72
33
|
readonly TITLE: "dialog__title";
|
|
73
|
-
/** Dialog subtitle */
|
|
74
34
|
readonly SUBTITLE: "dialog__subtitle";
|
|
75
|
-
/** Close button */
|
|
76
35
|
readonly CLOSE_BUTTON: "dialog__close-button";
|
|
77
|
-
/** Dialog content */
|
|
78
36
|
readonly CONTENT: "dialog__content";
|
|
79
|
-
/** Dialog footer */
|
|
80
37
|
readonly FOOTER: "dialog__footer";
|
|
81
|
-
/** Dialog divider */
|
|
82
38
|
readonly DIVIDER: "dialog__divider";
|
|
83
|
-
/** Added when dialog is open */
|
|
84
39
|
readonly OPEN: "dialog--open";
|
|
85
|
-
/** Added when dialog is animating */
|
|
86
40
|
readonly ANIMATING: "dialog--animating";
|
|
87
41
|
};
|
|
88
|
-
/**
|
|
89
|
-
* Default animation duration in milliseconds
|
|
90
|
-
*/
|
|
91
42
|
export declare const DEFAULT_ANIMATION_DURATION = 300;
|
|
92
|
-
/**
|
|
93
|
-
* Default z-index for dialogs
|
|
94
|
-
*/
|
|
95
43
|
export declare const DEFAULT_Z_INDEX = 1000;
|
|
96
|
-
/**
|
|
97
|
-
* Button variants for dialog buttons following Material Design 3
|
|
98
|
-
*/
|
|
99
44
|
export declare const DIALOG_BUTTON_VARIANTS: {
|
|
100
|
-
/** Text button (low emphasis) */
|
|
101
45
|
readonly TEXT: "text";
|
|
102
|
-
/** Filled button (high emphasis) */
|
|
103
46
|
readonly FILLED: "filled";
|
|
104
|
-
/** Outlined button (medium emphasis) */
|
|
105
47
|
readonly OUTLINED: "outlined";
|
|
106
|
-
/** Tonal button (medium emphasis) */
|
|
107
48
|
readonly TONAL: "tonal";
|
|
108
49
|
};
|
|
109
|
-
/**
|
|
110
|
-
* Default button text for confirmation dialogs
|
|
111
|
-
*/
|
|
112
50
|
export declare const DEFAULT_CONFIRM_BUTTON_TEXT = "Yes";
|
|
113
|
-
/**
|
|
114
|
-
* Default button text for cancellation in dialogs
|
|
115
|
-
*/
|
|
116
51
|
export declare const DEFAULT_CANCEL_BUTTON_TEXT = "No";
|
|
@@ -1,89 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Dialog Component Implementation
|
|
3
|
-
*
|
|
4
|
-
* This module implements a Material Design 3 dialog component that can be
|
|
5
|
-
* used for alerts, confirmations, form submissions, and complex interactions.
|
|
6
|
-
*
|
|
7
|
-
* The implementation supports various features including:
|
|
8
|
-
* - Multiple size variants (small, medium, large, fullwidth, fullscreen)
|
|
9
|
-
* - Multiple animation styles
|
|
10
|
-
* - Custom buttons with configurable actions
|
|
11
|
-
* - Dividers for visual separation
|
|
12
|
-
* - Confirmation dialog patterns
|
|
13
|
-
* - Event handling for dialog lifecycle
|
|
14
|
-
*
|
|
15
|
-
* @module components/dialog
|
|
16
|
-
* @category Components
|
|
17
|
-
*/
|
|
18
1
|
import { DialogConfig, DialogComponent } from "./types.js";
|
|
19
|
-
/**
|
|
20
|
-
* Creates a new Dialog component with the specified configuration.
|
|
21
|
-
*
|
|
22
|
-
* Dialogs are modal windows that appear in front of app content to
|
|
23
|
-
* provide critical information or ask for decisions. They inform
|
|
24
|
-
* users about specific tasks and may contain critical information,
|
|
25
|
-
* require decisions, or involve multiple tasks.
|
|
26
|
-
*
|
|
27
|
-
* @param {DialogConfig} config - Configuration options for the dialog
|
|
28
|
-
* @returns {DialogComponent} A fully configured dialog component instance
|
|
29
|
-
* @throws {Error} Throws an error if dialog creation fails
|
|
30
|
-
*
|
|
31
|
-
* @category Components
|
|
32
|
-
*
|
|
33
|
-
* @example
|
|
34
|
-
* // Create a basic dialog with title and content
|
|
35
|
-
* const infoDialog = createDialog({
|
|
36
|
-
* title: 'Information',
|
|
37
|
-
* content: 'Your changes have been saved.',
|
|
38
|
-
* size: 'small',
|
|
39
|
-
* buttons: [
|
|
40
|
-
* { text: 'OK', variant: 'text', closeDialog: true }
|
|
41
|
-
* ]
|
|
42
|
-
* });
|
|
43
|
-
*
|
|
44
|
-
* document.body.appendChild(infoDialog.element);
|
|
45
|
-
* infoDialog.open();
|
|
46
|
-
*
|
|
47
|
-
* @example
|
|
48
|
-
* // Create a form dialog with multiple buttons
|
|
49
|
-
* const formDialog = createDialog({
|
|
50
|
-
* title: 'Edit Profile',
|
|
51
|
-
* content: '<form id="profile-form">...</form>',
|
|
52
|
-
* size: 'medium',
|
|
53
|
-
* closeOnEscape: true,
|
|
54
|
-
* closeOnOverlayClick: false,
|
|
55
|
-
* buttons: [
|
|
56
|
-
* {
|
|
57
|
-
* text: 'Save',
|
|
58
|
-
* variant: 'filled',
|
|
59
|
-
* onClick: (event, dialog) => {
|
|
60
|
-
* const form = document.getElementById('profile-form');
|
|
61
|
-
* if(form.checkValidity()) {
|
|
62
|
-
* saveProfile(form);
|
|
63
|
-
* dialog.close();
|
|
64
|
-
* }
|
|
65
|
-
* }
|
|
66
|
-
* },
|
|
67
|
-
* { text: 'Cancel', variant: 'text', closeDialog: true }
|
|
68
|
-
* ]
|
|
69
|
-
* });
|
|
70
|
-
*
|
|
71
|
-
* @example
|
|
72
|
-
* // Create a confirmation dialog using the Promise-based API
|
|
73
|
-
* async function confirmAction() {
|
|
74
|
-
* const dialog = createDialog();
|
|
75
|
-
* const confirmed = await dialog.confirm({
|
|
76
|
-
* title: 'Confirm Action',
|
|
77
|
-
* message: 'Are you sure you want to proceed?',
|
|
78
|
-
* confirmText: 'Yes, proceed',
|
|
79
|
-
* cancelText: 'No, cancel'
|
|
80
|
-
* });
|
|
81
|
-
*
|
|
82
|
-
* if (confirmed) {
|
|
83
|
-
* // User clicked the confirm button
|
|
84
|
-
* performAction();
|
|
85
|
-
* }
|
|
86
|
-
* }
|
|
87
|
-
*/
|
|
88
2
|
declare const createDialog: (config?: DialogConfig) => DialogComponent;
|
|
89
3
|
export default createDialog;
|
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Dialog Component Module
|
|
3
|
-
*
|
|
4
|
-
* A Material Design 3 dialog implementation with support for multiple sizes,
|
|
5
|
-
* animations, content types, and interactive features like confirmation.
|
|
6
|
-
*
|
|
7
|
-
* Dialogs inform users about critical information, require decisions,
|
|
8
|
-
* or involve multiple tasks.
|
|
9
|
-
*
|
|
10
|
-
* @module components/dialog
|
|
11
|
-
* @category Components
|
|
12
|
-
*/
|
|
13
1
|
export { default, default as createDialog } from "./dialog.js";
|
|
14
2
|
export type { DialogConfig, DialogComponent, DialogButton, DialogEvent, DialogConfirmOptions, DialogSize, DialogAnimation, DialogFooterAlignment, DialogEventType, } from "./types.js";
|