@fluentui/web-components 3.0.0-beta.20 → 3.0.0-beta.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -2
- package/dist/dts/text-input/index.d.ts +5 -4
- package/dist/dts/text-input/text-input.d.ts +284 -67
- package/dist/dts/text-input/text-input.definition.d.ts +2 -3
- package/dist/dts/text-input/text-input.options.d.ts +19 -29
- package/dist/dts/text-input/text-input.styles.d.ts +5 -2
- package/dist/dts/text-input/text-input.template.d.ts +9 -3
- package/dist/esm/accordion/accordion.js +1 -6
- package/dist/esm/accordion/accordion.js.map +1 -1
- package/dist/esm/accordion-item/accordion-item.js +1 -6
- package/dist/esm/accordion-item/accordion-item.js.map +1 -1
- package/dist/esm/anchor-button/anchor-button.js +1 -6
- package/dist/esm/anchor-button/anchor-button.js.map +1 -1
- package/dist/esm/avatar/avatar.js +1 -6
- package/dist/esm/avatar/avatar.js.map +1 -1
- package/dist/esm/badge/badge.js +1 -6
- package/dist/esm/badge/badge.js.map +1 -1
- package/dist/esm/button/button.js +1 -6
- package/dist/esm/button/button.js.map +1 -1
- package/dist/esm/checkbox/checkbox.js +1 -6
- package/dist/esm/checkbox/checkbox.js.map +1 -1
- package/dist/esm/counter-badge/counter-badge.js +1 -6
- package/dist/esm/counter-badge/counter-badge.js.map +1 -1
- package/dist/esm/dialog/dialog.js +1 -6
- package/dist/esm/dialog/dialog.js.map +1 -1
- package/dist/esm/divider/divider.js +1 -6
- package/dist/esm/divider/divider.js.map +1 -1
- package/dist/esm/image/image.js +1 -6
- package/dist/esm/image/image.js.map +1 -1
- package/dist/esm/label/label.js +1 -6
- package/dist/esm/label/label.js.map +1 -1
- package/dist/esm/menu/menu.js +1 -6
- package/dist/esm/menu/menu.js.map +1 -1
- package/dist/esm/menu-item/menu-item.js +1 -6
- package/dist/esm/menu-item/menu-item.js.map +1 -1
- package/dist/esm/menu-list/menu-list.js +1 -6
- package/dist/esm/menu-list/menu-list.js.map +1 -1
- package/dist/esm/patterns/aria-globals.js +1 -6
- package/dist/esm/patterns/aria-globals.js.map +1 -1
- package/dist/esm/progress-bar/base-progress.js +1 -6
- package/dist/esm/progress-bar/base-progress.js.map +1 -1
- package/dist/esm/progress-bar/progress-bar.js +1 -6
- package/dist/esm/progress-bar/progress-bar.js.map +1 -1
- package/dist/esm/radio/radio.js +1 -6
- package/dist/esm/radio/radio.js.map +1 -1
- package/dist/esm/radio-group/radio-group.js +1 -6
- package/dist/esm/radio-group/radio-group.js.map +1 -1
- package/dist/esm/slider/slider.js +1 -6
- package/dist/esm/slider/slider.js.map +1 -1
- package/dist/esm/spinner/spinner.js +1 -6
- package/dist/esm/spinner/spinner.js.map +1 -1
- package/dist/esm/switch/switch.js +1 -6
- package/dist/esm/switch/switch.js.map +1 -1
- package/dist/esm/tab/tab.js +1 -6
- package/dist/esm/tab/tab.js.map +1 -1
- package/dist/esm/tabs/tabs.js +1 -6
- package/dist/esm/tabs/tabs.js.map +1 -1
- package/dist/esm/text/text.js +1 -6
- package/dist/esm/text/text.js.map +1 -1
- package/dist/esm/text-input/index.js +3 -3
- package/dist/esm/text-input/index.js.map +1 -1
- package/dist/esm/text-input/text-input.definition.js +2 -3
- package/dist/esm/text-input/text-input.definition.js.map +1 -1
- package/dist/esm/text-input/text-input.js +271 -102
- package/dist/esm/text-input/text-input.js.map +1 -1
- package/dist/esm/text-input/text-input.options.js +25 -18
- package/dist/esm/text-input/text-input.options.js.map +1 -1
- package/dist/esm/text-input/text-input.styles.js +8 -3
- package/dist/esm/text-input/text-input.styles.js.map +1 -1
- package/dist/esm/text-input/text-input.template.js +16 -32
- package/dist/esm/text-input/text-input.template.js.map +1 -1
- package/dist/esm/toggle-button/toggle-button.js +1 -6
- package/dist/esm/toggle-button/toggle-button.js.map +1 -1
- package/dist/fluent-web-components.api.json +346 -217
- package/dist/web-components.d.ts +299 -114
- package/dist/web-components.js +251 -110
- package/dist/web-components.min.js +162 -162
- package/docs/api-report.md +52 -37
- package/package.json +2 -2
- package/dist/dts/text-input/text-field.form-associated.d.ts +0 -14
- package/dist/esm/text-input/text-field.form-associated.js +0 -14
- package/dist/esm/text-input/text-field.form-associated.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
# Change Log - @fluentui/web-components
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Fri, 24 May 2024 04:06:12 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## [3.0.0-beta.21](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.0.0-beta.21)
|
|
8
|
+
|
|
9
|
+
Fri, 24 May 2024 04:06:12 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v3.0.0-beta.20..@fluentui/web-components_v3.0.0-beta.21)
|
|
11
|
+
|
|
12
|
+
### Changes
|
|
13
|
+
|
|
14
|
+
- Use ElementInternals for the TextInput component ([PR #31201](https://github.com/microsoft/fluentui/pull/31201) by 863023+radium-v@users.noreply.github.com)
|
|
15
|
+
|
|
7
16
|
## [3.0.0-beta.20](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.0.0-beta.20)
|
|
8
17
|
|
|
9
|
-
Wed, 22 May 2024 04:06:
|
|
18
|
+
Wed, 22 May 2024 04:06:55 GMT
|
|
10
19
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v3.0.0-beta.19..@fluentui/web-components_v3.0.0-beta.20)
|
|
11
20
|
|
|
12
21
|
### Changes
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { TextInputOptions, TextInput } from './text-input.js';
|
|
2
|
-
export { TextInputType, TextInputAppearance, TextInputControlSize } from './text-input.options.js';
|
|
3
|
-
export { template as TextInputTemplate } from './text-input.template.js';
|
|
4
|
-
export { styles as TextInputStyles } from './text-input.styles.js';
|
|
5
1
|
export { definition as TextInputDefinition } from './text-input.definition.js';
|
|
2
|
+
export { TextInput } from './text-input.js';
|
|
3
|
+
export { TextInputAppearance, TextInputControlSize, TextInputType } from './text-input.options.js';
|
|
4
|
+
export type { TextInputOptions } from './text-input.options.js';
|
|
5
|
+
export { styles as TextInputStyles } from './text-input.styles.js';
|
|
6
|
+
export { template as TextInputTemplate } from './text-input.template.js';
|
|
@@ -1,154 +1,371 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
/// <reference types="web" />
|
|
2
|
+
import { FASTElement } from '@microsoft/fast-element';
|
|
3
|
+
import { StartEnd } from '../patterns/start-end.js';
|
|
4
|
+
import type { TextInputControlSize } from './text-input.options.js';
|
|
5
|
+
import { TextInputAppearance, TextInputType } from './text-input.options.js';
|
|
6
|
+
/**
|
|
7
|
+
* A Text Input Custom HTML Element.
|
|
8
|
+
* Based largely on the {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input | `<input>`} element.
|
|
9
|
+
*
|
|
10
|
+
* @slot start - Content which can be provided before the input
|
|
11
|
+
* @slot end - Content which can be provided after the input
|
|
12
|
+
* @slot - The default slot for button content
|
|
13
|
+
* @csspart label - The internal `<label>` element
|
|
14
|
+
* @csspart root - the root container for the internal control
|
|
15
|
+
* @csspart control - The internal `<input>` control
|
|
16
|
+
* @public
|
|
17
|
+
*/
|
|
18
|
+
export declare class TextInput extends FASTElement {
|
|
8
19
|
/**
|
|
9
|
-
*
|
|
20
|
+
* Indicates the styled appearance of the element.
|
|
10
21
|
*
|
|
11
22
|
* @public
|
|
12
|
-
* @default '
|
|
23
|
+
* @default 'outline'
|
|
13
24
|
* @remarks
|
|
14
|
-
* HTML Attribute:
|
|
25
|
+
* HTML Attribute: `appearance`
|
|
15
26
|
*/
|
|
16
|
-
|
|
27
|
+
appearance?: TextInputAppearance;
|
|
17
28
|
/**
|
|
18
|
-
*
|
|
29
|
+
* Indicates the element's autocomplete state.
|
|
30
|
+
* @see The {@link https://developer.mozilla.org/docs/Web/HTML/Attributes/autocomplete | `autocomplete`} attribute
|
|
19
31
|
*
|
|
20
32
|
* @public
|
|
21
|
-
* @default 'outline'
|
|
22
33
|
* @remarks
|
|
23
|
-
* HTML Attribute:
|
|
34
|
+
* HTML Attribute: `autocomplete`
|
|
24
35
|
*/
|
|
25
|
-
|
|
36
|
+
autocomplete?: string;
|
|
26
37
|
/**
|
|
27
|
-
*
|
|
38
|
+
* Indicates that the element should get focus after the page finishes loading.
|
|
39
|
+
* @see The {@link https://developer.mozilla.org/docs/Web/HTML/Element/input#autofocus | `autofocus`} attribute
|
|
40
|
+
*
|
|
28
41
|
* @public
|
|
29
42
|
* @remarks
|
|
30
|
-
* HTML Attribute:
|
|
43
|
+
* HTML Attribute: `autofocus`
|
|
31
44
|
*/
|
|
32
|
-
|
|
33
|
-
protected readOnlyChanged(): void;
|
|
45
|
+
autofocus: boolean;
|
|
34
46
|
/**
|
|
35
|
-
*
|
|
47
|
+
* Sets the size of the control.
|
|
48
|
+
*
|
|
36
49
|
* @public
|
|
50
|
+
* @default 'medium'
|
|
37
51
|
* @remarks
|
|
38
|
-
* HTML Attribute:
|
|
52
|
+
* HTML Attribute: `control-size`
|
|
39
53
|
*/
|
|
40
|
-
|
|
41
|
-
protected autofocusChanged(): void;
|
|
54
|
+
controlSize?: TextInputControlSize;
|
|
42
55
|
/**
|
|
43
|
-
*
|
|
56
|
+
* The default slotted content. This is the content that appears in the text field label.
|
|
57
|
+
*
|
|
58
|
+
* @internal
|
|
59
|
+
*/
|
|
60
|
+
defaultSlottedNodes: Node[];
|
|
61
|
+
/**
|
|
62
|
+
* Updates the control label visibility based on the presence of default slotted content.
|
|
63
|
+
*
|
|
64
|
+
* @internal
|
|
65
|
+
*/
|
|
66
|
+
defaultSlottedNodesChanged(prev: Node[] | undefined, next: Node[] | undefined): void;
|
|
67
|
+
/**
|
|
68
|
+
* Sets the directionality of the element to be submitted with form data.
|
|
69
|
+
* @see The {@link https://developer.mozilla.org/docs/Web/HTML/Attributes/dirname | `dirname`} attribute
|
|
70
|
+
*
|
|
44
71
|
* @public
|
|
45
72
|
* @remarks
|
|
46
|
-
* HTML Attribute:
|
|
47
|
-
* Using this attribute does is not a valid substitute for a labeling element.
|
|
73
|
+
* HTML Attribute: `dirname`
|
|
48
74
|
*/
|
|
49
|
-
|
|
50
|
-
protected placeholderChanged(): void;
|
|
75
|
+
dirname?: string;
|
|
51
76
|
/**
|
|
52
|
-
*
|
|
77
|
+
* Sets the element's disabled state.
|
|
78
|
+
* @see The {@link https://developer.mozilla.org/docs/Web/HTML/Attributes/disabled | `disabled`} attribute
|
|
79
|
+
*
|
|
53
80
|
* @public
|
|
54
81
|
* @remarks
|
|
55
|
-
* HTML Attribute:
|
|
82
|
+
* HTML Attribute: `disabled`
|
|
56
83
|
*/
|
|
57
|
-
|
|
58
|
-
|
|
84
|
+
disabled?: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* The id of a form to associate the element to.
|
|
87
|
+
* @see The {@link https://developer.mozilla.org/docs/Web/HTML/Element/input#form | `form`} attribute
|
|
88
|
+
*
|
|
89
|
+
* @public
|
|
90
|
+
* @remarks
|
|
91
|
+
* HTML Attribute: `form`
|
|
92
|
+
*/
|
|
93
|
+
formAttribute?: string;
|
|
94
|
+
/**
|
|
95
|
+
* The initial value of the input.
|
|
96
|
+
*
|
|
97
|
+
* @public
|
|
98
|
+
* @remarks
|
|
99
|
+
* HTML Attribute: `value`
|
|
100
|
+
*/
|
|
101
|
+
initialValue: string;
|
|
59
102
|
/**
|
|
60
|
-
*
|
|
103
|
+
* Sets the value of the element to the initial value.
|
|
104
|
+
*
|
|
105
|
+
* @internal
|
|
106
|
+
*/
|
|
107
|
+
initialValueChanged(): void;
|
|
108
|
+
/**
|
|
109
|
+
* Allows associating a `<datalist>` to the element by ID.
|
|
110
|
+
* @see The {@link https://developer.mozilla.org/docs/Web/HTML/Element/input#list | `list`} attribute
|
|
111
|
+
*
|
|
61
112
|
* @public
|
|
62
113
|
* @remarks
|
|
63
|
-
* HTML Attribute: list
|
|
114
|
+
* HTML Attribute: `list`
|
|
64
115
|
*/
|
|
65
116
|
list: string;
|
|
66
|
-
protected listChanged(): void;
|
|
67
117
|
/**
|
|
68
118
|
* The maximum number of characters a user can enter.
|
|
119
|
+
*
|
|
69
120
|
* @public
|
|
70
121
|
* @remarks
|
|
71
|
-
*
|
|
122
|
+
* HTML Attribute: `maxlength`
|
|
72
123
|
*/
|
|
73
124
|
maxlength: number;
|
|
74
|
-
protected maxlengthChanged(): void;
|
|
75
125
|
/**
|
|
76
126
|
* The minimum number of characters a user can enter.
|
|
127
|
+
* @see The {@link https://developer.mozilla.org/docs/Web/HTML/Attributes/minlength | `minlength`} attribute
|
|
128
|
+
*
|
|
77
129
|
* @public
|
|
78
130
|
* @remarks
|
|
79
|
-
*
|
|
131
|
+
* HTML Attribute: `minlength`
|
|
80
132
|
*/
|
|
81
133
|
minlength: number;
|
|
82
|
-
|
|
134
|
+
/**
|
|
135
|
+
* Indicates that a comma-separated list of email addresses can be entered. This attribute is only valid when `type="email"`.
|
|
136
|
+
* @see The {@link https://developer.mozilla.org/docs/Web/HTML/Attributes/multiple | `multiple`} attribute
|
|
137
|
+
*
|
|
138
|
+
* @public
|
|
139
|
+
* @remarks
|
|
140
|
+
* HTML Attribute: `multiple`
|
|
141
|
+
*/
|
|
142
|
+
multiple: boolean;
|
|
143
|
+
/**
|
|
144
|
+
* The name of the element. This element's value will be surfaced during form submission under the provided name.
|
|
145
|
+
*
|
|
146
|
+
* @public
|
|
147
|
+
* @remarks
|
|
148
|
+
* HTML Attribute: `name`
|
|
149
|
+
*/
|
|
150
|
+
name: string;
|
|
83
151
|
/**
|
|
84
152
|
* A regular expression that the value must match to pass validation.
|
|
153
|
+
*
|
|
85
154
|
* @public
|
|
86
155
|
* @remarks
|
|
87
|
-
*
|
|
156
|
+
* HTML Attribute: `pattern`
|
|
88
157
|
*/
|
|
89
158
|
pattern: string;
|
|
90
|
-
|
|
159
|
+
/**
|
|
160
|
+
* Sets the placeholder value of the element, generally used to provide a hint to the user.
|
|
161
|
+
* @see The {@link https://developer.mozilla.org/docs/Web/HTML/Attributes/placeholder | `placeholder`} attribute
|
|
162
|
+
*
|
|
163
|
+
* @public
|
|
164
|
+
* @remarks
|
|
165
|
+
* HTML Attribute: `placeholder`
|
|
166
|
+
* This attribute is not a valid substitute for a label.
|
|
167
|
+
*/
|
|
168
|
+
placeholder: string;
|
|
169
|
+
/**
|
|
170
|
+
* When true, the control will be immutable by user interaction.
|
|
171
|
+
* @see The {@link https://developer.mozilla.org/docs/Web/HTML/Attributes/readonly | `readonly`} attribute
|
|
172
|
+
*
|
|
173
|
+
* @public
|
|
174
|
+
* @remarks
|
|
175
|
+
* HTML Attribute: `readonly`
|
|
176
|
+
*/
|
|
177
|
+
readonly?: boolean;
|
|
178
|
+
/**
|
|
179
|
+
* Syncs the `ElementInternals.ariaReadOnly` property when the `readonly` property changes.
|
|
180
|
+
*
|
|
181
|
+
* @internal
|
|
182
|
+
*/
|
|
183
|
+
readonlyChanged(): void;
|
|
184
|
+
/**
|
|
185
|
+
* The element's required attribute.
|
|
186
|
+
*
|
|
187
|
+
* @public
|
|
188
|
+
* @remarks
|
|
189
|
+
* HTML Attribute: `required`
|
|
190
|
+
*/
|
|
191
|
+
required: boolean;
|
|
192
|
+
/**
|
|
193
|
+
* Syncs the element's internal `aria-required` state with the `required` attribute.
|
|
194
|
+
*
|
|
195
|
+
* @param previous - the previous required state
|
|
196
|
+
* @param next - the current required state
|
|
197
|
+
*
|
|
198
|
+
* @internal
|
|
199
|
+
*/
|
|
200
|
+
requiredChanged(previous: boolean, next: boolean): void;
|
|
91
201
|
/**
|
|
92
202
|
* Sets the width of the element to a specified number of characters.
|
|
203
|
+
*
|
|
93
204
|
* @public
|
|
94
205
|
* @remarks
|
|
95
|
-
*
|
|
206
|
+
* HTML Attribute: `size`
|
|
96
207
|
*/
|
|
97
208
|
size: number;
|
|
98
|
-
protected sizeChanged(): void;
|
|
99
209
|
/**
|
|
100
210
|
* Controls whether or not to enable spell checking for the input field, or if the default spell checking configuration should be used.
|
|
211
|
+
* @see The {@link https://developer.mozilla.org/docs/Web/HTML/Global_attributes/spellcheck | `spellcheck`} attribute
|
|
212
|
+
*
|
|
101
213
|
* @public
|
|
102
214
|
* @remarks
|
|
103
|
-
*
|
|
215
|
+
* HTML Attribute: `spellcheck`
|
|
104
216
|
*/
|
|
105
217
|
spellcheck: boolean;
|
|
106
|
-
protected spellcheckChanged(): void;
|
|
107
218
|
/**
|
|
219
|
+
* Allows setting a type or mode of text.
|
|
220
|
+
*
|
|
221
|
+
* @public
|
|
222
|
+
* @remarks
|
|
223
|
+
* HTML Attribute: `type`
|
|
224
|
+
*/
|
|
225
|
+
type: TextInputType;
|
|
226
|
+
/**
|
|
227
|
+
* The current value of the input.
|
|
228
|
+
*
|
|
108
229
|
* @internal
|
|
109
230
|
*/
|
|
110
|
-
|
|
231
|
+
private _value;
|
|
111
232
|
/**
|
|
112
|
-
* A reference to the internal input element
|
|
233
|
+
* A reference to the internal input element.
|
|
234
|
+
*
|
|
113
235
|
* @internal
|
|
114
236
|
*/
|
|
115
237
|
control: HTMLInputElement;
|
|
116
238
|
/**
|
|
239
|
+
* A reference to the internal label element.
|
|
240
|
+
*
|
|
241
|
+
* @internal
|
|
242
|
+
*/
|
|
243
|
+
controlLabel: HTMLLabelElement;
|
|
244
|
+
/**
|
|
245
|
+
* Indicates that the value has been changed by the user.
|
|
246
|
+
*
|
|
247
|
+
* @internal
|
|
248
|
+
*/
|
|
249
|
+
private dirtyValue;
|
|
250
|
+
/**
|
|
251
|
+
* The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
|
|
252
|
+
*
|
|
253
|
+
* @internal
|
|
254
|
+
*/
|
|
255
|
+
protected elementInternals: ElementInternals;
|
|
256
|
+
/**
|
|
257
|
+
* The form-associated flag.
|
|
258
|
+
* @see {@link https://html.spec.whatwg.org/multipage/custom-elements.html#custom-elements-face-example | Form-associated custom elements}
|
|
259
|
+
*
|
|
260
|
+
* @public
|
|
261
|
+
*/
|
|
262
|
+
static readonly formAssociated = true;
|
|
263
|
+
/**
|
|
264
|
+
* The element's validity state.
|
|
265
|
+
*
|
|
266
|
+
* @public
|
|
267
|
+
* @remarks
|
|
268
|
+
* Reflects the {@link https://developer.mozilla.org/docs/Web/API/ElementInternals/validity | `ElementInternals.validity`} property.
|
|
269
|
+
*/
|
|
270
|
+
get validity(): ValidityState;
|
|
271
|
+
/**
|
|
272
|
+
* The validation message.
|
|
273
|
+
*
|
|
274
|
+
* @public
|
|
275
|
+
* @remarks
|
|
276
|
+
* Reflects the {@link https://developer.mozilla.org/docs/Web/API/ElementInternals/validationMessage | `ElementInternals.validationMessage`} property.
|
|
277
|
+
*/
|
|
278
|
+
get validationMessage(): string;
|
|
279
|
+
/**
|
|
280
|
+
* The current value of the input.
|
|
281
|
+
* @public
|
|
282
|
+
*/
|
|
283
|
+
get value(): string;
|
|
284
|
+
set value(value: string);
|
|
285
|
+
/**
|
|
286
|
+
* Determines if the control can be submitted for constraint validation.
|
|
287
|
+
*
|
|
288
|
+
* @public
|
|
289
|
+
* @remarks
|
|
290
|
+
* Reflects the {@link https://developer.mozilla.org/docs/Web/API/ElementInternals/willValidate | `ElementInternals.willValidate`} property.
|
|
291
|
+
*/
|
|
292
|
+
get willValidate(): boolean;
|
|
293
|
+
/**
|
|
294
|
+
* The associated form element.
|
|
295
|
+
*
|
|
296
|
+
* @public
|
|
297
|
+
* @remarks
|
|
298
|
+
* Reflects the {@link https://developer.mozilla.org/docs/Web/API/ElementInternals/form | `ElementInternals.form`} property.
|
|
299
|
+
*/
|
|
300
|
+
get form(): HTMLFormElement | null;
|
|
301
|
+
/**
|
|
302
|
+
* Change event handler for inner control.
|
|
303
|
+
*
|
|
117
304
|
* @internal
|
|
305
|
+
* @privateRemarks
|
|
306
|
+
* "Change" events are not `composable` so they will not permeate the shadow DOM boundary. This function effectively
|
|
307
|
+
* proxies the change event, emitting a `change` event whenever the internal control emits a `change` event.
|
|
118
308
|
*/
|
|
309
|
+
changeHandler(e: InputEvent): void;
|
|
119
310
|
connectedCallback(): void;
|
|
311
|
+
disconnectedCallback(): void;
|
|
312
|
+
/**
|
|
313
|
+
* Resets the value to its initial value when the form is reset.
|
|
314
|
+
*
|
|
315
|
+
* @internal
|
|
316
|
+
*/
|
|
317
|
+
formResetCallback(): void;
|
|
120
318
|
/**
|
|
121
|
-
*
|
|
319
|
+
* Handles implicit form submission when the user presses the "Enter" key.
|
|
320
|
+
*
|
|
321
|
+
* @internal
|
|
322
|
+
*/
|
|
323
|
+
private implicitSubmit;
|
|
324
|
+
/**
|
|
325
|
+
* Handles the internal control's `input` event.
|
|
326
|
+
*
|
|
327
|
+
* @internal
|
|
328
|
+
*/
|
|
329
|
+
inputHandler(e: InputEvent): boolean | void;
|
|
330
|
+
/**
|
|
331
|
+
* Handles the internal control's `keypress` event.
|
|
332
|
+
*
|
|
333
|
+
* @internal
|
|
334
|
+
*/
|
|
335
|
+
keypressHandler(e: KeyboardEvent): boolean | void;
|
|
336
|
+
/**
|
|
337
|
+
* Selects all the text in the text field.
|
|
122
338
|
*
|
|
123
339
|
* @public
|
|
340
|
+
* @privateRemarks
|
|
341
|
+
* The `select` event does not permeate the shadow DOM boundary. This function effectively proxies the event,
|
|
342
|
+
* emitting a `select` event whenever the internal control emits a `select` event
|
|
343
|
+
*
|
|
124
344
|
*/
|
|
125
345
|
select(): void;
|
|
126
346
|
/**
|
|
127
|
-
*
|
|
347
|
+
* Reflects the {@link https://developer.mozilla.org/docs/Web/API/ElementInternals/setFormValue | `ElementInternals.setFormValue()`} method.
|
|
348
|
+
*
|
|
128
349
|
* @internal
|
|
129
350
|
*/
|
|
130
|
-
|
|
351
|
+
setFormValue(value: File | string | FormData | null, state?: File | string | FormData | null): void;
|
|
131
352
|
/**
|
|
132
|
-
*
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
-
*
|
|
353
|
+
* Sets the validity of the control.
|
|
354
|
+
*
|
|
355
|
+
* @param flags - Validity flags. If not provided, the control's `validity` will be used.
|
|
356
|
+
* @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.
|
|
357
|
+
* @param anchor - Optional anchor to use for the validation message. If not provided, the control will be used.
|
|
358
|
+
*
|
|
138
359
|
* @internal
|
|
139
360
|
*/
|
|
140
|
-
|
|
141
|
-
/** {@inheritDoc (FormAssociated:interface).validate} */
|
|
142
|
-
validate(): void;
|
|
361
|
+
setValidity(flags?: ValidityStateFlags, message?: string, anchor?: HTMLElement): void;
|
|
143
362
|
}
|
|
144
363
|
/**
|
|
145
|
-
*
|
|
146
|
-
*
|
|
147
|
-
*
|
|
364
|
+
* @internal
|
|
365
|
+
* @privateRemarks
|
|
366
|
+
* Mark internal because exporting class and interface of the same name
|
|
367
|
+
* confuses API documenter.
|
|
368
|
+
* TODO: https://github.com/microsoft/rushstack/issues/1308
|
|
148
369
|
*/
|
|
149
|
-
export
|
|
150
|
-
}
|
|
151
|
-
export interface DelegatesARIATextbox extends ARIAGlobalStatesAndProperties {
|
|
152
|
-
}
|
|
153
|
-
export interface TextInput extends StartEnd, DelegatesARIATextbox {
|
|
370
|
+
export interface TextInput extends StartEnd {
|
|
154
371
|
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { TextInput } from './text-input.js';
|
|
2
2
|
/**
|
|
3
|
-
* The Fluent TextInput Element.
|
|
4
|
-
*
|
|
3
|
+
* The Fluent TextInput Element definition.
|
|
5
4
|
*
|
|
6
5
|
* @public
|
|
7
6
|
* @remarks
|
|
8
|
-
* HTML Element:
|
|
7
|
+
* HTML Element: `<fluent-text-input>`
|
|
9
8
|
*/
|
|
10
9
|
export declare const definition: import("@microsoft/fast-element").FASTElementDefinition<typeof TextInput>;
|
|
@@ -1,6 +1,15 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { StartEndOptions } from '../patterns/start-end.js';
|
|
2
|
+
import type { ValuesOf } from '../utils/typings.js';
|
|
3
|
+
import type { TextInput } from './text-input.js';
|
|
2
4
|
/**
|
|
3
|
-
* TextInput
|
|
5
|
+
* TextInput configuration options.
|
|
6
|
+
*
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export declare type TextInputOptions = StartEndOptions<TextInput>;
|
|
10
|
+
/**
|
|
11
|
+
* Values for the `control-size` attribute on TextInput elements.
|
|
12
|
+
*
|
|
4
13
|
* @public
|
|
5
14
|
*/
|
|
6
15
|
export declare const TextInputControlSize: {
|
|
@@ -8,13 +17,10 @@ export declare const TextInputControlSize: {
|
|
|
8
17
|
readonly medium: "medium";
|
|
9
18
|
readonly large: "large";
|
|
10
19
|
};
|
|
11
|
-
/**
|
|
12
|
-
* Applies size styling to TextInput
|
|
13
|
-
* @public
|
|
14
|
-
*/
|
|
15
20
|
export declare type TextInputControlSize = ValuesOf<typeof TextInputControlSize>;
|
|
16
21
|
/**
|
|
17
|
-
*
|
|
22
|
+
* Values for the `appearance` attribute on TextInput elements.
|
|
23
|
+
*
|
|
18
24
|
* @public
|
|
19
25
|
*/
|
|
20
26
|
export declare const TextInputAppearance: {
|
|
@@ -23,39 +29,23 @@ export declare const TextInputAppearance: {
|
|
|
23
29
|
readonly filledLighter: "filled-lighter";
|
|
24
30
|
readonly filledDarker: "filled-darker";
|
|
25
31
|
};
|
|
26
|
-
/**
|
|
27
|
-
* Applies appearance styling to TextInput
|
|
28
|
-
* @public
|
|
29
|
-
*/
|
|
30
32
|
export declare type TextInputAppearance = ValuesOf<typeof TextInputAppearance>;
|
|
31
33
|
/**
|
|
32
|
-
*
|
|
34
|
+
* Values for the `type` attribute on TextInput elements.
|
|
35
|
+
*
|
|
33
36
|
* @public
|
|
34
37
|
*/
|
|
35
38
|
export declare const TextInputType: {
|
|
36
|
-
/**
|
|
37
|
-
* An email TextInput
|
|
38
|
-
*/
|
|
39
39
|
readonly email: "email";
|
|
40
|
-
/**
|
|
41
|
-
* A password TextInput
|
|
42
|
-
*/
|
|
43
40
|
readonly password: "password";
|
|
44
|
-
/**
|
|
45
|
-
* A telephone TextInput
|
|
46
|
-
*/
|
|
47
41
|
readonly tel: "tel";
|
|
48
|
-
/**
|
|
49
|
-
* A text TextInput
|
|
50
|
-
*/
|
|
51
42
|
readonly text: "text";
|
|
52
|
-
/**
|
|
53
|
-
* A URL TextInput
|
|
54
|
-
*/
|
|
55
43
|
readonly url: "url";
|
|
56
44
|
};
|
|
45
|
+
export declare type TextInputType = ValuesOf<typeof TextInputType>;
|
|
57
46
|
/**
|
|
58
|
-
*
|
|
47
|
+
* Input types that block implicit form submission.
|
|
48
|
+
*
|
|
59
49
|
* @public
|
|
60
50
|
*/
|
|
61
|
-
export declare
|
|
51
|
+
export declare const ImplicitSubmissionBlockingTypes: string[];
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import type { ElementStyles } from '@microsoft/fast-element';
|
|
2
|
+
/**
|
|
3
|
+
* Styles for the TextInput component.
|
|
4
|
+
*
|
|
2
5
|
* @public
|
|
3
6
|
*/
|
|
4
|
-
export declare const styles:
|
|
7
|
+
export declare const styles: ElementStyles;
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import { ElementViewTemplate } from '@microsoft/fast-element';
|
|
2
|
-
import type { TextInput
|
|
3
|
-
|
|
1
|
+
import type { ElementViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import type { TextInput } from './text-input.js';
|
|
3
|
+
import type { TextInputOptions } from './text-input.options.js';
|
|
4
|
+
/**
|
|
5
|
+
* Generates a template for the TextInput component.
|
|
6
|
+
*
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export declare function textInputTemplate<T extends TextInput>(options?: TextInputOptions): ElementViewTemplate<T>;
|
|
4
10
|
/**
|
|
5
11
|
* @internal
|
|
6
12
|
*/
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
1
|
+
import { __decorate } from "tslib";
|
|
7
2
|
import { Observable } from '@microsoft/fast-element';
|
|
8
3
|
import { attr, FASTElement, observable } from '@microsoft/fast-element';
|
|
9
4
|
import { keyArrowDown, keyArrowUp, keyEnd, keyHome, wrapInBounds } from '@microsoft/fast-web-utilities';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion.js","sourceRoot":"","sources":["../../../src/accordion/accordion.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"accordion.js","sourceRoot":"","sources":["../../../src/accordion/accordion.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AACxG,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7D;;;;;;;GAOG;AACH,MAAM,OAAO,SAAU,SAAQ,WAAW;IAA1C;;QACE;;;;;;;WAOG;QAEI,eAAU,GAAwB,mBAAmB,CAAC,KAAK,CAAC;QAoD3D,oBAAe,GAAW,CAAC,CA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;iBACzD;qBAAM;oBACL,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;oBAEtB,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,EAAE;wBAClC,IAAI,CAAC,YAAY,CAAC,eAAe,CAAC,eAAe,CAAC,CAAC;qBACpD;iBACF;aACF;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IAsCO,UAAU;QAChB,OAAO,IAAI,CAAC,qBAAqB,CAAC,GAAG,CAAC,CAAC,aAA0B,EAAE,EAAE;YACnE,OAAO,aAAa,CAAC,EAAE,CAAC;QAC1B,CAAC,CAAC,CAAC;IACL,CAAC;IAEO,kBAAkB;QACxB,OAAO,IAAI,CAAC,UAAU,KAAK,mBAAmB,CAAC,MAAM,CAAC;IACxD,CAAC;IA0CO,MAAM,CAAC,UAAkB;QAC/B,IAAI,CAAC,eAAe,GAAG,YAAY,CAAC,CAAC,EAAE,IAAI,CAAC,cAAc,CAAC,MAAM,GAAG,CAAC,EAAE,IAAI,CAAC,eAAe,GAAG,UAAU,CAAC,CAAC;QAC1G,IAAI,CAAC,SAAS,EAAE,CAAC;IACnB,CAAC;IAEO,SAAS;QACf,MAAM,OAAO,GAAY,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QACnE,IAAI,OAAO,YAAY,aAAa,EAAE;YACpC,OAAO,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC;SAC9B;IACH,CAAC;CACF;AAhOC;IADC,IAAI,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,CAAC;6CACgC;AAuBnE;IADC,UAAU;wDACkC"}
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
1
|
+
import { __decorate } from "tslib";
|
|
7
2
|
import { attr, FASTElement, nullableNumberConverter } from '@microsoft/fast-element';
|
|
8
3
|
import { uniqueId } from '@microsoft/fast-web-utilities';
|
|
9
4
|
import { StartEnd } from '../patterns/index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion-item.js","sourceRoot":"","sources":["../../../src/accordion-item/accordion-item.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"accordion-item.js","sourceRoot":"","sources":["../../../src/accordion-item/accordion-item.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AACrF,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAEzD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAYvD;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,OAAO,aAAc,SAAQ,WAAW;IAA9C;;QACE;;;;;;;;WAQG;QAMI,iBAAY,GAA0B,CAAC,CAAC;QAE/C;;;;;;WAMG;QAEI,aAAQ,GAAY,KAAK,CAAC;QAEjC;;;;;;WAMG;QAEI,aAAQ,GAAY,KAAK,CAAC;QAEjC;;;;;;WAMG;QAEI,OAAE,GAAW,QAAQ,CAAC,YAAY,CAAC,CAAC;QAa3C;;;;;;WAMG;QAEI,UAAK,GAAY,KAAK,CAAC;QAkB9B;;WAEG;QACI,iBAAY,GAAG,CAAC,CAAa,EAAE,EAAE;YACtC,IAAI,IAAI,CAAC,QAAQ,EAAE;gBACjB,OAAO;aACR;YAED,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC,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