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,88 +1,34 @@
|
|
|
1
1
|
import type { EventCallback } from "../../core/state/emitter.js";
|
|
2
2
|
import type { ForwardedEventPayload } from "../../core/dom/index.js";
|
|
3
3
|
export type ChipType = "assist" | "filter" | "input" | "suggestion";
|
|
4
|
-
/** Shared chip options. Containers default to filter chips. */
|
|
5
4
|
export interface ChipConfig {
|
|
6
5
|
type?: ChipType;
|
|
7
6
|
label?: string;
|
|
8
7
|
value?: string;
|
|
9
8
|
disabled?: boolean;
|
|
10
|
-
/** In a single-select set, selecting this chip replaces the previous selection; the last selected config wins. */
|
|
11
9
|
selected?: boolean;
|
|
12
|
-
/** Elevated styling is supported by assist, filter and suggestion chips. */
|
|
13
10
|
elevated?: boolean;
|
|
14
|
-
/** Markup (HTML). Not sanitized by default: see Markup and sanitizing. */
|
|
15
11
|
leadingIcon?: string;
|
|
16
|
-
/** Markup (HTML). Not sanitized by default: see Markup and sanitizing. Same sink as `leadingIcon`. */
|
|
17
12
|
icon?: string;
|
|
18
|
-
/** Markup (HTML). Not sanitized by default: see Markup and sanitizing. */
|
|
19
13
|
trailingIcon?: string;
|
|
20
|
-
/** Decorative avatar for an input chip; takes precedence over leadingIcon. Markup (HTML), not a person's name or an image URL. Not sanitized by default: see Markup and sanitizing. */
|
|
21
14
|
avatar?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Called when an input chip is removed, from its remove button or with Backspace or
|
|
24
|
-
* Delete. Input chips are always removable (m3.material.io chips): on its own the
|
|
25
|
-
* chip then leaves the page; in a set, the set removes it and emits `remove`. It
|
|
26
|
-
* used to be a request the owner had to act on, and without it there was no
|
|
27
|
-
* remove button. It and every `remove` listener run first, with the chip
|
|
28
|
-
* still in the set and on the page; the removal follows.
|
|
29
|
-
*/
|
|
30
15
|
onRemove?: ChipEvents["remove"];
|
|
31
16
|
removeLabel?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Filter chips: gives the trailing icon its own button, which calls this (the
|
|
34
|
-
* m3.material.io chips' trailing icon that "can be used to open a menu or remove
|
|
35
|
-
* the chip"). The chip's own action is unaffected.
|
|
36
|
-
*/
|
|
37
17
|
onTrailingClick?: ChipEvents["trailing"];
|
|
38
|
-
/** The trailing button's accessible name; "{label} options" for a menu, "Remove {label}" otherwise. */
|
|
39
18
|
trailingLabel?: string;
|
|
40
|
-
/** The trailing button opens a menu: aria-haspopup="menu", and a drop-down arrow unless trailingIcon is set. */
|
|
41
19
|
trailingMenu?: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* Same payload as a `click` listener. It runs before the chip toggles, alone or
|
|
44
|
-
* in a set: `isSelected()` here is the state before the click. Read the new
|
|
45
|
-
* state in `onChange`, which follows when the selection changed.
|
|
46
|
-
*/
|
|
47
20
|
onClick?: ChipEvents["click"];
|
|
48
|
-
/**
|
|
49
|
-
* Same payload as a `change` listener: `{ selected, chip, value }`.
|
|
50
|
-
* On its own, a click emits `change` before `click`. In a set, the set
|
|
51
|
-
* toggles the chip during `click`, and the chip then emits `change` once.
|
|
52
|
-
* That click runs, in order: the item's `onClick`, the set's `onChange`,
|
|
53
|
-
* a set `change` listener added after `createChips`, the item's `onSelect`,
|
|
54
|
-
* a chip `click` listener added after the chip was created, the item's
|
|
55
|
-
* `onChange`, and a chip `change` listener added after the chip was created.
|
|
56
|
-
* `setSelected` does not emit `change`, and neither does the set's
|
|
57
|
-
* `selectByValue`.
|
|
58
|
-
*/
|
|
59
21
|
onChange?: ChipEvents["change"];
|
|
60
|
-
/**
|
|
61
|
-
* Called with the chip when the user toggles a selectable chip, not when a
|
|
62
|
-
* `selectionRequired` set refuses the click. No matching event: this is not
|
|
63
|
-
* an `on(event)` listener.
|
|
64
|
-
*/
|
|
65
22
|
onSelect?: (chip: ChipComponent) => void;
|
|
66
23
|
class?: string;
|
|
67
24
|
prefix?: string;
|
|
68
25
|
componentName?: string;
|
|
69
26
|
ripple?: boolean;
|
|
70
27
|
}
|
|
71
|
-
/**
|
|
72
|
-
* @internal What the chip set passes a chip on top of its config; not part of
|
|
73
|
-
* ChipConfig, so apps cannot set it.
|
|
74
|
-
*/
|
|
75
28
|
export interface ChipOptions extends ChipConfig {
|
|
76
|
-
/** Selection belongs to the chips container. */
|
|
77
29
|
managedSelection?: boolean;
|
|
78
|
-
/** Notify the owning set when a chip becomes selected. */
|
|
79
30
|
onSelected?: (chip: ChipComponent) => void;
|
|
80
|
-
/** The owning set removes the chip, once its `remove` listeners have run. */
|
|
81
31
|
onRemoved?: (chip: ChipComponent) => void;
|
|
82
|
-
/**
|
|
83
|
-
* The chip is a cell of a chip set's grid: the root is a
|
|
84
|
-
* `gridcell`, and a one-action chip's cell is its focus target.
|
|
85
|
-
*/
|
|
86
32
|
cell?: boolean;
|
|
87
33
|
}
|
|
88
34
|
type NamedChipConfig = Omit<ChipConfig, "type" | "text" | "selected" | "avatar" | "onRemove" | "removeLabel" | "onChange" | "onSelect" | "onTrailingClick" | "trailingLabel" | "trailingMenu"> & {
|
|
@@ -95,7 +41,6 @@ export type InputChipConfig = Omit<FilterChipConfig, "elevated" | "onTrailingCli
|
|
|
95
41
|
export interface ChipChangePayload {
|
|
96
42
|
selected: boolean;
|
|
97
43
|
chip: ChipComponent;
|
|
98
|
-
/** The chip's value, as `getValue()` returns it; every model event carries it */
|
|
99
44
|
value: string | null;
|
|
100
45
|
}
|
|
101
46
|
export interface ChipEvents {
|
|
@@ -105,18 +50,11 @@ export interface ChipEvents {
|
|
|
105
50
|
blur: (payload: ForwardedEventPayload<FocusEvent, HTMLElement>) => void;
|
|
106
51
|
change: (payload: ChipChangePayload) => void;
|
|
107
52
|
remove: (chip: ChipComponent) => void;
|
|
108
|
-
/** A filter chip's trailing button was activated. */
|
|
109
53
|
trailing: (chip: ChipComponent) => void;
|
|
110
54
|
}
|
|
111
|
-
/** Shared API. Selection setters are inert on assist and suggestion chips. */
|
|
112
55
|
export interface ChipComponent {
|
|
113
56
|
element: HTMLElement;
|
|
114
|
-
/** Native primary action. Removal is a sibling button, never nested inside it. */
|
|
115
57
|
action: HTMLButtonElement;
|
|
116
|
-
/**
|
|
117
|
-
* A filter chip's trailing button, when it has one (`onTrailingClick`): anchor a
|
|
118
|
-
* menu to it and keep its aria-expanded in step.
|
|
119
|
-
*/
|
|
120
58
|
trailingAction?: HTMLButtonElement;
|
|
121
59
|
getType: () => ChipType;
|
|
122
60
|
getValue: () => string | null;
|
|
@@ -126,7 +64,6 @@ export interface ChipComponent {
|
|
|
126
64
|
isDisabled: () => boolean;
|
|
127
65
|
setLabel: (label: string) => ChipComponent;
|
|
128
66
|
getLabel: () => string;
|
|
129
|
-
/** Alias of setLabel for chips-container consumers. */
|
|
130
67
|
setText: (text: string) => ChipComponent;
|
|
131
68
|
getText: () => string;
|
|
132
69
|
setIcon: (icon: string) => ChipComponent;
|
|
@@ -134,7 +71,6 @@ export interface ChipComponent {
|
|
|
134
71
|
setLeadingIcon: (icon: string) => ChipComponent;
|
|
135
72
|
setTrailingIcon: (icon: string) => ChipComponent;
|
|
136
73
|
isSelected: () => boolean;
|
|
137
|
-
/** Selects or deselects this chip silently. In a single-select set, selecting it deselects the previous chip. */
|
|
138
74
|
setSelected: (selected: boolean) => ChipComponent;
|
|
139
75
|
toggleSelected: () => ChipComponent;
|
|
140
76
|
focus: () => ChipComponent;
|
|
@@ -143,107 +79,27 @@ export interface ChipComponent {
|
|
|
143
79
|
off: <K extends keyof ChipEvents>(event: K, handler: ChipEvents[K]) => ChipComponent;
|
|
144
80
|
addClass: (...classes: string[]) => ChipComponent;
|
|
145
81
|
}
|
|
146
|
-
/**
|
|
147
|
-
* Configuration interface for the Chips component
|
|
148
|
-
* @category Components
|
|
149
|
-
*/
|
|
150
82
|
export interface ChipsConfig {
|
|
151
|
-
/**
|
|
152
|
-
* Array of chip configurations to initialize
|
|
153
|
-
* @default []
|
|
154
|
-
*/
|
|
155
83
|
chips?: ChipConfig[];
|
|
156
|
-
/**
|
|
157
|
-
* Whether the chip set is horizontally scrollable
|
|
158
|
-
* @default false
|
|
159
|
-
*/
|
|
160
84
|
scrollable?: boolean;
|
|
161
|
-
/**
|
|
162
|
-
* Whether the chip set is vertically stacked
|
|
163
|
-
* @default false
|
|
164
|
-
*/
|
|
165
85
|
vertical?: boolean;
|
|
166
|
-
/**
|
|
167
|
-
* Additional CSS classes
|
|
168
|
-
*/
|
|
169
86
|
class?: string;
|
|
170
|
-
/**
|
|
171
|
-
* CSS selector for filtering behavior
|
|
172
|
-
*/
|
|
173
87
|
selector?: string | null;
|
|
174
|
-
/**
|
|
175
|
-
* Whether several chips can be selected at once. Multi-select is the default, as
|
|
176
|
-
* Material's chip groups are (single-select is opt-in).
|
|
177
|
-
* @default true
|
|
178
|
-
*/
|
|
179
88
|
multiSelect?: boolean;
|
|
180
|
-
/**
|
|
181
|
-
* Whether the set keeps at least one chip selected: deselecting the last selected
|
|
182
|
-
* chip is refused, and a refused click emits no `change`, on the chip or on the set.
|
|
183
|
-
* Off by default, as in Material; single-select sets used to
|
|
184
|
-
* enforce it without a way to opt out.
|
|
185
|
-
* @default false
|
|
186
|
-
*/
|
|
187
89
|
selectionRequired?: boolean;
|
|
188
|
-
/**
|
|
189
|
-
* Same payload as an `on("change")` listener. Registered before the `on`
|
|
190
|
-
* map and before a listener added after `createChips`.
|
|
191
|
-
* `selectByValue(values, true)` reaches it, with `changed: null`.
|
|
192
|
-
* `selectByValue(values)` and `clearSelection()` stay silent.
|
|
193
|
-
*/
|
|
194
90
|
onChange?: ChipsEvents["change"];
|
|
195
|
-
/**
|
|
196
|
-
* Component prefix for class names
|
|
197
|
-
* @default 'mtrl'
|
|
198
|
-
*/
|
|
199
91
|
prefix?: string;
|
|
200
|
-
/**
|
|
201
|
-
* Label text for the chips container
|
|
202
|
-
*/
|
|
203
92
|
label?: string;
|
|
204
|
-
/**
|
|
205
|
-
* Position of the label (start or end)
|
|
206
|
-
* @default 'start'
|
|
207
|
-
*/
|
|
208
93
|
labelPosition?: "start" | "end";
|
|
209
|
-
/**
|
|
210
|
-
* Schema definition for the component structure
|
|
211
|
-
* @internal
|
|
212
|
-
*/
|
|
213
94
|
schema?: unknown;
|
|
214
|
-
/**
|
|
215
|
-
* Event handlers for component events
|
|
216
|
-
*/
|
|
217
95
|
on?: Partial<ChipsEvents>;
|
|
218
96
|
}
|
|
219
|
-
/**
|
|
220
|
-
* Chips component interface
|
|
221
|
-
* @category Components
|
|
222
|
-
*/
|
|
223
|
-
/**
|
|
224
|
-
* What a chips feature needs from the component it is handed.
|
|
225
|
-
*
|
|
226
|
-
* The chips pipe is createBase, withEvents, withElement, withContainer,
|
|
227
|
-
* withChipItems, withDom, then the controller -- so the element and the
|
|
228
|
-
* emitter are installed before it runs, and `chipContainer` and
|
|
229
|
-
* `chipInstances` come from the two features just above it.
|
|
230
|
-
*
|
|
231
|
-
* @category Components
|
|
232
|
-
* @internal
|
|
233
|
-
*/
|
|
234
97
|
export interface ChipsFeatureComponent {
|
|
235
98
|
element: HTMLElement;
|
|
236
99
|
getClass: (name: string) => string;
|
|
237
100
|
emit?: (event: string, data: unknown) => unknown;
|
|
238
|
-
/** withDom builds this; the controller appends chips to it */
|
|
239
101
|
chipContainer?: HTMLElement;
|
|
240
|
-
/**
|
|
241
|
-
* withChipItems keeps the live chips here. Required, because it runs before
|
|
242
|
-
* the controller in the only pipe that builds one, and the controller reads
|
|
243
|
-
* it on every path.
|
|
244
|
-
*/
|
|
245
102
|
chipInstances: ChipComponent[];
|
|
246
|
-
/** withContainer installs this whole, so the members are not optional in it */
|
|
247
103
|
layout?: {
|
|
248
104
|
isVertical: () => boolean;
|
|
249
105
|
isScrollable: () => boolean;
|
|
@@ -253,186 +109,52 @@ export interface ChipsFeatureComponent {
|
|
|
253
109
|
destroy: () => void;
|
|
254
110
|
};
|
|
255
111
|
}
|
|
256
|
-
/**
|
|
257
|
-
* The handlers the chips controller keeps per event name.
|
|
258
|
-
*
|
|
259
|
-
* @category Components
|
|
260
|
-
* @internal
|
|
261
|
-
*/
|
|
262
112
|
export type ChipsEventListeners = Record<string, EventCallback[]>;
|
|
263
|
-
/**
|
|
264
|
-
* The payload of the chips set's `change`.
|
|
265
|
-
*
|
|
266
|
-
* Read `value` for the set's current value, `selected` for selected chip
|
|
267
|
-
* values, and `changed` for the chip toggled by the user.
|
|
268
|
-
*/
|
|
269
113
|
export interface ChipsChangeEvent {
|
|
270
|
-
/** The selection in the `value` property's shape: a string or null for a single-select set, an array for a multi-select one. */
|
|
271
114
|
value: string | string[] | null;
|
|
272
|
-
/** The values of the selected chips, in chip order (a chip without a value gives null) */
|
|
273
115
|
selected: (string | null)[];
|
|
274
|
-
/** The value of the chip the user toggled; null for a change made by a method */
|
|
275
116
|
changed: string | null;
|
|
276
117
|
}
|
|
277
|
-
/** A chip joined the set; `value` is the selection after insertion. */
|
|
278
118
|
export interface ChipsAddEvent {
|
|
279
119
|
value: string | string[] | null;
|
|
280
120
|
chip: ChipComponent;
|
|
281
121
|
}
|
|
282
|
-
/** A chip left the set; `value` is the remaining selection. */
|
|
283
122
|
export interface ChipsRemoveEvent extends ChipsAddEvent {
|
|
284
|
-
/** The selection after removal, in the same shape as the set's `getValue()`. */
|
|
285
123
|
value: string | string[] | null;
|
|
286
|
-
/** The removed chip's value, captured before destruction. */
|
|
287
124
|
chipValue: string | null;
|
|
288
125
|
}
|
|
289
|
-
/** Events emitted by the chips container's controller. */
|
|
290
126
|
export interface ChipsEvents {
|
|
291
|
-
/**
|
|
292
|
-
* The selection after the change. Read `event.value`, the same field the
|
|
293
|
-
* `<m-chips>` element's `change` carries.
|
|
294
|
-
*/
|
|
295
127
|
change: (event: ChipsChangeEvent) => void;
|
|
296
|
-
/** The newly created chip and the selection after insertion. */
|
|
297
128
|
add: (event: ChipsAddEvent) => void;
|
|
298
|
-
/** The removed chip and the selection after removal. */
|
|
299
129
|
remove: (event: ChipsRemoveEvent) => void;
|
|
300
130
|
}
|
|
301
131
|
export interface ChipsComponent {
|
|
302
|
-
/** The chips container's DOM element */
|
|
303
132
|
element: HTMLElement;
|
|
304
|
-
/**
|
|
305
|
-
* Adds a new chip to the chips container. In a single-select set, a selected
|
|
306
|
-
* chip replaces the previous selection before `add` fires; `add.value`
|
|
307
|
-
* reads the new selection. Programmatic additions do not emit `change`.
|
|
308
|
-
* @param chipConfig - Configuration for the chip
|
|
309
|
-
* @returns The chips instance for chaining
|
|
310
|
-
*/
|
|
311
133
|
addChip: (chipConfig: ChipConfig) => ChipsComponent;
|
|
312
|
-
/**
|
|
313
|
-
* Removes a chip from the chips container
|
|
314
|
-
* @param chipOrIndex - Chip instance or index to remove
|
|
315
|
-
* @returns The chips instance for chaining
|
|
316
|
-
*/
|
|
317
134
|
removeChip: (chipOrIndex: ChipComponent | number) => ChipsComponent;
|
|
318
|
-
/**
|
|
319
|
-
* Gets all chip instances in the set
|
|
320
|
-
* @returns Array of chip instances
|
|
321
|
-
*/
|
|
322
135
|
getChips: () => ChipComponent[];
|
|
323
|
-
/**
|
|
324
|
-
* Gets currently selected chips
|
|
325
|
-
* @returns Array of selected chip instances
|
|
326
|
-
*/
|
|
327
136
|
getSelectedChips: () => ChipComponent[];
|
|
328
|
-
/**
|
|
329
|
-
* Gets the values of selected chips
|
|
330
|
-
* @returns Array of selected chip values
|
|
331
|
-
*/
|
|
332
137
|
getSelectedValues: () => (string | null)[];
|
|
333
|
-
/**
|
|
334
|
-
* Gets the current value - form field compatibility
|
|
335
|
-
* @returns The first selected value (or null) in single-select mode, the selected values in multi-select mode
|
|
336
|
-
*/
|
|
337
138
|
getValue: () => string | string[] | null;
|
|
338
|
-
/**
|
|
339
|
-
* Sets the value by selecting chips by value, without a change event - form field compatibility
|
|
340
|
-
* @param values - Value or array of values to select; null, undefined or empty clears the selection
|
|
341
|
-
* @returns The chips instance for chaining
|
|
342
|
-
*/
|
|
343
139
|
setValue: (values: string | string[] | null | undefined) => ChipsComponent;
|
|
344
|
-
/**
|
|
345
|
-
* Selects chips by their values
|
|
346
|
-
* @param values - Value or array of values to select
|
|
347
|
-
* @param triggerEvent - Emits `change` when true; silent by default
|
|
348
|
-
* @returns The chips instance for chaining
|
|
349
|
-
*/
|
|
350
140
|
selectByValue: (values: string | string[], triggerEvent?: boolean) => ChipsComponent;
|
|
351
|
-
/**
|
|
352
|
-
* Clears all selections. Silent: only the user's change emits `change`
|
|
353
|
-
* @returns The chips instance for chaining
|
|
354
|
-
*/
|
|
355
141
|
clearSelection: () => ChipsComponent;
|
|
356
|
-
/**
|
|
357
|
-
* Sets the scrollable state of the chips container
|
|
358
|
-
* @param isScrollable - Whether the chips container should be scrollable
|
|
359
|
-
* @returns The chips instance for chaining
|
|
360
|
-
*/
|
|
361
142
|
setScrollable: (isScrollable: boolean) => ChipsComponent;
|
|
362
|
-
/**
|
|
363
|
-
* Sets the vertical layout state
|
|
364
|
-
* @param isVertical - Whether the chips container should be vertically stacked
|
|
365
|
-
* @returns The chips instance for chaining
|
|
366
|
-
*/
|
|
367
143
|
setVertical: (isVertical: boolean) => ChipsComponent;
|
|
368
|
-
/**
|
|
369
|
-
* Sets the label text
|
|
370
|
-
* @param text - Label text
|
|
371
|
-
* @returns The chips instance for chaining
|
|
372
|
-
*/
|
|
373
144
|
setLabel: (text: string) => ChipsComponent;
|
|
374
|
-
/**
|
|
375
|
-
* Gets the label text
|
|
376
|
-
* @returns Label text
|
|
377
|
-
*/
|
|
378
145
|
getLabel: () => string;
|
|
379
|
-
/**
|
|
380
|
-
* Sets the label position
|
|
381
|
-
* @param position - Label position ('start' or 'end')
|
|
382
|
-
* @returns The chips instance for chaining
|
|
383
|
-
*/
|
|
384
146
|
setLabelPosition: (position: "start" | "end") => ChipsComponent;
|
|
385
|
-
/**
|
|
386
|
-
* Gets the label position
|
|
387
|
-
* @returns Label position
|
|
388
|
-
*/
|
|
389
147
|
getLabelPosition: () => string;
|
|
390
|
-
/**
|
|
391
|
-
* Scrolls to a specific chip. A scrollable set scrolls smoothly, from its
|
|
392
|
-
* stylesheet, and at once under reduced motion.
|
|
393
|
-
* @param chipOrIndex - Chip instance or index to scroll to
|
|
394
|
-
* @returns The chips instance for chaining
|
|
395
|
-
*/
|
|
396
148
|
scrollToChip: (chipOrIndex: ChipComponent | number) => ChipsComponent;
|
|
397
|
-
/**
|
|
398
|
-
* Enables keyboard navigation between chips in the set
|
|
399
|
-
* @returns The chips instance for chaining
|
|
400
|
-
*/
|
|
401
149
|
enableKeyboardNavigation: () => ChipsComponent;
|
|
402
|
-
/**
|
|
403
|
-
* Turns keyboard navigation between the chips on and off: while disabled,
|
|
404
|
-
* the arrows, Home and End no longer move focus in the set
|
|
405
|
-
*/
|
|
406
150
|
keyboard: {
|
|
407
|
-
/** Moves focus with the arrows, Home and End again */
|
|
408
151
|
enable: () => void;
|
|
409
|
-
/** Stops moving focus with the arrows, Home and End */
|
|
410
152
|
disable: () => void;
|
|
411
153
|
};
|
|
412
|
-
/**
|
|
413
|
-
* Destroys the chips container and all contained chips
|
|
414
|
-
*/
|
|
415
154
|
destroy: () => void;
|
|
416
|
-
/**
|
|
417
|
-
* Adds an event listener to the chips container
|
|
418
|
-
* @param event - Event name ('change', etc.)
|
|
419
|
-
* @param handler - Event handler function
|
|
420
|
-
* @returns The chips instance for chaining
|
|
421
|
-
*/
|
|
422
155
|
on: <K extends keyof ChipsEvents>(event: K, handler: ChipsEvents[K]) => ChipsComponent;
|
|
423
|
-
/**
|
|
424
|
-
* Removes an event listener from the chips container
|
|
425
|
-
* @param event - Event name
|
|
426
|
-
* @param handler - Event handler function
|
|
427
|
-
* @returns The chips instance for chaining
|
|
428
|
-
*/
|
|
429
156
|
off: <K extends keyof ChipsEvents>(event: K, handler: ChipsEvents[K]) => ChipsComponent;
|
|
430
157
|
}
|
|
431
|
-
/**
|
|
432
|
-
* Registers ChipConfig with the global defaults map, so
|
|
433
|
-
* `setComponentDefaults("chip", ...)` is typed without core
|
|
434
|
-
* importing anything from this component.
|
|
435
|
-
*/
|
|
436
158
|
declare module "../../core/config/global" {
|
|
437
159
|
interface ComponentConfigMap {
|
|
438
160
|
chip?: Partial<ChipConfig>;
|
|
@@ -1,101 +1,45 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* DatePicker variants
|
|
3
|
-
*/
|
|
4
1
|
export declare const DATEPICKER_VARIANTS: {
|
|
5
|
-
/** Docked datepicker appears inline on the page */
|
|
6
2
|
readonly DOCKED: "docked";
|
|
7
|
-
/** Modal datepicker appears in a dialog overlay */
|
|
8
3
|
readonly MODAL: "modal";
|
|
9
|
-
/** Modal with input field for entering dates */
|
|
10
4
|
readonly MODAL_INPUT: "modal-input";
|
|
11
5
|
};
|
|
12
|
-
/**
|
|
13
|
-
* DatePicker views
|
|
14
|
-
*/
|
|
15
6
|
export declare const DATEPICKER_VIEWS: {
|
|
16
|
-
/** Daily calendar grid view */
|
|
17
7
|
readonly DAY: "day";
|
|
18
|
-
/** Month selection view */
|
|
19
8
|
readonly MONTH: "month";
|
|
20
|
-
/** Year selection view */
|
|
21
9
|
readonly YEAR: "year";
|
|
22
10
|
};
|
|
23
|
-
/**
|
|
24
|
-
* DatePicker selection modes
|
|
25
|
-
*/
|
|
26
11
|
export declare const DATEPICKER_SELECTION_MODES: {
|
|
27
|
-
/** Select a single date */
|
|
28
12
|
readonly SINGLE: "single";
|
|
29
|
-
/** Select a date range */
|
|
30
13
|
readonly RANGE: "range";
|
|
31
14
|
};
|
|
32
|
-
/**
|
|
33
|
-
* Day names for the calendar
|
|
34
|
-
*/
|
|
35
15
|
export declare const DAY_NAMES: string[];
|
|
36
|
-
/**
|
|
37
|
-
* Month names for the calendar
|
|
38
|
-
*/
|
|
39
16
|
export declare const MONTH_NAMES: string[];
|
|
40
|
-
/**
|
|
41
|
-
* Month names abbreviated
|
|
42
|
-
*/
|
|
43
17
|
export declare const MONTH_NAMES_SHORT: string[];
|
|
44
|
-
/**
|
|
45
|
-
* Default format for displaying dates
|
|
46
|
-
*/
|
|
47
18
|
export declare const DEFAULT_DATE_FORMAT = "MM/DD/YYYY";
|
|
48
|
-
/**
|
|
49
|
-
* DatePicker CSS class names
|
|
50
|
-
*/
|
|
51
19
|
export declare const DATEPICKER_CLASSES: {
|
|
52
|
-
/** Root container class */
|
|
53
20
|
readonly ROOT: "datepicker";
|
|
54
|
-
/** Class for the input field */
|
|
55
21
|
readonly INPUT: "datepicker__input";
|
|
56
|
-
/** Class for the calendar container */
|
|
57
22
|
readonly CALENDAR: "datepicker__calendar";
|
|
58
|
-
/** Class for the header section */
|
|
59
23
|
readonly HEADER: "datepicker__header";
|
|
60
|
-
/** Class for the month/year navigation */
|
|
61
24
|
readonly NAVIGATION: "datepicker__navigation";
|
|
62
|
-
/** Class for the day names row */
|
|
63
25
|
readonly WEEKDAYS: "datepicker__weekdays";
|
|
64
|
-
/** Class for the days grid */
|
|
65
26
|
readonly DAYS: "datepicker__days";
|
|
66
|
-
/** Class for individual day cells */
|
|
67
27
|
readonly DAY: "datepicker__day";
|
|
68
|
-
/** Class for today's date */
|
|
69
28
|
readonly TODAY: "datepicker__day--today";
|
|
70
|
-
/** Class for selected date */
|
|
71
29
|
readonly SELECTED: "datepicker__day--selected";
|
|
72
|
-
/** Class for disabled dates */
|
|
73
30
|
readonly DISABLED: "datepicker__day--disabled";
|
|
74
|
-
/** Class for dates outside the current month */
|
|
75
31
|
readonly OUTSIDE_MONTH: "datepicker__day--outside";
|
|
76
|
-
/** Class for first date in a range */
|
|
77
32
|
readonly RANGE_START: "datepicker__cell--range-start";
|
|
78
|
-
/** Class for last date in a range */
|
|
79
33
|
readonly RANGE_END: "datepicker__cell--range-end";
|
|
80
|
-
/** Class for dates between start and end in a range */
|
|
81
34
|
readonly RANGE_MIDDLE: "datepicker__cell--range";
|
|
82
35
|
};
|
|
83
|
-
/**
|
|
84
|
-
* DatePicker events
|
|
85
|
-
*/
|
|
86
36
|
export declare const DATEPICKER_EVENTS: {
|
|
87
|
-
/** Fired when the selected date changes */
|
|
88
37
|
readonly CHANGE: "change";
|
|
89
|
-
/** Fired when the datepicker opens */
|
|
90
38
|
readonly OPEN: "open";
|
|
91
|
-
/** Fired when the datepicker closes */
|
|
92
39
|
readonly CLOSE: "close";
|
|
93
|
-
/** Fired when a day is clicked/focused */
|
|
94
40
|
readonly SELECT: "select";
|
|
95
|
-
/** Fired when the view changes (day/month/year) */
|
|
96
41
|
readonly VIEW_CHANGE: "viewChange";
|
|
97
42
|
};
|
|
98
|
-
/** Internal SVG assets; accessible names are on their buttons. */
|
|
99
43
|
export declare const DATEPICKER_ICONS: {
|
|
100
44
|
readonly calendar: "<svg viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M19 4h-1V2h-2v2H8V2H6v2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM5 10h14v10H5V10Zm0-4h14v2H5V6Zm2 6h4v4H7v-4Z\"/></svg>";
|
|
101
45
|
readonly edit: "<svg viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"m3 17.25 11.06-11.06 3.75 3.75L6.75 21H3v-3.75ZM20.71 7.04l-1.83 1.83-3.75-3.75 1.83-1.83a1 1 0 0 1 1.41 0l2.34 2.34a1 1 0 0 1 0 1.41Z\"/></svg>";
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import type { DatePickerComponent, DatePickerConfig, DatePickerValueOf } from "./types.js";
|
|
2
|
-
/** M3 calendar/input modes share a draft; modal acceptance is the commit boundary. */
|
|
3
|
-
/**
|
|
4
|
-
* The value's type follows a literal selectionMode: `'range'` makes
|
|
5
|
-
* it a pair, the default a date.
|
|
6
|
-
*/
|
|
7
2
|
declare const createDatePicker: <M extends string = "single">(config?: DatePickerConfig & {
|
|
8
3
|
selectionMode?: M;
|
|
9
4
|
}) => DatePickerComponent<DatePickerValueOf<M>>;
|