@fluentui/web-components 3.0.0-beta.7 → 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.
Files changed (283) hide show
  1. package/CHANGELOG.md +11 -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/toggle-button/toggle-button.definition.d.ts +0 -2
  91. package/dist/dts/toggle-button/toggle-button.options.d.ts +2 -2
  92. package/dist/dts/utils/direction.d.ts +10 -0
  93. package/dist/dts/utils/index.d.ts +4 -0
  94. package/dist/dts/utils/template-helpers.d.ts +16 -0
  95. package/dist/dts/utils/typings.d.ts +6 -0
  96. package/dist/dts/utils/whitespace-filter.d.ts +12 -0
  97. package/dist/esm/accordion/accordion.definition.js +0 -4
  98. package/dist/esm/accordion/accordion.definition.js.map +1 -1
  99. package/dist/esm/accordion/accordion.js +216 -3
  100. package/dist/esm/accordion/accordion.js.map +1 -1
  101. package/dist/esm/accordion/accordion.options.js +9 -0
  102. package/dist/esm/accordion/accordion.options.js.map +1 -0
  103. package/dist/esm/accordion/accordion.template.js +11 -1
  104. package/dist/esm/accordion/accordion.template.js.map +1 -1
  105. package/dist/esm/accordion-item/accordion-item.definition.js +0 -3
  106. package/dist/esm/accordion-item/accordion-item.definition.js.map +1 -1
  107. package/dist/esm/accordion-item/accordion-item.js +80 -4
  108. package/dist/esm/accordion-item/accordion-item.js.map +1 -1
  109. package/dist/esm/accordion-item/accordion-item.template.js +47 -2
  110. package/dist/esm/accordion-item/accordion-item.template.js.map +1 -1
  111. package/dist/esm/anchor-button/anchor-button.definition.js +0 -3
  112. package/dist/esm/anchor-button/anchor-button.definition.js.map +1 -1
  113. package/dist/esm/anchor-button/anchor-button.js +52 -4
  114. package/dist/esm/anchor-button/anchor-button.js.map +1 -1
  115. package/dist/esm/anchor-button/anchor-button.options.js +11 -0
  116. package/dist/esm/anchor-button/anchor-button.options.js.map +1 -1
  117. package/dist/esm/anchor-button/anchor-button.template.js +49 -1
  118. package/dist/esm/anchor-button/anchor-button.template.js.map +1 -1
  119. package/dist/esm/badge/badge.definition.js +0 -3
  120. package/dist/esm/badge/badge.definition.js.map +1 -1
  121. package/dist/esm/badge/badge.js +1 -1
  122. package/dist/esm/badge/badge.js.map +1 -1
  123. package/dist/esm/badge/badge.template.js +2 -2
  124. package/dist/esm/badge/badge.template.js.map +1 -1
  125. package/dist/esm/button/button.definition.js +0 -3
  126. package/dist/esm/button/button.definition.js.map +1 -1
  127. package/dist/esm/button/button.form-associated.js +14 -0
  128. package/dist/esm/button/button.form-associated.js.map +1 -0
  129. package/dist/esm/button/button.js +124 -4
  130. package/dist/esm/button/button.js.map +1 -1
  131. package/dist/esm/button/button.options.js +10 -0
  132. package/dist/esm/button/button.options.js.map +1 -1
  133. package/dist/esm/button/button.template.js +49 -1
  134. package/dist/esm/button/button.template.js.map +1 -1
  135. package/dist/esm/checkbox/checkbox.form-associated.js +14 -0
  136. package/dist/esm/checkbox/checkbox.form-associated.js.map +1 -0
  137. package/dist/esm/checkbox/checkbox.js +62 -4
  138. package/dist/esm/checkbox/checkbox.js.map +1 -1
  139. package/dist/esm/checkbox/checkbox.template.js +35 -7
  140. package/dist/esm/checkbox/checkbox.template.js.map +1 -1
  141. package/dist/esm/compound-button/compound-button.definition.js +0 -3
  142. package/dist/esm/compound-button/compound-button.definition.js.map +1 -1
  143. package/dist/esm/compound-button/compound-button.options.js.map +1 -1
  144. package/dist/esm/compound-button/compound-button.template.js +1 -1
  145. package/dist/esm/compound-button/compound-button.template.js.map +1 -1
  146. package/dist/esm/counter-badge/counter-badge.definition.js +0 -4
  147. package/dist/esm/counter-badge/counter-badge.definition.js.map +1 -1
  148. package/dist/esm/counter-badge/counter-badge.js +1 -1
  149. package/dist/esm/counter-badge/counter-badge.js.map +1 -1
  150. package/dist/esm/divider/divider.js +29 -4
  151. package/dist/esm/divider/divider.js.map +1 -1
  152. package/dist/esm/divider/divider.options.js +14 -5
  153. package/dist/esm/divider/divider.options.js.map +1 -1
  154. package/dist/esm/divider/divider.template.js +12 -1
  155. package/dist/esm/divider/divider.template.js.map +1 -1
  156. package/dist/esm/form-associated/form-associated.js +458 -0
  157. package/dist/esm/form-associated/form-associated.js.map +1 -0
  158. package/dist/esm/menu-button/menu-button.definition.js +0 -3
  159. package/dist/esm/menu-button/menu-button.definition.js.map +1 -1
  160. package/dist/esm/menu-button/menu-button.options.js.map +1 -1
  161. package/dist/esm/menu-button/menu-button.template.js +1 -1
  162. package/dist/esm/menu-button/menu-button.template.js.map +1 -1
  163. package/dist/esm/menu-item/menu-item.definition.js +0 -4
  164. package/dist/esm/menu-item/menu-item.definition.js.map +1 -1
  165. package/dist/esm/menu-item/menu-item.js +270 -4
  166. package/dist/esm/menu-item/menu-item.js.map +1 -1
  167. package/dist/esm/menu-item/menu-item.options.js +27 -0
  168. package/dist/esm/menu-item/menu-item.options.js.map +1 -0
  169. package/dist/esm/menu-item/menu-item.template.js +57 -2
  170. package/dist/esm/menu-item/menu-item.template.js.map +1 -1
  171. package/dist/esm/menu-list/menu-list.definition.js +0 -4
  172. package/dist/esm/menu-list/menu-list.definition.js.map +1 -1
  173. package/dist/esm/menu-list/menu-list.js +265 -10
  174. package/dist/esm/menu-list/menu-list.js.map +1 -1
  175. package/dist/esm/menu-list/menu-list.template.js +13 -1
  176. package/dist/esm/menu-list/menu-list.template.js.map +1 -1
  177. package/dist/esm/patterns/aria-globals.js +77 -0
  178. package/dist/esm/patterns/aria-globals.js.map +1 -0
  179. package/dist/esm/patterns/index.js +3 -0
  180. package/dist/esm/patterns/index.js.map +1 -0
  181. package/dist/esm/patterns/start-end.js +29 -0
  182. package/dist/esm/patterns/start-end.js.map +1 -0
  183. package/dist/esm/progress-bar/base-progress.js +61 -0
  184. package/dist/esm/progress-bar/base-progress.js.map +1 -0
  185. package/dist/esm/progress-bar/progress-bar.js +10 -3
  186. package/dist/esm/progress-bar/progress-bar.js.map +1 -1
  187. package/dist/esm/progress-bar/progress-bar.options.js.map +1 -1
  188. package/dist/esm/progress-bar/progress-bar.template.js +25 -1
  189. package/dist/esm/progress-bar/progress-bar.template.js.map +1 -1
  190. package/dist/esm/progress-ring/progress-ring.js +16 -0
  191. package/dist/esm/progress-ring/progress-ring.js.map +1 -0
  192. package/dist/esm/progress-ring/progress-ring.options.js +2 -0
  193. package/dist/esm/progress-ring/progress-ring.options.js.map +1 -0
  194. package/dist/esm/radio/radio.form-associated.js +14 -0
  195. package/dist/esm/radio/radio.form-associated.js.map +1 -0
  196. package/dist/esm/radio/radio.js +96 -3
  197. package/dist/esm/radio/radio.js.map +1 -1
  198. package/dist/esm/radio/radio.template.js +28 -2
  199. package/dist/esm/radio/radio.template.js.map +1 -1
  200. package/dist/esm/radio-group/index.js +0 -1
  201. package/dist/esm/radio-group/index.js.map +1 -1
  202. package/dist/esm/radio-group/radio-group.js +346 -3
  203. package/dist/esm/radio-group/radio-group.js.map +1 -1
  204. package/dist/esm/radio-group/radio-group.options.js +7 -0
  205. package/dist/esm/radio-group/radio-group.options.js.map +1 -0
  206. package/dist/esm/radio-group/radio-group.template.js +30 -1
  207. package/dist/esm/radio-group/radio-group.template.js.map +1 -1
  208. package/dist/esm/slider/slider-utilities.js +12 -0
  209. package/dist/esm/slider/slider-utilities.js.map +1 -0
  210. package/dist/esm/slider/slider.form-associated.js +14 -0
  211. package/dist/esm/slider/slider.form-associated.js.map +1 -0
  212. package/dist/esm/slider/slider.js +432 -16
  213. package/dist/esm/slider/slider.js.map +1 -1
  214. package/dist/esm/slider/slider.options.js +11 -1
  215. package/dist/esm/slider/slider.options.js.map +1 -1
  216. package/dist/esm/slider/slider.template.js +38 -1
  217. package/dist/esm/slider/slider.template.js.map +1 -1
  218. package/dist/esm/spinner/spinner.definition.js +0 -4
  219. package/dist/esm/spinner/spinner.definition.js.map +1 -1
  220. package/dist/esm/spinner/spinner.js +2 -2
  221. package/dist/esm/spinner/spinner.js.map +1 -1
  222. package/dist/esm/spinner/spinner.template.js +27 -1
  223. package/dist/esm/spinner/spinner.template.js.map +1 -1
  224. package/dist/esm/switch/switch.form-associated.js +14 -0
  225. package/dist/esm/switch/switch.form-associated.js.map +1 -0
  226. package/dist/esm/switch/switch.js +48 -3
  227. package/dist/esm/switch/switch.js.map +1 -1
  228. package/dist/esm/switch/switch.template.js +25 -1
  229. package/dist/esm/switch/switch.template.js.map +1 -1
  230. package/dist/esm/tab/tab.js +14 -3
  231. package/dist/esm/tab/tab.js.map +1 -1
  232. package/dist/esm/tab/tab.template.js +1 -1
  233. package/dist/esm/tab/tab.template.js.map +1 -1
  234. package/dist/esm/tab-panel/tab-panel.js +2 -2
  235. package/dist/esm/tab-panel/tab-panel.js.map +1 -1
  236. package/dist/esm/tab-panel/tab-panel.template.js +8 -1
  237. package/dist/esm/tab-panel/tab-panel.template.js.map +1 -1
  238. package/dist/esm/tabs/tabs.js +278 -5
  239. package/dist/esm/tabs/tabs.js.map +1 -1
  240. package/dist/esm/tabs/tabs.options.js +6 -2
  241. package/dist/esm/tabs/tabs.options.js.map +1 -1
  242. package/dist/esm/tabs/tabs.template.js +14 -1
  243. package/dist/esm/tabs/tabs.template.js.map +1 -1
  244. package/dist/esm/text-input/index.js +0 -1
  245. package/dist/esm/text-input/index.js.map +1 -1
  246. package/dist/esm/text-input/text-field.form-associated.js +14 -0
  247. package/dist/esm/text-input/text-field.form-associated.js.map +1 -0
  248. package/dist/esm/text-input/text-input.js +167 -7
  249. package/dist/esm/text-input/text-input.js.map +1 -1
  250. package/dist/esm/text-input/text-input.options.js +26 -0
  251. package/dist/esm/text-input/text-input.options.js.map +1 -1
  252. package/dist/esm/text-input/text-input.template.js +64 -1
  253. package/dist/esm/text-input/text-input.template.js.map +1 -1
  254. package/dist/esm/toggle-button/toggle-button.definition.js +0 -2
  255. package/dist/esm/toggle-button/toggle-button.definition.js.map +1 -1
  256. package/dist/esm/toggle-button/toggle-button.options.js.map +1 -1
  257. package/dist/esm/toggle-button/toggle-button.template.js +1 -1
  258. package/dist/esm/toggle-button/toggle-button.template.js.map +1 -1
  259. package/dist/esm/utils/direction.js +15 -0
  260. package/dist/esm/utils/direction.js.map +1 -0
  261. package/dist/esm/utils/index.js +5 -0
  262. package/dist/esm/utils/index.js.map +1 -0
  263. package/dist/esm/utils/template-helpers.js +19 -0
  264. package/dist/esm/utils/template-helpers.js.map +1 -0
  265. package/dist/esm/utils/typings.js +3 -0
  266. package/dist/esm/utils/typings.js.map +1 -0
  267. package/dist/esm/utils/whitespace-filter.js +13 -0
  268. package/dist/esm/utils/whitespace-filter.js.map +1 -0
  269. package/dist/fluent-web-components.api.json +9315 -3940
  270. package/dist/storybook/711.b5d63aa3.iframe.bundle.js +2 -0
  271. package/dist/storybook/iframe.html +1 -1
  272. package/dist/storybook/main.588112e6.iframe.bundle.js +2 -0
  273. package/dist/storybook/project.json +1 -1
  274. package/dist/web-components.d.ts +2194 -241
  275. package/dist/web-components.js +1964 -3195
  276. package/dist/web-components.min.js +123 -123
  277. package/docs/api-report.md +600 -90
  278. package/package.json +1 -1
  279. package/dist/storybook/350.e4be85c2.iframe.bundle.js +0 -462
  280. package/dist/storybook/350.e4be85c2.iframe.bundle.js.map +0 -1
  281. package/dist/storybook/main.b095c2e8.iframe.bundle.js +0 -2
  282. /package/dist/storybook/{350.e4be85c2.iframe.bundle.js.LICENSE.txt → 711.b5d63aa3.iframe.bundle.js.LICENSE.txt} +0 -0
  283. /package/dist/storybook/{main.b095c2e8.iframe.bundle.js.LICENSE.txt → main.588112e6.iframe.bundle.js.LICENSE.txt} +0 -0
@@ -1,12 +1,95 @@
1
- import { FASTTabs } from '@microsoft/fast-foundation/tabs.js';
2
- import { TabsAppearance, TabsSize } from './tabs.options.js';
1
+ import { FASTElement } from '@microsoft/fast-element';
2
+ import { StartEnd } from '../patterns/index.js';
3
+ import { TabsAppearance, TabsOrientation, TabsSize } from './tabs.options.js';
3
4
  /**
4
- * TabList extends FASTTabs and is used for constructing a fluent-tab-list custom html element.
5
5
  *
6
6
  * @class TabList component
7
7
  * @public
8
8
  */
9
- export declare class Tabs extends FASTTabs {
9
+ export declare class BaseTabs extends FASTElement {
10
+ /**
11
+ * The orientation
12
+ * @public
13
+ * @remarks
14
+ * HTML Attribute: orientation
15
+ */
16
+ orientation: TabsOrientation;
17
+ /**
18
+ * @internal
19
+ */
20
+ orientationChanged(): void;
21
+ /**
22
+ * The id of the active tab
23
+ *
24
+ * @public
25
+ * @remarks
26
+ * HTML Attribute: activeid
27
+ */
28
+ activeid: string;
29
+ /**
30
+ * @internal
31
+ */
32
+ activeidChanged(oldValue: string, newValue: string): void;
33
+ /**
34
+ * @internal
35
+ */
36
+ tabs: HTMLElement[];
37
+ /**
38
+ * @internal
39
+ */
40
+ tabsChanged(): void;
41
+ /**
42
+ * @internal
43
+ */
44
+ tabpanels: HTMLElement[];
45
+ /**
46
+ * @internal
47
+ */
48
+ tabpanelsChanged(): void;
49
+ /**
50
+ * A reference to the active tab
51
+ * @public
52
+ */
53
+ activetab: HTMLElement;
54
+ private prevActiveTabIndex;
55
+ private activeTabIndex;
56
+ private tabIds;
57
+ private tabpanelIds;
58
+ private change;
59
+ private isDisabledElement;
60
+ private isHiddenElement;
61
+ private isFocusableElement;
62
+ private getActiveIndex;
63
+ /**
64
+ * Function that is invoked whenever the selected tab or the tab collection changes.
65
+ *
66
+ * @public
67
+ */
68
+ protected setTabs(): void;
69
+ private setTabPanels;
70
+ private getTabIds;
71
+ private getTabPanelIds;
72
+ private setComponent;
73
+ private handleTabClick;
74
+ private isHorizontal;
75
+ private handleTabKeyDown;
76
+ /**
77
+ * The adjust method for FASTTabs
78
+ * @public
79
+ * @remarks
80
+ * This method allows the active index to be adjusted by numerical increments
81
+ */
82
+ adjust(adjustment: number): void;
83
+ private adjustForward;
84
+ private adjustBackward;
85
+ private moveToTabByIndex;
86
+ private focusTab;
87
+ /**
88
+ * @internal
89
+ */
90
+ connectedCallback(): void;
91
+ }
92
+ export declare class Tabs extends BaseTabs {
10
93
  /**
11
94
  * activeTabData
12
95
  * The positional coordinates and size dimensions of the active tab. Used for calculating the offset and scale of the tab active indicator.
@@ -86,3 +169,5 @@ export declare class Tabs extends FASTTabs {
86
169
  activeidChanged(oldValue: string, newValue: string): void;
87
170
  tabsChanged(): void;
88
171
  }
172
+ export interface Tabs extends StartEnd {
173
+ }
@@ -1,5 +1,6 @@
1
- import type { ValuesOf } from '@microsoft/fast-foundation/utilities.js';
2
- import { TabsOrientation } from '@microsoft/fast-foundation/tabs.js';
1
+ import { StartEndOptions } from '../patterns/index.js';
2
+ import type { ValuesOf } from '../utils/index.js';
3
+ import { Tabs } from './tabs.js';
3
4
  export declare const TabsAppearance: {
4
5
  readonly subtle: "subtle";
5
6
  readonly transparent: "transparent";
@@ -11,4 +12,21 @@ export declare const TabsSize: {
11
12
  readonly large: "large";
12
13
  };
13
14
  export declare type TabsSize = ValuesOf<typeof TabsSize>;
14
- export { TabsOrientation };
15
+ /**
16
+ * Tabs option configuration options
17
+ * @public
18
+ */
19
+ export declare type TabsOptions = StartEndOptions<Tabs>;
20
+ /**
21
+ * The orientation of the component
22
+ * @public
23
+ */
24
+ export declare const TabsOrientation: {
25
+ readonly horizontal: "horizontal";
26
+ readonly vertical: "vertical";
27
+ };
28
+ /**
29
+ * The types for the Tabs component
30
+ * @public
31
+ */
32
+ export declare type TabsOrientation = ValuesOf<typeof TabsOrientation>;
@@ -1 +1,5 @@
1
- export declare const template: import("@microsoft/fast-element").ElementViewTemplate<import("@microsoft/fast-foundation/tabs.js").FASTTabs, any>;
1
+ import { ElementViewTemplate } from '@microsoft/fast-element';
2
+ import { Tabs } from './tabs.js';
3
+ import { TabsOptions } from './tabs.options.js';
4
+ export declare function tabsTemplate<T extends Tabs>(options?: TabsOptions): ElementViewTemplate<T>;
5
+ export declare const template: ElementViewTemplate<Tabs, any>;
@@ -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
  * TextSize constants
4
4
  * @public
@@ -3,4 +3,3 @@ export * from './text-input.options.js';
3
3
  export { template as TextInputTemplate } from './text-input.template.js';
4
4
  export { styles as TextInputStyles } from './text-input.styles.js';
5
5
  export { definition as TextInputDefinition } from './text-input.definition.js';
6
- export { TextFieldType as TextInputType } from '@microsoft/fast-foundation/text-field.js';
@@ -0,0 +1,14 @@
1
+ import { FASTElement } from '@microsoft/fast-element';
2
+ import { FormAssociated } from '../form-associated/form-associated.js';
3
+ declare class _TextField extends FASTElement {
4
+ }
5
+ interface _TextField extends FormAssociated {
6
+ }
7
+ declare const FormAssociatedTextField_base: typeof _TextField;
8
+ /**
9
+ * @beta
10
+ */
11
+ export declare class FormAssociatedTextField extends FormAssociatedTextField_base {
12
+ proxy: HTMLInputElement;
13
+ }
14
+ export {};
@@ -1,10 +1,10 @@
1
- import { FASTTextField } from '@microsoft/fast-foundation/text-field.js';
1
+ import { ARIAGlobalStatesAndProperties, StartEnd, StartEndOptions } from '../patterns/index.js';
2
2
  import { TextInputAppearance, TextInputControlSize } from './text-input.options.js';
3
- /**
4
- * The base class used for constructing a fluent-text-input custom element
5
- * @public
6
- */
7
- export declare class TextInput extends FASTTextField {
3
+ import { TextFieldType } from './text-input.options.js';
4
+ import { FormAssociatedTextField } from './text-field.form-associated.js';
5
+ export { TextFieldType };
6
+ export declare type TextFieldOptions = StartEndOptions<TextInput>;
7
+ export declare class TextInput extends FormAssociatedTextField {
8
8
  /**
9
9
  * Defines TextInput control size
10
10
  *
@@ -23,4 +23,132 @@ export declare class TextInput extends FASTTextField {
23
23
  * HTML Attribute: appearance
24
24
  */
25
25
  appearance?: TextInputAppearance;
26
+ /**
27
+ * 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.
28
+ * @public
29
+ * @remarks
30
+ * HTML Attribute: readonly
31
+ */
32
+ readOnly: boolean;
33
+ protected readOnlyChanged(): void;
34
+ /**
35
+ * Indicates that this element should get focus after the page finishes loading. See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdefautofocus | autofocus HTML attribute} for more information.
36
+ * @public
37
+ * @remarks
38
+ * HTML Attribute: autofocus
39
+ */
40
+ autofocus: boolean;
41
+ protected autofocusChanged(): void;
42
+ /**
43
+ * Sets the placeholder value of the element, generally used to provide a hint to the user.
44
+ * @public
45
+ * @remarks
46
+ * HTML Attribute: placeholder
47
+ * Using this attribute does is not a valid substitute for a labeling element.
48
+ */
49
+ placeholder: string;
50
+ protected placeholderChanged(): void;
51
+ /**
52
+ * Allows setting a type or mode of text.
53
+ * @public
54
+ * @remarks
55
+ * HTML Attribute: type
56
+ */
57
+ type: TextFieldType;
58
+ private typeChanged;
59
+ /**
60
+ * Allows associating a {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/datalist | datalist} to the element by {@link https://developer.mozilla.org/en-US/docs/Web/API/Element/id}.
61
+ * @public
62
+ * @remarks
63
+ * HTML Attribute: list
64
+ */
65
+ list: string;
66
+ protected listChanged(): void;
67
+ /**
68
+ * The maximum number of characters a user can enter.
69
+ * @public
70
+ * @remarks
71
+ * HTMLAttribute: maxlength
72
+ */
73
+ maxlength: number;
74
+ protected maxlengthChanged(): void;
75
+ /**
76
+ * The minimum number of characters a user can enter.
77
+ * @public
78
+ * @remarks
79
+ * HTMLAttribute: minlength
80
+ */
81
+ minlength: number;
82
+ protected minlengthChanged(): void;
83
+ /**
84
+ * A regular expression that the value must match to pass validation.
85
+ * @public
86
+ * @remarks
87
+ * HTMLAttribute: pattern
88
+ */
89
+ pattern: string;
90
+ protected patternChanged(): void;
91
+ /**
92
+ * Sets the width of the element to a specified number of characters.
93
+ * @public
94
+ * @remarks
95
+ * HTMLAttribute: size
96
+ */
97
+ size: number;
98
+ protected sizeChanged(): void;
99
+ /**
100
+ * Controls whether or not to enable spell checking for the input field, or if the default spell checking configuration should be used.
101
+ * @public
102
+ * @remarks
103
+ * HTMLAttribute: size
104
+ */
105
+ spellcheck: boolean;
106
+ protected spellcheckChanged(): void;
107
+ /**
108
+ * @internal
109
+ */
110
+ defaultSlottedNodes: Node[];
111
+ /**
112
+ * A reference to the internal input element
113
+ * @internal
114
+ */
115
+ control: HTMLInputElement;
116
+ /**
117
+ * @internal
118
+ */
119
+ connectedCallback(): void;
120
+ /**
121
+ * Selects all the text in the text field
122
+ *
123
+ * @public
124
+ */
125
+ select(): void;
126
+ /**
127
+ * Handles the internal control's `input` event
128
+ * @internal
129
+ */
130
+ handleTextInput(): void;
131
+ /**
132
+ * Change event handler for inner control.
133
+ * @remarks
134
+ * "Change" events are not `composable` so they will not
135
+ * permeate the shadow DOM boundary. This fn effectively proxies
136
+ * the change event, emitting a `change` event whenever the internal
137
+ * control emits a `change` event
138
+ * @internal
139
+ */
140
+ handleChange(): void;
141
+ /** {@inheritDoc (FormAssociated:interface).validate} */
142
+ validate(): void;
143
+ }
144
+ /**
145
+ * Includes ARIA states and properties relating to the ARIA textbox role
146
+ *
147
+ * @public
148
+ */
149
+ export declare class DelegatesARIATextbox {
150
+ }
151
+ export interface DelegatesARIATextbox extends ARIAGlobalStatesAndProperties {
152
+ }
153
+ export interface TextInput extends StartEnd, DelegatesARIATextbox {
26
154
  }
@@ -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
  * TextInput size constants
4
4
  * @public
@@ -28,3 +28,34 @@ export declare const TextInputAppearance: {
28
28
  * @public
29
29
  */
30
30
  export declare type TextInputAppearance = ValuesOf<typeof TextInputAppearance>;
31
+ /**
32
+ * Text field sub-types
33
+ * @public
34
+ */
35
+ export declare const TextFieldType: {
36
+ /**
37
+ * An email TextField
38
+ */
39
+ readonly email: "email";
40
+ /**
41
+ * A password TextField
42
+ */
43
+ readonly password: "password";
44
+ /**
45
+ * A telephone TextField
46
+ */
47
+ readonly tel: "tel";
48
+ /**
49
+ * A text TextField
50
+ */
51
+ readonly text: "text";
52
+ /**
53
+ * A URL TextField
54
+ */
55
+ readonly url: "url";
56
+ };
57
+ /**
58
+ * Types for the text field sub-types
59
+ * @public
60
+ */
61
+ export declare type TextFieldType = ValuesOf<typeof TextFieldType>;
@@ -1,5 +1,6 @@
1
1
  import { ElementViewTemplate } from '@microsoft/fast-element';
2
- import type { TextInput } from './text-input.js';
2
+ import type { TextFieldOptions, TextInput } from './text-input.js';
3
+ export declare function textFieldTemplate<T extends TextInput>(options?: TextFieldOptions): ElementViewTemplate<T>;
3
4
  /**
4
5
  * @internal
5
6
  */
@@ -1,7 +1,5 @@
1
1
  import { ToggleButton } from './toggle-button.js';
2
2
  /**
3
- * The Fluent Toggle Button Element. Implements {@link @microsoft/fast-foundation#Button },
4
- * {@link @microsoft/fast-foundation#buttonTemplate}
5
3
  *
6
4
  * @public
7
5
  * @remarks
@@ -1,5 +1,5 @@
1
- import type { ButtonOptions } from '@microsoft/fast-foundation/button.js';
2
- import type { ValuesOf } from '@microsoft/fast-foundation/utilities.js';
1
+ import type { ButtonOptions } from '../button/index.js';
2
+ import type { ValuesOf } from '../utils/index.js';
3
3
  /**
4
4
  * Toggle Button Appearance constants
5
5
  * @public
@@ -0,0 +1,10 @@
1
+ import { Direction } from '@microsoft/fast-web-utilities';
2
+ /**
3
+ * Determines the current localization direction of an element.
4
+ *
5
+ * @param rootNode - the HTMLElement to begin the query from, usually "this" when used in a component controller
6
+ * @returns the localization direction of the element
7
+ *
8
+ * @public
9
+ */
10
+ export declare const getDirection: (rootNode: HTMLElement) => Direction;
@@ -0,0 +1,4 @@
1
+ export * from './direction.js';
2
+ export * from './typings.js';
3
+ export * from './template-helpers.js';
4
+ export * from './whitespace-filter.js';
@@ -0,0 +1,16 @@
1
+ import { CaptureType, HTMLDirective } from '@microsoft/fast-element';
2
+ import type { SyntheticViewTemplate } from '@microsoft/fast-element';
3
+ /**
4
+ * A value that can be statically composed into a
5
+ * foundation template.
6
+ * @remarks
7
+ * When providing a string, take care to ensure that it is
8
+ * safe and will not enable an XSS attack.
9
+ * @public
10
+ */
11
+ export declare type StaticallyComposableHTML<TSource = any, TParent = any> = string | HTMLDirective | SyntheticViewTemplate<TSource, TParent> | undefined;
12
+ /**
13
+ * A function to compose template options.
14
+ * @public
15
+ */
16
+ export declare function staticallyCompose<TSource = any, TParent = any>(item: StaticallyComposableHTML<TSource, TParent>): CaptureType<TSource, TParent>;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Helper for enumerating a type from a const object
3
+ * Example: export type Foo = ValuesOf\<typeof Foo\>
4
+ * @public
5
+ */
6
+ export declare type ValuesOf<T> = T[keyof T];
@@ -0,0 +1,12 @@
1
+ import type { ElementsFilter } from '@microsoft/fast-element';
2
+ /**
3
+ * filters out any whitespace-only nodes, to be used inside a template.
4
+ *
5
+ * @param value - The Node that is being inspected
6
+ * @param index - The index of the node within the array
7
+ * @param array - The Node array that is being filtered
8
+ * @returns true if the node is not a whitespace-only node, false otherwise
9
+ *
10
+ * @public
11
+ */
12
+ export declare const whitespaceFilter: ElementsFilter;
@@ -3,10 +3,6 @@ import { Accordion } from './accordion.js';
3
3
  import { styles } from './accordion.styles.js';
4
4
  import { template } from './accordion.template.js';
5
5
  /**
6
- * The Fluent Accordion Element. Implements {@link @microsoft/fast-foundation#Accordion },
7
- * {@link @microsoft/fast-foundation#accordionTemplate}
8
- *
9
- *
10
6
  * @public
11
7
  * @remarks
12
8
  * HTML Element: \<fluent-accordion\>
@@ -1 +1 @@
1
- {"version":3,"file":"accordion.definition.js","sourceRoot":"","sources":["../../../src/accordion/accordion.definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAEnD;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,SAAS,CAAC,OAAO,CAAC;IAC1C,IAAI,EAAE,GAAG,kBAAkB,CAAC,MAAM,YAAY;IAC9C,QAAQ;IACR,MAAM;CACP,CAAC,CAAC"}
1
+ {"version":3,"file":"accordion.definition.js","sourceRoot":"","sources":["../../../src/accordion/accordion.definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAEnD;;;;GAIG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,SAAS,CAAC,OAAO,CAAC;IAC1C,IAAI,EAAE,GAAG,kBAAkB,CAAC,MAAM,YAAY;IAC9C,QAAQ;IACR,MAAM;CACP,CAAC,CAAC"}