@fluentui/web-components 3.0.0-beta.83 → 3.0.0-beta.85

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 (204) hide show
  1. package/CHANGELOG.md +20 -2
  2. package/dist/dts/accordion-item/accordion-item.base.d.ts +71 -0
  3. package/dist/dts/accordion-item/accordion-item.d.ts +1 -71
  4. package/dist/dts/accordion-item/index.d.ts +2 -1
  5. package/dist/dts/anchor-button/anchor-button.base.d.ts +144 -0
  6. package/dist/dts/anchor-button/anchor-button.d.ts +2 -144
  7. package/dist/dts/anchor-button/index.d.ts +3 -1
  8. package/dist/dts/avatar/avatar.base.d.ts +42 -0
  9. package/dist/dts/avatar/avatar.d.ts +2 -42
  10. package/dist/dts/avatar/index.d.ts +2 -1
  11. package/dist/dts/button/button.base.d.ts +242 -0
  12. package/dist/dts/button/button.d.ts +2 -242
  13. package/dist/dts/button/index.d.ts +2 -1
  14. package/dist/dts/checkbox/checkbox.base.d.ts +288 -0
  15. package/dist/dts/checkbox/checkbox.d.ts +1 -288
  16. package/dist/dts/checkbox/index.d.ts +2 -1
  17. package/dist/dts/divider/divider.base.d.ts +49 -0
  18. package/dist/dts/divider/divider.d.ts +2 -49
  19. package/dist/dts/divider/index.d.ts +2 -1
  20. package/dist/dts/dropdown/dropdown.base.d.ts +418 -0
  21. package/dist/dts/dropdown/dropdown.d.ts +2 -418
  22. package/dist/dts/dropdown/dropdown.options.d.ts +1 -1
  23. package/dist/dts/dropdown/dropdown.template.d.ts +1 -1
  24. package/dist/dts/dropdown/index.d.ts +2 -1
  25. package/dist/dts/field/field.base.d.ts +120 -0
  26. package/dist/dts/field/field.d.ts +2 -120
  27. package/dist/dts/field/index.d.ts +2 -1
  28. package/dist/dts/index-rollup.d.ts +2 -0
  29. package/dist/dts/index.d.ts +7 -8
  30. package/dist/dts/link/link.d.ts +1 -1
  31. package/dist/dts/listbox/listbox.d.ts +1 -1
  32. package/dist/dts/progress-bar/index.d.ts +2 -1
  33. package/dist/dts/progress-bar/progress-bar.base.d.ts +73 -0
  34. package/dist/dts/progress-bar/progress-bar.d.ts +2 -73
  35. package/dist/dts/radio/radio.d.ts +1 -1
  36. package/dist/dts/rating-display/index.d.ts +2 -1
  37. package/dist/dts/rating-display/rating-display.base.d.ts +89 -0
  38. package/dist/dts/rating-display/rating-display.d.ts +1 -89
  39. package/dist/dts/spinner/index.d.ts +2 -1
  40. package/dist/dts/spinner/spinner.base.d.ts +14 -0
  41. package/dist/dts/spinner/spinner.d.ts +1 -14
  42. package/dist/dts/switch/switch.d.ts +1 -1
  43. package/dist/dts/tablist/index.d.ts +2 -1
  44. package/dist/dts/tablist/tablist.base.d.ts +95 -0
  45. package/dist/dts/tablist/tablist.d.ts +2 -95
  46. package/dist/dts/tabs/tabs.base.d.ts +90 -0
  47. package/dist/dts/tabs/tabs.d.ts +2 -90
  48. package/dist/dts/text-input/index.d.ts +2 -1
  49. package/dist/dts/text-input/text-input.base.d.ts +393 -0
  50. package/dist/dts/text-input/text-input.d.ts +2 -393
  51. package/dist/dts/textarea/index.d.ts +2 -1
  52. package/dist/dts/textarea/textarea.base.d.ts +347 -0
  53. package/dist/dts/textarea/textarea.d.ts +2 -347
  54. package/dist/dts/tree/define.d.ts +1 -0
  55. package/dist/dts/tree/index.d.ts +4 -0
  56. package/dist/dts/tree/tree.bench.d.ts +3 -0
  57. package/dist/dts/tree/tree.d.ts +88 -0
  58. package/dist/dts/tree/tree.definition.d.ts +8 -0
  59. package/dist/dts/tree/tree.styles.d.ts +1 -0
  60. package/dist/dts/tree/tree.template.d.ts +2 -0
  61. package/dist/dts/tree-item/define.d.ts +1 -0
  62. package/dist/dts/tree-item/index.d.ts +5 -0
  63. package/dist/dts/tree-item/tree-item.bench.d.ts +3 -0
  64. package/dist/dts/tree-item/tree-item.d.ts +121 -0
  65. package/dist/dts/tree-item/tree-item.definition.d.ts +8 -0
  66. package/dist/dts/tree-item/tree-item.options.d.ts +22 -0
  67. package/dist/dts/tree-item/tree-item.styles.d.ts +1 -0
  68. package/dist/dts/tree-item/tree-item.template.d.ts +2 -0
  69. package/dist/esm/accordion/accordion.js +1 -1
  70. package/dist/esm/accordion/accordion.js.map +1 -1
  71. package/dist/esm/accordion-item/accordion-item.base.js +94 -0
  72. package/dist/esm/accordion-item/accordion-item.base.js.map +1 -0
  73. package/dist/esm/accordion-item/accordion-item.js +2 -91
  74. package/dist/esm/accordion-item/accordion-item.js.map +1 -1
  75. package/dist/esm/accordion-item/index.js +2 -1
  76. package/dist/esm/accordion-item/index.js.map +1 -1
  77. package/dist/esm/anchor-button/anchor-button.base.js +147 -0
  78. package/dist/esm/anchor-button/anchor-button.base.js.map +1 -0
  79. package/dist/esm/anchor-button/anchor-button.js +3 -145
  80. package/dist/esm/anchor-button/anchor-button.js.map +1 -1
  81. package/dist/esm/anchor-button/index.js +3 -1
  82. package/dist/esm/anchor-button/index.js.map +1 -1
  83. package/dist/esm/avatar/avatar.base.js +28 -0
  84. package/dist/esm/avatar/avatar.base.js.map +1 -0
  85. package/dist/esm/avatar/avatar.js +2 -26
  86. package/dist/esm/avatar/avatar.js.map +1 -1
  87. package/dist/esm/avatar/index.js +2 -1
  88. package/dist/esm/avatar/index.js.map +1 -1
  89. package/dist/esm/button/button.base.js +283 -0
  90. package/dist/esm/button/button.base.js.map +1 -0
  91. package/dist/esm/button/button.js +3 -281
  92. package/dist/esm/button/button.js.map +1 -1
  93. package/dist/esm/button/button.styles.js +2 -1
  94. package/dist/esm/button/button.styles.js.map +1 -1
  95. package/dist/esm/button/index.js +2 -1
  96. package/dist/esm/button/index.js.map +1 -1
  97. package/dist/esm/checkbox/checkbox.base.js +366 -0
  98. package/dist/esm/checkbox/checkbox.base.js.map +1 -0
  99. package/dist/esm/checkbox/checkbox.js +2 -363
  100. package/dist/esm/checkbox/checkbox.js.map +1 -1
  101. package/dist/esm/checkbox/index.js +2 -1
  102. package/dist/esm/checkbox/index.js.map +1 -1
  103. package/dist/esm/divider/divider.base.js +61 -0
  104. package/dist/esm/divider/divider.base.js.map +1 -0
  105. package/dist/esm/divider/divider.js +3 -58
  106. package/dist/esm/divider/divider.js.map +1 -1
  107. package/dist/esm/divider/index.js +2 -1
  108. package/dist/esm/divider/index.js.map +1 -1
  109. package/dist/esm/dropdown/dropdown.base.js +677 -0
  110. package/dist/esm/dropdown/dropdown.base.js.map +1 -0
  111. package/dist/esm/dropdown/dropdown.js +3 -674
  112. package/dist/esm/dropdown/dropdown.js.map +1 -1
  113. package/dist/esm/dropdown/index.js +2 -1
  114. package/dist/esm/dropdown/index.js.map +1 -1
  115. package/dist/esm/field/field.base.js +189 -0
  116. package/dist/esm/field/field.base.js.map +1 -0
  117. package/dist/esm/field/field.js +3 -187
  118. package/dist/esm/field/field.js.map +1 -1
  119. package/dist/esm/field/index.js +2 -1
  120. package/dist/esm/field/index.js.map +1 -1
  121. package/dist/esm/index-rollup.js +2 -0
  122. package/dist/esm/index-rollup.js.map +1 -1
  123. package/dist/esm/index.js +6 -5
  124. package/dist/esm/index.js.map +1 -1
  125. package/dist/esm/link/link.js +1 -1
  126. package/dist/esm/link/link.js.map +1 -1
  127. package/dist/esm/progress-bar/index.js +2 -1
  128. package/dist/esm/progress-bar/index.js.map +1 -1
  129. package/dist/esm/progress-bar/progress-bar.base.js +90 -0
  130. package/dist/esm/progress-bar/progress-bar.base.js.map +1 -0
  131. package/dist/esm/progress-bar/progress-bar.js +3 -87
  132. package/dist/esm/progress-bar/progress-bar.js.map +1 -1
  133. package/dist/esm/radio/radio.js +1 -1
  134. package/dist/esm/radio/radio.js.map +1 -1
  135. package/dist/esm/rating-display/index.js +2 -1
  136. package/dist/esm/rating-display/index.js.map +1 -1
  137. package/dist/esm/rating-display/rating-display.base.js +94 -0
  138. package/dist/esm/rating-display/rating-display.base.js.map +1 -0
  139. package/dist/esm/rating-display/rating-display.js +2 -92
  140. package/dist/esm/rating-display/rating-display.js.map +1 -1
  141. package/dist/esm/spinner/index.js +2 -1
  142. package/dist/esm/spinner/index.js.map +1 -1
  143. package/dist/esm/spinner/spinner.base.js +18 -0
  144. package/dist/esm/spinner/spinner.base.js.map +1 -0
  145. package/dist/esm/spinner/spinner.js +2 -17
  146. package/dist/esm/spinner/spinner.js.map +1 -1
  147. package/dist/esm/switch/switch.js +1 -1
  148. package/dist/esm/switch/switch.js.map +1 -1
  149. package/dist/esm/tablist/index.js +2 -1
  150. package/dist/esm/tablist/index.js.map +1 -1
  151. package/dist/esm/tablist/tablist.base.js +248 -0
  152. package/dist/esm/tablist/tablist.base.js.map +1 -0
  153. package/dist/esm/tablist/tablist.js +3 -245
  154. package/dist/esm/tablist/tablist.js.map +1 -1
  155. package/dist/esm/tabs/tabs.base.js +279 -0
  156. package/dist/esm/tabs/tabs.base.js.map +1 -0
  157. package/dist/esm/tabs/tabs.js +2 -276
  158. package/dist/esm/tabs/tabs.js.map +1 -1
  159. package/dist/esm/text-input/index.js +2 -1
  160. package/dist/esm/text-input/index.js.map +1 -1
  161. package/dist/esm/text-input/text-input.base.js +409 -0
  162. package/dist/esm/text-input/text-input.base.js.map +1 -0
  163. package/dist/esm/text-input/text-input.js +3 -407
  164. package/dist/esm/text-input/text-input.js.map +1 -1
  165. package/dist/esm/textarea/index.js +2 -1
  166. package/dist/esm/textarea/index.js.map +1 -1
  167. package/dist/esm/textarea/textarea.base.js +494 -0
  168. package/dist/esm/textarea/textarea.base.js.map +1 -0
  169. package/dist/esm/textarea/textarea.js +3 -491
  170. package/dist/esm/textarea/textarea.js.map +1 -1
  171. package/dist/esm/tree/define.js +4 -0
  172. package/dist/esm/tree/define.js.map +1 -0
  173. package/dist/esm/tree/index.js +5 -0
  174. package/dist/esm/tree/index.js.map +1 -0
  175. package/dist/esm/tree/tree.bench.js +10 -0
  176. package/dist/esm/tree/tree.bench.js.map +1 -0
  177. package/dist/esm/tree/tree.definition.js +16 -0
  178. package/dist/esm/tree/tree.definition.js.map +1 -0
  179. package/dist/esm/tree/tree.js +274 -0
  180. package/dist/esm/tree/tree.js.map +1 -0
  181. package/dist/esm/tree/tree.styles.js +9 -0
  182. package/dist/esm/tree/tree.styles.js.map +1 -0
  183. package/dist/esm/tree/tree.template.js +18 -0
  184. package/dist/esm/tree/tree.template.js.map +1 -0
  185. package/dist/esm/tree-item/define.js +4 -0
  186. package/dist/esm/tree-item/define.js.map +1 -0
  187. package/dist/esm/tree-item/index.js +5 -0
  188. package/dist/esm/tree-item/index.js.map +1 -0
  189. package/dist/esm/tree-item/tree-item.bench.js +10 -0
  190. package/dist/esm/tree-item/tree-item.bench.js.map +1 -0
  191. package/dist/esm/tree-item/tree-item.definition.js +16 -0
  192. package/dist/esm/tree-item/tree-item.definition.js.map +1 -0
  193. package/dist/esm/tree-item/tree-item.js +201 -0
  194. package/dist/esm/tree-item/tree-item.js.map +1 -0
  195. package/dist/esm/tree-item/tree-item.options.js +24 -0
  196. package/dist/esm/tree-item/tree-item.options.js.map +1 -0
  197. package/dist/esm/tree-item/tree-item.styles.js +170 -0
  198. package/dist/esm/tree-item/tree-item.styles.js.map +1 -0
  199. package/dist/esm/tree-item/tree-item.template.js +41 -0
  200. package/dist/esm/tree-item/tree-item.template.js.map +1 -0
  201. package/dist/web-components.d.ts +157 -0
  202. package/dist/web-components.js +1445 -842
  203. package/dist/web-components.min.js +310 -303
  204. package/package.json +5 -1
@@ -0,0 +1,347 @@
1
+ import { FASTElement } from '@microsoft/fast-element';
2
+ import type { Label } from '../label/label.js';
3
+ import { TextAreaAutocomplete, TextAreaResize } from './textarea.options.js';
4
+ /**
5
+ * A Text Area Custom HTML Element.
6
+ * Based largely on the {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea | `<textarea>`} element.
7
+ *
8
+ * @slot - The default content/value of the component.
9
+ * @slot label - The content for the `<label>`, it should be a `<fluent-label>` element.
10
+ * @csspart label - The `<label>` element.
11
+ * @csspart root - The container element of the `<textarea>` element.
12
+ * @csspart control - The internal `<textarea>` element.
13
+ * @fires change - Fires after the control loses focus, if the content has changed.
14
+ * @fires select - Fires when the `select()` method is called.
15
+ *
16
+ * @public
17
+ */
18
+ export declare class BaseTextArea extends FASTElement {
19
+ /**
20
+ * The form-associated flag.
21
+ * @see {@link https://html.spec.whatwg.org/multipage/custom-elements.html#custom-elements-face-example | Form-associated custom elements}
22
+ *
23
+ * @public
24
+ */
25
+ static readonly formAssociated = true;
26
+ /**
27
+ * The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
28
+ *
29
+ * @internal
30
+ */
31
+ elementInternals: ElementInternals;
32
+ /**
33
+ * The `<label>` element.
34
+ * @internal
35
+ */
36
+ labelEl: HTMLLabelElement;
37
+ /**
38
+ * The `<textarea>` element.
39
+ * @internal
40
+ */
41
+ controlEl: HTMLTextAreaElement;
42
+ /**
43
+ * @internal
44
+ */
45
+ autoSizerEl?: HTMLDivElement;
46
+ /**
47
+ * The list of nodes that are assigned to the default slot.
48
+ * @internal
49
+ */
50
+ defaultSlottedNodes: Node[];
51
+ protected defaultSlottedNodesChanged(): void;
52
+ /**
53
+ * The list of nodes that are assigned to the `label` slot.
54
+ * @internal
55
+ */
56
+ labelSlottedNodes: Label[];
57
+ protected labelSlottedNodesChanged(): void;
58
+ private userInteracted;
59
+ private autoSizerObserver?;
60
+ private controlElAttrObserver;
61
+ private preConnectControlEl;
62
+ /**
63
+ * Indicates the element's autocomplete state.
64
+ * @see The {@link https://developer.mozilla.org/docs/Web/HTML/Attributes/autocomplete | `autocomplete`} attribute
65
+ *
66
+ * @public
67
+ * @remarks
68
+ * HTML Attribute: `autocomplete`
69
+ */
70
+ autocomplete?: TextAreaAutocomplete;
71
+ /**
72
+ * Indicates whether the element’s block size (height) should be automatically changed based on the content.
73
+ * Note: When this property’s value is set to be `true`, the element should not have a fixed block-size
74
+ * defined in CSS. Instead, use `min-height` or `min-block-size`.
75
+ *
76
+ * @public
77
+ * @remarks
78
+ * HTML Attribute: `auto-resize`
79
+ */
80
+ autoResize: boolean;
81
+ protected autoResizeChanged(): void;
82
+ /**
83
+ * Sets the name of the value directionality to be submitted with form data.
84
+ * @see The {@link https://developer.mozilla.org/docs/Web/HTML/Attributes/dirname | `dirname`} attribute
85
+ *
86
+ * @public
87
+ * @remarks
88
+ * HTML Attribute: `dirname`
89
+ */
90
+ dirName?: string;
91
+ /**
92
+ * Sets the element's disabled state.
93
+ * @see The {@link https://developer.mozilla.org/docs/Web/HTML/Attributes/disabled | `disabled`} attribute
94
+ *
95
+ * @public
96
+ * @remarks
97
+ * HTML Attribute: `disabled`
98
+ */
99
+ disabled: boolean;
100
+ protected disabledChanged(): void;
101
+ /**
102
+ * Indicates whether the element displays a box shadow. This only has effect when `appearance` is set to be `filled-darker` or `filled-lighter`.
103
+ *
104
+ * @public
105
+ * @remarks
106
+ * HTML Attribute: `display-shadow`
107
+ */
108
+ displayShadow: boolean;
109
+ /**
110
+ * The id of a form to associate the element to.
111
+ *
112
+ * @public
113
+ * @remarks
114
+ * HTML Attribute: `form`
115
+ */
116
+ initialForm?: string;
117
+ /**
118
+ * The form element that’s associated to the element, or `null` if no form is associated.
119
+ *
120
+ * @public
121
+ */
122
+ get form(): HTMLFormElement | null;
123
+ /**
124
+ * A `NodeList` of `<label>` element associated with the element.
125
+ * @see The {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/labels | `labels`} property
126
+ *
127
+ * @public
128
+ */
129
+ get labels(): NodeList;
130
+ /**
131
+ * The maximum number of characters a user can enter.
132
+ *
133
+ * @public
134
+ * @remarks
135
+ * HTML Attribute: `maxlength`
136
+ */
137
+ maxLength?: number;
138
+ /**
139
+ * The minimum number of characters a user can enter.
140
+ * @see The {@link https://developer.mozilla.org/docs/Web/HTML/Attributes/minlength | `minlength`} attribute
141
+ *
142
+ * @public
143
+ * @remarks
144
+ * HTML Attribute: `minlength`
145
+ */
146
+ minLength?: number;
147
+ /**
148
+ * The name of the element. This element's value will be surfaced during form submission under the provided name.
149
+ *
150
+ * @public
151
+ * @remarks
152
+ * HTML Attribute: `name`
153
+ */
154
+ name: string;
155
+ /**
156
+ * Sets the placeholder value of the element, generally used to provide a hint to the user.
157
+ * @see The {@link https://developer.mozilla.org/docs/Web/HTML/Attributes/placeholder | `placeholder`} attribute
158
+ *
159
+ * @public
160
+ * @remarks
161
+ * HTML Attribute: `placeholder`
162
+ * This attribute is not a valid substitute for a label.
163
+ */
164
+ placeholder?: string;
165
+ /**
166
+ * When true, the control will be immutable by user interaction.
167
+ * @see The {@link https://developer.mozilla.org/docs/Web/HTML/Attributes/readonly | `readonly`} attribute
168
+ *
169
+ * @public
170
+ * @remarks
171
+ * HTML Attribute: `readonly`
172
+ */
173
+ readOnly: boolean;
174
+ protected readOnlyChanged(): void;
175
+ /**
176
+ * The element's required attribute.
177
+ *
178
+ * @public
179
+ * @remarks
180
+ * HTML Attribute: `required`
181
+ */
182
+ required: boolean;
183
+ protected requiredChanged(): void;
184
+ /**
185
+ * Indicates whether the element can be resized by end users.
186
+ *
187
+ * @public
188
+ * @remarks
189
+ * HTML Attribute: `resize`
190
+ */
191
+ resize: TextAreaResize;
192
+ protected resizeChanged(prev: TextAreaResize | undefined, next: TextAreaResize | undefined): void;
193
+ /**
194
+ * Controls whether or not to enable spell checking for the input field, or if the default spell checking configuration should be used.
195
+ * @see The {@link https://developer.mozilla.org/docs/Web/HTML/Global_attributes/spellcheck | `spellcheck`} attribute
196
+ *
197
+ * @public
198
+ * @remarks
199
+ * HTML Attribute: `spellcheck`
200
+ */
201
+ spellcheck: boolean;
202
+ /**
203
+ * The length of the current value.
204
+ * @see The {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement#textLength | 'textLength'} property
205
+ *
206
+ * @public
207
+ */
208
+ get textLength(): number;
209
+ /**
210
+ * The type of the element, which is always "textarea".
211
+ * @see The {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/type | `type`} property
212
+ *
213
+ * @public
214
+ */
215
+ get type(): 'textarea';
216
+ /**
217
+ * The element's validity state.
218
+ *
219
+ * @public
220
+ * @remarks
221
+ * Reflects the {@link https://developer.mozilla.org/docs/Web/API/ElementInternals/validity | `ElementInternals.validity`} property.
222
+ */
223
+ get validity(): ValidityState;
224
+ /**
225
+ * The validation message.
226
+ *
227
+ * @public
228
+ * @remarks
229
+ * Reflects the {@link https://developer.mozilla.org/docs/Web/API/ElementInternals/validationMessage | `ElementInternals.validationMessage`} property.
230
+ */
231
+ get validationMessage(): string;
232
+ /**
233
+ * Determines if the control can be submitted for constraint validation.
234
+ *
235
+ * @public
236
+ * @remarks
237
+ * Reflects the {@link https://developer.mozilla.org/docs/Web/API/ElementInternals/willValidate | `ElementInternals.willValidate`} property.
238
+ */
239
+ get willValidate(): boolean;
240
+ /**
241
+ * The text content of the element before user interaction.
242
+ * @see The {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement#defaultvalue | `defaultValue`} property
243
+ *
244
+ * @public
245
+ * @remarks
246
+ * In order to set the initial/default value, an author should either add the default value in the HTML as the children
247
+ * of the component, or setting this property in JavaScript. Setting `innerHTML`, `innerText`, or `textContent` on this
248
+ * component will not change the default value or the content displayed inside the component.
249
+ */
250
+ get defaultValue(): string;
251
+ set defaultValue(next: string);
252
+ /**
253
+ * The value of the element.
254
+ *
255
+ * @public
256
+ * @remarks
257
+ * Reflects the `value` property.
258
+ */
259
+ get value(): string;
260
+ set value(next: string);
261
+ constructor();
262
+ /**
263
+ * @internal
264
+ */
265
+ connectedCallback(): void;
266
+ /**
267
+ * @internal
268
+ */
269
+ disconnectedCallback(): void;
270
+ /**
271
+ * Resets the value to its initial value when the form is reset.
272
+ *
273
+ * @internal
274
+ */
275
+ formResetCallback(): void;
276
+ /**
277
+ * @internal
278
+ */
279
+ formDisabledCallback(disabled: boolean): void;
280
+ /**
281
+ * Reflects the {@link https://developer.mozilla.org/docs/Web/API/ElementInternals/setFormValue | `ElementInternals.setFormValue()`} method.
282
+ *
283
+ * @internal
284
+ */
285
+ setFormValue(value: File | string | FormData | null, state?: File | string | FormData | null): void;
286
+ /**
287
+ * Checks the validity of the element and returns the result.
288
+ *
289
+ * @public
290
+ * @remarks
291
+ * Reflects the {@link https://developer.mozilla.org/docs/Web/API/ElementInternals/checkValidity | `HTMLInputElement.checkValidity()`} method.
292
+ */
293
+ checkValidity(): boolean;
294
+ /**
295
+ * Reports the validity of the element.
296
+ *
297
+ * @public
298
+ * @remarks
299
+ * Reflects the {@link https://developer.mozilla.org/docs/Web/API/ElementInternals/reportValidity | `HTMLInputElement.reportValidity()`} method.
300
+ */
301
+ reportValidity(): boolean;
302
+ /**
303
+ * Sets the custom validity message.
304
+ * @param message - The message to set
305
+ *
306
+ * @public
307
+ */
308
+ setCustomValidity(message: string | null): void;
309
+ /**
310
+ * Sets the validity of the control.
311
+ *
312
+ * @param flags - Validity flags. If not provided, the control's `validity` will be used.
313
+ * @param message - Optional message to supply. If not provided, the control's `validationMessage` will be used. If the control does not have a `validationMessage`, the message will be empty.
314
+ * @param anchor - Optional anchor to use for the validation message. If not provided, the control will be used.
315
+ *
316
+ * @internal
317
+ */
318
+ setValidity(flags?: Partial<ValidityState>, message?: string, anchor?: HTMLElement): void;
319
+ /**
320
+ * Selects the content in the element.
321
+ *
322
+ * @public
323
+ */
324
+ select(): void;
325
+ private setDefaultValue;
326
+ private bindEvents;
327
+ /**
328
+ * Gets the content inside the light DOM, if any HTML element is present, use its `outerHTML` value.
329
+ */
330
+ private getContent;
331
+ private observeControlElAttrs;
332
+ private setDisabledSideEffect;
333
+ private toggleUserValidityState;
334
+ private maybeCreateAutoSizerEl;
335
+ /**
336
+ * @internal
337
+ */
338
+ handleControlInput(): void;
339
+ /**
340
+ * @internal
341
+ */
342
+ handleControlChange(): void;
343
+ /**
344
+ * @internal
345
+ */
346
+ handleControlSelect(): void;
347
+ }
@@ -1,350 +1,5 @@
1
- import { FASTElement } from '@microsoft/fast-element';
2
- import type { Label } from '../label/label.js';
3
- import { TextAreaAppearance, TextAreaAutocomplete, TextAreaResize, TextAreaSize } from './textarea.options.js';
4
- /**
5
- * A Text Area Custom HTML Element.
6
- * Based largely on the {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea | `<textarea>`} element.
7
- *
8
- * @slot - The default content/value of the component.
9
- * @slot label - The content for the `<label>`, it should be a `<fluent-label>` element.
10
- * @csspart label - The `<label>` element.
11
- * @csspart root - The container element of the `<textarea>` element.
12
- * @csspart control - The internal `<textarea>` element.
13
- * @fires change - Fires after the control loses focus, if the content has changed.
14
- * @fires select - Fires when the `select()` method is called.
15
- *
16
- * @public
17
- */
18
- export declare class BaseTextArea extends FASTElement {
19
- /**
20
- * The form-associated flag.
21
- * @see {@link https://html.spec.whatwg.org/multipage/custom-elements.html#custom-elements-face-example | Form-associated custom elements}
22
- *
23
- * @public
24
- */
25
- static readonly formAssociated = true;
26
- /**
27
- * The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
28
- *
29
- * @internal
30
- */
31
- elementInternals: ElementInternals;
32
- /**
33
- * The `<label>` element.
34
- * @internal
35
- */
36
- labelEl: HTMLLabelElement;
37
- /**
38
- * The `<textarea>` element.
39
- * @internal
40
- */
41
- controlEl: HTMLTextAreaElement;
42
- /**
43
- * @internal
44
- */
45
- autoSizerEl?: HTMLDivElement;
46
- /**
47
- * The list of nodes that are assigned to the default slot.
48
- * @internal
49
- */
50
- defaultSlottedNodes: Node[];
51
- protected defaultSlottedNodesChanged(): void;
52
- /**
53
- * The list of nodes that are assigned to the `label` slot.
54
- * @internal
55
- */
56
- labelSlottedNodes: Label[];
57
- protected labelSlottedNodesChanged(): void;
58
- private userInteracted;
59
- private autoSizerObserver?;
60
- private controlElAttrObserver;
61
- private preConnectControlEl;
62
- /**
63
- * Indicates the element's autocomplete state.
64
- * @see The {@link https://developer.mozilla.org/docs/Web/HTML/Attributes/autocomplete | `autocomplete`} attribute
65
- *
66
- * @public
67
- * @remarks
68
- * HTML Attribute: `autocomplete`
69
- */
70
- autocomplete?: TextAreaAutocomplete;
71
- /**
72
- * Indicates whether the element’s block size (height) should be automatically changed based on the content.
73
- * Note: When this property’s value is set to be `true`, the element should not have a fixed block-size
74
- * defined in CSS. Instead, use `min-height` or `min-block-size`.
75
- *
76
- * @public
77
- * @remarks
78
- * HTML Attribute: `auto-resize`
79
- */
80
- autoResize: boolean;
81
- protected autoResizeChanged(): void;
82
- /**
83
- * Sets the name of the value directionality to be submitted with form data.
84
- * @see The {@link https://developer.mozilla.org/docs/Web/HTML/Attributes/dirname | `dirname`} attribute
85
- *
86
- * @public
87
- * @remarks
88
- * HTML Attribute: `dirname`
89
- */
90
- dirName?: string;
91
- /**
92
- * Sets the element's disabled state.
93
- * @see The {@link https://developer.mozilla.org/docs/Web/HTML/Attributes/disabled | `disabled`} attribute
94
- *
95
- * @public
96
- * @remarks
97
- * HTML Attribute: `disabled`
98
- */
99
- disabled: boolean;
100
- protected disabledChanged(): void;
101
- /**
102
- * Indicates whether the element displays a box shadow. This only has effect when `appearance` is set to be `filled-darker` or `filled-lighter`.
103
- *
104
- * @public
105
- * @remarks
106
- * HTML Attribute: `display-shadow`
107
- */
108
- displayShadow: boolean;
109
- /**
110
- * The id of a form to associate the element to.
111
- *
112
- * @public
113
- * @remarks
114
- * HTML Attribute: `form`
115
- */
116
- initialForm?: string;
117
- /**
118
- * The form element that’s associated to the element, or `null` if no form is associated.
119
- *
120
- * @public
121
- */
122
- get form(): HTMLFormElement | null;
123
- /**
124
- * A `NodeList` of `<label>` element associated with the element.
125
- * @see The {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/labels | `labels`} property
126
- *
127
- * @public
128
- */
129
- get labels(): NodeList;
130
- /**
131
- * The maximum number of characters a user can enter.
132
- *
133
- * @public
134
- * @remarks
135
- * HTML Attribute: `maxlength`
136
- */
137
- maxLength?: number;
138
- /**
139
- * The minimum number of characters a user can enter.
140
- * @see The {@link https://developer.mozilla.org/docs/Web/HTML/Attributes/minlength | `minlength`} attribute
141
- *
142
- * @public
143
- * @remarks
144
- * HTML Attribute: `minlength`
145
- */
146
- minLength?: number;
147
- /**
148
- * The name of the element. This element's value will be surfaced during form submission under the provided name.
149
- *
150
- * @public
151
- * @remarks
152
- * HTML Attribute: `name`
153
- */
154
- name: string;
155
- /**
156
- * Sets the placeholder value of the element, generally used to provide a hint to the user.
157
- * @see The {@link https://developer.mozilla.org/docs/Web/HTML/Attributes/placeholder | `placeholder`} attribute
158
- *
159
- * @public
160
- * @remarks
161
- * HTML Attribute: `placeholder`
162
- * This attribute is not a valid substitute for a label.
163
- */
164
- placeholder?: string;
165
- /**
166
- * When true, the control will be immutable by user interaction.
167
- * @see The {@link https://developer.mozilla.org/docs/Web/HTML/Attributes/readonly | `readonly`} attribute
168
- *
169
- * @public
170
- * @remarks
171
- * HTML Attribute: `readonly`
172
- */
173
- readOnly: boolean;
174
- protected readOnlyChanged(): void;
175
- /**
176
- * The element's required attribute.
177
- *
178
- * @public
179
- * @remarks
180
- * HTML Attribute: `required`
181
- */
182
- required: boolean;
183
- protected requiredChanged(): void;
184
- /**
185
- * Indicates whether the element can be resized by end users.
186
- *
187
- * @public
188
- * @remarks
189
- * HTML Attribute: `resize`
190
- */
191
- resize: TextAreaResize;
192
- protected resizeChanged(prev: TextAreaResize | undefined, next: TextAreaResize | undefined): void;
193
- /**
194
- * Controls whether or not to enable spell checking for the input field, or if the default spell checking configuration should be used.
195
- * @see The {@link https://developer.mozilla.org/docs/Web/HTML/Global_attributes/spellcheck | `spellcheck`} attribute
196
- *
197
- * @public
198
- * @remarks
199
- * HTML Attribute: `spellcheck`
200
- */
201
- spellcheck: boolean;
202
- /**
203
- * The length of the current value.
204
- * @see The {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement#textLength | 'textLength'} property
205
- *
206
- * @public
207
- */
208
- get textLength(): number;
209
- /**
210
- * The type of the element, which is always "textarea".
211
- * @see The {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/type | `type`} property
212
- *
213
- * @public
214
- */
215
- get type(): 'textarea';
216
- /**
217
- * The element's validity state.
218
- *
219
- * @public
220
- * @remarks
221
- * Reflects the {@link https://developer.mozilla.org/docs/Web/API/ElementInternals/validity | `ElementInternals.validity`} property.
222
- */
223
- get validity(): ValidityState;
224
- /**
225
- * The validation message.
226
- *
227
- * @public
228
- * @remarks
229
- * Reflects the {@link https://developer.mozilla.org/docs/Web/API/ElementInternals/validationMessage | `ElementInternals.validationMessage`} property.
230
- */
231
- get validationMessage(): string;
232
- /**
233
- * Determines if the control can be submitted for constraint validation.
234
- *
235
- * @public
236
- * @remarks
237
- * Reflects the {@link https://developer.mozilla.org/docs/Web/API/ElementInternals/willValidate | `ElementInternals.willValidate`} property.
238
- */
239
- get willValidate(): boolean;
240
- /**
241
- * The text content of the element before user interaction.
242
- * @see The {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement#defaultvalue | `defaultValue`} property
243
- *
244
- * @public
245
- * @remarks
246
- * In order to set the initial/default value, an author should either add the default value in the HTML as the children
247
- * of the component, or setting this property in JavaScript. Setting `innerHTML`, `innerText`, or `textContent` on this
248
- * component will not change the default value or the content displayed inside the component.
249
- */
250
- get defaultValue(): string;
251
- set defaultValue(next: string);
252
- /**
253
- * The value of the element.
254
- *
255
- * @public
256
- * @remarks
257
- * Reflects the `value` property.
258
- */
259
- get value(): string;
260
- set value(next: string);
261
- constructor();
262
- /**
263
- * @internal
264
- */
265
- connectedCallback(): void;
266
- /**
267
- * @internal
268
- */
269
- disconnectedCallback(): void;
270
- /**
271
- * Resets the value to its initial value when the form is reset.
272
- *
273
- * @internal
274
- */
275
- formResetCallback(): void;
276
- /**
277
- * @internal
278
- */
279
- formDisabledCallback(disabled: boolean): void;
280
- /**
281
- * Reflects the {@link https://developer.mozilla.org/docs/Web/API/ElementInternals/setFormValue | `ElementInternals.setFormValue()`} method.
282
- *
283
- * @internal
284
- */
285
- setFormValue(value: File | string | FormData | null, state?: File | string | FormData | null): void;
286
- /**
287
- * Checks the validity of the element and returns the result.
288
- *
289
- * @public
290
- * @remarks
291
- * Reflects the {@link https://developer.mozilla.org/docs/Web/API/ElementInternals/checkValidity | `HTMLInputElement.checkValidity()`} method.
292
- */
293
- checkValidity(): boolean;
294
- /**
295
- * Reports the validity of the element.
296
- *
297
- * @public
298
- * @remarks
299
- * Reflects the {@link https://developer.mozilla.org/docs/Web/API/ElementInternals/reportValidity | `HTMLInputElement.reportValidity()`} method.
300
- */
301
- reportValidity(): boolean;
302
- /**
303
- * Sets the custom validity message.
304
- * @param message - The message to set
305
- *
306
- * @public
307
- */
308
- setCustomValidity(message: string | null): void;
309
- /**
310
- * Sets the validity of the control.
311
- *
312
- * @param flags - Validity flags. If not provided, the control's `validity` will be used.
313
- * @param message - Optional message to supply. If not provided, the control's `validationMessage` will be used. If the control does not have a `validationMessage`, the message will be empty.
314
- * @param anchor - Optional anchor to use for the validation message. If not provided, the control will be used.
315
- *
316
- * @internal
317
- */
318
- setValidity(flags?: Partial<ValidityState>, message?: string, anchor?: HTMLElement): void;
319
- /**
320
- * Selects the content in the element.
321
- *
322
- * @public
323
- */
324
- select(): void;
325
- private setDefaultValue;
326
- private bindEvents;
327
- /**
328
- * Gets the content inside the light DOM, if any HTML element is present, use its `outerHTML` value.
329
- */
330
- private getContent;
331
- private observeControlElAttrs;
332
- private setDisabledSideEffect;
333
- private toggleUserValidityState;
334
- private maybeCreateAutoSizerEl;
335
- /**
336
- * @internal
337
- */
338
- handleControlInput(): void;
339
- /**
340
- * @internal
341
- */
342
- handleControlChange(): void;
343
- /**
344
- * @internal
345
- */
346
- handleControlSelect(): void;
347
- }
1
+ import { BaseTextArea } from './textarea.base.js';
2
+ import { TextAreaAppearance, TextAreaSize } from './textarea.options.js';
348
3
  export declare class TextArea extends BaseTextArea {
349
4
  protected labelSlottedNodesChanged(): void;
350
5
  /**
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ export { Tree } from './tree.js';
2
+ export { template as TreeTemplate } from './tree.template.js';
3
+ export { styles as TreeStyles } from './tree.styles.js';
4
+ export { definition as TreeDefinition } from './tree.definition.js';