@fluentui/web-components 3.0.0-rc.24 → 3.0.0-rc.26
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 +20 -2
- package/custom-elements.json +705 -323
- package/dist/esm/accordion/accordion.d.ts +1 -1
- package/dist/esm/accordion/accordion.js +1 -1
- package/dist/esm/accordion-item/accordion-item.d.ts +2 -2
- package/dist/esm/accordion-item/accordion-item.js +2 -0
- package/dist/esm/accordion-item/accordion-item.js.map +1 -1
- package/dist/esm/anchor-button/anchor-button.d.ts +2 -2
- package/dist/esm/anchor-button/anchor-button.js +2 -0
- package/dist/esm/anchor-button/anchor-button.js.map +1 -1
- package/dist/esm/avatar/avatar.d.ts +2 -0
- package/dist/esm/avatar/avatar.js +3 -1
- package/dist/esm/avatar/avatar.js.map +1 -1
- package/dist/esm/badge/badge.d.ts +6 -1
- package/dist/esm/badge/badge.js +6 -1
- package/dist/esm/badge/badge.js.map +1 -1
- package/dist/esm/button/button.base.d.ts +0 -9
- package/dist/esm/button/button.base.js +0 -3
- package/dist/esm/button/button.base.js.map +1 -1
- package/dist/esm/checkbox/checkbox.base.d.ts +3 -9
- package/dist/esm/checkbox/checkbox.base.js +3 -3
- package/dist/esm/checkbox/checkbox.base.js.map +1 -1
- package/dist/esm/checkbox/checkbox.d.ts +2 -2
- package/dist/esm/checkbox/checkbox.js +2 -2
- package/dist/esm/compound-button/compound-button.d.ts +3 -0
- package/dist/esm/compound-button/compound-button.js +3 -0
- package/dist/esm/compound-button/compound-button.js.map +1 -1
- package/dist/esm/counter-badge/counter-badge.d.ts +3 -0
- package/dist/esm/counter-badge/counter-badge.js +3 -0
- package/dist/esm/counter-badge/counter-badge.js.map +1 -1
- package/dist/esm/dialog/dialog.d.ts +4 -0
- package/dist/esm/dialog/dialog.js +4 -0
- package/dist/esm/dialog/dialog.js.map +1 -1
- package/dist/esm/dialog/dialog.template.d.ts +5 -0
- package/dist/esm/dialog/dialog.template.html +1 -0
- package/dist/esm/dialog/dialog.template.js +6 -0
- package/dist/esm/dialog/dialog.template.js.map +1 -1
- package/dist/esm/dialog-body/dialog-body.d.ts +9 -0
- package/dist/esm/dialog-body/dialog-body.js +9 -0
- package/dist/esm/dialog-body/dialog-body.js.map +1 -1
- package/dist/esm/drawer/drawer.d.ts +3 -4
- package/dist/esm/drawer/drawer.js +3 -4
- package/dist/esm/drawer/drawer.js.map +1 -1
- package/dist/esm/drawer/drawer.styles.css +15 -16
- package/dist/esm/drawer/drawer.styles.js +16 -17
- package/dist/esm/drawer/drawer.styles.js.map +1 -1
- package/dist/esm/dropdown/dropdown.base.d.ts +2 -0
- package/dist/esm/dropdown/dropdown.base.js +2 -0
- package/dist/esm/dropdown/dropdown.base.js.map +1 -1
- package/dist/esm/field/field.d.ts +7 -0
- package/dist/esm/field/field.js +7 -0
- package/dist/esm/field/field.js.map +1 -1
- package/dist/esm/image/image.d.ts +2 -0
- package/dist/esm/image/image.js +2 -0
- package/dist/esm/image/image.js.map +1 -1
- package/dist/esm/label/label.d.ts +3 -0
- package/dist/esm/label/label.js +3 -0
- package/dist/esm/label/label.js.map +1 -1
- package/dist/esm/menu-item/menu-item.d.ts +1 -1
- package/dist/esm/menu-item/menu-item.js +1 -1
- package/dist/esm/message-bar/message-bar.d.ts +2 -0
- package/dist/esm/message-bar/message-bar.js +2 -0
- package/dist/esm/message-bar/message-bar.js.map +1 -1
- package/dist/esm/option/option.d.ts +3 -0
- package/dist/esm/option/option.js +3 -0
- package/dist/esm/option/option.js.map +1 -1
- package/dist/esm/progress-bar/progress-bar.base.d.ts +3 -3
- package/dist/esm/progress-bar/progress-bar.d.ts +1 -0
- package/dist/esm/progress-bar/progress-bar.js +1 -0
- package/dist/esm/progress-bar/progress-bar.js.map +1 -1
- package/dist/esm/radio/radio.d.ts +3 -2
- package/dist/esm/radio/radio.js +3 -2
- package/dist/esm/radio/radio.js.map +1 -1
- package/dist/esm/radio-group/radio-group.base.d.ts +2 -0
- package/dist/esm/radio-group/radio-group.base.js +2 -0
- package/dist/esm/radio-group/radio-group.base.js.map +1 -1
- package/dist/esm/radio-group/radio-group.d.ts +1 -0
- package/dist/esm/radio-group/radio-group.js +1 -0
- package/dist/esm/radio-group/radio-group.js.map +1 -1
- package/dist/esm/slider/slider.d.ts +1 -1
- package/dist/esm/slider/slider.js +1 -1
- package/dist/esm/switch/switch.d.ts +1 -0
- package/dist/esm/switch/switch.js +1 -0
- package/dist/esm/switch/switch.js.map +1 -1
- package/dist/esm/tablist/tablist.d.ts +1 -0
- package/dist/esm/tablist/tablist.js +1 -0
- package/dist/esm/tablist/tablist.js.map +1 -1
- package/dist/esm/text/text.d.ts +2 -0
- package/dist/esm/text/text.js +2 -0
- package/dist/esm/text/text.js.map +1 -1
- package/dist/esm/text-input/text-input.base.d.ts +4 -9
- package/dist/esm/text-input/text-input.base.js +4 -3
- package/dist/esm/text-input/text-input.base.js.map +1 -1
- package/dist/esm/text-input/text-input.d.ts +2 -0
- package/dist/esm/text-input/text-input.js +2 -0
- package/dist/esm/text-input/text-input.js.map +1 -1
- package/dist/esm/text-input/text-input.template.html +0 -1
- package/dist/esm/text-input/text-input.template.js +0 -1
- package/dist/esm/text-input/text-input.template.js.map +1 -1
- package/dist/esm/textarea/textarea.base.d.ts +2 -2
- package/dist/esm/textarea/textarea.base.js +2 -2
- package/dist/esm/tooltip/tooltip.d.ts +2 -0
- package/dist/esm/tooltip/tooltip.js +2 -0
- package/dist/esm/tooltip/tooltip.js.map +1 -1
- package/dist/esm/tree-item/tree-item.base.d.ts +9 -0
- package/dist/esm/tree-item/tree-item.base.js +9 -0
- package/dist/esm/tree-item/tree-item.base.js.map +1 -1
- package/dist/esm/tree-item/tree-item.d.ts +15 -0
- package/dist/esm/tree-item/tree-item.js +15 -0
- package/dist/esm/tree-item/tree-item.js.map +1 -1
- package/dist/web-components-all.js +3 -12
- package/dist/web-components-all.min.js +8 -8
- package/dist/web-components.d.ts +114 -46
- package/dist/web-components.js +3 -12
- package/dist/web-components.min.js +6 -6
- package/package.json +3 -2
package/dist/web-components.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ import { ViewTemplate } from '@microsoft/fast-element';
|
|
|
15
15
|
* @tag fluent-accordion
|
|
16
16
|
*
|
|
17
17
|
* @slot - The default slot for the accordion items
|
|
18
|
-
* @fires change - Fires a custom 'change' event when the active item changes
|
|
18
|
+
* @fires { Event } change - Fires a custom 'change' event when the active item changes
|
|
19
19
|
*
|
|
20
20
|
* @public
|
|
21
21
|
*/
|
|
@@ -112,6 +112,8 @@ export declare type AccordionExpandMode = ValuesOf<typeof AccordionExpandMode>;
|
|
|
112
112
|
* An Accordion Item Custom HTML Element.
|
|
113
113
|
* Based on BaseAccordionItem and includes style and layout specific attributes
|
|
114
114
|
*
|
|
115
|
+
* @tag fluent-accordion-item
|
|
116
|
+
*
|
|
115
117
|
* @public
|
|
116
118
|
*/
|
|
117
119
|
export declare class AccordionItem extends BaseAccordionItem {
|
|
@@ -175,8 +177,6 @@ export declare type AccordionItemMarkerPosition = ValuesOf<typeof AccordionItemM
|
|
|
175
177
|
/**
|
|
176
178
|
* Accordion Item configuration options
|
|
177
179
|
*
|
|
178
|
-
* @tag fluent-accordion-item
|
|
179
|
-
*
|
|
180
180
|
* @public
|
|
181
181
|
*/
|
|
182
182
|
export declare type AccordionItemOptions = StartEndOptions<AccordionItem> & {
|
|
@@ -216,6 +216,8 @@ export declare const accordionTemplate: ElementViewTemplate<Accordion>;
|
|
|
216
216
|
* An Anchor Custom HTML Element.
|
|
217
217
|
* Based on BaseAnchor and includes style and layout specific attributes
|
|
218
218
|
*
|
|
219
|
+
* @tag fluent-anchor-button
|
|
220
|
+
*
|
|
219
221
|
* @public
|
|
220
222
|
*/
|
|
221
223
|
export declare class AnchorButton extends BaseAnchor {
|
|
@@ -373,6 +375,8 @@ export declare type AnchorTarget = ValuesOf<typeof AnchorTarget>;
|
|
|
373
375
|
*
|
|
374
376
|
* @tag fluent-avatar
|
|
375
377
|
*
|
|
378
|
+
* @slot badge - Optional badge content displayed with the avatar.
|
|
379
|
+
*
|
|
376
380
|
* @public
|
|
377
381
|
*/
|
|
378
382
|
export declare class Avatar extends BaseAvatar {
|
|
@@ -635,13 +639,18 @@ export declare const AvatarTemplate: ElementViewTemplate<Avatar>;
|
|
|
635
639
|
|
|
636
640
|
/**
|
|
637
641
|
* The base class used for constructing a fluent-badge custom element
|
|
642
|
+
* @tag fluent-badge
|
|
643
|
+
*
|
|
644
|
+
* @slot - Content which can be provided inside the badge.
|
|
645
|
+
* @slot start - Content which can be provided before the badge content.
|
|
646
|
+
* @slot end - Content which can be provided after the badge content.
|
|
647
|
+
*
|
|
638
648
|
* @public
|
|
639
649
|
*/
|
|
640
650
|
export declare class Badge extends FASTElement {
|
|
641
651
|
/**
|
|
642
652
|
* The appearance the badge should have.
|
|
643
653
|
*
|
|
644
|
-
* @tag fluent-badge
|
|
645
654
|
*
|
|
646
655
|
* @public
|
|
647
656
|
* @remarks
|
|
@@ -1081,15 +1090,6 @@ export declare class BaseAvatar extends FASTElement {
|
|
|
1081
1090
|
* @public
|
|
1082
1091
|
*/
|
|
1083
1092
|
export declare class BaseButton extends FASTElement {
|
|
1084
|
-
/**
|
|
1085
|
-
* Indicates the button should be focused when the page is loaded.
|
|
1086
|
-
* @see The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#autofocus | `autofocus`} attribute
|
|
1087
|
-
*
|
|
1088
|
-
* @public
|
|
1089
|
-
* @remarks
|
|
1090
|
-
* HTML Attribute: `autofocus`
|
|
1091
|
-
*/
|
|
1092
|
-
autofocus: boolean;
|
|
1093
1093
|
/**
|
|
1094
1094
|
* Default slotted content.
|
|
1095
1095
|
*
|
|
@@ -1320,18 +1320,12 @@ export declare class BaseButton extends FASTElement {
|
|
|
1320
1320
|
/**
|
|
1321
1321
|
* The base class for a component with a toggleable checked state.
|
|
1322
1322
|
*
|
|
1323
|
+
* @fires { Event } change - Fires a custom 'change' event when the checked state changes
|
|
1324
|
+
* @fires { Event } input - Fires a custom 'input' event when the checked state changes
|
|
1325
|
+
*
|
|
1323
1326
|
* @public
|
|
1324
1327
|
*/
|
|
1325
1328
|
export declare class BaseCheckbox extends FASTElement {
|
|
1326
|
-
/**
|
|
1327
|
-
* Indicates that the element should get focus after the page finishes loading.
|
|
1328
|
-
* @see The {@link https://developer.mozilla.org/docs/Web/HTML/Element/input#autofocus | `autofocus`} attribute
|
|
1329
|
-
*
|
|
1330
|
-
* @public
|
|
1331
|
-
* @remarks
|
|
1332
|
-
* HTML Attribute: `autofocus`
|
|
1333
|
-
*/
|
|
1334
|
-
autofocus: boolean;
|
|
1335
1329
|
/**
|
|
1336
1330
|
* The element's current checked state.
|
|
1337
1331
|
*
|
|
@@ -1730,6 +1724,8 @@ export declare class BaseDivider extends FASTElement {
|
|
|
1730
1724
|
* @slot indicator - The indicator slot.
|
|
1731
1725
|
* @slot control - The control slot. This slot is automatically populated and should not be manually manipulated.
|
|
1732
1726
|
*
|
|
1727
|
+
* @fires { Event } change - Fires a custom 'change' event when the selected option changes
|
|
1728
|
+
*
|
|
1733
1729
|
* @public
|
|
1734
1730
|
*/
|
|
1735
1731
|
export declare class BaseDropdown extends FASTElement {
|
|
@@ -2461,7 +2457,7 @@ export declare class BaseProgressBar extends FASTElement {
|
|
|
2461
2457
|
*
|
|
2462
2458
|
* HTML Attribute: `value`
|
|
2463
2459
|
*
|
|
2464
|
-
* @
|
|
2460
|
+
* @public
|
|
2465
2461
|
*/
|
|
2466
2462
|
value?: number;
|
|
2467
2463
|
/**
|
|
@@ -2476,7 +2472,7 @@ export declare class BaseProgressBar extends FASTElement {
|
|
|
2476
2472
|
*
|
|
2477
2473
|
* HTML Attribute: `min`
|
|
2478
2474
|
*
|
|
2479
|
-
* @
|
|
2475
|
+
* @public
|
|
2480
2476
|
*/
|
|
2481
2477
|
min?: number;
|
|
2482
2478
|
/**
|
|
@@ -2492,7 +2488,7 @@ export declare class BaseProgressBar extends FASTElement {
|
|
|
2492
2488
|
*
|
|
2493
2489
|
* HTML Attribute: `max`
|
|
2494
2490
|
*
|
|
2495
|
-
* @
|
|
2491
|
+
* @public
|
|
2496
2492
|
*/
|
|
2497
2493
|
max?: number;
|
|
2498
2494
|
/**
|
|
@@ -2518,6 +2514,8 @@ export declare class BaseProgressBar extends FASTElement {
|
|
|
2518
2514
|
* A Base Radio Group Custom HTML Element.
|
|
2519
2515
|
* Implements the {@link https://w3c.github.io/aria/#radiogroup | ARIA `radiogroup` role}.
|
|
2520
2516
|
*
|
|
2517
|
+
* @fires { Event } change - Fires a custom 'change' event when the checked radio changes
|
|
2518
|
+
*
|
|
2521
2519
|
* @public
|
|
2522
2520
|
*/
|
|
2523
2521
|
export declare class BaseRadioGroup extends FASTElement {
|
|
@@ -2964,8 +2962,8 @@ export declare class BaseTablist extends FASTElement {
|
|
|
2964
2962
|
* @csspart label - The `<label>` element.
|
|
2965
2963
|
* @csspart root - The container element of the `<textarea>` element.
|
|
2966
2964
|
* @csspart control - The internal `<textarea>` element.
|
|
2967
|
-
* @fires change - Fires after the control loses focus, if the content has changed.
|
|
2968
|
-
* @fires select - Fires when the `select()` method is called.
|
|
2965
|
+
* @fires { Event } change - Fires after the control loses focus, if the content has changed.
|
|
2966
|
+
* @fires { Event } select - Fires when the `select()` method is called.
|
|
2969
2967
|
*
|
|
2970
2968
|
* @public
|
|
2971
2969
|
*/
|
|
@@ -3320,6 +3318,10 @@ export declare class BaseTextArea extends FASTElement {
|
|
|
3320
3318
|
* @csspart label - The internal `<label>` element
|
|
3321
3319
|
* @csspart root - the root container for the internal control
|
|
3322
3320
|
* @csspart control - The internal `<input>` control
|
|
3321
|
+
*
|
|
3322
|
+
* @fires { Event } change - Fires a custom 'change' event when the value changes and the input loses focus
|
|
3323
|
+
* @fires { Event } select - Fires when the `select()` method is called.
|
|
3324
|
+
*
|
|
3323
3325
|
* @public
|
|
3324
3326
|
*/
|
|
3325
3327
|
export declare class BaseTextInput extends FASTElement {
|
|
@@ -3332,15 +3334,6 @@ export declare class BaseTextInput extends FASTElement {
|
|
|
3332
3334
|
* HTML Attribute: `autocomplete`
|
|
3333
3335
|
*/
|
|
3334
3336
|
autocomplete?: string;
|
|
3335
|
-
/**
|
|
3336
|
-
* Indicates that the element should get focus after the page finishes loading.
|
|
3337
|
-
* @see The {@link https://developer.mozilla.org/docs/Web/HTML/Element/input#autofocus | `autofocus`} attribute
|
|
3338
|
-
*
|
|
3339
|
-
* @public
|
|
3340
|
-
* @remarks
|
|
3341
|
-
* HTML Attribute: `autofocus`
|
|
3342
|
-
*/
|
|
3343
|
-
autofocus: boolean;
|
|
3344
3337
|
/**
|
|
3345
3338
|
* The current value of the input.
|
|
3346
3339
|
* @public
|
|
@@ -3763,6 +3756,15 @@ export declare class BaseTree extends FASTElement {
|
|
|
3763
3756
|
protected get descendantTreeItems(): BaseTreeItem[];
|
|
3764
3757
|
}
|
|
3765
3758
|
|
|
3759
|
+
/**
|
|
3760
|
+
* Base class for Tree Item Custom HTML Element.
|
|
3761
|
+
* Based largely on the {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li | `<li>`} element.
|
|
3762
|
+
*
|
|
3763
|
+
* @fires { ToggleEvent } toggle - Fires when the expanded state changes
|
|
3764
|
+
* @fires { Event } change - Fires when the selected state changes
|
|
3765
|
+
*
|
|
3766
|
+
* @public
|
|
3767
|
+
*/
|
|
3766
3768
|
declare class BaseTreeItem extends FASTElement {
|
|
3767
3769
|
/**
|
|
3768
3770
|
* The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
|
|
@@ -4103,8 +4105,8 @@ export declare type ButtonType = ValuesOf<typeof ButtonType>;
|
|
|
4103
4105
|
*
|
|
4104
4106
|
* @slot checked-indicator - The checked indicator
|
|
4105
4107
|
* @slot indeterminate-indicator - The indeterminate indicator
|
|
4106
|
-
* @fires change - Emits a custom change event when the checked state changes
|
|
4107
|
-
* @fires input - Emits a custom input event when the checked state changes
|
|
4108
|
+
* @fires { Event } change - Emits a custom change event when the checked state changes
|
|
4109
|
+
* @fires { Event } input - Emits a custom input event when the checked state changes
|
|
4108
4110
|
*
|
|
4109
4111
|
* @public
|
|
4110
4112
|
*/
|
|
@@ -6411,6 +6413,9 @@ export declare const colorTransparentStrokeInteractive = "var(--colorTransparent
|
|
|
6411
6413
|
*
|
|
6412
6414
|
* @tag fluent-compound-button
|
|
6413
6415
|
*
|
|
6416
|
+
* @slot - The default slot for the main content of the compound button
|
|
6417
|
+
* @slot description - The description of the compound button, shown below the main content
|
|
6418
|
+
*
|
|
6414
6419
|
* @public
|
|
6415
6420
|
*/
|
|
6416
6421
|
export declare class CompoundButton extends Button {
|
|
@@ -6487,6 +6492,9 @@ export declare const CompoundButtonTemplate: ElementViewTemplate<CompoundButton>
|
|
|
6487
6492
|
*
|
|
6488
6493
|
* @tag fluent-counter-badge
|
|
6489
6494
|
*
|
|
6495
|
+
* @slot start - Content which can be provided before the badge content.
|
|
6496
|
+
* @slot end - Content which can be provided after the badge content.
|
|
6497
|
+
*
|
|
6490
6498
|
* @public
|
|
6491
6499
|
*/
|
|
6492
6500
|
export declare class CounterBadge extends BaseCounterBadge {
|
|
@@ -6694,6 +6702,10 @@ export declare const curveLinear = "var(--curveLinear)";
|
|
|
6694
6702
|
*
|
|
6695
6703
|
* @tag fluent-dialog
|
|
6696
6704
|
*
|
|
6705
|
+
* @fires { ToggleEvent } toggle - Event emitted after the dialog's open state changes.
|
|
6706
|
+
* @fires { ToggleEvent } beforetoggle - Event emitted before the dialog's open state changes.
|
|
6707
|
+
* @slot - The default slot. {@link (DialogBody:class)} element recommended.
|
|
6708
|
+
*
|
|
6697
6709
|
* @public
|
|
6698
6710
|
*/
|
|
6699
6711
|
export declare class Dialog extends FASTElement {
|
|
@@ -6804,6 +6816,15 @@ export declare class Dialog extends FASTElement {
|
|
|
6804
6816
|
*
|
|
6805
6817
|
* @tag fluent-dialog-body
|
|
6806
6818
|
*
|
|
6819
|
+
* @slot title - Content for the dialog title.
|
|
6820
|
+
* @slot title-action - Content for actions shown near the title.
|
|
6821
|
+
* @slot close - Content for the close action.
|
|
6822
|
+
* @slot action - Content for footer actions.
|
|
6823
|
+
* @slot - Default dialog body content.
|
|
6824
|
+
* @csspart title - The title container.
|
|
6825
|
+
* @csspart content - The content container.
|
|
6826
|
+
* @csspart actions - The actions container.
|
|
6827
|
+
*
|
|
6807
6828
|
* @public
|
|
6808
6829
|
* @extends FASTElement
|
|
6809
6830
|
*/
|
|
@@ -6853,6 +6874,11 @@ export declare const DialogStyles: ElementStyles;
|
|
|
6853
6874
|
|
|
6854
6875
|
/**
|
|
6855
6876
|
* Template for the Dialog component
|
|
6877
|
+
*
|
|
6878
|
+
* Note: The empty `<div tabindex="-1">` element above the `<slot>` element is
|
|
6879
|
+
* for working around a dialog focus issue, learn more at
|
|
6880
|
+
* https://github.com/microsoft/fluentui/pull/36278
|
|
6881
|
+
*
|
|
6856
6882
|
* @public
|
|
6857
6883
|
*/
|
|
6858
6884
|
export declare const DialogTemplate: ElementViewTemplate<Dialog>;
|
|
@@ -7023,11 +7049,12 @@ export declare const DividerTemplate: ElementViewTemplate<Divider>;
|
|
|
7023
7049
|
* @attr ariaLabelledby - The ID of the element that labels the drawer.
|
|
7024
7050
|
*
|
|
7025
7051
|
* @csspart dialog - The dialog element of the drawer.
|
|
7052
|
+
* @cssprop --drawer-width - Sets the width of the drawer to a custom value (e.g., 300px).
|
|
7026
7053
|
*
|
|
7027
7054
|
* @slot - Default slot for the content of the drawer.
|
|
7028
7055
|
*
|
|
7029
|
-
* @fires toggle - Event emitted after the dialog's open state changes.
|
|
7030
|
-
* @fires beforetoggle - Event emitted before the dialog's open state changes.
|
|
7056
|
+
* @fires { ToggleEvent } toggle - Event emitted after the dialog's open state changes.
|
|
7057
|
+
* @fires { ToggleEvent } beforetoggle - Event emitted before the dialog's open state changes.
|
|
7031
7058
|
*
|
|
7032
7059
|
* @method show - Method to show the drawer.
|
|
7033
7060
|
* @method hide - Method to hide the drawer.
|
|
@@ -7037,8 +7064,6 @@ export declare const DividerTemplate: ElementViewTemplate<Divider>;
|
|
|
7037
7064
|
* @method emitBeforeToggle - Emits an event before the dialog's open state changes.
|
|
7038
7065
|
*
|
|
7039
7066
|
* @summary A component that provides a drawer for displaying content in a side panel.
|
|
7040
|
-
*
|
|
7041
|
-
* @tag fluent-drawer
|
|
7042
7067
|
*/
|
|
7043
7068
|
export declare class Drawer extends FASTElement {
|
|
7044
7069
|
/**
|
|
@@ -7343,8 +7368,11 @@ export declare const dropdownInputTemplate: ViewTemplate<BaseDropdown, any>;
|
|
|
7343
7368
|
* @tag fluent-dropdown-option
|
|
7344
7369
|
*
|
|
7345
7370
|
* @slot - The default slot for the option's content.
|
|
7371
|
+
* @slot start - Optional content shown at the start of the option.
|
|
7346
7372
|
* @slot checked-indicator - The checked indicator.
|
|
7347
7373
|
* @slot description - Optional description content.
|
|
7374
|
+
* @csspart content - The wrapper for the option content.
|
|
7375
|
+
* @csspart description - The wrapper for the option description.
|
|
7348
7376
|
*
|
|
7349
7377
|
* @remarks
|
|
7350
7378
|
* To support single and multiple selection modes with the {@link (BaseDropdown:class)} element, the Option element
|
|
@@ -7754,6 +7782,13 @@ export declare function endSlotTemplate<TSource extends StartEnd = StartEnd, TPa
|
|
|
7754
7782
|
*
|
|
7755
7783
|
* @tag fluent-field
|
|
7756
7784
|
*
|
|
7785
|
+
* @slot label - Label content associated with the control.
|
|
7786
|
+
* @slot input - Input control content.
|
|
7787
|
+
* @slot message - Validation and helper message content.
|
|
7788
|
+
* @csspart label - The label slot container.
|
|
7789
|
+
* @csspart input - The input slot container.
|
|
7790
|
+
* @csspart message - The message slot container.
|
|
7791
|
+
*
|
|
7757
7792
|
* @public
|
|
7758
7793
|
*/
|
|
7759
7794
|
export declare class Field extends BaseField {
|
|
@@ -7925,6 +7960,8 @@ export declare const getDirection: (rootNode: HTMLElement) => Direction;
|
|
|
7925
7960
|
*
|
|
7926
7961
|
* @tag fluent-image
|
|
7927
7962
|
*
|
|
7963
|
+
* @slot - The default slot. Accepts any `<img>`, `<picture>`, `<video>`, or `<canvas>` element.
|
|
7964
|
+
*
|
|
7928
7965
|
* @public
|
|
7929
7966
|
*/
|
|
7930
7967
|
declare class Image_2 extends FASTElement {
|
|
@@ -8086,6 +8123,9 @@ export declare function isTreeItem(element?: Node | null, tagName?: string): ele
|
|
|
8086
8123
|
*
|
|
8087
8124
|
* @tag fluent-label
|
|
8088
8125
|
*
|
|
8126
|
+
* @slot - The default slot. Accepts the content of the label.
|
|
8127
|
+
* @csspart asterisk - The required-field asterisk indicator.
|
|
8128
|
+
*
|
|
8089
8129
|
* @public
|
|
8090
8130
|
*/
|
|
8091
8131
|
export declare class Label extends FASTElement {
|
|
@@ -8806,7 +8846,7 @@ export declare const MenuDefinition: FASTElementDefinition<typeof Menu>;
|
|
|
8806
8846
|
* @slot submenu-glyph - The submenu expand/collapse indicator
|
|
8807
8847
|
* @slot submenu - Used to nest menu's within menu items
|
|
8808
8848
|
* @csspart content - The element wrapping the menu item content
|
|
8809
|
-
* @fires change - Fires a custom 'change' event when a non-submenu item with a role of `menuitemcheckbox`, `menuitemradio`, or `menuitem` is invoked
|
|
8849
|
+
* @fires { Event } change - Fires a custom 'change' event when a non-submenu item with a role of `menuitemcheckbox`, `menuitemradio`, or `menuitem` is invoked
|
|
8810
8850
|
*
|
|
8811
8851
|
* @public
|
|
8812
8852
|
*/
|
|
@@ -9022,7 +9062,9 @@ export declare const MenuTemplate: ElementViewTemplate<Menu>;
|
|
|
9022
9062
|
*
|
|
9023
9063
|
* @slot actions - Content that can be provided for the actions
|
|
9024
9064
|
* @slot dismiss - Content that can be provided for the dismiss button
|
|
9065
|
+
* @slot icon - Content that can be provided for the leading icon
|
|
9025
9066
|
* @slot - The default slot for the content
|
|
9067
|
+
* @fires { CustomEvent } dismiss - Fired when the message bar is dismissed.
|
|
9026
9068
|
* @public
|
|
9027
9069
|
*/
|
|
9028
9070
|
export declare class MessageBar extends FASTElement {
|
|
@@ -9145,6 +9187,7 @@ export declare type Orientation = (typeof Orientation)[keyof typeof Orientation]
|
|
|
9145
9187
|
* Based on BaseProgressBar and includes style and layout specific attributes
|
|
9146
9188
|
*
|
|
9147
9189
|
* @tag fluent-progress-bar
|
|
9190
|
+
* @csspart indicator - The internal progress indicator element.
|
|
9148
9191
|
*
|
|
9149
9192
|
* @public
|
|
9150
9193
|
*/
|
|
@@ -9242,8 +9285,9 @@ declare type PropertyNameForCalculation = 'max' | 'value';
|
|
|
9242
9285
|
* @tag fluent-radio
|
|
9243
9286
|
*
|
|
9244
9287
|
* @slot checked-indicator - The checked indicator slot
|
|
9245
|
-
* @fires change - Emits a custom change event when the checked state changes
|
|
9246
|
-
* @fires input - Emits a custom input event when the checked state changes
|
|
9288
|
+
* @fires {Event} change - Emits a custom change event when the checked state changes
|
|
9289
|
+
* @fires {Event} input - Emits a custom input event when the checked state changes
|
|
9290
|
+
* @fires {CustomEvent} disabled - Emits a custom disabled event when the disabled state changes
|
|
9247
9291
|
*
|
|
9248
9292
|
* @public
|
|
9249
9293
|
*/
|
|
@@ -9319,6 +9363,7 @@ export declare const RadioDefinition: FASTElementDefinition<typeof Radio>;
|
|
|
9319
9363
|
* @tag fluent-radio-group
|
|
9320
9364
|
*
|
|
9321
9365
|
* @slot - The default slot for the radio group
|
|
9366
|
+
* @fires { Event } change - Fired when the selected radio changes.
|
|
9322
9367
|
*
|
|
9323
9368
|
* @public
|
|
9324
9369
|
*/
|
|
@@ -9581,7 +9626,7 @@ export declare const shadow8Brand = "var(--shadow8Brand)";
|
|
|
9581
9626
|
* @slot thumb - The slot for a custom thumb element.
|
|
9582
9627
|
* @csspart thumb-container - The container element of the thumb.
|
|
9583
9628
|
* @csspart track-container - The container element of the track.
|
|
9584
|
-
* @fires change - Fires a custom 'change' event when the value changes.
|
|
9629
|
+
* @fires { Event } change - Fires a custom 'change' event when the value changes.
|
|
9585
9630
|
*
|
|
9586
9631
|
* @public
|
|
9587
9632
|
*/
|
|
@@ -10316,6 +10361,7 @@ export { styles as MenuButtonStyles }
|
|
|
10316
10361
|
* Based on BaseCheckbox and includes style and layout specific attributes
|
|
10317
10362
|
*
|
|
10318
10363
|
* @tag fluent-switch
|
|
10364
|
+
* @csspart checked-indicator - The internal switch indicator element.
|
|
10319
10365
|
*
|
|
10320
10366
|
*/
|
|
10321
10367
|
export declare class Switch extends BaseCheckbox {
|
|
@@ -10395,6 +10441,7 @@ export declare const TabDefinition: FASTElementDefinition<typeof Tab>;
|
|
|
10395
10441
|
* A Tablist component.
|
|
10396
10442
|
*
|
|
10397
10443
|
* @tag fluent-tablist
|
|
10444
|
+
* @fires { Event } change - Fired when the active tab changes.
|
|
10398
10445
|
*
|
|
10399
10446
|
* @public
|
|
10400
10447
|
*/
|
|
@@ -10494,6 +10541,8 @@ export declare const TabTemplate: ElementViewTemplate<Tab, any>;
|
|
|
10494
10541
|
*
|
|
10495
10542
|
* @tag fluent-text
|
|
10496
10543
|
*
|
|
10544
|
+
* @slot - The default slot for the text content of the component. Can be any valid HTML element, but is typically a semantic element such as a heading or paragraph.
|
|
10545
|
+
*
|
|
10497
10546
|
* @public
|
|
10498
10547
|
*/
|
|
10499
10548
|
declare class Text_2 extends FASTElement {
|
|
@@ -10761,6 +10810,8 @@ export declare type TextFont = ValuesOf<typeof TextFont>;
|
|
|
10761
10810
|
* Based on BaseTextInput and includes style and layout specific attributes
|
|
10762
10811
|
*
|
|
10763
10812
|
* @tag fluent-text-input
|
|
10813
|
+
* @fires { Event } change - Fired when the input value is committed via a change event.
|
|
10814
|
+
* @fires { Event } select - Fires when the `select()` method is called.
|
|
10764
10815
|
*
|
|
10765
10816
|
* @public
|
|
10766
10817
|
*/
|
|
@@ -11052,6 +11103,8 @@ export declare const ToggleButtonTemplate: ElementViewTemplate<ToggleButton>;
|
|
|
11052
11103
|
*
|
|
11053
11104
|
* @tag fluent-tooltip
|
|
11054
11105
|
*
|
|
11106
|
+
* @slot - The default slot. Accepts the content of the tooltip.
|
|
11107
|
+
*
|
|
11055
11108
|
* @public
|
|
11056
11109
|
*/
|
|
11057
11110
|
export declare class Tooltip extends FASTElement {
|
|
@@ -11246,6 +11299,21 @@ export declare const TreeDefinition: FASTElementDefinition<typeof Tree>;
|
|
|
11246
11299
|
*
|
|
11247
11300
|
* @tag fluent-tree-item
|
|
11248
11301
|
*
|
|
11302
|
+
* @slot - The default slot. Accepts the content of the tree item.
|
|
11303
|
+
* @slot start - Content shown before the item label.
|
|
11304
|
+
* @slot end - Content shown after the item label.
|
|
11305
|
+
* @slot aside - Content shown at the far end of the row.
|
|
11306
|
+
* @slot item - Child tree items.
|
|
11307
|
+
*
|
|
11308
|
+
* @csspart positioning-region - The container for item content and aside regions.
|
|
11309
|
+
* @csspart content - The item content region.
|
|
11310
|
+
* @csspart chevron - The expand/collapse indicator region.
|
|
11311
|
+
* @csspart aside - The trailing aside region.
|
|
11312
|
+
* @csspart items - The child items group region.
|
|
11313
|
+
*
|
|
11314
|
+
* @fires { ToggleEvent } toggle - Fired when expanded state toggles.
|
|
11315
|
+
* @fires { Event } change - Fired when selected state changes.
|
|
11316
|
+
*
|
|
11249
11317
|
*/
|
|
11250
11318
|
export declare class TreeItem extends BaseTreeItem {
|
|
11251
11319
|
/**
|
package/dist/web-components.js
CHANGED
|
@@ -6212,9 +6212,6 @@ class BaseButton extends FASTElement {
|
|
|
6212
6212
|
* @public
|
|
6213
6213
|
*/
|
|
6214
6214
|
BaseButton.formAssociated = true;
|
|
6215
|
-
__decorateClass$H([
|
|
6216
|
-
attr({ mode: "boolean" })
|
|
6217
|
-
], BaseButton.prototype, "autofocus", 2);
|
|
6218
6215
|
__decorateClass$H([
|
|
6219
6216
|
observable
|
|
6220
6217
|
], BaseButton.prototype, "defaultSlottedContent", 2);
|
|
@@ -6656,9 +6653,6 @@ class BaseCheckbox extends FASTElement {
|
|
|
6656
6653
|
* @public
|
|
6657
6654
|
*/
|
|
6658
6655
|
BaseCheckbox.formAssociated = true;
|
|
6659
|
-
__decorateClass$F([
|
|
6660
|
-
attr({ mode: "boolean" })
|
|
6661
|
-
], BaseCheckbox.prototype, "autofocus", 2);
|
|
6662
6656
|
__decorateClass$F([
|
|
6663
6657
|
observable
|
|
6664
6658
|
], BaseCheckbox.prototype, "disabled", 2);
|
|
@@ -7063,7 +7057,7 @@ __decorateClass$B([
|
|
|
7063
7057
|
volatile
|
|
7064
7058
|
], Dialog.prototype, "dialogRole", 1);
|
|
7065
7059
|
|
|
7066
|
-
const template$w = html`<dialog class=dialog part=dialog aria-modal=${(x) => x.dialogModal} aria-describedby=${(x) => x.dialogDescribedby} aria-labelledby=${(x) => x.dialogLabelledby} aria-label=${(x) => x.dialogLabel} role=${(x) => x.dialogRole} @click=${(x, c) => x.clickHandler(c.event)} @cancel=${(x) => x.hide()} ${ref("dialog")}><slot></slot></dialog>`;
|
|
7060
|
+
const template$w = html`<dialog class=dialog part=dialog aria-modal=${(x) => x.dialogModal} aria-describedby=${(x) => x.dialogDescribedby} aria-labelledby=${(x) => x.dialogLabelledby} aria-label=${(x) => x.dialogLabel} role=${(x) => x.dialogRole} @click=${(x, c) => x.clickHandler(c.event)} @cancel=${(x) => x.hide()} ${ref("dialog")}><div tabindex=-1></div><slot></slot></dialog>`;
|
|
7067
7061
|
|
|
7068
7062
|
const styles$w = css`@layer base{:host{--dialog-backdrop:${colorBackgroundOverlay};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${colorNeutralBackground1};border-radius:${borderRadiusXLarge};border:none;box-shadow:${shadow64};color:${colorNeutralForeground1};max-height:100vh;padding:0;width:100%;max-width:600px}:host([type='non-modal']) dialog{inset:0;z-index:2;overflow:auto}@supports (max-height:1dvh){dialog{max-height:100dvh}}}@layer animations{@media (prefers-reduced-motion:no-preference){dialog,::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${durationGentle};transition-timing-function:${curveDecelerateMid};opacity:0}::backdrop{transition-timing-function:${curveLinear}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${curveAccelerateMid}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}@media (forced-colors:active){@layer base{dialog{border:${strokeWidthThin} solid ${colorTransparentStroke}}}}`;
|
|
7069
7063
|
|
|
@@ -7396,7 +7390,7 @@ __decorateClass$y([
|
|
|
7396
7390
|
volatile
|
|
7397
7391
|
], Drawer.prototype, "dialogRole", 1);
|
|
7398
7392
|
|
|
7399
|
-
const styles$t = css`${display("block")} :host{--dialog-backdrop:${colorBackgroundOverlay}}:host([type='non-modal']) dialog[open]::backdrop{display:none}:host([type='non-modal']) dialog{position:fixed;top:0;bottom:0}:host([type='inline']){height:100%;width:fit-content}:host([type='inline']) dialog[open]{box-shadow:none;position:relative}:host([size='small']) dialog{width:320px;max-width:320px}:host([size='large']) dialog{width:940px;max-width:940px}:host([size='full']) dialog{width:100%;max-width:100%}:host([position='end']) dialog{margin-inline-start:auto;margin-inline-end:0}dialog{
|
|
7393
|
+
const styles$t = css`${display("block")} :host{--dialog-backdrop:${colorBackgroundOverlay}}:host([type='non-modal']) dialog[open]::backdrop{display:none}:host([type='non-modal']) dialog{position:fixed;top:0;bottom:0}:host([type='inline']){height:100%;width:fit-content}:host([type='inline']) dialog[open]{box-shadow:none;position:relative}:host([size='small']) dialog{width:320px;max-width:320px}:host([size='large']) dialog{width:940px;max-width:940px}:host([size='full']) dialog{width:100%;max-width:100%}:host([position='end']) dialog{margin-inline-start:auto;margin-inline-end:0}dialog{background:${colorNeutralBackground1};border-radius:0;border:${strokeWidthThin} solid ${colorTransparentStroke};border-inline-end-color:${colorTransparentStroke};border-inline-start-color:var(--drawer-separator,${colorTransparentStroke});box-shadow:${shadow64};box-sizing:border-box;color:${colorNeutralForeground1};font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};height:100%;line-height:${lineHeightBase300};margin-inline-end:auto;margin-inline-start:0;max-height:100vh;max-width:calc(100vw - ${spacingHorizontalXXL});outline:none;padding:0;bottom:0;top:0;width:var(--drawer-width,592px);z-index:var(--drawer-elevation,1000)}dialog::backdrop{background:var(--dialog-backdrop)}@layer animations{@media (prefers-reduced-motion:no-preference){dialog{transition:display allow-discrete,opacity,overlay allow-discrete,transform;transition-duration:${durationGentle};transition-timing-function:${curveDecelerateMid}}:host dialog:not([open]){transform:translateX(-100%);transition-timing-function:${curveAccelerateMid}}:host([position='end']) dialog:not([open]){transform:translateX(100%);transition-timing-function:${curveAccelerateMid}}dialog[open]{transform:translateX(0)}dialog::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${durationGentle};transition-timing-function:${curveDecelerateMid};background:var(--dialog-backdrop,${colorBackgroundOverlay});opacity:0}dialog[open]::backdrop{opacity:1}dialog::backdrop{transition-timing-function:${curveLinear}}}@starting-style{dialog[open]{transform:translateX(-100%)}:host([position='end']) dialog[open]{transform:translateX(100%)}dialog[open]::backdrop{opacity:0}}}`;
|
|
7400
7394
|
|
|
7401
7395
|
function drawerTemplate() {
|
|
7402
7396
|
return html`<dialog class=dialog part=dialog aria-describedby=${(x) => x.dialogDescribedby} aria-labelledby=${(x) => x.dialogLabelledby} aria-label=${(x) => x.dialogLabel} aria-modal=${(x) => x.dialogModal} role=${(x) => x.dialogRole} size=${(x) => x.size} position=${(x) => x.position} @click=${(x, c) => x.clickHandler(c.event)} @cancel=${(x) => x.cancelHandler()} ${ref("dialog")}><slot></slot></dialog>`;
|
|
@@ -13421,9 +13415,6 @@ BaseTextInput.formAssociated = true;
|
|
|
13421
13415
|
__decorateClass$8([
|
|
13422
13416
|
attr
|
|
13423
13417
|
], BaseTextInput.prototype, "autocomplete", 2);
|
|
13424
|
-
__decorateClass$8([
|
|
13425
|
-
attr({ mode: "boolean" })
|
|
13426
|
-
], BaseTextInput.prototype, "autofocus", 2);
|
|
13427
13418
|
__decorateClass$8([
|
|
13428
13419
|
attr({ attribute: "current-value" })
|
|
13429
13420
|
], BaseTextInput.prototype, "currentValue", 2);
|
|
@@ -13513,7 +13504,7 @@ applyMixins(TextInput, StartEnd);
|
|
|
13513
13504
|
const styles$5 = css`${display("block")} :host{font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};line-height:${lineHeightBase300};max-width:400px}.label{display:flex;color:${colorNeutralForeground1};padding-bottom:${spacingVerticalXS};flex-shrink:0;padding-inline-end:${spacingHorizontalXS}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${colorNeutralBackground1};border:${strokeWidthThin} solid ${colorNeutralStroke1};border-bottom-color:${colorNeutralStrokeAccessible};border-radius:${borderRadiusMedium};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${spacingHorizontalXXS};padding:0 ${spacingHorizontalMNudge};position:relative;width:100%}:has(.control:user-invalid){border-color:${colorPaletteRedBorder2}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${borderRadiusMedium});border-radius:0 0 ${borderRadiusMedium} ${borderRadiusMedium};border-bottom:2px solid ${colorCompoundBrandStroke};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${durationUltraFast};transition-delay:${curveAccelerateMid}}.control{width:100%;height:100%;box-sizing:border-box;color:${colorNeutralForeground1};border-radius:${borderRadiusMedium};background:${colorTransparentBackground};font-family:${fontFamilyBase};font-weight:${fontWeightRegular};font-size:${fontSizeBase300};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${colorNeutralForeground4}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${colorNeutralForeground3};font-size:${fontSizeBase500}}:host ::slotted([slot='start']){padding-right:${spacingHorizontalXXS}}:host ::slotted([slot='end']){padding-left:${spacingHorizontalXXS};gap:${spacingHorizontalXS}}:host(:hover) .root{border-color:${colorNeutralStroke1Hover};border-bottom-color:${colorNeutralStrokeAccessibleHover}}:host(:active) .root{border-color:${colorNeutralStroke1Pressed}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${durationNormal};transition-delay:${curveDecelerateMid}}:host(:focus-within:active) .root:after{border-bottom-color:${colorCompoundBrandStrokePressed}}:host([appearance='outline']:focus-within) .root{border:${strokeWidthThin} solid ${colorNeutralStroke1}}:host(:focus-within) .control{color:${colorNeutralForeground1}}:host([disabled]) .root{background:${colorTransparentBackground};border:${strokeWidthThin} solid ${colorNeutralStrokeDisabled}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${colorNeutralForegroundDisabled}}::selection{color:${colorNeutralForegroundInverted};background-color:${colorNeutralBackgroundInverted}}:host([control-size='small']) .control{font-size:${fontSizeBase200};font-weight:${fontWeightRegular};line-height:${lineHeightBase200}}:host([control-size='small']) .root{height:24px;gap:${spacingHorizontalXXS};padding:0 ${spacingHorizontalSNudge}}:host([control-size='small']) ::slotted([slot='start']),:host([control-size='small']) ::slotted([slot='end']){font-size:${fontSizeBase400}}:host([control-size='large']) .control{font-size:${fontSizeBase400};font-weight:${fontWeightRegular};line-height:${lineHeightBase400}}:host([control-size='large']) .root{height:40px;gap:${spacingHorizontalS};padding:0 ${spacingHorizontalM}}:host([control-size='large']) ::slotted([slot='start']),:host([control-size='large']) ::slotted([slot='end']){font-size:${fontSizeBase600}}:host([appearance='underline']) .root{background:${colorTransparentBackground};border:0;border-radius:0;border-bottom:${strokeWidthThin} solid ${colorNeutralStrokeAccessible}}:host([appearance='underline']:hover) .root{border-bottom-color:${colorNeutralStrokeAccessibleHover}}:host([appearance='underline']:active) .root{border-bottom-color:${colorNeutralStrokeAccessiblePressed}}:host([appearance='underline']:focus-within) .root{border:0;border-bottom-color:${colorNeutralStrokeAccessiblePressed}}:host([appearance='underline'][disabled]) .root{border-bottom-color:${colorNeutralStrokeDisabled}}:host([appearance='filled-lighter']) .root,:host([appearance='filled-darker']) .root{border:${strokeWidthThin} solid ${colorTransparentStroke};box-shadow:${shadow2}}:host([appearance='filled-lighter']) .root{background:${colorNeutralBackground1}}:host([appearance='filled-darker']) .root{background:${colorNeutralBackground3}}:host([appearance='filled-lighter']:hover) .root,:host([appearance='filled-darker']:hover) .root{border-color:${colorTransparentStrokeInteractive}}:host([appearance='filled-lighter']:active) .root,:host([appearance='filled-darker']:active) .root{border-color:${colorTransparentStrokeInteractive};background:${colorNeutralBackground3}}`;
|
|
13514
13505
|
|
|
13515
13506
|
function textInputTemplate(options = {}) {
|
|
13516
|
-
return html`<template @focusin=${(x, c) => x.focusinHandler(c.event)} @keydown=${(x, c) => x.keydownHandler(c.event)}><label part=label for=control class=label ${ref("controlLabel")}><slot ${slotted("defaultSlottedNodes")}></slot></label><div class=root part=root>${startSlotTemplate(options)} <input class=control part=control id=control @change=${(x, c) => x.changeHandler(c.event)} @input=${(x, c) => x.inputHandler(c.event)}
|
|
13507
|
+
return html`<template @focusin=${(x, c) => x.focusinHandler(c.event)} @keydown=${(x, c) => x.keydownHandler(c.event)}><label part=label for=control class=label ${ref("controlLabel")}><slot ${slotted("defaultSlottedNodes")}></slot></label><div class=root part=root>${startSlotTemplate(options)} <input class=control part=control id=control @change=${(x, c) => x.changeHandler(c.event)} @input=${(x, c) => x.inputHandler(c.event)} autocomplete=${(x) => x.autocomplete} ?disabled=${(x) => x.disabled} list=${(x) => x.list} maxlength=${(x) => x.maxlength} minlength=${(x) => x.minlength} ?multiple=${(x) => x.multiple} name=${(x) => x.name} pattern=${(x) => x.pattern} placeholder=${(x) => x.placeholder} ?readonly=${(x) => x.readOnly} ?required=${(x) => x.required} size=${(x) => x.size} spellcheck=${(x) => x.spellcheck} type=${(x) => x.type} value=${(x) => x.value} ${ref("control")}> ${endSlotTemplate(options)}</div></template>`;
|
|
13517
13508
|
}
|
|
13518
13509
|
const template$5 = textInputTemplate();
|
|
13519
13510
|
|