@shortfuse/materialdesignweb 0.7.6 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +87 -90
- package/bin/mdw-css.js +1 -1
- package/components/Badge.js +14 -7
- package/components/Body.js +3 -0
- package/components/BottomAppBar.js +4 -13
- package/components/BottomSheet.js +424 -0
- package/components/Box.js +20 -28
- package/components/Button.js +85 -79
- package/components/Button.md +9 -9
- package/components/Card.js +60 -72
- package/components/Checkbox.js +33 -42
- package/components/CheckboxIcon.js +11 -29
- package/components/Chip.js +13 -11
- package/components/Dialog.js +214 -394
- package/components/DialogActions.js +2 -2
- package/components/Display.js +55 -0
- package/components/Divider.js +3 -3
- package/components/Fab.js +83 -18
- package/components/FabContainer.js +48 -0
- package/components/FilterChip.js +35 -33
- package/components/Grid.js +176 -0
- package/components/Headline.js +5 -28
- package/components/Icon.js +61 -76
- package/components/IconButton.js +72 -126
- package/components/Input.js +859 -1
- package/components/InputChip.js +161 -0
- package/components/Label.js +3 -0
- package/components/List.js +4 -6
- package/components/ListItem.js +46 -30
- package/components/ListOption.js +86 -53
- package/components/Listbox.js +248 -0
- package/components/Menu.js +69 -528
- package/components/MenuItem.js +33 -36
- package/components/NavBar.js +49 -86
- package/components/NavDrawer.js +16 -15
- package/components/NavDrawerItem.js +4 -5
- package/components/NavItem.js +58 -41
- package/components/NavRail.js +30 -20
- package/components/NavRailItem.js +8 -3
- package/components/Page.js +105 -0
- package/components/Pane.js +11 -274
- package/components/Popup.js +29 -0
- package/components/Progress.js +24 -23
- package/components/Radio.js +40 -36
- package/components/RadioIcon.js +12 -16
- package/components/Ripple.js +13 -10
- package/components/Root.js +209 -0
- package/components/Scrim.js +87 -0
- package/components/Search.js +77 -0
- package/components/SegmentedButton.js +33 -45
- package/components/SegmentedButtonGroup.js +25 -13
- package/components/Select.js +10 -11
- package/components/Shape.js +5 -65
- package/components/SideSheet.js +308 -0
- package/components/Slider.js +108 -78
- package/components/Snackbar.js +26 -21
- package/components/SnackbarContainer.js +42 -0
- package/components/Surface.js +17 -12
- package/components/Switch.js +45 -24
- package/components/SwitchIcon.js +49 -39
- package/components/Tab.js +64 -43
- package/components/TabContent.js +5 -3
- package/components/TabList.js +62 -34
- package/components/TabPanel.js +11 -8
- package/components/Table.js +116 -0
- package/components/TextArea.js +54 -50
- package/components/Title.js +4 -9
- package/components/Tooltip.js +44 -22
- package/components/TopAppBar.js +68 -172
- package/constants/shapes.js +36 -0
- package/constants/typography.js +127 -0
- package/core/Composition.js +1164 -645
- package/core/CompositionAdapter.js +314 -0
- package/core/CustomElement.js +701 -286
- package/core/css.js +121 -15
- package/core/customTypes.js +157 -40
- package/core/dom.js +17 -11
- package/{utils → core}/jsonMergePatch.js +42 -18
- package/core/observe.js +343 -244
- package/core/optimizations.js +23 -0
- package/core/template.js +19 -56
- package/core/uid.js +13 -0
- package/dist/index.min.js +85 -184
- package/dist/index.min.js.map +4 -4
- package/dist/meta.json +1 -1
- package/dom/HTMLOptionsCollectionProxy.js +106 -0
- package/loaders/palette.js +13 -0
- package/loaders/theme.js +12 -0
- package/mixins/AriaReflectorMixin.js +53 -14
- package/mixins/AriaToolbarMixin.js +5 -3
- package/mixins/ControlMixin.js +92 -41
- package/mixins/DelegatesFocusMixin.js +54 -0
- package/mixins/DensityMixin.js +2 -3
- package/mixins/ElevationMixin.js +62 -0
- package/mixins/FlexableMixin.js +67 -39
- package/mixins/FormAssociatedMixin.js +71 -16
- package/mixins/HyperlinkMixin.js +66 -0
- package/mixins/InputMixin.js +205 -39
- package/mixins/KeyboardNavMixin.js +22 -7
- package/mixins/NavigationListenerMixin.js +33 -0
- package/mixins/PopupMixin.js +725 -0
- package/mixins/RTLObserverMixin.js +0 -1
- package/mixins/ResizeObserverMixin.js +16 -5
- package/mixins/RippleMixin.js +11 -10
- package/mixins/ScrollListenerMixin.js +42 -33
- package/mixins/SemiStickyMixin.js +97 -0
- package/mixins/ShapeMaskedMixin.js +117 -0
- package/mixins/ShapeMixin.js +17 -194
- package/mixins/StateMixin.js +80 -39
- package/mixins/TextFieldMixin.js +139 -183
- package/mixins/ThemableMixin.js +71 -161
- package/mixins/TooltipTriggerMixin.js +292 -366
- package/mixins/TouchTargetMixin.js +5 -4
- package/mixins/TypographyMixin.js +121 -0
- package/package.json +111 -71
- package/services/rtl.js +10 -0
- package/services/svgAlias.js +17 -0
- package/{theming/index.js → services/theme.js} +25 -175
- package/types/bin/mdw-css.d.ts +3 -0
- package/types/bin/mdw-css.d.ts.map +1 -0
- package/types/components/Badge.d.ts +39 -0
- package/types/components/Badge.d.ts.map +1 -0
- package/types/components/Body.d.ts +29 -0
- package/types/components/Body.d.ts.map +1 -0
- package/types/components/BottomAppBar.d.ts +73 -0
- package/types/components/BottomAppBar.d.ts.map +1 -0
- package/types/components/BottomSheet.d.ts +109 -0
- package/types/components/BottomSheet.d.ts.map +1 -0
- package/types/components/Box.d.ts +16 -0
- package/types/components/Box.d.ts.map +1 -0
- package/types/components/Button.d.ts +714 -0
- package/types/components/Button.d.ts.map +1 -0
- package/types/components/Card.d.ts +412 -0
- package/types/components/Card.d.ts.map +1 -0
- package/types/components/Checkbox.d.ts +205 -0
- package/types/components/Checkbox.d.ts.map +1 -0
- package/types/components/CheckboxIcon.d.ts +44 -0
- package/types/components/CheckboxIcon.d.ts.map +1 -0
- package/types/components/Chip.d.ts +1425 -0
- package/types/components/Chip.d.ts.map +1 -0
- package/types/components/Dialog.d.ts +286 -0
- package/types/components/Dialog.d.ts.map +1 -0
- package/types/components/DialogActions.d.ts +4 -0
- package/types/components/DialogActions.d.ts.map +1 -0
- package/types/components/Display.d.ts +45 -0
- package/types/components/Display.d.ts.map +1 -0
- package/types/components/Divider.d.ts +10 -0
- package/types/components/Divider.d.ts.map +1 -0
- package/types/components/Fab.d.ts +741 -0
- package/types/components/Fab.d.ts.map +1 -0
- package/types/components/FabContainer.d.ts +10 -0
- package/types/components/FabContainer.d.ts.map +1 -0
- package/types/components/FilterChip.d.ts +4283 -0
- package/types/components/FilterChip.d.ts.map +1 -0
- package/types/components/Grid.d.ts +37 -0
- package/types/components/Grid.d.ts.map +1 -0
- package/types/components/Headline.d.ts +47 -0
- package/types/components/Headline.d.ts.map +1 -0
- package/types/components/Icon.d.ts +103 -0
- package/types/components/Icon.d.ts.map +1 -0
- package/types/components/IconButton.d.ts +1486 -0
- package/types/components/IconButton.d.ts.map +1 -0
- package/types/components/Input.d.ts +51288 -0
- package/types/components/Input.d.ts.map +1 -0
- package/types/components/InputChip.d.ts +243 -0
- package/types/components/InputChip.d.ts.map +1 -0
- package/types/components/Label.d.ts +29 -0
- package/types/components/Label.d.ts.map +1 -0
- package/types/components/List.d.ts +31 -0
- package/types/components/List.d.ts.map +1 -0
- package/types/components/ListItem.d.ts +349 -0
- package/types/components/ListItem.d.ts.map +1 -0
- package/types/components/ListOption.d.ts +1493 -0
- package/types/components/ListOption.d.ts.map +1 -0
- package/types/components/Listbox.d.ts +12012 -0
- package/types/components/Listbox.d.ts.map +1 -0
- package/types/components/Menu.d.ts +119 -0
- package/types/components/Menu.d.ts.map +1 -0
- package/types/components/MenuItem.d.ts +3109 -0
- package/types/components/MenuItem.d.ts.map +1 -0
- package/types/components/NavBar.d.ts +18 -0
- package/types/components/NavBar.d.ts.map +1 -0
- package/types/components/NavBarItem.d.ts +186 -0
- package/types/components/NavBarItem.d.ts.map +1 -0
- package/types/components/NavDrawer.d.ts +108 -0
- package/types/components/NavDrawer.d.ts.map +1 -0
- package/types/components/NavDrawerItem.d.ts +186 -0
- package/types/components/NavDrawerItem.d.ts.map +1 -0
- package/types/components/NavItem.d.ts +190 -0
- package/types/components/NavItem.d.ts.map +1 -0
- package/types/components/NavRail.d.ts +109 -0
- package/types/components/NavRail.d.ts.map +1 -0
- package/types/components/NavRailItem.d.ts +186 -0
- package/types/components/NavRailItem.d.ts.map +1 -0
- package/types/components/Page.d.ts +24 -0
- package/types/components/Page.d.ts.map +1 -0
- package/types/components/Pane.d.ts +44 -0
- package/types/components/Pane.d.ts.map +1 -0
- package/types/components/Popup.d.ts +76 -0
- package/types/components/Popup.d.ts.map +1 -0
- package/types/components/Progress.d.ts +19 -0
- package/types/components/Progress.d.ts.map +1 -0
- package/types/components/Radio.d.ts +199 -0
- package/types/components/Radio.d.ts.map +1 -0
- package/types/components/RadioIcon.d.ts +46 -0
- package/types/components/RadioIcon.d.ts.map +1 -0
- package/types/components/Ripple.d.ts +34 -0
- package/types/components/Ripple.d.ts.map +1 -0
- package/types/components/Root.d.ts +68 -0
- package/types/components/Root.d.ts.map +1 -0
- package/types/components/Scrim.d.ts +6 -0
- package/types/components/Scrim.d.ts.map +1 -0
- package/types/components/Search.d.ts +16 -0
- package/types/components/Search.d.ts.map +1 -0
- package/types/components/SegmentedButton.d.ts +718 -0
- package/types/components/SegmentedButton.d.ts.map +1 -0
- package/types/components/SegmentedButtonGroup.d.ts +44 -0
- package/types/components/SegmentedButtonGroup.d.ts.map +1 -0
- package/types/components/Select.d.ts +1361 -0
- package/types/components/Select.d.ts.map +1 -0
- package/types/components/Shape.d.ts +10 -0
- package/types/components/Shape.d.ts.map +1 -0
- package/types/components/SideSheet.d.ts +106 -0
- package/types/components/SideSheet.d.ts.map +1 -0
- package/types/components/Slider.d.ts +382 -0
- package/types/components/Slider.d.ts.map +1 -0
- package/types/components/Snackbar.d.ts +65 -0
- package/types/components/Snackbar.d.ts.map +1 -0
- package/types/components/SnackbarContainer.d.ts +6 -0
- package/types/components/SnackbarContainer.d.ts.map +1 -0
- package/types/components/Surface.d.ts +45 -0
- package/types/components/Surface.d.ts.map +1 -0
- package/types/components/Switch.d.ts +183 -0
- package/types/components/Switch.d.ts.map +1 -0
- package/types/components/SwitchIcon.d.ts +169 -0
- package/types/components/SwitchIcon.d.ts.map +1 -0
- package/types/components/Tab.d.ts +879 -0
- package/types/components/Tab.d.ts.map +1 -0
- package/types/components/TabContent.d.ts +122 -0
- package/types/components/TabContent.d.ts.map +1 -0
- package/types/components/TabList.d.ts +6266 -0
- package/types/components/TabList.d.ts.map +1 -0
- package/types/components/TabPanel.d.ts +28 -0
- package/types/components/TabPanel.d.ts.map +1 -0
- package/types/components/Table.d.ts +2 -0
- package/types/components/Table.d.ts.map +1 -0
- package/types/components/TextArea.d.ts +1394 -0
- package/types/components/TextArea.d.ts.map +1 -0
- package/types/components/Title.d.ts +47 -0
- package/types/components/Title.d.ts.map +1 -0
- package/types/components/Tooltip.d.ts +49 -0
- package/types/components/Tooltip.d.ts.map +1 -0
- package/types/components/TopAppBar.d.ts +130 -0
- package/types/components/TopAppBar.d.ts.map +1 -0
- package/types/constants/colorKeywords.d.ts +2 -0
- package/types/constants/colorKeywords.d.ts.map +1 -0
- package/types/constants/shapes.d.ts +38 -0
- package/types/constants/shapes.d.ts.map +1 -0
- package/types/constants/typography.d.ts +212 -0
- package/types/constants/typography.d.ts.map +1 -0
- package/types/core/Composition.d.ts +252 -0
- package/types/core/Composition.d.ts.map +1 -0
- package/types/core/CompositionAdapter.d.ts +92 -0
- package/types/core/CompositionAdapter.d.ts.map +1 -0
- package/types/core/CustomElement.d.ts +302 -0
- package/types/core/CustomElement.d.ts.map +1 -0
- package/types/core/css.d.ts +44 -0
- package/types/core/css.d.ts.map +1 -0
- package/types/core/customTypes.d.ts +26 -0
- package/types/core/customTypes.d.ts.map +1 -0
- package/types/core/dom.d.ts +32 -0
- package/types/core/dom.d.ts.map +1 -0
- package/types/core/jsonMergePatch.d.ts +31 -0
- package/types/core/jsonMergePatch.d.ts.map +1 -0
- package/types/core/observe.d.ts +113 -0
- package/types/core/observe.d.ts.map +1 -0
- package/types/core/optimizations.d.ts +7 -0
- package/types/core/optimizations.d.ts.map +1 -0
- package/types/core/template.d.ts +47 -0
- package/types/core/template.d.ts.map +1 -0
- package/types/core/uid.d.ts +6 -0
- package/types/core/uid.d.ts.map +1 -0
- package/types/dom/HTMLOptionsCollectionProxy.d.ts +18 -0
- package/types/dom/HTMLOptionsCollectionProxy.d.ts.map +1 -0
- package/types/index.d.ts +88 -0
- package/types/index.d.ts.map +1 -0
- package/types/loaders/palette.d.ts +2 -0
- package/types/loaders/palette.d.ts.map +1 -0
- package/types/loaders/theme.d.ts +2 -0
- package/types/loaders/theme.d.ts.map +1 -0
- package/types/mixins/AriaReflectorMixin.d.ts +23 -0
- package/types/mixins/AriaReflectorMixin.d.ts.map +1 -0
- package/types/mixins/AriaToolbarMixin.d.ts +32 -0
- package/types/mixins/AriaToolbarMixin.d.ts.map +1 -0
- package/types/mixins/ControlMixin.d.ts +124 -0
- package/types/mixins/ControlMixin.d.ts.map +1 -0
- package/types/mixins/DelegatesFocusMixin.d.ts +5 -0
- package/types/mixins/DelegatesFocusMixin.d.ts.map +1 -0
- package/types/mixins/DensityMixin.d.ts +5 -0
- package/types/mixins/DensityMixin.d.ts.map +1 -0
- package/types/mixins/ElevationMixin.d.ts +33 -0
- package/types/mixins/ElevationMixin.d.ts.map +1 -0
- package/types/mixins/FlexableMixin.d.ts +13 -0
- package/types/mixins/FlexableMixin.d.ts.map +1 -0
- package/types/mixins/FormAssociatedMixin.d.ts +122 -0
- package/types/mixins/FormAssociatedMixin.d.ts.map +1 -0
- package/types/mixins/HyperlinkMixin.d.ts +22 -0
- package/types/mixins/HyperlinkMixin.d.ts.map +1 -0
- package/types/mixins/InputMixin.d.ts +179 -0
- package/types/mixins/InputMixin.d.ts.map +1 -0
- package/types/mixins/KeyboardNavMixin.d.ts +47 -0
- package/types/mixins/KeyboardNavMixin.d.ts.map +1 -0
- package/types/mixins/NavigationListenerMixin.d.ts +8 -0
- package/types/mixins/NavigationListenerMixin.d.ts.map +1 -0
- package/types/mixins/PopupMixin.d.ts +82 -0
- package/types/mixins/PopupMixin.d.ts.map +1 -0
- package/types/mixins/RTLObserverMixin.d.ts +7 -0
- package/types/mixins/RTLObserverMixin.d.ts.map +1 -0
- package/types/mixins/ResizeObserverMixin.d.ts +12 -0
- package/types/mixins/ResizeObserverMixin.d.ts.map +1 -0
- package/types/mixins/RippleMixin.d.ts +92 -0
- package/types/mixins/RippleMixin.d.ts.map +1 -0
- package/types/mixins/ScrollListenerMixin.d.ts +41 -0
- package/types/mixins/ScrollListenerMixin.d.ts.map +1 -0
- package/types/mixins/SemiStickyMixin.d.ts +50 -0
- package/types/mixins/SemiStickyMixin.d.ts.map +1 -0
- package/types/mixins/ShapeMaskedMixin.d.ts +9 -0
- package/types/mixins/ShapeMaskedMixin.d.ts.map +1 -0
- package/types/mixins/ShapeMixin.d.ts +38 -0
- package/types/mixins/ShapeMixin.d.ts.map +1 -0
- package/types/mixins/StateMixin.d.ts +27 -0
- package/types/mixins/StateMixin.d.ts.map +1 -0
- package/types/mixins/TextFieldMixin.d.ts +1354 -0
- package/types/mixins/TextFieldMixin.d.ts.map +1 -0
- package/types/mixins/ThemableMixin.d.ts +9 -0
- package/types/mixins/ThemableMixin.d.ts.map +1 -0
- package/types/mixins/TooltipTriggerMixin.d.ts +106 -0
- package/types/mixins/TooltipTriggerMixin.d.ts.map +1 -0
- package/types/mixins/TouchTargetMixin.d.ts +3 -0
- package/types/mixins/TouchTargetMixin.d.ts.map +1 -0
- package/types/mixins/TypographyMixin.d.ts +17 -0
- package/types/mixins/TypographyMixin.d.ts.map +1 -0
- package/types/services/rtl.d.ts +3 -0
- package/types/services/rtl.d.ts.map +1 -0
- package/types/services/svgAlias.d.ts +13 -0
- package/types/services/svgAlias.d.ts.map +1 -0
- package/types/services/theme.d.ts +45 -0
- package/types/services/theme.d.ts.map +1 -0
- package/types/utils/cli.d.ts +3 -0
- package/types/utils/cli.d.ts.map +1 -0
- package/types/utils/function.d.ts +3 -0
- package/types/utils/function.d.ts.map +1 -0
- package/types/utils/jsx-runtime.d.ts +20 -0
- package/types/utils/jsx-runtime.d.ts.map +1 -0
- package/types/utils/material-color/blend.d.ts +34 -0
- package/types/utils/material-color/blend.d.ts.map +1 -0
- package/types/utils/material-color/hct/Cam16.d.ts +142 -0
- package/types/utils/material-color/hct/Cam16.d.ts.map +1 -0
- package/types/utils/material-color/hct/Hct.d.ts +93 -0
- package/types/utils/material-color/hct/Hct.d.ts.map +1 -0
- package/types/utils/material-color/hct/ViewingConditions.d.ts +69 -0
- package/types/utils/material-color/hct/ViewingConditions.d.ts.map +1 -0
- package/types/utils/material-color/hct/hctSolver.d.ts +30 -0
- package/types/utils/material-color/hct/hctSolver.d.ts.map +1 -0
- package/types/utils/material-color/helper.d.ts +8 -0
- package/types/utils/material-color/helper.d.ts.map +1 -0
- package/types/utils/material-color/palettes/CorePalette.d.ts +75 -0
- package/types/utils/material-color/palettes/CorePalette.d.ts.map +1 -0
- package/types/utils/material-color/palettes/TonalPalette.d.ts +38 -0
- package/types/utils/material-color/palettes/TonalPalette.d.ts.map +1 -0
- package/types/utils/material-color/scheme/Scheme.d.ts +264 -0
- package/types/utils/material-color/scheme/Scheme.d.ts.map +1 -0
- package/types/utils/material-color/utils/color.d.ts +172 -0
- package/types/utils/material-color/utils/color.d.ts.map +1 -0
- package/types/utils/material-color/utils/math.d.ts +94 -0
- package/types/utils/material-color/utils/math.d.ts.map +1 -0
- package/types/utils/pixelmatch.d.ts +22 -0
- package/types/utils/pixelmatch.d.ts.map +1 -0
- package/types/utils/popup.d.ts +106 -0
- package/types/utils/popup.d.ts.map +1 -0
- package/types/utils/searchParams.d.ts +3 -0
- package/types/utils/searchParams.d.ts.map +1 -0
- package/types/utils/svg.d.ts +7 -0
- package/types/utils/svg.d.ts.map +1 -0
- package/utils/{hct → material-color}/blend.js +8 -10
- package/utils/{hct → material-color/hct}/Cam16.js +196 -69
- package/utils/{hct → material-color/hct}/Hct.js +61 -19
- package/utils/{hct → material-color/hct}/ViewingConditions.js +3 -3
- package/utils/{hct → material-color/hct}/hctSolver.js +9 -16
- package/utils/{hct → material-color}/helper.js +11 -18
- package/utils/{hct → material-color/palettes}/CorePalette.js +79 -19
- package/utils/{hct → material-color/palettes}/TonalPalette.js +12 -4
- package/utils/material-color/scheme/Scheme.js +376 -0
- package/utils/{hct/colorUtils.js → material-color/utils/color.js} +61 -1
- package/utils/pixelmatch.js +360 -0
- package/utils/popup.js +127 -30
- package/utils/searchParams.js +19 -0
- package/components/ExtendedFab.js +0 -36
- package/components/Layout.js +0 -35
- package/components/ListSelect.js +0 -220
- package/components/Nav.js +0 -40
- package/components/Option.js +0 -91
- package/core/ICustomElement.d.ts +0 -291
- package/core/ICustomElement.js +0 -1
- package/core/identify.js +0 -40
- package/core/typings.d.ts +0 -136
- package/core/typings.js +0 -1
- package/mixins/SurfaceMixin.js +0 -181
- package/theming/loader.js +0 -22
- package/utils/hct/Scheme.js +0 -587
- /package/{utils/color_keywords.js → constants/colorKeywords.js} +0 -0
- /package/utils/{hct/mathUtils.js → material-color/utils/math.js} +0 -0
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/** @typedef {import('../core/CustomElement.js').default} CustomElement */
|
|
2
|
+
/** @typedef {'align'|'useMap'} DeprecatedHTMLInputElementProperties */
|
|
3
|
+
/** @typedef {HTMLInputElement|HTMLTextAreaElement|HTMLSelectElement} HTMLControlElement */
|
|
4
|
+
/**
|
|
5
|
+
* @param {ReturnType<import('./StateMixin.js').default>} Base
|
|
6
|
+
*/
|
|
7
|
+
export default function ControlMixin(Base: ReturnType<typeof import("./StateMixin.js").default>): typeof import("../core/CustomElement.js").default & import("../core/CustomElement.js").Class<{
|
|
8
|
+
delegatesFocus: boolean;
|
|
9
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
focused: boolean;
|
|
12
|
+
hovered: boolean;
|
|
13
|
+
pressed: boolean;
|
|
14
|
+
_lastInteraction: "key" | "mouse" | "touch" | "pen";
|
|
15
|
+
_hovered: boolean;
|
|
16
|
+
_focused: boolean;
|
|
17
|
+
_focusedSynthetic: boolean;
|
|
18
|
+
_keyPressed: boolean;
|
|
19
|
+
_keyReleased: boolean;
|
|
20
|
+
_pointerPressed: boolean;
|
|
21
|
+
stateLayer: boolean;
|
|
22
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
23
|
+
disabledState: boolean;
|
|
24
|
+
hoveredState: boolean;
|
|
25
|
+
focusedState: boolean;
|
|
26
|
+
pressedState: boolean;
|
|
27
|
+
touchedState: boolean;
|
|
28
|
+
pointedState: boolean;
|
|
29
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
30
|
+
stateTargetElement: HTMLElement;
|
|
31
|
+
}, any[]> & {
|
|
32
|
+
formAssociated: true;
|
|
33
|
+
} & import("../core/CustomElement.js").Class<{
|
|
34
|
+
_ipcListener: EventListener;
|
|
35
|
+
_ipcTarget: EventTarget;
|
|
36
|
+
_files: FileList;
|
|
37
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
38
|
+
ariaControls: string;
|
|
39
|
+
autocomplete: string;
|
|
40
|
+
name: string;
|
|
41
|
+
readOnly: boolean;
|
|
42
|
+
formNoValidate: boolean;
|
|
43
|
+
defaultChecked: boolean;
|
|
44
|
+
_checkedDirty: boolean;
|
|
45
|
+
_checked: boolean;
|
|
46
|
+
required: boolean;
|
|
47
|
+
type: string;
|
|
48
|
+
_defaultValue: string;
|
|
49
|
+
_value: string;
|
|
50
|
+
_valueDirty: boolean;
|
|
51
|
+
_userInteracted: boolean;
|
|
52
|
+
_invalid: boolean;
|
|
53
|
+
_badInput: boolean;
|
|
54
|
+
_validationMessage: string;
|
|
55
|
+
_formDisabled: boolean;
|
|
56
|
+
_formReset: boolean;
|
|
57
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
58
|
+
erroredState: boolean;
|
|
59
|
+
defaultValue: string;
|
|
60
|
+
_valueBehavior: "default" | "value" | "default/on" | "filename";
|
|
61
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
62
|
+
_onSetValue(value: string): void;
|
|
63
|
+
_onSetChecked(checked: boolean): void;
|
|
64
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
65
|
+
value: string;
|
|
66
|
+
checked: boolean;
|
|
67
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
68
|
+
form: HTMLFormElement;
|
|
69
|
+
validity: ValidityState;
|
|
70
|
+
validationMessage: string;
|
|
71
|
+
willValidate: boolean;
|
|
72
|
+
labels: NodeList;
|
|
73
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
74
|
+
disabledState: boolean;
|
|
75
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
76
|
+
checkValidity(): boolean;
|
|
77
|
+
reportValidity(): boolean;
|
|
78
|
+
setCustomValidity(error: string): void;
|
|
79
|
+
_notifyRadioChange(key: string, value: string): void;
|
|
80
|
+
refreshFormAssociation(): void;
|
|
81
|
+
formAssociatedCallback(form: HTMLFormElement | null): void;
|
|
82
|
+
formIPCEvent(event: CustomEvent<[string, string]>): void;
|
|
83
|
+
formDisabledCallback(disabled: boolean): void;
|
|
84
|
+
formResetCallback(): void;
|
|
85
|
+
formStateRestoreCallback(state: string | FormData, mode: "autocomplete" | "restore"): void;
|
|
86
|
+
_updateFormAssociatedValue(): void;
|
|
87
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
88
|
+
ariaLabel: string;
|
|
89
|
+
_slotInnerText: string;
|
|
90
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
91
|
+
focusableOnDisabled: boolean;
|
|
92
|
+
controlTagName: string;
|
|
93
|
+
controlVoidElement: boolean;
|
|
94
|
+
_slotMutationObserver: any;
|
|
95
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
96
|
+
/**
|
|
97
|
+
* Default behavior can be overridden
|
|
98
|
+
* @param {string} value
|
|
99
|
+
*/
|
|
100
|
+
_onControlValue(value: string): void;
|
|
101
|
+
onValueChangingContentAttribute(): void;
|
|
102
|
+
/** @type {HTMLElement['focus']} */
|
|
103
|
+
focus(options?: FocusOptions): void;
|
|
104
|
+
/** Redirect click requests to control itself */
|
|
105
|
+
click(): void;
|
|
106
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
107
|
+
stateTargetElement: HTMLElement;
|
|
108
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
109
|
+
checkValidity(): boolean;
|
|
110
|
+
reportValidity(): boolean;
|
|
111
|
+
/**
|
|
112
|
+
* @param {string} error
|
|
113
|
+
* @return {void}
|
|
114
|
+
*/
|
|
115
|
+
setCustomValidity(error: string): void;
|
|
116
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
117
|
+
_computedAriaLabel: string;
|
|
118
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
119
|
+
_computedAriaLabelledby: never;
|
|
120
|
+
}, any[]>;
|
|
121
|
+
export type CustomElement = import("../core/CustomElement.js").default;
|
|
122
|
+
export type DeprecatedHTMLInputElementProperties = "align" | "useMap";
|
|
123
|
+
export type HTMLControlElement = HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement;
|
|
124
|
+
//# sourceMappingURL=ControlMixin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ControlMixin.d.ts","sourceRoot":"","sources":["../../mixins/ControlMixin.js"],"names":[],"mappings":"AAQA,0EAA0E;AAE1E,uEAAuE;AAEvE,2FAA2F;AAE3F;;GAEG;AACH,2CAFW,UAAU,CAAC,wCAAiC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiBlD;;;OAGG;2BADQ,MAAM;;IAiBjB,mCAAmC;;IAInC,gDAAgD;;;;;;;IAiChD;;;OAGG;6BAFQ,MAAM,GACL,IAAI;;;;;UAqLrB;4BAvQa,OAAO,0BAA0B,EAAE,OAAO;mDAE1C,OAAO,GAAC,QAAQ;iCAEhB,gBAAgB,GAAC,mBAAmB,GAAC,iBAAiB"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** @param {typeof import('../core/CustomElement.js').default} Base */
|
|
2
|
+
export default function DelegatesFocusMixin(Base: typeof import("../core/CustomElement.js").default): typeof import("../core/CustomElement.js").default & import("../core/CustomElement.js").Class<{
|
|
3
|
+
delegatesFocus: boolean;
|
|
4
|
+
}, any[]>;
|
|
5
|
+
//# sourceMappingURL=DelegatesFocusMixin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DelegatesFocusMixin.d.ts","sourceRoot":"","sources":["../../mixins/DelegatesFocusMixin.js"],"names":[],"mappings":"AAEA,sEAAsE;AACtE,kDADY,cAAc,0BAA0B,EAAE,OAAO;;UAmD5D"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** @param {typeof import('../core/CustomElement.js').default} Base */
|
|
2
|
+
export default function DensityMixin(Base: typeof import("../core/CustomElement.js").default): typeof import("../core/CustomElement.js").default & import("../core/CustomElement.js").Class<{
|
|
3
|
+
density: number;
|
|
4
|
+
}, any[]>;
|
|
5
|
+
//# sourceMappingURL=DensityMixin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DensityMixin.d.ts","sourceRoot":"","sources":["../../mixins/DensityMixin.js"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,2CADY,cAAc,0BAA0B,EAAE,OAAO;;UAuB5D"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Displays elevation via shadows or underlighting.
|
|
3
|
+
* Uses `filter:drop-shadow` to display elevation.
|
|
4
|
+
* @param {ReturnType<import('./StateMixin.js').default> & ReturnType<import('./ThemableMixin.js').default>} Base
|
|
5
|
+
*/
|
|
6
|
+
export default function ElevationMixin(Base: ReturnType<typeof import("./StateMixin.js").default> & ReturnType<typeof import("./ThemableMixin.js").default>): typeof import("../index.js").CustomElement & import("../core/CustomElement.js").Class<{
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
focused: boolean;
|
|
9
|
+
hovered: boolean;
|
|
10
|
+
pressed: boolean;
|
|
11
|
+
_lastInteraction: "key" | "mouse" | "touch" | "pen";
|
|
12
|
+
_hovered: boolean;
|
|
13
|
+
_focused: boolean;
|
|
14
|
+
_focusedSynthetic: boolean;
|
|
15
|
+
_keyPressed: boolean;
|
|
16
|
+
_keyReleased: boolean;
|
|
17
|
+
_pointerPressed: boolean;
|
|
18
|
+
stateLayer: boolean;
|
|
19
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
20
|
+
disabledState: boolean;
|
|
21
|
+
hoveredState: boolean;
|
|
22
|
+
focusedState: boolean;
|
|
23
|
+
pressedState: boolean;
|
|
24
|
+
touchedState: boolean;
|
|
25
|
+
pointedState: boolean;
|
|
26
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
27
|
+
stateTargetElement: HTMLElement;
|
|
28
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
29
|
+
color: string;
|
|
30
|
+
ink: string;
|
|
31
|
+
typeStyle: string;
|
|
32
|
+
}, any[]>;
|
|
33
|
+
//# sourceMappingURL=ElevationMixin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ElevationMixin.d.ts","sourceRoot":"","sources":["../../mixins/ElevationMixin.js"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,6CAFW,UAAU,CAAC,wCAAiC,CAAC,GAAG,UAAU,CAAC,2CAAoC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;UA0D1G"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param {typeof import('../core/CustomElement.js').default} Base
|
|
3
|
+
*/
|
|
4
|
+
export default function FlexableMixin(Base: typeof import("../core/CustomElement.js").default): typeof import("../core/CustomElement.js").default & import("../core/CustomElement.js").Class<{
|
|
5
|
+
block: boolean;
|
|
6
|
+
inline: boolean;
|
|
7
|
+
row: boolean;
|
|
8
|
+
x: string;
|
|
9
|
+
y: string;
|
|
10
|
+
gap: number;
|
|
11
|
+
padding: string;
|
|
12
|
+
}, any[]>;
|
|
13
|
+
//# sourceMappingURL=FlexableMixin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FlexableMixin.d.ts","sourceRoot":"","sources":["../../mixins/FlexableMixin.js"],"names":[],"mappings":"AAAA;;GAEG;AACH,4CAFW,cAAc,0BAA0B,EAAE,OAAO;;;;;;;;UAwI3D"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param {ReturnType<import('./StateMixin.js').default>} Base
|
|
3
|
+
*/
|
|
4
|
+
export default function FormAssociatedMixin(Base: ReturnType<typeof import("./StateMixin.js").default>): typeof import("../core/CustomElement.js").default & import("../core/CustomElement.js").Class<{
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
focused: boolean;
|
|
7
|
+
hovered: boolean;
|
|
8
|
+
pressed: boolean;
|
|
9
|
+
_lastInteraction: "key" | "mouse" | "touch" | "pen";
|
|
10
|
+
_hovered: boolean;
|
|
11
|
+
_focused: boolean;
|
|
12
|
+
_focusedSynthetic: boolean;
|
|
13
|
+
_keyPressed: boolean;
|
|
14
|
+
_keyReleased: boolean;
|
|
15
|
+
_pointerPressed: boolean;
|
|
16
|
+
stateLayer: boolean;
|
|
17
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
18
|
+
disabledState: boolean;
|
|
19
|
+
hoveredState: boolean;
|
|
20
|
+
focusedState: boolean;
|
|
21
|
+
pressedState: boolean;
|
|
22
|
+
touchedState: boolean;
|
|
23
|
+
pointedState: boolean;
|
|
24
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
25
|
+
stateTargetElement: HTMLElement;
|
|
26
|
+
}, any[]> & {
|
|
27
|
+
formAssociated: true;
|
|
28
|
+
} & import("../core/CustomElement.js").Class<{
|
|
29
|
+
/** @type {EventListener} */
|
|
30
|
+
_ipcListener: EventListener;
|
|
31
|
+
/** @type {EventTarget} */
|
|
32
|
+
_ipcTarget: EventTarget;
|
|
33
|
+
/** @type {FileList} */
|
|
34
|
+
_files: FileList;
|
|
35
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
36
|
+
ariaControls: string;
|
|
37
|
+
autocomplete: string;
|
|
38
|
+
name: string;
|
|
39
|
+
readOnly: boolean;
|
|
40
|
+
formNoValidate: boolean;
|
|
41
|
+
defaultChecked: boolean;
|
|
42
|
+
_checkedDirty: boolean;
|
|
43
|
+
_checked: boolean;
|
|
44
|
+
required: boolean;
|
|
45
|
+
type: string;
|
|
46
|
+
_defaultValue: string;
|
|
47
|
+
_value: string;
|
|
48
|
+
_valueDirty: boolean;
|
|
49
|
+
_userInteracted: boolean;
|
|
50
|
+
_invalid: boolean;
|
|
51
|
+
_badInput: boolean;
|
|
52
|
+
_validationMessage: string;
|
|
53
|
+
_formDisabled: boolean;
|
|
54
|
+
_formReset: boolean;
|
|
55
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
56
|
+
erroredState: boolean;
|
|
57
|
+
defaultValue: string;
|
|
58
|
+
_valueBehavior: "default" | "value" | "default/on" | "filename";
|
|
59
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
60
|
+
/**
|
|
61
|
+
* Default behavior can should likely be overridden
|
|
62
|
+
* @param {string} value
|
|
63
|
+
*/
|
|
64
|
+
_onSetValue(value: string): void;
|
|
65
|
+
/**
|
|
66
|
+
* Default behavior can should likely be overridden
|
|
67
|
+
* @param {boolean} checked
|
|
68
|
+
*/
|
|
69
|
+
_onSetChecked(checked: boolean): void;
|
|
70
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
71
|
+
value: string;
|
|
72
|
+
checked: boolean;
|
|
73
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
74
|
+
form: HTMLFormElement;
|
|
75
|
+
validity: ValidityState;
|
|
76
|
+
validationMessage: string;
|
|
77
|
+
willValidate: boolean;
|
|
78
|
+
labels: NodeList;
|
|
79
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
80
|
+
disabledState: boolean;
|
|
81
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
82
|
+
checkValidity(): boolean;
|
|
83
|
+
reportValidity(): boolean;
|
|
84
|
+
/**
|
|
85
|
+
* @param {string} error
|
|
86
|
+
* @return {void}
|
|
87
|
+
*/
|
|
88
|
+
setCustomValidity(error: string): void;
|
|
89
|
+
/**
|
|
90
|
+
* @param {string} key
|
|
91
|
+
* @param {string} value
|
|
92
|
+
* @return {void}
|
|
93
|
+
*/
|
|
94
|
+
_notifyRadioChange(key: string, value: string): void;
|
|
95
|
+
refreshFormAssociation(): void;
|
|
96
|
+
/**
|
|
97
|
+
* New lifecycle callback. This is called when association with
|
|
98
|
+
* <form> is changed.
|
|
99
|
+
* @param {HTMLFormElement?} form
|
|
100
|
+
* @return {void}
|
|
101
|
+
*/
|
|
102
|
+
formAssociatedCallback(form: HTMLFormElement | null): void;
|
|
103
|
+
/**
|
|
104
|
+
* @param {CustomEvent<[string, string]>} event
|
|
105
|
+
* @return {void}
|
|
106
|
+
*/
|
|
107
|
+
formIPCEvent(event: CustomEvent<[string, string]>): void;
|
|
108
|
+
/** @param {boolean} disabled */
|
|
109
|
+
formDisabledCallback(disabled: boolean): void;
|
|
110
|
+
formResetCallback(): void;
|
|
111
|
+
/**
|
|
112
|
+
* @param {string|FormData} state
|
|
113
|
+
* @param {'autocomplete'|'restore'} mode
|
|
114
|
+
*/
|
|
115
|
+
formStateRestoreCallback(state: string | FormData, mode: "autocomplete" | "restore"): void;
|
|
116
|
+
_updateFormAssociatedValue(): void;
|
|
117
|
+
}, any[]>;
|
|
118
|
+
export type HTMLControlElement = HTMLElement & {
|
|
119
|
+
value: string;
|
|
120
|
+
};
|
|
121
|
+
export type CustomElement = import("../core/CustomElement.js").default;
|
|
122
|
+
//# sourceMappingURL=FormAssociatedMixin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormAssociatedMixin.d.ts","sourceRoot":"","sources":["../../mixins/FormAssociatedMixin.js"],"names":[],"mappings":"AAYA;;GAEG;AACH,kDAFW,UAAU,CAAC,wCAAiC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;IAQlD,4BAA4B;kBAAjB,aAAa;IAExB,0BAA0B;gBAAf,WAAW;IAEtB,uBAAuB;YAAZ,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;IAsDnB;;;OAGG;uBADQ,MAAM;IAKjB;;;OAGG;2BADQ,OAAO;;;;;;;;;;;;;;;IAgFlB;;;OAGG;6BAFQ,MAAM,GACL,IAAI;IAShB;;;;OAIG;4BAHQ,MAAM,SACN,MAAM,GACL,IAAI;;IAwBhB;;;;;OAKG;iCAFQ,eAAe,OAAC,GACf,IAAI;IAOhB;;;OAGG;wBAFQ,WAAW,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAC5B,IAAI;IAqBhB,gCAAgC;mCAApB,OAAO;;IAanB;;;OAGG;oCAFQ,MAAM,GAAC,QAAQ,QACf,cAAc,GAAC,SAAS;;UAyGxC;iCApWa,WAAW,GAAG;IAAC,KAAK,EAAC,MAAM,CAAA;CAAC;4BAE5B,OAAO,0BAA0B,EAAE,OAAO"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/** @param {typeof import('../core/CustomElement.js').default} Base */
|
|
2
|
+
export default function HyperlinkMixin(Base: typeof import("../core/CustomElement.js").default): typeof import("../core/CustomElement.js").default & import("../core/CustomElement.js").Class<{
|
|
3
|
+
href: string;
|
|
4
|
+
target: string;
|
|
5
|
+
download: string;
|
|
6
|
+
ping: string;
|
|
7
|
+
rel: string;
|
|
8
|
+
hreflang: string;
|
|
9
|
+
referrerPolicy: string;
|
|
10
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
11
|
+
origin: string;
|
|
12
|
+
protocol: string;
|
|
13
|
+
username: string;
|
|
14
|
+
password: string;
|
|
15
|
+
host: string;
|
|
16
|
+
hostname: string;
|
|
17
|
+
port: string;
|
|
18
|
+
pathname: string;
|
|
19
|
+
search: string;
|
|
20
|
+
hash: string;
|
|
21
|
+
}, any[]> & import("../core/CustomElement.js").Class<object, any[]>;
|
|
22
|
+
//# sourceMappingURL=HyperlinkMixin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HyperlinkMixin.d.ts","sourceRoot":"","sources":["../../mixins/HyperlinkMixin.js"],"names":[],"mappings":"AAwBA,sEAAsE;AACtE,6CADY,cAAc,0BAA0B,EAAE,OAAO;;;;;;;;;;;;;;;;;;;oEAyC5D"}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @see https://html.spec.whatwg.org/multipage/input.html#htmlinputelement
|
|
3
|
+
* @param {ReturnType<import('./StateMixin.js').default>} Base
|
|
4
|
+
*/
|
|
5
|
+
export default function InputMixin(Base: ReturnType<typeof import("./StateMixin.js").default>): typeof import("../core/CustomElement.js").default & import("../core/CustomElement.js").Class<{
|
|
6
|
+
delegatesFocus: boolean;
|
|
7
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
focused: boolean;
|
|
10
|
+
hovered: boolean;
|
|
11
|
+
pressed: boolean;
|
|
12
|
+
_lastInteraction: "key" | "mouse" | "touch" | "pen";
|
|
13
|
+
_hovered: boolean;
|
|
14
|
+
_focused: boolean;
|
|
15
|
+
_focusedSynthetic: boolean;
|
|
16
|
+
_keyPressed: boolean;
|
|
17
|
+
_keyReleased: boolean;
|
|
18
|
+
_pointerPressed: boolean;
|
|
19
|
+
stateLayer: boolean;
|
|
20
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
21
|
+
disabledState: boolean;
|
|
22
|
+
hoveredState: boolean;
|
|
23
|
+
focusedState: boolean;
|
|
24
|
+
pressedState: boolean;
|
|
25
|
+
touchedState: boolean;
|
|
26
|
+
pointedState: boolean;
|
|
27
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
28
|
+
stateTargetElement: HTMLElement;
|
|
29
|
+
}, any[]> & {
|
|
30
|
+
formAssociated: true;
|
|
31
|
+
} & import("../core/CustomElement.js").Class<{
|
|
32
|
+
_ipcListener: EventListener;
|
|
33
|
+
_ipcTarget: EventTarget;
|
|
34
|
+
_files: FileList;
|
|
35
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
36
|
+
ariaControls: string;
|
|
37
|
+
autocomplete: string;
|
|
38
|
+
name: string;
|
|
39
|
+
readOnly: boolean;
|
|
40
|
+
formNoValidate: boolean;
|
|
41
|
+
defaultChecked: boolean;
|
|
42
|
+
_checkedDirty: boolean;
|
|
43
|
+
_checked: boolean;
|
|
44
|
+
required: boolean;
|
|
45
|
+
type: string;
|
|
46
|
+
_defaultValue: string;
|
|
47
|
+
_value: string;
|
|
48
|
+
_valueDirty: boolean;
|
|
49
|
+
_userInteracted: boolean;
|
|
50
|
+
_invalid: boolean;
|
|
51
|
+
_badInput: boolean;
|
|
52
|
+
_validationMessage: string;
|
|
53
|
+
_formDisabled: boolean;
|
|
54
|
+
_formReset: boolean;
|
|
55
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
56
|
+
erroredState: boolean;
|
|
57
|
+
defaultValue: string;
|
|
58
|
+
_valueBehavior: "default" | "value" | "default/on" | "filename";
|
|
59
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
60
|
+
_onSetValue(value: string): void;
|
|
61
|
+
_onSetChecked(checked: boolean): void;
|
|
62
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
63
|
+
value: string;
|
|
64
|
+
checked: boolean;
|
|
65
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
66
|
+
form: HTMLFormElement;
|
|
67
|
+
validity: ValidityState;
|
|
68
|
+
validationMessage: string;
|
|
69
|
+
willValidate: boolean;
|
|
70
|
+
labels: NodeList;
|
|
71
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
72
|
+
disabledState: boolean;
|
|
73
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
74
|
+
checkValidity(): boolean;
|
|
75
|
+
reportValidity(): boolean;
|
|
76
|
+
setCustomValidity(error: string): void;
|
|
77
|
+
_notifyRadioChange(key: string, value: string): void;
|
|
78
|
+
refreshFormAssociation(): void;
|
|
79
|
+
formAssociatedCallback(form: HTMLFormElement | null): void;
|
|
80
|
+
formIPCEvent(event: CustomEvent<[string, string]>): void;
|
|
81
|
+
formDisabledCallback(disabled: boolean): void;
|
|
82
|
+
formResetCallback(): void;
|
|
83
|
+
formStateRestoreCallback(state: string | FormData, mode: "autocomplete" | "restore"): void;
|
|
84
|
+
_updateFormAssociatedValue(): void;
|
|
85
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
86
|
+
ariaLabel: string;
|
|
87
|
+
_slotInnerText: string;
|
|
88
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
89
|
+
focusableOnDisabled: boolean;
|
|
90
|
+
controlTagName: string;
|
|
91
|
+
controlVoidElement: boolean;
|
|
92
|
+
_slotMutationObserver: any;
|
|
93
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
94
|
+
_onControlValue(value: string): void;
|
|
95
|
+
onValueChangingContentAttribute(): void;
|
|
96
|
+
focus(options?: FocusOptions): void;
|
|
97
|
+
click(): void;
|
|
98
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
99
|
+
stateTargetElement: HTMLElement;
|
|
100
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
101
|
+
checkValidity(): boolean;
|
|
102
|
+
reportValidity(): boolean;
|
|
103
|
+
setCustomValidity(error: string): void;
|
|
104
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
105
|
+
_computedAriaLabel: string;
|
|
106
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
107
|
+
_computedAriaLabelledby: never;
|
|
108
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
109
|
+
accept: string;
|
|
110
|
+
alt: string;
|
|
111
|
+
dirName: string;
|
|
112
|
+
_formAction: string;
|
|
113
|
+
formEnctype: string;
|
|
114
|
+
formMethod: string;
|
|
115
|
+
formTarget: string;
|
|
116
|
+
_height: number;
|
|
117
|
+
_indeterminate: boolean;
|
|
118
|
+
max: string;
|
|
119
|
+
maxLength: number;
|
|
120
|
+
min: string;
|
|
121
|
+
minLength: number;
|
|
122
|
+
multiple: boolean;
|
|
123
|
+
pattern: string;
|
|
124
|
+
placeholder: string;
|
|
125
|
+
size: number;
|
|
126
|
+
src: string;
|
|
127
|
+
step: string;
|
|
128
|
+
_width: number;
|
|
129
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
130
|
+
_useFormImplicitSubmission: boolean;
|
|
131
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
132
|
+
_input: HTMLInputElement;
|
|
133
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
134
|
+
indeterminate: boolean;
|
|
135
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
136
|
+
controlTagName: string;
|
|
137
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
138
|
+
_onSetChecked(checked: boolean): void;
|
|
139
|
+
_onSetValue(value: string): void;
|
|
140
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
141
|
+
/**
|
|
142
|
+
* @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#implicit-submission
|
|
143
|
+
* @param {Event} event
|
|
144
|
+
* @return {void}
|
|
145
|
+
*/
|
|
146
|
+
performImplicitSubmission(event: Event): void;
|
|
147
|
+
/** @param {Event} event */
|
|
148
|
+
_redispatchControlClickEvent(event: Event): boolean;
|
|
149
|
+
/** @param {MouseEvent} event */
|
|
150
|
+
_handleInputClick(event: MouseEvent): void;
|
|
151
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
152
|
+
/** @type {HTMLInputElement['setRangeText']} */
|
|
153
|
+
setRangeText(replacement: string): void;
|
|
154
|
+
/** @type {HTMLInputElement['setRangeText']} */
|
|
155
|
+
setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void;
|
|
156
|
+
/** @type {HTMLInputElement['setSelectionRange']} */
|
|
157
|
+
setSelectionRange(start: number | null, end: number | null, direction?: "forward" | "backward" | "none"): void;
|
|
158
|
+
/** @type {HTMLInputElement['showPicker']} */
|
|
159
|
+
showPicker(): void;
|
|
160
|
+
/** @type {HTMLInputElement['stepDown']} */
|
|
161
|
+
stepDown(n?: number): void;
|
|
162
|
+
/** @type {HTMLInputElement['stepUp']} */
|
|
163
|
+
stepUp(n?: number): void;
|
|
164
|
+
/** @type {HTMLInputElement['select']} */
|
|
165
|
+
select(): void;
|
|
166
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
167
|
+
files: FileList;
|
|
168
|
+
selectionDirection: "none" | "forward" | "backward";
|
|
169
|
+
selectionEnd: number;
|
|
170
|
+
selectionStart: number;
|
|
171
|
+
valueAsDate: Date;
|
|
172
|
+
valueAsNumber: number;
|
|
173
|
+
height: number;
|
|
174
|
+
formAction: string;
|
|
175
|
+
width: number;
|
|
176
|
+
}, any[]>;
|
|
177
|
+
export type DeprecatedHTMLInputElementProperties = "align" | "useMap";
|
|
178
|
+
export type CustomElement = import("../core/CustomElement.js").default;
|
|
179
|
+
//# sourceMappingURL=InputMixin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputMixin.d.ts","sourceRoot":"","sources":["../../mixins/InputMixin.js"],"names":[],"mappings":"AA8BA;;;GAGG;AACH,yCAFW,UAAU,CAAC,wCAAiC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAiCrB,gBAAgB;;;;;;;;;IAoF7C;;;;OAIG;qCAFQ,KAAK,GACJ,IAAI;IA6BhB,2BAA2B;wCAAf,KAAK;IAUjB,gCAAgC;6BAApB,UAAU;;IAiItB,+CAA+C;;IAA/C,+CAA+C;;IAI/C,oDAAoD;;IAGpD,6CAA6C;;IAG7C,2CAA2C;;IAM3C,yCAAyC;;IAMzC,yCAAyC;;;;;;;;;;;;UA+E9C;mDAjaa,OAAO,GAAC,QAAQ;4BAEhB,OAAO,0BAA0B,EAAE,OAAO"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param {typeof import('../core/CustomElement.js').default} Base
|
|
3
|
+
*/
|
|
4
|
+
export default function KeyboardNavMixin(Base: typeof import("../core/CustomElement.js").default): typeof import("../core/CustomElement.js").default & import("../core/CustomElement.js").Class<{
|
|
5
|
+
_ariaRole: string;
|
|
6
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
7
|
+
onConnectAriaValues: Map<string, string>;
|
|
8
|
+
hasFiredConnected: boolean;
|
|
9
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
10
|
+
readAriaProperty(name: keyof HTMLElement & keyof ElementInternals): string | ShadowRoot;
|
|
11
|
+
updateAriaProperty(name: keyof HTMLElement & keyof ElementInternals, value: string): void;
|
|
12
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
13
|
+
kbdNav: string;
|
|
14
|
+
_kbdFocusable: boolean;
|
|
15
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
16
|
+
kbdNavQuery: string;
|
|
17
|
+
kbdNavFocusableWhenDisabled: boolean;
|
|
18
|
+
ariaOrientationDefault: "horizontal" | "vertical";
|
|
19
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
20
|
+
kbdNavChildren: NodeListOf<HTMLElement>;
|
|
21
|
+
}, any[]> & import("../core/CustomElement.js").Class<{
|
|
22
|
+
_ariaOrientationIsVertical(): boolean;
|
|
23
|
+
focusCurrentOrFirst(): HTMLElement;
|
|
24
|
+
/**
|
|
25
|
+
* Focuses next element participating in roving tab index list
|
|
26
|
+
* @param {HTMLElement} [current]
|
|
27
|
+
* @param {boolean} [loop=true]
|
|
28
|
+
* @param {boolean} [reverse]
|
|
29
|
+
* @return {HTMLElement} focusedElement
|
|
30
|
+
*/
|
|
31
|
+
focusNext(current?: HTMLElement, loop?: boolean, reverse?: boolean): HTMLElement;
|
|
32
|
+
/**
|
|
33
|
+
* Alias for focusNext(list, current, true).
|
|
34
|
+
* Selects previous element
|
|
35
|
+
* @param {HTMLElement} [current]
|
|
36
|
+
* @param {boolean} [loop=true]
|
|
37
|
+
* @return {HTMLElement}
|
|
38
|
+
*/
|
|
39
|
+
focusPrevious(current?: HTMLElement, loop?: boolean): HTMLElement;
|
|
40
|
+
/** @type {HTMLElement['focus']} */
|
|
41
|
+
focus(options?: FocusOptions): void;
|
|
42
|
+
/**
|
|
43
|
+
* Refreshes roving tab index attributes based on kbdNavChildren
|
|
44
|
+
*/
|
|
45
|
+
refreshTabIndexes(): void;
|
|
46
|
+
}, any[]>;
|
|
47
|
+
//# sourceMappingURL=KeyboardNavMixin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KeyboardNavMixin.d.ts","sourceRoot":"","sources":["../../mixins/KeyboardNavMixin.js"],"names":[],"mappings":"AAaA;;GAEG;AACH,+CAFW,cAAc,0BAA0B,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;IAsDtD;;;;;;OAMG;wBAJQ,WAAW,SACX,OAAO,YACP,OAAO,GACN,WAAW;IAkDvB;;;;;;OAMG;4BAHQ,WAAW,SACX,OAAO,GACN,WAAW;IAMvB,mCAAmC;;IAgBnC;;OAEG;;UA0GR"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Listens for HTMLAnchorElement click events that will trigger navigation
|
|
3
|
+
* and throws a cancelable `mdw:hyperlink` event before firing.
|
|
4
|
+
* Will be supported until Navigation API is widely available
|
|
5
|
+
* @param {typeof import('../core/CustomElement.js').default} Base
|
|
6
|
+
*/
|
|
7
|
+
export default function NavigationListenerMixin(Base: typeof import("../core/CustomElement.js").default): typeof import("../core/CustomElement.js").default;
|
|
8
|
+
//# sourceMappingURL=NavigationListenerMixin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavigationListenerMixin.d.ts","sourceRoot":"","sources":["../../mixins/NavigationListenerMixin.js"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,sDAFW,cAAc,0BAA0B,EAAE,OAAO,qDA4B3D"}
|