@fluentui/web-components 3.0.0-beta.7 → 3.0.0-beta.9
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 +21 -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 +53 -1
- 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/benchmark-dependencies/tokens.d.ts +1 -0
- package/dist/dts/utils/benchmark-wrapper.d.ts +2 -0
- 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.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/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.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.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.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.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/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.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/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.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.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.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.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.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.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.template.js +27 -1
- package/dist/esm/spinner/spinner.template.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.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.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.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.template.js +14 -1
- package/dist/esm/tabs/tabs.template.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.template.js +64 -1
- package/dist/esm/text-input/text-input.template.js.map +1 -1
- package/dist/esm/theme/design-tokens.js +53 -1
- package/dist/esm/theme/design-tokens.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.template.js +1 -1
- package/dist/esm/toggle-button/toggle-button.template.js.map +1 -1
- package/dist/esm/utils/benchmark-dependencies/tokens.js +2 -0
- package/dist/esm/utils/benchmark-dependencies/tokens.js.map +1 -0
- package/dist/esm/utils/benchmark-wrapper.js +18 -0
- package/dist/esm/utils/benchmark-wrapper.js.map +1 -0
- 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 +9315 -3940
- package/dist/storybook/284.0946b1fb.iframe.bundle.js +2 -0
- package/dist/storybook/iframe.html +1 -1
- package/dist/storybook/main.59da076f.iframe.bundle.js +2 -0
- package/dist/storybook/project.json +1 -1
- package/dist/web-components.d.ts +2194 -241
- package/dist/web-components.js +2069 -3196
- package/dist/web-components.min.js +123 -123
- package/docs/api-report.md +600 -90
- package/package.json +5 -2
- package/tensile.config.js +24 -0
- 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.b095c2e8.iframe.bundle.js +0 -2
- /package/dist/storybook/{350.e4be85c2.iframe.bundle.js.LICENSE.txt → 284.0946b1fb.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/dist/storybook/{main.b095c2e8.iframe.bundle.js.LICENSE.txt → main.59da076f.iframe.bundle.js.LICENSE.txt} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,31 @@
|
|
|
1
1
|
# Change Log - @fluentui/web-components
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Mon, 08 Apr 2024 04:08:50 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## [3.0.0-beta.9](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.0.0-beta.9)
|
|
8
|
+
|
|
9
|
+
Mon, 08 Apr 2024 04:08:50 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v3.0.0-beta.8..@fluentui/web-components_v3.0.0-beta.9)
|
|
11
|
+
|
|
12
|
+
### Changes
|
|
13
|
+
|
|
14
|
+
- chore: setup perf benchmarking in web components ([PR #30972](https://github.com/microsoft/fluentui/pull/30972) by =)
|
|
15
|
+
- Bump @fluentui/tokens to v1.0.0-alpha.2 ([PR #30972](https://github.com/microsoft/fluentui/pull/30972) by beachball)
|
|
16
|
+
|
|
17
|
+
## [3.0.0-beta.8](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.0.0-beta.8)
|
|
18
|
+
|
|
19
|
+
Mon, 12 Feb 2024 04:08:06 GMT
|
|
20
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v3.0.0-beta.7..@fluentui/web-components_v3.0.0-beta.8)
|
|
21
|
+
|
|
22
|
+
### Changes
|
|
23
|
+
|
|
24
|
+
- Removes dependancy on fast-foundation classes and templates ([PR #30090](https://github.com/microsoft/fluentui/pull/30090) by jes@microsoft.com)
|
|
25
|
+
|
|
7
26
|
## [3.0.0-beta.7](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.0.0-beta.7)
|
|
8
27
|
|
|
9
|
-
Fri, 09 Feb 2024 04:08:
|
|
28
|
+
Fri, 09 Feb 2024 04:08:43 GMT
|
|
10
29
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v3.0.0-beta.6..@fluentui/web-components_v3.0.0-beta.7)
|
|
11
30
|
|
|
12
31
|
### Changes
|
|
@@ -1,7 +1,51 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FASTElement } from '@microsoft/fast-element';
|
|
2
|
+
import { AccordionExpandMode } from './accordion.options.js';
|
|
2
3
|
/**
|
|
3
|
-
*
|
|
4
|
+
* An Accordion Custom HTML Element
|
|
5
|
+
* Implements {@link https://www.w3.org/TR/wai-aria-practices-1.1/#accordion | ARIA Accordion}.
|
|
6
|
+
*
|
|
7
|
+
* @fires change - Fires a custom 'change' event when the active item changes
|
|
8
|
+
* @csspart item - The slot for the accordion items
|
|
4
9
|
* @public
|
|
5
10
|
*/
|
|
6
|
-
export declare class Accordion extends
|
|
11
|
+
export declare class Accordion extends FASTElement {
|
|
12
|
+
/**
|
|
13
|
+
* Controls the expand mode of the Accordion, either allowing
|
|
14
|
+
* single or multiple item expansion.
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* HTML attribute: expand-mode
|
|
19
|
+
*/
|
|
20
|
+
expandmode: AccordionExpandMode;
|
|
21
|
+
expandmodeChanged(prev: AccordionExpandMode, next: AccordionExpandMode): void;
|
|
22
|
+
/**
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
slottedAccordionItems: HTMLElement[];
|
|
26
|
+
protected accordionItems: Element[];
|
|
27
|
+
/**
|
|
28
|
+
* @internal
|
|
29
|
+
*/
|
|
30
|
+
slottedAccordionItemsChanged(oldValue: HTMLElement[], newValue: HTMLElement[]): void;
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
handleChange(source: any, propertyName: string): void;
|
|
35
|
+
private activeid;
|
|
36
|
+
private activeItemIndex;
|
|
37
|
+
private accordionIds;
|
|
38
|
+
private change;
|
|
39
|
+
private findExpandedItem;
|
|
40
|
+
private setItems;
|
|
41
|
+
private setSingleExpandMode;
|
|
42
|
+
private removeItemListeners;
|
|
43
|
+
private activeItemChange;
|
|
44
|
+
private handleExpandedChange;
|
|
45
|
+
private getItemIds;
|
|
46
|
+
private isSingleExpandMode;
|
|
47
|
+
private handleItemKeyDown;
|
|
48
|
+
private handleItemFocus;
|
|
49
|
+
private adjust;
|
|
50
|
+
private focusItem;
|
|
7
51
|
}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { Accordion } from './accordion.js';
|
|
2
2
|
/**
|
|
3
|
-
* The Fluent Accordion Element. Implements {@link @microsoft/fast-foundation#Accordion },
|
|
4
|
-
* {@link @microsoft/fast-foundation#accordionTemplate}
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
3
|
* @public
|
|
8
4
|
* @remarks
|
|
9
5
|
* HTML Element: \<fluent-accordion\>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ValuesOf } from '../utils/index.js';
|
|
2
|
+
/**
|
|
3
|
+
* Expand mode for {@link FASTAccordion}
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export declare const AccordionExpandMode: {
|
|
7
|
+
readonly single: "single";
|
|
8
|
+
readonly multi: "multi";
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Type for the {@link FASTAccordion} Expand Mode
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
export declare type AccordionExpandMode = ValuesOf<typeof AccordionExpandMode>;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import { ElementViewTemplate } from '@microsoft/fast-element';
|
|
2
2
|
import type { Accordion } from './accordion.js';
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export declare function accordionTemplate<T extends Accordion>(): ElementViewTemplate<T>;
|
|
3
7
|
export declare const template: ElementViewTemplate<Accordion>;
|
|
@@ -1,9 +1,68 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FASTElement } from '@microsoft/fast-element';
|
|
2
|
+
import type { StaticallyComposableHTML } from '../utils/index.js';
|
|
3
|
+
import { StartEnd } from '../patterns/index.js';
|
|
4
|
+
import type { StartEndOptions } from '../patterns/index.js';
|
|
2
5
|
import { AccordionItemExpandIconPosition, AccordionItemSize } from './accordion-item.options.js';
|
|
3
6
|
/**
|
|
4
|
-
*
|
|
7
|
+
* Accordion Item configuration options
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
export declare type AccordionItemOptions = StartEndOptions<AccordionItem> & {
|
|
11
|
+
expandedIcon?: StaticallyComposableHTML<AccordionItem>;
|
|
12
|
+
collapsedIcon?: StaticallyComposableHTML<AccordionItem>;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @slot start - Content which can be provided between the heading and the icon
|
|
17
|
+
* @slot end - Content which can be provided between the start slot and icon
|
|
18
|
+
* @slot heading - Content which serves as the accordion item heading and text of the expand button
|
|
19
|
+
* @slot - The default slot for accordion item content
|
|
20
|
+
* @slot expanded-icon - The expanded icon
|
|
21
|
+
* @slot collapsed-icon - The collapsed icon
|
|
22
|
+
* @fires change - Fires a custom 'change' event when the button is invoked
|
|
23
|
+
* @csspart heading - Wraps the button
|
|
24
|
+
* @csspart button - The button which serves to invoke the item
|
|
25
|
+
* @csspart heading-content - Wraps the slot for the heading content within the button
|
|
26
|
+
* @csspart icon - The icon container
|
|
27
|
+
* @csspart region - The wrapper for the accordion item content
|
|
28
|
+
*
|
|
29
|
+
* @public
|
|
5
30
|
*/
|
|
6
|
-
export declare class AccordionItem extends
|
|
31
|
+
export declare class AccordionItem extends FASTElement {
|
|
32
|
+
/**
|
|
33
|
+
* Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the
|
|
34
|
+
* heading element.
|
|
35
|
+
*
|
|
36
|
+
* @defaultValue 2
|
|
37
|
+
* @public
|
|
38
|
+
* @remarks
|
|
39
|
+
* HTML attribute: heading-level
|
|
40
|
+
*/
|
|
41
|
+
headinglevel: 1 | 2 | 3 | 4 | 5 | 6;
|
|
42
|
+
/**
|
|
43
|
+
* Expands or collapses the item.
|
|
44
|
+
*
|
|
45
|
+
* @public
|
|
46
|
+
* @remarks
|
|
47
|
+
* HTML attribute: expanded
|
|
48
|
+
*/
|
|
49
|
+
expanded: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Disables an accordion item
|
|
52
|
+
*
|
|
53
|
+
* @public
|
|
54
|
+
* @remarks
|
|
55
|
+
* HTML attribute: disabled
|
|
56
|
+
*/
|
|
57
|
+
disabled: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* The item ID
|
|
60
|
+
*
|
|
61
|
+
* @public
|
|
62
|
+
* @remarks
|
|
63
|
+
* HTML Attribute: id
|
|
64
|
+
*/
|
|
65
|
+
id: string;
|
|
7
66
|
/**
|
|
8
67
|
* Defines accordion header font size.
|
|
9
68
|
*
|
|
@@ -30,4 +89,20 @@ export declare class AccordionItem extends FASTAccordionItem {
|
|
|
30
89
|
* HTML Attribute: expandIconPosition
|
|
31
90
|
*/
|
|
32
91
|
expandIconPosition?: AccordionItemExpandIconPosition;
|
|
92
|
+
/**
|
|
93
|
+
* @internal
|
|
94
|
+
*/
|
|
95
|
+
expandbutton: HTMLElement;
|
|
96
|
+
/**
|
|
97
|
+
* @internal
|
|
98
|
+
*/
|
|
99
|
+
clickHandler: (e: MouseEvent) => void;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Mark internal because exporting class and interface of the same name
|
|
103
|
+
* confuses API documenter.
|
|
104
|
+
* TODO: https://github.com/microsoft/fast/issues/3317
|
|
105
|
+
* @internal
|
|
106
|
+
*/
|
|
107
|
+
export interface AccordionItem extends StartEnd {
|
|
33
108
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ElementViewTemplate } from '@microsoft/fast-element';
|
|
2
|
-
import { AccordionItem } from './accordion-item.js';
|
|
2
|
+
import { AccordionItem, AccordionItemOptions } from './accordion-item.js';
|
|
3
|
+
export declare function accordionItemTemplate<T extends AccordionItem>(options?: AccordionItemOptions): ElementViewTemplate<T>;
|
|
3
4
|
/**
|
|
4
5
|
* The template for the fluent-accordion component.
|
|
5
6
|
* @public
|
|
@@ -1,10 +1,92 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { FASTElement } from '@microsoft/fast-element';
|
|
2
|
+
import { ARIAGlobalStatesAndProperties, StartEnd } from '../patterns/index.js';
|
|
3
|
+
import type { StartEndOptions } from '../patterns/index.js';
|
|
4
|
+
import type { AnchorButtonAppearance, AnchorButtonShape, AnchorButtonSize, AnchorTarget } from './anchor-button.options.js';
|
|
3
5
|
/**
|
|
4
|
-
*
|
|
6
|
+
* Anchor configuration options
|
|
5
7
|
* @public
|
|
6
8
|
*/
|
|
7
|
-
export declare
|
|
9
|
+
export declare type AnchorOptions = StartEndOptions<AnchorButton>;
|
|
10
|
+
/**
|
|
11
|
+
* An Anchor Custom HTML Element.
|
|
12
|
+
* Based largely on the {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a | <a> element }.
|
|
13
|
+
*
|
|
14
|
+
* @slot start - Content which can be provided before the anchor content
|
|
15
|
+
* @slot end - Content which can be provided after the anchor content
|
|
16
|
+
* @slot - The default slot for anchor content
|
|
17
|
+
* @csspart control - The anchor element
|
|
18
|
+
* @csspart content - The element wrapping anchor content
|
|
19
|
+
*
|
|
20
|
+
* @public
|
|
21
|
+
*/
|
|
22
|
+
export declare class AnchorButton extends FASTElement {
|
|
23
|
+
/**
|
|
24
|
+
* Prompts the user to save the linked URL. See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a | <a> element } for more information.
|
|
25
|
+
* @public
|
|
26
|
+
* @remarks
|
|
27
|
+
* HTML Attribute: download
|
|
28
|
+
*/
|
|
29
|
+
download: string;
|
|
30
|
+
/**
|
|
31
|
+
* The URL the hyperlink references. See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a | <a> element } for more information.
|
|
32
|
+
* @public
|
|
33
|
+
* @remarks
|
|
34
|
+
* HTML Attribute: href
|
|
35
|
+
*/
|
|
36
|
+
href: string;
|
|
37
|
+
/**
|
|
38
|
+
* Hints at the language of the referenced resource. See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a | <a> element } for more information.
|
|
39
|
+
* @public
|
|
40
|
+
* @remarks
|
|
41
|
+
* HTML Attribute: hreflang
|
|
42
|
+
*/
|
|
43
|
+
hreflang: string;
|
|
44
|
+
/**
|
|
45
|
+
* See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a | <a> element } for more information.
|
|
46
|
+
* @public
|
|
47
|
+
* @remarks
|
|
48
|
+
* HTML Attribute: ping
|
|
49
|
+
*/
|
|
50
|
+
ping: string;
|
|
51
|
+
/**
|
|
52
|
+
* See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a | <a> element } for more information.
|
|
53
|
+
* @public
|
|
54
|
+
* @remarks
|
|
55
|
+
* HTML Attribute: referrerpolicy
|
|
56
|
+
*/
|
|
57
|
+
referrerpolicy: string;
|
|
58
|
+
/**
|
|
59
|
+
* See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a | <a> element } for more information.
|
|
60
|
+
* @public
|
|
61
|
+
* @remarks
|
|
62
|
+
* HTML Attribute: rel
|
|
63
|
+
*/
|
|
64
|
+
rel: string;
|
|
65
|
+
/**
|
|
66
|
+
* See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a | <a> element } for more information.
|
|
67
|
+
* @public
|
|
68
|
+
* @remarks
|
|
69
|
+
* HTML Attribute: target
|
|
70
|
+
*/
|
|
71
|
+
target: AnchorTarget;
|
|
72
|
+
/**
|
|
73
|
+
* See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a | <a> element } for more information.
|
|
74
|
+
* @public
|
|
75
|
+
* @remarks
|
|
76
|
+
* HTML Attribute: type
|
|
77
|
+
*/
|
|
78
|
+
type: string;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* Default slotted content
|
|
82
|
+
*
|
|
83
|
+
* @internal
|
|
84
|
+
*/
|
|
85
|
+
defaultSlottedContent: HTMLElement[];
|
|
86
|
+
/**
|
|
87
|
+
* References the root element
|
|
88
|
+
*/
|
|
89
|
+
control: HTMLAnchorElement;
|
|
8
90
|
/**
|
|
9
91
|
* The appearance the anchor button should have.
|
|
10
92
|
*
|
|
@@ -62,3 +144,33 @@ export declare class AnchorButton extends FASTAnchor {
|
|
|
62
144
|
connectedCallback(): void;
|
|
63
145
|
disconnectedCallback(): void;
|
|
64
146
|
}
|
|
147
|
+
/**
|
|
148
|
+
* Includes ARIA states and properties relating to the ARIA link role
|
|
149
|
+
*
|
|
150
|
+
* @public
|
|
151
|
+
*/
|
|
152
|
+
export declare class DelegatesARIALink {
|
|
153
|
+
/**
|
|
154
|
+
* See {@link https://www.w3.org/WAI/PF/aria/roles#link} for more information
|
|
155
|
+
* @public
|
|
156
|
+
* @remarks
|
|
157
|
+
* HTML Attribute: aria-expanded
|
|
158
|
+
*/
|
|
159
|
+
ariaExpanded: 'true' | 'false' | string | null;
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Mark internal because exporting class and interface of the same name
|
|
163
|
+
* confuses API documenter.
|
|
164
|
+
* TODO: https://github.com/microsoft/fast/issues/3317
|
|
165
|
+
* @internal
|
|
166
|
+
*/
|
|
167
|
+
export interface DelegatesARIALink extends ARIAGlobalStatesAndProperties {
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Mark internal because exporting class and interface of the same name
|
|
171
|
+
* confuses API documenter.
|
|
172
|
+
* TODO: https://github.com/microsoft/fast/issues/3317
|
|
173
|
+
* @internal
|
|
174
|
+
*/
|
|
175
|
+
export interface AnchorButton extends StartEnd, DelegatesARIALink {
|
|
176
|
+
}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { AnchorButton } from './anchor-button.js';
|
|
2
2
|
/**
|
|
3
|
-
* The Fluent Anchor Button Element. Implements {@link @microsoft/fast-foundation#Anchor },
|
|
4
|
-
* {@link @microsoft/fast-foundation#anchorTemplate}
|
|
5
|
-
*
|
|
6
3
|
* @public
|
|
7
4
|
* @remarks
|
|
8
5
|
* HTML Element: \<fluent-anchor-button\>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { ValuesOf } from '../utils/index.js';
|
|
2
|
+
import type { AnchorOptions } from './anchor-button.js';
|
|
3
3
|
/**
|
|
4
4
|
* Anchor Button Appearance constants
|
|
5
5
|
* @public
|
|
@@ -45,3 +45,20 @@ export declare const AnchorButtonSize: {
|
|
|
45
45
|
*/
|
|
46
46
|
export declare type AnchorButtonSize = ValuesOf<typeof AnchorButtonSize>;
|
|
47
47
|
export { AnchorOptions as AnchorButtonOptions };
|
|
48
|
+
/**
|
|
49
|
+
* Anchor target values.
|
|
50
|
+
*
|
|
51
|
+
* @public
|
|
52
|
+
*/
|
|
53
|
+
export declare const AnchorTarget: {
|
|
54
|
+
readonly _self: "_self";
|
|
55
|
+
readonly _blank: "_blank";
|
|
56
|
+
readonly _parent: "_parent";
|
|
57
|
+
readonly _top: "_top";
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Type for anchor target values.
|
|
61
|
+
*
|
|
62
|
+
* @public
|
|
63
|
+
*/
|
|
64
|
+
export declare type AnchorTarget = ValuesOf<typeof AnchorTarget>;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import { ElementViewTemplate } from '@microsoft/fast-element';
|
|
2
|
-
import type { AnchorButton } from './anchor-button.js';
|
|
1
|
+
import { ElementViewTemplate, ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import type { AnchorButton, AnchorOptions } from './anchor-button.js';
|
|
3
|
+
/**
|
|
4
|
+
* The template for the Button component.
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare function anchorTemplate<T extends AnchorButton>(options?: AnchorOptions): ViewTemplate<T>;
|
|
3
8
|
/**
|
|
4
9
|
* The template for the Button component.
|
|
5
10
|
* @public
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FASTElement } from '@microsoft/fast-element';
|
|
2
|
-
import { StartEnd } from '
|
|
2
|
+
import { StartEnd } from '../patterns/index.js';
|
|
3
3
|
import { BadgeAppearance, BadgeColor, BadgeShape, BadgeSize } from './badge.options.js';
|
|
4
4
|
/**
|
|
5
5
|
* The base class used for constructing a fluent-badge custom element
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { StartEndOptions } from '
|
|
2
|
-
import type { StaticallyComposableHTML, ValuesOf } from '
|
|
1
|
+
import { StartEndOptions } from '../patterns/index.js';
|
|
2
|
+
import type { StaticallyComposableHTML, ValuesOf } from '../utils/index.js';
|
|
3
3
|
import type { Badge } from './badge.js';
|
|
4
4
|
/**
|
|
5
5
|
* @internal - marking as internal update when Badge PR for start/end is in
|
|
@@ -1,10 +1,89 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ARIAGlobalStatesAndProperties, StartEnd } from '../patterns/index.js';
|
|
2
|
+
import { FormAssociatedButton } from './button.form-associated.js';
|
|
3
|
+
import { ButtonAppearance, ButtonShape, ButtonSize, ButtonType } from './button.options.js';
|
|
3
4
|
/**
|
|
4
|
-
*
|
|
5
|
+
* A Button Custom HTML Element.
|
|
6
|
+
* Based largely on the {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button | <button> element }.
|
|
7
|
+
*
|
|
8
|
+
* @slot start - Content which can be provided before the button content
|
|
9
|
+
* @slot end - Content which can be provided after the button content
|
|
10
|
+
* @slot - The default slot for button content
|
|
11
|
+
* @csspart control - The button element
|
|
12
|
+
* @csspart content - The element wrapping button content
|
|
13
|
+
*
|
|
5
14
|
* @public
|
|
6
15
|
*/
|
|
7
|
-
export declare class Button extends
|
|
16
|
+
export declare class Button extends FormAssociatedButton {
|
|
17
|
+
/**
|
|
18
|
+
* Determines if the element should receive document focus on page load.
|
|
19
|
+
*
|
|
20
|
+
* @public
|
|
21
|
+
* @remarks
|
|
22
|
+
* HTML Attribute: autofocus
|
|
23
|
+
*/
|
|
24
|
+
autofocus: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* The id of a form to associate the element to.
|
|
27
|
+
*
|
|
28
|
+
* @public
|
|
29
|
+
* @remarks
|
|
30
|
+
* HTML Attribute: form
|
|
31
|
+
*/
|
|
32
|
+
formId: string;
|
|
33
|
+
/**
|
|
34
|
+
* See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button | <button> element} for more details.
|
|
35
|
+
*
|
|
36
|
+
* @public
|
|
37
|
+
* @remarks
|
|
38
|
+
* HTML Attribute: formaction
|
|
39
|
+
*/
|
|
40
|
+
formaction: string;
|
|
41
|
+
protected formactionChanged(): void;
|
|
42
|
+
/**
|
|
43
|
+
* See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button | <button> element} for more details.
|
|
44
|
+
*
|
|
45
|
+
* @public
|
|
46
|
+
* @remarks
|
|
47
|
+
* HTML Attribute: formenctype
|
|
48
|
+
*/
|
|
49
|
+
formenctype: string;
|
|
50
|
+
protected formenctypeChanged(): void;
|
|
51
|
+
/**
|
|
52
|
+
* See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button | <button> element} for more details.
|
|
53
|
+
*
|
|
54
|
+
* @public
|
|
55
|
+
* @remarks
|
|
56
|
+
* HTML Attribute: formmethod
|
|
57
|
+
*/
|
|
58
|
+
formmethod: string;
|
|
59
|
+
protected formmethodChanged(): void;
|
|
60
|
+
/**
|
|
61
|
+
* See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button | <button> element} for more details.
|
|
62
|
+
*
|
|
63
|
+
* @public
|
|
64
|
+
* @remarks
|
|
65
|
+
* HTML Attribute: formnovalidate
|
|
66
|
+
*/
|
|
67
|
+
formnovalidate: boolean;
|
|
68
|
+
protected formnovalidateChanged(): void;
|
|
69
|
+
/**
|
|
70
|
+
* See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button | <button> element} for more details.
|
|
71
|
+
*
|
|
72
|
+
* @public
|
|
73
|
+
* @remarks
|
|
74
|
+
* HTML Attribute: formtarget
|
|
75
|
+
*/
|
|
76
|
+
formtarget: '_self' | '_blank' | '_parent' | '_top';
|
|
77
|
+
protected formtargetChanged(): void;
|
|
78
|
+
/**
|
|
79
|
+
* The button type.
|
|
80
|
+
*
|
|
81
|
+
* @public
|
|
82
|
+
* @remarks
|
|
83
|
+
* HTML Attribute: type
|
|
84
|
+
*/
|
|
85
|
+
type: ButtonType;
|
|
86
|
+
protected typeChanged(previous: ButtonType | undefined, next: ButtonType): void;
|
|
8
87
|
/**
|
|
9
88
|
* The appearance the button should have.
|
|
10
89
|
*
|
|
@@ -50,6 +129,65 @@ export declare class Button extends FASTButton {
|
|
|
50
129
|
* Prevents disabledFocusable click events
|
|
51
130
|
*/
|
|
52
131
|
private handleDisabledFocusableClick;
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* Default slotted content
|
|
135
|
+
*
|
|
136
|
+
* @public
|
|
137
|
+
* @remarks
|
|
138
|
+
*/
|
|
139
|
+
defaultSlottedContent: HTMLElement[];
|
|
140
|
+
/** {@inheritDoc (FormAssociated:interface).validate} */
|
|
141
|
+
validate(): void;
|
|
142
|
+
/**
|
|
143
|
+
* @internal
|
|
144
|
+
*/
|
|
53
145
|
connectedCallback(): void;
|
|
54
146
|
disconnectedCallback(): void;
|
|
147
|
+
/**
|
|
148
|
+
* Submits the parent form
|
|
149
|
+
*/
|
|
150
|
+
private handleSubmission;
|
|
151
|
+
/**
|
|
152
|
+
* Resets the parent form
|
|
153
|
+
*/
|
|
154
|
+
private handleFormReset;
|
|
155
|
+
control: HTMLButtonElement;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Includes ARIA states and properties relating to the ARIA button role
|
|
159
|
+
*
|
|
160
|
+
* @public
|
|
161
|
+
*/
|
|
162
|
+
export declare class DelegatesARIAButton {
|
|
163
|
+
/**
|
|
164
|
+
* See {@link https://www.w3.org/WAI/PF/aria/roles#button} for more information
|
|
165
|
+
* @public
|
|
166
|
+
* @remarks
|
|
167
|
+
* HTML Attribute: aria-expanded
|
|
168
|
+
*/
|
|
169
|
+
ariaExpanded: 'true' | 'false' | string | null;
|
|
170
|
+
/**
|
|
171
|
+
* See {@link https://www.w3.org/WAI/PF/aria/roles#button} for more information
|
|
172
|
+
* @public
|
|
173
|
+
* @remarks
|
|
174
|
+
* HTML Attribute: aria-pressed
|
|
175
|
+
*/
|
|
176
|
+
ariaPressed: 'true' | 'false' | 'mixed' | string | null;
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Mark internal because exporting class and interface of the same name
|
|
180
|
+
* confuses API documenter.
|
|
181
|
+
* TODO: https://github.com/microsoft/fast/issues/3317
|
|
182
|
+
* @internal
|
|
183
|
+
*/
|
|
184
|
+
export interface DelegatesARIAButton extends ARIAGlobalStatesAndProperties {
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Mark internal because exporting class and interface of the same name
|
|
188
|
+
* confuses API documenter.
|
|
189
|
+
* TODO: https://github.com/microsoft/fast/issues/3317
|
|
190
|
+
* @internal
|
|
191
|
+
*/
|
|
192
|
+
export interface Button extends StartEnd, DelegatesARIAButton {
|
|
55
193
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FASTElement } from '@microsoft/fast-element';
|
|
2
|
+
import { FormAssociated } from '../form-associated/form-associated.js';
|
|
3
|
+
declare class _Button extends FASTElement {
|
|
4
|
+
}
|
|
5
|
+
interface _Button extends FormAssociated {
|
|
6
|
+
}
|
|
7
|
+
declare const FormAssociatedButton_base: typeof _Button;
|
|
8
|
+
/**
|
|
9
|
+
* @beta
|
|
10
|
+
*/
|
|
11
|
+
export declare class FormAssociatedButton extends FormAssociatedButton_base {
|
|
12
|
+
proxy: HTMLInputElement;
|
|
13
|
+
}
|
|
14
|
+
export {};
|