@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/dist/web-components.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/// <reference types="web" />
|
|
2
|
+
|
|
1
3
|
import type { Constructable } from '@microsoft/fast-element';
|
|
2
4
|
import { CSSDirective } from '@microsoft/fast-element';
|
|
3
5
|
import { Direction } from '@microsoft/fast-web-utilities';
|
|
@@ -2761,17 +2763,6 @@ declare class DelegatesARIALink {
|
|
|
2761
2763
|
declare interface DelegatesARIALink extends ARIAGlobalStatesAndProperties {
|
|
2762
2764
|
}
|
|
2763
2765
|
|
|
2764
|
-
/**
|
|
2765
|
-
* Includes ARIA states and properties relating to the ARIA textbox role
|
|
2766
|
-
*
|
|
2767
|
-
* @public
|
|
2768
|
-
*/
|
|
2769
|
-
declare class DelegatesARIATextbox {
|
|
2770
|
-
}
|
|
2771
|
-
|
|
2772
|
-
declare interface DelegatesARIATextbox extends ARIAGlobalStatesAndProperties {
|
|
2773
|
-
}
|
|
2774
|
-
|
|
2775
2766
|
/**
|
|
2776
2767
|
* Dialog component that extends the FASTElement class.
|
|
2777
2768
|
*
|
|
@@ -3288,15 +3279,6 @@ declare class FormAssociatedSwitch extends FormAssociatedSwitch_base {
|
|
|
3288
3279
|
|
|
3289
3280
|
declare const FormAssociatedSwitch_base: typeof _Switch;
|
|
3290
3281
|
|
|
3291
|
-
/**
|
|
3292
|
-
* @beta
|
|
3293
|
-
*/
|
|
3294
|
-
declare class FormAssociatedTextField extends FormAssociatedTextField_base {
|
|
3295
|
-
proxy: HTMLInputElement;
|
|
3296
|
-
}
|
|
3297
|
-
|
|
3298
|
-
declare const FormAssociatedTextField_base: typeof _TextField;
|
|
3299
|
-
|
|
3300
3282
|
/**
|
|
3301
3283
|
* Determines the current localization direction of an element.
|
|
3302
3284
|
*
|
|
@@ -5399,12 +5381,6 @@ export declare type TextAlign = ValuesOf<typeof TextAlign>;
|
|
|
5399
5381
|
*/
|
|
5400
5382
|
export declare const TextDefinition: FASTElementDefinition<typeof Text_2>;
|
|
5401
5383
|
|
|
5402
|
-
declare class _TextField extends FASTElement {
|
|
5403
|
-
}
|
|
5404
|
-
|
|
5405
|
-
declare interface _TextField extends FormAssociated {
|
|
5406
|
-
}
|
|
5407
|
-
|
|
5408
5384
|
/**
|
|
5409
5385
|
* TextFont Constants
|
|
5410
5386
|
* @public
|
|
@@ -5421,149 +5397,377 @@ export declare const TextFont: {
|
|
|
5421
5397
|
*/
|
|
5422
5398
|
export declare type TextFont = ValuesOf<typeof TextFont>;
|
|
5423
5399
|
|
|
5424
|
-
|
|
5400
|
+
/**
|
|
5401
|
+
* A Text Input Custom HTML Element.
|
|
5402
|
+
* Based largely on the {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input | `<input>`} element.
|
|
5403
|
+
*
|
|
5404
|
+
* @slot start - Content which can be provided before the input
|
|
5405
|
+
* @slot end - Content which can be provided after the input
|
|
5406
|
+
* @slot - The default slot for button content
|
|
5407
|
+
* @csspart label - The internal `<label>` element
|
|
5408
|
+
* @csspart root - the root container for the internal control
|
|
5409
|
+
* @csspart control - The internal `<input>` control
|
|
5410
|
+
* @public
|
|
5411
|
+
*/
|
|
5412
|
+
export declare class TextInput extends FASTElement {
|
|
5425
5413
|
/**
|
|
5426
|
-
*
|
|
5414
|
+
* Indicates the styled appearance of the element.
|
|
5427
5415
|
*
|
|
5428
5416
|
* @public
|
|
5429
|
-
* @default '
|
|
5417
|
+
* @default 'outline'
|
|
5430
5418
|
* @remarks
|
|
5431
|
-
* HTML Attribute:
|
|
5419
|
+
* HTML Attribute: `appearance`
|
|
5432
5420
|
*/
|
|
5433
|
-
|
|
5421
|
+
appearance?: TextInputAppearance;
|
|
5434
5422
|
/**
|
|
5435
|
-
*
|
|
5423
|
+
* Indicates the element's autocomplete state.
|
|
5424
|
+
* @see The {@link https://developer.mozilla.org/docs/Web/HTML/Attributes/autocomplete | `autocomplete`} attribute
|
|
5436
5425
|
*
|
|
5437
5426
|
* @public
|
|
5438
|
-
* @default 'outline'
|
|
5439
5427
|
* @remarks
|
|
5440
|
-
* HTML Attribute:
|
|
5428
|
+
* HTML Attribute: `autocomplete`
|
|
5441
5429
|
*/
|
|
5442
|
-
|
|
5430
|
+
autocomplete?: string;
|
|
5443
5431
|
/**
|
|
5444
|
-
*
|
|
5432
|
+
* Indicates that the element should get focus after the page finishes loading.
|
|
5433
|
+
* @see The {@link https://developer.mozilla.org/docs/Web/HTML/Element/input#autofocus | `autofocus`} attribute
|
|
5434
|
+
*
|
|
5445
5435
|
* @public
|
|
5446
5436
|
* @remarks
|
|
5447
|
-
* HTML Attribute:
|
|
5437
|
+
* HTML Attribute: `autofocus`
|
|
5448
5438
|
*/
|
|
5449
|
-
|
|
5450
|
-
protected readOnlyChanged(): void;
|
|
5439
|
+
autofocus: boolean;
|
|
5451
5440
|
/**
|
|
5452
|
-
*
|
|
5441
|
+
* Sets the size of the control.
|
|
5442
|
+
*
|
|
5453
5443
|
* @public
|
|
5444
|
+
* @default 'medium'
|
|
5454
5445
|
* @remarks
|
|
5455
|
-
* HTML Attribute:
|
|
5446
|
+
* HTML Attribute: `control-size`
|
|
5456
5447
|
*/
|
|
5457
|
-
|
|
5458
|
-
protected autofocusChanged(): void;
|
|
5448
|
+
controlSize?: TextInputControlSize;
|
|
5459
5449
|
/**
|
|
5460
|
-
*
|
|
5450
|
+
* The default slotted content. This is the content that appears in the text field label.
|
|
5451
|
+
*
|
|
5452
|
+
* @internal
|
|
5453
|
+
*/
|
|
5454
|
+
defaultSlottedNodes: Node[];
|
|
5455
|
+
/**
|
|
5456
|
+
* Updates the control label visibility based on the presence of default slotted content.
|
|
5457
|
+
*
|
|
5458
|
+
* @internal
|
|
5459
|
+
*/
|
|
5460
|
+
defaultSlottedNodesChanged(prev: Node[] | undefined, next: Node[] | undefined): void;
|
|
5461
|
+
/**
|
|
5462
|
+
* Sets the directionality of the element to be submitted with form data.
|
|
5463
|
+
* @see The {@link https://developer.mozilla.org/docs/Web/HTML/Attributes/dirname | `dirname`} attribute
|
|
5464
|
+
*
|
|
5461
5465
|
* @public
|
|
5462
5466
|
* @remarks
|
|
5463
|
-
* HTML Attribute:
|
|
5464
|
-
* Using this attribute does is not a valid substitute for a labeling element.
|
|
5467
|
+
* HTML Attribute: `dirname`
|
|
5465
5468
|
*/
|
|
5466
|
-
|
|
5467
|
-
protected placeholderChanged(): void;
|
|
5469
|
+
dirname?: string;
|
|
5468
5470
|
/**
|
|
5469
|
-
*
|
|
5471
|
+
* Sets the element's disabled state.
|
|
5472
|
+
* @see The {@link https://developer.mozilla.org/docs/Web/HTML/Attributes/disabled | `disabled`} attribute
|
|
5473
|
+
*
|
|
5470
5474
|
* @public
|
|
5471
5475
|
* @remarks
|
|
5472
|
-
* HTML Attribute:
|
|
5476
|
+
* HTML Attribute: `disabled`
|
|
5473
5477
|
*/
|
|
5474
|
-
|
|
5475
|
-
private typeChanged;
|
|
5478
|
+
disabled?: boolean;
|
|
5476
5479
|
/**
|
|
5477
|
-
*
|
|
5480
|
+
* The id of a form to associate the element to.
|
|
5481
|
+
* @see The {@link https://developer.mozilla.org/docs/Web/HTML/Element/input#form | `form`} attribute
|
|
5482
|
+
*
|
|
5483
|
+
* @public
|
|
5484
|
+
* @remarks
|
|
5485
|
+
* HTML Attribute: `form`
|
|
5486
|
+
*/
|
|
5487
|
+
formAttribute?: string;
|
|
5488
|
+
/**
|
|
5489
|
+
* The initial value of the input.
|
|
5490
|
+
*
|
|
5478
5491
|
* @public
|
|
5479
5492
|
* @remarks
|
|
5480
|
-
* HTML Attribute:
|
|
5493
|
+
* HTML Attribute: `value`
|
|
5494
|
+
*/
|
|
5495
|
+
initialValue: string;
|
|
5496
|
+
/**
|
|
5497
|
+
* Sets the value of the element to the initial value.
|
|
5498
|
+
*
|
|
5499
|
+
* @internal
|
|
5500
|
+
*/
|
|
5501
|
+
initialValueChanged(): void;
|
|
5502
|
+
/**
|
|
5503
|
+
* Allows associating a `<datalist>` to the element by ID.
|
|
5504
|
+
* @see The {@link https://developer.mozilla.org/docs/Web/HTML/Element/input#list | `list`} attribute
|
|
5505
|
+
*
|
|
5506
|
+
* @public
|
|
5507
|
+
* @remarks
|
|
5508
|
+
* HTML Attribute: `list`
|
|
5481
5509
|
*/
|
|
5482
5510
|
list: string;
|
|
5483
|
-
protected listChanged(): void;
|
|
5484
5511
|
/**
|
|
5485
5512
|
* The maximum number of characters a user can enter.
|
|
5513
|
+
*
|
|
5486
5514
|
* @public
|
|
5487
5515
|
* @remarks
|
|
5488
|
-
*
|
|
5516
|
+
* HTML Attribute: `maxlength`
|
|
5489
5517
|
*/
|
|
5490
5518
|
maxlength: number;
|
|
5491
|
-
protected maxlengthChanged(): void;
|
|
5492
5519
|
/**
|
|
5493
5520
|
* The minimum number of characters a user can enter.
|
|
5521
|
+
* @see The {@link https://developer.mozilla.org/docs/Web/HTML/Attributes/minlength | `minlength`} attribute
|
|
5522
|
+
*
|
|
5494
5523
|
* @public
|
|
5495
5524
|
* @remarks
|
|
5496
|
-
*
|
|
5525
|
+
* HTML Attribute: `minlength`
|
|
5497
5526
|
*/
|
|
5498
5527
|
minlength: number;
|
|
5499
|
-
|
|
5528
|
+
/**
|
|
5529
|
+
* Indicates that a comma-separated list of email addresses can be entered. This attribute is only valid when `type="email"`.
|
|
5530
|
+
* @see The {@link https://developer.mozilla.org/docs/Web/HTML/Attributes/multiple | `multiple`} attribute
|
|
5531
|
+
*
|
|
5532
|
+
* @public
|
|
5533
|
+
* @remarks
|
|
5534
|
+
* HTML Attribute: `multiple`
|
|
5535
|
+
*/
|
|
5536
|
+
multiple: boolean;
|
|
5537
|
+
/**
|
|
5538
|
+
* The name of the element. This element's value will be surfaced during form submission under the provided name.
|
|
5539
|
+
*
|
|
5540
|
+
* @public
|
|
5541
|
+
* @remarks
|
|
5542
|
+
* HTML Attribute: `name`
|
|
5543
|
+
*/
|
|
5544
|
+
name: string;
|
|
5500
5545
|
/**
|
|
5501
5546
|
* A regular expression that the value must match to pass validation.
|
|
5547
|
+
*
|
|
5502
5548
|
* @public
|
|
5503
5549
|
* @remarks
|
|
5504
|
-
*
|
|
5550
|
+
* HTML Attribute: `pattern`
|
|
5505
5551
|
*/
|
|
5506
5552
|
pattern: string;
|
|
5507
|
-
|
|
5553
|
+
/**
|
|
5554
|
+
* Sets the placeholder value of the element, generally used to provide a hint to the user.
|
|
5555
|
+
* @see The {@link https://developer.mozilla.org/docs/Web/HTML/Attributes/placeholder | `placeholder`} attribute
|
|
5556
|
+
*
|
|
5557
|
+
* @public
|
|
5558
|
+
* @remarks
|
|
5559
|
+
* HTML Attribute: `placeholder`
|
|
5560
|
+
* This attribute is not a valid substitute for a label.
|
|
5561
|
+
*/
|
|
5562
|
+
placeholder: string;
|
|
5563
|
+
/**
|
|
5564
|
+
* When true, the control will be immutable by user interaction.
|
|
5565
|
+
* @see The {@link https://developer.mozilla.org/docs/Web/HTML/Attributes/readonly | `readonly`} attribute
|
|
5566
|
+
*
|
|
5567
|
+
* @public
|
|
5568
|
+
* @remarks
|
|
5569
|
+
* HTML Attribute: `readonly`
|
|
5570
|
+
*/
|
|
5571
|
+
readonly?: boolean;
|
|
5572
|
+
/**
|
|
5573
|
+
* Syncs the `ElementInternals.ariaReadOnly` property when the `readonly` property changes.
|
|
5574
|
+
*
|
|
5575
|
+
* @internal
|
|
5576
|
+
*/
|
|
5577
|
+
readonlyChanged(): void;
|
|
5578
|
+
/**
|
|
5579
|
+
* The element's required attribute.
|
|
5580
|
+
*
|
|
5581
|
+
* @public
|
|
5582
|
+
* @remarks
|
|
5583
|
+
* HTML Attribute: `required`
|
|
5584
|
+
*/
|
|
5585
|
+
required: boolean;
|
|
5586
|
+
/**
|
|
5587
|
+
* Syncs the element's internal `aria-required` state with the `required` attribute.
|
|
5588
|
+
*
|
|
5589
|
+
* @param previous - the previous required state
|
|
5590
|
+
* @param next - the current required state
|
|
5591
|
+
*
|
|
5592
|
+
* @internal
|
|
5593
|
+
*/
|
|
5594
|
+
requiredChanged(previous: boolean, next: boolean): void;
|
|
5508
5595
|
/**
|
|
5509
5596
|
* Sets the width of the element to a specified number of characters.
|
|
5597
|
+
*
|
|
5510
5598
|
* @public
|
|
5511
5599
|
* @remarks
|
|
5512
|
-
*
|
|
5600
|
+
* HTML Attribute: `size`
|
|
5513
5601
|
*/
|
|
5514
5602
|
size: number;
|
|
5515
|
-
protected sizeChanged(): void;
|
|
5516
5603
|
/**
|
|
5517
5604
|
* Controls whether or not to enable spell checking for the input field, or if the default spell checking configuration should be used.
|
|
5605
|
+
* @see The {@link https://developer.mozilla.org/docs/Web/HTML/Global_attributes/spellcheck | `spellcheck`} attribute
|
|
5606
|
+
*
|
|
5518
5607
|
* @public
|
|
5519
5608
|
* @remarks
|
|
5520
|
-
*
|
|
5609
|
+
* HTML Attribute: `spellcheck`
|
|
5521
5610
|
*/
|
|
5522
5611
|
spellcheck: boolean;
|
|
5523
|
-
protected spellcheckChanged(): void;
|
|
5524
5612
|
/**
|
|
5613
|
+
* Allows setting a type or mode of text.
|
|
5614
|
+
*
|
|
5615
|
+
* @public
|
|
5616
|
+
* @remarks
|
|
5617
|
+
* HTML Attribute: `type`
|
|
5618
|
+
*/
|
|
5619
|
+
type: TextInputType;
|
|
5620
|
+
/**
|
|
5621
|
+
* The current value of the input.
|
|
5622
|
+
*
|
|
5525
5623
|
* @internal
|
|
5526
5624
|
*/
|
|
5527
|
-
|
|
5625
|
+
private _value;
|
|
5528
5626
|
/**
|
|
5529
|
-
* A reference to the internal input element
|
|
5627
|
+
* A reference to the internal input element.
|
|
5628
|
+
*
|
|
5530
5629
|
* @internal
|
|
5531
5630
|
*/
|
|
5532
5631
|
control: HTMLInputElement;
|
|
5533
5632
|
/**
|
|
5633
|
+
* A reference to the internal label element.
|
|
5634
|
+
*
|
|
5635
|
+
* @internal
|
|
5636
|
+
*/
|
|
5637
|
+
controlLabel: HTMLLabelElement;
|
|
5638
|
+
/**
|
|
5639
|
+
* Indicates that the value has been changed by the user.
|
|
5640
|
+
*
|
|
5641
|
+
* @internal
|
|
5642
|
+
*/
|
|
5643
|
+
private dirtyValue;
|
|
5644
|
+
/**
|
|
5645
|
+
* The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
|
|
5646
|
+
*
|
|
5647
|
+
* @internal
|
|
5648
|
+
*/
|
|
5649
|
+
protected elementInternals: ElementInternals;
|
|
5650
|
+
/**
|
|
5651
|
+
* The form-associated flag.
|
|
5652
|
+
* @see {@link https://html.spec.whatwg.org/multipage/custom-elements.html#custom-elements-face-example | Form-associated custom elements}
|
|
5653
|
+
*
|
|
5654
|
+
* @public
|
|
5655
|
+
*/
|
|
5656
|
+
static readonly formAssociated = true;
|
|
5657
|
+
/**
|
|
5658
|
+
* The element's validity state.
|
|
5659
|
+
*
|
|
5660
|
+
* @public
|
|
5661
|
+
* @remarks
|
|
5662
|
+
* Reflects the {@link https://developer.mozilla.org/docs/Web/API/ElementInternals/validity | `ElementInternals.validity`} property.
|
|
5663
|
+
*/
|
|
5664
|
+
get validity(): ValidityState;
|
|
5665
|
+
/**
|
|
5666
|
+
* The validation message.
|
|
5667
|
+
*
|
|
5668
|
+
* @public
|
|
5669
|
+
* @remarks
|
|
5670
|
+
* Reflects the {@link https://developer.mozilla.org/docs/Web/API/ElementInternals/validationMessage | `ElementInternals.validationMessage`} property.
|
|
5671
|
+
*/
|
|
5672
|
+
get validationMessage(): string;
|
|
5673
|
+
/**
|
|
5674
|
+
* The current value of the input.
|
|
5675
|
+
* @public
|
|
5676
|
+
*/
|
|
5677
|
+
get value(): string;
|
|
5678
|
+
set value(value: string);
|
|
5679
|
+
/**
|
|
5680
|
+
* Determines if the control can be submitted for constraint validation.
|
|
5681
|
+
*
|
|
5682
|
+
* @public
|
|
5683
|
+
* @remarks
|
|
5684
|
+
* Reflects the {@link https://developer.mozilla.org/docs/Web/API/ElementInternals/willValidate | `ElementInternals.willValidate`} property.
|
|
5685
|
+
*/
|
|
5686
|
+
get willValidate(): boolean;
|
|
5687
|
+
/**
|
|
5688
|
+
* The associated form element.
|
|
5689
|
+
*
|
|
5690
|
+
* @public
|
|
5691
|
+
* @remarks
|
|
5692
|
+
* Reflects the {@link https://developer.mozilla.org/docs/Web/API/ElementInternals/form | `ElementInternals.form`} property.
|
|
5693
|
+
*/
|
|
5694
|
+
get form(): HTMLFormElement | null;
|
|
5695
|
+
/**
|
|
5696
|
+
* Change event handler for inner control.
|
|
5697
|
+
*
|
|
5534
5698
|
* @internal
|
|
5699
|
+
* @privateRemarks
|
|
5700
|
+
* "Change" events are not `composable` so they will not permeate the shadow DOM boundary. This function effectively
|
|
5701
|
+
* proxies the change event, emitting a `change` event whenever the internal control emits a `change` event.
|
|
5535
5702
|
*/
|
|
5703
|
+
changeHandler(e: InputEvent): void;
|
|
5536
5704
|
connectedCallback(): void;
|
|
5705
|
+
disconnectedCallback(): void;
|
|
5706
|
+
/**
|
|
5707
|
+
* Resets the value to its initial value when the form is reset.
|
|
5708
|
+
*
|
|
5709
|
+
* @internal
|
|
5710
|
+
*/
|
|
5711
|
+
formResetCallback(): void;
|
|
5712
|
+
/**
|
|
5713
|
+
* Handles implicit form submission when the user presses the "Enter" key.
|
|
5714
|
+
*
|
|
5715
|
+
* @internal
|
|
5716
|
+
*/
|
|
5717
|
+
private implicitSubmit;
|
|
5718
|
+
/**
|
|
5719
|
+
* Handles the internal control's `input` event.
|
|
5720
|
+
*
|
|
5721
|
+
* @internal
|
|
5722
|
+
*/
|
|
5723
|
+
inputHandler(e: InputEvent): boolean | void;
|
|
5537
5724
|
/**
|
|
5538
|
-
*
|
|
5725
|
+
* Handles the internal control's `keypress` event.
|
|
5726
|
+
*
|
|
5727
|
+
* @internal
|
|
5728
|
+
*/
|
|
5729
|
+
keypressHandler(e: KeyboardEvent): boolean | void;
|
|
5730
|
+
/**
|
|
5731
|
+
* Selects all the text in the text field.
|
|
5539
5732
|
*
|
|
5540
5733
|
* @public
|
|
5734
|
+
* @privateRemarks
|
|
5735
|
+
* The `select` event does not permeate the shadow DOM boundary. This function effectively proxies the event,
|
|
5736
|
+
* emitting a `select` event whenever the internal control emits a `select` event
|
|
5737
|
+
*
|
|
5541
5738
|
*/
|
|
5542
5739
|
select(): void;
|
|
5543
5740
|
/**
|
|
5544
|
-
*
|
|
5741
|
+
* Reflects the {@link https://developer.mozilla.org/docs/Web/API/ElementInternals/setFormValue | `ElementInternals.setFormValue()`} method.
|
|
5742
|
+
*
|
|
5545
5743
|
* @internal
|
|
5546
5744
|
*/
|
|
5547
|
-
|
|
5745
|
+
setFormValue(value: File | string | FormData | null, state?: File | string | FormData | null): void;
|
|
5548
5746
|
/**
|
|
5549
|
-
*
|
|
5550
|
-
*
|
|
5551
|
-
*
|
|
5552
|
-
*
|
|
5553
|
-
*
|
|
5554
|
-
*
|
|
5747
|
+
* Sets the validity of the control.
|
|
5748
|
+
*
|
|
5749
|
+
* @param flags - Validity flags. If not provided, the control's `validity` will be used.
|
|
5750
|
+
* @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.
|
|
5751
|
+
* @param anchor - Optional anchor to use for the validation message. If not provided, the control will be used.
|
|
5752
|
+
*
|
|
5555
5753
|
* @internal
|
|
5556
5754
|
*/
|
|
5557
|
-
|
|
5558
|
-
/** {@inheritDoc (FormAssociated:interface).validate} */
|
|
5559
|
-
validate(): void;
|
|
5755
|
+
setValidity(flags?: ValidityStateFlags, message?: string, anchor?: HTMLElement): void;
|
|
5560
5756
|
}
|
|
5561
5757
|
|
|
5562
|
-
|
|
5758
|
+
/**
|
|
5759
|
+
* @internal
|
|
5760
|
+
* @privateRemarks
|
|
5761
|
+
* Mark internal because exporting class and interface of the same name
|
|
5762
|
+
* confuses API documenter.
|
|
5763
|
+
* TODO: https://github.com/microsoft/rushstack/issues/1308
|
|
5764
|
+
*/
|
|
5765
|
+
export declare interface TextInput extends StartEnd {
|
|
5563
5766
|
}
|
|
5564
5767
|
|
|
5565
5768
|
/**
|
|
5566
|
-
*
|
|
5769
|
+
* Values for the `appearance` attribute on TextInput elements.
|
|
5770
|
+
*
|
|
5567
5771
|
* @public
|
|
5568
5772
|
*/
|
|
5569
5773
|
export declare const TextInputAppearance: {
|
|
@@ -5573,14 +5777,11 @@ export declare const TextInputAppearance: {
|
|
|
5573
5777
|
readonly filledDarker: "filled-darker";
|
|
5574
5778
|
};
|
|
5575
5779
|
|
|
5576
|
-
/**
|
|
5577
|
-
* Applies appearance styling to TextInput
|
|
5578
|
-
* @public
|
|
5579
|
-
*/
|
|
5580
5780
|
export declare type TextInputAppearance = ValuesOf<typeof TextInputAppearance>;
|
|
5581
5781
|
|
|
5582
5782
|
/**
|
|
5583
|
-
*
|
|
5783
|
+
* Values for the `control-size` attribute on TextInput elements.
|
|
5784
|
+
*
|
|
5584
5785
|
* @public
|
|
5585
5786
|
*/
|
|
5586
5787
|
export declare const TextInputControlSize: {
|
|
@@ -5589,25 +5790,27 @@ export declare const TextInputControlSize: {
|
|
|
5589
5790
|
readonly large: "large";
|
|
5590
5791
|
};
|
|
5591
5792
|
|
|
5592
|
-
/**
|
|
5593
|
-
* Applies size styling to TextInput
|
|
5594
|
-
* @public
|
|
5595
|
-
*/
|
|
5596
5793
|
export declare type TextInputControlSize = ValuesOf<typeof TextInputControlSize>;
|
|
5597
5794
|
|
|
5598
5795
|
/**
|
|
5599
|
-
* The Fluent TextInput Element.
|
|
5600
|
-
*
|
|
5796
|
+
* The Fluent TextInput Element definition.
|
|
5601
5797
|
*
|
|
5602
5798
|
* @public
|
|
5603
5799
|
* @remarks
|
|
5604
|
-
* HTML Element:
|
|
5800
|
+
* HTML Element: `<fluent-text-input>`
|
|
5605
5801
|
*/
|
|
5606
5802
|
export declare const TextInputDefinition: FASTElementDefinition<typeof TextInput>;
|
|
5607
5803
|
|
|
5804
|
+
/**
|
|
5805
|
+
* TextInput configuration options.
|
|
5806
|
+
*
|
|
5807
|
+
* @public
|
|
5808
|
+
*/
|
|
5608
5809
|
export declare type TextInputOptions = StartEndOptions<TextInput>;
|
|
5609
5810
|
|
|
5610
|
-
/**
|
|
5811
|
+
/**
|
|
5812
|
+
* Styles for the TextInput component.
|
|
5813
|
+
*
|
|
5611
5814
|
* @public
|
|
5612
5815
|
*/
|
|
5613
5816
|
export declare const TextInputStyles: ElementStyles;
|
|
@@ -5618,36 +5821,18 @@ export declare const TextInputStyles: ElementStyles;
|
|
|
5618
5821
|
export declare const TextInputTemplate: ElementViewTemplate<TextInput>;
|
|
5619
5822
|
|
|
5620
5823
|
/**
|
|
5621
|
-
*
|
|
5824
|
+
* Values for the `type` attribute on TextInput elements.
|
|
5825
|
+
*
|
|
5622
5826
|
* @public
|
|
5623
5827
|
*/
|
|
5624
5828
|
export declare const TextInputType: {
|
|
5625
|
-
/**
|
|
5626
|
-
* An email TextInput
|
|
5627
|
-
*/
|
|
5628
5829
|
readonly email: "email";
|
|
5629
|
-
/**
|
|
5630
|
-
* A password TextInput
|
|
5631
|
-
*/
|
|
5632
5830
|
readonly password: "password";
|
|
5633
|
-
/**
|
|
5634
|
-
* A telephone TextInput
|
|
5635
|
-
*/
|
|
5636
5831
|
readonly tel: "tel";
|
|
5637
|
-
/**
|
|
5638
|
-
* A text TextInput
|
|
5639
|
-
*/
|
|
5640
5832
|
readonly text: "text";
|
|
5641
|
-
/**
|
|
5642
|
-
* A URL TextInput
|
|
5643
|
-
*/
|
|
5644
5833
|
readonly url: "url";
|
|
5645
5834
|
};
|
|
5646
5835
|
|
|
5647
|
-
/**
|
|
5648
|
-
* Types for the text field sub-types
|
|
5649
|
-
* @public
|
|
5650
|
-
*/
|
|
5651
5836
|
export declare type TextInputType = ValuesOf<typeof TextInputType>;
|
|
5652
5837
|
|
|
5653
5838
|
/**
|