@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.
Files changed (293) hide show
  1. package/CHANGELOG.md +21 -2
  2. package/dist/dts/accordion/accordion.d.ts +47 -3
  3. package/dist/dts/accordion/accordion.definition.d.ts +0 -4
  4. package/dist/dts/accordion/accordion.options.d.ts +14 -0
  5. package/dist/dts/accordion/accordion.template.d.ts +4 -0
  6. package/dist/dts/accordion-item/accordion-item.d.ts +78 -3
  7. package/dist/dts/accordion-item/accordion-item.definition.d.ts +0 -3
  8. package/dist/dts/accordion-item/accordion-item.options.d.ts +1 -1
  9. package/dist/dts/accordion-item/accordion-item.template.d.ts +2 -1
  10. package/dist/dts/anchor-button/anchor-button.d.ts +116 -4
  11. package/dist/dts/anchor-button/anchor-button.definition.d.ts +0 -3
  12. package/dist/dts/anchor-button/anchor-button.options.d.ts +19 -2
  13. package/dist/dts/anchor-button/anchor-button.template.d.ts +7 -2
  14. package/dist/dts/avatar/avatar.options.d.ts +1 -1
  15. package/dist/dts/badge/badge.d.ts +1 -1
  16. package/dist/dts/badge/badge.definition.d.ts +0 -3
  17. package/dist/dts/badge/badge.options.d.ts +2 -2
  18. package/dist/dts/button/button.d.ts +142 -4
  19. package/dist/dts/button/button.definition.d.ts +0 -3
  20. package/dist/dts/button/button.form-associated.d.ts +14 -0
  21. package/dist/dts/button/button.options.d.ts +24 -3
  22. package/dist/dts/button/button.template.d.ts +2 -0
  23. package/dist/dts/checkbox/checkbox.d.ts +46 -3
  24. package/dist/dts/checkbox/checkbox.form-associated.d.ts +14 -0
  25. package/dist/dts/checkbox/checkbox.options.d.ts +1 -1
  26. package/dist/dts/checkbox/checkbox.template.d.ts +6 -1
  27. package/dist/dts/compound-button/compound-button.definition.d.ts +0 -3
  28. package/dist/dts/compound-button/compound-button.options.d.ts +6 -6
  29. package/dist/dts/counter-badge/counter-badge.d.ts +1 -1
  30. package/dist/dts/counter-badge/counter-badge.definition.d.ts +0 -4
  31. package/dist/dts/counter-badge/counter-badge.options.d.ts +1 -1
  32. package/dist/dts/dialog/dialog.options.d.ts +1 -1
  33. package/dist/dts/divider/divider.d.ts +20 -4
  34. package/dist/dts/divider/divider.options.d.ts +30 -6
  35. package/dist/dts/divider/divider.template.d.ts +1 -0
  36. package/dist/dts/form-associated/form-associated.d.ts +178 -0
  37. package/dist/dts/image/image.options.d.ts +1 -1
  38. package/dist/dts/label/label.options.d.ts +1 -1
  39. package/dist/dts/menu-button/menu-button.definition.d.ts +0 -3
  40. package/dist/dts/menu-button/menu-button.options.d.ts +2 -2
  41. package/dist/dts/menu-item/menu-item.d.ts +161 -4
  42. package/dist/dts/menu-item/menu-item.definition.d.ts +0 -4
  43. package/dist/dts/menu-item/menu-item.options.d.ts +30 -0
  44. package/dist/dts/menu-item/menu-item.template.d.ts +2 -1
  45. package/dist/dts/menu-list/menu-list.d.ts +71 -4
  46. package/dist/dts/menu-list/menu-list.definition.d.ts +0 -4
  47. package/dist/dts/menu-list/menu-list.template.d.ts +1 -0
  48. package/dist/dts/patterns/aria-globals.d.ts +189 -0
  49. package/dist/dts/patterns/index.d.ts +2 -0
  50. package/dist/dts/patterns/start-end.d.ts +44 -0
  51. package/dist/dts/progress-bar/base-progress.d.ts +41 -0
  52. package/dist/dts/progress-bar/progress-bar.d.ts +11 -4
  53. package/dist/dts/progress-bar/progress-bar.options.d.ts +10 -1
  54. package/dist/dts/progress-bar/progress-bar.template.d.ts +2 -0
  55. package/dist/dts/progress-ring/progress-ring.d.ts +15 -0
  56. package/dist/dts/progress-ring/progress-ring.options.d.ts +9 -0
  57. package/dist/dts/radio/radio.d.ts +54 -3
  58. package/dist/dts/radio/radio.form-associated.d.ts +14 -0
  59. package/dist/dts/radio/radio.template.d.ts +2 -1
  60. package/dist/dts/radio-group/index.d.ts +0 -1
  61. package/dist/dts/radio-group/radio-group.d.ts +91 -2
  62. package/dist/dts/radio-group/radio-group.options.d.ts +17 -0
  63. package/dist/dts/radio-group/radio-group.template.d.ts +1 -0
  64. package/dist/dts/slider/slider-utilities.d.ts +5 -0
  65. package/dist/dts/slider/slider.d.ts +195 -5
  66. package/dist/dts/slider/slider.form-associated.d.ts +14 -0
  67. package/dist/dts/slider/slider.options.d.ts +43 -2
  68. package/dist/dts/slider/slider.template.d.ts +4 -2
  69. package/dist/dts/spinner/spinner.d.ts +2 -2
  70. package/dist/dts/spinner/spinner.definition.d.ts +0 -4
  71. package/dist/dts/spinner/spinner.options.d.ts +1 -1
  72. package/dist/dts/spinner/spinner.template.d.ts +2 -0
  73. package/dist/dts/switch/switch.d.ts +34 -2
  74. package/dist/dts/switch/switch.form-associated.d.ts +14 -0
  75. package/dist/dts/switch/switch.options.d.ts +1 -1
  76. package/dist/dts/switch/switch.template.d.ts +2 -1
  77. package/dist/dts/tab/tab.d.ts +17 -2
  78. package/dist/dts/tab/tab.template.d.ts +3 -3
  79. package/dist/dts/tab-panel/tab-panel.d.ts +2 -2
  80. package/dist/dts/tab-panel/tab-panel.template.d.ts +4 -1
  81. package/dist/dts/tabs/tabs.d.ts +89 -4
  82. package/dist/dts/tabs/tabs.options.d.ts +21 -3
  83. package/dist/dts/tabs/tabs.template.d.ts +5 -1
  84. package/dist/dts/text/text.options.d.ts +1 -1
  85. package/dist/dts/text-input/index.d.ts +0 -1
  86. package/dist/dts/text-input/text-field.form-associated.d.ts +14 -0
  87. package/dist/dts/text-input/text-input.d.ts +134 -6
  88. package/dist/dts/text-input/text-input.options.d.ts +32 -1
  89. package/dist/dts/text-input/text-input.template.d.ts +2 -1
  90. package/dist/dts/theme/design-tokens.d.ts +53 -1
  91. package/dist/dts/toggle-button/toggle-button.definition.d.ts +0 -2
  92. package/dist/dts/toggle-button/toggle-button.options.d.ts +2 -2
  93. package/dist/dts/utils/benchmark-dependencies/tokens.d.ts +1 -0
  94. package/dist/dts/utils/benchmark-wrapper.d.ts +2 -0
  95. package/dist/dts/utils/direction.d.ts +10 -0
  96. package/dist/dts/utils/index.d.ts +4 -0
  97. package/dist/dts/utils/template-helpers.d.ts +16 -0
  98. package/dist/dts/utils/typings.d.ts +6 -0
  99. package/dist/dts/utils/whitespace-filter.d.ts +12 -0
  100. package/dist/esm/accordion/accordion.definition.js +0 -4
  101. package/dist/esm/accordion/accordion.definition.js.map +1 -1
  102. package/dist/esm/accordion/accordion.js +216 -3
  103. package/dist/esm/accordion/accordion.js.map +1 -1
  104. package/dist/esm/accordion/accordion.options.js +9 -0
  105. package/dist/esm/accordion/accordion.options.js.map +1 -0
  106. package/dist/esm/accordion/accordion.template.js +11 -1
  107. package/dist/esm/accordion/accordion.template.js.map +1 -1
  108. package/dist/esm/accordion-item/accordion-item.definition.js +0 -3
  109. package/dist/esm/accordion-item/accordion-item.definition.js.map +1 -1
  110. package/dist/esm/accordion-item/accordion-item.js +80 -4
  111. package/dist/esm/accordion-item/accordion-item.js.map +1 -1
  112. package/dist/esm/accordion-item/accordion-item.template.js +47 -2
  113. package/dist/esm/accordion-item/accordion-item.template.js.map +1 -1
  114. package/dist/esm/anchor-button/anchor-button.definition.js +0 -3
  115. package/dist/esm/anchor-button/anchor-button.definition.js.map +1 -1
  116. package/dist/esm/anchor-button/anchor-button.js +52 -4
  117. package/dist/esm/anchor-button/anchor-button.js.map +1 -1
  118. package/dist/esm/anchor-button/anchor-button.options.js +11 -0
  119. package/dist/esm/anchor-button/anchor-button.options.js.map +1 -1
  120. package/dist/esm/anchor-button/anchor-button.template.js +49 -1
  121. package/dist/esm/anchor-button/anchor-button.template.js.map +1 -1
  122. package/dist/esm/badge/badge.definition.js +0 -3
  123. package/dist/esm/badge/badge.definition.js.map +1 -1
  124. package/dist/esm/badge/badge.js +1 -1
  125. package/dist/esm/badge/badge.js.map +1 -1
  126. package/dist/esm/badge/badge.template.js +2 -2
  127. package/dist/esm/badge/badge.template.js.map +1 -1
  128. package/dist/esm/button/button.definition.js +0 -3
  129. package/dist/esm/button/button.definition.js.map +1 -1
  130. package/dist/esm/button/button.form-associated.js +14 -0
  131. package/dist/esm/button/button.form-associated.js.map +1 -0
  132. package/dist/esm/button/button.js +124 -4
  133. package/dist/esm/button/button.js.map +1 -1
  134. package/dist/esm/button/button.options.js +10 -0
  135. package/dist/esm/button/button.options.js.map +1 -1
  136. package/dist/esm/button/button.template.js +49 -1
  137. package/dist/esm/button/button.template.js.map +1 -1
  138. package/dist/esm/checkbox/checkbox.form-associated.js +14 -0
  139. package/dist/esm/checkbox/checkbox.form-associated.js.map +1 -0
  140. package/dist/esm/checkbox/checkbox.js +62 -4
  141. package/dist/esm/checkbox/checkbox.js.map +1 -1
  142. package/dist/esm/checkbox/checkbox.template.js +35 -7
  143. package/dist/esm/checkbox/checkbox.template.js.map +1 -1
  144. package/dist/esm/compound-button/compound-button.definition.js +0 -3
  145. package/dist/esm/compound-button/compound-button.definition.js.map +1 -1
  146. package/dist/esm/compound-button/compound-button.options.js.map +1 -1
  147. package/dist/esm/compound-button/compound-button.template.js +1 -1
  148. package/dist/esm/compound-button/compound-button.template.js.map +1 -1
  149. package/dist/esm/counter-badge/counter-badge.definition.js +0 -4
  150. package/dist/esm/counter-badge/counter-badge.definition.js.map +1 -1
  151. package/dist/esm/counter-badge/counter-badge.js +1 -1
  152. package/dist/esm/counter-badge/counter-badge.js.map +1 -1
  153. package/dist/esm/divider/divider.js +29 -4
  154. package/dist/esm/divider/divider.js.map +1 -1
  155. package/dist/esm/divider/divider.options.js +14 -5
  156. package/dist/esm/divider/divider.options.js.map +1 -1
  157. package/dist/esm/divider/divider.template.js +12 -1
  158. package/dist/esm/divider/divider.template.js.map +1 -1
  159. package/dist/esm/form-associated/form-associated.js +458 -0
  160. package/dist/esm/form-associated/form-associated.js.map +1 -0
  161. package/dist/esm/menu-button/menu-button.definition.js +0 -3
  162. package/dist/esm/menu-button/menu-button.definition.js.map +1 -1
  163. package/dist/esm/menu-button/menu-button.options.js.map +1 -1
  164. package/dist/esm/menu-button/menu-button.template.js +1 -1
  165. package/dist/esm/menu-button/menu-button.template.js.map +1 -1
  166. package/dist/esm/menu-item/menu-item.definition.js +0 -4
  167. package/dist/esm/menu-item/menu-item.definition.js.map +1 -1
  168. package/dist/esm/menu-item/menu-item.js +270 -4
  169. package/dist/esm/menu-item/menu-item.js.map +1 -1
  170. package/dist/esm/menu-item/menu-item.options.js +27 -0
  171. package/dist/esm/menu-item/menu-item.options.js.map +1 -0
  172. package/dist/esm/menu-item/menu-item.template.js +57 -2
  173. package/dist/esm/menu-item/menu-item.template.js.map +1 -1
  174. package/dist/esm/menu-list/menu-list.definition.js +0 -4
  175. package/dist/esm/menu-list/menu-list.definition.js.map +1 -1
  176. package/dist/esm/menu-list/menu-list.js +265 -10
  177. package/dist/esm/menu-list/menu-list.js.map +1 -1
  178. package/dist/esm/menu-list/menu-list.template.js +13 -1
  179. package/dist/esm/menu-list/menu-list.template.js.map +1 -1
  180. package/dist/esm/patterns/aria-globals.js +77 -0
  181. package/dist/esm/patterns/aria-globals.js.map +1 -0
  182. package/dist/esm/patterns/index.js +3 -0
  183. package/dist/esm/patterns/index.js.map +1 -0
  184. package/dist/esm/patterns/start-end.js +29 -0
  185. package/dist/esm/patterns/start-end.js.map +1 -0
  186. package/dist/esm/progress-bar/base-progress.js +61 -0
  187. package/dist/esm/progress-bar/base-progress.js.map +1 -0
  188. package/dist/esm/progress-bar/progress-bar.js +10 -3
  189. package/dist/esm/progress-bar/progress-bar.js.map +1 -1
  190. package/dist/esm/progress-bar/progress-bar.options.js.map +1 -1
  191. package/dist/esm/progress-bar/progress-bar.template.js +25 -1
  192. package/dist/esm/progress-bar/progress-bar.template.js.map +1 -1
  193. package/dist/esm/progress-ring/progress-ring.js +16 -0
  194. package/dist/esm/progress-ring/progress-ring.js.map +1 -0
  195. package/dist/esm/progress-ring/progress-ring.options.js +2 -0
  196. package/dist/esm/progress-ring/progress-ring.options.js.map +1 -0
  197. package/dist/esm/radio/radio.form-associated.js +14 -0
  198. package/dist/esm/radio/radio.form-associated.js.map +1 -0
  199. package/dist/esm/radio/radio.js +96 -3
  200. package/dist/esm/radio/radio.js.map +1 -1
  201. package/dist/esm/radio/radio.template.js +28 -2
  202. package/dist/esm/radio/radio.template.js.map +1 -1
  203. package/dist/esm/radio-group/index.js +0 -1
  204. package/dist/esm/radio-group/index.js.map +1 -1
  205. package/dist/esm/radio-group/radio-group.js +346 -3
  206. package/dist/esm/radio-group/radio-group.js.map +1 -1
  207. package/dist/esm/radio-group/radio-group.options.js +7 -0
  208. package/dist/esm/radio-group/radio-group.options.js.map +1 -0
  209. package/dist/esm/radio-group/radio-group.template.js +30 -1
  210. package/dist/esm/radio-group/radio-group.template.js.map +1 -1
  211. package/dist/esm/slider/slider-utilities.js +12 -0
  212. package/dist/esm/slider/slider-utilities.js.map +1 -0
  213. package/dist/esm/slider/slider.form-associated.js +14 -0
  214. package/dist/esm/slider/slider.form-associated.js.map +1 -0
  215. package/dist/esm/slider/slider.js +432 -16
  216. package/dist/esm/slider/slider.js.map +1 -1
  217. package/dist/esm/slider/slider.options.js +11 -1
  218. package/dist/esm/slider/slider.options.js.map +1 -1
  219. package/dist/esm/slider/slider.template.js +38 -1
  220. package/dist/esm/slider/slider.template.js.map +1 -1
  221. package/dist/esm/spinner/spinner.definition.js +0 -4
  222. package/dist/esm/spinner/spinner.definition.js.map +1 -1
  223. package/dist/esm/spinner/spinner.js +2 -2
  224. package/dist/esm/spinner/spinner.js.map +1 -1
  225. package/dist/esm/spinner/spinner.template.js +27 -1
  226. package/dist/esm/spinner/spinner.template.js.map +1 -1
  227. package/dist/esm/switch/switch.form-associated.js +14 -0
  228. package/dist/esm/switch/switch.form-associated.js.map +1 -0
  229. package/dist/esm/switch/switch.js +48 -3
  230. package/dist/esm/switch/switch.js.map +1 -1
  231. package/dist/esm/switch/switch.template.js +25 -1
  232. package/dist/esm/switch/switch.template.js.map +1 -1
  233. package/dist/esm/tab/tab.js +14 -3
  234. package/dist/esm/tab/tab.js.map +1 -1
  235. package/dist/esm/tab/tab.template.js +1 -1
  236. package/dist/esm/tab/tab.template.js.map +1 -1
  237. package/dist/esm/tab-panel/tab-panel.js +2 -2
  238. package/dist/esm/tab-panel/tab-panel.js.map +1 -1
  239. package/dist/esm/tab-panel/tab-panel.template.js +8 -1
  240. package/dist/esm/tab-panel/tab-panel.template.js.map +1 -1
  241. package/dist/esm/tabs/tabs.js +278 -5
  242. package/dist/esm/tabs/tabs.js.map +1 -1
  243. package/dist/esm/tabs/tabs.options.js +6 -2
  244. package/dist/esm/tabs/tabs.options.js.map +1 -1
  245. package/dist/esm/tabs/tabs.template.js +14 -1
  246. package/dist/esm/tabs/tabs.template.js.map +1 -1
  247. package/dist/esm/text-input/index.js +0 -1
  248. package/dist/esm/text-input/index.js.map +1 -1
  249. package/dist/esm/text-input/text-field.form-associated.js +14 -0
  250. package/dist/esm/text-input/text-field.form-associated.js.map +1 -0
  251. package/dist/esm/text-input/text-input.js +167 -7
  252. package/dist/esm/text-input/text-input.js.map +1 -1
  253. package/dist/esm/text-input/text-input.options.js +26 -0
  254. package/dist/esm/text-input/text-input.options.js.map +1 -1
  255. package/dist/esm/text-input/text-input.template.js +64 -1
  256. package/dist/esm/text-input/text-input.template.js.map +1 -1
  257. package/dist/esm/theme/design-tokens.js +53 -1
  258. package/dist/esm/theme/design-tokens.js.map +1 -1
  259. package/dist/esm/toggle-button/toggle-button.definition.js +0 -2
  260. package/dist/esm/toggle-button/toggle-button.definition.js.map +1 -1
  261. package/dist/esm/toggle-button/toggle-button.options.js.map +1 -1
  262. package/dist/esm/toggle-button/toggle-button.template.js +1 -1
  263. package/dist/esm/toggle-button/toggle-button.template.js.map +1 -1
  264. package/dist/esm/utils/benchmark-dependencies/tokens.js +2 -0
  265. package/dist/esm/utils/benchmark-dependencies/tokens.js.map +1 -0
  266. package/dist/esm/utils/benchmark-wrapper.js +18 -0
  267. package/dist/esm/utils/benchmark-wrapper.js.map +1 -0
  268. package/dist/esm/utils/direction.js +15 -0
  269. package/dist/esm/utils/direction.js.map +1 -0
  270. package/dist/esm/utils/index.js +5 -0
  271. package/dist/esm/utils/index.js.map +1 -0
  272. package/dist/esm/utils/template-helpers.js +19 -0
  273. package/dist/esm/utils/template-helpers.js.map +1 -0
  274. package/dist/esm/utils/typings.js +3 -0
  275. package/dist/esm/utils/typings.js.map +1 -0
  276. package/dist/esm/utils/whitespace-filter.js +13 -0
  277. package/dist/esm/utils/whitespace-filter.js.map +1 -0
  278. package/dist/fluent-web-components.api.json +9315 -3940
  279. package/dist/storybook/284.0946b1fb.iframe.bundle.js +2 -0
  280. package/dist/storybook/iframe.html +1 -1
  281. package/dist/storybook/main.59da076f.iframe.bundle.js +2 -0
  282. package/dist/storybook/project.json +1 -1
  283. package/dist/web-components.d.ts +2194 -241
  284. package/dist/web-components.js +2069 -3196
  285. package/dist/web-components.min.js +123 -123
  286. package/docs/api-report.md +600 -90
  287. package/package.json +5 -2
  288. package/tensile.config.js +24 -0
  289. package/dist/storybook/350.e4be85c2.iframe.bundle.js +0 -462
  290. package/dist/storybook/350.e4be85c2.iframe.bundle.js.map +0 -1
  291. package/dist/storybook/main.b095c2e8.iframe.bundle.js +0 -2
  292. /package/dist/storybook/{350.e4be85c2.iframe.bundle.js.LICENSE.txt → 284.0946b1fb.iframe.bundle.js.LICENSE.txt} +0 -0
  293. /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 Fri, 09 Feb 2024 04:08:36 GMT and should not be manually modified.
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:36 GMT
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 { FASTAccordion } from '@microsoft/fast-foundation/accordion.js';
1
+ import { FASTElement } from '@microsoft/fast-element';
2
+ import { AccordionExpandMode } from './accordion.options.js';
2
3
  /**
3
- * The base class used for constructing a fluent-accordion custom element
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 FASTAccordion {
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 { FASTAccordionItem } from '@microsoft/fast-foundation/accordion-item.js';
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
- * @internal
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 FASTAccordionItem {
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,8 +1,5 @@
1
1
  import { AccordionItem } from './accordion-item.js';
2
2
  /**
3
- * The Fluent AccordionItem Element. Implements {@link @microsoft/fast-foundation#AccordionItem },
4
- * {@link @microsoft/fast-foundation#accordionItemTemplate}
5
- *
6
3
  *
7
4
  * @public
8
5
  * @remarks
@@ -1,4 +1,4 @@
1
- import type { ValuesOf } from '@microsoft/fast-foundation/utilities.js';
1
+ import type { ValuesOf } from '../utils/index.js';
2
2
  /**
3
3
  * An Accordion Item header font size can be small, medium, large, and extra-large
4
4
  */
@@ -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 { FASTAnchor } from '@microsoft/fast-foundation/anchor.js';
2
- import { AnchorButtonAppearance, AnchorButtonShape, AnchorButtonSize } from './anchor-button.options.js';
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
- * The base class used for constructing a fluent-anchor-button custom element
6
+ * Anchor configuration options
5
7
  * @public
6
8
  */
7
- export declare class AnchorButton extends FASTAnchor {
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 { AnchorOptions } from '@microsoft/fast-foundation/anchor.js';
2
- import type { ValuesOf } from '@microsoft/fast-foundation/utilities.js';
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,4 +1,4 @@
1
- import type { ValuesOf } from '@microsoft/fast-foundation/utilities.js';
1
+ import type { ValuesOf } from '../utils/index.js';
2
2
  /**
3
3
  * The Avatar "active" state
4
4
  */
@@ -1,5 +1,5 @@
1
1
  import { FASTElement } from '@microsoft/fast-element';
2
- import { StartEnd } from '@microsoft/fast-foundation/patterns.js';
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,8 +1,5 @@
1
1
  import { Badge } from './badge.js';
2
2
  /**
3
- * The Fluent Badge Element. Implements {@link @microsoft/fast-foundation#Badge },
4
- * {@link @microsoft/fast-foundation#badgeTemplate}
5
- *
6
3
  *
7
4
  * @public
8
5
  * @remarks
@@ -1,5 +1,5 @@
1
- import { StartEndOptions } from '@microsoft/fast-foundation/patterns.js';
2
- import type { StaticallyComposableHTML, ValuesOf } from '@microsoft/fast-foundation/utilities.js';
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 { FASTButton } from '@microsoft/fast-foundation/button.js';
2
- import { ButtonAppearance, ButtonShape, ButtonSize } from './button.options.js';
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
- * The base class used for constructing a fluent-button custom element
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 FASTButton {
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
  }
@@ -1,8 +1,5 @@
1
1
  import { Button } from './button.js';
2
2
  /**
3
- * The Fluent Button Element. Implements {@link @microsoft/fast-foundation#Button },
4
- * {@link @microsoft/fast-foundation#buttonTemplate}
5
- *
6
3
  * @public
7
4
  * @remarks
8
5
  * HTML Element: \<fluent-button\>
@@ -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 {};