@fluentui/web-components 3.0.0-beta.6 → 3.0.0-beta.8
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/CHANGELOG.md +20 -2
- package/dist/dts/accordion/accordion.d.ts +47 -3
- package/dist/dts/accordion/accordion.definition.d.ts +0 -4
- package/dist/dts/accordion/accordion.options.d.ts +14 -0
- package/dist/dts/accordion/accordion.template.d.ts +4 -0
- package/dist/dts/accordion-item/accordion-item.d.ts +78 -3
- package/dist/dts/accordion-item/accordion-item.definition.d.ts +0 -3
- package/dist/dts/accordion-item/accordion-item.options.d.ts +1 -1
- package/dist/dts/accordion-item/accordion-item.template.d.ts +2 -1
- package/dist/dts/anchor-button/anchor-button.d.ts +116 -4
- package/dist/dts/anchor-button/anchor-button.definition.d.ts +0 -3
- package/dist/dts/anchor-button/anchor-button.options.d.ts +19 -2
- package/dist/dts/anchor-button/anchor-button.template.d.ts +7 -2
- package/dist/dts/avatar/avatar.options.d.ts +1 -1
- package/dist/dts/badge/badge.d.ts +1 -1
- package/dist/dts/badge/badge.definition.d.ts +0 -3
- package/dist/dts/badge/badge.options.d.ts +2 -2
- package/dist/dts/button/button.d.ts +142 -4
- package/dist/dts/button/button.definition.d.ts +0 -3
- package/dist/dts/button/button.form-associated.d.ts +14 -0
- package/dist/dts/button/button.options.d.ts +24 -3
- package/dist/dts/button/button.template.d.ts +2 -0
- package/dist/dts/checkbox/checkbox.d.ts +46 -3
- package/dist/dts/checkbox/checkbox.form-associated.d.ts +14 -0
- package/dist/dts/checkbox/checkbox.options.d.ts +1 -1
- package/dist/dts/checkbox/checkbox.template.d.ts +6 -1
- package/dist/dts/compound-button/compound-button.definition.d.ts +0 -3
- package/dist/dts/compound-button/compound-button.options.d.ts +6 -6
- package/dist/dts/counter-badge/counter-badge.d.ts +1 -1
- package/dist/dts/counter-badge/counter-badge.definition.d.ts +0 -4
- package/dist/dts/counter-badge/counter-badge.options.d.ts +1 -1
- package/dist/dts/dialog/dialog.options.d.ts +1 -1
- package/dist/dts/divider/divider.d.ts +20 -4
- package/dist/dts/divider/divider.options.d.ts +30 -6
- package/dist/dts/divider/divider.template.d.ts +1 -0
- package/dist/dts/form-associated/form-associated.d.ts +178 -0
- package/dist/dts/image/image.options.d.ts +1 -1
- package/dist/dts/label/label.options.d.ts +1 -1
- package/dist/dts/menu-button/menu-button.definition.d.ts +0 -3
- package/dist/dts/menu-button/menu-button.options.d.ts +2 -2
- package/dist/dts/menu-item/menu-item.d.ts +161 -4
- package/dist/dts/menu-item/menu-item.definition.d.ts +0 -4
- package/dist/dts/menu-item/menu-item.options.d.ts +30 -0
- package/dist/dts/menu-item/menu-item.template.d.ts +2 -1
- package/dist/dts/menu-list/menu-list.d.ts +71 -4
- package/dist/dts/menu-list/menu-list.definition.d.ts +0 -4
- package/dist/dts/menu-list/menu-list.template.d.ts +1 -0
- package/dist/dts/patterns/aria-globals.d.ts +189 -0
- package/dist/dts/patterns/index.d.ts +2 -0
- package/dist/dts/patterns/start-end.d.ts +44 -0
- package/dist/dts/progress-bar/base-progress.d.ts +41 -0
- package/dist/dts/progress-bar/progress-bar.d.ts +11 -4
- package/dist/dts/progress-bar/progress-bar.options.d.ts +10 -1
- package/dist/dts/progress-bar/progress-bar.template.d.ts +2 -0
- package/dist/dts/progress-ring/progress-ring.d.ts +15 -0
- package/dist/dts/progress-ring/progress-ring.options.d.ts +9 -0
- package/dist/dts/radio/radio.d.ts +54 -3
- package/dist/dts/radio/radio.form-associated.d.ts +14 -0
- package/dist/dts/radio/radio.template.d.ts +2 -1
- package/dist/dts/radio-group/index.d.ts +0 -1
- package/dist/dts/radio-group/radio-group.d.ts +91 -2
- package/dist/dts/radio-group/radio-group.options.d.ts +17 -0
- package/dist/dts/radio-group/radio-group.template.d.ts +1 -0
- package/dist/dts/slider/slider-utilities.d.ts +5 -0
- package/dist/dts/slider/slider.d.ts +195 -5
- package/dist/dts/slider/slider.form-associated.d.ts +14 -0
- package/dist/dts/slider/slider.options.d.ts +43 -2
- package/dist/dts/slider/slider.template.d.ts +4 -2
- package/dist/dts/spinner/spinner.d.ts +2 -2
- package/dist/dts/spinner/spinner.definition.d.ts +0 -4
- package/dist/dts/spinner/spinner.options.d.ts +1 -1
- package/dist/dts/spinner/spinner.template.d.ts +2 -0
- package/dist/dts/switch/switch.d.ts +34 -2
- package/dist/dts/switch/switch.form-associated.d.ts +14 -0
- package/dist/dts/switch/switch.options.d.ts +1 -1
- package/dist/dts/switch/switch.template.d.ts +2 -1
- package/dist/dts/tab/tab.d.ts +17 -2
- package/dist/dts/tab/tab.template.d.ts +3 -3
- package/dist/dts/tab-panel/tab-panel.d.ts +2 -2
- package/dist/dts/tab-panel/tab-panel.template.d.ts +4 -1
- package/dist/dts/tabs/tabs.d.ts +89 -4
- package/dist/dts/tabs/tabs.options.d.ts +21 -3
- package/dist/dts/tabs/tabs.template.d.ts +5 -1
- package/dist/dts/text/text.options.d.ts +1 -1
- package/dist/dts/text-input/index.d.ts +0 -1
- package/dist/dts/text-input/text-field.form-associated.d.ts +14 -0
- package/dist/dts/text-input/text-input.d.ts +134 -6
- package/dist/dts/text-input/text-input.options.d.ts +32 -1
- package/dist/dts/text-input/text-input.template.d.ts +2 -1
- package/dist/dts/theme/design-tokens.d.ts +384 -384
- package/dist/dts/theme/set-theme.d.ts +1 -2
- package/dist/dts/toggle-button/toggle-button.definition.d.ts +0 -2
- package/dist/dts/toggle-button/toggle-button.options.d.ts +2 -2
- package/dist/dts/utils/direction.d.ts +10 -0
- package/dist/dts/utils/index.d.ts +4 -0
- package/dist/dts/utils/template-helpers.d.ts +16 -0
- package/dist/dts/utils/typings.d.ts +6 -0
- package/dist/dts/utils/whitespace-filter.d.ts +12 -0
- package/dist/esm/accordion/accordion.definition.js +0 -4
- package/dist/esm/accordion/accordion.definition.js.map +1 -1
- package/dist/esm/accordion/accordion.js +216 -3
- package/dist/esm/accordion/accordion.js.map +1 -1
- package/dist/esm/accordion/accordion.options.js +9 -0
- package/dist/esm/accordion/accordion.options.js.map +1 -0
- package/dist/esm/accordion/accordion.template.js +11 -1
- package/dist/esm/accordion/accordion.template.js.map +1 -1
- package/dist/esm/accordion-item/accordion-item.definition.js +0 -3
- package/dist/esm/accordion-item/accordion-item.definition.js.map +1 -1
- package/dist/esm/accordion-item/accordion-item.js +80 -4
- package/dist/esm/accordion-item/accordion-item.js.map +1 -1
- package/dist/esm/accordion-item/accordion-item.styles.js +25 -25
- package/dist/esm/accordion-item/accordion-item.styles.js.map +1 -1
- package/dist/esm/accordion-item/accordion-item.template.js +47 -2
- package/dist/esm/accordion-item/accordion-item.template.js.map +1 -1
- package/dist/esm/anchor-button/anchor-button.definition.js +0 -3
- package/dist/esm/anchor-button/anchor-button.definition.js.map +1 -1
- package/dist/esm/anchor-button/anchor-button.js +52 -4
- package/dist/esm/anchor-button/anchor-button.js.map +1 -1
- package/dist/esm/anchor-button/anchor-button.options.js +11 -0
- package/dist/esm/anchor-button/anchor-button.options.js.map +1 -1
- package/dist/esm/anchor-button/anchor-button.template.js +49 -1
- package/dist/esm/anchor-button/anchor-button.template.js.map +1 -1
- package/dist/esm/avatar/avatar.styles.js +100 -100
- package/dist/esm/avatar/avatar.styles.js.map +1 -1
- package/dist/esm/badge/badge.definition.js +0 -3
- package/dist/esm/badge/badge.definition.js.map +1 -1
- package/dist/esm/badge/badge.js +1 -1
- package/dist/esm/badge/badge.js.map +1 -1
- package/dist/esm/badge/badge.styles.js +3 -3
- package/dist/esm/badge/badge.styles.js.map +1 -1
- package/dist/esm/badge/badge.template.js +2 -2
- package/dist/esm/badge/badge.template.js.map +1 -1
- package/dist/esm/button/button.definition.js +0 -3
- package/dist/esm/button/button.definition.js.map +1 -1
- package/dist/esm/button/button.form-associated.js +14 -0
- package/dist/esm/button/button.form-associated.js.map +1 -0
- package/dist/esm/button/button.js +124 -4
- package/dist/esm/button/button.js.map +1 -1
- package/dist/esm/button/button.options.js +10 -0
- package/dist/esm/button/button.options.js.map +1 -1
- package/dist/esm/button/button.styles.js +63 -63
- package/dist/esm/button/button.styles.js.map +1 -1
- package/dist/esm/button/button.template.js +49 -1
- package/dist/esm/button/button.template.js.map +1 -1
- package/dist/esm/checkbox/checkbox.form-associated.js +14 -0
- package/dist/esm/checkbox/checkbox.form-associated.js.map +1 -0
- package/dist/esm/checkbox/checkbox.js +62 -4
- package/dist/esm/checkbox/checkbox.js.map +1 -1
- package/dist/esm/checkbox/checkbox.styles.js +37 -37
- package/dist/esm/checkbox/checkbox.styles.js.map +1 -1
- package/dist/esm/checkbox/checkbox.template.js +35 -7
- package/dist/esm/checkbox/checkbox.template.js.map +1 -1
- package/dist/esm/compound-button/compound-button.definition.js +0 -3
- package/dist/esm/compound-button/compound-button.definition.js.map +1 -1
- package/dist/esm/compound-button/compound-button.options.js.map +1 -1
- package/dist/esm/compound-button/compound-button.styles.js +18 -18
- package/dist/esm/compound-button/compound-button.styles.js.map +1 -1
- package/dist/esm/compound-button/compound-button.template.js +1 -1
- package/dist/esm/compound-button/compound-button.template.js.map +1 -1
- package/dist/esm/counter-badge/counter-badge.definition.js +0 -4
- package/dist/esm/counter-badge/counter-badge.definition.js.map +1 -1
- package/dist/esm/counter-badge/counter-badge.js +1 -1
- package/dist/esm/counter-badge/counter-badge.js.map +1 -1
- package/dist/esm/counter-badge/counter-badge.styles.js +2 -2
- package/dist/esm/counter-badge/counter-badge.styles.js.map +1 -1
- package/dist/esm/dialog/dialog.styles.js +21 -21
- package/dist/esm/dialog/dialog.styles.js.map +1 -1
- package/dist/esm/divider/divider.js +29 -4
- package/dist/esm/divider/divider.js.map +1 -1
- package/dist/esm/divider/divider.options.js +14 -5
- package/dist/esm/divider/divider.options.js.map +1 -1
- package/dist/esm/divider/divider.styles.js +13 -13
- package/dist/esm/divider/divider.styles.js.map +1 -1
- package/dist/esm/divider/divider.template.js +12 -1
- package/dist/esm/divider/divider.template.js.map +1 -1
- package/dist/esm/form-associated/form-associated.js +458 -0
- package/dist/esm/form-associated/form-associated.js.map +1 -0
- package/dist/esm/image/image.styles.js +4 -4
- package/dist/esm/image/image.styles.js.map +1 -1
- package/dist/esm/label/label.styles.js +14 -14
- package/dist/esm/label/label.styles.js.map +1 -1
- package/dist/esm/menu-button/menu-button.definition.js +0 -3
- package/dist/esm/menu-button/menu-button.definition.js.map +1 -1
- package/dist/esm/menu-button/menu-button.options.js.map +1 -1
- package/dist/esm/menu-button/menu-button.template.js +1 -1
- package/dist/esm/menu-button/menu-button.template.js.map +1 -1
- package/dist/esm/menu-item/menu-item.definition.js +0 -4
- package/dist/esm/menu-item/menu-item.definition.js.map +1 -1
- package/dist/esm/menu-item/menu-item.js +270 -4
- package/dist/esm/menu-item/menu-item.js.map +1 -1
- package/dist/esm/menu-item/menu-item.options.js +27 -0
- package/dist/esm/menu-item/menu-item.options.js.map +1 -0
- package/dist/esm/menu-item/menu-item.styles.js +16 -16
- package/dist/esm/menu-item/menu-item.styles.js.map +1 -1
- package/dist/esm/menu-item/menu-item.template.js +57 -2
- package/dist/esm/menu-item/menu-item.template.js.map +1 -1
- package/dist/esm/menu-list/menu-list.definition.js +0 -4
- package/dist/esm/menu-list/menu-list.definition.js.map +1 -1
- package/dist/esm/menu-list/menu-list.js +265 -10
- package/dist/esm/menu-list/menu-list.js.map +1 -1
- package/dist/esm/menu-list/menu-list.styles.js +4 -4
- package/dist/esm/menu-list/menu-list.styles.js.map +1 -1
- package/dist/esm/menu-list/menu-list.template.js +13 -1
- package/dist/esm/menu-list/menu-list.template.js.map +1 -1
- package/dist/esm/patterns/aria-globals.js +77 -0
- package/dist/esm/patterns/aria-globals.js.map +1 -0
- package/dist/esm/patterns/index.js +3 -0
- package/dist/esm/patterns/index.js.map +1 -0
- package/dist/esm/patterns/start-end.js +29 -0
- package/dist/esm/patterns/start-end.js.map +1 -0
- package/dist/esm/progress-bar/base-progress.js +61 -0
- package/dist/esm/progress-bar/base-progress.js.map +1 -0
- package/dist/esm/progress-bar/progress-bar.js +10 -3
- package/dist/esm/progress-bar/progress-bar.js.map +1 -1
- package/dist/esm/progress-bar/progress-bar.options.js.map +1 -1
- package/dist/esm/progress-bar/progress-bar.styles.js +25 -25
- package/dist/esm/progress-bar/progress-bar.styles.js.map +1 -1
- package/dist/esm/progress-bar/progress-bar.template.js +25 -1
- package/dist/esm/progress-bar/progress-bar.template.js.map +1 -1
- package/dist/esm/progress-ring/progress-ring.js +16 -0
- package/dist/esm/progress-ring/progress-ring.js.map +1 -0
- package/dist/esm/progress-ring/progress-ring.options.js +2 -0
- package/dist/esm/progress-ring/progress-ring.options.js.map +1 -0
- package/dist/esm/radio/radio.form-associated.js +14 -0
- package/dist/esm/radio/radio.form-associated.js.map +1 -0
- package/dist/esm/radio/radio.js +96 -3
- package/dist/esm/radio/radio.js.map +1 -1
- package/dist/esm/radio/radio.styles.js +32 -32
- package/dist/esm/radio/radio.styles.js.map +1 -1
- package/dist/esm/radio/radio.template.js +28 -2
- package/dist/esm/radio/radio.template.js.map +1 -1
- package/dist/esm/radio-group/index.js +0 -1
- package/dist/esm/radio-group/index.js.map +1 -1
- package/dist/esm/radio-group/radio-group.js +346 -3
- package/dist/esm/radio-group/radio-group.js.map +1 -1
- package/dist/esm/radio-group/radio-group.options.js +7 -0
- package/dist/esm/radio-group/radio-group.options.js.map +1 -0
- package/dist/esm/radio-group/radio-group.styles.js +9 -9
- package/dist/esm/radio-group/radio-group.styles.js.map +1 -1
- package/dist/esm/radio-group/radio-group.template.js +30 -1
- package/dist/esm/radio-group/radio-group.template.js.map +1 -1
- package/dist/esm/slider/slider-utilities.js +12 -0
- package/dist/esm/slider/slider-utilities.js.map +1 -0
- package/dist/esm/slider/slider.form-associated.js +14 -0
- package/dist/esm/slider/slider.form-associated.js.map +1 -0
- package/dist/esm/slider/slider.js +432 -16
- package/dist/esm/slider/slider.js.map +1 -1
- package/dist/esm/slider/slider.options.js +11 -1
- package/dist/esm/slider/slider.options.js.map +1 -1
- package/dist/esm/slider/slider.styles.js +23 -22
- package/dist/esm/slider/slider.styles.js.map +1 -1
- package/dist/esm/slider/slider.template.js +38 -1
- package/dist/esm/slider/slider.template.js.map +1 -1
- package/dist/esm/spinner/spinner.definition.js +0 -4
- package/dist/esm/spinner/spinner.definition.js.map +1 -1
- package/dist/esm/spinner/spinner.js +2 -2
- package/dist/esm/spinner/spinner.js.map +1 -1
- package/dist/esm/spinner/spinner.styles.js +5 -5
- package/dist/esm/spinner/spinner.styles.js.map +1 -1
- package/dist/esm/spinner/spinner.template.js +27 -1
- package/dist/esm/spinner/spinner.template.js.map +1 -1
- package/dist/esm/styles/partials/badge.partials.js +75 -75
- package/dist/esm/styles/partials/badge.partials.js.map +1 -1
- package/dist/esm/switch/switch.form-associated.js +14 -0
- package/dist/esm/switch/switch.form-associated.js.map +1 -0
- package/dist/esm/switch/switch.js +48 -3
- package/dist/esm/switch/switch.js.map +1 -1
- package/dist/esm/switch/switch.styles.js +34 -34
- package/dist/esm/switch/switch.styles.js.map +1 -1
- package/dist/esm/switch/switch.template.js +25 -1
- package/dist/esm/switch/switch.template.js.map +1 -1
- package/dist/esm/tab/tab.js +14 -3
- package/dist/esm/tab/tab.js.map +1 -1
- package/dist/esm/tab/tab.styles.js +20 -20
- package/dist/esm/tab/tab.styles.js.map +1 -1
- package/dist/esm/tab/tab.template.js +1 -1
- package/dist/esm/tab/tab.template.js.map +1 -1
- package/dist/esm/tab-panel/tab-panel.js +2 -2
- package/dist/esm/tab-panel/tab-panel.js.map +1 -1
- package/dist/esm/tab-panel/tab-panel.styles.js +1 -1
- package/dist/esm/tab-panel/tab-panel.styles.js.map +1 -1
- package/dist/esm/tab-panel/tab-panel.template.js +8 -1
- package/dist/esm/tab-panel/tab-panel.template.js.map +1 -1
- package/dist/esm/tabs/tabs.js +278 -5
- package/dist/esm/tabs/tabs.js.map +1 -1
- package/dist/esm/tabs/tabs.options.js +6 -2
- package/dist/esm/tabs/tabs.options.js.map +1 -1
- package/dist/esm/tabs/tabs.styles.js +49 -49
- package/dist/esm/tabs/tabs.styles.js.map +1 -1
- package/dist/esm/tabs/tabs.template.js +14 -1
- package/dist/esm/tabs/tabs.template.js.map +1 -1
- package/dist/esm/text/text.styles.js +27 -27
- package/dist/esm/text/text.styles.js.map +1 -1
- package/dist/esm/text-input/index.js +0 -1
- package/dist/esm/text-input/index.js.map +1 -1
- package/dist/esm/text-input/text-field.form-associated.js +14 -0
- package/dist/esm/text-input/text-field.form-associated.js.map +1 -0
- package/dist/esm/text-input/text-input.js +167 -7
- package/dist/esm/text-input/text-input.js.map +1 -1
- package/dist/esm/text-input/text-input.options.js +26 -0
- package/dist/esm/text-input/text-input.options.js.map +1 -1
- package/dist/esm/text-input/text-input.styles.js +67 -67
- package/dist/esm/text-input/text-input.styles.js.map +1 -1
- package/dist/esm/text-input/text-input.template.js +64 -1
- package/dist/esm/text-input/text-input.template.js.map +1 -1
- package/dist/esm/theme/design-tokens.js +385 -386
- package/dist/esm/theme/design-tokens.js.map +1 -1
- package/dist/esm/theme/set-theme.js +2 -2
- package/dist/esm/theme/set-theme.js.map +1 -1
- package/dist/esm/toggle-button/toggle-button.definition.js +0 -2
- package/dist/esm/toggle-button/toggle-button.definition.js.map +1 -1
- package/dist/esm/toggle-button/toggle-button.options.js.map +1 -1
- package/dist/esm/toggle-button/toggle-button.styles.js +24 -24
- package/dist/esm/toggle-button/toggle-button.styles.js.map +1 -1
- package/dist/esm/toggle-button/toggle-button.template.js +1 -1
- package/dist/esm/toggle-button/toggle-button.template.js.map +1 -1
- package/dist/esm/utils/direction.js +15 -0
- package/dist/esm/utils/direction.js.map +1 -0
- package/dist/esm/utils/index.js +5 -0
- package/dist/esm/utils/index.js.map +1 -0
- package/dist/esm/utils/template-helpers.js +19 -0
- package/dist/esm/utils/template-helpers.js.map +1 -0
- package/dist/esm/utils/typings.js +3 -0
- package/dist/esm/utils/typings.js.map +1 -0
- package/dist/esm/utils/whitespace-filter.js +13 -0
- package/dist/esm/utils/whitespace-filter.js.map +1 -0
- package/dist/fluent-web-components.api.json +14729 -7818
- package/dist/storybook/711.b5d63aa3.iframe.bundle.js +2 -0
- package/dist/storybook/iframe.html +1 -1
- package/dist/storybook/main.588112e6.iframe.bundle.js +2 -0
- package/dist/storybook/project.json +1 -1
- package/dist/web-components.d.ts +2575 -623
- package/dist/web-components.js +5281 -7534
- package/dist/web-components.min.js +191 -191
- package/docs/api-report.md +985 -476
- package/package.json +1 -1
- package/dist/storybook/350.e4be85c2.iframe.bundle.js +0 -462
- package/dist/storybook/350.e4be85c2.iframe.bundle.js.map +0 -1
- package/dist/storybook/main.c651bad5.iframe.bundle.js +0 -2
- /package/dist/storybook/{350.e4be85c2.iframe.bundle.js.LICENSE.txt → 711.b5d63aa3.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/dist/storybook/{main.c651bad5.iframe.bundle.js.LICENSE.txt → main.588112e6.iframe.bundle.js.LICENSE.txt} +0 -0
|
@@ -1,7 +1,58 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { StaticallyComposableHTML } from '../utils/template-helpers.js';
|
|
2
|
+
import { FormAssociatedRadio } from './radio.form-associated.js';
|
|
2
3
|
/**
|
|
3
|
-
* The base class used for constructing a fluent-radio custom element
|
|
4
4
|
* @public
|
|
5
5
|
*/
|
|
6
|
-
export declare
|
|
6
|
+
export declare type RadioControl = Pick<HTMLInputElement, 'checked' | 'disabled' | 'focus' | 'setAttribute' | 'getAttribute'>;
|
|
7
|
+
/**
|
|
8
|
+
* Radio configuration options
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export declare type RadioOptions = {
|
|
12
|
+
checkedIndicator?: StaticallyComposableHTML<Radio>;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* A Radio Custom HTML Element.
|
|
16
|
+
* Implements the {@link https://www.w3.org/TR/wai-aria-1.1/#radio | ARIA radio }.
|
|
17
|
+
*
|
|
18
|
+
* @slot checked-indicator - The checked indicator
|
|
19
|
+
* @slot - The default slot for the label
|
|
20
|
+
* @csspart control - The element representing the visual radio control
|
|
21
|
+
* @csspart label - The label
|
|
22
|
+
* @fires change - Emits a custom change event when the checked state changes
|
|
23
|
+
*
|
|
24
|
+
* @public
|
|
25
|
+
*/
|
|
26
|
+
export declare class Radio extends FormAssociatedRadio implements RadioControl {
|
|
27
|
+
/**
|
|
28
|
+
* The name of the radio. See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdefname | name attribute} for more info.
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
* The element's value to be included in form submission when checked.
|
|
33
|
+
* Default to "on" to reach parity with input[type="radio"]
|
|
34
|
+
*
|
|
35
|
+
* @internal
|
|
36
|
+
*/
|
|
37
|
+
initialValue: string;
|
|
38
|
+
/**
|
|
39
|
+
* @internal
|
|
40
|
+
*/
|
|
41
|
+
defaultSlottedNodes: Node[];
|
|
42
|
+
private get radioGroup();
|
|
43
|
+
/**
|
|
44
|
+
* @internal
|
|
45
|
+
*/
|
|
46
|
+
defaultCheckedChanged(): void;
|
|
47
|
+
constructor();
|
|
48
|
+
/**
|
|
49
|
+
* @internal
|
|
50
|
+
*/
|
|
51
|
+
connectedCallback(): void;
|
|
52
|
+
private isInsideRadioGroup;
|
|
53
|
+
/**
|
|
54
|
+
* Handles key presses on the radio.
|
|
55
|
+
* @beta
|
|
56
|
+
*/
|
|
57
|
+
keypressHandler(e: KeyboardEvent): boolean | void;
|
|
7
58
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FASTElement } from '@microsoft/fast-element';
|
|
2
|
+
import { CheckableFormAssociated } from '../form-associated/form-associated.js';
|
|
3
|
+
declare class _Radio extends FASTElement {
|
|
4
|
+
}
|
|
5
|
+
interface _Radio extends CheckableFormAssociated {
|
|
6
|
+
}
|
|
7
|
+
declare const FormAssociatedRadio_base: typeof _Radio;
|
|
8
|
+
/**
|
|
9
|
+
* @beta
|
|
10
|
+
*/
|
|
11
|
+
export declare class FormAssociatedRadio extends FormAssociatedRadio_base {
|
|
12
|
+
proxy: HTMLInputElement;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { ElementViewTemplate } from '@microsoft/fast-element';
|
|
2
|
-
import type { Radio } from './radio.js';
|
|
2
|
+
import type { Radio, RadioOptions } from './radio.js';
|
|
3
|
+
export declare function radioTemplate<T extends Radio>(options?: RadioOptions): ElementViewTemplate<T>;
|
|
3
4
|
export declare const template: ElementViewTemplate<Radio>;
|
|
@@ -2,4 +2,3 @@ export * from './radio-group.js';
|
|
|
2
2
|
export { definition as RadioGroupDefinition } from './radio-group.definition.js';
|
|
3
3
|
export { styles as RadioGroupStyles } from './radio-group.styles.js';
|
|
4
4
|
export { template as RadioGroupTemplate } from './radio-group.template.js';
|
|
5
|
-
export { RadioGroupOrientation } from '@microsoft/fast-foundation/radio-group.js';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FASTElement } from '@microsoft/fast-element';
|
|
2
|
+
import { RadioGroupOrientation } from './radio-group.options.js';
|
|
2
3
|
/**
|
|
3
4
|
* The base class used for constructing a fluent-radio-group custom element
|
|
4
5
|
* @public
|
|
5
6
|
*/
|
|
6
|
-
export declare class RadioGroup extends
|
|
7
|
+
export declare class RadioGroup extends FASTElement {
|
|
7
8
|
/**
|
|
8
9
|
* sets radio layout styles
|
|
9
10
|
*
|
|
@@ -12,4 +13,92 @@ export declare class RadioGroup extends FASTRadioGroup {
|
|
|
12
13
|
* HTML Attribute: stacked
|
|
13
14
|
*/
|
|
14
15
|
stacked: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* When true, the child radios will be immutable by user interaction. See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly | readonly HTML attribute} for more information.
|
|
18
|
+
* @public
|
|
19
|
+
* @remarks
|
|
20
|
+
* HTML Attribute: readonly
|
|
21
|
+
*/
|
|
22
|
+
readOnly: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Disables the radio group and child radios.
|
|
25
|
+
*
|
|
26
|
+
* @public
|
|
27
|
+
* @remarks
|
|
28
|
+
* HTML Attribute: disabled
|
|
29
|
+
*/
|
|
30
|
+
disabled: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* The name of the radio group. Setting this value will set the name value
|
|
33
|
+
* for all child radio elements.
|
|
34
|
+
*
|
|
35
|
+
* @public
|
|
36
|
+
* @remarks
|
|
37
|
+
* HTML Attribute: name
|
|
38
|
+
*/
|
|
39
|
+
name: string;
|
|
40
|
+
protected nameChanged(): void;
|
|
41
|
+
/**
|
|
42
|
+
* The value of the checked radio
|
|
43
|
+
*
|
|
44
|
+
* @public
|
|
45
|
+
* @remarks
|
|
46
|
+
* HTML Attribute: value
|
|
47
|
+
*/
|
|
48
|
+
value: string;
|
|
49
|
+
protected valueChanged(): void;
|
|
50
|
+
/**
|
|
51
|
+
* The orientation of the group
|
|
52
|
+
*
|
|
53
|
+
* @public
|
|
54
|
+
* @remarks
|
|
55
|
+
* HTML Attribute: orientation
|
|
56
|
+
*/
|
|
57
|
+
orientation: RadioGroupOrientation;
|
|
58
|
+
childItems: HTMLElement[];
|
|
59
|
+
/**
|
|
60
|
+
* @internal
|
|
61
|
+
*/
|
|
62
|
+
slottedRadioButtons: HTMLElement[];
|
|
63
|
+
protected slottedRadioButtonsChanged(oldValue: unknown, newValue: HTMLElement[]): void;
|
|
64
|
+
private selectedRadio;
|
|
65
|
+
private focusedRadio;
|
|
66
|
+
private direction;
|
|
67
|
+
private get parentToolbar();
|
|
68
|
+
private get isInsideToolbar();
|
|
69
|
+
private get isInsideFoundationToolbar();
|
|
70
|
+
/**
|
|
71
|
+
* @internal
|
|
72
|
+
*/
|
|
73
|
+
connectedCallback(): void;
|
|
74
|
+
disconnectedCallback(): void;
|
|
75
|
+
private setupRadioButtons;
|
|
76
|
+
private radioChangeHandler;
|
|
77
|
+
private moveToRadioByIndex;
|
|
78
|
+
private moveRightOffGroup;
|
|
79
|
+
private moveLeftOffGroup;
|
|
80
|
+
/**
|
|
81
|
+
* @internal
|
|
82
|
+
*/
|
|
83
|
+
focusOutHandler: (e: FocusEvent) => boolean | void;
|
|
84
|
+
/**
|
|
85
|
+
* @internal
|
|
86
|
+
*/
|
|
87
|
+
handleDisabledClick: (e: MouseEvent) => void | boolean;
|
|
88
|
+
/**
|
|
89
|
+
* @internal
|
|
90
|
+
*/
|
|
91
|
+
clickHandler: (e: MouseEvent) => void | boolean;
|
|
92
|
+
private shouldMoveOffGroupToTheRight;
|
|
93
|
+
private shouldMoveOffGroupToTheLeft;
|
|
94
|
+
private checkFocusedRadio;
|
|
95
|
+
private moveRight;
|
|
96
|
+
private moveLeft;
|
|
97
|
+
/**
|
|
98
|
+
* keyboard handling per https://w3c.github.io/aria-practices/#for-radio-groups-not-contained-in-a-toolbar
|
|
99
|
+
* navigation is different when there is an ancestor with role='toolbar'
|
|
100
|
+
*
|
|
101
|
+
* @internal
|
|
102
|
+
*/
|
|
103
|
+
keydownHandler: (e: KeyboardEvent) => boolean | void;
|
|
15
104
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ValuesOf } from '../utils/index.js';
|
|
2
|
+
/**
|
|
3
|
+
* Radio Group orientation
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export declare const RadioGroupOrientation: {
|
|
7
|
+
readonly horizontal: "horizontal"; /**
|
|
8
|
+
* Radio Group orientation
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
readonly vertical: "vertical";
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Types of Radio Group orientation
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
17
|
+
export declare type RadioGroupOrientation = ValuesOf<typeof RadioGroupOrientation>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import type { ElementViewTemplate } from '@microsoft/fast-element';
|
|
2
2
|
import type { RadioGroup } from './radio-group.js';
|
|
3
|
+
export declare function radioGroupTemplate<T extends RadioGroup>(): ElementViewTemplate<T>;
|
|
3
4
|
export declare const template: ElementViewTemplate<RadioGroup>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Direction } from '@microsoft/fast-web-utilities';
|
|
2
|
+
/**
|
|
3
|
+
* Converts a pixel coordinate on the track to a percent of the track's range
|
|
4
|
+
*/
|
|
5
|
+
export declare function convertPixelToPercent(pixelPos: number, minPosition: number, maxPosition: number, direction?: Direction): number;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { Direction, Orientation } from '@microsoft/fast-web-utilities';
|
|
2
|
+
import { SliderConfiguration, SliderMode, SliderSize } from './slider.options.js';
|
|
3
|
+
import { FormAssociatedSlider } from './slider.form-associated.js';
|
|
3
4
|
/**
|
|
4
5
|
* The base class used for constructing a fluent-slider custom element
|
|
5
6
|
* @public
|
|
6
7
|
*/
|
|
7
|
-
export declare class Slider extends
|
|
8
|
+
export declare class Slider extends FormAssociatedSlider implements SliderConfiguration {
|
|
8
9
|
/**
|
|
9
10
|
* The size of the slider
|
|
10
11
|
* @public
|
|
@@ -13,12 +14,201 @@ export declare class Slider extends FASTSlider {
|
|
|
13
14
|
*/
|
|
14
15
|
size?: SliderSize;
|
|
15
16
|
handleChange(source: any, propertyName: string): void;
|
|
16
|
-
connectedCallback(): void;
|
|
17
|
-
disconnectedCallback(): void;
|
|
18
17
|
private stepStyles?;
|
|
19
18
|
/**
|
|
20
19
|
* Handles changes to step styling based on the step value
|
|
21
20
|
* NOTE: This function is not a changed callback, stepStyles is not observable
|
|
22
21
|
*/
|
|
23
22
|
private handleStepStyles;
|
|
23
|
+
/**
|
|
24
|
+
* When true, the control will be immutable by user interaction. See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly | readonly HTML attribute} for more information.
|
|
25
|
+
*
|
|
26
|
+
* @public
|
|
27
|
+
* @remarks
|
|
28
|
+
* HTML Attribute: readonly
|
|
29
|
+
*/
|
|
30
|
+
readOnly: boolean;
|
|
31
|
+
protected readOnlyChanged(): void;
|
|
32
|
+
/**
|
|
33
|
+
* @internal
|
|
34
|
+
*/
|
|
35
|
+
track: HTMLDivElement;
|
|
36
|
+
/**
|
|
37
|
+
* @internal
|
|
38
|
+
*/
|
|
39
|
+
thumb: HTMLDivElement;
|
|
40
|
+
/**
|
|
41
|
+
* @internal
|
|
42
|
+
*/
|
|
43
|
+
stepMultiplier: number;
|
|
44
|
+
/**
|
|
45
|
+
* @internal
|
|
46
|
+
*/
|
|
47
|
+
direction: Direction;
|
|
48
|
+
/**
|
|
49
|
+
* @internal
|
|
50
|
+
*/
|
|
51
|
+
isDragging: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* @internal
|
|
54
|
+
*/
|
|
55
|
+
position: string;
|
|
56
|
+
/**
|
|
57
|
+
* @internal
|
|
58
|
+
*/
|
|
59
|
+
trackWidth: number;
|
|
60
|
+
/**
|
|
61
|
+
* @internal
|
|
62
|
+
*/
|
|
63
|
+
trackMinWidth: number;
|
|
64
|
+
/**
|
|
65
|
+
* @internal
|
|
66
|
+
*/
|
|
67
|
+
trackHeight: number;
|
|
68
|
+
/**
|
|
69
|
+
* @internal
|
|
70
|
+
*/
|
|
71
|
+
trackLeft: number;
|
|
72
|
+
/**
|
|
73
|
+
* @internal
|
|
74
|
+
*/
|
|
75
|
+
trackMinHeight: number;
|
|
76
|
+
/**
|
|
77
|
+
* The value property, typed as a number.
|
|
78
|
+
*
|
|
79
|
+
* @public
|
|
80
|
+
*/
|
|
81
|
+
get valueAsNumber(): number;
|
|
82
|
+
set valueAsNumber(next: number);
|
|
83
|
+
/**
|
|
84
|
+
* Custom function that generates a string for the component's "aria-valuetext" attribute based on the current value.
|
|
85
|
+
*
|
|
86
|
+
* @public
|
|
87
|
+
*/
|
|
88
|
+
valueTextFormatter: (value: string) => string | null;
|
|
89
|
+
/**
|
|
90
|
+
* @internal
|
|
91
|
+
*/
|
|
92
|
+
valueChanged(previous: string, next: string): void;
|
|
93
|
+
/**
|
|
94
|
+
* The minimum allowed value.
|
|
95
|
+
*
|
|
96
|
+
* @defaultValue - 0
|
|
97
|
+
* @public
|
|
98
|
+
* @remarks
|
|
99
|
+
* HTML Attribute: min
|
|
100
|
+
*/
|
|
101
|
+
min: number;
|
|
102
|
+
protected minChanged(): void;
|
|
103
|
+
/**
|
|
104
|
+
* The maximum allowed value.
|
|
105
|
+
*
|
|
106
|
+
* @defaultValue - 10
|
|
107
|
+
* @public
|
|
108
|
+
* @remarks
|
|
109
|
+
* HTML Attribute: max
|
|
110
|
+
*/
|
|
111
|
+
max: number;
|
|
112
|
+
protected maxChanged(): void;
|
|
113
|
+
/**
|
|
114
|
+
* Value to increment or decrement via arrow keys, mouse click or drag.
|
|
115
|
+
*
|
|
116
|
+
* @public
|
|
117
|
+
* @remarks
|
|
118
|
+
* HTML Attribute: step
|
|
119
|
+
*/
|
|
120
|
+
step: number | undefined;
|
|
121
|
+
protected stepChanged(): void;
|
|
122
|
+
/**
|
|
123
|
+
* The orientation of the slider.
|
|
124
|
+
*
|
|
125
|
+
* @public
|
|
126
|
+
* @remarks
|
|
127
|
+
* HTML Attribute: orientation
|
|
128
|
+
*/
|
|
129
|
+
orientation: Orientation;
|
|
130
|
+
protected orientationChanged(): void;
|
|
131
|
+
/**
|
|
132
|
+
* The selection mode.
|
|
133
|
+
*
|
|
134
|
+
* @public
|
|
135
|
+
* @remarks
|
|
136
|
+
* HTML Attribute: mode
|
|
137
|
+
*/
|
|
138
|
+
mode: SliderMode;
|
|
139
|
+
/**
|
|
140
|
+
* @internal
|
|
141
|
+
*/
|
|
142
|
+
connectedCallback(): void;
|
|
143
|
+
/**
|
|
144
|
+
* @internal
|
|
145
|
+
*/
|
|
146
|
+
disconnectedCallback(): void;
|
|
147
|
+
/**
|
|
148
|
+
* Increment the value by the step
|
|
149
|
+
*
|
|
150
|
+
* @public
|
|
151
|
+
*/
|
|
152
|
+
increment(): void;
|
|
153
|
+
/**
|
|
154
|
+
* Decrement the value by the step
|
|
155
|
+
*
|
|
156
|
+
* @public
|
|
157
|
+
*/
|
|
158
|
+
decrement(): void;
|
|
159
|
+
keypressHandler: (e: KeyboardEvent) => void;
|
|
160
|
+
/**
|
|
161
|
+
* Gets the actual step value for the slider
|
|
162
|
+
*
|
|
163
|
+
*/
|
|
164
|
+
private get stepValue();
|
|
165
|
+
/**
|
|
166
|
+
* Places the thumb based on the current value
|
|
167
|
+
*
|
|
168
|
+
* @public
|
|
169
|
+
* @param direction - writing mode
|
|
170
|
+
*/
|
|
171
|
+
private setThumbPositionForOrientation;
|
|
172
|
+
/**
|
|
173
|
+
* Update the step multiplier used to ensure rounding errors from steps that
|
|
174
|
+
* are not whole numbers
|
|
175
|
+
*/
|
|
176
|
+
private updateStepMultiplier;
|
|
177
|
+
private setupTrackConstraints;
|
|
178
|
+
private setupListeners;
|
|
179
|
+
/**
|
|
180
|
+
* @internal
|
|
181
|
+
*/
|
|
182
|
+
initialValue: string;
|
|
183
|
+
private get midpoint();
|
|
184
|
+
private setupDefaultValue;
|
|
185
|
+
/**
|
|
186
|
+
* Handle mouse moves during a thumb drag operation
|
|
187
|
+
* If the event handler is null it removes the events
|
|
188
|
+
*/
|
|
189
|
+
handleThumbMouseDown: (event: MouseEvent | null) => void;
|
|
190
|
+
/**
|
|
191
|
+
* Handle mouse moves during a thumb drag operation
|
|
192
|
+
*/
|
|
193
|
+
private handleMouseMove;
|
|
194
|
+
/**
|
|
195
|
+
* Calculate the new value based on the given raw pixel value.
|
|
196
|
+
*
|
|
197
|
+
* @param rawValue - the value to be converted to a constrained value
|
|
198
|
+
* @returns the constrained value
|
|
199
|
+
*
|
|
200
|
+
* @internal
|
|
201
|
+
*/
|
|
202
|
+
calculateNewValue(rawValue: number): number;
|
|
203
|
+
/**
|
|
204
|
+
* Handle a window mouse up during a drag operation
|
|
205
|
+
*/
|
|
206
|
+
private handleWindowMouseUp;
|
|
207
|
+
private stopDragging;
|
|
208
|
+
/**
|
|
209
|
+
*
|
|
210
|
+
* @param e - MouseEvent or null. If there is no event handler it will remove the events
|
|
211
|
+
*/
|
|
212
|
+
handleMouseDown: (e: MouseEvent | null) => void;
|
|
213
|
+
private convertToConstrainedValue;
|
|
24
214
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FASTElement } from '@microsoft/fast-element';
|
|
2
|
+
import { FormAssociated } from '../form-associated/form-associated.js';
|
|
3
|
+
declare class _Slider extends FASTElement {
|
|
4
|
+
}
|
|
5
|
+
interface _Slider extends FormAssociated {
|
|
6
|
+
}
|
|
7
|
+
declare const FormAssociatedSlider_base: typeof _Slider;
|
|
8
|
+
/**
|
|
9
|
+
* @beta
|
|
10
|
+
*/
|
|
11
|
+
export declare class FormAssociatedSlider extends FormAssociatedSlider_base {
|
|
12
|
+
proxy: HTMLInputElement;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { Direction } from '@microsoft/fast-web-utilities';
|
|
2
|
+
import type { StaticallyComposableHTML, ValuesOf } from '../utils/index.js';
|
|
3
|
+
import type { Slider } from './slider.js';
|
|
3
4
|
/**
|
|
4
5
|
* SliderSize Constants
|
|
5
6
|
* @public
|
|
@@ -13,3 +14,43 @@ export declare const SliderSize: {
|
|
|
13
14
|
* @public
|
|
14
15
|
*/
|
|
15
16
|
export declare type SliderSize = ValuesOf<typeof SliderSize>;
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
20
|
+
export declare const SliderOrientation: {
|
|
21
|
+
readonly horizontal: "horizontal";
|
|
22
|
+
readonly vertical: "vertical";
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* The types for the orientation of the slider
|
|
26
|
+
* @public
|
|
27
|
+
*/
|
|
28
|
+
export declare type SliderOrientation = ValuesOf<typeof SliderOrientation>;
|
|
29
|
+
/**
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
export declare const SliderMode: {
|
|
33
|
+
readonly singleValue: "single-value";
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* The types for the selection mode of the slider
|
|
37
|
+
* @public
|
|
38
|
+
*/
|
|
39
|
+
export declare type SliderMode = ValuesOf<typeof SliderMode>;
|
|
40
|
+
/**
|
|
41
|
+
* @public
|
|
42
|
+
*/
|
|
43
|
+
export interface SliderConfiguration {
|
|
44
|
+
max: number;
|
|
45
|
+
min: number;
|
|
46
|
+
orientation?: SliderOrientation;
|
|
47
|
+
direction?: Direction;
|
|
48
|
+
disabled?: boolean;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Slider configuration options
|
|
52
|
+
* @public
|
|
53
|
+
*/
|
|
54
|
+
export declare type SliderOptions = {
|
|
55
|
+
thumb?: StaticallyComposableHTML<Slider>;
|
|
56
|
+
};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import type { ElementViewTemplate } from '@microsoft/fast-element';
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { SliderOptions } from './slider.options.js';
|
|
3
|
+
import { Slider } from './slider.js';
|
|
4
|
+
export declare function sliderTemplate<T extends Slider>(options?: SliderOptions): ElementViewTemplate<T>;
|
|
5
|
+
export declare const template: ElementViewTemplate<Slider>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ProgressRing } from '../progress-ring/progress-ring.js';
|
|
2
2
|
import type { SpinnerAppearance, SpinnerSize } from './spinner.options.js';
|
|
3
3
|
/**
|
|
4
4
|
* The base class used for constructing a fluent-spinner custom element
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare class Spinner extends
|
|
7
|
+
export declare class Spinner extends ProgressRing {
|
|
8
8
|
/**
|
|
9
9
|
* The size of the spinner
|
|
10
10
|
*
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { Spinner } from './spinner.js';
|
|
2
2
|
/**
|
|
3
|
-
* The Fluent Spinner Element. Implements {@link @microsoft/fast-foundation#ProgressRing },
|
|
4
|
-
* {@link @microsoft/fast-foundation#progress-ringTemplate}
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
3
|
* @public
|
|
8
4
|
* @remarks
|
|
9
5
|
* HTML Element: \<fluent-spinner\>
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import type { ElementViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import { ProgressRingOptions } from '../progress-ring/progress-ring.options.js';
|
|
2
3
|
import { Spinner } from './spinner.js';
|
|
4
|
+
export declare function progressRingTemplate<T extends Spinner>(options?: ProgressRingOptions): ElementViewTemplate<T>;
|
|
3
5
|
export declare const template: ElementViewTemplate<Spinner>;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { StaticallyComposableHTML } from '../utils/index.js';
|
|
2
2
|
import { SwitchLabelPosition } from './switch.options.js';
|
|
3
|
-
|
|
3
|
+
import { FormAssociatedSwitch } from './switch.form-associated.js';
|
|
4
|
+
export declare type SwitchOptions = {
|
|
5
|
+
switch?: StaticallyComposableHTML<Switch>;
|
|
6
|
+
};
|
|
7
|
+
export declare class Switch extends FormAssociatedSwitch {
|
|
4
8
|
/**
|
|
5
9
|
* The label position of the switch
|
|
6
10
|
*
|
|
@@ -10,4 +14,32 @@ export declare class Switch extends FASTSwitch {
|
|
|
10
14
|
* HTML Attribute: labelposition
|
|
11
15
|
*/
|
|
12
16
|
labelPosition: SwitchLabelPosition | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* When true, the control will be immutable by user interaction. See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly | readonly HTML attribute} for more information.
|
|
19
|
+
* @public
|
|
20
|
+
* @remarks
|
|
21
|
+
* HTML Attribute: readonly
|
|
22
|
+
*/
|
|
23
|
+
readOnly: boolean;
|
|
24
|
+
protected readOnlyChanged(): void;
|
|
25
|
+
/**
|
|
26
|
+
* The element's value to be included in form submission when checked.
|
|
27
|
+
* Default to "on" to reach parity with input[type="checkbox"]
|
|
28
|
+
*
|
|
29
|
+
* @internal
|
|
30
|
+
*/
|
|
31
|
+
initialValue: string;
|
|
32
|
+
/**
|
|
33
|
+
* @internal
|
|
34
|
+
*/
|
|
35
|
+
defaultSlottedNodes: Node[];
|
|
36
|
+
constructor();
|
|
37
|
+
/**
|
|
38
|
+
* @internal
|
|
39
|
+
*/
|
|
40
|
+
keypressHandler: (e: KeyboardEvent) => void;
|
|
41
|
+
/**
|
|
42
|
+
* @internal
|
|
43
|
+
*/
|
|
44
|
+
clickHandler: (e: MouseEvent) => void;
|
|
13
45
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FASTElement } from '@microsoft/fast-element';
|
|
2
|
+
import { CheckableFormAssociated } from '../form-associated/form-associated.js';
|
|
3
|
+
declare class _Switch extends FASTElement {
|
|
4
|
+
}
|
|
5
|
+
interface _Switch extends CheckableFormAssociated {
|
|
6
|
+
}
|
|
7
|
+
declare const FormAssociatedSwitch_base: typeof _Switch;
|
|
8
|
+
/**
|
|
9
|
+
* @beta
|
|
10
|
+
*/
|
|
11
|
+
export declare class FormAssociatedSwitch extends FormAssociatedSwitch_base {
|
|
12
|
+
proxy: HTMLInputElement;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { ElementViewTemplate } from '@microsoft/fast-element';
|
|
2
|
-
import { Switch } from './switch.js';
|
|
2
|
+
import { Switch, SwitchOptions } from './switch.js';
|
|
3
|
+
export declare function switchTemplate<T extends Switch>(options?: SwitchOptions): ElementViewTemplate<T>;
|
|
3
4
|
export declare const template: ElementViewTemplate<Switch>;
|
package/dist/dts/tab/tab.d.ts
CHANGED
|
@@ -1,8 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FASTElement } from '@microsoft/fast-element';
|
|
2
|
+
import { StartEnd, StartEndOptions } from '../patterns/index.js';
|
|
3
|
+
/**
|
|
4
|
+
* Tab configuration options
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare type TabOptions = StartEndOptions<Tab>;
|
|
2
8
|
/**
|
|
3
9
|
* Tab extends the FASTTab and is a child of the TabList
|
|
4
10
|
*/
|
|
5
|
-
export declare class Tab extends
|
|
11
|
+
export declare class Tab extends FASTElement {
|
|
12
|
+
/**
|
|
13
|
+
* When true, the control will be immutable by user interaction. See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled | disabled HTML attribute} for more information.
|
|
14
|
+
* @public
|
|
15
|
+
* @remarks
|
|
16
|
+
* HTML Attribute: disabled
|
|
17
|
+
*/
|
|
18
|
+
disabled: boolean;
|
|
6
19
|
private styles;
|
|
7
20
|
connectedCallback(): void;
|
|
8
21
|
}
|
|
22
|
+
export interface Tab extends StartEnd {
|
|
23
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FASTTab, TabOptions } from '@microsoft/fast-foundation/tab.js';
|
|
2
1
|
import { ElementViewTemplate } from '@microsoft/fast-element';
|
|
3
|
-
|
|
4
|
-
export declare
|
|
2
|
+
import { Tab, TabOptions } from './tab.js';
|
|
3
|
+
export declare function tabTemplate<T extends Tab>(options?: TabOptions): ElementViewTemplate<T>;
|
|
4
|
+
export declare const template: ElementViewTemplate<Tab, any>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class TabPanel extends
|
|
1
|
+
import { FASTElement } from '@microsoft/fast-element';
|
|
2
|
+
export declare class TabPanel extends FASTElement {
|
|
3
3
|
}
|