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

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 (152) hide show
  1. package/CHANGELOG.md +11 -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 +2 -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/link/link.d.ts +1 -1
  29. package/dist/dts/listbox/listbox.d.ts +1 -1
  30. package/dist/dts/progress-bar/index.d.ts +2 -1
  31. package/dist/dts/progress-bar/progress-bar.base.d.ts +73 -0
  32. package/dist/dts/progress-bar/progress-bar.d.ts +2 -73
  33. package/dist/dts/radio/radio.d.ts +1 -1
  34. package/dist/dts/rating-display/index.d.ts +2 -1
  35. package/dist/dts/rating-display/rating-display.base.d.ts +89 -0
  36. package/dist/dts/rating-display/rating-display.d.ts +1 -89
  37. package/dist/dts/spinner/index.d.ts +2 -1
  38. package/dist/dts/spinner/spinner.base.d.ts +14 -0
  39. package/dist/dts/spinner/spinner.d.ts +1 -14
  40. package/dist/dts/switch/switch.d.ts +1 -1
  41. package/dist/dts/tablist/index.d.ts +2 -1
  42. package/dist/dts/tablist/tablist.base.d.ts +95 -0
  43. package/dist/dts/tablist/tablist.d.ts +2 -95
  44. package/dist/dts/tabs/tabs.base.d.ts +90 -0
  45. package/dist/dts/tabs/tabs.d.ts +2 -90
  46. package/dist/dts/text-input/index.d.ts +2 -1
  47. package/dist/dts/text-input/text-input.base.d.ts +393 -0
  48. package/dist/dts/text-input/text-input.d.ts +2 -393
  49. package/dist/dts/textarea/index.d.ts +2 -1
  50. package/dist/dts/textarea/textarea.base.d.ts +347 -0
  51. package/dist/dts/textarea/textarea.d.ts +2 -347
  52. package/dist/esm/accordion/accordion.js +1 -1
  53. package/dist/esm/accordion/accordion.js.map +1 -1
  54. package/dist/esm/accordion-item/accordion-item.base.js +94 -0
  55. package/dist/esm/accordion-item/accordion-item.base.js.map +1 -0
  56. package/dist/esm/accordion-item/accordion-item.js +2 -91
  57. package/dist/esm/accordion-item/accordion-item.js.map +1 -1
  58. package/dist/esm/accordion-item/index.js +2 -1
  59. package/dist/esm/accordion-item/index.js.map +1 -1
  60. package/dist/esm/anchor-button/anchor-button.base.js +147 -0
  61. package/dist/esm/anchor-button/anchor-button.base.js.map +1 -0
  62. package/dist/esm/anchor-button/anchor-button.js +3 -145
  63. package/dist/esm/anchor-button/anchor-button.js.map +1 -1
  64. package/dist/esm/anchor-button/index.js +2 -1
  65. package/dist/esm/anchor-button/index.js.map +1 -1
  66. package/dist/esm/avatar/avatar.base.js +28 -0
  67. package/dist/esm/avatar/avatar.base.js.map +1 -0
  68. package/dist/esm/avatar/avatar.js +2 -26
  69. package/dist/esm/avatar/avatar.js.map +1 -1
  70. package/dist/esm/avatar/index.js +2 -1
  71. package/dist/esm/avatar/index.js.map +1 -1
  72. package/dist/esm/button/button.base.js +283 -0
  73. package/dist/esm/button/button.base.js.map +1 -0
  74. package/dist/esm/button/button.js +3 -281
  75. package/dist/esm/button/button.js.map +1 -1
  76. package/dist/esm/button/button.styles.js +2 -1
  77. package/dist/esm/button/button.styles.js.map +1 -1
  78. package/dist/esm/button/index.js +2 -1
  79. package/dist/esm/button/index.js.map +1 -1
  80. package/dist/esm/checkbox/checkbox.base.js +366 -0
  81. package/dist/esm/checkbox/checkbox.base.js.map +1 -0
  82. package/dist/esm/checkbox/checkbox.js +2 -363
  83. package/dist/esm/checkbox/checkbox.js.map +1 -1
  84. package/dist/esm/checkbox/index.js +2 -1
  85. package/dist/esm/checkbox/index.js.map +1 -1
  86. package/dist/esm/divider/divider.base.js +61 -0
  87. package/dist/esm/divider/divider.base.js.map +1 -0
  88. package/dist/esm/divider/divider.js +3 -58
  89. package/dist/esm/divider/divider.js.map +1 -1
  90. package/dist/esm/divider/index.js +2 -1
  91. package/dist/esm/divider/index.js.map +1 -1
  92. package/dist/esm/dropdown/dropdown.base.js +677 -0
  93. package/dist/esm/dropdown/dropdown.base.js.map +1 -0
  94. package/dist/esm/dropdown/dropdown.js +3 -674
  95. package/dist/esm/dropdown/dropdown.js.map +1 -1
  96. package/dist/esm/dropdown/index.js +2 -1
  97. package/dist/esm/dropdown/index.js.map +1 -1
  98. package/dist/esm/field/field.base.js +189 -0
  99. package/dist/esm/field/field.base.js.map +1 -0
  100. package/dist/esm/field/field.js +3 -187
  101. package/dist/esm/field/field.js.map +1 -1
  102. package/dist/esm/field/index.js +2 -1
  103. package/dist/esm/field/index.js.map +1 -1
  104. package/dist/esm/link/link.js +1 -1
  105. package/dist/esm/link/link.js.map +1 -1
  106. package/dist/esm/progress-bar/index.js +2 -1
  107. package/dist/esm/progress-bar/index.js.map +1 -1
  108. package/dist/esm/progress-bar/progress-bar.base.js +90 -0
  109. package/dist/esm/progress-bar/progress-bar.base.js.map +1 -0
  110. package/dist/esm/progress-bar/progress-bar.js +3 -87
  111. package/dist/esm/progress-bar/progress-bar.js.map +1 -1
  112. package/dist/esm/radio/radio.js +1 -1
  113. package/dist/esm/radio/radio.js.map +1 -1
  114. package/dist/esm/rating-display/index.js +2 -1
  115. package/dist/esm/rating-display/index.js.map +1 -1
  116. package/dist/esm/rating-display/rating-display.base.js +94 -0
  117. package/dist/esm/rating-display/rating-display.base.js.map +1 -0
  118. package/dist/esm/rating-display/rating-display.js +2 -92
  119. package/dist/esm/rating-display/rating-display.js.map +1 -1
  120. package/dist/esm/spinner/index.js +2 -1
  121. package/dist/esm/spinner/index.js.map +1 -1
  122. package/dist/esm/spinner/spinner.base.js +18 -0
  123. package/dist/esm/spinner/spinner.base.js.map +1 -0
  124. package/dist/esm/spinner/spinner.js +2 -17
  125. package/dist/esm/spinner/spinner.js.map +1 -1
  126. package/dist/esm/switch/switch.js +1 -1
  127. package/dist/esm/switch/switch.js.map +1 -1
  128. package/dist/esm/tablist/index.js +2 -1
  129. package/dist/esm/tablist/index.js.map +1 -1
  130. package/dist/esm/tablist/tablist.base.js +248 -0
  131. package/dist/esm/tablist/tablist.base.js.map +1 -0
  132. package/dist/esm/tablist/tablist.js +3 -245
  133. package/dist/esm/tablist/tablist.js.map +1 -1
  134. package/dist/esm/tabs/tabs.base.js +279 -0
  135. package/dist/esm/tabs/tabs.base.js.map +1 -0
  136. package/dist/esm/tabs/tabs.js +2 -276
  137. package/dist/esm/tabs/tabs.js.map +1 -1
  138. package/dist/esm/text-input/index.js +2 -1
  139. package/dist/esm/text-input/index.js.map +1 -1
  140. package/dist/esm/text-input/text-input.base.js +409 -0
  141. package/dist/esm/text-input/text-input.base.js.map +1 -0
  142. package/dist/esm/text-input/text-input.js +3 -407
  143. package/dist/esm/text-input/text-input.js.map +1 -1
  144. package/dist/esm/textarea/index.js +2 -1
  145. package/dist/esm/textarea/index.js.map +1 -1
  146. package/dist/esm/textarea/textarea.base.js +494 -0
  147. package/dist/esm/textarea/textarea.base.js.map +1 -0
  148. package/dist/esm/textarea/textarea.js +3 -491
  149. package/dist/esm/textarea/textarea.js.map +1 -1
  150. package/dist/web-components.js +682 -555
  151. package/dist/web-components.min.js +269 -269
  152. package/package.json +5 -1
@@ -0,0 +1,288 @@
1
+ import { FASTElement } from '@microsoft/fast-element';
2
+ /**
3
+ * The base class for a component with a toggleable checked state.
4
+ *
5
+ * @public
6
+ */
7
+ export declare class BaseCheckbox extends FASTElement {
8
+ /**
9
+ * Indicates that the element should get focus after the page finishes loading.
10
+ * @see The {@link https://developer.mozilla.org/docs/Web/HTML/Element/input#autofocus | `autofocus`} attribute
11
+ *
12
+ * @public
13
+ * @remarks
14
+ * HTML Attribute: `autofocus`
15
+ */
16
+ autofocus: boolean;
17
+ /**
18
+ * The element's current checked state.
19
+ *
20
+ * @public
21
+ */
22
+ get checked(): boolean;
23
+ set checked(next: boolean);
24
+ /**
25
+ * The disabled state of the control.
26
+ *
27
+ * @public
28
+ */
29
+ disabled?: boolean;
30
+ /**
31
+ * Toggles the disabled state when the user changes the `disabled` property.
32
+ *
33
+ * @internal
34
+ */
35
+ protected disabledChanged(prev: boolean | undefined, next: boolean | undefined): void;
36
+ /**
37
+ * The initial disabled state of the control.
38
+ *
39
+ * @public
40
+ * @remarks
41
+ * HTML Attribute: `disabled`
42
+ */
43
+ disabledAttribute?: boolean;
44
+ /**
45
+ * Sets the disabled state when the `disabled` attribute changes.
46
+ *
47
+ * @param prev - the previous value
48
+ * @param next - the current value
49
+ * @internal
50
+ */
51
+ protected disabledAttributeChanged(prev: boolean | undefined, next: boolean | undefined): void;
52
+ /**
53
+ * The id of a form to associate the element to.
54
+ * @see The {@link https://developer.mozilla.org/docs/Web/HTML/Element/input#form | `form`} attribute
55
+ *
56
+ * @public
57
+ * @remarks
58
+ * HTML Attribute: `form`
59
+ */
60
+ formAttribute?: string;
61
+ /**
62
+ * The initial checked state of the element.
63
+ *
64
+ * @public
65
+ * @remarks
66
+ * HTML Attribute: `checked`
67
+ */
68
+ initialChecked?: boolean;
69
+ /**
70
+ * Updates the checked state when the `checked` attribute is changed, unless the checked state has been changed by the user.
71
+ *
72
+ * @param prev - The previous initial checked state
73
+ * @param next - The current initial checked state
74
+ * @internal
75
+ */
76
+ protected initialCheckedChanged(prev: boolean | undefined, next: boolean | undefined): void;
77
+ /**
78
+ * The initial value of the input.
79
+ *
80
+ * @public
81
+ * @remarks
82
+ * HTML Attribute: `value`
83
+ */
84
+ initialValue: string;
85
+ /**
86
+ * Sets the value of the input when the `value` attribute changes.
87
+ *
88
+ * @param prev - The previous initial value
89
+ * @param next - The current initial value
90
+ * @internal
91
+ */
92
+ protected initialValueChanged(prev: string, next: string): void;
93
+ /**
94
+ * The name of the element. This element's value will be surfaced during form submission under the provided name.
95
+ *
96
+ * @public
97
+ * @remarks
98
+ * HTML Attribute: `name`
99
+ */
100
+ name: string;
101
+ /**
102
+ * The element's required state.
103
+ *
104
+ * @public
105
+ * @remarks
106
+ * HTML Attribute: `required`
107
+ */
108
+ required: boolean;
109
+ /**
110
+ * Sets the validity of the control when the required state changes.
111
+ *
112
+ * @param prev - The previous required state
113
+ * @param next - The current required state
114
+ * @internal
115
+ */
116
+ protected requiredChanged(prev: boolean, next: boolean): void;
117
+ /**
118
+ * The internal checked state of the control.
119
+ *
120
+ * @internal
121
+ */
122
+ private _checked?;
123
+ /**
124
+ * Indicates that the checked state has been changed by the user.
125
+ *
126
+ * @internal
127
+ */
128
+ private dirtyChecked;
129
+ /**
130
+ * The associated `<form>` element.
131
+ *
132
+ * @public
133
+ * @remarks
134
+ * Reflects the {@link https://developer.mozilla.org/docs/Web/API/ElementInternals/form | `ElementInternals.form`} property.
135
+ */
136
+ get form(): HTMLFormElement | null;
137
+ /**
138
+ * The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
139
+ *
140
+ * @internal
141
+ */
142
+ elementInternals: ElementInternals;
143
+ /**
144
+ * The form-associated flag.
145
+ * @see {@link https://html.spec.whatwg.org/multipage/custom-elements.html#custom-elements-face-example | Form-associated custom elements}
146
+ *
147
+ * @public
148
+ */
149
+ static formAssociated: boolean;
150
+ /**
151
+ * A reference to all associated `<label>` elements.
152
+ *
153
+ * @public
154
+ */
155
+ get labels(): ReadonlyArray<HTMLLabelElement>;
156
+ /**
157
+ * The fallback validation message, taken from a native checkbox `<input>` element.
158
+ *
159
+ * @internal
160
+ */
161
+ private _validationFallbackMessage;
162
+ /**
163
+ * The validation message. Uses the browser's default validation message for native checkboxes if not otherwise
164
+ * specified (e.g., via `setCustomValidity`).
165
+ *
166
+ * @public
167
+ * @remarks
168
+ * Reflects the {@link https://developer.mozilla.org/docs/Web/API/ElementInternals/validationMessage | `ElementInternals.validationMessage`} property.
169
+ */
170
+ get validationMessage(): string;
171
+ /**
172
+ * The element's validity state.
173
+ *
174
+ * @public
175
+ * @remarks
176
+ * Reflects the {@link https://developer.mozilla.org/docs/Web/API/ElementInternals/validity | `ElementInternals.validity`} property.
177
+ */
178
+ get validity(): ValidityState;
179
+ /**
180
+ * The internal value of the input.
181
+ *
182
+ * @internal
183
+ */
184
+ private _value;
185
+ /**
186
+ * The current value of the input.
187
+ *
188
+ * @public
189
+ */
190
+ get value(): string;
191
+ set value(value: string);
192
+ /**
193
+ * Determines if the control can be submitted for constraint validation.
194
+ *
195
+ * @public
196
+ * @remarks
197
+ * Reflects the {@link https://developer.mozilla.org/docs/Web/API/ElementInternals/willValidate | `ElementInternals.willValidate`} property.
198
+ */
199
+ get willValidate(): boolean;
200
+ /**
201
+ * Checks the validity of the element and returns the result.
202
+ *
203
+ * @public
204
+ * @remarks
205
+ * Reflects the {@link https://developer.mozilla.org/docs/Web/API/ElementInternals/checkValidity | `HTMLInputElement.checkValidity()`} method.
206
+ */
207
+ checkValidity(): boolean;
208
+ /**
209
+ * Toggles the checked state when the user clicks the element.
210
+ *
211
+ * @param e - the event object
212
+ * @internal
213
+ */
214
+ clickHandler(e: MouseEvent): boolean | void;
215
+ connectedCallback(): void;
216
+ /**
217
+ * Updates the form value when a user changes the `checked` state.
218
+ *
219
+ * @param e - the event object
220
+ * @internal
221
+ */
222
+ inputHandler(e: InputEvent): boolean | void;
223
+ /**
224
+ * Prevents scrolling when the user presses the space key.
225
+ *
226
+ * @param e - the event object
227
+ * @internal
228
+ */
229
+ keydownHandler(e: KeyboardEvent): boolean | void;
230
+ /**
231
+ * Toggles the checked state when the user releases the space key.
232
+ *
233
+ * @param e - the event object
234
+ * @internal
235
+ */
236
+ keyupHandler(e: KeyboardEvent): boolean | void;
237
+ /**
238
+ * Resets the form value to its initial value when the form is reset.
239
+ *
240
+ * @internal
241
+ */
242
+ formResetCallback(): void;
243
+ /**
244
+ * Reports the validity of the element.
245
+ *
246
+ * @public
247
+ * @remarks
248
+ * Reflects the {@link https://developer.mozilla.org/docs/Web/API/ElementInternals/reportValidity | `HTMLInputElement.reportValidity()`} method.
249
+ */
250
+ reportValidity(): boolean;
251
+ /**
252
+ * Sets the ARIA checked state.
253
+ *
254
+ * @param value - The checked state
255
+ * @internal
256
+ */
257
+ protected setAriaChecked(value?: boolean): void;
258
+ /**
259
+ * Reflects the {@link https://developer.mozilla.org/docs/Web/API/ElementInternals/setFormValue | `ElementInternals.setFormValue()`} method.
260
+ *
261
+ * @internal
262
+ */
263
+ setFormValue(value: File | string | FormData | null, state?: File | string | FormData | null): void;
264
+ /**
265
+ * Sets a custom validity message.
266
+ *
267
+ * @param message - The message to set
268
+ * @public
269
+ */
270
+ setCustomValidity(message: string): void;
271
+ /**
272
+ * Sets the validity of the control.
273
+ *
274
+ * @param flags - Validity flags to set.
275
+ * @param message - Optional message to supply. If not provided, the control's `validationMessage` will be used.
276
+ * @param anchor - Optional anchor to use for the validation message.
277
+ *
278
+ * @internal
279
+ */
280
+ setValidity(flags?: Partial<ValidityState>, message?: string, anchor?: HTMLElement): void;
281
+ /**
282
+ * Toggles the checked state of the control.
283
+ *
284
+ * @param force - Forces the element to be checked or unchecked
285
+ * @public
286
+ */
287
+ toggleChecked(force?: boolean): void;
288
+ }
@@ -1,292 +1,5 @@
1
- import { FASTElement } from '@microsoft/fast-element';
1
+ import { BaseCheckbox } from './checkbox.base.js';
2
2
  import { CheckboxShape, CheckboxSize } from './checkbox.options.js';
3
- /**
4
- * The base class for a component with a toggleable checked state.
5
- *
6
- * @public
7
- */
8
- export declare class BaseCheckbox extends FASTElement {
9
- /**
10
- * Indicates that the element should get focus after the page finishes loading.
11
- * @see The {@link https://developer.mozilla.org/docs/Web/HTML/Element/input#autofocus | `autofocus`} attribute
12
- *
13
- * @public
14
- * @remarks
15
- * HTML Attribute: `autofocus`
16
- */
17
- autofocus: boolean;
18
- /**
19
- * The element's current checked state.
20
- *
21
- * @public
22
- */
23
- get checked(): boolean;
24
- set checked(next: boolean);
25
- /**
26
- * The disabled state of the control.
27
- *
28
- * @public
29
- */
30
- disabled?: boolean;
31
- /**
32
- * Toggles the disabled state when the user changes the `disabled` property.
33
- *
34
- * @internal
35
- */
36
- protected disabledChanged(prev: boolean | undefined, next: boolean | undefined): void;
37
- /**
38
- * The initial disabled state of the control.
39
- *
40
- * @public
41
- * @remarks
42
- * HTML Attribute: `disabled`
43
- */
44
- disabledAttribute?: boolean;
45
- /**
46
- * Sets the disabled state when the `disabled` attribute changes.
47
- *
48
- * @param prev - the previous value
49
- * @param next - the current value
50
- * @internal
51
- */
52
- protected disabledAttributeChanged(prev: boolean | undefined, next: boolean | undefined): void;
53
- /**
54
- * The id of a form to associate the element to.
55
- * @see The {@link https://developer.mozilla.org/docs/Web/HTML/Element/input#form | `form`} attribute
56
- *
57
- * @public
58
- * @remarks
59
- * HTML Attribute: `form`
60
- */
61
- formAttribute?: string;
62
- /**
63
- * The initial checked state of the element.
64
- *
65
- * @public
66
- * @remarks
67
- * HTML Attribute: `checked`
68
- */
69
- initialChecked?: boolean;
70
- /**
71
- * Updates the checked state when the `checked` attribute is changed, unless the checked state has been changed by the user.
72
- *
73
- * @param prev - The previous initial checked state
74
- * @param next - The current initial checked state
75
- * @internal
76
- */
77
- protected initialCheckedChanged(prev: boolean | undefined, next: boolean | undefined): void;
78
- /**
79
- * The initial value of the input.
80
- *
81
- * @public
82
- * @remarks
83
- * HTML Attribute: `value`
84
- */
85
- initialValue: string;
86
- /**
87
- * Sets the value of the input when the `value` attribute changes.
88
- *
89
- * @param prev - The previous initial value
90
- * @param next - The current initial value
91
- * @internal
92
- */
93
- protected initialValueChanged(prev: string, next: string): void;
94
- /**
95
- * The name of the element. This element's value will be surfaced during form submission under the provided name.
96
- *
97
- * @public
98
- * @remarks
99
- * HTML Attribute: `name`
100
- */
101
- name: string;
102
- /**
103
- * The element's required state.
104
- *
105
- * @public
106
- * @remarks
107
- * HTML Attribute: `required`
108
- */
109
- required: boolean;
110
- /**
111
- * Sets the validity of the control when the required state changes.
112
- *
113
- * @param prev - The previous required state
114
- * @param next - The current required state
115
- * @internal
116
- */
117
- protected requiredChanged(prev: boolean, next: boolean): void;
118
- /**
119
- * The internal checked state of the control.
120
- *
121
- * @internal
122
- */
123
- private _checked?;
124
- /**
125
- * Indicates that the checked state has been changed by the user.
126
- *
127
- * @internal
128
- */
129
- private dirtyChecked;
130
- /**
131
- * The associated `<form>` element.
132
- *
133
- * @public
134
- * @remarks
135
- * Reflects the {@link https://developer.mozilla.org/docs/Web/API/ElementInternals/form | `ElementInternals.form`} property.
136
- */
137
- get form(): HTMLFormElement | null;
138
- /**
139
- * The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
140
- *
141
- * @internal
142
- */
143
- elementInternals: ElementInternals;
144
- /**
145
- * The form-associated flag.
146
- * @see {@link https://html.spec.whatwg.org/multipage/custom-elements.html#custom-elements-face-example | Form-associated custom elements}
147
- *
148
- * @public
149
- */
150
- static formAssociated: boolean;
151
- /**
152
- * A reference to all associated `<label>` elements.
153
- *
154
- * @public
155
- */
156
- get labels(): ReadonlyArray<HTMLLabelElement>;
157
- /**
158
- * The fallback validation message, taken from a native checkbox `<input>` element.
159
- *
160
- * @internal
161
- */
162
- private _validationFallbackMessage;
163
- /**
164
- * The validation message. Uses the browser's default validation message for native checkboxes if not otherwise
165
- * specified (e.g., via `setCustomValidity`).
166
- *
167
- * @public
168
- * @remarks
169
- * Reflects the {@link https://developer.mozilla.org/docs/Web/API/ElementInternals/validationMessage | `ElementInternals.validationMessage`} property.
170
- */
171
- get validationMessage(): string;
172
- /**
173
- * The element's validity state.
174
- *
175
- * @public
176
- * @remarks
177
- * Reflects the {@link https://developer.mozilla.org/docs/Web/API/ElementInternals/validity | `ElementInternals.validity`} property.
178
- */
179
- get validity(): ValidityState;
180
- /**
181
- * The internal value of the input.
182
- *
183
- * @internal
184
- */
185
- private _value;
186
- /**
187
- * The current value of the input.
188
- *
189
- * @public
190
- */
191
- get value(): string;
192
- set value(value: string);
193
- /**
194
- * Determines if the control can be submitted for constraint validation.
195
- *
196
- * @public
197
- * @remarks
198
- * Reflects the {@link https://developer.mozilla.org/docs/Web/API/ElementInternals/willValidate | `ElementInternals.willValidate`} property.
199
- */
200
- get willValidate(): boolean;
201
- /**
202
- * Checks the validity of the element and returns the result.
203
- *
204
- * @public
205
- * @remarks
206
- * Reflects the {@link https://developer.mozilla.org/docs/Web/API/ElementInternals/checkValidity | `HTMLInputElement.checkValidity()`} method.
207
- */
208
- checkValidity(): boolean;
209
- /**
210
- * Toggles the checked state when the user clicks the element.
211
- *
212
- * @param e - the event object
213
- * @internal
214
- */
215
- clickHandler(e: MouseEvent): boolean | void;
216
- connectedCallback(): void;
217
- /**
218
- * Updates the form value when a user changes the `checked` state.
219
- *
220
- * @param e - the event object
221
- * @internal
222
- */
223
- inputHandler(e: InputEvent): boolean | void;
224
- /**
225
- * Prevents scrolling when the user presses the space key.
226
- *
227
- * @param e - the event object
228
- * @internal
229
- */
230
- keydownHandler(e: KeyboardEvent): boolean | void;
231
- /**
232
- * Toggles the checked state when the user releases the space key.
233
- *
234
- * @param e - the event object
235
- * @internal
236
- */
237
- keyupHandler(e: KeyboardEvent): boolean | void;
238
- /**
239
- * Resets the form value to its initial value when the form is reset.
240
- *
241
- * @internal
242
- */
243
- formResetCallback(): void;
244
- /**
245
- * Reports the validity of the element.
246
- *
247
- * @public
248
- * @remarks
249
- * Reflects the {@link https://developer.mozilla.org/docs/Web/API/ElementInternals/reportValidity | `HTMLInputElement.reportValidity()`} method.
250
- */
251
- reportValidity(): boolean;
252
- /**
253
- * Sets the ARIA checked state.
254
- *
255
- * @param value - The checked state
256
- * @internal
257
- */
258
- protected setAriaChecked(value?: boolean): void;
259
- /**
260
- * Reflects the {@link https://developer.mozilla.org/docs/Web/API/ElementInternals/setFormValue | `ElementInternals.setFormValue()`} method.
261
- *
262
- * @internal
263
- */
264
- setFormValue(value: File | string | FormData | null, state?: File | string | FormData | null): void;
265
- /**
266
- * Sets a custom validity message.
267
- *
268
- * @param message - The message to set
269
- * @public
270
- */
271
- setCustomValidity(message: string): void;
272
- /**
273
- * Sets the validity of the control.
274
- *
275
- * @param flags - Validity flags to set.
276
- * @param message - Optional message to supply. If not provided, the control's `validationMessage` will be used.
277
- * @param anchor - Optional anchor to use for the validation message.
278
- *
279
- * @internal
280
- */
281
- setValidity(flags?: Partial<ValidityState>, message?: string, anchor?: HTMLElement): void;
282
- /**
283
- * Toggles the checked state of the control.
284
- *
285
- * @param force - Forces the element to be checked or unchecked
286
- * @public
287
- */
288
- toggleChecked(force?: boolean): void;
289
- }
290
3
  /**
291
4
  * A Checkbox Custom HTML Element.
292
5
  * Implements the {@link https://w3c.github.io/aria/#checkbox | ARIA checkbox }.
@@ -1,5 +1,6 @@
1
1
  export { definition as CheckboxDefinition } from './checkbox.definition.js';
2
- export { BaseCheckbox, Checkbox } from './checkbox.js';
2
+ export { BaseCheckbox } from './checkbox.base.js';
3
+ export { Checkbox } from './checkbox.js';
3
4
  export { CheckboxShape, CheckboxSize } from './checkbox.options.js';
4
5
  export type { CheckboxOptions } from './checkbox.options.js';
5
6
  export { styles as CheckboxStyles } from './checkbox.styles.js';
@@ -0,0 +1,49 @@
1
+ import { FASTElement } from '@microsoft/fast-element';
2
+ import { DividerOrientation, DividerRole } from './divider.options.js';
3
+ /**
4
+ * A Divider Custom HTML Element.
5
+ * A divider groups sections of content to create visual rhythm and hierarchy. Use dividers along with spacing and headers to organize content in your layout.
6
+ *
7
+ * @public
8
+ */
9
+ export declare class BaseDivider extends FASTElement {
10
+ /**
11
+ * The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
12
+ *
13
+ * @internal
14
+ */
15
+ elementInternals: ElementInternals;
16
+ /**
17
+ * The role of the element.
18
+ *
19
+ * @public
20
+ * @remarks
21
+ * HTML Attribute: role
22
+ */
23
+ role: DividerRole;
24
+ /**
25
+ * The orientation of the divider.
26
+ *
27
+ * @public
28
+ * @remarks
29
+ * HTML Attribute: orientation
30
+ */
31
+ orientation?: DividerOrientation;
32
+ connectedCallback(): void;
33
+ /**
34
+ * Sets the element's internal role when the role attribute changes.
35
+ *
36
+ * @param previous - the previous role value
37
+ * @param next - the current role value
38
+ * @internal
39
+ */
40
+ roleChanged(previous: string | null, next: string | null): void;
41
+ /**
42
+ * Sets the element's internal orientation when the orientation attribute changes.
43
+ *
44
+ * @param previous - the previous orientation value
45
+ * @param next - the current orientation value
46
+ * @internal
47
+ */
48
+ orientationChanged(previous: DividerRole | undefined, next: DividerRole | undefined): void;
49
+ }
@@ -1,52 +1,5 @@
1
- import { FASTElement } from '@microsoft/fast-element';
2
- import { DividerAlignContent, DividerAppearance, DividerOrientation, DividerRole } from './divider.options.js';
3
- /**
4
- * A Divider Custom HTML Element.
5
- * A divider groups sections of content to create visual rhythm and hierarchy. Use dividers along with spacing and headers to organize content in your layout.
6
- *
7
- * @public
8
- */
9
- export declare class BaseDivider extends FASTElement {
10
- /**
11
- * The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
12
- *
13
- * @internal
14
- */
15
- elementInternals: ElementInternals;
16
- /**
17
- * The role of the element.
18
- *
19
- * @public
20
- * @remarks
21
- * HTML Attribute: role
22
- */
23
- role: DividerRole;
24
- /**
25
- * The orientation of the divider.
26
- *
27
- * @public
28
- * @remarks
29
- * HTML Attribute: orientation
30
- */
31
- orientation?: DividerOrientation;
32
- connectedCallback(): void;
33
- /**
34
- * Sets the element's internal role when the role attribute changes.
35
- *
36
- * @param previous - the previous role value
37
- * @param next - the current role value
38
- * @internal
39
- */
40
- roleChanged(previous: string | null, next: string | null): void;
41
- /**
42
- * Sets the element's internal orientation when the orientation attribute changes.
43
- *
44
- * @param previous - the previous orientation value
45
- * @param next - the current orientation value
46
- * @internal
47
- */
48
- orientationChanged(previous: DividerRole | undefined, next: DividerRole | undefined): void;
49
- }
1
+ import { DividerAlignContent, DividerAppearance } from './divider.options.js';
2
+ import { BaseDivider } from './divider.base.js';
50
3
  /**
51
4
  * A Divider Custom HTML Element.
52
5
  * Based on BaseDivider and includes style and layout specific attributes
@@ -1,4 +1,5 @@
1
- export { BaseDivider, Divider } from './divider.js';
1
+ export { BaseDivider } from './divider.base.js';
2
+ export { Divider } from './divider.js';
2
3
  export { DividerAlignContent, DividerAppearance, DividerOrientation, DividerRole } from './divider.options.js';
3
4
  export { definition as DividerDefinition } from './divider.definition.js';
4
5
  export { template as DividerTemplate } from './divider.template.js';