material 3.9.0 → 3.10.1
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/NOTICE +3 -1
- package/README.md +5 -5
- package/dist/components/badge/index.d.ts +167 -3
- package/dist/components/bottom-app-bar/index.d.ts +141 -4
- package/dist/components/bottom-sheet/index.d.ts +114 -2
- package/dist/components/button/index.d.ts +10 -5
- package/dist/components/button-group/button-group.js +1 -0
- package/dist/components/button-group/config.js +9 -6
- package/dist/components/button-group/index.d.ts +250 -6
- package/dist/components/card/api.js +19 -0
- package/dist/components/card/index.d.ts +326 -5
- package/dist/components/carousel/features/slides.js +17 -7
- package/dist/components/carousel/index.d.ts +102 -3
- package/dist/components/checkbox/index.d.ts +217 -5
- package/dist/components/chips/chip/chip.js +4 -3
- package/dist/components/chips/index.d.ts +343 -3
- package/dist/components/datepicker/datepicker.js +62 -84
- package/dist/components/datepicker/index.d.ts +313 -2
- package/dist/components/datepicker/render.js +25 -21
- package/dist/components/datepicker/utils.js +65 -110
- package/dist/components/dialog/features.js +1 -1
- package/dist/components/dialog/index.d.ts +333 -3
- package/dist/components/divider/index.d.ts +96 -3
- package/dist/components/drawer/features/items.js +10 -2
- package/dist/components/drawer/index.d.ts +196 -3
- package/dist/components/extended-fab/index.d.ts +224 -2
- package/dist/components/fab/index.d.ts +183 -2
- package/dist/components/fab-menu/index.d.ts +106 -6
- package/dist/components/icon-button/index.d.ts +11 -4
- package/dist/components/list/features/anatomy.js +25 -6
- package/dist/components/list/features/selection.js +30 -2
- package/dist/components/list/index.d.ts +299 -6
- package/dist/components/loading-indicator/index.d.ts +91 -3
- package/dist/components/menu/features/controller.js +2 -0
- package/dist/components/menu/index.d.ts +10 -6
- package/dist/components/menu/inner.d.ts +2 -2
- package/dist/components/menu/on-demand.d.ts +5 -9
- package/dist/components/menu/types.d.ts +12 -7
- package/dist/components/navigation-bar/index.d.ts +70 -2
- package/dist/components/navigation-rail/index.d.ts +98 -2
- package/dist/components/progress/index.d.ts +9 -2
- package/dist/components/progress/types.d.ts +5 -5
- package/dist/components/radios/index.d.ts +158 -3
- package/dist/components/search/features/states.js +20 -39
- package/dist/components/search/features/structure.js +24 -4
- package/dist/components/search/features/suggestions.js +4 -0
- package/dist/components/search/index.d.ts +255 -2
- package/dist/components/select/index.d.ts +252 -6
- package/dist/components/side-sheet/index.d.ts +104 -2
- package/dist/components/slider/index.d.ts +236 -2
- package/dist/components/snackbar/api.js +26 -0
- package/dist/components/snackbar/constants.d.ts +4 -0
- package/dist/components/snackbar/constants.js +3 -1
- package/dist/components/snackbar/index.d.ts +215 -4
- package/dist/components/split-button/index.d.ts +10 -3
- package/dist/components/split-button/types.d.ts +3 -3
- package/dist/components/switch/index.d.ts +190 -3
- package/dist/components/tabs/index.d.ts +454 -12
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/responsive-legacy.js +65 -0
- package/dist/components/tabs/responsive.d.ts +7 -32
- package/dist/components/tabs/responsive.js +4 -63
- package/dist/components/tabs/tabs.js +1 -0
- package/dist/components/text-field/config.js +3 -4
- package/dist/components/text-field/features/field.js +61 -0
- package/dist/components/text-field/features/leading-icon.js +12 -45
- package/dist/components/text-field/features/prefix-text.js +6 -40
- package/dist/components/text-field/features/suffix-text.js +6 -40
- package/dist/components/text-field/index.d.ts +338 -3
- package/dist/components/timepicker/constants.d.ts +4 -4
- package/dist/components/timepicker/constants.js +2 -2
- package/dist/components/timepicker/dial.js +30 -3
- package/dist/components/timepicker/index.d.ts +279 -5
- package/dist/components/timepicker/render.js +15 -9
- package/dist/components/toolbar/index.d.ts +145 -6
- package/dist/components/tooltip/index.d.ts +155 -3
- package/dist/components/top-app-bar/index.d.ts +92 -5
- package/dist/core/canvas/index.d.ts +172 -5
- package/dist/core/canvas/utils.js +3 -13
- package/dist/core/compose/cleanup.d.ts +1 -1
- package/dist/core/compose/features/icon-opt-in.js +5 -0
- package/dist/core/compose/features/icon-slot.js +100 -0
- package/dist/core/compose/features/textinput.js +2 -0
- package/dist/core/compose/features/track.js +4 -0
- package/dist/core/compose/index.d.ts +741 -8
- package/dist/core/config/component.d.ts +1 -4
- package/dist/core/dom/create.d.ts +1 -4
- package/dist/core/dom/index.d.ts +233 -12
- package/dist/core/index.d.ts +93 -14
- package/dist/core/navigation/destinations.d.ts +6 -6
- package/dist/core/shapes/index.d.ts +286 -6
- package/dist/core/state/index.d.ts +98 -5
- package/dist/core/theme/index.d.ts +80 -4
- package/dist/core/utils/index.d.ts +95 -9
- package/dist/core/utils/mobile.d.ts +2 -2
- package/dist/elements/adapter.d.ts +3 -3
- package/dist/elements/css/bottom-sheet.css +1 -1
- package/dist/elements/css/button-group.css +1 -1
- package/dist/elements/css/button.css +1 -1
- package/dist/elements/css/datepicker.css +1 -1
- package/dist/elements/css/dialog.css +1 -1
- package/dist/elements/css/drawer.css +1 -1
- package/dist/elements/css/icon-button.css +1 -1
- package/dist/elements/css/list.css +1 -1
- package/dist/elements/css/menu.css +1 -1
- package/dist/elements/css/side-sheet.css +1 -1
- package/dist/elements/css/snackbar.css +1 -1
- package/dist/elements/css/text-field.css +1 -1
- package/dist/elements/css/timepicker.css +1 -1
- package/dist/elements/css/toolbar.css +1 -1
- package/dist/elements/datepicker.js +1 -0
- package/dist/elements/define.d.ts +3 -3
- package/dist/elements/define.js +12 -1
- package/dist/elements/drawer.js +2 -0
- package/dist/elements/index.d.ts +3974 -107
- 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 +2 -2
- package/dist/elements/preupgrade/button.css +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/elements/preupgrade/list.css +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/elements/snackbar.js +2 -0
- package/dist/elements/styles.d.ts +7 -7
- package/dist/elements/styles.js +15 -15
- package/dist/elements/text-field.js +2 -0
- package/dist/index.d.ts +78 -4
- package/dist/react/create.d.ts +2 -6
- package/dist/react/index.d.ts +106 -52
- package/dist/react/jsx.d.ts +49 -49
- package/dist/solid/create.d.ts +2 -7
- package/dist/solid/index.d.ts +106 -52
- package/dist/solid/jsx.d.ts +51 -50
- package/dist/styles/badge.css +1 -1
- package/dist/styles/base-lite.css +2 -2
- package/dist/styles/base.css +2 -2
- package/dist/styles/bottom-app-bar.css +1 -1
- package/dist/styles/bottom-sheet.css +2 -2
- package/dist/styles/button-group.css +2 -2
- package/dist/styles/button.css +2 -2
- 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 +2 -2
- package/dist/styles/dialog.css +2 -2
- package/dist/styles/divider.css +1 -1
- package/dist/styles/drawer.css +2 -2
- 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 +2 -2
- package/dist/styles/list.css +2 -2
- package/dist/styles/loading-indicator.css +1 -1
- package/dist/styles/menu.css +2 -2
- 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 +2 -2
- package/dist/styles/slider.css +1 -1
- package/dist/styles/snackbar.css +2 -2
- 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 +2 -2
- package/dist/styles/timepicker.css +2 -2
- package/dist/styles/toolbar.css +2 -2
- 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 +2 -2
- package/dist/svelte/runtime.d.ts +6 -10
- package/dist/theme/vendor/contrast/contrast.js +1 -16
- package/dist/theme/vendor/dislike/dislike_analyzer.js +1 -16
- package/dist/theme/vendor/dynamiccolor/color_spec_2021.js +1 -16
- package/dist/theme/vendor/dynamiccolor/color_spec_2025.js +1 -16
- package/dist/theme/vendor/dynamiccolor/contrast_curve.js +1 -16
- package/dist/theme/vendor/dynamiccolor/dynamic_color.d.ts +2 -2
- package/dist/theme/vendor/dynamiccolor/dynamic_color.js +1 -16
- package/dist/theme/vendor/dynamiccolor/dynamic_scheme.d.ts +2 -2
- package/dist/theme/vendor/dynamiccolor/dynamic_scheme.js +1 -16
- package/dist/theme/vendor/dynamiccolor/material_dynamic_colors.js +1 -16
- package/dist/theme/vendor/dynamiccolor/spec_2025.js +1 -16
- package/dist/theme/vendor/dynamiccolor/spec_extensions.js +1 -16
- package/dist/theme/vendor/dynamiccolor/tone_delta_pair.js +1 -16
- package/dist/theme/vendor/dynamiccolor/variant.js +1 -16
- package/dist/theme/vendor/hct/cam16.js +1 -16
- package/dist/theme/vendor/hct/hct.js +1 -16
- package/dist/theme/vendor/hct/hct_solver.js +1 -16
- package/dist/theme/vendor/hct/viewing_conditions.js +1 -16
- package/dist/theme/vendor/palettes/tonal_palette.d.ts +6 -9
- package/dist/theme/vendor/palettes/tonal_palette.js +1 -16
- package/dist/theme/vendor/quantize/lab_point_provider.js +1 -16
- package/dist/theme/vendor/quantize/quantizer_celebi.js +1 -16
- package/dist/theme/vendor/quantize/quantizer_map.js +1 -16
- package/dist/theme/vendor/quantize/quantizer_wsmeans.js +1 -16
- package/dist/theme/vendor/quantize/quantizer_wu.js +1 -16
- package/dist/theme/vendor/score/score.js +1 -16
- package/dist/theme/vendor/temperature/temperature_cache.js +1 -16
- package/dist/theme/vendor/utils/color_utils.js +1 -16
- package/dist/theme/vendor/utils/image_utils.js +1 -16
- package/dist/theme/vendor/utils/math_utils.js +1 -16
- package/dist/theme/vendor/utils/string_utils.js +1 -16
- 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/index.d.ts +188 -53
- package/package.json +5 -1
- package/src/styles/abstract/_functions.scss +22 -1
- package/src/styles/abstract/_variables.scss +0 -2
- package/src/styles/base/_tokens.scss +12 -0
- package/src/styles/components/_bottom-sheet.scss +1 -0
- package/src/styles/components/_button-group.scss +9 -5
- package/src/styles/components/_button.scss +9 -12
- package/src/styles/components/_datepicker.scss +2 -1
- package/src/styles/components/_dialog.scss +1 -0
- package/src/styles/components/_drawer.scss +33 -65
- package/src/styles/components/_icon-button.scss +32 -33
- package/src/styles/components/_list.scss +19 -5
- package/src/styles/components/_menu.scss +1 -0
- package/src/styles/components/_side-sheet.scss +1 -0
- package/src/styles/components/_snackbar.scss +1 -0
- package/src/styles/components/_text-field.scss +17 -109
- package/src/styles/components/_timepicker.scss +19 -5
- package/src/styles/components/_toolbar.scss +4 -4
- package/src/styles/elements/_button-group.scss +17 -4
- package/src/styles/elements/_button.scss +3 -2
- package/src/styles/elements/_drawer.scss +2 -1
- package/src/styles/elements/_field.scss +25 -14
- package/src/styles/elements/_icon-button.scss +8 -3
- package/src/styles/elements/_list.scss +3 -2
- package/src/styles/elements/_text-field.scss +71 -47
- package/dist/components/badge/badge.d.ts +0 -7
- package/dist/components/badge/types.d.ts +0 -152
- package/dist/components/bottom-app-bar/bottom-app-bar.d.ts +0 -12
- package/dist/components/bottom-app-bar/types.d.ts +0 -124
- package/dist/components/bottom-sheet/bottom-sheet.d.ts +0 -7
- package/dist/components/bottom-sheet/types.d.ts +0 -100
- package/dist/components/button/button.d.ts +0 -7
- package/dist/components/button-group/button-group.d.ts +0 -7
- package/dist/components/button-group/types.d.ts +0 -227
- package/dist/components/card/card.d.ts +0 -7
- package/dist/components/card/content.d.ts +0 -22
- package/dist/components/card/types.d.ts +0 -272
- package/dist/components/carousel/carousel.d.ts +0 -4
- package/dist/components/carousel/types.d.ts +0 -81
- package/dist/components/checkbox/checkbox.d.ts +0 -8
- package/dist/components/checkbox/types.d.ts +0 -199
- package/dist/components/chips/chips.d.ts +0 -7
- package/dist/components/chips/factories.d.ts +0 -9
- package/dist/components/chips/types.d.ts +0 -304
- package/dist/components/datepicker/datepicker.d.ts +0 -7
- package/dist/components/datepicker/types.d.ts +0 -300
- package/dist/components/datepicker/types.js +0 -17
- package/dist/components/dialog/dialog.d.ts +0 -8
- package/dist/components/dialog/types.d.ts +0 -311
- package/dist/components/divider/config.d.ts +0 -43
- package/dist/components/divider/divider.d.ts +0 -7
- package/dist/components/divider/types.d.ts +0 -43
- package/dist/components/drawer/drawer.d.ts +0 -7
- package/dist/components/drawer/types.d.ts +0 -179
- package/dist/components/extended-fab/extended-fab.d.ts +0 -7
- package/dist/components/extended-fab/types.d.ts +0 -208
- package/dist/components/fab/fab.d.ts +0 -7
- package/dist/components/fab/types.d.ts +0 -168
- package/dist/components/fab-menu/fab-menu.d.ts +0 -8
- package/dist/components/fab-menu/types.d.ts +0 -91
- package/dist/components/icon-button/icon-button.d.ts +0 -7
- package/dist/components/index.d.ts +0 -82
- package/dist/components/list/features/listbox.d.ts +0 -16
- package/dist/components/list/list.d.ts +0 -7
- package/dist/components/list/types.d.ts +0 -257
- package/dist/components/loading-indicator/features/renderer.d.ts +0 -28
- package/dist/components/loading-indicator/loading-indicator.d.ts +0 -7
- package/dist/components/loading-indicator/types.d.ts +0 -53
- package/dist/components/menu/menu.d.ts +0 -7
- package/dist/components/navigation-bar/navigation-bar.d.ts +0 -3
- package/dist/components/navigation-bar/types.d.ts +0 -59
- package/dist/components/navigation-rail/navigation-rail.d.ts +0 -3
- package/dist/components/navigation-rail/types.d.ts +0 -87
- package/dist/components/progress/progress.d.ts +0 -7
- package/dist/components/radios/radios.d.ts +0 -7
- package/dist/components/radios/types.d.ts +0 -144
- package/dist/components/search/search.d.ts +0 -7
- package/dist/components/search/types.d.ts +0 -235
- package/dist/components/select/select.d.ts +0 -7
- package/dist/components/select/types.d.ts +0 -232
- package/dist/components/side-sheet/side-sheet.d.ts +0 -7
- package/dist/components/side-sheet/types.d.ts +0 -91
- package/dist/components/slider/slider.d.ts +0 -7
- package/dist/components/slider/types.d.ts +0 -218
- package/dist/components/snackbar/snackbar.d.ts +0 -9
- package/dist/components/snackbar/types.d.ts +0 -180
- package/dist/components/split-button/split-button.d.ts +0 -7
- package/dist/components/switch/switch.d.ts +0 -7
- package/dist/components/switch/types.d.ts +0 -171
- package/dist/components/tabs/indicator.d.ts +0 -44
- package/dist/components/tabs/tab.d.ts +0 -7
- package/dist/components/tabs/tabs.d.ts +0 -7
- package/dist/components/tabs/types.d.ts +0 -304
- package/dist/components/tabs/utils.d.ts +0 -46
- package/dist/components/text-field/features/trailing-icon.d.ts +0 -54
- package/dist/components/text-field/text-field.d.ts +0 -7
- package/dist/components/text-field/types.d.ts +0 -261
- package/dist/components/timepicker/timepicker.d.ts +0 -3
- package/dist/components/timepicker/types.d.ts +0 -258
- package/dist/components/toolbar/toolbar.d.ts +0 -8
- package/dist/components/toolbar/types.d.ts +0 -129
- package/dist/components/tooltip/tooltip.d.ts +0 -7
- package/dist/components/tooltip/types.d.ts +0 -137
- package/dist/components/top-app-bar/top-app-bar.d.ts +0 -7
- package/dist/components/top-app-bar/types.d.ts +0 -80
- package/dist/core/canvas/animation.d.ts +0 -20
- package/dist/core/canvas/drawing.d.ts +0 -67
- package/dist/core/canvas/resize.d.ts +0 -8
- package/dist/core/canvas/utils.d.ts +0 -62
- package/dist/core/compose/base.d.ts +0 -18
- package/dist/core/compose/features/badge.d.ts +0 -27
- package/dist/core/compose/features/checkable.d.ts +0 -33
- package/dist/core/compose/features/debounce.d.ts +0 -45
- package/dist/core/compose/features/disabled.d.ts +0 -26
- package/dist/core/compose/features/events.d.ts +0 -31
- package/dist/core/compose/features/index.d.ts +0 -34
- package/dist/core/compose/features/input.d.ts +0 -54
- package/dist/core/compose/features/lifecycle.d.ts +0 -41
- package/dist/core/compose/features/position.d.ts +0 -36
- package/dist/core/compose/features/ripple.d.ts +0 -35
- package/dist/core/compose/features/size.d.ts +0 -12
- package/dist/core/compose/features/style.d.ts +0 -11
- package/dist/core/compose/features/textinput.d.ts +0 -66
- package/dist/core/compose/features/textlabel.d.ts +0 -34
- package/dist/core/compose/features/throttle.d.ts +0 -38
- package/dist/core/compose/features/track.d.ts +0 -24
- package/dist/core/compose/features/variant.d.ts +0 -12
- package/dist/core/compose/features/withEvents.d.ts +0 -27
- package/dist/core/compose/pipe.d.ts +0 -55
- package/dist/core/compose/utils/type-guards.d.ts +0 -17
- package/dist/core/config.d.ts +0 -72
- package/dist/core/dom/attributes.d.ts +0 -34
- package/dist/core/dom/classes.d.ts +0 -29
- package/dist/core/dom/events.d.ts +0 -43
- package/dist/core/dom/focus.d.ts +0 -15
- package/dist/core/dom/html.d.ts +0 -16
- package/dist/core/dom/layer.d.ts +0 -57
- package/dist/core/dom/roving.d.ts +0 -18
- package/dist/core/shapes/cubic.d.ts +0 -45
- package/dist/core/shapes/material.d.ts +0 -131
- package/dist/core/shapes/polygon.d.ts +0 -38
- package/dist/core/state/events.d.ts +0 -25
- package/dist/core/state/store.d.ts +0 -60
- package/dist/core/theme/shape.d.ts +0 -5
- package/dist/core/theme/tokens.d.ts +0 -67
- package/dist/core/utils/background.d.ts +0 -13
- package/dist/core/utils/color.d.ts +0 -6
- package/dist/core/utils/object.d.ts +0 -11
- package/dist/core/utils/performance.d.ts +0 -32
- package/dist/core/utils/theme.d.ts +0 -17
- package/dist/core/utils/url.d.ts +0 -6
- package/dist/elements/badge.d.ts +0 -57
- package/dist/elements/bottom-app-bar.d.ts +0 -66
- package/dist/elements/bottom-sheet.d.ts +0 -107
- package/dist/elements/button-group.d.ts +0 -142
- package/dist/elements/button.d.ts +0 -101
- package/dist/elements/card.d.ts +0 -69
- package/dist/elements/carousel.d.ts +0 -119
- package/dist/elements/checkbox.d.ts +0 -97
- package/dist/elements/chips.d.ts +0 -126
- package/dist/elements/datepicker.d.ts +0 -131
- package/dist/elements/dialog.d.ts +0 -101
- package/dist/elements/divider.d.ts +0 -52
- package/dist/elements/drawer.d.ts +0 -119
- package/dist/elements/extended-fab.d.ts +0 -97
- package/dist/elements/fab-menu.d.ts +0 -102
- package/dist/elements/fab.d.ts +0 -71
- package/dist/elements/list.d.ts +0 -127
- package/dist/elements/loading-indicator.d.ts +0 -47
- package/dist/elements/menu.d.ts +0 -144
- package/dist/elements/navigation-bar.d.ts +0 -104
- package/dist/elements/navigation-rail.d.ts +0 -145
- package/dist/elements/progress.d.ts +0 -87
- package/dist/elements/radios.d.ts +0 -92
- package/dist/elements/search.d.ts +0 -202
- package/dist/elements/select.d.ts +0 -119
- package/dist/elements/side-sheet.d.ts +0 -86
- package/dist/elements/slider.d.ts +0 -160
- package/dist/elements/snackbar.d.ts +0 -87
- package/dist/elements/split-button.d.ts +0 -87
- package/dist/elements/switch.d.ts +0 -98
- package/dist/elements/tabs.d.ts +0 -76
- package/dist/elements/text-field.d.ts +0 -170
- package/dist/elements/timepicker.d.ts +0 -148
- package/dist/elements/toolbar.d.ts +0 -98
- package/dist/elements/tooltip.d.ts +0 -75
- package/dist/elements/top-app-bar.d.ts +0 -60
- package/dist/react/badge.d.ts +0 -4
- package/dist/react/bottom-app-bar.d.ts +0 -5
- package/dist/react/bottom-sheet.d.ts +0 -4
- package/dist/react/button-group-item.d.ts +0 -3
- package/dist/react/button-group.d.ts +0 -7
- package/dist/react/button.d.ts +0 -5
- package/dist/react/card.d.ts +0 -4
- package/dist/react/carousel-item.d.ts +0 -3
- package/dist/react/carousel.d.ts +0 -4
- package/dist/react/checkbox.d.ts +0 -4
- package/dist/react/chip.d.ts +0 -3
- package/dist/react/chips.d.ts +0 -4
- package/dist/react/datepicker.d.ts +0 -4
- package/dist/react/dialog.d.ts +0 -7
- package/dist/react/divider.d.ts +0 -4
- package/dist/react/drawer-item.d.ts +0 -3
- package/dist/react/drawer.d.ts +0 -4
- package/dist/react/extended-fab.d.ts +0 -4
- package/dist/react/fab-menu-item.d.ts +0 -3
- package/dist/react/fab-menu.d.ts +0 -6
- package/dist/react/fab.d.ts +0 -4
- package/dist/react/icon-button.d.ts +0 -4
- package/dist/react/list-item.d.ts +0 -3
- package/dist/react/list.d.ts +0 -4
- package/dist/react/loading-indicator.d.ts +0 -4
- package/dist/react/menu-item.d.ts +0 -3
- package/dist/react/menu.d.ts +0 -4
- package/dist/react/navigation-bar-item.d.ts +0 -3
- package/dist/react/navigation-bar.d.ts +0 -4
- package/dist/react/navigation-rail-item.d.ts +0 -3
- package/dist/react/navigation-rail.d.ts +0 -4
- package/dist/react/progress.d.ts +0 -4
- package/dist/react/radio.d.ts +0 -3
- package/dist/react/radios.d.ts +0 -4
- package/dist/react/search-suggestion.d.ts +0 -3
- package/dist/react/search.d.ts +0 -4
- package/dist/react/select-option.d.ts +0 -3
- package/dist/react/select.d.ts +0 -6
- package/dist/react/side-sheet.d.ts +0 -4
- package/dist/react/slider.d.ts +0 -4
- package/dist/react/snackbar.d.ts +0 -7
- package/dist/react/split-button.d.ts +0 -7
- package/dist/react/switch.d.ts +0 -4
- package/dist/react/tab.d.ts +0 -3
- package/dist/react/tabs.d.ts +0 -7
- package/dist/react/text-field.d.ts +0 -4
- package/dist/react/timepicker.d.ts +0 -4
- package/dist/react/toolbar.d.ts +0 -5
- package/dist/react/tooltip.d.ts +0 -4
- package/dist/react/top-app-bar.d.ts +0 -4
- package/dist/solid/badge.d.ts +0 -4
- package/dist/solid/bottom-app-bar.d.ts +0 -5
- package/dist/solid/bottom-sheet.d.ts +0 -4
- package/dist/solid/button-group-item.d.ts +0 -3
- package/dist/solid/button-group.d.ts +0 -7
- package/dist/solid/button.d.ts +0 -5
- package/dist/solid/card.d.ts +0 -4
- package/dist/solid/carousel-item.d.ts +0 -3
- package/dist/solid/carousel.d.ts +0 -4
- package/dist/solid/checkbox.d.ts +0 -4
- package/dist/solid/chip.d.ts +0 -3
- package/dist/solid/chips.d.ts +0 -4
- package/dist/solid/datepicker.d.ts +0 -4
- package/dist/solid/dialog.d.ts +0 -7
- package/dist/solid/divider.d.ts +0 -4
- package/dist/solid/drawer-item.d.ts +0 -3
- package/dist/solid/drawer.d.ts +0 -4
- package/dist/solid/extended-fab.d.ts +0 -4
- package/dist/solid/fab-menu-item.d.ts +0 -3
- package/dist/solid/fab-menu.d.ts +0 -6
- package/dist/solid/fab.d.ts +0 -4
- package/dist/solid/icon-button.d.ts +0 -4
- package/dist/solid/list-item.d.ts +0 -3
- package/dist/solid/list.d.ts +0 -4
- package/dist/solid/loading-indicator.d.ts +0 -4
- package/dist/solid/menu-item.d.ts +0 -3
- package/dist/solid/menu.d.ts +0 -4
- package/dist/solid/navigation-bar-item.d.ts +0 -3
- package/dist/solid/navigation-bar.d.ts +0 -4
- package/dist/solid/navigation-rail-item.d.ts +0 -3
- package/dist/solid/navigation-rail.d.ts +0 -4
- package/dist/solid/progress.d.ts +0 -4
- package/dist/solid/radio.d.ts +0 -3
- package/dist/solid/radios.d.ts +0 -4
- package/dist/solid/search-suggestion.d.ts +0 -3
- package/dist/solid/search.d.ts +0 -4
- package/dist/solid/select-option.d.ts +0 -3
- package/dist/solid/select.d.ts +0 -6
- package/dist/solid/side-sheet.d.ts +0 -4
- package/dist/solid/slider.d.ts +0 -4
- package/dist/solid/snackbar.d.ts +0 -7
- package/dist/solid/split-button.d.ts +0 -7
- package/dist/solid/switch.d.ts +0 -4
- package/dist/solid/tab.d.ts +0 -3
- package/dist/solid/tabs.d.ts +0 -7
- package/dist/solid/text-field.d.ts +0 -4
- package/dist/solid/timepicker.d.ts +0 -4
- package/dist/solid/toolbar.d.ts +0 -5
- package/dist/solid/tooltip.d.ts +0 -4
- package/dist/solid/top-app-bar.d.ts +0 -4
- package/dist/vue/badge.d.ts +0 -4
- package/dist/vue/bottom-app-bar.d.ts +0 -5
- package/dist/vue/bottom-sheet.d.ts +0 -4
- package/dist/vue/button-group-item.d.ts +0 -3
- package/dist/vue/button-group.d.ts +0 -7
- package/dist/vue/button.d.ts +0 -5
- package/dist/vue/card.d.ts +0 -4
- package/dist/vue/carousel-item.d.ts +0 -3
- package/dist/vue/carousel.d.ts +0 -4
- package/dist/vue/checkbox.d.ts +0 -4
- package/dist/vue/chip.d.ts +0 -3
- package/dist/vue/chips.d.ts +0 -4
- package/dist/vue/create.d.ts +0 -73
- package/dist/vue/datepicker.d.ts +0 -4
- package/dist/vue/dialog.d.ts +0 -7
- package/dist/vue/divider.d.ts +0 -4
- package/dist/vue/drawer-item.d.ts +0 -3
- package/dist/vue/drawer.d.ts +0 -4
- package/dist/vue/extended-fab.d.ts +0 -4
- package/dist/vue/fab-menu-item.d.ts +0 -3
- package/dist/vue/fab-menu.d.ts +0 -6
- package/dist/vue/fab.d.ts +0 -4
- package/dist/vue/icon-button.d.ts +0 -4
- package/dist/vue/list-item.d.ts +0 -3
- package/dist/vue/list.d.ts +0 -4
- package/dist/vue/loading-indicator.d.ts +0 -4
- package/dist/vue/menu-item.d.ts +0 -3
- package/dist/vue/menu.d.ts +0 -4
- package/dist/vue/navigation-bar-item.d.ts +0 -3
- package/dist/vue/navigation-bar.d.ts +0 -4
- package/dist/vue/navigation-rail-item.d.ts +0 -3
- package/dist/vue/navigation-rail.d.ts +0 -4
- package/dist/vue/progress.d.ts +0 -4
- package/dist/vue/radio.d.ts +0 -3
- package/dist/vue/radios.d.ts +0 -4
- package/dist/vue/search-suggestion.d.ts +0 -3
- package/dist/vue/search.d.ts +0 -4
- package/dist/vue/select-option.d.ts +0 -3
- package/dist/vue/select.d.ts +0 -6
- package/dist/vue/side-sheet.d.ts +0 -4
- package/dist/vue/slider.d.ts +0 -4
- package/dist/vue/snackbar.d.ts +0 -7
- package/dist/vue/split-button.d.ts +0 -7
- package/dist/vue/switch.d.ts +0 -4
- package/dist/vue/tab.d.ts +0 -3
- package/dist/vue/tabs.d.ts +0 -7
- package/dist/vue/text-field.d.ts +0 -4
- package/dist/vue/timepicker.d.ts +0 -4
- package/dist/vue/toolbar.d.ts +0 -5
- package/dist/vue/tooltip.d.ts +0 -4
- package/dist/vue/top-app-bar.d.ts +0 -4
package/dist/elements/index.d.ts
CHANGED
|
@@ -1,99 +1,43 @@
|
|
|
1
|
-
|
|
2
|
-
import type {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
export { extendedFabElement, defineExtendedFab } from "./extended-fab.js";
|
|
40
|
-
export type { ExtendedFabSpec, ExtendedFabElement } from "./extended-fab.js";
|
|
41
|
-
export { checkboxElement, defineCheckbox } from "./checkbox.js";
|
|
42
|
-
export type { CheckboxSpec, CheckboxElement } from "./checkbox.js";
|
|
43
|
-
export { sliderElement, defineSlider } from "./slider.js";
|
|
44
|
-
export type { SliderSpec, SliderElement } from "./slider.js";
|
|
45
|
-
export { textFieldElement, defineTextField } from "./text-field.js";
|
|
46
|
-
export type { TextFieldSpec, TextFieldElement, TextFieldElementComponent, } from "./text-field.js";
|
|
47
|
-
export { radiosElement, radioDeclaration, defineRadios } from "./radios.js";
|
|
48
|
-
export type { RadiosSpec, RadiosElement, RadioAttributes } from "./radios.js";
|
|
49
|
-
export { navigationBarElement, navigationBarItemDeclaration, defineNavigationBar } from "./navigation-bar.js";
|
|
50
|
-
export type { NavigationBarSpec, NavigationBarElement, NavigationBarItemAttributes } from "./navigation-bar.js";
|
|
51
|
-
export { navigationRailElement, navigationRailItemDeclaration, defineNavigationRail } from "./navigation-rail.js";
|
|
52
|
-
export type { NavigationRailSpec, NavigationRailElement, NavigationRailItemAttributes } from "./navigation-rail.js";
|
|
53
|
-
export { drawerElement, drawerItemDeclaration, defineDrawer } from "./drawer.js";
|
|
54
|
-
export type { DrawerSpec, DrawerElement, DrawerItemAttributes } from "./drawer.js";
|
|
55
|
-
export { topAppBarElement, defineTopAppBar } from "./top-app-bar.js";
|
|
56
|
-
export type { TopAppBarSpec, TopAppBarElement } from "./top-app-bar.js";
|
|
57
|
-
export { bottomAppBarElement, defineBottomAppBar } from "./bottom-app-bar.js";
|
|
58
|
-
export type { BottomAppBarSpec, BottomAppBarElement } from "./bottom-app-bar.js";
|
|
59
|
-
export { buttonGroupElement, buttonGroupItemDeclaration, defineButtonGroup } from "./button-group.js";
|
|
60
|
-
export type { ButtonGroupSpec, ButtonGroupElement, ButtonGroupItemAttributes, ButtonGroupValue } from "./button-group.js";
|
|
61
|
-
export { chipsElement, chipDeclaration, defineChips } from "./chips.js";
|
|
62
|
-
export type { ChipsSpec, ChipsElement, ChipAttributes, ChipsValue } from "./chips.js";
|
|
63
|
-
export { listElement, listItemDeclaration, defineList } from "./list.js";
|
|
64
|
-
export type { ListSpec, ListElement, ListItemAttributes } from "./list.js";
|
|
65
|
-
export { cardElement, defineCard } from "./card.js";
|
|
66
|
-
export type { CardSpec, CardElement } from "./card.js";
|
|
67
|
-
export { carouselElement, carouselItemDeclaration, defineCarousel } from "./carousel.js";
|
|
68
|
-
export type { CarouselSpec, CarouselElement, CarouselItemAttributes } from "./carousel.js";
|
|
69
|
-
export { menuElement, menuItemDeclaration, defineMenu } from "./menu.js";
|
|
70
|
-
export type { MenuSpec, MenuElement, MenuItemAttributes, MenuAnchor, MenuElementComponent } from "./menu.js";
|
|
71
|
-
export { fabMenuElement, fabMenuItemDeclaration, defineFabMenu } from "./fab-menu.js";
|
|
72
|
-
export type { FabMenuSpec, FabMenuElement, FabMenuItemAttributes, FabMenuElementComponent } from "./fab-menu.js";
|
|
73
|
-
export { selectElement, selectOptionDeclaration, defineSelect } from "./select.js";
|
|
74
|
-
export type { SelectSpec, SelectElement, SelectOptionAttributes } from "./select.js";
|
|
75
|
-
export { splitButtonElement, defineSplitButton } from "./split-button.js";
|
|
76
|
-
export type { SplitButtonSpec, SplitButtonElement, SplitButtonElementComponent, SplitButtonElementEventType } from "./split-button.js";
|
|
77
|
-
export { tooltipElement, defineTooltip } from "./tooltip.js";
|
|
78
|
-
export type { TooltipSpec, TooltipElement } from "./tooltip.js";
|
|
79
|
-
export { toolbarElement, defineToolbar } from "./toolbar.js";
|
|
80
|
-
export type { ToolbarSpec, ToolbarElement } from "./toolbar.js";
|
|
81
|
-
export { snackbarElement, defineSnackbar } from "./snackbar.js";
|
|
82
|
-
export type { SnackbarSpec, SnackbarElement } from "./snackbar.js";
|
|
83
|
-
export { dialogElement, defineDialog } from "./dialog.js";
|
|
84
|
-
export type { DialogSpec, DialogElement, DialogElementComponent } from "./dialog.js";
|
|
85
|
-
export { bottomSheetElement, defineBottomSheet } from "./bottom-sheet.js";
|
|
86
|
-
export type { BottomSheetSpec, BottomSheetElement, BottomSheetElementComponent } from "./bottom-sheet.js";
|
|
87
|
-
export { sideSheetElement, defineSideSheet } from "./side-sheet.js";
|
|
88
|
-
export type { SideSheetSpec, SideSheetElement, SideSheetElementComponent } from "./side-sheet.js";
|
|
89
|
-
export { datepickerElement, defineDatepicker } from "./datepicker.js";
|
|
90
|
-
export type { DatepickerSpec, DatepickerElement, DatepickerElementComponent } from "./datepicker.js";
|
|
91
|
-
export { timepickerElement, defineTimepicker } from "./timepicker.js";
|
|
92
|
-
export type { TimepickerSpec, TimepickerElement, TimepickerElementComponent } from "./timepicker.js";
|
|
93
|
-
export { searchElement, searchSuggestionDeclaration, defineSearch } from "./search.js";
|
|
94
|
-
export type { SearchSpec, SearchElement, SearchSuggestionAttributes, SearchElementComponent, SearchElementEvents } from "./search.js";
|
|
1
|
+
import type { BadgeComponent } from "../components/badge/index.js";
|
|
2
|
+
import type { BottomAppBarComponent } from "../components/bottom-app-bar/index.js";
|
|
3
|
+
import type { BottomSheetComponent, BottomSheetEventHandlers } from "../components/bottom-sheet/index.js";
|
|
4
|
+
import type { ButtonGroupComponent } from "../components/button-group/index.js";
|
|
5
|
+
import type { ButtonComponent } from "../components/button/types.js";
|
|
6
|
+
import type { CardComponent } from "../components/card/index.js";
|
|
7
|
+
import type { CarouselComponent } from "../components/carousel/index.js";
|
|
8
|
+
import type { CheckboxComponent } from "../components/checkbox/index.js";
|
|
9
|
+
import type { ChipsComponent } from "../components/chips/index.js";
|
|
10
|
+
import type { DatePickerComponent } from "../components/datepicker/index.js";
|
|
11
|
+
import type { DialogComponent } from "../components/dialog/index.js";
|
|
12
|
+
import type { DividerComponent } from "../components/divider/index.js";
|
|
13
|
+
import type { DrawerComponent } from "../components/drawer/index.js";
|
|
14
|
+
import type { ExtendedFabComponent } from "../components/extended-fab/index.js";
|
|
15
|
+
import type { FabMenuComponent } from "../components/fab-menu/index.js";
|
|
16
|
+
import type { FabComponent } from "../components/fab/index.js";
|
|
17
|
+
import type { ListComponent, ListItem } from "../components/list/index.js";
|
|
18
|
+
import type { LoadingIndicatorComponent } from "../components/loading-indicator/index.js";
|
|
19
|
+
import type { MenuComponent, MenuContent } from "../components/menu/types.js";
|
|
20
|
+
import type { NavigationBarComponent } from "../components/navigation-bar/index.js";
|
|
21
|
+
import type { NavigationRailComponent, NavigationRailItemConfig } from "../components/navigation-rail/index.js";
|
|
22
|
+
import type { ProgressComponent } from "../components/progress/types.js";
|
|
23
|
+
import type { RadiosComponent } from "../components/radios/index.js";
|
|
24
|
+
import type { SearchComponent, SearchEvents } from "../components/search/index.js";
|
|
25
|
+
import type { SelectComponent } from "../components/select/index.js";
|
|
26
|
+
import type { SideSheetComponent } from "../components/side-sheet/index.js";
|
|
27
|
+
import type { SliderComponent } from "../components/slider/index.js";
|
|
28
|
+
import type { SnackbarComponent } from "../components/snackbar/index.js";
|
|
29
|
+
import type { SplitButtonComponent, SplitButtonEvent, SplitButtonEventType } from "../components/split-button/types.js";
|
|
30
|
+
import type { SwitchComponent } from "../components/switch/index.js";
|
|
31
|
+
import type { TabsComponent } from "../components/tabs/index.js";
|
|
32
|
+
import type { TextFieldComponent } from "../components/text-field/index.js";
|
|
33
|
+
import type { TimePickerComponent, TimePickerEvents } from "../components/timepicker/index.js";
|
|
34
|
+
import type { ToolbarComponent } from "../components/toolbar/index.js";
|
|
35
|
+
import type { TooltipComponent } from "../components/tooltip/index.js";
|
|
36
|
+
import type { TopAppBarComponent } from "../components/top-app-bar/index.js";
|
|
37
|
+
import type { AttributeValue, Config, DefineOptions, ElementAttributes, ElementHost, ElementInstance } from "./define.js";
|
|
38
|
+
|
|
95
39
|
/** Every element, by name. */
|
|
96
|
-
|
|
40
|
+
declare const elements: {
|
|
97
41
|
readonly button: import("./define.js").ElementDefinition<import("../index.js").ButtonComponent>;
|
|
98
42
|
readonly switch: import("./define.js").ElementDefinition<import("../index.js").SwitchComponent>;
|
|
99
43
|
readonly tabs: import("./define.js").ElementDefinition<import("../index.js").TabsComponent>;
|
|
@@ -106,7 +50,7 @@ export declare const elements: {
|
|
|
106
50
|
readonly extendedFab: import("./define.js").ElementDefinition<import("../index.js").ExtendedFabComponent>;
|
|
107
51
|
readonly checkbox: import("./define.js").ElementDefinition<import("../index.js").CheckboxComponent>;
|
|
108
52
|
readonly slider: import("./define.js").ElementDefinition<import("../index.js").SliderComponent>;
|
|
109
|
-
readonly textField: import("./define.js").ElementDefinition<
|
|
53
|
+
readonly textField: import("./define.js").ElementDefinition<TextFieldElementComponent>;
|
|
110
54
|
readonly radios: import("./define.js").ElementDefinition<import("../index.js").RadiosComponent>;
|
|
111
55
|
readonly navigationBar: import("./define.js").ElementDefinition<import("../index.js").NavigationBarComponent>;
|
|
112
56
|
readonly navigationRail: import("./define.js").ElementDefinition<import("../index.js").NavigationRailComponent>;
|
|
@@ -118,22 +62,23 @@ export declare const elements: {
|
|
|
118
62
|
readonly list: import("./define.js").ElementDefinition<import("../index.js").ListComponent<import("../index.js").ListItem>>;
|
|
119
63
|
readonly card: import("./define.js").ElementDefinition<import("../components/card/index.js").CardComponent>;
|
|
120
64
|
readonly carousel: import("./define.js").ElementDefinition<import("../index.js").CarouselComponent>;
|
|
121
|
-
readonly menu: import("./define.js").ElementDefinition<
|
|
122
|
-
readonly fabMenu: import("./define.js").ElementDefinition<
|
|
65
|
+
readonly menu: import("./define.js").ElementDefinition<MenuElementComponent>;
|
|
66
|
+
readonly fabMenu: import("./define.js").ElementDefinition<FabMenuElementComponent>;
|
|
123
67
|
readonly select: import("./define.js").ElementDefinition<import("../index.js").SelectComponent>;
|
|
124
|
-
readonly splitButton: import("./define.js").ElementDefinition<
|
|
68
|
+
readonly splitButton: import("./define.js").ElementDefinition<SplitButtonElementComponent>;
|
|
125
69
|
readonly tooltip: import("./define.js").ElementDefinition<import("../index.js").TooltipComponent>;
|
|
126
70
|
readonly toolbar: import("./define.js").ElementDefinition<import("../index.js").ToolbarComponent>;
|
|
127
71
|
readonly snackbar: import("./define.js").ElementDefinition<import("../index.js").SnackbarComponent>;
|
|
128
|
-
readonly dialog: import("./define.js").ElementDefinition<
|
|
129
|
-
readonly bottomSheet: import("./define.js").ElementDefinition<
|
|
130
|
-
readonly sideSheet: import("./define.js").ElementDefinition<
|
|
131
|
-
readonly datepicker: import("./define.js").ElementDefinition<
|
|
132
|
-
readonly timepicker: import("./define.js").ElementDefinition<
|
|
133
|
-
readonly search: import("./define.js").ElementDefinition<
|
|
72
|
+
readonly dialog: import("./define.js").ElementDefinition<DialogElementComponent>;
|
|
73
|
+
readonly bottomSheet: import("./define.js").ElementDefinition<BottomSheetElementComponent>;
|
|
74
|
+
readonly sideSheet: import("./define.js").ElementDefinition<SideSheetElementComponent>;
|
|
75
|
+
readonly datepicker: import("./define.js").ElementDefinition<DatepickerElementComponent>;
|
|
76
|
+
readonly timepicker: import("./define.js").ElementDefinition<TimepickerElementComponent>;
|
|
77
|
+
readonly search: import("./define.js").ElementDefinition<SearchElementComponent>;
|
|
134
78
|
};
|
|
79
|
+
|
|
135
80
|
/** Declaration children, which render nothing and are read by their parent. */
|
|
136
|
-
|
|
81
|
+
declare const declarations: {
|
|
137
82
|
readonly tab: typeof tabDeclaration;
|
|
138
83
|
readonly radio: typeof radioDeclaration;
|
|
139
84
|
readonly navigationBarItem: typeof navigationBarItemDeclaration;
|
|
@@ -148,5 +93,3927 @@ export declare const declarations: {
|
|
|
148
93
|
readonly selectOption: typeof selectOptionDeclaration;
|
|
149
94
|
readonly searchSuggestion: typeof searchSuggestionDeclaration;
|
|
150
95
|
};
|
|
96
|
+
|
|
151
97
|
/** Registers every element. */
|
|
152
|
-
|
|
98
|
+
declare const defineAll: (options?: DefineOptions) => void;
|
|
99
|
+
|
|
100
|
+
declare const sliderSpec: {
|
|
101
|
+
name: string;
|
|
102
|
+
create: (config: import("./define.js").Config) => SliderComponent;
|
|
103
|
+
styles: string[];
|
|
104
|
+
hostStyles: string;
|
|
105
|
+
attributes: {
|
|
106
|
+
value: {
|
|
107
|
+
type: "number";
|
|
108
|
+
config: string;
|
|
109
|
+
update: (c: SliderComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
110
|
+
};
|
|
111
|
+
"second-value": {
|
|
112
|
+
type: "number";
|
|
113
|
+
config: string;
|
|
114
|
+
update: (c: SliderComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
115
|
+
};
|
|
116
|
+
min: {
|
|
117
|
+
type: "number";
|
|
118
|
+
config: string;
|
|
119
|
+
update: (c: SliderComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
120
|
+
};
|
|
121
|
+
max: {
|
|
122
|
+
type: "number";
|
|
123
|
+
config: string;
|
|
124
|
+
update: (c: SliderComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
125
|
+
};
|
|
126
|
+
step: {
|
|
127
|
+
type: "number";
|
|
128
|
+
config: string;
|
|
129
|
+
update: (c: SliderComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
130
|
+
};
|
|
131
|
+
disabled: {
|
|
132
|
+
type: "boolean";
|
|
133
|
+
config: string;
|
|
134
|
+
update: (c: SliderComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
135
|
+
};
|
|
136
|
+
range: {
|
|
137
|
+
type: "boolean";
|
|
138
|
+
config: string;
|
|
139
|
+
};
|
|
140
|
+
centered: {
|
|
141
|
+
type: "boolean";
|
|
142
|
+
config: string;
|
|
143
|
+
};
|
|
144
|
+
ticks: {
|
|
145
|
+
type: "boolean";
|
|
146
|
+
config: string;
|
|
147
|
+
update: (c: SliderComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
148
|
+
};
|
|
149
|
+
"show-value": {
|
|
150
|
+
type: "boolean";
|
|
151
|
+
config: string;
|
|
152
|
+
update: (c: SliderComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
153
|
+
};
|
|
154
|
+
color: {
|
|
155
|
+
type: "string";
|
|
156
|
+
config: string;
|
|
157
|
+
update: (c: SliderComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
158
|
+
};
|
|
159
|
+
size: {
|
|
160
|
+
type: "string";
|
|
161
|
+
config: string;
|
|
162
|
+
update: (c: SliderComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
163
|
+
};
|
|
164
|
+
orientation: {
|
|
165
|
+
type: "string";
|
|
166
|
+
config: string;
|
|
167
|
+
};
|
|
168
|
+
"top-to-bottom": {
|
|
169
|
+
type: "boolean";
|
|
170
|
+
config: string;
|
|
171
|
+
};
|
|
172
|
+
label: {
|
|
173
|
+
type: "string";
|
|
174
|
+
config: string;
|
|
175
|
+
};
|
|
176
|
+
"label-position": {
|
|
177
|
+
type: "string";
|
|
178
|
+
config: string;
|
|
179
|
+
};
|
|
180
|
+
/** Markup (HTML). */
|
|
181
|
+
icon: {
|
|
182
|
+
type: "string";
|
|
183
|
+
config: string;
|
|
184
|
+
};
|
|
185
|
+
"icon-position": {
|
|
186
|
+
type: "string";
|
|
187
|
+
config: string;
|
|
188
|
+
};
|
|
189
|
+
/** Markup (HTML). */
|
|
190
|
+
"inset-icon": {
|
|
191
|
+
type: "string";
|
|
192
|
+
config: string;
|
|
193
|
+
update: (c: SliderComponent, _v: import("./define.js").AttributeValue, host: HTMLElement) => undefined;
|
|
194
|
+
};
|
|
195
|
+
/** Markup (HTML). */
|
|
196
|
+
"inset-icon-at-min": {
|
|
197
|
+
type: "string";
|
|
198
|
+
config: string;
|
|
199
|
+
update: (c: SliderComponent, _v: import("./define.js").AttributeValue, host: HTMLElement) => undefined;
|
|
200
|
+
};
|
|
201
|
+
"aria-label": {
|
|
202
|
+
type: "string";
|
|
203
|
+
update: (c: SliderComponent, _v: import("./define.js").AttributeValue, host: HTMLElement) => void;
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
properties: {
|
|
207
|
+
value: {
|
|
208
|
+
get: (c: SliderComponent) => number;
|
|
209
|
+
set: (c: SliderComponent, v: unknown) => void;
|
|
210
|
+
config: string;
|
|
211
|
+
};
|
|
212
|
+
secondValue: {
|
|
213
|
+
get: (c: SliderComponent) => number | null;
|
|
214
|
+
set: (c: SliderComponent, v: unknown) => void;
|
|
215
|
+
};
|
|
216
|
+
};
|
|
217
|
+
model: "value";
|
|
218
|
+
defaults: readonly [
|
|
219
|
+
"secondValue"
|
|
220
|
+
];
|
|
221
|
+
events: {
|
|
222
|
+
input: {
|
|
223
|
+
detail: (payload: unknown) => {
|
|
224
|
+
value: number;
|
|
225
|
+
secondValue?: number;
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
change: {
|
|
229
|
+
detail: (payload: unknown) => {
|
|
230
|
+
value: number;
|
|
231
|
+
secondValue?: number;
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
form: {
|
|
236
|
+
value: (c: SliderComponent, host: HTMLElement) => string | FormData | null;
|
|
237
|
+
events: string[];
|
|
238
|
+
state: (c: SliderComponent) => string;
|
|
239
|
+
restore: (c: SliderComponent, state: string) => void;
|
|
240
|
+
disable: (c: SliderComponent, disabled: boolean) => undefined;
|
|
241
|
+
};
|
|
242
|
+
setup: (host: import("./define.js").ElementHost<SliderComponent>, component: SliderComponent) => void;
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
declare const sliderElement: import("./define.js").ElementDefinition<SliderComponent>;
|
|
246
|
+
|
|
247
|
+
type SliderSpec = typeof sliderSpec;
|
|
248
|
+
|
|
249
|
+
/** `<m-slider>` as a ref or a query returns it. */
|
|
250
|
+
type SliderElement = ElementInstance<SliderSpec, SliderComponent>;
|
|
251
|
+
|
|
252
|
+
/** Registers `<m-slider>` (or `<prefix-slider>`). */
|
|
253
|
+
declare const defineSlider: (options?: DefineOptions) => string;
|
|
254
|
+
|
|
255
|
+
declare global {
|
|
256
|
+
/** `document.querySelector("m-…")` and `createElement` return the element's type (the default prefix). */
|
|
257
|
+
interface HTMLElementTagNameMap {
|
|
258
|
+
"m-slider": SliderElement;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
/** The text field, with the methods the element adds to it. */
|
|
263
|
+
type TextFieldElementComponent = TextFieldComponent & {
|
|
264
|
+
/** Selects the field's text. */
|
|
265
|
+
select: () => void;
|
|
266
|
+
};
|
|
267
|
+
|
|
268
|
+
declare const textFieldSpec: {
|
|
269
|
+
name: string;
|
|
270
|
+
create: (config: import("./define.js").Config) => TextFieldElementComponent;
|
|
271
|
+
styles: string[];
|
|
272
|
+
hostStyles: string;
|
|
273
|
+
attributes: {
|
|
274
|
+
variant: {
|
|
275
|
+
type: "string";
|
|
276
|
+
config: string;
|
|
277
|
+
update: (c: TextFieldElementComponent, v: AttributeValue) => undefined;
|
|
278
|
+
};
|
|
279
|
+
density: {
|
|
280
|
+
type: "string";
|
|
281
|
+
config: string;
|
|
282
|
+
update: (c: TextFieldElementComponent, v: AttributeValue) => undefined;
|
|
283
|
+
};
|
|
284
|
+
label: {
|
|
285
|
+
type: "string";
|
|
286
|
+
config: string;
|
|
287
|
+
};
|
|
288
|
+
type: {
|
|
289
|
+
type: "string";
|
|
290
|
+
config: string;
|
|
291
|
+
};
|
|
292
|
+
value: {
|
|
293
|
+
type: "string";
|
|
294
|
+
config: string;
|
|
295
|
+
update: (c: TextFieldElementComponent, v: AttributeValue) => void;
|
|
296
|
+
};
|
|
297
|
+
placeholder: {
|
|
298
|
+
type: "string";
|
|
299
|
+
config: string;
|
|
300
|
+
update: (c: TextFieldElementComponent, v: AttributeValue) => undefined;
|
|
301
|
+
};
|
|
302
|
+
"supporting-text": {
|
|
303
|
+
type: "string";
|
|
304
|
+
config: string;
|
|
305
|
+
update: (c: TextFieldElementComponent, v: AttributeValue) => undefined;
|
|
306
|
+
};
|
|
307
|
+
"prefix-text": {
|
|
308
|
+
type: "string";
|
|
309
|
+
config: string;
|
|
310
|
+
update: (c: TextFieldElementComponent, v: AttributeValue) => undefined;
|
|
311
|
+
};
|
|
312
|
+
"suffix-text": {
|
|
313
|
+
type: "string";
|
|
314
|
+
config: string;
|
|
315
|
+
update: (c: TextFieldElementComponent, v: AttributeValue) => undefined;
|
|
316
|
+
};
|
|
317
|
+
/** Markup (HTML). */
|
|
318
|
+
"leading-icon": {
|
|
319
|
+
type: "string";
|
|
320
|
+
config: string;
|
|
321
|
+
update: (c: TextFieldElementComponent, v: AttributeValue) => undefined;
|
|
322
|
+
};
|
|
323
|
+
/** Markup (HTML). */
|
|
324
|
+
"trailing-icon": {
|
|
325
|
+
type: "string";
|
|
326
|
+
config: string;
|
|
327
|
+
update: (c: TextFieldElementComponent, v: AttributeValue, host: HTMLElement) => undefined;
|
|
328
|
+
};
|
|
329
|
+
/** The trailing icon button's accessible name. */
|
|
330
|
+
"trailing-icon-label": {
|
|
331
|
+
type: "string";
|
|
332
|
+
config: string;
|
|
333
|
+
update: (c: TextFieldElementComponent, v: AttributeValue, host: HTMLElement) => void;
|
|
334
|
+
};
|
|
335
|
+
maxlength: {
|
|
336
|
+
type: "number";
|
|
337
|
+
config: string;
|
|
338
|
+
update: (c: TextFieldElementComponent, v: AttributeValue) => void;
|
|
339
|
+
};
|
|
340
|
+
pattern: {
|
|
341
|
+
type: "string";
|
|
342
|
+
config: string;
|
|
343
|
+
update: (c: TextFieldElementComponent, v: AttributeValue) => void;
|
|
344
|
+
};
|
|
345
|
+
required: {
|
|
346
|
+
type: "boolean";
|
|
347
|
+
config: string;
|
|
348
|
+
update: (c: TextFieldElementComponent, v: AttributeValue) => undefined;
|
|
349
|
+
};
|
|
350
|
+
readonly: {
|
|
351
|
+
type: "boolean";
|
|
352
|
+
config: string;
|
|
353
|
+
update: (c: TextFieldElementComponent, v: AttributeValue) => void;
|
|
354
|
+
};
|
|
355
|
+
disabled: {
|
|
356
|
+
type: "boolean";
|
|
357
|
+
config: string;
|
|
358
|
+
update: (c: TextFieldElementComponent, v: AttributeValue) => undefined;
|
|
359
|
+
};
|
|
360
|
+
error: {
|
|
361
|
+
type: "boolean";
|
|
362
|
+
config: string;
|
|
363
|
+
update: (c: TextFieldElementComponent, v: AttributeValue) => undefined;
|
|
364
|
+
};
|
|
365
|
+
autocomplete: {
|
|
366
|
+
type: "string";
|
|
367
|
+
config: string;
|
|
368
|
+
update: (c: TextFieldElementComponent, v: AttributeValue) => void;
|
|
369
|
+
};
|
|
370
|
+
inputmode: {
|
|
371
|
+
type: "string";
|
|
372
|
+
config: string;
|
|
373
|
+
update: (c: TextFieldElementComponent, v: AttributeValue) => void;
|
|
374
|
+
};
|
|
375
|
+
enterkeyhint: {
|
|
376
|
+
type: "string";
|
|
377
|
+
config: string;
|
|
378
|
+
update: (c: TextFieldElementComponent, v: AttributeValue) => void;
|
|
379
|
+
};
|
|
380
|
+
"aria-label": {
|
|
381
|
+
type: "string";
|
|
382
|
+
config: string;
|
|
383
|
+
update: (c: TextFieldElementComponent, v: AttributeValue) => void;
|
|
384
|
+
};
|
|
385
|
+
};
|
|
386
|
+
properties: {
|
|
387
|
+
value: {
|
|
388
|
+
get: (c: TextFieldElementComponent) => string;
|
|
389
|
+
set: (c: TextFieldElementComponent, v: unknown) => undefined;
|
|
390
|
+
};
|
|
391
|
+
};
|
|
392
|
+
methods: readonly [
|
|
393
|
+
"select",
|
|
394
|
+
"setError"
|
|
395
|
+
];
|
|
396
|
+
model: "value";
|
|
397
|
+
events: {
|
|
398
|
+
input: {
|
|
399
|
+
detail: (payload: unknown) => {
|
|
400
|
+
value: string;
|
|
401
|
+
};
|
|
402
|
+
};
|
|
403
|
+
change: {
|
|
404
|
+
detail: (payload: unknown) => {
|
|
405
|
+
value: string;
|
|
406
|
+
};
|
|
407
|
+
};
|
|
408
|
+
trailing: {
|
|
409
|
+
detail: (payload: unknown) => {
|
|
410
|
+
value: string;
|
|
411
|
+
event: MouseEvent;
|
|
412
|
+
};
|
|
413
|
+
state: true;
|
|
414
|
+
};
|
|
415
|
+
};
|
|
416
|
+
form: {
|
|
417
|
+
value: (c: TextFieldElementComponent) => string;
|
|
418
|
+
control: (c: TextFieldElementComponent) => HTMLInputElement | HTMLTextAreaElement;
|
|
419
|
+
events: string[];
|
|
420
|
+
activate: (c: TextFieldElementComponent) => void;
|
|
421
|
+
state: (c: TextFieldElementComponent) => string;
|
|
422
|
+
restore: (c: TextFieldElementComponent, state: string) => undefined;
|
|
423
|
+
disable: (c: TextFieldElementComponent, disabled: boolean) => undefined;
|
|
424
|
+
};
|
|
425
|
+
setup: (_host: import("./define.js").ElementHost<TextFieldElementComponent>, c: TextFieldElementComponent) => () => void;
|
|
426
|
+
};
|
|
427
|
+
|
|
428
|
+
declare const textFieldElement: import("./define.js").ElementDefinition<TextFieldElementComponent>;
|
|
429
|
+
|
|
430
|
+
type TextFieldSpec = typeof textFieldSpec;
|
|
431
|
+
|
|
432
|
+
/** `<m-text-field>` as a ref or a query returns it. */
|
|
433
|
+
type TextFieldElement = ElementInstance<TextFieldSpec, TextFieldElementComponent>;
|
|
434
|
+
|
|
435
|
+
/** Registers `<m-text-field>` (or `<prefix-text-field>`). */
|
|
436
|
+
declare const defineTextField: (options?: DefineOptions) => string;
|
|
437
|
+
|
|
438
|
+
declare global {
|
|
439
|
+
/** `document.querySelector("m-…")` and `createElement` return the element's type (the default prefix). */
|
|
440
|
+
interface HTMLElementTagNameMap {
|
|
441
|
+
"m-text-field": TextFieldElement;
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
declare const topAppBarSpec: {
|
|
446
|
+
name: string;
|
|
447
|
+
slots: readonly [
|
|
448
|
+
"leading",
|
|
449
|
+
"trailing"
|
|
450
|
+
];
|
|
451
|
+
create: (config: Config) => TopAppBarComponent;
|
|
452
|
+
styles: string[];
|
|
453
|
+
hostStyles: string;
|
|
454
|
+
attributes: {
|
|
455
|
+
type: {
|
|
456
|
+
type: "string";
|
|
457
|
+
config: string;
|
|
458
|
+
update: (c: TopAppBarComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
459
|
+
};
|
|
460
|
+
headline: {
|
|
461
|
+
type: "string";
|
|
462
|
+
config: string;
|
|
463
|
+
update: (c: TopAppBarComponent, v: import("./define.js").AttributeValue) => void;
|
|
464
|
+
};
|
|
465
|
+
"no-scroll": {
|
|
466
|
+
type: "boolean";
|
|
467
|
+
};
|
|
468
|
+
"no-compress": {
|
|
469
|
+
type: "boolean";
|
|
470
|
+
};
|
|
471
|
+
"scroll-threshold": {
|
|
472
|
+
type: "number";
|
|
473
|
+
config: string;
|
|
474
|
+
};
|
|
475
|
+
"scroll-target": {
|
|
476
|
+
type: "string";
|
|
477
|
+
};
|
|
478
|
+
"aria-label": {
|
|
479
|
+
type: "string";
|
|
480
|
+
update: (c: TopAppBarComponent, v: import("./define.js").AttributeValue) => void;
|
|
481
|
+
};
|
|
482
|
+
};
|
|
483
|
+
methods: readonly [
|
|
484
|
+
"setScrollState"
|
|
485
|
+
];
|
|
486
|
+
config: (host: HTMLElement) => Config;
|
|
487
|
+
setup: (host: import("./define.js").ElementHost<TopAppBarComponent>, component: TopAppBarComponent) => () => void;
|
|
488
|
+
};
|
|
489
|
+
|
|
490
|
+
declare const topAppBarElement: import("./define.js").ElementDefinition<TopAppBarComponent>;
|
|
491
|
+
|
|
492
|
+
type TopAppBarSpec = typeof topAppBarSpec;
|
|
493
|
+
|
|
494
|
+
/** `<m-top-app-bar>` as a ref or a query returns it. */
|
|
495
|
+
type TopAppBarElement = ElementInstance<TopAppBarSpec, TopAppBarComponent>;
|
|
496
|
+
|
|
497
|
+
/** Registers `<m-top-app-bar>` (or `<prefix-top-app-bar>`). */
|
|
498
|
+
declare const defineTopAppBar: (options?: DefineOptions) => string;
|
|
499
|
+
|
|
500
|
+
declare global {
|
|
501
|
+
/** `document.querySelector("m-…")` and `createElement` return the element's type (the default prefix). */
|
|
502
|
+
interface HTMLElementTagNameMap {
|
|
503
|
+
"m-top-app-bar": TopAppBarElement;
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
declare const carouselSpec: {
|
|
508
|
+
name: string;
|
|
509
|
+
ssr: false;
|
|
510
|
+
create: (config: Config) => CarouselComponent;
|
|
511
|
+
styles: string[];
|
|
512
|
+
hostStyles: string;
|
|
513
|
+
attributes: {
|
|
514
|
+
wheel: {
|
|
515
|
+
type: "boolean";
|
|
516
|
+
config: string;
|
|
517
|
+
update: (c: CarouselComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
518
|
+
};
|
|
519
|
+
variant: {
|
|
520
|
+
type: "string";
|
|
521
|
+
config: string;
|
|
522
|
+
};
|
|
523
|
+
index: {
|
|
524
|
+
type: "number";
|
|
525
|
+
config: string;
|
|
526
|
+
update: (c: CarouselComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
527
|
+
};
|
|
528
|
+
"item-width": {
|
|
529
|
+
type: "number";
|
|
530
|
+
config: string;
|
|
531
|
+
};
|
|
532
|
+
gap: {
|
|
533
|
+
type: "number";
|
|
534
|
+
config: string;
|
|
535
|
+
};
|
|
536
|
+
padding: {
|
|
537
|
+
type: "number";
|
|
538
|
+
config: string;
|
|
539
|
+
};
|
|
540
|
+
"corner-radius": {
|
|
541
|
+
type: "number";
|
|
542
|
+
config: string;
|
|
543
|
+
};
|
|
544
|
+
"min-small-item-width": {
|
|
545
|
+
type: "number";
|
|
546
|
+
config: string;
|
|
547
|
+
};
|
|
548
|
+
"max-small-item-width": {
|
|
549
|
+
type: "number";
|
|
550
|
+
config: string;
|
|
551
|
+
};
|
|
552
|
+
"aria-label": {
|
|
553
|
+
type: "string";
|
|
554
|
+
config: string;
|
|
555
|
+
update: (c: CarouselComponent, v: import("./define.js").AttributeValue) => void;
|
|
556
|
+
};
|
|
557
|
+
};
|
|
558
|
+
properties: {
|
|
559
|
+
index: {
|
|
560
|
+
get: (c: CarouselComponent) => number;
|
|
561
|
+
set: (c: CarouselComponent, v: unknown) => undefined;
|
|
562
|
+
config: string;
|
|
563
|
+
};
|
|
564
|
+
};
|
|
565
|
+
model: "index";
|
|
566
|
+
methods: readonly [
|
|
567
|
+
"next",
|
|
568
|
+
"prev",
|
|
569
|
+
"goTo"
|
|
570
|
+
];
|
|
571
|
+
events: {
|
|
572
|
+
change: {
|
|
573
|
+
detail: (payload: unknown) => {
|
|
574
|
+
value: number;
|
|
575
|
+
};
|
|
576
|
+
};
|
|
577
|
+
};
|
|
578
|
+
config: (host: HTMLElement) => Config;
|
|
579
|
+
observeChildren: (host: HTMLElement, component: CarouselComponent) => boolean;
|
|
580
|
+
};
|
|
581
|
+
|
|
582
|
+
declare const carouselElement: import("./define.js").ElementDefinition<CarouselComponent>;
|
|
583
|
+
|
|
584
|
+
type CarouselSpec = typeof carouselSpec;
|
|
585
|
+
|
|
586
|
+
/** `<m-carousel>` as a ref or a query returns it. */
|
|
587
|
+
type CarouselElement = ElementInstance<CarouselSpec, CarouselComponent>;
|
|
588
|
+
|
|
589
|
+
/** `<m-carousel-item>` declares one item and renders nothing. */
|
|
590
|
+
declare const carouselItemDeclaration: {
|
|
591
|
+
readonly name: "carousel-item";
|
|
592
|
+
readonly attributes: {
|
|
593
|
+
readonly value: {
|
|
594
|
+
readonly type: "string";
|
|
595
|
+
};
|
|
596
|
+
readonly src: {
|
|
597
|
+
readonly type: "string";
|
|
598
|
+
};
|
|
599
|
+
readonly alt: {
|
|
600
|
+
readonly type: "string";
|
|
601
|
+
};
|
|
602
|
+
readonly label: {
|
|
603
|
+
readonly type: "string";
|
|
604
|
+
};
|
|
605
|
+
readonly description: {
|
|
606
|
+
readonly type: "string";
|
|
607
|
+
};
|
|
608
|
+
readonly "button-text": {
|
|
609
|
+
readonly type: "string";
|
|
610
|
+
};
|
|
611
|
+
readonly "button-url": {
|
|
612
|
+
readonly type: "string";
|
|
613
|
+
};
|
|
614
|
+
};
|
|
615
|
+
};
|
|
616
|
+
|
|
617
|
+
type CarouselItemAttributes = ElementAttributes<typeof carouselItemDeclaration>;
|
|
618
|
+
|
|
619
|
+
/** Registers `<m-carousel>` and `<m-carousel-item>` (or with another prefix). */
|
|
620
|
+
declare const defineCarousel: (options?: DefineOptions) => string;
|
|
621
|
+
|
|
622
|
+
declare global {
|
|
623
|
+
/** `document.querySelector("m-…")` and `createElement` return the element's type (the default prefix). */
|
|
624
|
+
interface HTMLElementTagNameMap {
|
|
625
|
+
"m-carousel": CarouselElement;
|
|
626
|
+
"m-carousel-item": HTMLElement & CarouselItemAttributes;
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
/** The menu, with the methods the element adds to it. */
|
|
631
|
+
type MenuElementComponent = MenuComponent & {
|
|
632
|
+
/** Opens the menu. */
|
|
633
|
+
show: () => void;
|
|
634
|
+
/** Closes the menu. */
|
|
635
|
+
hide: () => void;
|
|
636
|
+
};
|
|
637
|
+
|
|
638
|
+
/** An anchor as a property takes it: an element, or an id. */
|
|
639
|
+
type MenuAnchor = HTMLElement | string | null;
|
|
640
|
+
|
|
641
|
+
|
|
642
|
+
declare const declaredMenuItems: (parent: Element, tag: string) => MenuContent[];
|
|
643
|
+
|
|
644
|
+
declare const menuSpec: {
|
|
645
|
+
name: string;
|
|
646
|
+
ssr: (host: HTMLElement) => boolean;
|
|
647
|
+
create: (config: Config) => MenuElementComponent;
|
|
648
|
+
styles: string[];
|
|
649
|
+
hostStyles: string;
|
|
650
|
+
attributes: {
|
|
651
|
+
open: {
|
|
652
|
+
type: "boolean";
|
|
653
|
+
update: (c: MenuElementComponent, v: import("./define.js").AttributeValue) => void;
|
|
654
|
+
};
|
|
655
|
+
anchor: {
|
|
656
|
+
type: "string";
|
|
657
|
+
config: string;
|
|
658
|
+
update: (c: MenuElementComponent, v: import("./define.js").AttributeValue) => void;
|
|
659
|
+
};
|
|
660
|
+
position: {
|
|
661
|
+
type: "string";
|
|
662
|
+
config: string;
|
|
663
|
+
update: (c: MenuElementComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
664
|
+
};
|
|
665
|
+
offset: {
|
|
666
|
+
type: "number";
|
|
667
|
+
config: string;
|
|
668
|
+
};
|
|
669
|
+
variant: {
|
|
670
|
+
type: "string";
|
|
671
|
+
config: string;
|
|
672
|
+
};
|
|
673
|
+
color: {
|
|
674
|
+
type: "string";
|
|
675
|
+
config: string;
|
|
676
|
+
};
|
|
677
|
+
"no-close-on-select": {
|
|
678
|
+
type: "boolean";
|
|
679
|
+
config: string;
|
|
680
|
+
};
|
|
681
|
+
/** @deprecated See MenuConfig.dense; the dense variant is removed in 4.0. */
|
|
682
|
+
dense: {
|
|
683
|
+
type: "boolean";
|
|
684
|
+
config: string;
|
|
685
|
+
};
|
|
686
|
+
"max-height": {
|
|
687
|
+
type: "string";
|
|
688
|
+
config: string;
|
|
689
|
+
update: (c: MenuElementComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
690
|
+
};
|
|
691
|
+
"aria-label": {
|
|
692
|
+
type: "string";
|
|
693
|
+
update: (c: MenuElementComponent, v: import("./define.js").AttributeValue) => void;
|
|
694
|
+
};
|
|
695
|
+
};
|
|
696
|
+
properties: {
|
|
697
|
+
anchor: {
|
|
698
|
+
get: (c: MenuElementComponent) => HTMLElement | null;
|
|
699
|
+
set: (c: MenuElementComponent, v: unknown) => void;
|
|
700
|
+
config: string;
|
|
701
|
+
};
|
|
702
|
+
};
|
|
703
|
+
methods: readonly [
|
|
704
|
+
"show",
|
|
705
|
+
"hide",
|
|
706
|
+
"toggle"
|
|
707
|
+
];
|
|
708
|
+
events: {
|
|
709
|
+
open: {
|
|
710
|
+
detail: () => {};
|
|
711
|
+
state: true;
|
|
712
|
+
};
|
|
713
|
+
close: {
|
|
714
|
+
detail: () => {};
|
|
715
|
+
state: true;
|
|
716
|
+
};
|
|
717
|
+
select: {
|
|
718
|
+
detail: (payload: unknown) => {
|
|
719
|
+
value: string;
|
|
720
|
+
};
|
|
721
|
+
};
|
|
722
|
+
};
|
|
723
|
+
config: (host: HTMLElement) => Config;
|
|
724
|
+
setup: (host: import("./define.js").ElementHost<MenuElementComponent>, c: MenuElementComponent) => () => void;
|
|
725
|
+
observeChildren: (host: HTMLElement, c: MenuComponent) => boolean;
|
|
726
|
+
};
|
|
727
|
+
|
|
728
|
+
declare const menuElement: import("./define.js").ElementDefinition<MenuElementComponent>;
|
|
729
|
+
|
|
730
|
+
type MenuSpec = typeof menuSpec;
|
|
731
|
+
|
|
732
|
+
/** `<m-menu>` as a ref or a query returns it. */
|
|
733
|
+
type MenuElement = ElementInstance<MenuSpec, MenuElementComponent>;
|
|
734
|
+
|
|
735
|
+
/** `<m-menu-item>` declares one item and renders nothing. */
|
|
736
|
+
declare const menuItemDeclaration: {
|
|
737
|
+
readonly name: "menu-item";
|
|
738
|
+
readonly attributes: {
|
|
739
|
+
readonly value: {
|
|
740
|
+
readonly type: "string";
|
|
741
|
+
};
|
|
742
|
+
readonly label: {
|
|
743
|
+
readonly type: "string";
|
|
744
|
+
};
|
|
745
|
+
/** Markup (HTML). */
|
|
746
|
+
readonly icon: {
|
|
747
|
+
readonly type: "string";
|
|
748
|
+
};
|
|
749
|
+
readonly shortcut: {
|
|
750
|
+
readonly type: "string";
|
|
751
|
+
};
|
|
752
|
+
readonly "supporting-text": {
|
|
753
|
+
readonly type: "string";
|
|
754
|
+
};
|
|
755
|
+
readonly disabled: {
|
|
756
|
+
readonly type: "boolean";
|
|
757
|
+
};
|
|
758
|
+
readonly divider: {
|
|
759
|
+
readonly type: "boolean";
|
|
760
|
+
};
|
|
761
|
+
readonly gap: {
|
|
762
|
+
readonly type: "boolean";
|
|
763
|
+
};
|
|
764
|
+
};
|
|
765
|
+
};
|
|
766
|
+
|
|
767
|
+
type MenuItemAttributes = ElementAttributes<typeof menuItemDeclaration>;
|
|
768
|
+
|
|
769
|
+
|
|
770
|
+
declare const defineMenuItem: (options?: DefineOptions) => void;
|
|
771
|
+
|
|
772
|
+
/** Registers `<m-menu>` and `<m-menu-item>` (or with another prefix). */
|
|
773
|
+
declare const defineMenu: (options?: DefineOptions) => string;
|
|
774
|
+
|
|
775
|
+
declare global {
|
|
776
|
+
/** `document.querySelector("m-…")` and `createElement` return the element's type (the default prefix). */
|
|
777
|
+
interface HTMLElementTagNameMap {
|
|
778
|
+
"m-menu": MenuElement;
|
|
779
|
+
"m-menu-item": HTMLElement & MenuItemAttributes;
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
declare const selectSpec: {
|
|
784
|
+
name: string;
|
|
785
|
+
create: (config: Config) => SelectComponent;
|
|
786
|
+
styles: string[];
|
|
787
|
+
hostStyles: string;
|
|
788
|
+
attributes: {
|
|
789
|
+
variant: {
|
|
790
|
+
type: "string";
|
|
791
|
+
config: string;
|
|
792
|
+
update: (c: SelectComponent, v: AttributeValue) => undefined;
|
|
793
|
+
};
|
|
794
|
+
density: {
|
|
795
|
+
type: "string";
|
|
796
|
+
config: string;
|
|
797
|
+
update: (c: SelectComponent, v: AttributeValue) => undefined;
|
|
798
|
+
};
|
|
799
|
+
label: {
|
|
800
|
+
type: "string";
|
|
801
|
+
config: string;
|
|
802
|
+
};
|
|
803
|
+
value: {
|
|
804
|
+
type: "string";
|
|
805
|
+
config: string;
|
|
806
|
+
update: (c: SelectComponent, v: AttributeValue) => void;
|
|
807
|
+
};
|
|
808
|
+
placement: {
|
|
809
|
+
type: "string";
|
|
810
|
+
config: string;
|
|
811
|
+
update: (c: SelectComponent, v: AttributeValue) => undefined;
|
|
812
|
+
};
|
|
813
|
+
"supporting-text": {
|
|
814
|
+
type: "string";
|
|
815
|
+
config: string;
|
|
816
|
+
update: (c: SelectComponent, v: AttributeValue) => void;
|
|
817
|
+
};
|
|
818
|
+
required: {
|
|
819
|
+
type: "boolean";
|
|
820
|
+
config: string;
|
|
821
|
+
update: (c: SelectComponent, v: AttributeValue) => void;
|
|
822
|
+
};
|
|
823
|
+
disabled: {
|
|
824
|
+
type: "boolean";
|
|
825
|
+
config: string;
|
|
826
|
+
update: (c: SelectComponent, v: AttributeValue) => undefined;
|
|
827
|
+
};
|
|
828
|
+
error: {
|
|
829
|
+
type: "boolean";
|
|
830
|
+
config: string;
|
|
831
|
+
update: (c: SelectComponent, v: AttributeValue) => undefined;
|
|
832
|
+
};
|
|
833
|
+
"aria-label": {
|
|
834
|
+
type: "string";
|
|
835
|
+
config: string;
|
|
836
|
+
update: (c: SelectComponent, v: AttributeValue) => void;
|
|
837
|
+
};
|
|
838
|
+
};
|
|
839
|
+
properties: {
|
|
840
|
+
value: {
|
|
841
|
+
get: (c: SelectComponent) => string | null;
|
|
842
|
+
set: (c: SelectComponent, value: unknown) => void;
|
|
843
|
+
};
|
|
844
|
+
};
|
|
845
|
+
model: "value";
|
|
846
|
+
events: {
|
|
847
|
+
change: {
|
|
848
|
+
detail: (payload: unknown) => {
|
|
849
|
+
value: string | null;
|
|
850
|
+
};
|
|
851
|
+
};
|
|
852
|
+
};
|
|
853
|
+
form: {
|
|
854
|
+
value: (c: SelectComponent) => string | null;
|
|
855
|
+
events: string[];
|
|
856
|
+
activate: (c: SelectComponent) => void;
|
|
857
|
+
state: (c: SelectComponent) => string;
|
|
858
|
+
restore: (c: SelectComponent, state: string) => void;
|
|
859
|
+
disable: (c: SelectComponent, disabled: boolean) => undefined;
|
|
860
|
+
};
|
|
861
|
+
config: (host: HTMLElement) => Config;
|
|
862
|
+
setup: (host: ElementHost<SelectComponent>, c: SelectComponent) => () => undefined;
|
|
863
|
+
observeChildren: (host: HTMLElement, c: SelectComponent) => boolean;
|
|
864
|
+
};
|
|
865
|
+
|
|
866
|
+
declare const selectElement: import("./define.js").ElementDefinition<SelectComponent>;
|
|
867
|
+
|
|
868
|
+
type SelectSpec = typeof selectSpec;
|
|
869
|
+
|
|
870
|
+
/** `<m-select>` as a ref or a query returns it. */
|
|
871
|
+
type SelectElement = ElementInstance<SelectSpec, SelectComponent>;
|
|
872
|
+
|
|
873
|
+
/** `<m-select-option>` declares one option and renders nothing. */
|
|
874
|
+
declare const selectOptionDeclaration: {
|
|
875
|
+
readonly name: "select-option";
|
|
876
|
+
readonly attributes: {
|
|
877
|
+
readonly value: {
|
|
878
|
+
readonly type: "string";
|
|
879
|
+
};
|
|
880
|
+
readonly label: {
|
|
881
|
+
readonly type: "string";
|
|
882
|
+
};
|
|
883
|
+
/** Markup (HTML). */
|
|
884
|
+
readonly icon: {
|
|
885
|
+
readonly type: "string";
|
|
886
|
+
};
|
|
887
|
+
readonly disabled: {
|
|
888
|
+
readonly type: "boolean";
|
|
889
|
+
};
|
|
890
|
+
};
|
|
891
|
+
};
|
|
892
|
+
|
|
893
|
+
type SelectOptionAttributes = ElementAttributes<typeof selectOptionDeclaration>;
|
|
894
|
+
|
|
895
|
+
/** Registers `<m-select>` and `<m-select-option>` (or with another prefix). */
|
|
896
|
+
declare const defineSelect: (options?: DefineOptions) => string;
|
|
897
|
+
|
|
898
|
+
declare global {
|
|
899
|
+
/** `document.querySelector("m-…")` and `createElement` return the element's type (the default prefix). */
|
|
900
|
+
interface HTMLElementTagNameMap {
|
|
901
|
+
"m-select": SelectElement;
|
|
902
|
+
"m-select-option": HTMLElement & SelectOptionAttributes;
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
/** The sheet with the `show()` the element names after `<dialog>`'s. */
|
|
907
|
+
interface SideSheetElementComponent extends SideSheetComponent {
|
|
908
|
+
show: () => SideSheetComponent;
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
declare const sideSheetSpec: {
|
|
912
|
+
name: string;
|
|
913
|
+
slots: readonly [
|
|
914
|
+
"headline"
|
|
915
|
+
];
|
|
916
|
+
create: (config: import("./define.js").Config) => SideSheetElementComponent;
|
|
917
|
+
styles: string[];
|
|
918
|
+
hostStyles: string;
|
|
919
|
+
attributes: {
|
|
920
|
+
open: {
|
|
921
|
+
type: "boolean";
|
|
922
|
+
update: (c: SideSheetElementComponent, v: import("./define.js").AttributeValue) => void;
|
|
923
|
+
};
|
|
924
|
+
modal: {
|
|
925
|
+
type: "boolean";
|
|
926
|
+
config: string;
|
|
927
|
+
};
|
|
928
|
+
headline: {
|
|
929
|
+
type: "string";
|
|
930
|
+
config: string;
|
|
931
|
+
update: (c: SideSheetElementComponent, v: import("./define.js").AttributeValue, host: HTMLElement) => void;
|
|
932
|
+
};
|
|
933
|
+
position: {
|
|
934
|
+
type: "string";
|
|
935
|
+
config: string;
|
|
936
|
+
};
|
|
937
|
+
width: {
|
|
938
|
+
type: "number";
|
|
939
|
+
config: string;
|
|
940
|
+
};
|
|
941
|
+
"no-close-button": {
|
|
942
|
+
type: "boolean";
|
|
943
|
+
config: string;
|
|
944
|
+
};
|
|
945
|
+
"no-close-on-scrim-click": {
|
|
946
|
+
type: "boolean";
|
|
947
|
+
config: string;
|
|
948
|
+
};
|
|
949
|
+
"no-close-on-escape": {
|
|
950
|
+
type: "boolean";
|
|
951
|
+
config: string;
|
|
952
|
+
};
|
|
953
|
+
"aria-label": {
|
|
954
|
+
type: "string";
|
|
955
|
+
update: (c: SideSheetElementComponent, _v: import("./define.js").AttributeValue, host: HTMLElement) => void;
|
|
956
|
+
};
|
|
957
|
+
};
|
|
958
|
+
methods: readonly [
|
|
959
|
+
"show",
|
|
960
|
+
"close"
|
|
961
|
+
];
|
|
962
|
+
events: {
|
|
963
|
+
open: {
|
|
964
|
+
detail: () => null;
|
|
965
|
+
state: true;
|
|
966
|
+
};
|
|
967
|
+
close: {
|
|
968
|
+
detail: () => null;
|
|
969
|
+
state: true;
|
|
970
|
+
};
|
|
971
|
+
};
|
|
972
|
+
config: (host: HTMLElement) => {
|
|
973
|
+
host: HTMLElement;
|
|
974
|
+
};
|
|
975
|
+
setup: (host: import("./define.js").ElementHost<SideSheetElementComponent>, component: SideSheetElementComponent) => () => void;
|
|
976
|
+
};
|
|
977
|
+
|
|
978
|
+
declare const sideSheetElement: import("./define.js").ElementDefinition<SideSheetElementComponent>;
|
|
979
|
+
|
|
980
|
+
type SideSheetSpec = typeof sideSheetSpec;
|
|
981
|
+
|
|
982
|
+
/** `<m-side-sheet>` as a ref or a query returns it. */
|
|
983
|
+
type SideSheetElement = ElementInstance<SideSheetSpec, SideSheetElementComponent>;
|
|
984
|
+
|
|
985
|
+
/** Registers `<m-side-sheet>` (or `<prefix-side-sheet>`). */
|
|
986
|
+
declare const defineSideSheet: (options?: DefineOptions) => string;
|
|
987
|
+
|
|
988
|
+
declare global {
|
|
989
|
+
/** `document.querySelector("m-…")` and `createElement` return the element's type (the default prefix). */
|
|
990
|
+
interface HTMLElementTagNameMap {
|
|
991
|
+
"m-side-sheet": SideSheetElement;
|
|
992
|
+
}
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
declare const dividerSpec: {
|
|
996
|
+
name: string;
|
|
997
|
+
create: (config: import("./define.js").Config) => DividerComponent;
|
|
998
|
+
styles: string[];
|
|
999
|
+
hostStyles: string;
|
|
1000
|
+
attributes: {
|
|
1001
|
+
orientation: {
|
|
1002
|
+
type: "string";
|
|
1003
|
+
config: string;
|
|
1004
|
+
update: (c: DividerComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
1005
|
+
};
|
|
1006
|
+
variant: {
|
|
1007
|
+
type: "string";
|
|
1008
|
+
config: string;
|
|
1009
|
+
update: (c: DividerComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
1010
|
+
};
|
|
1011
|
+
"inset-start": {
|
|
1012
|
+
type: "number";
|
|
1013
|
+
config: string;
|
|
1014
|
+
};
|
|
1015
|
+
"inset-end": {
|
|
1016
|
+
type: "number";
|
|
1017
|
+
config: string;
|
|
1018
|
+
};
|
|
1019
|
+
thickness: {
|
|
1020
|
+
type: "number";
|
|
1021
|
+
config: string;
|
|
1022
|
+
update: (c: DividerComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
1023
|
+
};
|
|
1024
|
+
color: {
|
|
1025
|
+
type: "string";
|
|
1026
|
+
config: string;
|
|
1027
|
+
update: (c: DividerComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
1028
|
+
};
|
|
1029
|
+
};
|
|
1030
|
+
};
|
|
1031
|
+
|
|
1032
|
+
declare const dividerElement: import("./define.js").ElementDefinition<DividerComponent>;
|
|
1033
|
+
|
|
1034
|
+
type DividerSpec = typeof dividerSpec;
|
|
1035
|
+
|
|
1036
|
+
/** `<m-divider>` as a ref or a query returns it. */
|
|
1037
|
+
type DividerElement = ElementInstance<DividerSpec, DividerComponent>;
|
|
1038
|
+
|
|
1039
|
+
/** Registers `<m-divider>` (or `<prefix-divider>`). */
|
|
1040
|
+
declare const defineDivider: (options?: DefineOptions) => string;
|
|
1041
|
+
|
|
1042
|
+
declare global {
|
|
1043
|
+
/** `document.querySelector("m-…")` and `createElement` return the element's type (the default prefix). */
|
|
1044
|
+
interface HTMLElementTagNameMap {
|
|
1045
|
+
"m-divider": DividerElement;
|
|
1046
|
+
}
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
declare const extendedFabSpec: {
|
|
1050
|
+
name: string;
|
|
1051
|
+
create: (config: import("./define.js").Config) => ExtendedFabComponent;
|
|
1052
|
+
styles: string[];
|
|
1053
|
+
hostStyles: string;
|
|
1054
|
+
attributes: {
|
|
1055
|
+
variant: {
|
|
1056
|
+
type: "string";
|
|
1057
|
+
config: string;
|
|
1058
|
+
};
|
|
1059
|
+
size: {
|
|
1060
|
+
type: "string";
|
|
1061
|
+
config: string;
|
|
1062
|
+
};
|
|
1063
|
+
width: {
|
|
1064
|
+
type: "string";
|
|
1065
|
+
config: string;
|
|
1066
|
+
};
|
|
1067
|
+
disabled: {
|
|
1068
|
+
type: "boolean";
|
|
1069
|
+
config: string;
|
|
1070
|
+
update: (c: ExtendedFabComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
1071
|
+
};
|
|
1072
|
+
/** Markup (HTML). */
|
|
1073
|
+
icon: {
|
|
1074
|
+
type: "string";
|
|
1075
|
+
config: string;
|
|
1076
|
+
update: (c: ExtendedFabComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
1077
|
+
};
|
|
1078
|
+
"icon-position": {
|
|
1079
|
+
type: "string";
|
|
1080
|
+
config: string;
|
|
1081
|
+
};
|
|
1082
|
+
/** @deprecated Physical alias, does not mirror in RTL; removal in 4.0. */
|
|
1083
|
+
position: {
|
|
1084
|
+
type: "string";
|
|
1085
|
+
config: string;
|
|
1086
|
+
};
|
|
1087
|
+
placement: {
|
|
1088
|
+
type: "string";
|
|
1089
|
+
config: string;
|
|
1090
|
+
};
|
|
1091
|
+
"collapse-on-scroll": {
|
|
1092
|
+
type: "boolean";
|
|
1093
|
+
config: string;
|
|
1094
|
+
};
|
|
1095
|
+
value: {
|
|
1096
|
+
type: "string";
|
|
1097
|
+
config: string;
|
|
1098
|
+
update: (c: ExtendedFabComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
1099
|
+
};
|
|
1100
|
+
type: {
|
|
1101
|
+
readonly type: "string";
|
|
1102
|
+
readonly update: () => undefined;
|
|
1103
|
+
};
|
|
1104
|
+
"aria-label": {
|
|
1105
|
+
type: "string";
|
|
1106
|
+
config: string;
|
|
1107
|
+
};
|
|
1108
|
+
};
|
|
1109
|
+
methods: readonly [
|
|
1110
|
+
"lower",
|
|
1111
|
+
"raise",
|
|
1112
|
+
"collapse",
|
|
1113
|
+
"expand"
|
|
1114
|
+
];
|
|
1115
|
+
events: {
|
|
1116
|
+
collapse: {
|
|
1117
|
+
detail: () => null;
|
|
1118
|
+
};
|
|
1119
|
+
expand: {
|
|
1120
|
+
detail: () => null;
|
|
1121
|
+
};
|
|
1122
|
+
};
|
|
1123
|
+
slot: {
|
|
1124
|
+
attribute: "label";
|
|
1125
|
+
config: string;
|
|
1126
|
+
};
|
|
1127
|
+
form: import("./define.js").FormSpec<ExtendedFabComponent>;
|
|
1128
|
+
setup: <C extends import("./define.js").ElementComponent>(host: import("./define.js").ElementHost<C>) => (() => void);
|
|
1129
|
+
};
|
|
1130
|
+
|
|
1131
|
+
declare const extendedFabElement: import("./define.js").ElementDefinition<ExtendedFabComponent>;
|
|
1132
|
+
|
|
1133
|
+
type ExtendedFabSpec = typeof extendedFabSpec;
|
|
1134
|
+
|
|
1135
|
+
/** `<m-extended-fab>` as a ref or a query returns it. */
|
|
1136
|
+
type ExtendedFabElement = ElementInstance<ExtendedFabSpec, ExtendedFabComponent>;
|
|
1137
|
+
|
|
1138
|
+
/** Registers `<m-extended-fab>` (or `<prefix-extended-fab>`). */
|
|
1139
|
+
declare const defineExtendedFab: (options?: DefineOptions) => string;
|
|
1140
|
+
|
|
1141
|
+
declare global {
|
|
1142
|
+
/** `document.querySelector("m-…")` and `createElement` return the element's type (the default prefix). */
|
|
1143
|
+
interface HTMLElementTagNameMap {
|
|
1144
|
+
"m-extended-fab": ExtendedFabElement;
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
/** The factory's events, and the element's own names for four of them. */
|
|
1149
|
+
interface SearchElementEvents extends SearchEvents {
|
|
1150
|
+
change: SearchEvents["submit"];
|
|
1151
|
+
select: SearchEvents["suggestionSelect"];
|
|
1152
|
+
open: SearchEvents["expand"];
|
|
1153
|
+
close: SearchEvents["collapse"];
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
/** The search, with the element's events, methods and input. */
|
|
1157
|
+
interface SearchElementComponent extends Omit<SearchComponent, "on" | "off"> {
|
|
1158
|
+
/** Subscribes by the element's event names (`open`, `select`…) as well as the factory's. */
|
|
1159
|
+
on: <K extends keyof SearchElementEvents>(event: K, handler: SearchElementEvents[K]) => SearchElementComponent;
|
|
1160
|
+
off: <K extends keyof SearchElementEvents>(event: K, handler: SearchElementEvents[K]) => SearchElementComponent;
|
|
1161
|
+
/** Opens the view. */
|
|
1162
|
+
show: () => SearchElementComponent;
|
|
1163
|
+
/** Closes the view. */
|
|
1164
|
+
close: () => SearchElementComponent;
|
|
1165
|
+
/** The combobox. */
|
|
1166
|
+
input: HTMLInputElement;
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
declare const searchSpec: {
|
|
1170
|
+
name: string;
|
|
1171
|
+
create: (config: Config) => SearchElementComponent;
|
|
1172
|
+
styles: string[];
|
|
1173
|
+
hostStyles: string;
|
|
1174
|
+
attributes: {
|
|
1175
|
+
placeholder: {
|
|
1176
|
+
type: "string";
|
|
1177
|
+
config: string;
|
|
1178
|
+
update: (c: SearchElementComponent, v: AttributeValue, host: HTMLElement) => void;
|
|
1179
|
+
};
|
|
1180
|
+
value: {
|
|
1181
|
+
type: "string";
|
|
1182
|
+
config: string;
|
|
1183
|
+
update: (c: SearchElementComponent, v: AttributeValue) => void;
|
|
1184
|
+
};
|
|
1185
|
+
variant: {
|
|
1186
|
+
type: "string";
|
|
1187
|
+
config: string;
|
|
1188
|
+
update: (c: SearchElementComponent, v: AttributeValue) => undefined;
|
|
1189
|
+
};
|
|
1190
|
+
"view-mode": {
|
|
1191
|
+
type: "string";
|
|
1192
|
+
config: string;
|
|
1193
|
+
update: (c: SearchElementComponent, v: AttributeValue) => undefined;
|
|
1194
|
+
};
|
|
1195
|
+
"min-width": {
|
|
1196
|
+
type: "string";
|
|
1197
|
+
config: string;
|
|
1198
|
+
update: (c: SearchElementComponent, v: AttributeValue) => void;
|
|
1199
|
+
};
|
|
1200
|
+
"max-width": {
|
|
1201
|
+
type: "string";
|
|
1202
|
+
config: string;
|
|
1203
|
+
update: (c: SearchElementComponent, v: AttributeValue) => void;
|
|
1204
|
+
};
|
|
1205
|
+
"no-clear-button": {
|
|
1206
|
+
type: "boolean";
|
|
1207
|
+
config: string;
|
|
1208
|
+
};
|
|
1209
|
+
"no-expand-on-focus": {
|
|
1210
|
+
type: "boolean";
|
|
1211
|
+
config: string;
|
|
1212
|
+
};
|
|
1213
|
+
"no-collapse-on-blur": {
|
|
1214
|
+
type: "boolean";
|
|
1215
|
+
config: string;
|
|
1216
|
+
};
|
|
1217
|
+
"full-width": {
|
|
1218
|
+
type: "boolean";
|
|
1219
|
+
config: string;
|
|
1220
|
+
update: (c: SearchElementComponent, v: AttributeValue) => undefined;
|
|
1221
|
+
};
|
|
1222
|
+
/** Markup (HTML). */
|
|
1223
|
+
"leading-icon": {
|
|
1224
|
+
type: "string";
|
|
1225
|
+
config: string;
|
|
1226
|
+
};
|
|
1227
|
+
/** Markup (HTML). */
|
|
1228
|
+
"trailing-icon": {
|
|
1229
|
+
type: "string";
|
|
1230
|
+
config: string;
|
|
1231
|
+
};
|
|
1232
|
+
"trailing-label": {
|
|
1233
|
+
type: "string";
|
|
1234
|
+
config: string;
|
|
1235
|
+
};
|
|
1236
|
+
/** Markup (HTML), not a person's name or an image URL. */
|
|
1237
|
+
avatar: {
|
|
1238
|
+
type: "string";
|
|
1239
|
+
config: string;
|
|
1240
|
+
};
|
|
1241
|
+
"avatar-label": {
|
|
1242
|
+
type: "string";
|
|
1243
|
+
config: string;
|
|
1244
|
+
};
|
|
1245
|
+
open: {
|
|
1246
|
+
type: "boolean";
|
|
1247
|
+
config: string;
|
|
1248
|
+
update: (c: SearchElementComponent, v: AttributeValue) => void;
|
|
1249
|
+
};
|
|
1250
|
+
disabled: {
|
|
1251
|
+
type: "boolean";
|
|
1252
|
+
config: string;
|
|
1253
|
+
update: (c: SearchElementComponent, v: AttributeValue) => void;
|
|
1254
|
+
};
|
|
1255
|
+
"aria-label": {
|
|
1256
|
+
type: "string";
|
|
1257
|
+
config: string;
|
|
1258
|
+
update: (c: SearchElementComponent, v: AttributeValue) => void;
|
|
1259
|
+
};
|
|
1260
|
+
};
|
|
1261
|
+
properties: {
|
|
1262
|
+
value: {
|
|
1263
|
+
get: (c: SearchElementComponent) => string;
|
|
1264
|
+
set: (c: SearchElementComponent, value: unknown) => void;
|
|
1265
|
+
};
|
|
1266
|
+
};
|
|
1267
|
+
methods: readonly [
|
|
1268
|
+
"show",
|
|
1269
|
+
"close",
|
|
1270
|
+
"focus"
|
|
1271
|
+
];
|
|
1272
|
+
model: "value";
|
|
1273
|
+
events: {
|
|
1274
|
+
input: {
|
|
1275
|
+
detail: (payload: unknown) => {
|
|
1276
|
+
value: string;
|
|
1277
|
+
};
|
|
1278
|
+
};
|
|
1279
|
+
change: {
|
|
1280
|
+
detail: (payload: unknown) => {
|
|
1281
|
+
value: string;
|
|
1282
|
+
};
|
|
1283
|
+
};
|
|
1284
|
+
select: {
|
|
1285
|
+
detail: (payload: unknown) => {
|
|
1286
|
+
value: string;
|
|
1287
|
+
};
|
|
1288
|
+
};
|
|
1289
|
+
open: {
|
|
1290
|
+
detail: () => null;
|
|
1291
|
+
state: true;
|
|
1292
|
+
};
|
|
1293
|
+
close: {
|
|
1294
|
+
detail: () => null;
|
|
1295
|
+
state: true;
|
|
1296
|
+
};
|
|
1297
|
+
action: {
|
|
1298
|
+
detail: (payload: unknown) => {
|
|
1299
|
+
value: string;
|
|
1300
|
+
};
|
|
1301
|
+
};
|
|
1302
|
+
};
|
|
1303
|
+
form: {
|
|
1304
|
+
value: (c: SearchElementComponent) => string;
|
|
1305
|
+
control: (c: SearchElementComponent) => HTMLInputElement;
|
|
1306
|
+
activate: (c: SearchElementComponent) => undefined;
|
|
1307
|
+
state: (c: SearchElementComponent) => string;
|
|
1308
|
+
restore: (c: SearchElementComponent, state: string) => void;
|
|
1309
|
+
disable: (c: SearchElementComponent, disabled: boolean) => void;
|
|
1310
|
+
};
|
|
1311
|
+
config: (host: HTMLElement) => Config;
|
|
1312
|
+
setup: (host: import("./define.js").ElementHost<SearchElementComponent>, c: SearchElementComponent) => () => void;
|
|
1313
|
+
observeChildren: (host: HTMLElement, c: SearchElementComponent) => boolean;
|
|
1314
|
+
};
|
|
1315
|
+
|
|
1316
|
+
declare const searchElement: import("./define.js").ElementDefinition<SearchElementComponent>;
|
|
1317
|
+
|
|
1318
|
+
type SearchSpec = typeof searchSpec;
|
|
1319
|
+
|
|
1320
|
+
/** `<m-search>` as a ref or a query returns it. */
|
|
1321
|
+
type SearchElement = ElementInstance<SearchSpec, SearchElementComponent>;
|
|
1322
|
+
|
|
1323
|
+
/** `<m-search-suggestion>` declares one suggestion and renders nothing. */
|
|
1324
|
+
declare const searchSuggestionDeclaration: {
|
|
1325
|
+
readonly name: "search-suggestion";
|
|
1326
|
+
readonly attributes: {
|
|
1327
|
+
readonly value: {
|
|
1328
|
+
readonly type: "string";
|
|
1329
|
+
};
|
|
1330
|
+
readonly label: {
|
|
1331
|
+
readonly type: "string";
|
|
1332
|
+
};
|
|
1333
|
+
/** Markup (HTML). */
|
|
1334
|
+
readonly icon: {
|
|
1335
|
+
readonly type: "string";
|
|
1336
|
+
};
|
|
1337
|
+
readonly group: {
|
|
1338
|
+
readonly type: "string";
|
|
1339
|
+
};
|
|
1340
|
+
};
|
|
1341
|
+
};
|
|
1342
|
+
|
|
1343
|
+
type SearchSuggestionAttributes = ElementAttributes<typeof searchSuggestionDeclaration>;
|
|
1344
|
+
|
|
1345
|
+
/** Registers `<m-search>` and `<m-search-suggestion>` (or with another prefix). */
|
|
1346
|
+
declare const defineSearch: (options?: DefineOptions) => string;
|
|
1347
|
+
|
|
1348
|
+
declare global {
|
|
1349
|
+
/** `document.querySelector("m-…")` and `createElement` return the element's type (the default prefix). */
|
|
1350
|
+
interface HTMLElementTagNameMap {
|
|
1351
|
+
"m-search": SearchElement;
|
|
1352
|
+
"m-search-suggestion": HTMLElement & SearchSuggestionAttributes;
|
|
1353
|
+
}
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1356
|
+
declare const toolbarSpec: {
|
|
1357
|
+
name: string;
|
|
1358
|
+
slots: readonly [
|
|
1359
|
+
"fab",
|
|
1360
|
+
"overflow"
|
|
1361
|
+
];
|
|
1362
|
+
create: (config: Config) => ToolbarComponent;
|
|
1363
|
+
styles: string[];
|
|
1364
|
+
hostStyles: string;
|
|
1365
|
+
attributes: {
|
|
1366
|
+
variant: {
|
|
1367
|
+
type: "string";
|
|
1368
|
+
config: string;
|
|
1369
|
+
};
|
|
1370
|
+
color: {
|
|
1371
|
+
type: "string";
|
|
1372
|
+
config: string;
|
|
1373
|
+
update: (c: ToolbarComponent, v: import("./define.js").AttributeValue) => ToolbarComponent;
|
|
1374
|
+
};
|
|
1375
|
+
orientation: {
|
|
1376
|
+
type: "string";
|
|
1377
|
+
config: string;
|
|
1378
|
+
};
|
|
1379
|
+
placement: {
|
|
1380
|
+
type: "string";
|
|
1381
|
+
config: string;
|
|
1382
|
+
};
|
|
1383
|
+
arrangement: {
|
|
1384
|
+
type: "string";
|
|
1385
|
+
config: string;
|
|
1386
|
+
};
|
|
1387
|
+
flat: {
|
|
1388
|
+
type: "boolean";
|
|
1389
|
+
update: (c: ToolbarComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
1390
|
+
};
|
|
1391
|
+
"fab-position": {
|
|
1392
|
+
type: "string";
|
|
1393
|
+
config: string;
|
|
1394
|
+
};
|
|
1395
|
+
"scroll-behavior": {
|
|
1396
|
+
type: "string";
|
|
1397
|
+
config: string;
|
|
1398
|
+
};
|
|
1399
|
+
"scroll-threshold": {
|
|
1400
|
+
type: "number";
|
|
1401
|
+
config: string;
|
|
1402
|
+
};
|
|
1403
|
+
"overflow-label": {
|
|
1404
|
+
type: "string";
|
|
1405
|
+
config: string;
|
|
1406
|
+
};
|
|
1407
|
+
"aria-label": {
|
|
1408
|
+
type: "string";
|
|
1409
|
+
update: (c: ToolbarComponent, v: import("./define.js").AttributeValue) => void;
|
|
1410
|
+
};
|
|
1411
|
+
};
|
|
1412
|
+
methods: readonly [
|
|
1413
|
+
"show",
|
|
1414
|
+
"hide"
|
|
1415
|
+
];
|
|
1416
|
+
events: {
|
|
1417
|
+
show: {
|
|
1418
|
+
detail: () => null;
|
|
1419
|
+
state: true;
|
|
1420
|
+
};
|
|
1421
|
+
hide: {
|
|
1422
|
+
detail: () => null;
|
|
1423
|
+
state: true;
|
|
1424
|
+
};
|
|
1425
|
+
collapse: {
|
|
1426
|
+
detail: () => null;
|
|
1427
|
+
state: true;
|
|
1428
|
+
};
|
|
1429
|
+
expand: {
|
|
1430
|
+
detail: () => null;
|
|
1431
|
+
state: true;
|
|
1432
|
+
};
|
|
1433
|
+
};
|
|
1434
|
+
config: (host: HTMLElement) => Config;
|
|
1435
|
+
observeChildren: (host: import("./define.js").ElementHost<ToolbarComponent>, component: ToolbarComponent) => boolean;
|
|
1436
|
+
setup: (host: import("./define.js").ElementHost<ToolbarComponent>, component: ToolbarComponent) => () => void;
|
|
1437
|
+
};
|
|
1438
|
+
|
|
1439
|
+
declare const toolbarElement: import("./define.js").ElementDefinition<ToolbarComponent>;
|
|
1440
|
+
|
|
1441
|
+
type ToolbarSpec = typeof toolbarSpec;
|
|
1442
|
+
|
|
1443
|
+
/** `<m-toolbar>` as a ref or a query returns it. */
|
|
1444
|
+
type ToolbarElement = ElementInstance<ToolbarSpec, ToolbarComponent>;
|
|
1445
|
+
|
|
1446
|
+
/** Registers `<m-toolbar>` (or `<prefix-toolbar>`). */
|
|
1447
|
+
declare const defineToolbar: (options?: DefineOptions) => string;
|
|
1448
|
+
|
|
1449
|
+
declare global {
|
|
1450
|
+
/** `document.querySelector("m-…")` and `createElement` return the element's type (the default prefix). */
|
|
1451
|
+
interface HTMLElementTagNameMap {
|
|
1452
|
+
"m-toolbar": ToolbarElement;
|
|
1453
|
+
}
|
|
1454
|
+
}
|
|
1455
|
+
|
|
1456
|
+
/** The time picker as the element sees it: its value can be empty. */
|
|
1457
|
+
interface TimepickerElementComponent {
|
|
1458
|
+
element: HTMLElement;
|
|
1459
|
+
picker: TimePickerComponent;
|
|
1460
|
+
/** The committed time, or "" before one is set or confirmed. */
|
|
1461
|
+
getValue: () => string;
|
|
1462
|
+
setValue: (value: string) => void;
|
|
1463
|
+
/** Opens the dialog, unless the picker is disabled. */
|
|
1464
|
+
show: () => void;
|
|
1465
|
+
/** Closes the dialog without committing. */
|
|
1466
|
+
close: () => void;
|
|
1467
|
+
isOpen: () => boolean;
|
|
1468
|
+
required: boolean;
|
|
1469
|
+
/** Subscribes to the time picker's events; `change` and `input` carry the element's possibly empty value. */
|
|
1470
|
+
on: <K extends keyof TimePickerEvents>(event: K, handler: TimePickerEvents[K]) => void;
|
|
1471
|
+
off: <K extends keyof TimePickerEvents>(event: K, handler: TimePickerEvents[K]) => void;
|
|
1472
|
+
destroy: () => void;
|
|
1473
|
+
}
|
|
1474
|
+
|
|
1475
|
+
declare const timepickerSpec: {
|
|
1476
|
+
name: string;
|
|
1477
|
+
create: (config: import("./define.js").Config) => TimepickerElementComponent;
|
|
1478
|
+
styles: string[];
|
|
1479
|
+
hostStyles: string;
|
|
1480
|
+
attributes: {
|
|
1481
|
+
value: {
|
|
1482
|
+
type: "string";
|
|
1483
|
+
config: string;
|
|
1484
|
+
update: (c: TimepickerElementComponent, v: import("./define.js").AttributeValue) => void;
|
|
1485
|
+
};
|
|
1486
|
+
format: {
|
|
1487
|
+
type: "string";
|
|
1488
|
+
config: string;
|
|
1489
|
+
update: (c: TimepickerElementComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
1490
|
+
};
|
|
1491
|
+
type: {
|
|
1492
|
+
type: "string";
|
|
1493
|
+
config: string;
|
|
1494
|
+
update: (c: TimepickerElementComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
1495
|
+
};
|
|
1496
|
+
orientation: {
|
|
1497
|
+
type: "string";
|
|
1498
|
+
config: string;
|
|
1499
|
+
update: (c: TimepickerElementComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
1500
|
+
};
|
|
1501
|
+
min: {
|
|
1502
|
+
type: "string";
|
|
1503
|
+
config: string;
|
|
1504
|
+
};
|
|
1505
|
+
max: {
|
|
1506
|
+
type: "string";
|
|
1507
|
+
config: string;
|
|
1508
|
+
};
|
|
1509
|
+
step: {
|
|
1510
|
+
type: "number";
|
|
1511
|
+
config: string;
|
|
1512
|
+
};
|
|
1513
|
+
"show-seconds": {
|
|
1514
|
+
type: "boolean";
|
|
1515
|
+
config: string;
|
|
1516
|
+
};
|
|
1517
|
+
label: {
|
|
1518
|
+
type: "string";
|
|
1519
|
+
config: string;
|
|
1520
|
+
update: (c: TimepickerElementComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
1521
|
+
};
|
|
1522
|
+
"aria-label": {
|
|
1523
|
+
type: "string";
|
|
1524
|
+
config: string;
|
|
1525
|
+
update: (c: TimepickerElementComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
1526
|
+
};
|
|
1527
|
+
required: {
|
|
1528
|
+
type: "boolean";
|
|
1529
|
+
config: string;
|
|
1530
|
+
update: (c: TimepickerElementComponent, v: import("./define.js").AttributeValue) => void;
|
|
1531
|
+
};
|
|
1532
|
+
disabled: {
|
|
1533
|
+
type: "boolean";
|
|
1534
|
+
config: string;
|
|
1535
|
+
update: (c: TimepickerElementComponent, v: import("./define.js").AttributeValue) => void;
|
|
1536
|
+
};
|
|
1537
|
+
open: {
|
|
1538
|
+
type: "boolean";
|
|
1539
|
+
update: (c: TimepickerElementComponent, v: import("./define.js").AttributeValue, host: HTMLElement) => void;
|
|
1540
|
+
};
|
|
1541
|
+
};
|
|
1542
|
+
properties: {
|
|
1543
|
+
value: {
|
|
1544
|
+
get: (c: TimepickerElementComponent) => string;
|
|
1545
|
+
set: (c: TimepickerElementComponent, value: unknown) => void;
|
|
1546
|
+
};
|
|
1547
|
+
};
|
|
1548
|
+
model: "value";
|
|
1549
|
+
methods: readonly [
|
|
1550
|
+
"show",
|
|
1551
|
+
"close"
|
|
1552
|
+
];
|
|
1553
|
+
events: {
|
|
1554
|
+
change: {
|
|
1555
|
+
detail: (payload: unknown) => {
|
|
1556
|
+
value: string;
|
|
1557
|
+
};
|
|
1558
|
+
};
|
|
1559
|
+
input: {
|
|
1560
|
+
detail: (payload: unknown) => {
|
|
1561
|
+
value: string;
|
|
1562
|
+
draftValue: string;
|
|
1563
|
+
};
|
|
1564
|
+
};
|
|
1565
|
+
confirm: {
|
|
1566
|
+
detail: (payload: unknown) => {
|
|
1567
|
+
value: string;
|
|
1568
|
+
};
|
|
1569
|
+
};
|
|
1570
|
+
open: {
|
|
1571
|
+
detail: () => null;
|
|
1572
|
+
state: true;
|
|
1573
|
+
};
|
|
1574
|
+
close: {
|
|
1575
|
+
detail: () => null;
|
|
1576
|
+
state: true;
|
|
1577
|
+
};
|
|
1578
|
+
};
|
|
1579
|
+
form: {
|
|
1580
|
+
value: (c: TimepickerElementComponent) => string;
|
|
1581
|
+
events: string[];
|
|
1582
|
+
activate: (c: TimepickerElementComponent) => void;
|
|
1583
|
+
state: (c: TimepickerElementComponent) => string;
|
|
1584
|
+
restore: (c: TimepickerElementComponent, state: string) => void;
|
|
1585
|
+
disable: (c: TimepickerElementComponent, disabled: boolean) => void;
|
|
1586
|
+
};
|
|
1587
|
+
setup: (host: ElementHost<TimepickerElementComponent>, c: TimepickerElementComponent) => () => void;
|
|
1588
|
+
};
|
|
1589
|
+
|
|
1590
|
+
declare const timepickerElement: import("./define.js").ElementDefinition<TimepickerElementComponent>;
|
|
1591
|
+
|
|
1592
|
+
type TimepickerSpec = typeof timepickerSpec;
|
|
1593
|
+
|
|
1594
|
+
/** `<m-timepicker>` as a ref or a query returns it. */
|
|
1595
|
+
type TimepickerElement = ElementInstance<TimepickerSpec, TimepickerElementComponent>;
|
|
1596
|
+
|
|
1597
|
+
/** Registers `<m-timepicker>` (or `<prefix-timepicker>`). */
|
|
1598
|
+
declare const defineTimepicker: (options?: DefineOptions) => string;
|
|
1599
|
+
|
|
1600
|
+
declare global {
|
|
1601
|
+
/** `document.querySelector("m-…")` and `createElement` return the element's type (the default prefix). */
|
|
1602
|
+
interface HTMLElementTagNameMap {
|
|
1603
|
+
"m-timepicker": TimepickerElement;
|
|
1604
|
+
}
|
|
1605
|
+
}
|
|
1606
|
+
|
|
1607
|
+
declare const listSpec: {
|
|
1608
|
+
name: string;
|
|
1609
|
+
create: (config: Config) => ListComponent<ListItem>;
|
|
1610
|
+
styles: string[];
|
|
1611
|
+
hostStyles: string;
|
|
1612
|
+
attributes: {
|
|
1613
|
+
variant: {
|
|
1614
|
+
type: "string";
|
|
1615
|
+
config: string;
|
|
1616
|
+
};
|
|
1617
|
+
selection: {
|
|
1618
|
+
type: "string";
|
|
1619
|
+
config: string;
|
|
1620
|
+
};
|
|
1621
|
+
value: {
|
|
1622
|
+
type: "string";
|
|
1623
|
+
config: string;
|
|
1624
|
+
update: (c: ListComponent<ListItem>, v: import("./define.js").AttributeValue) => void;
|
|
1625
|
+
};
|
|
1626
|
+
disabled: {
|
|
1627
|
+
type: "boolean";
|
|
1628
|
+
update: (c: ListComponent<ListItem>, _v: import("./define.js").AttributeValue, host: HTMLElement) => undefined;
|
|
1629
|
+
};
|
|
1630
|
+
"aria-label": {
|
|
1631
|
+
type: "string";
|
|
1632
|
+
config: string;
|
|
1633
|
+
update: (c: ListComponent<ListItem>, v: import("./define.js").AttributeValue) => void;
|
|
1634
|
+
};
|
|
1635
|
+
};
|
|
1636
|
+
properties: {
|
|
1637
|
+
value: {
|
|
1638
|
+
get: (c: ListComponent<ListItem>) => string | null;
|
|
1639
|
+
set: (c: ListComponent<ListItem>, v: unknown) => void;
|
|
1640
|
+
config: string;
|
|
1641
|
+
};
|
|
1642
|
+
values: {
|
|
1643
|
+
get: (c: ListComponent<ListItem>) => string[];
|
|
1644
|
+
set: (c: ListComponent<ListItem>, v: unknown) => void;
|
|
1645
|
+
config: string;
|
|
1646
|
+
};
|
|
1647
|
+
};
|
|
1648
|
+
model: "value";
|
|
1649
|
+
defaults: string[];
|
|
1650
|
+
events: {
|
|
1651
|
+
activate: {
|
|
1652
|
+
detail: (payload: unknown) => {
|
|
1653
|
+
value: string;
|
|
1654
|
+
};
|
|
1655
|
+
state: true;
|
|
1656
|
+
};
|
|
1657
|
+
change: {
|
|
1658
|
+
detail: (payload: unknown) => {
|
|
1659
|
+
value: string | null;
|
|
1660
|
+
values: string[];
|
|
1661
|
+
};
|
|
1662
|
+
};
|
|
1663
|
+
};
|
|
1664
|
+
config: (host: HTMLElement) => Config;
|
|
1665
|
+
setup: (host: ElementHost<ListComponent<ListItem>>, component: ListComponent<ListItem>) => (() => void);
|
|
1666
|
+
observeChildren: (host: HTMLElement, component: ListComponent<ListItem>) => boolean;
|
|
1667
|
+
};
|
|
1668
|
+
|
|
1669
|
+
declare const listElement: import("./define.js").ElementDefinition<ListComponent<ListItem>>;
|
|
1670
|
+
|
|
1671
|
+
type ListSpec = typeof listSpec;
|
|
1672
|
+
|
|
1673
|
+
/** `<m-list>` as a ref or a query returns it. */
|
|
1674
|
+
type ListElement = ElementInstance<ListSpec, ListComponent<ListItem>>;
|
|
1675
|
+
|
|
1676
|
+
/** `<m-list-item>` declares one row and renders nothing. */
|
|
1677
|
+
declare const listItemDeclaration: {
|
|
1678
|
+
readonly name: "list-item";
|
|
1679
|
+
readonly attributes: {
|
|
1680
|
+
readonly value: {
|
|
1681
|
+
readonly type: "string";
|
|
1682
|
+
};
|
|
1683
|
+
readonly headline: {
|
|
1684
|
+
readonly type: "string";
|
|
1685
|
+
};
|
|
1686
|
+
readonly overline: {
|
|
1687
|
+
readonly type: "string";
|
|
1688
|
+
};
|
|
1689
|
+
readonly "supporting-text": {
|
|
1690
|
+
readonly type: "string";
|
|
1691
|
+
};
|
|
1692
|
+
/** Markup (HTML). */
|
|
1693
|
+
readonly "leading-icon": {
|
|
1694
|
+
readonly type: "string";
|
|
1695
|
+
};
|
|
1696
|
+
/** Markup (HTML), not a person's name or an image URL. */
|
|
1697
|
+
readonly "leading-avatar": {
|
|
1698
|
+
readonly type: "string";
|
|
1699
|
+
};
|
|
1700
|
+
readonly "leading-image": {
|
|
1701
|
+
readonly type: "string";
|
|
1702
|
+
};
|
|
1703
|
+
/** Markup (HTML). */
|
|
1704
|
+
readonly "trailing-icon": {
|
|
1705
|
+
readonly type: "string";
|
|
1706
|
+
};
|
|
1707
|
+
readonly "trailing-text": {
|
|
1708
|
+
readonly type: "string";
|
|
1709
|
+
};
|
|
1710
|
+
readonly kind: {
|
|
1711
|
+
readonly type: "string";
|
|
1712
|
+
};
|
|
1713
|
+
readonly inset: {
|
|
1714
|
+
readonly type: "boolean";
|
|
1715
|
+
};
|
|
1716
|
+
readonly disabled: {
|
|
1717
|
+
readonly type: "boolean";
|
|
1718
|
+
};
|
|
1719
|
+
readonly selected: {
|
|
1720
|
+
readonly type: "boolean";
|
|
1721
|
+
};
|
|
1722
|
+
};
|
|
1723
|
+
};
|
|
1724
|
+
|
|
1725
|
+
type ListItemAttributes = ElementAttributes<typeof listItemDeclaration>;
|
|
1726
|
+
|
|
1727
|
+
/** Registers `<m-list>` and `<m-list-item>` (or with another prefix). */
|
|
1728
|
+
declare const defineList: (options?: DefineOptions) => string;
|
|
1729
|
+
|
|
1730
|
+
declare global {
|
|
1731
|
+
/** `document.querySelector("m-…")` and `createElement` return the element's type (the default prefix). */
|
|
1732
|
+
interface HTMLElementTagNameMap {
|
|
1733
|
+
"m-list": ListElement;
|
|
1734
|
+
"m-list-item": HTMLElement & ListItemAttributes;
|
|
1735
|
+
}
|
|
1736
|
+
}
|
|
1737
|
+
|
|
1738
|
+
declare const bottomAppBarSpec: {
|
|
1739
|
+
name: string;
|
|
1740
|
+
slots: readonly [
|
|
1741
|
+
"fab"
|
|
1742
|
+
];
|
|
1743
|
+
create: (config: Config) => BottomAppBarComponent;
|
|
1744
|
+
styles: string[];
|
|
1745
|
+
hostStyles: string;
|
|
1746
|
+
attributes: {
|
|
1747
|
+
"fab-position": {
|
|
1748
|
+
type: "string";
|
|
1749
|
+
config: string;
|
|
1750
|
+
};
|
|
1751
|
+
"auto-hide": {
|
|
1752
|
+
type: "boolean";
|
|
1753
|
+
config: string;
|
|
1754
|
+
};
|
|
1755
|
+
"transition-duration": {
|
|
1756
|
+
type: "number";
|
|
1757
|
+
config: string;
|
|
1758
|
+
};
|
|
1759
|
+
"aria-label": {
|
|
1760
|
+
type: "string";
|
|
1761
|
+
update: (c: BottomAppBarComponent, v: import("./define.js").AttributeValue) => void;
|
|
1762
|
+
};
|
|
1763
|
+
};
|
|
1764
|
+
methods: readonly [
|
|
1765
|
+
"show",
|
|
1766
|
+
"hide"
|
|
1767
|
+
];
|
|
1768
|
+
config: (host: HTMLElement) => Config;
|
|
1769
|
+
setup: (host: import("./define.js").ElementHost<BottomAppBarComponent>, component: BottomAppBarComponent) => () => void | undefined;
|
|
1770
|
+
};
|
|
1771
|
+
|
|
1772
|
+
/**
|
|
1773
|
+
* The `<m-bottom-app-bar>` element.
|
|
1774
|
+
* @deprecated Material Design 3 Expressive replaces the bottom app bar with
|
|
1775
|
+
* the docked toolbar. Use `<m-toolbar variant="docked" placement="bottom">`
|
|
1776
|
+
* and toolbarElement instead. A centred FAB, adding a FAB after creation, a
|
|
1777
|
+
* custom transition duration and a custom tag are not yet available on the
|
|
1778
|
+
* docked toolbar.
|
|
1779
|
+
*/
|
|
1780
|
+
declare const bottomAppBarElement: import("./define.js").ElementDefinition<BottomAppBarComponent>;
|
|
1781
|
+
|
|
1782
|
+
/** @deprecated Use ToolbarSpec: the docked toolbar's element spec. */
|
|
1783
|
+
type BottomAppBarSpec = typeof bottomAppBarSpec;
|
|
1784
|
+
|
|
1785
|
+
/**
|
|
1786
|
+
* `<m-bottom-app-bar>` as a ref or a query returns it.
|
|
1787
|
+
* @deprecated Use ToolbarElement: the docked toolbar's element type.
|
|
1788
|
+
*/
|
|
1789
|
+
type BottomAppBarElement = ElementInstance<BottomAppBarSpec, BottomAppBarComponent>;
|
|
1790
|
+
|
|
1791
|
+
/**
|
|
1792
|
+
* Registers `<m-bottom-app-bar>` (or `<prefix-bottom-app-bar>`).
|
|
1793
|
+
* @deprecated Material Design 3 Expressive replaces the bottom app bar with
|
|
1794
|
+
* the docked toolbar. Use defineToolbar and
|
|
1795
|
+
* `<m-toolbar variant="docked" placement="bottom">` instead.
|
|
1796
|
+
*/
|
|
1797
|
+
declare const defineBottomAppBar: (options?: DefineOptions) => string;
|
|
1798
|
+
|
|
1799
|
+
declare global {
|
|
1800
|
+
/** `document.querySelector("m-…")` and `createElement` return the element's type (the default prefix). */
|
|
1801
|
+
interface HTMLElementTagNameMap {
|
|
1802
|
+
"m-bottom-app-bar": BottomAppBarElement;
|
|
1803
|
+
}
|
|
1804
|
+
}
|
|
1805
|
+
|
|
1806
|
+
/** The sheet's events, and `expand` and `collapse`, which the element tells apart from its state changes. */
|
|
1807
|
+
interface BottomSheetElementEvents extends BottomSheetEventHandlers {
|
|
1808
|
+
expand?: () => void;
|
|
1809
|
+
collapse?: () => void;
|
|
1810
|
+
}
|
|
1811
|
+
|
|
1812
|
+
/** The sheet with the `show()` the element names after `<dialog>`'s, and its `expand` and `collapse` events. */
|
|
1813
|
+
interface BottomSheetElementComponent extends Omit<BottomSheetComponent, "on" | "off"> {
|
|
1814
|
+
show: () => BottomSheetComponent;
|
|
1815
|
+
on: <T extends keyof BottomSheetElementEvents>(event: T, handler: NonNullable<BottomSheetElementEvents[T]>) => unknown;
|
|
1816
|
+
off: <T extends keyof BottomSheetElementEvents>(event: T, handler: NonNullable<BottomSheetElementEvents[T]>) => unknown;
|
|
1817
|
+
}
|
|
1818
|
+
|
|
1819
|
+
declare const bottomSheetSpec: {
|
|
1820
|
+
name: string;
|
|
1821
|
+
slots: readonly [
|
|
1822
|
+
"headline"
|
|
1823
|
+
];
|
|
1824
|
+
create: (config: import("./define.js").Config) => BottomSheetElementComponent;
|
|
1825
|
+
styles: string[];
|
|
1826
|
+
hostStyles: string;
|
|
1827
|
+
attributes: {
|
|
1828
|
+
open: {
|
|
1829
|
+
type: "boolean";
|
|
1830
|
+
update: (c: BottomSheetElementComponent, v: import("./define.js").AttributeValue, host: HTMLElement) => void;
|
|
1831
|
+
};
|
|
1832
|
+
expanded: {
|
|
1833
|
+
type: "boolean";
|
|
1834
|
+
update: (c: BottomSheetElementComponent, v: import("./define.js").AttributeValue) => void;
|
|
1835
|
+
};
|
|
1836
|
+
modal: {
|
|
1837
|
+
type: "boolean";
|
|
1838
|
+
config: string;
|
|
1839
|
+
};
|
|
1840
|
+
headline: {
|
|
1841
|
+
type: "string";
|
|
1842
|
+
config: string;
|
|
1843
|
+
update: (c: BottomSheetElementComponent, v: import("./define.js").AttributeValue, host: HTMLElement) => void;
|
|
1844
|
+
};
|
|
1845
|
+
"peek-height": {
|
|
1846
|
+
type: "number";
|
|
1847
|
+
config: string;
|
|
1848
|
+
};
|
|
1849
|
+
"max-width": {
|
|
1850
|
+
type: "number";
|
|
1851
|
+
config: string;
|
|
1852
|
+
};
|
|
1853
|
+
"no-drag-handle": {
|
|
1854
|
+
type: "boolean";
|
|
1855
|
+
config: string;
|
|
1856
|
+
};
|
|
1857
|
+
"no-close-on-scrim-click": {
|
|
1858
|
+
type: "boolean";
|
|
1859
|
+
config: string;
|
|
1860
|
+
};
|
|
1861
|
+
"no-close-on-escape": {
|
|
1862
|
+
type: "boolean";
|
|
1863
|
+
config: string;
|
|
1864
|
+
};
|
|
1865
|
+
"aria-label": {
|
|
1866
|
+
type: "string";
|
|
1867
|
+
update: (c: BottomSheetElementComponent, _v: import("./define.js").AttributeValue, host: HTMLElement) => void;
|
|
1868
|
+
};
|
|
1869
|
+
};
|
|
1870
|
+
methods: readonly [
|
|
1871
|
+
"show",
|
|
1872
|
+
"close",
|
|
1873
|
+
"expand",
|
|
1874
|
+
"collapse"
|
|
1875
|
+
];
|
|
1876
|
+
events: {
|
|
1877
|
+
open: {
|
|
1878
|
+
detail: () => null;
|
|
1879
|
+
state: true;
|
|
1880
|
+
};
|
|
1881
|
+
close: {
|
|
1882
|
+
detail: () => null;
|
|
1883
|
+
state: true;
|
|
1884
|
+
};
|
|
1885
|
+
expand: {
|
|
1886
|
+
detail: () => null;
|
|
1887
|
+
state: true;
|
|
1888
|
+
};
|
|
1889
|
+
collapse: {
|
|
1890
|
+
detail: () => null;
|
|
1891
|
+
state: true;
|
|
1892
|
+
};
|
|
1893
|
+
};
|
|
1894
|
+
config: (host: HTMLElement) => {
|
|
1895
|
+
host: HTMLElement;
|
|
1896
|
+
};
|
|
1897
|
+
setup: (host: import("./define.js").ElementHost<BottomSheetElementComponent>, component: BottomSheetElementComponent) => () => void;
|
|
1898
|
+
};
|
|
1899
|
+
|
|
1900
|
+
declare const bottomSheetElement: import("./define.js").ElementDefinition<BottomSheetElementComponent>;
|
|
1901
|
+
|
|
1902
|
+
type BottomSheetSpec = typeof bottomSheetSpec;
|
|
1903
|
+
|
|
1904
|
+
/** `<m-bottom-sheet>` as a ref or a query returns it. */
|
|
1905
|
+
type BottomSheetElement = ElementInstance<BottomSheetSpec, BottomSheetElementComponent>;
|
|
1906
|
+
|
|
1907
|
+
/** Registers `<m-bottom-sheet>` (or `<prefix-bottom-sheet>`). */
|
|
1908
|
+
declare const defineBottomSheet: (options?: DefineOptions) => string;
|
|
1909
|
+
|
|
1910
|
+
declare global {
|
|
1911
|
+
/** `document.querySelector("m-…")` and `createElement` return the element's type (the default prefix). */
|
|
1912
|
+
interface HTMLElementTagNameMap {
|
|
1913
|
+
"m-bottom-sheet": BottomSheetElement;
|
|
1914
|
+
}
|
|
1915
|
+
}
|
|
1916
|
+
|
|
1917
|
+
declare const cardSpec: {
|
|
1918
|
+
name: string;
|
|
1919
|
+
slots: readonly [
|
|
1920
|
+
"avatar",
|
|
1921
|
+
"header-action",
|
|
1922
|
+
"headline",
|
|
1923
|
+
"subhead",
|
|
1924
|
+
"media",
|
|
1925
|
+
"actions"
|
|
1926
|
+
];
|
|
1927
|
+
create: (config: Config) => CardComponent;
|
|
1928
|
+
styles: string[];
|
|
1929
|
+
hostStyles: string;
|
|
1930
|
+
attributes: {
|
|
1931
|
+
variant: {
|
|
1932
|
+
type: "string";
|
|
1933
|
+
config: string;
|
|
1934
|
+
};
|
|
1935
|
+
clickable: {
|
|
1936
|
+
type: "boolean";
|
|
1937
|
+
config: string;
|
|
1938
|
+
};
|
|
1939
|
+
"full-width": {
|
|
1940
|
+
type: "boolean";
|
|
1941
|
+
config: string;
|
|
1942
|
+
update: (c: CardComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
1943
|
+
};
|
|
1944
|
+
headline: {
|
|
1945
|
+
type: "string";
|
|
1946
|
+
config: string;
|
|
1947
|
+
};
|
|
1948
|
+
subhead: {
|
|
1949
|
+
type: "string";
|
|
1950
|
+
config: string;
|
|
1951
|
+
};
|
|
1952
|
+
"actions-align": {
|
|
1953
|
+
type: "string";
|
|
1954
|
+
config: string;
|
|
1955
|
+
};
|
|
1956
|
+
disabled: {
|
|
1957
|
+
type: "boolean";
|
|
1958
|
+
update: (c: CardComponent, v: import("./define.js").AttributeValue) => void;
|
|
1959
|
+
};
|
|
1960
|
+
"aria-label": {
|
|
1961
|
+
type: "string";
|
|
1962
|
+
config: string;
|
|
1963
|
+
update: (c: CardComponent, v: import("./define.js").AttributeValue) => void;
|
|
1964
|
+
};
|
|
1965
|
+
};
|
|
1966
|
+
config: (host: HTMLElement) => Config;
|
|
1967
|
+
setup: (host: import("./define.js").ElementHost<CardComponent>, c: CardComponent) => void;
|
|
1968
|
+
observeChildren: (host: HTMLElement, component: CardComponent) => boolean;
|
|
1969
|
+
};
|
|
1970
|
+
|
|
1971
|
+
declare const cardElement: import("./define.js").ElementDefinition<CardComponent>;
|
|
1972
|
+
|
|
1973
|
+
type CardSpec = typeof cardSpec;
|
|
1974
|
+
|
|
1975
|
+
/** `<m-card>` as a ref or a query returns it. */
|
|
1976
|
+
type CardElement = ElementInstance<CardSpec, CardComponent>;
|
|
1977
|
+
|
|
1978
|
+
/** Registers `<m-card>` (or `<prefix-card>`). */
|
|
1979
|
+
declare const defineCard: (options?: DefineOptions) => string;
|
|
1980
|
+
|
|
1981
|
+
declare global {
|
|
1982
|
+
/** `document.querySelector("m-…")` and `createElement` return the element's type (the default prefix). */
|
|
1983
|
+
interface HTMLElementTagNameMap {
|
|
1984
|
+
"m-card": CardElement;
|
|
1985
|
+
}
|
|
1986
|
+
}
|
|
1987
|
+
|
|
1988
|
+
/** The date picker, with what the element adds to it. */
|
|
1989
|
+
interface DatepickerElementComponent extends DatePickerComponent {
|
|
1990
|
+
/** Opens the calendar, unless the picker is disabled or read-only. */
|
|
1991
|
+
show: () => void;
|
|
1992
|
+
}
|
|
1993
|
+
|
|
1994
|
+
declare const datepickerSpec: {
|
|
1995
|
+
name: string;
|
|
1996
|
+
create: (config: import("./define.js").Config) => DatepickerElementComponent;
|
|
1997
|
+
styles: string[];
|
|
1998
|
+
hostStyles: string;
|
|
1999
|
+
attributes: {
|
|
2000
|
+
variant: {
|
|
2001
|
+
type: "string";
|
|
2002
|
+
config: string;
|
|
2003
|
+
};
|
|
2004
|
+
"selection-mode": {
|
|
2005
|
+
type: "string";
|
|
2006
|
+
config: string;
|
|
2007
|
+
};
|
|
2008
|
+
value: {
|
|
2009
|
+
type: "string";
|
|
2010
|
+
config: string;
|
|
2011
|
+
update: (c: DatepickerElementComponent, v: import("./define.js").AttributeValue) => void;
|
|
2012
|
+
};
|
|
2013
|
+
min: {
|
|
2014
|
+
type: "string";
|
|
2015
|
+
config: string;
|
|
2016
|
+
};
|
|
2017
|
+
max: {
|
|
2018
|
+
type: "string";
|
|
2019
|
+
config: string;
|
|
2020
|
+
};
|
|
2021
|
+
"date-format": {
|
|
2022
|
+
type: "string";
|
|
2023
|
+
config: string;
|
|
2024
|
+
};
|
|
2025
|
+
locale: {
|
|
2026
|
+
type: "string";
|
|
2027
|
+
config: string;
|
|
2028
|
+
};
|
|
2029
|
+
"initial-view": {
|
|
2030
|
+
type: "string";
|
|
2031
|
+
config: string;
|
|
2032
|
+
};
|
|
2033
|
+
"close-on-select": {
|
|
2034
|
+
type: "boolean";
|
|
2035
|
+
config: string;
|
|
2036
|
+
};
|
|
2037
|
+
label: {
|
|
2038
|
+
type: "string";
|
|
2039
|
+
config: string;
|
|
2040
|
+
};
|
|
2041
|
+
"aria-label": {
|
|
2042
|
+
type: "string";
|
|
2043
|
+
config: string;
|
|
2044
|
+
update: (c: DatepickerElementComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
2045
|
+
};
|
|
2046
|
+
"supporting-text": {
|
|
2047
|
+
type: "string";
|
|
2048
|
+
config: string;
|
|
2049
|
+
update: (c: DatepickerElementComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
2050
|
+
};
|
|
2051
|
+
required: {
|
|
2052
|
+
type: "boolean";
|
|
2053
|
+
config: string;
|
|
2054
|
+
update: (c: DatepickerElementComponent, v: import("./define.js").AttributeValue) => void;
|
|
2055
|
+
};
|
|
2056
|
+
disabled: {
|
|
2057
|
+
type: "boolean";
|
|
2058
|
+
config: string;
|
|
2059
|
+
update: (c: DatepickerElementComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
2060
|
+
};
|
|
2061
|
+
readonly: {
|
|
2062
|
+
type: "boolean";
|
|
2063
|
+
config: string;
|
|
2064
|
+
update: (c: DatepickerElementComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
2065
|
+
};
|
|
2066
|
+
open: {
|
|
2067
|
+
type: "boolean";
|
|
2068
|
+
update: (c: DatepickerElementComponent, v: import("./define.js").AttributeValue, host: HTMLElement) => void;
|
|
2069
|
+
};
|
|
2070
|
+
};
|
|
2071
|
+
properties: {
|
|
2072
|
+
value: {
|
|
2073
|
+
get: (c: DatepickerElementComponent) => string;
|
|
2074
|
+
set: (c: DatepickerElementComponent, value: unknown) => void;
|
|
2075
|
+
};
|
|
2076
|
+
};
|
|
2077
|
+
model: "value";
|
|
2078
|
+
methods: readonly [
|
|
2079
|
+
"show",
|
|
2080
|
+
"close"
|
|
2081
|
+
];
|
|
2082
|
+
events: {
|
|
2083
|
+
change: {
|
|
2084
|
+
detail: (payload: unknown) => {
|
|
2085
|
+
value: string;
|
|
2086
|
+
date: Date | Date[] | null;
|
|
2087
|
+
};
|
|
2088
|
+
};
|
|
2089
|
+
open: {
|
|
2090
|
+
detail: () => null;
|
|
2091
|
+
state: true;
|
|
2092
|
+
};
|
|
2093
|
+
close: {
|
|
2094
|
+
detail: () => null;
|
|
2095
|
+
state: true;
|
|
2096
|
+
};
|
|
2097
|
+
};
|
|
2098
|
+
form: {
|
|
2099
|
+
value: (c: DatepickerElementComponent) => string;
|
|
2100
|
+
events: string[];
|
|
2101
|
+
activate: (c: DatepickerElementComponent) => void;
|
|
2102
|
+
state: (c: DatepickerElementComponent) => string;
|
|
2103
|
+
restore: (c: DatepickerElementComponent, state: string) => void;
|
|
2104
|
+
disable: (c: DatepickerElementComponent, disabled: boolean) => undefined;
|
|
2105
|
+
};
|
|
2106
|
+
setup: (host: ElementHost<DatepickerElementComponent>, c: DatepickerElementComponent) => () => void;
|
|
2107
|
+
};
|
|
2108
|
+
|
|
2109
|
+
declare const datepickerElement: import("./define.js").ElementDefinition<DatepickerElementComponent>;
|
|
2110
|
+
|
|
2111
|
+
type DatepickerSpec = typeof datepickerSpec;
|
|
2112
|
+
|
|
2113
|
+
/** `<m-datepicker>` as a ref or a query returns it. */
|
|
2114
|
+
type DatepickerElement = ElementInstance<DatepickerSpec, DatepickerElementComponent>;
|
|
2115
|
+
|
|
2116
|
+
/** Registers `<m-datepicker>` (or `<prefix-datepicker>`). */
|
|
2117
|
+
declare const defineDatepicker: (options?: DefineOptions) => string;
|
|
2118
|
+
|
|
2119
|
+
declare global {
|
|
2120
|
+
/** `document.querySelector("m-…")` and `createElement` return the element's type (the default prefix). */
|
|
2121
|
+
interface HTMLElementTagNameMap {
|
|
2122
|
+
"m-datepicker": DatepickerElement;
|
|
2123
|
+
}
|
|
2124
|
+
}
|
|
2125
|
+
|
|
2126
|
+
declare const checkboxSpec: {
|
|
2127
|
+
name: string;
|
|
2128
|
+
create: (config: import("./define.js").Config) => CheckboxComponent;
|
|
2129
|
+
styles: string[];
|
|
2130
|
+
hostStyles: string;
|
|
2131
|
+
attributes: {
|
|
2132
|
+
checked: {
|
|
2133
|
+
type: "boolean";
|
|
2134
|
+
config: string;
|
|
2135
|
+
update: (c: CheckboxComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
2136
|
+
};
|
|
2137
|
+
disabled: {
|
|
2138
|
+
type: "boolean";
|
|
2139
|
+
config: string;
|
|
2140
|
+
update: (c: CheckboxComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
2141
|
+
};
|
|
2142
|
+
required: {
|
|
2143
|
+
type: "boolean";
|
|
2144
|
+
config: string;
|
|
2145
|
+
};
|
|
2146
|
+
value: {
|
|
2147
|
+
type: "string";
|
|
2148
|
+
config: string;
|
|
2149
|
+
update: (c: CheckboxComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
2150
|
+
};
|
|
2151
|
+
error: {
|
|
2152
|
+
type: "boolean";
|
|
2153
|
+
config: string;
|
|
2154
|
+
update: (c: CheckboxComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
2155
|
+
};
|
|
2156
|
+
"label-position": {
|
|
2157
|
+
type: "string";
|
|
2158
|
+
config: string;
|
|
2159
|
+
};
|
|
2160
|
+
"aria-label": {
|
|
2161
|
+
type: "string";
|
|
2162
|
+
config: string;
|
|
2163
|
+
};
|
|
2164
|
+
};
|
|
2165
|
+
properties: {
|
|
2166
|
+
checked: {
|
|
2167
|
+
get: (c: CheckboxComponent) => boolean;
|
|
2168
|
+
set: (c: CheckboxComponent, v: unknown) => undefined;
|
|
2169
|
+
config: string;
|
|
2170
|
+
};
|
|
2171
|
+
indeterminate: {
|
|
2172
|
+
get: (c: CheckboxComponent) => boolean;
|
|
2173
|
+
set: (c: CheckboxComponent, v: unknown) => undefined;
|
|
2174
|
+
config: string;
|
|
2175
|
+
};
|
|
2176
|
+
};
|
|
2177
|
+
methods: readonly [
|
|
2178
|
+
"toggle",
|
|
2179
|
+
"check",
|
|
2180
|
+
"uncheck"
|
|
2181
|
+
];
|
|
2182
|
+
model: "checked";
|
|
2183
|
+
events: {
|
|
2184
|
+
change: {
|
|
2185
|
+
detail: (payload: unknown) => {
|
|
2186
|
+
checked: boolean;
|
|
2187
|
+
value: boolean;
|
|
2188
|
+
valueAttribute: string;
|
|
2189
|
+
nativeEvent: Event | undefined;
|
|
2190
|
+
};
|
|
2191
|
+
};
|
|
2192
|
+
};
|
|
2193
|
+
slot: {
|
|
2194
|
+
attribute: "label";
|
|
2195
|
+
config: string;
|
|
2196
|
+
};
|
|
2197
|
+
form: {
|
|
2198
|
+
value: (c: CheckboxComponent) => string | null;
|
|
2199
|
+
control: (c: CheckboxComponent) => HTMLInputElement;
|
|
2200
|
+
events: string[];
|
|
2201
|
+
activate: (c: CheckboxComponent) => void;
|
|
2202
|
+
state: (c: CheckboxComponent) => "checked" | "unchecked";
|
|
2203
|
+
restore: (c: CheckboxComponent, state: string) => undefined;
|
|
2204
|
+
disable: (c: CheckboxComponent, disabled: boolean) => undefined;
|
|
2205
|
+
};
|
|
2206
|
+
};
|
|
2207
|
+
|
|
2208
|
+
declare const checkboxElement: import("./define.js").ElementDefinition<CheckboxComponent>;
|
|
2209
|
+
|
|
2210
|
+
type CheckboxSpec = typeof checkboxSpec;
|
|
2211
|
+
|
|
2212
|
+
/** `<m-checkbox>` as a ref or a query returns it. */
|
|
2213
|
+
type CheckboxElement = ElementInstance<CheckboxSpec, CheckboxComponent>;
|
|
2214
|
+
|
|
2215
|
+
/** Registers `<m-checkbox>` (or `<prefix-checkbox>`). */
|
|
2216
|
+
declare const defineCheckbox: (options?: DefineOptions) => string;
|
|
2217
|
+
|
|
2218
|
+
declare global {
|
|
2219
|
+
/** `document.querySelector("m-…")` and `createElement` return the element's type (the default prefix). */
|
|
2220
|
+
interface HTMLElementTagNameMap {
|
|
2221
|
+
"m-checkbox": CheckboxElement;
|
|
2222
|
+
}
|
|
2223
|
+
}
|
|
2224
|
+
|
|
2225
|
+
declare const tooltipSpec: {
|
|
2226
|
+
name: string;
|
|
2227
|
+
create: (config: import("./define.js").Config) => TooltipComponent;
|
|
2228
|
+
styles: string[];
|
|
2229
|
+
hostStyles: string;
|
|
2230
|
+
attributes: {
|
|
2231
|
+
for: {
|
|
2232
|
+
type: "string";
|
|
2233
|
+
update: (c: TooltipComponent) => void;
|
|
2234
|
+
};
|
|
2235
|
+
text: {
|
|
2236
|
+
type: "string";
|
|
2237
|
+
config: string;
|
|
2238
|
+
update: (c: TooltipComponent, _v: import("./define.js").AttributeValue, host: HTMLElement) => void;
|
|
2239
|
+
};
|
|
2240
|
+
position: {
|
|
2241
|
+
type: "string";
|
|
2242
|
+
config: string;
|
|
2243
|
+
update: (c: TooltipComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
2244
|
+
};
|
|
2245
|
+
variant: {
|
|
2246
|
+
type: "string";
|
|
2247
|
+
config: string;
|
|
2248
|
+
};
|
|
2249
|
+
"show-delay": {
|
|
2250
|
+
type: "number";
|
|
2251
|
+
config: string;
|
|
2252
|
+
};
|
|
2253
|
+
"hide-delay": {
|
|
2254
|
+
type: "number";
|
|
2255
|
+
config: string;
|
|
2256
|
+
};
|
|
2257
|
+
"no-show-on-hover": {
|
|
2258
|
+
type: "boolean";
|
|
2259
|
+
config: string;
|
|
2260
|
+
};
|
|
2261
|
+
"no-show-on-focus": {
|
|
2262
|
+
type: "boolean";
|
|
2263
|
+
config: string;
|
|
2264
|
+
};
|
|
2265
|
+
};
|
|
2266
|
+
properties: {
|
|
2267
|
+
target: {
|
|
2268
|
+
get: (c: TooltipComponent) => HTMLElement | null;
|
|
2269
|
+
set: (c: TooltipComponent, v: unknown) => void;
|
|
2270
|
+
};
|
|
2271
|
+
};
|
|
2272
|
+
methods: readonly [
|
|
2273
|
+
"show",
|
|
2274
|
+
"hide"
|
|
2275
|
+
];
|
|
2276
|
+
config: (host: HTMLElement) => {
|
|
2277
|
+
text?: undefined;
|
|
2278
|
+
} | {
|
|
2279
|
+
text: string;
|
|
2280
|
+
};
|
|
2281
|
+
setup: (host: import("./define.js").ElementHost<TooltipComponent>, component: TooltipComponent) => () => void;
|
|
2282
|
+
observeChildren: (host: import("./define.js").ElementHost<TooltipComponent>, component: TooltipComponent) => true;
|
|
2283
|
+
};
|
|
2284
|
+
|
|
2285
|
+
declare const tooltipElement: import("./define.js").ElementDefinition<TooltipComponent>;
|
|
2286
|
+
|
|
2287
|
+
type TooltipSpec = typeof tooltipSpec;
|
|
2288
|
+
|
|
2289
|
+
/** `<m-tooltip>` as a ref or a query returns it. */
|
|
2290
|
+
type TooltipElement = ElementInstance<TooltipSpec, TooltipComponent>;
|
|
2291
|
+
|
|
2292
|
+
/** Registers `<m-tooltip>` (or `<prefix-tooltip>`). */
|
|
2293
|
+
declare const defineTooltip: (options?: DefineOptions) => string;
|
|
2294
|
+
|
|
2295
|
+
declare global {
|
|
2296
|
+
/** `document.querySelector("m-…")` and `createElement` return the element's type (the default prefix). */
|
|
2297
|
+
interface HTMLElementTagNameMap {
|
|
2298
|
+
"m-tooltip": TooltipElement;
|
|
2299
|
+
}
|
|
2300
|
+
}
|
|
2301
|
+
|
|
2302
|
+
declare const tabsSpec: {
|
|
2303
|
+
name: string;
|
|
2304
|
+
create: (config: Config) => TabsComponent;
|
|
2305
|
+
styles: string[];
|
|
2306
|
+
hostStyles: string;
|
|
2307
|
+
attributes: {
|
|
2308
|
+
"aria-label": {
|
|
2309
|
+
type: "string";
|
|
2310
|
+
config: string;
|
|
2311
|
+
update: (c: TabsComponent, v: import("./define.js").AttributeValue) => void;
|
|
2312
|
+
};
|
|
2313
|
+
variant: {
|
|
2314
|
+
type: "string";
|
|
2315
|
+
config: string;
|
|
2316
|
+
};
|
|
2317
|
+
value: {
|
|
2318
|
+
type: "string";
|
|
2319
|
+
};
|
|
2320
|
+
};
|
|
2321
|
+
properties: {
|
|
2322
|
+
value: {
|
|
2323
|
+
get: (c: TabsComponent) => string | null;
|
|
2324
|
+
set: (c: TabsComponent, v: unknown) => undefined;
|
|
2325
|
+
};
|
|
2326
|
+
};
|
|
2327
|
+
model: "value";
|
|
2328
|
+
events: {
|
|
2329
|
+
change: {
|
|
2330
|
+
detail: (payload: unknown) => {
|
|
2331
|
+
value: string | null;
|
|
2332
|
+
};
|
|
2333
|
+
};
|
|
2334
|
+
};
|
|
2335
|
+
config: (host: HTMLElement) => Config;
|
|
2336
|
+
observeChildren: (host: HTMLElement, component: TabsComponent) => boolean;
|
|
2337
|
+
};
|
|
2338
|
+
|
|
2339
|
+
declare const tabsElement: import("./define.js").ElementDefinition<TabsComponent>;
|
|
2340
|
+
|
|
2341
|
+
type TabsSpec = typeof tabsSpec;
|
|
2342
|
+
|
|
2343
|
+
/** `<m-tabs>` as a ref or a query returns it. */
|
|
2344
|
+
type TabsElement = ElementInstance<TabsSpec, TabsComponent>;
|
|
2345
|
+
|
|
2346
|
+
/** `<m-tab>` declares one tab and renders nothing. */
|
|
2347
|
+
declare const tabDeclaration: {
|
|
2348
|
+
readonly name: "tab";
|
|
2349
|
+
readonly attributes: {
|
|
2350
|
+
readonly value: {
|
|
2351
|
+
readonly type: "string";
|
|
2352
|
+
};
|
|
2353
|
+
readonly label: {
|
|
2354
|
+
readonly type: "string";
|
|
2355
|
+
};
|
|
2356
|
+
/** Markup (HTML). */
|
|
2357
|
+
readonly icon: {
|
|
2358
|
+
readonly type: "string";
|
|
2359
|
+
};
|
|
2360
|
+
readonly badge: {
|
|
2361
|
+
readonly type: "string";
|
|
2362
|
+
};
|
|
2363
|
+
readonly disabled: {
|
|
2364
|
+
readonly type: "boolean";
|
|
2365
|
+
};
|
|
2366
|
+
};
|
|
2367
|
+
};
|
|
2368
|
+
|
|
2369
|
+
type TabAttributes = ElementAttributes<typeof tabDeclaration>;
|
|
2370
|
+
|
|
2371
|
+
/** Registers `<m-tabs>` and `<m-tab>` (or with another prefix). */
|
|
2372
|
+
declare const defineTabs: (options?: DefineOptions) => string;
|
|
2373
|
+
|
|
2374
|
+
declare global {
|
|
2375
|
+
/** `document.querySelector("m-…")` and `createElement` return the element's type (the default prefix). */
|
|
2376
|
+
interface HTMLElementTagNameMap {
|
|
2377
|
+
"m-tabs": TabsElement;
|
|
2378
|
+
"m-tab": HTMLElement & TabAttributes;
|
|
2379
|
+
}
|
|
2380
|
+
}
|
|
2381
|
+
|
|
2382
|
+
/** The live selection: one value, several, or none. */
|
|
2383
|
+
type ButtonGroupValue = string | string[] | null;
|
|
2384
|
+
|
|
2385
|
+
declare const buttonGroupSpec: {
|
|
2386
|
+
name: string;
|
|
2387
|
+
create: (config: Config) => ButtonGroupComponent;
|
|
2388
|
+
styles: string[];
|
|
2389
|
+
hostStyles: string;
|
|
2390
|
+
attributes: {
|
|
2391
|
+
variant: {
|
|
2392
|
+
type: "string";
|
|
2393
|
+
config: string;
|
|
2394
|
+
update: (c: ButtonGroupComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
2395
|
+
};
|
|
2396
|
+
kind: {
|
|
2397
|
+
type: "string";
|
|
2398
|
+
config: string;
|
|
2399
|
+
};
|
|
2400
|
+
selection: {
|
|
2401
|
+
type: "string";
|
|
2402
|
+
config: string;
|
|
2403
|
+
};
|
|
2404
|
+
required: {
|
|
2405
|
+
type: "boolean";
|
|
2406
|
+
config: string;
|
|
2407
|
+
};
|
|
2408
|
+
size: {
|
|
2409
|
+
type: "string";
|
|
2410
|
+
config: string;
|
|
2411
|
+
};
|
|
2412
|
+
shape: {
|
|
2413
|
+
type: "string";
|
|
2414
|
+
config: string;
|
|
2415
|
+
};
|
|
2416
|
+
labels: {
|
|
2417
|
+
type: "string";
|
|
2418
|
+
config: string;
|
|
2419
|
+
};
|
|
2420
|
+
orientation: {
|
|
2421
|
+
type: "string";
|
|
2422
|
+
config: string;
|
|
2423
|
+
update: (c: ButtonGroupComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
2424
|
+
};
|
|
2425
|
+
density: {
|
|
2426
|
+
type: "string";
|
|
2427
|
+
config: string;
|
|
2428
|
+
update: (c: ButtonGroupComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
2429
|
+
};
|
|
2430
|
+
"equal-width": {
|
|
2431
|
+
type: "boolean";
|
|
2432
|
+
config: string;
|
|
2433
|
+
};
|
|
2434
|
+
"expanded-ratio": {
|
|
2435
|
+
type: "number";
|
|
2436
|
+
config: string;
|
|
2437
|
+
};
|
|
2438
|
+
disabled: {
|
|
2439
|
+
type: "boolean";
|
|
2440
|
+
config: string;
|
|
2441
|
+
update: (c: ButtonGroupComponent, v: import("./define.js").AttributeValue, host: HTMLElement) => void;
|
|
2442
|
+
};
|
|
2443
|
+
"aria-label": {
|
|
2444
|
+
type: "string";
|
|
2445
|
+
config: string;
|
|
2446
|
+
update: (c: ButtonGroupComponent, v: import("./define.js").AttributeValue) => void;
|
|
2447
|
+
};
|
|
2448
|
+
value: {
|
|
2449
|
+
type: "string";
|
|
2450
|
+
update: (c: ButtonGroupComponent, v: import("./define.js").AttributeValue) => void;
|
|
2451
|
+
};
|
|
2452
|
+
};
|
|
2453
|
+
properties: {
|
|
2454
|
+
value: {
|
|
2455
|
+
get: (c: ButtonGroupComponent) => ButtonGroupValue;
|
|
2456
|
+
set: (c: ButtonGroupComponent, v: unknown) => void;
|
|
2457
|
+
};
|
|
2458
|
+
};
|
|
2459
|
+
model: "value";
|
|
2460
|
+
events: {
|
|
2461
|
+
change: {
|
|
2462
|
+
detail: (payload: unknown) => {
|
|
2463
|
+
value: ButtonGroupValue;
|
|
2464
|
+
};
|
|
2465
|
+
};
|
|
2466
|
+
action: {
|
|
2467
|
+
detail: (payload: unknown) => {
|
|
2468
|
+
value: string;
|
|
2469
|
+
index: number;
|
|
2470
|
+
};
|
|
2471
|
+
state: true;
|
|
2472
|
+
};
|
|
2473
|
+
};
|
|
2474
|
+
config: (host: HTMLElement) => Config;
|
|
2475
|
+
setup: (host: ElementHost<ButtonGroupComponent>, component: ButtonGroupComponent) => () => undefined;
|
|
2476
|
+
observeChildren: (host: ElementHost<ButtonGroupComponent>, component: ButtonGroupComponent) => boolean;
|
|
2477
|
+
};
|
|
2478
|
+
|
|
2479
|
+
declare const buttonGroupElement: import("./define.js").ElementDefinition<ButtonGroupComponent>;
|
|
2480
|
+
|
|
2481
|
+
type ButtonGroupSpec = typeof buttonGroupSpec;
|
|
2482
|
+
|
|
2483
|
+
/** `<m-button-group>` as a ref or a query returns it. */
|
|
2484
|
+
type ButtonGroupElement = ElementInstance<ButtonGroupSpec, ButtonGroupComponent>;
|
|
2485
|
+
|
|
2486
|
+
/** `<m-button-group-item>` declares one button and renders nothing. */
|
|
2487
|
+
declare const buttonGroupItemDeclaration: {
|
|
2488
|
+
readonly name: "button-group-item";
|
|
2489
|
+
readonly attributes: {
|
|
2490
|
+
readonly value: {
|
|
2491
|
+
readonly type: "string";
|
|
2492
|
+
};
|
|
2493
|
+
readonly label: {
|
|
2494
|
+
readonly type: "string";
|
|
2495
|
+
};
|
|
2496
|
+
/** Markup (HTML). */
|
|
2497
|
+
readonly icon: {
|
|
2498
|
+
readonly type: "string";
|
|
2499
|
+
};
|
|
2500
|
+
/** Markup (HTML). */
|
|
2501
|
+
readonly "selected-icon": {
|
|
2502
|
+
readonly type: "string";
|
|
2503
|
+
};
|
|
2504
|
+
readonly "aria-label": {
|
|
2505
|
+
readonly type: "string";
|
|
2506
|
+
};
|
|
2507
|
+
readonly disabled: {
|
|
2508
|
+
readonly type: "boolean";
|
|
2509
|
+
};
|
|
2510
|
+
readonly selected: {
|
|
2511
|
+
readonly type: "boolean";
|
|
2512
|
+
};
|
|
2513
|
+
};
|
|
2514
|
+
};
|
|
2515
|
+
|
|
2516
|
+
type ButtonGroupItemAttributes = ElementAttributes<typeof buttonGroupItemDeclaration>;
|
|
2517
|
+
|
|
2518
|
+
/** Registers `<m-button-group>` and `<m-button-group-item>` (or with another prefix). */
|
|
2519
|
+
declare const defineButtonGroup: (options?: DefineOptions) => string;
|
|
2520
|
+
|
|
2521
|
+
declare global {
|
|
2522
|
+
/** `document.querySelector("m-…")` and `createElement` return the element's type (the default prefix). */
|
|
2523
|
+
interface HTMLElementTagNameMap {
|
|
2524
|
+
"m-button-group": ButtonGroupElement;
|
|
2525
|
+
"m-button-group-item": HTMLElement & ButtonGroupItemAttributes;
|
|
2526
|
+
}
|
|
2527
|
+
}
|
|
2528
|
+
|
|
2529
|
+
declare const fabSpec: {
|
|
2530
|
+
name: string;
|
|
2531
|
+
create: (config: import("./define.js").Config) => FabComponent;
|
|
2532
|
+
styles: string[];
|
|
2533
|
+
hostStyles: string;
|
|
2534
|
+
attributes: {
|
|
2535
|
+
variant: {
|
|
2536
|
+
type: "string";
|
|
2537
|
+
config: string;
|
|
2538
|
+
};
|
|
2539
|
+
size: {
|
|
2540
|
+
type: "string";
|
|
2541
|
+
config: string;
|
|
2542
|
+
};
|
|
2543
|
+
disabled: {
|
|
2544
|
+
type: "boolean";
|
|
2545
|
+
config: string;
|
|
2546
|
+
update: (c: FabComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
2547
|
+
};
|
|
2548
|
+
/** Markup (HTML). */
|
|
2549
|
+
icon: {
|
|
2550
|
+
type: "string";
|
|
2551
|
+
config: string;
|
|
2552
|
+
update: (c: FabComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
2553
|
+
};
|
|
2554
|
+
/** @deprecated Physical alias, does not mirror in RTL; removal in 4.0. */
|
|
2555
|
+
position: {
|
|
2556
|
+
type: "string";
|
|
2557
|
+
config: string;
|
|
2558
|
+
};
|
|
2559
|
+
placement: {
|
|
2560
|
+
type: "string";
|
|
2561
|
+
config: string;
|
|
2562
|
+
};
|
|
2563
|
+
value: {
|
|
2564
|
+
type: "string";
|
|
2565
|
+
config: string;
|
|
2566
|
+
update: (c: FabComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
2567
|
+
};
|
|
2568
|
+
type: {
|
|
2569
|
+
readonly type: "string";
|
|
2570
|
+
readonly update: () => undefined;
|
|
2571
|
+
};
|
|
2572
|
+
"aria-label": {
|
|
2573
|
+
type: "string";
|
|
2574
|
+
config: string;
|
|
2575
|
+
};
|
|
2576
|
+
};
|
|
2577
|
+
methods: readonly [
|
|
2578
|
+
"lower",
|
|
2579
|
+
"raise"
|
|
2580
|
+
];
|
|
2581
|
+
form: import("./define.js").FormSpec<FabComponent>;
|
|
2582
|
+
setup: <C extends import("./define.js").ElementComponent>(host: import("./define.js").ElementHost<C>) => (() => void);
|
|
2583
|
+
};
|
|
2584
|
+
|
|
2585
|
+
declare const fabElement: import("./define.js").ElementDefinition<FabComponent>;
|
|
2586
|
+
|
|
2587
|
+
type FabSpec = typeof fabSpec;
|
|
2588
|
+
|
|
2589
|
+
/** `<m-fab>` as a ref or a query returns it. */
|
|
2590
|
+
type FabElement = ElementInstance<FabSpec, FabComponent>;
|
|
2591
|
+
|
|
2592
|
+
/** Registers `<m-fab>` (or `<prefix-fab>`). */
|
|
2593
|
+
declare const defineFab: (options?: DefineOptions) => string;
|
|
2594
|
+
|
|
2595
|
+
declare global {
|
|
2596
|
+
/** `document.querySelector("m-…")` and `createElement` return the element's type (the default prefix). */
|
|
2597
|
+
interface HTMLElementTagNameMap {
|
|
2598
|
+
"m-fab": FabElement;
|
|
2599
|
+
}
|
|
2600
|
+
}
|
|
2601
|
+
|
|
2602
|
+
|
|
2603
|
+
declare const declaredItems: (host: HTMLElement, active: string | null) => NavigationRailItemConfig[];
|
|
2604
|
+
|
|
2605
|
+
declare const navigationRailSpec: {
|
|
2606
|
+
name: string;
|
|
2607
|
+
slots: readonly [
|
|
2608
|
+
"header"
|
|
2609
|
+
];
|
|
2610
|
+
create: (config: Config) => NavigationRailComponent;
|
|
2611
|
+
styles: string[];
|
|
2612
|
+
hostStyles: string;
|
|
2613
|
+
attributes: {
|
|
2614
|
+
value: {
|
|
2615
|
+
type: "string";
|
|
2616
|
+
update: (c: NavigationRailComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
2617
|
+
};
|
|
2618
|
+
expanded: {
|
|
2619
|
+
type: "boolean";
|
|
2620
|
+
config: string;
|
|
2621
|
+
update: (c: NavigationRailComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
2622
|
+
};
|
|
2623
|
+
"hide-when-collapsed": {
|
|
2624
|
+
type: "boolean";
|
|
2625
|
+
config: string;
|
|
2626
|
+
};
|
|
2627
|
+
layout: {
|
|
2628
|
+
type: "string";
|
|
2629
|
+
config: string;
|
|
2630
|
+
};
|
|
2631
|
+
"expanded-width": {
|
|
2632
|
+
type: "number";
|
|
2633
|
+
config: string;
|
|
2634
|
+
};
|
|
2635
|
+
"no-toggle": {
|
|
2636
|
+
type: "boolean";
|
|
2637
|
+
};
|
|
2638
|
+
"no-ripple": {
|
|
2639
|
+
type: "boolean";
|
|
2640
|
+
};
|
|
2641
|
+
"expand-label": {
|
|
2642
|
+
type: "string";
|
|
2643
|
+
config: string;
|
|
2644
|
+
};
|
|
2645
|
+
"collapse-label": {
|
|
2646
|
+
type: "string";
|
|
2647
|
+
config: string;
|
|
2648
|
+
};
|
|
2649
|
+
/** Markup (HTML). */
|
|
2650
|
+
"expand-icon": {
|
|
2651
|
+
type: "string";
|
|
2652
|
+
config: string;
|
|
2653
|
+
};
|
|
2654
|
+
/** Markup (HTML). */
|
|
2655
|
+
"collapse-icon": {
|
|
2656
|
+
type: "string";
|
|
2657
|
+
config: string;
|
|
2658
|
+
};
|
|
2659
|
+
"aria-label": {
|
|
2660
|
+
type: "string";
|
|
2661
|
+
config: string;
|
|
2662
|
+
update: (c: NavigationRailComponent, v: import("./define.js").AttributeValue) => void;
|
|
2663
|
+
};
|
|
2664
|
+
};
|
|
2665
|
+
properties: {
|
|
2666
|
+
value: {
|
|
2667
|
+
get: (c: NavigationRailComponent) => string | null;
|
|
2668
|
+
set: (c: NavigationRailComponent, v: unknown) => undefined;
|
|
2669
|
+
};
|
|
2670
|
+
};
|
|
2671
|
+
methods: readonly [
|
|
2672
|
+
"expand",
|
|
2673
|
+
"collapse",
|
|
2674
|
+
"toggle"
|
|
2675
|
+
];
|
|
2676
|
+
model: "value";
|
|
2677
|
+
events: {
|
|
2678
|
+
change: {
|
|
2679
|
+
detail: (payload: unknown) => {
|
|
2680
|
+
value: string;
|
|
2681
|
+
};
|
|
2682
|
+
};
|
|
2683
|
+
expand: {
|
|
2684
|
+
detail: () => null;
|
|
2685
|
+
state: true;
|
|
2686
|
+
};
|
|
2687
|
+
collapse: {
|
|
2688
|
+
detail: () => null;
|
|
2689
|
+
state: true;
|
|
2690
|
+
};
|
|
2691
|
+
};
|
|
2692
|
+
config: (host: HTMLElement) => {
|
|
2693
|
+
host: HTMLElement;
|
|
2694
|
+
};
|
|
2695
|
+
setup: (host: ElementHost<NavigationRailComponent>, component: NavigationRailComponent) => () => NavigationRailComponent;
|
|
2696
|
+
observeChildren: (host: ElementHost<NavigationRailComponent>, component: NavigationRailComponent) => boolean;
|
|
2697
|
+
};
|
|
2698
|
+
|
|
2699
|
+
declare const navigationRailElement: import("./define.js").ElementDefinition<NavigationRailComponent>;
|
|
2700
|
+
|
|
2701
|
+
type NavigationRailSpec = typeof navigationRailSpec;
|
|
2702
|
+
|
|
2703
|
+
/** `<m-navigation-rail>` as a ref or a query returns it. */
|
|
2704
|
+
type NavigationRailElement = ElementInstance<NavigationRailSpec, NavigationRailComponent>;
|
|
2705
|
+
|
|
2706
|
+
/** `<m-navigation-rail-item>` declares one destination and renders nothing. */
|
|
2707
|
+
declare const navigationRailItemDeclaration: {
|
|
2708
|
+
readonly name: "navigation-rail-item";
|
|
2709
|
+
readonly attributes: {
|
|
2710
|
+
readonly value: {
|
|
2711
|
+
readonly type: "string";
|
|
2712
|
+
};
|
|
2713
|
+
readonly label: {
|
|
2714
|
+
readonly type: "string";
|
|
2715
|
+
};
|
|
2716
|
+
/** Markup (HTML). */
|
|
2717
|
+
readonly icon: {
|
|
2718
|
+
readonly type: "string";
|
|
2719
|
+
};
|
|
2720
|
+
/** Markup (HTML). */
|
|
2721
|
+
readonly "selected-icon": {
|
|
2722
|
+
readonly type: "string";
|
|
2723
|
+
};
|
|
2724
|
+
readonly href: {
|
|
2725
|
+
readonly type: "string";
|
|
2726
|
+
};
|
|
2727
|
+
readonly badge: {
|
|
2728
|
+
readonly type: "string";
|
|
2729
|
+
};
|
|
2730
|
+
readonly "badge-label": {
|
|
2731
|
+
readonly type: "string";
|
|
2732
|
+
};
|
|
2733
|
+
readonly disabled: {
|
|
2734
|
+
readonly type: "boolean";
|
|
2735
|
+
};
|
|
2736
|
+
};
|
|
2737
|
+
};
|
|
2738
|
+
|
|
2739
|
+
type NavigationRailItemAttributes = ElementAttributes<typeof navigationRailItemDeclaration>;
|
|
2740
|
+
|
|
2741
|
+
/** Registers `<m-navigation-rail>` and `<m-navigation-rail-item>` (or with another prefix). */
|
|
2742
|
+
declare const defineNavigationRail: (options?: DefineOptions) => string;
|
|
2743
|
+
|
|
2744
|
+
declare global {
|
|
2745
|
+
/** `document.querySelector("m-…")` and `createElement` return the element's type (the default prefix). */
|
|
2746
|
+
interface HTMLElementTagNameMap {
|
|
2747
|
+
"m-navigation-rail": NavigationRailElement;
|
|
2748
|
+
"m-navigation-rail-item": HTMLElement & NavigationRailItemAttributes;
|
|
2749
|
+
}
|
|
2750
|
+
}
|
|
2751
|
+
|
|
2752
|
+
declare const badgeSpec: {
|
|
2753
|
+
name: string;
|
|
2754
|
+
create: (config: import("./define.js").Config) => BadgeComponent;
|
|
2755
|
+
styles: string[];
|
|
2756
|
+
hostStyles: string;
|
|
2757
|
+
attributes: {
|
|
2758
|
+
label: {
|
|
2759
|
+
type: "string";
|
|
2760
|
+
config: string;
|
|
2761
|
+
update: (c: BadgeComponent, _v: import("./define.js").AttributeValue, host: HTMLElement) => void;
|
|
2762
|
+
};
|
|
2763
|
+
max: {
|
|
2764
|
+
type: "number";
|
|
2765
|
+
config: string;
|
|
2766
|
+
};
|
|
2767
|
+
variant: {
|
|
2768
|
+
type: "string";
|
|
2769
|
+
config: string;
|
|
2770
|
+
update: (c: BadgeComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
2771
|
+
};
|
|
2772
|
+
color: {
|
|
2773
|
+
type: "string";
|
|
2774
|
+
config: string;
|
|
2775
|
+
update: (c: BadgeComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
2776
|
+
};
|
|
2777
|
+
};
|
|
2778
|
+
properties: {
|
|
2779
|
+
visible: {
|
|
2780
|
+
get: (c: BadgeComponent) => boolean;
|
|
2781
|
+
set: (c: BadgeComponent, v: unknown) => undefined;
|
|
2782
|
+
config: string;
|
|
2783
|
+
};
|
|
2784
|
+
};
|
|
2785
|
+
config: (host: HTMLElement) => {
|
|
2786
|
+
label?: undefined;
|
|
2787
|
+
} | {
|
|
2788
|
+
label: string;
|
|
2789
|
+
};
|
|
2790
|
+
setup: (host: import("./define.js").ElementHost<BadgeComponent>, component: BadgeComponent) => undefined;
|
|
2791
|
+
observeChildren: (host: import("./define.js").ElementHost<BadgeComponent>, component: BadgeComponent) => true;
|
|
2792
|
+
};
|
|
2793
|
+
|
|
2794
|
+
declare const badgeElement: import("./define.js").ElementDefinition<BadgeComponent>;
|
|
2795
|
+
|
|
2796
|
+
type BadgeSpec = typeof badgeSpec;
|
|
2797
|
+
|
|
2798
|
+
/** `<m-badge>` as a ref or a query returns it. */
|
|
2799
|
+
type BadgeElement = ElementInstance<BadgeSpec, BadgeComponent>;
|
|
2800
|
+
|
|
2801
|
+
/** Registers `<m-badge>` (or `<prefix-badge>`). */
|
|
2802
|
+
declare const defineBadge: (options?: DefineOptions) => string;
|
|
2803
|
+
|
|
2804
|
+
declare global {
|
|
2805
|
+
/** `document.querySelector("m-…")` and `createElement` return the element's type (the default prefix). */
|
|
2806
|
+
interface HTMLElementTagNameMap {
|
|
2807
|
+
"m-badge": BadgeElement;
|
|
2808
|
+
}
|
|
2809
|
+
}
|
|
2810
|
+
|
|
2811
|
+
declare const drawerSpec: {
|
|
2812
|
+
name: string;
|
|
2813
|
+
create: (config: Config) => DrawerComponent;
|
|
2814
|
+
styles: string[];
|
|
2815
|
+
hostStyles: string;
|
|
2816
|
+
attributes: {
|
|
2817
|
+
value: {
|
|
2818
|
+
type: "string";
|
|
2819
|
+
update: (c: DrawerComponent, v: import("./define.js").AttributeValue) => void;
|
|
2820
|
+
};
|
|
2821
|
+
open: {
|
|
2822
|
+
type: "boolean";
|
|
2823
|
+
config: string;
|
|
2824
|
+
update: (c: DrawerComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
2825
|
+
};
|
|
2826
|
+
modal: {
|
|
2827
|
+
type: "boolean";
|
|
2828
|
+
config: string;
|
|
2829
|
+
};
|
|
2830
|
+
headline: {
|
|
2831
|
+
type: "string";
|
|
2832
|
+
config: string;
|
|
2833
|
+
update: (c: DrawerComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
2834
|
+
};
|
|
2835
|
+
position: {
|
|
2836
|
+
type: "string";
|
|
2837
|
+
config: string;
|
|
2838
|
+
};
|
|
2839
|
+
width: {
|
|
2840
|
+
type: "string";
|
|
2841
|
+
config: string;
|
|
2842
|
+
};
|
|
2843
|
+
dense: {
|
|
2844
|
+
type: "boolean";
|
|
2845
|
+
config: string;
|
|
2846
|
+
};
|
|
2847
|
+
"no-close-on-scrim-click": {
|
|
2848
|
+
type: "boolean";
|
|
2849
|
+
update: () => undefined;
|
|
2850
|
+
};
|
|
2851
|
+
"no-close-on-escape": {
|
|
2852
|
+
type: "boolean";
|
|
2853
|
+
update: () => undefined;
|
|
2854
|
+
};
|
|
2855
|
+
"aria-label": {
|
|
2856
|
+
type: "string";
|
|
2857
|
+
config: string;
|
|
2858
|
+
update: (c: DrawerComponent, v: import("./define.js").AttributeValue) => void;
|
|
2859
|
+
};
|
|
2860
|
+
};
|
|
2861
|
+
properties: {
|
|
2862
|
+
value: {
|
|
2863
|
+
get: (c: DrawerComponent) => string | null;
|
|
2864
|
+
set: (c: DrawerComponent, v: unknown) => void;
|
|
2865
|
+
};
|
|
2866
|
+
};
|
|
2867
|
+
model: "value";
|
|
2868
|
+
events: {
|
|
2869
|
+
change: {
|
|
2870
|
+
detail: (payload: unknown) => {
|
|
2871
|
+
value: string;
|
|
2872
|
+
};
|
|
2873
|
+
};
|
|
2874
|
+
open: {
|
|
2875
|
+
detail: () => null;
|
|
2876
|
+
state: true;
|
|
2877
|
+
};
|
|
2878
|
+
close: {
|
|
2879
|
+
detail: () => null;
|
|
2880
|
+
state: true;
|
|
2881
|
+
};
|
|
2882
|
+
};
|
|
2883
|
+
config: (host: HTMLElement) => Config;
|
|
2884
|
+
setup: (host: ElementHost<DrawerComponent>, component: DrawerComponent) => () => void;
|
|
2885
|
+
observeChildren: (host: ElementHost<DrawerComponent>, component: DrawerComponent) => boolean;
|
|
2886
|
+
};
|
|
2887
|
+
|
|
2888
|
+
declare const drawerElement: import("./define.js").ElementDefinition<DrawerComponent>;
|
|
2889
|
+
|
|
2890
|
+
type DrawerSpec = typeof drawerSpec;
|
|
2891
|
+
|
|
2892
|
+
/** `<m-drawer>` as a ref or a query returns it. */
|
|
2893
|
+
type DrawerElement = ElementInstance<DrawerSpec, DrawerComponent>;
|
|
2894
|
+
|
|
2895
|
+
/** `<m-drawer-item>` declares one destination, section headline or divider, and renders nothing. */
|
|
2896
|
+
declare const drawerItemDeclaration: {
|
|
2897
|
+
readonly name: "drawer-item";
|
|
2898
|
+
readonly attributes: {
|
|
2899
|
+
readonly type: {
|
|
2900
|
+
readonly type: "string";
|
|
2901
|
+
};
|
|
2902
|
+
readonly value: {
|
|
2903
|
+
readonly type: "string";
|
|
2904
|
+
};
|
|
2905
|
+
readonly label: {
|
|
2906
|
+
readonly type: "string";
|
|
2907
|
+
};
|
|
2908
|
+
/** Markup (HTML). */
|
|
2909
|
+
readonly icon: {
|
|
2910
|
+
readonly type: "string";
|
|
2911
|
+
};
|
|
2912
|
+
/** Markup (HTML). */
|
|
2913
|
+
readonly "selected-icon": {
|
|
2914
|
+
readonly type: "string";
|
|
2915
|
+
};
|
|
2916
|
+
readonly badge: {
|
|
2917
|
+
readonly type: "string";
|
|
2918
|
+
};
|
|
2919
|
+
readonly disabled: {
|
|
2920
|
+
readonly type: "boolean";
|
|
2921
|
+
};
|
|
2922
|
+
};
|
|
2923
|
+
};
|
|
2924
|
+
|
|
2925
|
+
type DrawerItemAttributes = ElementAttributes<typeof drawerItemDeclaration>;
|
|
2926
|
+
|
|
2927
|
+
/** Registers `<m-drawer>` and `<m-drawer-item>` (or with another prefix). */
|
|
2928
|
+
declare const defineDrawer: (options?: DefineOptions) => string;
|
|
2929
|
+
|
|
2930
|
+
declare global {
|
|
2931
|
+
/** `document.querySelector("m-…")` and `createElement` return the element's type (the default prefix). */
|
|
2932
|
+
interface HTMLElementTagNameMap {
|
|
2933
|
+
"m-drawer": DrawerElement;
|
|
2934
|
+
"m-drawer-item": HTMLElement & DrawerItemAttributes;
|
|
2935
|
+
}
|
|
2936
|
+
}
|
|
2937
|
+
|
|
2938
|
+
declare const progressSpec: {
|
|
2939
|
+
name: string;
|
|
2940
|
+
create: (config: import("./define.js").Config) => ProgressComponent;
|
|
2941
|
+
styles: string[];
|
|
2942
|
+
hostStyles: string;
|
|
2943
|
+
attributes: {
|
|
2944
|
+
variant: {
|
|
2945
|
+
type: "string";
|
|
2946
|
+
config: string;
|
|
2947
|
+
};
|
|
2948
|
+
value: {
|
|
2949
|
+
type: "number";
|
|
2950
|
+
config: string;
|
|
2951
|
+
update: (c: ProgressComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
2952
|
+
};
|
|
2953
|
+
max: {
|
|
2954
|
+
type: "number";
|
|
2955
|
+
config: string;
|
|
2956
|
+
};
|
|
2957
|
+
buffer: {
|
|
2958
|
+
type: "number";
|
|
2959
|
+
config: string;
|
|
2960
|
+
update: (c: ProgressComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
2961
|
+
};
|
|
2962
|
+
indeterminate: {
|
|
2963
|
+
type: "boolean";
|
|
2964
|
+
config: string;
|
|
2965
|
+
update: (c: ProgressComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
2966
|
+
};
|
|
2967
|
+
disabled: {
|
|
2968
|
+
type: "boolean";
|
|
2969
|
+
config: string;
|
|
2970
|
+
update: (c: ProgressComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
2971
|
+
};
|
|
2972
|
+
shape: {
|
|
2973
|
+
type: "string";
|
|
2974
|
+
config: string;
|
|
2975
|
+
update: (c: ProgressComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
2976
|
+
};
|
|
2977
|
+
thickness: {
|
|
2978
|
+
type: "string";
|
|
2979
|
+
config: string;
|
|
2980
|
+
update: (c: ProgressComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
2981
|
+
};
|
|
2982
|
+
size: {
|
|
2983
|
+
type: "number";
|
|
2984
|
+
config: string;
|
|
2985
|
+
};
|
|
2986
|
+
"show-label": {
|
|
2987
|
+
type: "boolean";
|
|
2988
|
+
config: string;
|
|
2989
|
+
update: (c: ProgressComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
2990
|
+
};
|
|
2991
|
+
"aria-label": {
|
|
2992
|
+
type: "string";
|
|
2993
|
+
config: string;
|
|
2994
|
+
};
|
|
2995
|
+
};
|
|
2996
|
+
properties: {
|
|
2997
|
+
value: {
|
|
2998
|
+
get: (c: ProgressComponent) => number;
|
|
2999
|
+
set: (c: ProgressComponent, v: unknown) => undefined;
|
|
3000
|
+
config: string;
|
|
3001
|
+
};
|
|
3002
|
+
indeterminate: {
|
|
3003
|
+
get: (c: ProgressComponent) => boolean;
|
|
3004
|
+
set: (c: ProgressComponent, v: unknown) => undefined;
|
|
3005
|
+
config: string;
|
|
3006
|
+
};
|
|
3007
|
+
};
|
|
3008
|
+
};
|
|
3009
|
+
|
|
3010
|
+
declare const progressElement: import("./define.js").ElementDefinition<ProgressComponent>;
|
|
3011
|
+
|
|
3012
|
+
type ProgressSpec = typeof progressSpec;
|
|
3013
|
+
|
|
3014
|
+
/** `<m-progress>` as a ref or a query returns it. */
|
|
3015
|
+
type ProgressElement = ElementInstance<ProgressSpec, ProgressComponent>;
|
|
3016
|
+
|
|
3017
|
+
/** Registers `<m-progress>` (or `<prefix-progress>`). */
|
|
3018
|
+
declare const defineProgress: (options?: DefineOptions) => string;
|
|
3019
|
+
|
|
3020
|
+
declare global {
|
|
3021
|
+
/** `document.querySelector("m-…")` and `createElement` return the element's type (the default prefix). */
|
|
3022
|
+
interface HTMLElementTagNameMap {
|
|
3023
|
+
"m-progress": ProgressElement;
|
|
3024
|
+
}
|
|
3025
|
+
}
|
|
3026
|
+
|
|
3027
|
+
/** The FAB menu, with the methods the element adds to it. */
|
|
3028
|
+
type FabMenuElementComponent = FabMenuComponent & {
|
|
3029
|
+
/** Opens the menu. */
|
|
3030
|
+
show: () => void;
|
|
3031
|
+
/** Closes the menu. */
|
|
3032
|
+
hide: () => void;
|
|
3033
|
+
};
|
|
3034
|
+
|
|
3035
|
+
declare const fabMenuSpec: {
|
|
3036
|
+
name: string;
|
|
3037
|
+
ssr: false;
|
|
3038
|
+
create: (config: Config) => FabMenuElementComponent;
|
|
3039
|
+
styles: string[];
|
|
3040
|
+
attributes: {
|
|
3041
|
+
open: {
|
|
3042
|
+
type: "boolean";
|
|
3043
|
+
update: (c: FabMenuElementComponent, v: import("./define.js").AttributeValue) => void;
|
|
3044
|
+
};
|
|
3045
|
+
/** Markup (HTML). */
|
|
3046
|
+
icon: {
|
|
3047
|
+
type: "string";
|
|
3048
|
+
config: string;
|
|
3049
|
+
};
|
|
3050
|
+
"aria-label": {
|
|
3051
|
+
type: "string";
|
|
3052
|
+
config: string;
|
|
3053
|
+
update: (c: FabMenuElementComponent, v: import("./define.js").AttributeValue) => void;
|
|
3054
|
+
};
|
|
3055
|
+
color: {
|
|
3056
|
+
type: "string";
|
|
3057
|
+
config: string;
|
|
3058
|
+
};
|
|
3059
|
+
size: {
|
|
3060
|
+
type: "string";
|
|
3061
|
+
config: string;
|
|
3062
|
+
};
|
|
3063
|
+
presentation: {
|
|
3064
|
+
type: "string";
|
|
3065
|
+
config: string;
|
|
3066
|
+
};
|
|
3067
|
+
placement: {
|
|
3068
|
+
type: "string";
|
|
3069
|
+
config: string;
|
|
3070
|
+
};
|
|
3071
|
+
};
|
|
3072
|
+
methods: readonly [
|
|
3073
|
+
"show",
|
|
3074
|
+
"hide",
|
|
3075
|
+
"toggle"
|
|
3076
|
+
];
|
|
3077
|
+
events: {
|
|
3078
|
+
open: {
|
|
3079
|
+
detail: () => {};
|
|
3080
|
+
state: true;
|
|
3081
|
+
};
|
|
3082
|
+
close: {
|
|
3083
|
+
detail: () => {};
|
|
3084
|
+
state: true;
|
|
3085
|
+
};
|
|
3086
|
+
select: {
|
|
3087
|
+
detail: (payload: unknown) => {
|
|
3088
|
+
value: string;
|
|
3089
|
+
};
|
|
3090
|
+
};
|
|
3091
|
+
};
|
|
3092
|
+
config: (host: HTMLElement) => Config;
|
|
3093
|
+
setup: (host: import("./define.js").ElementHost<FabMenuElementComponent>, c: FabMenuElementComponent) => void;
|
|
3094
|
+
observeChildren: (host: import("./define.js").ElementHost<FabMenuElementComponent>, c: FabMenuElementComponent) => boolean;
|
|
3095
|
+
};
|
|
3096
|
+
|
|
3097
|
+
declare const fabMenuElement: import("./define.js").ElementDefinition<FabMenuElementComponent>;
|
|
3098
|
+
|
|
3099
|
+
type FabMenuSpec = typeof fabMenuSpec;
|
|
3100
|
+
|
|
3101
|
+
/** `<m-fab-menu>` as a ref or a query returns it. */
|
|
3102
|
+
type FabMenuElement = ElementInstance<FabMenuSpec, FabMenuElementComponent>;
|
|
3103
|
+
|
|
3104
|
+
/** `<m-fab-menu-item>` declares one action and renders nothing. */
|
|
3105
|
+
declare const fabMenuItemDeclaration: {
|
|
3106
|
+
readonly name: "fab-menu-item";
|
|
3107
|
+
readonly attributes: {
|
|
3108
|
+
readonly value: {
|
|
3109
|
+
readonly type: "string";
|
|
3110
|
+
};
|
|
3111
|
+
readonly label: {
|
|
3112
|
+
readonly type: "string";
|
|
3113
|
+
};
|
|
3114
|
+
/** Markup (HTML). */
|
|
3115
|
+
readonly icon: {
|
|
3116
|
+
readonly type: "string";
|
|
3117
|
+
};
|
|
3118
|
+
};
|
|
3119
|
+
};
|
|
3120
|
+
|
|
3121
|
+
type FabMenuItemAttributes = ElementAttributes<typeof fabMenuItemDeclaration>;
|
|
3122
|
+
|
|
3123
|
+
/** Registers `<m-fab-menu>` and `<m-fab-menu-item>` (or with another prefix). */
|
|
3124
|
+
declare const defineFabMenu: (options?: DefineOptions) => string;
|
|
3125
|
+
|
|
3126
|
+
declare global {
|
|
3127
|
+
/** `document.querySelector("m-…")` and `createElement` return the element's type (the default prefix). */
|
|
3128
|
+
interface HTMLElementTagNameMap {
|
|
3129
|
+
"m-fab-menu": FabMenuElement;
|
|
3130
|
+
"m-fab-menu-item": HTMLElement & FabMenuItemAttributes;
|
|
3131
|
+
}
|
|
3132
|
+
}
|
|
3133
|
+
|
|
3134
|
+
declare const buttonSpec: {
|
|
3135
|
+
name: string;
|
|
3136
|
+
create: (config: import("./define.js").Config) => ButtonComponent;
|
|
3137
|
+
styles: string[];
|
|
3138
|
+
hostStyles: string;
|
|
3139
|
+
attributes: {
|
|
3140
|
+
variant: {
|
|
3141
|
+
type: "string";
|
|
3142
|
+
config: string;
|
|
3143
|
+
update: (c: ButtonComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
3144
|
+
};
|
|
3145
|
+
size: {
|
|
3146
|
+
type: "string";
|
|
3147
|
+
config: string;
|
|
3148
|
+
update: (c: ButtonComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
3149
|
+
};
|
|
3150
|
+
shape: {
|
|
3151
|
+
type: "string";
|
|
3152
|
+
config: string;
|
|
3153
|
+
update: (c: ButtonComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
3154
|
+
};
|
|
3155
|
+
disabled: {
|
|
3156
|
+
type: "boolean";
|
|
3157
|
+
config: string;
|
|
3158
|
+
update: (c: ButtonComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
3159
|
+
};
|
|
3160
|
+
/** Markup (HTML). */
|
|
3161
|
+
icon: {
|
|
3162
|
+
type: "string";
|
|
3163
|
+
config: string;
|
|
3164
|
+
};
|
|
3165
|
+
"icon-position": {
|
|
3166
|
+
type: "string";
|
|
3167
|
+
config: string;
|
|
3168
|
+
};
|
|
3169
|
+
toggle: {
|
|
3170
|
+
type: "boolean";
|
|
3171
|
+
config: string;
|
|
3172
|
+
};
|
|
3173
|
+
selected: {
|
|
3174
|
+
type: "boolean";
|
|
3175
|
+
config: string;
|
|
3176
|
+
update: (c: ButtonComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
3177
|
+
};
|
|
3178
|
+
value: {
|
|
3179
|
+
type: "string";
|
|
3180
|
+
config: string;
|
|
3181
|
+
update: (c: ButtonComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
3182
|
+
};
|
|
3183
|
+
type: {
|
|
3184
|
+
readonly type: "string";
|
|
3185
|
+
readonly update: () => undefined;
|
|
3186
|
+
};
|
|
3187
|
+
"aria-label": {
|
|
3188
|
+
type: "string";
|
|
3189
|
+
config: string;
|
|
3190
|
+
update: (c: ButtonComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
3191
|
+
};
|
|
3192
|
+
};
|
|
3193
|
+
properties: {
|
|
3194
|
+
selected: {
|
|
3195
|
+
get: (c: ButtonComponent) => boolean;
|
|
3196
|
+
set: (c: ButtonComponent, v: unknown) => undefined;
|
|
3197
|
+
config: string;
|
|
3198
|
+
};
|
|
3199
|
+
};
|
|
3200
|
+
methods: readonly [
|
|
3201
|
+
"setSelected"
|
|
3202
|
+
];
|
|
3203
|
+
model: "selected";
|
|
3204
|
+
slot: {
|
|
3205
|
+
attribute: "label";
|
|
3206
|
+
config: string;
|
|
3207
|
+
};
|
|
3208
|
+
events: {
|
|
3209
|
+
change: {
|
|
3210
|
+
detail: (payload: unknown) => {
|
|
3211
|
+
selected: boolean;
|
|
3212
|
+
value: string;
|
|
3213
|
+
};
|
|
3214
|
+
};
|
|
3215
|
+
};
|
|
3216
|
+
form: import("./define.js").FormSpec<ButtonComponent>;
|
|
3217
|
+
setup: <C extends import("./define.js").ElementComponent>(host: import("./define.js").ElementHost<C>) => (() => void);
|
|
3218
|
+
};
|
|
3219
|
+
|
|
3220
|
+
declare const buttonElement: import("./define.js").ElementDefinition<ButtonComponent>;
|
|
3221
|
+
|
|
3222
|
+
type ButtonSpec = typeof buttonSpec;
|
|
3223
|
+
|
|
3224
|
+
/** `<m-button>` as a ref or a query returns it. */
|
|
3225
|
+
type ButtonElement = ElementInstance<ButtonSpec, ButtonComponent>;
|
|
3226
|
+
|
|
3227
|
+
/** Registers `<m-button>` (or `<prefix-button>`). */
|
|
3228
|
+
declare const defineButton: (options?: DefineOptions) => string;
|
|
3229
|
+
|
|
3230
|
+
declare global {
|
|
3231
|
+
/** `document.querySelector("m-…")` and `createElement` return the element's type (the default prefix). */
|
|
3232
|
+
interface HTMLElementTagNameMap {
|
|
3233
|
+
"m-button": ButtonElement;
|
|
3234
|
+
}
|
|
3235
|
+
}
|
|
3236
|
+
|
|
3237
|
+
declare const navigationBarSpec: {
|
|
3238
|
+
name: string;
|
|
3239
|
+
create: (config: Config) => NavigationBarComponent;
|
|
3240
|
+
styles: string[];
|
|
3241
|
+
hostStyles: string;
|
|
3242
|
+
attributes: {
|
|
3243
|
+
value: {
|
|
3244
|
+
type: "string";
|
|
3245
|
+
update: (c: NavigationBarComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
3246
|
+
};
|
|
3247
|
+
"item-layout": {
|
|
3248
|
+
type: "string";
|
|
3249
|
+
config: string;
|
|
3250
|
+
};
|
|
3251
|
+
"hide-on-scroll": {
|
|
3252
|
+
type: "boolean";
|
|
3253
|
+
config: string;
|
|
3254
|
+
};
|
|
3255
|
+
"no-ripple": {
|
|
3256
|
+
type: "boolean";
|
|
3257
|
+
};
|
|
3258
|
+
"aria-label": {
|
|
3259
|
+
type: "string";
|
|
3260
|
+
config: string;
|
|
3261
|
+
update: (c: NavigationBarComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
3262
|
+
};
|
|
3263
|
+
};
|
|
3264
|
+
properties: {
|
|
3265
|
+
value: {
|
|
3266
|
+
get: (c: NavigationBarComponent) => string | null;
|
|
3267
|
+
set: (c: NavigationBarComponent, v: unknown) => undefined;
|
|
3268
|
+
};
|
|
3269
|
+
};
|
|
3270
|
+
methods: readonly [
|
|
3271
|
+
"hide",
|
|
3272
|
+
"show"
|
|
3273
|
+
];
|
|
3274
|
+
model: "value";
|
|
3275
|
+
events: {
|
|
3276
|
+
change: {
|
|
3277
|
+
detail: (payload: unknown) => {
|
|
3278
|
+
value: string;
|
|
3279
|
+
};
|
|
3280
|
+
};
|
|
3281
|
+
visibility: {
|
|
3282
|
+
detail: (payload: unknown) => {
|
|
3283
|
+
hidden: boolean;
|
|
3284
|
+
};
|
|
3285
|
+
state: true;
|
|
3286
|
+
};
|
|
3287
|
+
};
|
|
3288
|
+
config: (host: HTMLElement) => Config;
|
|
3289
|
+
setup: (host: ElementHost<NavigationBarComponent>, component: NavigationBarComponent) => () => NavigationBarComponent;
|
|
3290
|
+
observeChildren: (host: ElementHost<NavigationBarComponent>, component: NavigationBarComponent) => boolean;
|
|
3291
|
+
};
|
|
3292
|
+
|
|
3293
|
+
declare const navigationBarElement: import("./define.js").ElementDefinition<NavigationBarComponent>;
|
|
3294
|
+
|
|
3295
|
+
type NavigationBarSpec = typeof navigationBarSpec;
|
|
3296
|
+
|
|
3297
|
+
/** `<m-navigation-bar>` as a ref or a query returns it. */
|
|
3298
|
+
type NavigationBarElement = ElementInstance<NavigationBarSpec, NavigationBarComponent>;
|
|
3299
|
+
|
|
3300
|
+
/** `<m-navigation-bar-item>` declares one destination and renders nothing. */
|
|
3301
|
+
declare const navigationBarItemDeclaration: {
|
|
3302
|
+
readonly name: "navigation-bar-item";
|
|
3303
|
+
readonly attributes: {
|
|
3304
|
+
readonly value: {
|
|
3305
|
+
readonly type: "string";
|
|
3306
|
+
};
|
|
3307
|
+
readonly label: {
|
|
3308
|
+
readonly type: "string";
|
|
3309
|
+
};
|
|
3310
|
+
/** Markup (HTML). */
|
|
3311
|
+
readonly icon: {
|
|
3312
|
+
readonly type: "string";
|
|
3313
|
+
};
|
|
3314
|
+
/** Markup (HTML). */
|
|
3315
|
+
readonly "selected-icon": {
|
|
3316
|
+
readonly type: "string";
|
|
3317
|
+
};
|
|
3318
|
+
readonly href: {
|
|
3319
|
+
readonly type: "string";
|
|
3320
|
+
};
|
|
3321
|
+
readonly badge: {
|
|
3322
|
+
readonly type: "string";
|
|
3323
|
+
};
|
|
3324
|
+
readonly "badge-label": {
|
|
3325
|
+
readonly type: "string";
|
|
3326
|
+
};
|
|
3327
|
+
readonly disabled: {
|
|
3328
|
+
readonly type: "boolean";
|
|
3329
|
+
};
|
|
3330
|
+
};
|
|
3331
|
+
};
|
|
3332
|
+
|
|
3333
|
+
type NavigationBarItemAttributes = ElementAttributes<typeof navigationBarItemDeclaration>;
|
|
3334
|
+
|
|
3335
|
+
/** Registers `<m-navigation-bar>` and `<m-navigation-bar-item>` (or with another prefix). */
|
|
3336
|
+
declare const defineNavigationBar: (options?: DefineOptions) => string;
|
|
3337
|
+
|
|
3338
|
+
declare global {
|
|
3339
|
+
interface HTMLElementTagNameMap {
|
|
3340
|
+
"m-navigation-bar": NavigationBarElement;
|
|
3341
|
+
"m-navigation-bar-item": HTMLElement & NavigationBarItemAttributes;
|
|
3342
|
+
}
|
|
3343
|
+
}
|
|
3344
|
+
|
|
3345
|
+
/** The factory's events, and the element's own names for two of them. */
|
|
3346
|
+
type SplitButtonElementEventType = SplitButtonEventType | "open" | "close";
|
|
3347
|
+
|
|
3348
|
+
/** The split button, with the element's events. */
|
|
3349
|
+
interface SplitButtonElementComponent extends Omit<SplitButtonComponent, "on" | "off"> {
|
|
3350
|
+
/** Subscribes by the element's event names (`open`, `close`) as well as the factory's. */
|
|
3351
|
+
on: (event: SplitButtonElementEventType, handler: (event: SplitButtonEvent) => void) => SplitButtonElementComponent;
|
|
3352
|
+
off: (event: SplitButtonElementEventType, handler: (event: SplitButtonEvent) => void) => SplitButtonElementComponent;
|
|
3353
|
+
}
|
|
3354
|
+
|
|
3355
|
+
declare const splitButtonSpec: {
|
|
3356
|
+
name: string;
|
|
3357
|
+
ssr: (host: HTMLElement) => boolean;
|
|
3358
|
+
create: (config: Config) => SplitButtonElementComponent;
|
|
3359
|
+
styles: string[];
|
|
3360
|
+
hostStyles: string;
|
|
3361
|
+
attributes: {
|
|
3362
|
+
label: {
|
|
3363
|
+
type: "string";
|
|
3364
|
+
update: (c: SplitButtonElementComponent, _v: import("./define.js").AttributeValue, host: HTMLElement) => undefined;
|
|
3365
|
+
};
|
|
3366
|
+
/** Markup (HTML). */
|
|
3367
|
+
icon: {
|
|
3368
|
+
type: "string";
|
|
3369
|
+
config: string;
|
|
3370
|
+
update: (c: SplitButtonElementComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
3371
|
+
};
|
|
3372
|
+
variant: {
|
|
3373
|
+
type: "string";
|
|
3374
|
+
config: string;
|
|
3375
|
+
};
|
|
3376
|
+
size: {
|
|
3377
|
+
type: "string";
|
|
3378
|
+
config: string;
|
|
3379
|
+
};
|
|
3380
|
+
disabled: {
|
|
3381
|
+
type: "boolean";
|
|
3382
|
+
config: string;
|
|
3383
|
+
update: (c: SplitButtonElementComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
3384
|
+
};
|
|
3385
|
+
"trailing-label": {
|
|
3386
|
+
type: "string";
|
|
3387
|
+
config: string;
|
|
3388
|
+
};
|
|
3389
|
+
"group-label": {
|
|
3390
|
+
type: "string";
|
|
3391
|
+
config: string;
|
|
3392
|
+
};
|
|
3393
|
+
"aria-label": {
|
|
3394
|
+
type: "string";
|
|
3395
|
+
config: string;
|
|
3396
|
+
update: (c: SplitButtonElementComponent, v: import("./define.js").AttributeValue) => void;
|
|
3397
|
+
};
|
|
3398
|
+
};
|
|
3399
|
+
events: {
|
|
3400
|
+
open: {
|
|
3401
|
+
detail: () => {};
|
|
3402
|
+
state: true;
|
|
3403
|
+
};
|
|
3404
|
+
close: {
|
|
3405
|
+
detail: () => {};
|
|
3406
|
+
state: true;
|
|
3407
|
+
};
|
|
3408
|
+
select: {
|
|
3409
|
+
detail: (payload: unknown) => {
|
|
3410
|
+
value: string | null;
|
|
3411
|
+
};
|
|
3412
|
+
};
|
|
3413
|
+
};
|
|
3414
|
+
config: (host: HTMLElement) => Config;
|
|
3415
|
+
setup: (_host: import("./define.js").ElementHost<SplitButtonElementComponent>, c: SplitButtonElementComponent) => () => void;
|
|
3416
|
+
observeChildren: (host: HTMLElement, c: SplitButtonElementComponent) => boolean;
|
|
3417
|
+
};
|
|
3418
|
+
|
|
3419
|
+
declare const splitButtonElement: import("./define.js").ElementDefinition<SplitButtonElementComponent>;
|
|
3420
|
+
|
|
3421
|
+
type SplitButtonSpec = typeof splitButtonSpec;
|
|
3422
|
+
|
|
3423
|
+
/** `<m-split-button>` as a ref or a query returns it. */
|
|
3424
|
+
type SplitButtonElement = ElementInstance<SplitButtonSpec, SplitButtonElementComponent>;
|
|
3425
|
+
|
|
3426
|
+
/** Registers `<m-split-button>` and `<m-menu-item>` (or with another prefix). */
|
|
3427
|
+
declare const defineSplitButton: (options?: DefineOptions) => string;
|
|
3428
|
+
|
|
3429
|
+
declare global {
|
|
3430
|
+
/** `document.querySelector("m-…")` and `createElement` return the element's type (the default prefix). */
|
|
3431
|
+
interface HTMLElementTagNameMap {
|
|
3432
|
+
"m-split-button": SplitButtonElement;
|
|
3433
|
+
}
|
|
3434
|
+
}
|
|
3435
|
+
|
|
3436
|
+
declare const radiosSpec: {
|
|
3437
|
+
name: string;
|
|
3438
|
+
create: (config: Config) => RadiosComponent;
|
|
3439
|
+
styles: string[];
|
|
3440
|
+
hostStyles: string;
|
|
3441
|
+
attributes: {
|
|
3442
|
+
value: {
|
|
3443
|
+
type: "string";
|
|
3444
|
+
config: string;
|
|
3445
|
+
update: (c: RadiosComponent, v: import("./define.js").AttributeValue) => void;
|
|
3446
|
+
};
|
|
3447
|
+
disabled: {
|
|
3448
|
+
type: "boolean";
|
|
3449
|
+
config: string;
|
|
3450
|
+
update: (c: RadiosComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
3451
|
+
};
|
|
3452
|
+
required: {
|
|
3453
|
+
type: "boolean";
|
|
3454
|
+
config: string;
|
|
3455
|
+
update: (c: RadiosComponent, v: import("./define.js").AttributeValue) => void;
|
|
3456
|
+
};
|
|
3457
|
+
direction: {
|
|
3458
|
+
type: "string";
|
|
3459
|
+
config: string;
|
|
3460
|
+
};
|
|
3461
|
+
"aria-label": {
|
|
3462
|
+
type: "string";
|
|
3463
|
+
config: string;
|
|
3464
|
+
update: (c: RadiosComponent, v: import("./define.js").AttributeValue) => void;
|
|
3465
|
+
};
|
|
3466
|
+
};
|
|
3467
|
+
properties: {
|
|
3468
|
+
value: {
|
|
3469
|
+
get: (c: RadiosComponent) => string | null;
|
|
3470
|
+
set: (c: RadiosComponent, v: unknown) => void;
|
|
3471
|
+
config: string;
|
|
3472
|
+
};
|
|
3473
|
+
};
|
|
3474
|
+
model: "value";
|
|
3475
|
+
events: {
|
|
3476
|
+
change: {
|
|
3477
|
+
detail: (payload: unknown) => {
|
|
3478
|
+
value: string | null;
|
|
3479
|
+
};
|
|
3480
|
+
};
|
|
3481
|
+
};
|
|
3482
|
+
form: {
|
|
3483
|
+
value: (c: RadiosComponent) => string | null;
|
|
3484
|
+
control: (component: RadiosComponent) => HTMLInputElement | null;
|
|
3485
|
+
events: string[];
|
|
3486
|
+
activate: (c: RadiosComponent) => void | undefined;
|
|
3487
|
+
state: (c: RadiosComponent) => string;
|
|
3488
|
+
restore: (c: RadiosComponent, state: string) => void;
|
|
3489
|
+
disable: (c: RadiosComponent, disabled: boolean) => undefined;
|
|
3490
|
+
};
|
|
3491
|
+
config: (host: HTMLElement) => Config;
|
|
3492
|
+
setup: (host: ElementHost<RadiosComponent>, c: RadiosComponent) => void;
|
|
3493
|
+
observeChildren: (host: ElementHost<RadiosComponent>, component: RadiosComponent) => boolean;
|
|
3494
|
+
};
|
|
3495
|
+
|
|
3496
|
+
declare const radiosElement: import("./define.js").ElementDefinition<RadiosComponent>;
|
|
3497
|
+
|
|
3498
|
+
type RadiosSpec = typeof radiosSpec;
|
|
3499
|
+
|
|
3500
|
+
/** `<m-radios>` as a ref or a query returns it. */
|
|
3501
|
+
type RadiosElement = ElementInstance<RadiosSpec, RadiosComponent>;
|
|
3502
|
+
|
|
3503
|
+
/** `<m-radio>` declares one radio and renders nothing. */
|
|
3504
|
+
declare const radioDeclaration: {
|
|
3505
|
+
readonly name: "radio";
|
|
3506
|
+
readonly attributes: {
|
|
3507
|
+
readonly value: {
|
|
3508
|
+
readonly type: "string";
|
|
3509
|
+
};
|
|
3510
|
+
readonly label: {
|
|
3511
|
+
readonly type: "string";
|
|
3512
|
+
};
|
|
3513
|
+
readonly disabled: {
|
|
3514
|
+
readonly type: "boolean";
|
|
3515
|
+
};
|
|
3516
|
+
};
|
|
3517
|
+
};
|
|
3518
|
+
|
|
3519
|
+
type RadioAttributes = ElementAttributes<typeof radioDeclaration>;
|
|
3520
|
+
|
|
3521
|
+
/** Registers `<m-radios>` and `<m-radio>` (or with another prefix). */
|
|
3522
|
+
declare const defineRadios: (options?: DefineOptions) => string;
|
|
3523
|
+
|
|
3524
|
+
declare global {
|
|
3525
|
+
/** `document.querySelector("m-…")` and `createElement` return the element's type (the default prefix). */
|
|
3526
|
+
interface HTMLElementTagNameMap {
|
|
3527
|
+
"m-radios": RadiosElement;
|
|
3528
|
+
"m-radio": HTMLElement & RadioAttributes;
|
|
3529
|
+
}
|
|
3530
|
+
}
|
|
3531
|
+
|
|
3532
|
+
declare const loadingIndicatorSpec: {
|
|
3533
|
+
name: string;
|
|
3534
|
+
create: (config: import("./define.js").Config) => LoadingIndicatorComponent;
|
|
3535
|
+
styles: string[];
|
|
3536
|
+
hostStyles: string;
|
|
3537
|
+
attributes: {
|
|
3538
|
+
size: {
|
|
3539
|
+
type: "number";
|
|
3540
|
+
config: string;
|
|
3541
|
+
update: (c: LoadingIndicatorComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
3542
|
+
};
|
|
3543
|
+
contained: {
|
|
3544
|
+
type: "boolean";
|
|
3545
|
+
config: string;
|
|
3546
|
+
};
|
|
3547
|
+
value: {
|
|
3548
|
+
type: "number";
|
|
3549
|
+
config: string;
|
|
3550
|
+
update: (c: LoadingIndicatorComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
3551
|
+
};
|
|
3552
|
+
"aria-label": {
|
|
3553
|
+
type: "string";
|
|
3554
|
+
config: string;
|
|
3555
|
+
update: (c: LoadingIndicatorComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
3556
|
+
};
|
|
3557
|
+
};
|
|
3558
|
+
methods: readonly [
|
|
3559
|
+
"start",
|
|
3560
|
+
"stop"
|
|
3561
|
+
];
|
|
3562
|
+
};
|
|
3563
|
+
|
|
3564
|
+
declare const loadingIndicatorElement: import("./define.js").ElementDefinition<LoadingIndicatorComponent>;
|
|
3565
|
+
|
|
3566
|
+
type LoadingIndicatorSpec = typeof loadingIndicatorSpec;
|
|
3567
|
+
|
|
3568
|
+
/** `<m-loading-indicator>` as a ref or a query returns it. */
|
|
3569
|
+
type LoadingIndicatorElement = ElementInstance<LoadingIndicatorSpec, LoadingIndicatorComponent>;
|
|
3570
|
+
|
|
3571
|
+
/** Registers `<m-loading-indicator>` (or `<prefix-loading-indicator>`). */
|
|
3572
|
+
declare const defineLoadingIndicator: (options?: DefineOptions) => string;
|
|
3573
|
+
|
|
3574
|
+
declare global {
|
|
3575
|
+
/** `document.querySelector("m-…")` and `createElement` return the element's type (the default prefix). */
|
|
3576
|
+
interface HTMLElementTagNameMap {
|
|
3577
|
+
"m-loading-indicator": LoadingIndicatorElement;
|
|
3578
|
+
}
|
|
3579
|
+
}
|
|
3580
|
+
|
|
3581
|
+
declare const switchSpec: {
|
|
3582
|
+
name: string;
|
|
3583
|
+
create: (config: import("./define.js").Config) => SwitchComponent;
|
|
3584
|
+
styles: string[];
|
|
3585
|
+
hostStyles: string;
|
|
3586
|
+
attributes: {
|
|
3587
|
+
checked: {
|
|
3588
|
+
type: "boolean";
|
|
3589
|
+
config: string;
|
|
3590
|
+
update: (c: SwitchComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
3591
|
+
};
|
|
3592
|
+
disabled: {
|
|
3593
|
+
type: "boolean";
|
|
3594
|
+
config: string;
|
|
3595
|
+
update: (c: SwitchComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
3596
|
+
};
|
|
3597
|
+
required: {
|
|
3598
|
+
type: "boolean";
|
|
3599
|
+
config: string;
|
|
3600
|
+
};
|
|
3601
|
+
"aria-label": {
|
|
3602
|
+
type: "string";
|
|
3603
|
+
config: string;
|
|
3604
|
+
};
|
|
3605
|
+
value: {
|
|
3606
|
+
type: "string";
|
|
3607
|
+
config: string;
|
|
3608
|
+
update: (c: SwitchComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
3609
|
+
};
|
|
3610
|
+
/** Markup (HTML). */
|
|
3611
|
+
icon: {
|
|
3612
|
+
type: "string";
|
|
3613
|
+
config: string;
|
|
3614
|
+
};
|
|
3615
|
+
error: {
|
|
3616
|
+
type: "boolean";
|
|
3617
|
+
config: string;
|
|
3618
|
+
update: (c: SwitchComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
3619
|
+
};
|
|
3620
|
+
"supporting-text": {
|
|
3621
|
+
type: "string";
|
|
3622
|
+
config: string;
|
|
3623
|
+
update: (c: SwitchComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
3624
|
+
};
|
|
3625
|
+
};
|
|
3626
|
+
properties: {
|
|
3627
|
+
checked: {
|
|
3628
|
+
get: (c: SwitchComponent) => boolean;
|
|
3629
|
+
set: (c: SwitchComponent, v: unknown) => undefined;
|
|
3630
|
+
config: string;
|
|
3631
|
+
};
|
|
3632
|
+
};
|
|
3633
|
+
methods: readonly [
|
|
3634
|
+
"toggle",
|
|
3635
|
+
"check",
|
|
3636
|
+
"uncheck"
|
|
3637
|
+
];
|
|
3638
|
+
model: "checked";
|
|
3639
|
+
events: {
|
|
3640
|
+
change: {
|
|
3641
|
+
detail: (payload: unknown) => {
|
|
3642
|
+
checked: boolean;
|
|
3643
|
+
value: boolean;
|
|
3644
|
+
valueAttribute: string;
|
|
3645
|
+
nativeEvent: Event | undefined;
|
|
3646
|
+
};
|
|
3647
|
+
};
|
|
3648
|
+
};
|
|
3649
|
+
slot: {
|
|
3650
|
+
attribute: "label";
|
|
3651
|
+
config: string;
|
|
3652
|
+
};
|
|
3653
|
+
form: {
|
|
3654
|
+
value: (c: SwitchComponent) => string | null;
|
|
3655
|
+
control: (c: SwitchComponent) => HTMLInputElement;
|
|
3656
|
+
events: string[];
|
|
3657
|
+
activate: (c: SwitchComponent) => void;
|
|
3658
|
+
state: (c: SwitchComponent) => "checked" | "unchecked";
|
|
3659
|
+
restore: (c: SwitchComponent, state: string) => undefined;
|
|
3660
|
+
disable: (c: SwitchComponent, disabled: boolean) => undefined;
|
|
3661
|
+
};
|
|
3662
|
+
};
|
|
3663
|
+
|
|
3664
|
+
declare const switchElement: import("./define.js").ElementDefinition<SwitchComponent>;
|
|
3665
|
+
|
|
3666
|
+
type SwitchSpec = typeof switchSpec;
|
|
3667
|
+
|
|
3668
|
+
/** `<m-switch>` as a ref or a query returns it. */
|
|
3669
|
+
type SwitchElement = ElementInstance<SwitchSpec, SwitchComponent>;
|
|
3670
|
+
|
|
3671
|
+
/** Registers `<m-switch>` (or `<prefix-switch>`). */
|
|
3672
|
+
declare const defineSwitch: (options?: DefineOptions) => string;
|
|
3673
|
+
|
|
3674
|
+
declare global {
|
|
3675
|
+
/** `document.querySelector("m-…")` and `createElement` return the element's type (the default prefix). */
|
|
3676
|
+
interface HTMLElementTagNameMap {
|
|
3677
|
+
"m-switch": SwitchElement;
|
|
3678
|
+
}
|
|
3679
|
+
}
|
|
3680
|
+
|
|
3681
|
+
declare const snackbarSpec: {
|
|
3682
|
+
name: string;
|
|
3683
|
+
create: (config: import("./define.js").Config) => SnackbarComponent;
|
|
3684
|
+
styles: string[];
|
|
3685
|
+
hostStyles: string;
|
|
3686
|
+
attributes: {
|
|
3687
|
+
message: {
|
|
3688
|
+
type: "string";
|
|
3689
|
+
config: string;
|
|
3690
|
+
update: (c: SnackbarComponent, _v: import("./define.js").AttributeValue, host: HTMLElement) => undefined;
|
|
3691
|
+
};
|
|
3692
|
+
action: {
|
|
3693
|
+
type: "string";
|
|
3694
|
+
config: string;
|
|
3695
|
+
};
|
|
3696
|
+
dismissible: {
|
|
3697
|
+
type: "boolean";
|
|
3698
|
+
config: string;
|
|
3699
|
+
};
|
|
3700
|
+
"close-label": {
|
|
3701
|
+
type: "string";
|
|
3702
|
+
config: string;
|
|
3703
|
+
};
|
|
3704
|
+
duration: {
|
|
3705
|
+
type: "string";
|
|
3706
|
+
config: string;
|
|
3707
|
+
update: (c: SnackbarComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
3708
|
+
};
|
|
3709
|
+
position: {
|
|
3710
|
+
type: "string";
|
|
3711
|
+
config: string;
|
|
3712
|
+
update: (c: SnackbarComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
3713
|
+
};
|
|
3714
|
+
"queue-behavior": {
|
|
3715
|
+
type: "string";
|
|
3716
|
+
config: string;
|
|
3717
|
+
};
|
|
3718
|
+
"focus-shortcut": {
|
|
3719
|
+
type: "string";
|
|
3720
|
+
config: string;
|
|
3721
|
+
};
|
|
3722
|
+
};
|
|
3723
|
+
properties: {
|
|
3724
|
+
open: {
|
|
3725
|
+
get: (c: SnackbarComponent) => boolean;
|
|
3726
|
+
set: (c: SnackbarComponent, v: unknown) => undefined;
|
|
3727
|
+
};
|
|
3728
|
+
};
|
|
3729
|
+
methods: readonly [
|
|
3730
|
+
"show",
|
|
3731
|
+
"hide"
|
|
3732
|
+
];
|
|
3733
|
+
events: {
|
|
3734
|
+
open: {
|
|
3735
|
+
detail: () => null;
|
|
3736
|
+
state: true;
|
|
3737
|
+
};
|
|
3738
|
+
action: {
|
|
3739
|
+
detail: () => null;
|
|
3740
|
+
};
|
|
3741
|
+
close: {
|
|
3742
|
+
detail: (event: unknown) => {
|
|
3743
|
+
reason: import("../components/snackbar/index.js").SnackbarCloseReason | undefined;
|
|
3744
|
+
};
|
|
3745
|
+
state: true;
|
|
3746
|
+
};
|
|
3747
|
+
focus: {
|
|
3748
|
+
detail: () => null;
|
|
3749
|
+
};
|
|
3750
|
+
};
|
|
3751
|
+
config: (host: HTMLElement) => {
|
|
3752
|
+
message?: undefined;
|
|
3753
|
+
} | {
|
|
3754
|
+
message: string;
|
|
3755
|
+
};
|
|
3756
|
+
setup: (host: import("./define.js").ElementHost<SnackbarComponent>, component: SnackbarComponent) => void;
|
|
3757
|
+
observeChildren: (host: import("./define.js").ElementHost<SnackbarComponent>, component: SnackbarComponent) => true;
|
|
3758
|
+
};
|
|
3759
|
+
|
|
3760
|
+
declare const snackbarElement: import("./define.js").ElementDefinition<SnackbarComponent>;
|
|
3761
|
+
|
|
3762
|
+
type SnackbarSpec = typeof snackbarSpec;
|
|
3763
|
+
|
|
3764
|
+
/** `<m-snackbar>` as a ref or a query returns it. */
|
|
3765
|
+
type SnackbarElement = ElementInstance<SnackbarSpec, SnackbarComponent>;
|
|
3766
|
+
|
|
3767
|
+
/** Registers `<m-snackbar>` (or `<prefix-snackbar>`). */
|
|
3768
|
+
declare const defineSnackbar: (options?: DefineOptions) => string;
|
|
3769
|
+
|
|
3770
|
+
declare global {
|
|
3771
|
+
/** `document.querySelector("m-…")` and `createElement` return the element's type (the default prefix). */
|
|
3772
|
+
interface HTMLElementTagNameMap {
|
|
3773
|
+
"m-snackbar": SnackbarElement;
|
|
3774
|
+
}
|
|
3775
|
+
}
|
|
3776
|
+
|
|
3777
|
+
/** The dialog with the `show()` the element names after `<dialog>`'s. */
|
|
3778
|
+
interface DialogElementComponent extends DialogComponent {
|
|
3779
|
+
show: () => DialogComponent;
|
|
3780
|
+
}
|
|
3781
|
+
|
|
3782
|
+
declare const dialogSpec: {
|
|
3783
|
+
name: string;
|
|
3784
|
+
slots: readonly [
|
|
3785
|
+
"headline",
|
|
3786
|
+
"actions"
|
|
3787
|
+
];
|
|
3788
|
+
create: (config: import("./define.js").Config) => DialogElementComponent;
|
|
3789
|
+
styles: string[];
|
|
3790
|
+
hostStyles: string;
|
|
3791
|
+
attributes: {
|
|
3792
|
+
open: {
|
|
3793
|
+
type: "boolean";
|
|
3794
|
+
update: (c: DialogElementComponent, v: import("./define.js").AttributeValue) => void;
|
|
3795
|
+
};
|
|
3796
|
+
headline: {
|
|
3797
|
+
type: "string";
|
|
3798
|
+
config: string;
|
|
3799
|
+
update: (c: DialogElementComponent, v: import("./define.js").AttributeValue, host: HTMLElement) => void;
|
|
3800
|
+
};
|
|
3801
|
+
subtitle: {
|
|
3802
|
+
type: "string";
|
|
3803
|
+
config: string;
|
|
3804
|
+
update: (c: DialogElementComponent, v: import("./define.js").AttributeValue) => void;
|
|
3805
|
+
};
|
|
3806
|
+
size: {
|
|
3807
|
+
type: "string";
|
|
3808
|
+
config: string;
|
|
3809
|
+
};
|
|
3810
|
+
animation: {
|
|
3811
|
+
type: "string";
|
|
3812
|
+
config: string;
|
|
3813
|
+
};
|
|
3814
|
+
fullscreen: {
|
|
3815
|
+
type: "boolean";
|
|
3816
|
+
config: string;
|
|
3817
|
+
};
|
|
3818
|
+
"close-button": {
|
|
3819
|
+
type: "boolean";
|
|
3820
|
+
config: string;
|
|
3821
|
+
};
|
|
3822
|
+
divider: {
|
|
3823
|
+
type: "boolean";
|
|
3824
|
+
config: string;
|
|
3825
|
+
};
|
|
3826
|
+
"footer-alignment": {
|
|
3827
|
+
type: "string";
|
|
3828
|
+
config: string;
|
|
3829
|
+
update: (c: DialogElementComponent, v: import("./define.js").AttributeValue) => void;
|
|
3830
|
+
};
|
|
3831
|
+
"no-close-on-scrim-click": {
|
|
3832
|
+
type: "boolean";
|
|
3833
|
+
config: string;
|
|
3834
|
+
};
|
|
3835
|
+
"no-close-on-escape": {
|
|
3836
|
+
type: "boolean";
|
|
3837
|
+
config: string;
|
|
3838
|
+
};
|
|
3839
|
+
"aria-label": {
|
|
3840
|
+
type: "string";
|
|
3841
|
+
update: (c: DialogElementComponent, _v: import("./define.js").AttributeValue, host: HTMLElement) => void;
|
|
3842
|
+
};
|
|
3843
|
+
};
|
|
3844
|
+
methods: readonly [
|
|
3845
|
+
"show",
|
|
3846
|
+
"close"
|
|
3847
|
+
];
|
|
3848
|
+
events: {
|
|
3849
|
+
open: {
|
|
3850
|
+
detail: () => null;
|
|
3851
|
+
state: true;
|
|
3852
|
+
};
|
|
3853
|
+
close: {
|
|
3854
|
+
detail: () => null;
|
|
3855
|
+
state: true;
|
|
3856
|
+
};
|
|
3857
|
+
cancel: {
|
|
3858
|
+
detail: () => null;
|
|
3859
|
+
};
|
|
3860
|
+
};
|
|
3861
|
+
setup: (host: import("./define.js").ElementHost<DialogElementComponent>, component: DialogElementComponent) => () => void;
|
|
3862
|
+
};
|
|
3863
|
+
|
|
3864
|
+
declare const dialogElement: import("./define.js").ElementDefinition<DialogElementComponent>;
|
|
3865
|
+
|
|
3866
|
+
type DialogSpec = typeof dialogSpec;
|
|
3867
|
+
|
|
3868
|
+
/** `<m-dialog>` as a ref or a query returns it. */
|
|
3869
|
+
type DialogElement = ElementInstance<DialogSpec, DialogElementComponent>;
|
|
3870
|
+
|
|
3871
|
+
/** Registers `<m-dialog>` (or `<prefix-dialog>`). */
|
|
3872
|
+
declare const defineDialog: (options?: DefineOptions) => string;
|
|
3873
|
+
|
|
3874
|
+
declare global {
|
|
3875
|
+
/** `document.querySelector("m-…")` and `createElement` return the element's type (the default prefix). */
|
|
3876
|
+
interface HTMLElementTagNameMap {
|
|
3877
|
+
"m-dialog": DialogElement;
|
|
3878
|
+
}
|
|
3879
|
+
}
|
|
3880
|
+
|
|
3881
|
+
/** The live selection: several values, or one or none in a single-select set. */
|
|
3882
|
+
type ChipsValue = string | string[] | null;
|
|
3883
|
+
|
|
3884
|
+
declare const chipsSpec: {
|
|
3885
|
+
name: string;
|
|
3886
|
+
create: (config: Config) => ChipsComponent;
|
|
3887
|
+
styles: string[];
|
|
3888
|
+
hostStyles: string;
|
|
3889
|
+
attributes: {
|
|
3890
|
+
selection: {
|
|
3891
|
+
type: "string";
|
|
3892
|
+
};
|
|
3893
|
+
"selection-required": {
|
|
3894
|
+
type: "boolean";
|
|
3895
|
+
config: string;
|
|
3896
|
+
};
|
|
3897
|
+
scrollable: {
|
|
3898
|
+
type: "boolean";
|
|
3899
|
+
config: string;
|
|
3900
|
+
update: (c: ChipsComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
3901
|
+
};
|
|
3902
|
+
vertical: {
|
|
3903
|
+
type: "boolean";
|
|
3904
|
+
config: string;
|
|
3905
|
+
update: (c: ChipsComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
3906
|
+
};
|
|
3907
|
+
label: {
|
|
3908
|
+
type: "string";
|
|
3909
|
+
config: string;
|
|
3910
|
+
update: (c: ChipsComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
3911
|
+
};
|
|
3912
|
+
"label-position": {
|
|
3913
|
+
type: "string";
|
|
3914
|
+
config: string;
|
|
3915
|
+
update: (c: ChipsComponent, v: import("./define.js").AttributeValue) => undefined;
|
|
3916
|
+
};
|
|
3917
|
+
"aria-label": {
|
|
3918
|
+
type: "string";
|
|
3919
|
+
config: string;
|
|
3920
|
+
update: (c: ChipsComponent, v: import("./define.js").AttributeValue) => void;
|
|
3921
|
+
};
|
|
3922
|
+
value: {
|
|
3923
|
+
type: "string";
|
|
3924
|
+
update: (c: ChipsComponent, v: import("./define.js").AttributeValue) => void;
|
|
3925
|
+
};
|
|
3926
|
+
};
|
|
3927
|
+
properties: {
|
|
3928
|
+
value: {
|
|
3929
|
+
get: (c: ChipsComponent) => ChipsValue;
|
|
3930
|
+
set: (c: ChipsComponent, v: unknown) => void;
|
|
3931
|
+
};
|
|
3932
|
+
};
|
|
3933
|
+
model: "value";
|
|
3934
|
+
events: {
|
|
3935
|
+
change: {
|
|
3936
|
+
detail: (payload: unknown) => {
|
|
3937
|
+
value: string | string[] | null;
|
|
3938
|
+
};
|
|
3939
|
+
};
|
|
3940
|
+
remove: {
|
|
3941
|
+
detail: (payload: unknown) => {
|
|
3942
|
+
chipValue: string | null;
|
|
3943
|
+
value: string | string[] | null;
|
|
3944
|
+
};
|
|
3945
|
+
};
|
|
3946
|
+
};
|
|
3947
|
+
config: (host: HTMLElement) => Config;
|
|
3948
|
+
setup: (host: ElementHost<ChipsComponent>, component: ChipsComponent) => () => undefined;
|
|
3949
|
+
observeChildren: (host: ElementHost<ChipsComponent>, component: ChipsComponent) => boolean;
|
|
3950
|
+
};
|
|
3951
|
+
|
|
3952
|
+
declare const chipsElement: import("./define.js").ElementDefinition<ChipsComponent>;
|
|
3953
|
+
|
|
3954
|
+
type ChipsSpec = typeof chipsSpec;
|
|
3955
|
+
|
|
3956
|
+
/** `<m-chips>` as a ref or a query returns it. */
|
|
3957
|
+
type ChipsElement = ElementInstance<ChipsSpec, ChipsComponent>;
|
|
3958
|
+
|
|
3959
|
+
/** `<m-chip>` declares one chip and renders nothing. */
|
|
3960
|
+
declare const chipDeclaration: {
|
|
3961
|
+
readonly name: "chip";
|
|
3962
|
+
readonly attributes: {
|
|
3963
|
+
readonly value: {
|
|
3964
|
+
readonly type: "string";
|
|
3965
|
+
};
|
|
3966
|
+
readonly label: {
|
|
3967
|
+
readonly type: "string";
|
|
3968
|
+
};
|
|
3969
|
+
readonly variant: {
|
|
3970
|
+
readonly type: "string";
|
|
3971
|
+
};
|
|
3972
|
+
/** Markup (HTML). */
|
|
3973
|
+
readonly icon: {
|
|
3974
|
+
readonly type: "string";
|
|
3975
|
+
};
|
|
3976
|
+
/** Markup (HTML). */
|
|
3977
|
+
readonly "trailing-icon": {
|
|
3978
|
+
readonly type: "string";
|
|
3979
|
+
};
|
|
3980
|
+
/** Markup (HTML), not a person's name or an image URL. */
|
|
3981
|
+
readonly avatar: {
|
|
3982
|
+
readonly type: "string";
|
|
3983
|
+
};
|
|
3984
|
+
readonly "remove-label": {
|
|
3985
|
+
readonly type: "string";
|
|
3986
|
+
};
|
|
3987
|
+
readonly selected: {
|
|
3988
|
+
readonly type: "boolean";
|
|
3989
|
+
};
|
|
3990
|
+
readonly disabled: {
|
|
3991
|
+
readonly type: "boolean";
|
|
3992
|
+
};
|
|
3993
|
+
readonly elevated: {
|
|
3994
|
+
readonly type: "boolean";
|
|
3995
|
+
};
|
|
3996
|
+
};
|
|
3997
|
+
};
|
|
3998
|
+
|
|
3999
|
+
type ChipAttributes = ElementAttributes<typeof chipDeclaration>;
|
|
4000
|
+
|
|
4001
|
+
/** Registers `<m-chips>` and `<m-chip>` (or with another prefix). */
|
|
4002
|
+
declare const defineChips: (options?: DefineOptions) => string;
|
|
4003
|
+
|
|
4004
|
+
declare global {
|
|
4005
|
+
/** `document.querySelector("m-…")` and `createElement` return the element's type (the default prefix). */
|
|
4006
|
+
interface HTMLElementTagNameMap {
|
|
4007
|
+
"m-chips": ChipsElement;
|
|
4008
|
+
"m-chip": HTMLElement & ChipAttributes;
|
|
4009
|
+
}
|
|
4010
|
+
}
|
|
4011
|
+
export type { BadgeElement, BadgeSpec, BottomAppBarElement, BottomAppBarSpec, BottomSheetElement, BottomSheetElementComponent, BottomSheetSpec, ButtonElement, ButtonGroupElement, ButtonGroupItemAttributes, ButtonGroupSpec, ButtonGroupValue, ButtonSpec, CardElement, CardSpec, CarouselElement, CarouselItemAttributes, CarouselSpec, CheckboxElement, CheckboxSpec, ChipAttributes, ChipsElement, ChipsSpec, ChipsValue, DatepickerElement, DatepickerElementComponent, DatepickerSpec, DialogElement, DialogElementComponent, DialogSpec, DividerElement, DividerSpec, DrawerElement, DrawerItemAttributes, DrawerSpec, ExtendedFabElement, ExtendedFabSpec, FabElement, FabMenuElement, FabMenuElementComponent, FabMenuItemAttributes, FabMenuSpec, FabSpec, ListElement, ListItemAttributes, ListSpec, LoadingIndicatorElement, LoadingIndicatorSpec, MenuAnchor, MenuElement, MenuElementComponent, MenuItemAttributes, MenuSpec, NavigationBarElement, NavigationBarItemAttributes, NavigationBarSpec, NavigationRailElement, NavigationRailItemAttributes, NavigationRailSpec, ProgressElement, ProgressSpec, RadioAttributes, RadiosElement, RadiosSpec, SearchElement, SearchElementComponent, SearchElementEvents, SearchSpec, SearchSuggestionAttributes, SelectElement, SelectOptionAttributes, SelectSpec, SideSheetElement, SideSheetElementComponent, SideSheetSpec, SliderElement, SliderSpec, SnackbarElement, SnackbarSpec, SplitButtonElement, SplitButtonElementComponent, SplitButtonElementEventType, SplitButtonSpec, SwitchElement, SwitchSpec, TabAttributes, TabsElement, TabsSpec, TextFieldElement, TextFieldElementComponent, TextFieldSpec, TimepickerElement, TimepickerElementComponent, TimepickerSpec, ToolbarElement, ToolbarSpec, TooltipElement, TooltipSpec, TopAppBarElement, TopAppBarSpec };
|
|
4012
|
+
export { badgeElement, bottomAppBarElement, bottomSheetElement, buttonElement, buttonGroupElement, buttonGroupItemDeclaration, cardElement, carouselElement, carouselItemDeclaration, checkboxElement, chipDeclaration, chipsElement, datepickerElement, declarations, defineAll, defineBadge, defineBottomAppBar, defineBottomSheet, defineButton, defineButtonGroup, defineCard, defineCarousel, defineCheckbox, defineChips, defineDatepicker, defineDialog, defineDivider, defineDrawer, defineExtendedFab, defineFab, defineFabMenu, defineList, defineLoadingIndicator, defineMenu, defineNavigationBar, defineNavigationRail, defineProgress, defineRadios, defineSearch, defineSelect, defineSideSheet, defineSlider, defineSnackbar, defineSplitButton, defineSwitch, defineTabs, defineTextField, defineTimepicker, defineToolbar, defineTooltip, defineTopAppBar, dialogElement, dividerElement, drawerElement, drawerItemDeclaration, elements, extendedFabElement, fabElement, fabMenuElement, fabMenuItemDeclaration, listElement, listItemDeclaration, loadingIndicatorElement, menuElement, menuItemDeclaration, navigationBarElement, navigationBarItemDeclaration, navigationRailElement, navigationRailItemDeclaration, progressElement, radioDeclaration, radiosElement, searchElement, searchSuggestionDeclaration, selectElement, selectOptionDeclaration, sideSheetElement, sliderElement, snackbarElement, splitButtonElement, switchElement, tabDeclaration, tabsElement, textFieldElement, timepickerElement, toolbarElement, tooltipElement, topAppBarElement };
|
|
4013
|
+
export type { AttributeProp, ComponentSpec, DeclarationSpec, DefaultProps, Described, FormProps, ModelOf, Pascal } from "./adapter.js";
|
|
4014
|
+
export type { AttributeSpec, AttributeType, DefineOptions, ElementAttributes, ElementComponent, ElementDefinition, ElementEvents, ElementHost, ElementInstance, ElementMarkup, ElementMethods, ElementProperties, ElementProps, ElementSlotProp, ElementSlotText, ElementSlots, ElementSpec, EventSpec, FormSpec, PropertySpec, SlotSpec } from "./define.js";
|
|
4015
|
+
export type { IconButtonElement, IconButtonSpec } from "./icon-button.js";
|
|
4016
|
+
export { DEFAULT_PREFIX, SHADOW_BASE_STYLES, defineElement } from "./define.js";
|
|
4017
|
+
export { camel, configure, describe, describeDeclaration, getPrefix, isBrowser, pascal, toAttribute } from "./adapter.js";
|
|
4018
|
+
export { defineIconButton, iconButtonElement } from "./icon-button.js";
|
|
4019
|
+
export { hasStyles, registerStyles } from "./styles.js";
|