@fluentui/web-components 3.0.0-beta.86 → 3.0.0-beta.88

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 CHANGED
@@ -1,12 +1,30 @@
1
1
  # Change Log - @fluentui/web-components
2
2
 
3
- This log was last generated on Fri, 14 Mar 2025 04:06:53 GMT and should not be manually modified.
3
+ This log was last generated on Fri, 21 Mar 2025 04:07:25 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [3.0.0-beta.88](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.0.0-beta.88)
8
+
9
+ Fri, 21 Mar 2025 04:07:25 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v3.0.0-beta.87..@fluentui/web-components_v3.0.0-beta.88)
11
+
12
+ ### Changes
13
+
14
+ - fix: emit change event on tablist only when active tab changed ([PR #34055](https://github.com/microsoft/fluentui/pull/34055) by machi@microsoft.com)
15
+
16
+ ## [3.0.0-beta.87](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.0.0-beta.87)
17
+
18
+ Thu, 20 Mar 2025 04:07:02 GMT
19
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v3.0.0-beta.86..@fluentui/web-components_v3.0.0-beta.87)
20
+
21
+ ### Changes
22
+
23
+ - [chore]: move core functionality to base dropdown ([PR #34033](https://github.com/microsoft/fluentui/pull/34033) by jes@microsoft.com)
24
+
7
25
  ## [3.0.0-beta.86](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.0.0-beta.86)
8
26
 
9
- Fri, 14 Mar 2025 04:06:53 GMT
27
+ Fri, 14 Mar 2025 04:07:05 GMT
10
28
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v3.0.0-beta.85..@fluentui/web-components_v3.0.0-beta.86)
11
29
 
12
30
  ### Changes
@@ -18,6 +18,13 @@ import { DropdownType } from './dropdown.options.js';
18
18
  * @public
19
19
  */
20
20
  export declare class BaseDropdown extends FASTElement {
21
+ /**
22
+ * Static property for the anchor positioning fallback observer. The observer is used to flip the listbox when it is
23
+ * out of view.
24
+ * @remarks This is only used when the browser does not support CSS anchor positioning.
25
+ * @internal
26
+ */
27
+ private static AnchorPositionFallbackObserver;
21
28
  /**
22
29
  * The ID of the current active descendant.
23
30
  *
@@ -415,4 +422,20 @@ export declare class BaseDropdown extends FASTElement {
415
422
  * @internal
416
423
  */
417
424
  protected updateFreeformOption(value?: string): void;
425
+ connectedCallback(): void;
426
+ disconnectedCallback(): void;
427
+ /**
428
+ * Handles the connected event for the listbox.
429
+ *
430
+ * @param e - the event object
431
+ * @internal
432
+ */
433
+ private listboxConnectedHandler;
434
+ /**
435
+ * When anchor positioning isn't supported, an intersection observer is used to flip the listbox when it hits the
436
+ * viewport bounds. One static observer is used for all dropdowns.
437
+ *
438
+ * @internal
439
+ */
440
+ private anchorPositionFallback;
418
441
  }
@@ -10,13 +10,6 @@ import { DropdownAppearance, DropdownSize } from './dropdown.options.js';
10
10
  * @public
11
11
  */
12
12
  export declare class Dropdown extends BaseDropdown {
13
- /**
14
- * Static property for the anchor positioning fallback observer. The observer is used to flip the listbox when it is
15
- * out of view.
16
- * @remarks This is only used when the browser does not support CSS anchor positioning.
17
- * @internal
18
- */
19
- private static AnchorPositionFallbackObserver;
20
13
  /**
21
14
  * The appearance of the dropdown.
22
15
  *
@@ -48,29 +41,4 @@ export declare class Dropdown extends BaseDropdown {
48
41
  * @internal
49
42
  */
50
43
  sizeChanged(prev: DropdownSize | undefined, next: DropdownSize | undefined): void;
51
- connectedCallback(): void;
52
- constructor();
53
- disconnectedCallback(): void;
54
- /**
55
- * Handles the connected event for the listbox.
56
- *
57
- * @param e - the event object
58
- * @internal
59
- */
60
- private listboxConnectedHandler;
61
- /**
62
- * Adds or removes the window event listener based on the open state.
63
- *
64
- * @param prev - the previous open state
65
- * @param next - the current open state
66
- * @internal
67
- */
68
- openChanged(prev: boolean | undefined, next: boolean | undefined): void;
69
- /**
70
- * When anchor positioning isn't supported, an intersection observer is used to flip the listbox when it hits the
71
- * viewport bounds. One static observer is used for all dropdowns.
72
- *
73
- * @internal
74
- */
75
- private anchorPositionFallback;
76
44
  }
@@ -1,5 +1,6 @@
1
1
  import { __decorate } from "tslib";
2
2
  import { attr, FASTElement, Observable, observable, Updates, volatile } from '@microsoft/fast-element';
3
+ import { isListbox } from '../listbox/listbox.options.js';
3
4
  import { isDropdownOption } from '../option/option.options.js';
4
5
  import { toggleState } from '../utils/element-internals.js';
5
6
  import { getLanguage } from '../utils/language.js';
@@ -172,6 +173,11 @@ export class BaseDropdown extends FASTElement {
172
173
  toggleState(this.elementInternals, 'open', next);
173
174
  this.elementInternals.ariaExpanded = next ? 'true' : 'false';
174
175
  this.activeIndex = this.selectedIndex ?? -1;
176
+ if (next) {
177
+ BaseDropdown.AnchorPositionFallbackObserver?.observe(this.listbox);
178
+ return;
179
+ }
180
+ BaseDropdown.AnchorPositionFallbackObserver?.unobserve(this.listbox);
175
181
  }
176
182
  /**
177
183
  * Changes the slotted control element based on the dropdown type.
@@ -398,6 +404,7 @@ export class BaseDropdown extends FASTElement {
398
404
  */
399
405
  this.elementInternals = this.attachInternals();
400
406
  this.elementInternals.role = 'presentation';
407
+ this.addEventListener('connected', this.listboxConnectedHandler);
401
408
  Updates.enqueue(() => {
402
409
  this.insertControl();
403
410
  });
@@ -616,6 +623,49 @@ export class BaseDropdown extends FASTElement {
616
623
  this.freeformOption.value = value;
617
624
  this.freeformOption.hidden = false;
618
625
  }
626
+ connectedCallback() {
627
+ super.connectedCallback();
628
+ this.anchorPositionFallback();
629
+ }
630
+ disconnectedCallback() {
631
+ BaseDropdown.AnchorPositionFallbackObserver?.unobserve(this.listbox);
632
+ super.disconnectedCallback();
633
+ }
634
+ /**
635
+ * Handles the connected event for the listbox.
636
+ *
637
+ * @param e - the event object
638
+ * @internal
639
+ */
640
+ listboxConnectedHandler(e) {
641
+ const target = e.target;
642
+ if (isListbox(target)) {
643
+ this.listbox = target;
644
+ }
645
+ }
646
+ /**
647
+ * When anchor positioning isn't supported, an intersection observer is used to flip the listbox when it hits the
648
+ * viewport bounds. One static observer is used for all dropdowns.
649
+ *
650
+ * @internal
651
+ */
652
+ anchorPositionFallback() {
653
+ BaseDropdown.AnchorPositionFallbackObserver =
654
+ BaseDropdown.AnchorPositionFallbackObserver ??
655
+ new IntersectionObserver((entries) => {
656
+ entries.forEach(({ boundingClientRect, isIntersecting, target }) => {
657
+ if (isListbox(target) && !isIntersecting) {
658
+ if (boundingClientRect.bottom > window.innerHeight) {
659
+ toggleState(target.dropdown.elementInternals, 'flip-block', true);
660
+ return;
661
+ }
662
+ if (boundingClientRect.top < 0) {
663
+ toggleState(target.dropdown.elementInternals, 'flip-block', false);
664
+ }
665
+ }
666
+ });
667
+ }, { threshold: 1 });
668
+ }
619
669
  }
620
670
  __decorate([
621
671
  volatile
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown.base.js","sourceRoot":"","sources":["../../../src/dropdown/dropdown.base.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAGvG,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAEvF;;;;;;;;;;;;;;GAcG;AACH,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;OAIG;IAEH,IAAW,gBAAgB;QACzB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;8CACA;AAsB1B;IADC,QAAQ;gDAuBR;AAWe;IADf,IAAI,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;wCACyB;AAQ5C;IADN,UAAU;+CACuB;AAQ3B;IADN,UAAU;mDAC4B;AAUhC;IADN,IAAI,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;kDAClB;AAQtB;IADN,UAAU;6CACc;AA4ClB;IADN,UAAU;iDAC0B;AAU9B;IADN,IAAI,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8CACA;AAuBnB;IADN,IAAI;0CACgB;AAwBd;IADN,UAAU;0CACW;AA6Bf;IADN,IAAI;iDACuB;AAUrB;IADN,IAAI,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8CACO;AAU1B;IADN,IAAI;0CAC6C;AAwB3C;IADN,IAAI,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC;oDACM"}
@@ -1,7 +1,6 @@
1
1
  import { __decorate } from "tslib";
2
2
  import { attr } from '@microsoft/fast-element';
3
- import { isListbox } from '../listbox/listbox.options.js';
4
- import { swapStates, toggleState } from '../utils/element-internals.js';
3
+ import { swapStates } from '../utils/element-internals.js';
5
4
  import { BaseDropdown } from './dropdown.base.js';
6
5
  import { DropdownAppearance, DropdownSize } from './dropdown.options.js';
7
6
  /**
@@ -14,32 +13,8 @@ import { DropdownAppearance, DropdownSize } from './dropdown.options.js';
14
13
  * @public
15
14
  */
16
15
  export class Dropdown extends BaseDropdown {
17
- /**
18
- * Swaps appearance states when the appearance property changes.
19
- *
20
- * @param prev - the previous appearance state
21
- * @param next - the current appearance state
22
- * @internal
23
- */
24
- appearanceChanged(prev, next) {
25
- swapStates(this.elementInternals, prev, next, DropdownAppearance);
26
- }
27
- /**
28
- * Swaps size states when the size property changes.
29
- *
30
- * @param prev - the previous size state
31
- * @param next - the current size state
32
- * @internal
33
- */
34
- sizeChanged(prev, next) {
35
- swapStates(this.elementInternals, prev, next, DropdownSize);
36
- }
37
- connectedCallback() {
38
- super.connectedCallback();
39
- this.anchorPositionFallback();
40
- }
41
16
  constructor() {
42
- super();
17
+ super(...arguments);
43
18
  /**
44
19
  * The appearance of the dropdown.
45
20
  *
@@ -48,61 +23,26 @@ export class Dropdown extends BaseDropdown {
48
23
  * HTML Attribute: `appearance`
49
24
  */
50
25
  this.appearance = DropdownAppearance.outline;
51
- this.addEventListener('connected', this.listboxConnectedHandler);
52
- }
53
- disconnectedCallback() {
54
- Dropdown.AnchorPositionFallbackObserver?.unobserve(this.listbox);
55
- super.disconnectedCallback();
56
26
  }
57
27
  /**
58
- * Handles the connected event for the listbox.
59
- *
60
- * @param e - the event object
61
- * @internal
62
- */
63
- listboxConnectedHandler(e) {
64
- const target = e.target;
65
- if (isListbox(target)) {
66
- this.listbox = target;
67
- }
68
- }
69
- /**
70
- * Adds or removes the window event listener based on the open state.
28
+ * Swaps appearance states when the appearance property changes.
71
29
  *
72
- * @param prev - the previous open state
73
- * @param next - the current open state
30
+ * @param prev - the previous appearance state
31
+ * @param next - the current appearance state
74
32
  * @internal
75
33
  */
76
- openChanged(prev, next) {
77
- super.openChanged(prev, next);
78
- if (next) {
79
- Dropdown.AnchorPositionFallbackObserver?.observe(this.listbox);
80
- return;
81
- }
82
- Dropdown.AnchorPositionFallbackObserver?.unobserve(this.listbox);
34
+ appearanceChanged(prev, next) {
35
+ swapStates(this.elementInternals, prev, next, DropdownAppearance);
83
36
  }
84
37
  /**
85
- * When anchor positioning isn't supported, an intersection observer is used to flip the listbox when it hits the
86
- * viewport bounds. One static observer is used for all dropdowns.
38
+ * Swaps size states when the size property changes.
87
39
  *
40
+ * @param prev - the previous size state
41
+ * @param next - the current size state
88
42
  * @internal
89
43
  */
90
- anchorPositionFallback() {
91
- Dropdown.AnchorPositionFallbackObserver =
92
- Dropdown.AnchorPositionFallbackObserver ??
93
- new IntersectionObserver((entries) => {
94
- entries.forEach(({ boundingClientRect, isIntersecting, target }) => {
95
- if (isListbox(target) && !isIntersecting) {
96
- if (boundingClientRect.bottom > window.innerHeight) {
97
- toggleState(target.dropdown.elementInternals, 'flip-block', true);
98
- return;
99
- }
100
- if (boundingClientRect.top < 0) {
101
- toggleState(target.dropdown.elementInternals, 'flip-block', false);
102
- }
103
- }
104
- });
105
- }, { threshold: 1 });
44
+ sizeChanged(prev, next) {
45
+ swapStates(this.elementInternals, prev, next, DropdownSize);
106
46
  }
107
47
  }
108
48
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown.js","sourceRoot":"","sources":["../../../src/dropdown/dropdown.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAEzE;;;;;;;;GAQG;AACH,MAAM,OAAO,QAAS,SAAQ,YAAY;IAmBxC;;;;;;OAMG;IACI,iBAAiB,CAAC,IAAoC,EAAE,IAAoC;QACjG,UAAU,CAAC,IAAI,CAAC,gBAAgB,EAAE,IAAI,EAAE,IAAI,EAAE,kBAAkB,CAAC,CAAC;IACpE,CAAC;IAWD;;;;;;OAMG;IACI,WAAW,CAAC,IAA8B,EAAE,IAA8B;QAC/E,UAAU,CAAC,IAAI,CAAC,gBAAgB,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,CAAC,CAAC;IAC9D,CAAC;IAED,iBAAiB;QACf,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,IAAI,CAAC,sBAAsB,EAAE,CAAC;IAChC,CAAC;IAED;QACE,KAAK,EAAE,CAAC;QA/CV;;;;;;WAMG;QAEI,eAAU,GAAuB,kBAAkB,CAAC,O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C,CAAC;gCACnE,OAAO;4BACT,CAAC;4BAED,IAAI,kBAAkB,CAAC,GAAG,GAAG,CAAC,EAAE,CAAC;gCAC/B,WAAW,CAAC,MAAM,CAAC,QAAS,CAAC,gBAAgB,EAAE,YAAY,EAAE,KAAK,CAAC,CAAC;4BACtE,CAAC;wBACH,CAAC;oBACH,CAAC,CAAC,CAAC;gBACL,CAAC,EACD,EAAE,SAAS,EAAE,CAAC,EAAE,CACjB,CAAC;IACN,CAAC;CACF;AA7GQ;IADN,IAAI;4CAC8D;AAoB5D;IADN,IAAI;sCACsB"}
1
+ {"version":3,"file":"dropdown.js","sourceRoot":"","sources":["../../../src/dropdown/dropdown.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAEzE;;;;;;;;GAQG;AACH,MAAM,OAAO,QAAS,SAAQ,YAAY;IAA1C;;QACE;;;;;;WAMG;QAEI,eAAU,GAAuB,kBAAkB,CAAC,OAAO,CAAC;IAgCrE,CAAC;IA9BC;;;;;;OAMG;IACI,iBAAiB,CAAC,IAAoC,EAAE,IAAoC;QACjG,UAAU,CAAC,IAAI,CAAC,gBAAgB,EAAE,IAAI,EAAE,IAAI,EAAE,kBAAkB,CAAC,CAAC;IACpE,CAAC;IAWD;;;;;;OAMG;IACI,WAAW,CAAC,IAA8B,EAAE,IAA8B;QAC/E,UAAU,CAAC,IAAI,CAAC,gBAAgB,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,CAAC,CAAC;IAC9D,CAAC;CACF;AAhCQ;IADN,IAAI;4CAC8D;AAoB5D;IADN,IAAI;sCACsB"}
@@ -128,6 +128,9 @@ export class BaseTablist extends FASTElement {
128
128
  activePanel.hidden = false;
129
129
  }
130
130
  }
131
+ if (oldValue !== newValue) {
132
+ this.change();
133
+ }
131
134
  }
132
135
  }
133
136
  /**
@@ -178,7 +181,6 @@ export class BaseTablist extends FASTElement {
178
181
  this.activetab = tab;
179
182
  this.activeid = tabId;
180
183
  }
181
- this.change();
182
184
  }
183
185
  });
184
186
  }
@@ -191,7 +193,6 @@ export class BaseTablist extends FASTElement {
191
193
  if (this.activeTabIndex !== this.prevActiveTabIndex) {
192
194
  this.activeid = this.tabIds[this.activeTabIndex];
193
195
  this.focusTab();
194
- this.change();
195
196
  }
196
197
  }
197
198
  isHorizontal() {
@@ -1 +1 @@
1
- {"version":3,"file":"tablist.base.js","sourceRoot":"","sources":["../../../src/tablist/tablist.base.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,UAAU,EACV,MAAM,EACN,OAAO,EACP,QAAQ,EACR,YAAY,GACb,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D;;;GAGG;AACH,MAAM,OAAO,WAAY,SAAQ,WAAW;IAA5C;;QACE;;;;WAIG;QACI,qBAAgB,GAAqB,IAAI,CAAC,eAAe,EAAE,CAAC;QACnE;;;;;WAKG;QAEI,aAAQ,GAAY,KAAK,CAAC;QAajC;;;;;WAKG;QAEI,gBAAW,GAAuB,kBAAkB,CAAC,UAAU,CAAC;QAgF/D,uBAAkB,GAAW,CAAC,CAAC;QAC/B,mBAAc,GAAW,CAAC,CAAC;QAG3B,gBAAW,GAAG,IAAI,OAAO,E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,UAAU;yCACiB"}
@@ -1648,6 +1648,13 @@ export declare class BaseDivider extends FASTElement {
1648
1648
  * @public
1649
1649
  */
1650
1650
  export declare class BaseDropdown extends FASTElement {
1651
+ /**
1652
+ * Static property for the anchor positioning fallback observer. The observer is used to flip the listbox when it is
1653
+ * out of view.
1654
+ * @remarks This is only used when the browser does not support CSS anchor positioning.
1655
+ * @internal
1656
+ */
1657
+ private static AnchorPositionFallbackObserver;
1651
1658
  /**
1652
1659
  * The ID of the current active descendant.
1653
1660
  *
@@ -2045,6 +2052,22 @@ export declare class BaseDropdown extends FASTElement {
2045
2052
  * @internal
2046
2053
  */
2047
2054
  protected updateFreeformOption(value?: string): void;
2055
+ connectedCallback(): void;
2056
+ disconnectedCallback(): void;
2057
+ /**
2058
+ * Handles the connected event for the listbox.
2059
+ *
2060
+ * @param e - the event object
2061
+ * @internal
2062
+ */
2063
+ private listboxConnectedHandler;
2064
+ /**
2065
+ * When anchor positioning isn't supported, an intersection observer is used to flip the listbox when it hits the
2066
+ * viewport bounds. One static observer is used for all dropdowns.
2067
+ *
2068
+ * @internal
2069
+ */
2070
+ private anchorPositionFallback;
2048
2071
  }
2049
2072
 
2050
2073
  /**
@@ -6610,13 +6633,6 @@ export declare type DrawerType = ValuesOf<typeof DrawerType>;
6610
6633
  * @public
6611
6634
  */
6612
6635
  export declare class Dropdown extends BaseDropdown {
6613
- /**
6614
- * Static property for the anchor positioning fallback observer. The observer is used to flip the listbox when it is
6615
- * out of view.
6616
- * @remarks This is only used when the browser does not support CSS anchor positioning.
6617
- * @internal
6618
- */
6619
- private static AnchorPositionFallbackObserver;
6620
6636
  /**
6621
6637
  * The appearance of the dropdown.
6622
6638
  *
@@ -6648,31 +6664,6 @@ export declare class Dropdown extends BaseDropdown {
6648
6664
  * @internal
6649
6665
  */
6650
6666
  sizeChanged(prev: DropdownSize | undefined, next: DropdownSize | undefined): void;
6651
- connectedCallback(): void;
6652
- constructor();
6653
- disconnectedCallback(): void;
6654
- /**
6655
- * Handles the connected event for the listbox.
6656
- *
6657
- * @param e - the event object
6658
- * @internal
6659
- */
6660
- private listboxConnectedHandler;
6661
- /**
6662
- * Adds or removes the window event listener based on the open state.
6663
- *
6664
- * @param prev - the previous open state
6665
- * @param next - the current open state
6666
- * @internal
6667
- */
6668
- openChanged(prev: boolean | undefined, next: boolean | undefined): void;
6669
- /**
6670
- * When anchor positioning isn't supported, an intersection observer is used to flip the listbox when it hits the
6671
- * viewport bounds. One static observer is used for all dropdowns.
6672
- *
6673
- * @internal
6674
- */
6675
- private anchorPositionFallback;
6676
6667
  }
6677
6668
 
6678
6669
  /**
@@ -7463,7 +7463,7 @@ var __decorateClass$z = (decorators, target, key, kind) => {
7463
7463
  if (kind && result) __defProp$z(target, key, result);
7464
7464
  return result;
7465
7465
  };
7466
- class BaseDropdown extends FASTElement {
7466
+ const _BaseDropdown = class _BaseDropdown extends FASTElement {
7467
7467
  constructor() {
7468
7468
  super();
7469
7469
  this.activeIndex = 0;
@@ -7478,6 +7478,7 @@ class BaseDropdown extends FASTElement {
7478
7478
  */
7479
7479
  this.elementInternals = this.attachInternals();
7480
7480
  this.elementInternals.role = "presentation";
7481
+ this.addEventListener("connected", this.listboxConnectedHandler);
7481
7482
  Updates.enqueue(() => {
7482
7483
  this.insertControl();
7483
7484
  });
@@ -7619,6 +7620,11 @@ class BaseDropdown extends FASTElement {
7619
7620
  toggleState(this.elementInternals, "open", next);
7620
7621
  this.elementInternals.ariaExpanded = next ? "true" : "false";
7621
7622
  this.activeIndex = this.selectedIndex ?? -1;
7623
+ if (next) {
7624
+ _BaseDropdown.AnchorPositionFallbackObserver?.observe(this.listbox);
7625
+ return;
7626
+ }
7627
+ _BaseDropdown.AnchorPositionFallbackObserver?.unobserve(this.listbox);
7622
7628
  }
7623
7629
  /**
7624
7630
  * Changes the slotted control element based on the dropdown type.
@@ -8011,49 +8017,97 @@ class BaseDropdown extends FASTElement {
8011
8017
  this.freeformOption.value = value;
8012
8018
  this.freeformOption.hidden = false;
8013
8019
  }
8014
- }
8020
+ connectedCallback() {
8021
+ super.connectedCallback();
8022
+ this.anchorPositionFallback();
8023
+ }
8024
+ disconnectedCallback() {
8025
+ _BaseDropdown.AnchorPositionFallbackObserver?.unobserve(this.listbox);
8026
+ super.disconnectedCallback();
8027
+ }
8028
+ /**
8029
+ * Handles the connected event for the listbox.
8030
+ *
8031
+ * @param e - the event object
8032
+ * @internal
8033
+ */
8034
+ listboxConnectedHandler(e) {
8035
+ const target = e.target;
8036
+ if (isListbox(target)) {
8037
+ this.listbox = target;
8038
+ }
8039
+ }
8040
+ /**
8041
+ * When anchor positioning isn't supported, an intersection observer is used to flip the listbox when it hits the
8042
+ * viewport bounds. One static observer is used for all dropdowns.
8043
+ *
8044
+ * @internal
8045
+ */
8046
+ anchorPositionFallback() {
8047
+ _BaseDropdown.AnchorPositionFallbackObserver = _BaseDropdown.AnchorPositionFallbackObserver ?? new IntersectionObserver(entries => {
8048
+ entries.forEach(({
8049
+ boundingClientRect,
8050
+ isIntersecting,
8051
+ target
8052
+ }) => {
8053
+ if (isListbox(target) && !isIntersecting) {
8054
+ if (boundingClientRect.bottom > window.innerHeight) {
8055
+ toggleState(target.dropdown.elementInternals, "flip-block", true);
8056
+ return;
8057
+ }
8058
+ if (boundingClientRect.top < 0) {
8059
+ toggleState(target.dropdown.elementInternals, "flip-block", false);
8060
+ }
8061
+ }
8062
+ });
8063
+ }, {
8064
+ threshold: 1
8065
+ });
8066
+ }
8067
+ };
8015
8068
  /**
8016
8069
  * The form-associated flag.
8017
8070
  * @see {@link https://html.spec.whatwg.org/multipage/custom-elements.html#custom-elements-face-example | Form-associated custom elements}
8018
8071
  *
8019
8072
  * @public
8020
8073
  */
8021
- BaseDropdown.formAssociated = true;
8022
- __decorateClass$z([volatile], BaseDropdown.prototype, "activeDescendant", 1);
8023
- __decorateClass$z([observable], BaseDropdown.prototype, "activeIndex", 2);
8074
+ _BaseDropdown.formAssociated = true;
8075
+ __decorateClass$z([volatile], _BaseDropdown.prototype, "activeDescendant", 1);
8076
+ __decorateClass$z([observable], _BaseDropdown.prototype, "activeIndex", 2);
8024
8077
  __decorateClass$z([attr({
8025
8078
  attribute: "aria-labelledby",
8026
8079
  mode: "fromView"
8027
- })], BaseDropdown.prototype, "ariaLabelledBy", 2);
8028
- __decorateClass$z([observable], BaseDropdown.prototype, "control", 2);
8080
+ })], _BaseDropdown.prototype, "ariaLabelledBy", 2);
8081
+ __decorateClass$z([observable], _BaseDropdown.prototype, "control", 2);
8029
8082
  __decorateClass$z([attr({
8030
8083
  mode: "boolean"
8031
- })], BaseDropdown.prototype, "disabled", 2);
8032
- __decorateClass$z([volatile], BaseDropdown.prototype, "displayValue", 1);
8084
+ })], _BaseDropdown.prototype, "disabled", 2);
8085
+ __decorateClass$z([volatile], _BaseDropdown.prototype, "displayValue", 1);
8033
8086
  __decorateClass$z([attr({
8034
8087
  attribute: "id"
8035
- })], BaseDropdown.prototype, "id", 2);
8036
- __decorateClass$z([observable], BaseDropdown.prototype, "indicator", 2);
8037
- __decorateClass$z([observable], BaseDropdown.prototype, "indicatorSlot", 2);
8088
+ })], _BaseDropdown.prototype, "id", 2);
8089
+ __decorateClass$z([observable], _BaseDropdown.prototype, "indicator", 2);
8090
+ __decorateClass$z([observable], _BaseDropdown.prototype, "indicatorSlot", 2);
8038
8091
  __decorateClass$z([attr({
8039
8092
  attribute: "value",
8040
8093
  mode: "fromView"
8041
- })], BaseDropdown.prototype, "initialValue", 2);
8042
- __decorateClass$z([observable], BaseDropdown.prototype, "listbox", 2);
8043
- __decorateClass$z([observable], BaseDropdown.prototype, "listboxSlot", 2);
8094
+ })], _BaseDropdown.prototype, "initialValue", 2);
8095
+ __decorateClass$z([observable], _BaseDropdown.prototype, "listbox", 2);
8096
+ __decorateClass$z([observable], _BaseDropdown.prototype, "listboxSlot", 2);
8044
8097
  __decorateClass$z([attr({
8045
8098
  mode: "boolean"
8046
- })], BaseDropdown.prototype, "multiple", 2);
8047
- __decorateClass$z([attr], BaseDropdown.prototype, "name", 2);
8048
- __decorateClass$z([observable], BaseDropdown.prototype, "open", 2);
8049
- __decorateClass$z([attr], BaseDropdown.prototype, "placeholder", 2);
8099
+ })], _BaseDropdown.prototype, "multiple", 2);
8100
+ __decorateClass$z([attr], _BaseDropdown.prototype, "name", 2);
8101
+ __decorateClass$z([observable], _BaseDropdown.prototype, "open", 2);
8102
+ __decorateClass$z([attr], _BaseDropdown.prototype, "placeholder", 2);
8050
8103
  __decorateClass$z([attr({
8051
8104
  mode: "boolean"
8052
- })], BaseDropdown.prototype, "required", 2);
8053
- __decorateClass$z([attr], BaseDropdown.prototype, "type", 2);
8105
+ })], _BaseDropdown.prototype, "required", 2);
8106
+ __decorateClass$z([attr], _BaseDropdown.prototype, "type", 2);
8054
8107
  __decorateClass$z([attr({
8055
8108
  attribute: "value"
8056
- })], BaseDropdown.prototype, "valueAttribute", 2);
8109
+ })], _BaseDropdown.prototype, "valueAttribute", 2);
8110
+ let BaseDropdown = _BaseDropdown;
8057
8111
 
8058
8112
  var __defProp$y = Object.defineProperty;
8059
8113
  var __getOwnPropDesc$y = Object.getOwnPropertyDescriptor;
@@ -8063,11 +8117,10 @@ var __decorateClass$y = (decorators, target, key, kind) => {
8063
8117
  if (kind && result) __defProp$y(target, key, result);
8064
8118
  return result;
8065
8119
  };
8066
- const _Dropdown = class _Dropdown extends BaseDropdown {
8120
+ class Dropdown extends BaseDropdown {
8067
8121
  constructor() {
8068
- super();
8122
+ super(...arguments);
8069
8123
  this.appearance = DropdownAppearance.outline;
8070
- this.addEventListener("connected", this.listboxConnectedHandler);
8071
8124
  }
8072
8125
  /**
8073
8126
  * Swaps appearance states when the appearance property changes.
@@ -8089,72 +8142,9 @@ const _Dropdown = class _Dropdown extends BaseDropdown {
8089
8142
  sizeChanged(prev, next) {
8090
8143
  swapStates(this.elementInternals, prev, next, DropdownSize);
8091
8144
  }
8092
- connectedCallback() {
8093
- super.connectedCallback();
8094
- this.anchorPositionFallback();
8095
- }
8096
- disconnectedCallback() {
8097
- _Dropdown.AnchorPositionFallbackObserver?.unobserve(this.listbox);
8098
- super.disconnectedCallback();
8099
- }
8100
- /**
8101
- * Handles the connected event for the listbox.
8102
- *
8103
- * @param e - the event object
8104
- * @internal
8105
- */
8106
- listboxConnectedHandler(e) {
8107
- const target = e.target;
8108
- if (isListbox(target)) {
8109
- this.listbox = target;
8110
- }
8111
- }
8112
- /**
8113
- * Adds or removes the window event listener based on the open state.
8114
- *
8115
- * @param prev - the previous open state
8116
- * @param next - the current open state
8117
- * @internal
8118
- */
8119
- openChanged(prev, next) {
8120
- super.openChanged(prev, next);
8121
- if (next) {
8122
- _Dropdown.AnchorPositionFallbackObserver?.observe(this.listbox);
8123
- return;
8124
- }
8125
- _Dropdown.AnchorPositionFallbackObserver?.unobserve(this.listbox);
8126
- }
8127
- /**
8128
- * When anchor positioning isn't supported, an intersection observer is used to flip the listbox when it hits the
8129
- * viewport bounds. One static observer is used for all dropdowns.
8130
- *
8131
- * @internal
8132
- */
8133
- anchorPositionFallback() {
8134
- _Dropdown.AnchorPositionFallbackObserver = _Dropdown.AnchorPositionFallbackObserver ?? new IntersectionObserver(entries => {
8135
- entries.forEach(({
8136
- boundingClientRect,
8137
- isIntersecting,
8138
- target
8139
- }) => {
8140
- if (isListbox(target) && !isIntersecting) {
8141
- if (boundingClientRect.bottom > window.innerHeight) {
8142
- toggleState(target.dropdown.elementInternals, "flip-block", true);
8143
- return;
8144
- }
8145
- if (boundingClientRect.top < 0) {
8146
- toggleState(target.dropdown.elementInternals, "flip-block", false);
8147
- }
8148
- }
8149
- });
8150
- }, {
8151
- threshold: 1
8152
- });
8153
- }
8154
- };
8155
- __decorateClass$y([attr], _Dropdown.prototype, "appearance", 2);
8156
- __decorateClass$y([attr], _Dropdown.prototype, "size", 2);
8157
- let Dropdown = _Dropdown;
8145
+ }
8146
+ __decorateClass$y([attr], Dropdown.prototype, "appearance", 2);
8147
+ __decorateClass$y([attr], Dropdown.prototype, "size", 2);
8158
8148
 
8159
8149
  const styles$s = css`
8160
8150
  ${display("inline-flex")}
@@ -12265,6 +12255,9 @@ class BaseTablist extends FASTElement {
12265
12255
  activePanel.hidden = false;
12266
12256
  }
12267
12257
  }
12258
+ if (oldValue !== newValue) {
12259
+ this.change();
12260
+ }
12268
12261
  }
12269
12262
  }
12270
12263
  /**
@@ -12314,7 +12307,6 @@ class BaseTablist extends FASTElement {
12314
12307
  this.activetab = tab;
12315
12308
  this.activeid = tabId;
12316
12309
  }
12317
- this.change();
12318
12310
  }
12319
12311
  });
12320
12312
  }
@@ -12327,7 +12319,6 @@ class BaseTablist extends FASTElement {
12327
12319
  if (this.activeTabIndex !== this.prevActiveTabIndex) {
12328
12320
  this.activeid = this.tabIds[this.activeTabIndex];
12329
12321
  this.focusTab();
12330
- this.change();
12331
12322
  }
12332
12323
  }
12333
12324
  isHorizontal() {
@@ -430,10 +430,10 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
430
430
 
431
431
  :host{--dialog-backdrop:${Zr}}: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{box-sizing:border-box;z-index:var(--drawer-elevation,1000);font-size:${F};line-height:${H};font-family:${x};font-weight:${j};color:${_};max-width:var(--drawer-width,592px);max-height:100vh;height:100%;margin-inline-start:0;margin-inline-end:auto;border-inline-end-color:${ae};border-inline-start-color:var(--drawer-separator,${ae});outline:none;top:0;bottom:0;width:var(--drawer-width,592px);border-radius:0;padding:0;max-width:var(--drawer-width,592px);box-shadow:${Fa};border:${N} solid ${ae};background:${A}}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:${hs};transition-timing-function:${Rt}}:host dialog:not([open]){transform:translateX(-100%);transition-timing-function:${jt}}:host([position='end']) dialog:not([open]){transform:translateX(100%);transition-timing-function:${jt}}dialog[open]{transform:translateX(0)}dialog::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${hs};transition-timing-function:${Rt};background:var(--dialog-backdrop,${Zr});opacity:0}dialog[open]::backdrop{opacity:1}dialog::backdrop{transition-timing-function:${ps}}}@starting-style{dialog[open]{transform:translateX(-100%)}:host([position='end']) dialog[open]{transform:translateX(100%)}dialog[open]::backdrop{opacity:0}}}`;function tg(){return g`<dialog class="dialog" part="dialog" role="${o=>o.type==="modal"?"dialog":o.role}" aria-modal="${o=>o.type==="modal"?"true":void 0}" aria-describedby="${o=>o.ariaDescribedby}" aria-labelledby="${o=>o.ariaLabelledby}" aria-label="${o=>o.ariaLabel}" size="${o=>o.size}" position="${o=>o.position}" type="${o=>o.type}" @click="${(o,e)=>o.clickHandler(e.event)}" @cancel="${(o,e)=>o.hide()}" ${X("dialog")}><slot></slot></dialog>`}const og=tg(),ig=Gt.compose({name:`${b.prefix}-drawer`,template:og,styles:eg});ig.define(b.registry);class rg extends k{}const sg=p`
432
432
  ${C("grid")}
433
- :host{box-sizing:border-box;grid-template-rows:min-content auto min-content;position:relative;height:100%;padding:${Ru};max-height:100svh}.header{display:flex;justify-content:space-between;align-items:center;${Gp}}.footer{display:flex;justify-content:flex-start;gap:${ge}}`;function ng(){return g`<div class="header" part="header"><slot name="title"></slot><slot name="close"></slot></div><div class="content" part="content"><slot></slot></div><div class="footer" part="footer"><slot name="footer"></slot></div>`}const ag=ng(),lg=rg.compose({name:`${b.prefix}-drawer-body`,template:ag,styles:sg});lg.define(b.registry);function sl(o,e="-listbox"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}function nr(o,e="-option"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}function nl(o){return o.closest("[lang]")?.lang??"en"}let cg=0;function Yo(o="id-"){const e=`${o}${cg++}`;return document.getElementById(e)?Yo(o):e}const al={filledDarker:"filled-darker",filledLighter:"filled-lighter",outline:"outline",transparent:"transparent"},dg={small:"small",medium:"medium",large:"large"},ks={combobox:"combobox",dropdown:"dropdown",select:"select"},hg=g`<svg class="chevron-down-20-regular" role="button" slot="indicator" viewBox="0 0 20 20" ${X("indicator")}><path d="M15.85 7.65a.5.5 0 0 1 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16a.5.5 0 0 1 .7 0" fill="currentColor" /></svg>`,ug=g`<input @input="${(o,e)=>o.inputHandler(e.event)}" @change="${(o,e)=>o.changeHandler(e.event)}" aria-activedescendant="${o=>o.activeDescendant}" aria-controls="${o=>o.listbox?.id??null}" aria-labelledby="${o=>o.ariaLabelledBy}" aria-expanded="${o=>o.open}" aria-haspopup="listbox" placeholder="${o=>o.placeholder}" role="combobox" ?disabled="${o=>o.disabled}" type="${o=>o.type}" value="${o=>o.valueAttribute}" ${X("control")} />`,pg=g`<button aria-activedescendant="${o=>o.activeDescendant}" aria-controls="${o=>o.listbox?.id??null}" aria-expanded="${o=>o.open}" aria-haspopup="listbox" role="combobox" ?disabled="${o=>o.disabled}" type="button" ${X("control")}>${o=>o.displayValue}</button>`;function bg(o={}){return g`<template @click="${(e,t)=>e.clickHandler(t.event)}" @focusout="${(e,t)=>e.focusoutHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @mousedown="${(e,t)=>e.mousedownHandler(t.event)}"><div class="control"><slot name="control" ${X("controlSlot")}></slot><slot name="indicator" ${X("indicatorSlot")}>${$e(o.indicator)}</slot></div><slot ${X("listboxSlot")}></slot></template>`}const gg=bg({indicator:hg});var fg=Object.defineProperty,mg=Object.getOwnPropertyDescriptor,J=(o,e,t,i)=>{for(var r=i>1?void 0:i?mg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&fg(e,t,r),r};class R extends k{constructor(){super(),this.activeIndex=0,this.id=Yo("dropdown-"),this.required=!1,this.type=ks.dropdown,this.valueAttribute="",this.elementInternals=this.attachInternals(),this.elementInternals.role="presentation",re.enqueue(()=>{this.insertControl()})}get activeDescendant(){if(this.open)return this.enabledOptions[this.activeIndex]?.id}activeIndexChanged(e,t){if(typeof t=="number"){const i=this.matches(":has(:focus-visible)")?t:-1;this.enabledOptions.forEach((r,s)=>{r.active=s===i}),this.open&&this.enabledOptions[i]?.scrollIntoView({block:"nearest"})}}controlChanged(e,t){t&&(t.id=t.id||Yo("input-"),this.controlSlot?.assign(t))}disabledChanged(e,t){re.enqueue(()=>{this.options.forEach(i=>{i.disabled=i.disabledAttribute||this.disabled})})}get displayValue(){if(!this.$fastController.isConnected||!this.control||this.isCombobox&&this.multiple)return $(this.elementInternals,"placeholder-shown",!1),"";this.listFormatter=this.listFormatter??new Intl.ListFormat(nl(this),{type:"conjunction",style:"narrow"});const e=this.listFormatter.format(this.selectedOptions.map(t=>t.text));return $(this.elementInternals,"placeholder-shown",!e),this.isCombobox?e:e||this.placeholder}listboxChanged(e,t){if(e&&f.getNotifier(this).unsubscribe(e),t){t.dropdown=this,t.popover="manual",this.listboxSlot.assign(t);const i=f.getNotifier(this);i.subscribe(t);for(const r of["disabled","multiple"])i.notify(r);re.enqueue(()=>{this.enabledOptions.filter(r=>r.defaultSelected).forEach((r,s)=>{r.selected=this.multiple||s===0})})}}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",$(this.elementInternals,"multiple",t),this.value=null}nameChanged(e,t){re.enqueue(()=>{this.options.forEach(i=>{i.name=t})})}openChanged(e,t){$(this.elementInternals,"open",t),this.elementInternals.ariaExpanded=t?"true":"false",this.activeIndex=this.selectedIndex??-1}typeChanged(e,t){this.$fastController.isConnected&&this.insertControl()}get enabledOptions(){return this.listbox?.enabledOptions??[]}formResetCallback(){this.enabledOptions.forEach((e,t)=>{if(this.multiple){e.selected=!!e.defaultSelected;return}if(!e.defaultSelected){e.selected=!1;return}this.selectOption(t)})}get freeformOption(){return this.enabledOptions.find(e=>e.freeform)}get isCombobox(){return this.type===ks.combobox}get options(){return this.listbox?.options??[]}get selectedIndex(){return this.enabledOptions.findIndex(e=>e.selected)??-1}get selectedOptions(){return this.listbox?.selectedOptions??[]}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(!this.validationFallbackMessage){const e=document.createElement("input");e.type="radio",e.required=!0,e.checked=!1,this.validationFallbackMessage=e.validationMessage}return this.validationFallbackMessage}get value(){return f.notify(this,"value"),this.enabledOptions.find(e=>e.selected)?.value??null}set value(e){this.multiple||(this.selectOption(this.enabledOptions.findIndex(t=>t.value===e)),f.track(this,"value"))}changeHandler(e){if(this===e.target)return!0;const t=this.isCombobox?this.enabledOptions.findIndex(i=>i.text===this.control.value):this.enabledOptions.indexOf(e.target);return this.selectOption(t,!0),!0}clickHandler(e){if(this.disabled)return;const t=e.target;if(this.focus(),t===this.control&&!this.isCombobox)return this.listbox.togglePopover(),!0;if(!this.open)return this.listbox.showPopover(),!0;if(nr(t)){if(t.disabled)return;this.selectOption(this.enabledOptions.indexOf(t),!0),this.multiple||(this.isCombobox&&(this.control.value=t.text,this.updateFreeformOption()),this.listbox.hidePopover())}return!0}filterOptions(e,t=this.enabledOptions){return this.listCollator||(this.listCollator=new Intl.Collator(nl(this),{usage:"search",sensitivity:"base"})),t.filter(i=>this.listCollator.compare(i.text.substring(0,Math.min(i.text.length,e.length)),e)===0)}focus(e){this.disabled||this.control.focus(e)}focusoutHandler(e){const t=e.relatedTarget;return this.open&&!this.contains(t)&&this.listbox.togglePopover(),!0}getEnabledIndexInBounds(e,t=this.enabledOptions.length||0){return t===0?-1:(e+t)%t}inputHandler(e){this.open||this.listbox.showPopover(),this.updateFreeformOption();const t=this.control.value,i=this.enabledOptions.indexOf(this.filterOptions(t)[0]??null);return this.activeIndex=i,!0}insertControl(){if(this.controlSlot?.assignedNodes().forEach(e=>this.removeChild(e)),this.type===ks.combobox){ug.render(this,this);return}pg.render(this,this)}keydownHandler(e){let t=0;switch(e.key){case"ArrowUp":{e.preventDefault(),t=-1;break}case"ArrowDown":{e.preventDefault(),t=1;break}case" ":{if(this.isCombobox)break;e.preventDefault()}case"Enter":case"Tab":{if(this.open){if(this.selectOption(this.activeIndex,!0),this.multiple)break;return this.listbox.hidePopover(),e.key==="Tab"}this.listbox.showPopover();break}case"Escape":{this.activeIndex=this.multiple?0:this.selectedIndex,this.listbox.hidePopover();break}}if(!t)return!0;if(!this.open){this.listbox.showPopover();return}let i=this.activeIndex;i+=t;let r=this.getEnabledIndexInBounds(i);return r===0&&this.freeformOption?.hidden&&(r=this.getEnabledIndexInBounds(i+t)),this.activeIndex=r,!0}mousedownHandler(e){if(!(this.disabled||e.target===this.control&&!this.isCombobox))return!nr(e.target)}selectOption(e=this.selectedIndex,t=!1){this.listbox.selectOption(e),this.control.value=this.displayValue,this.setValidity(),this.updateFreeformOption(),t&&this.$emit("change")}setValidity(e,t,i){if(this.$fastController.isConnected){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}const r=this.required&&this.listbox.selectedOptions.length===0;this.elementInternals.setValidity({valueMissing:r,...e},t??this.validationMessage,i??this.listbox.enabledOptions[0])}}updateFreeformOption(e=this.control.value){if(this.freeformOption){if(e===""||this.filterOptions(e,this.enabledOptions.filter(t=>!t.freeform)).length){this.freeformOption.value="",this.freeformOption.selected=!1,this.freeformOption.hidden=!0;return}this.freeformOption.value=e,this.freeformOption.hidden=!1}}}R.formAssociated=!0,J([Sr],R.prototype,"activeDescendant",1),J([m],R.prototype,"activeIndex",2),J([a({attribute:"aria-labelledby",mode:"fromView"})],R.prototype,"ariaLabelledBy",2),J([m],R.prototype,"control",2),J([a({mode:"boolean"})],R.prototype,"disabled",2),J([Sr],R.prototype,"displayValue",1),J([a({attribute:"id"})],R.prototype,"id",2),J([m],R.prototype,"indicator",2),J([m],R.prototype,"indicatorSlot",2),J([a({attribute:"value",mode:"fromView"})],R.prototype,"initialValue",2),J([m],R.prototype,"listbox",2),J([m],R.prototype,"listboxSlot",2),J([a({mode:"boolean"})],R.prototype,"multiple",2),J([a],R.prototype,"name",2),J([m],R.prototype,"open",2),J([a],R.prototype,"placeholder",2),J([a({mode:"boolean"})],R.prototype,"required",2),J([a],R.prototype,"type",2),J([a({attribute:"value"})],R.prototype,"valueAttribute",2);var vg=Object.defineProperty,$g=Object.getOwnPropertyDescriptor,ll=(o,e,t,i)=>{for(var r=i>1?void 0:i?$g(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&vg(e,t,r),r};const ws=class wo extends R{constructor(){super(),this.appearance=al.outline,this.addEventListener("connected",this.listboxConnectedHandler)}appearanceChanged(e,t){y(this.elementInternals,e,t,al)}sizeChanged(e,t){y(this.elementInternals,e,t,dg)}connectedCallback(){super.connectedCallback(),this.anchorPositionFallback()}disconnectedCallback(){wo.AnchorPositionFallbackObserver?.unobserve(this.listbox),super.disconnectedCallback()}listboxConnectedHandler(e){const t=e.target;sl(t)&&(this.listbox=t)}openChanged(e,t){if(super.openChanged(e,t),t){wo.AnchorPositionFallbackObserver?.observe(this.listbox);return}wo.AnchorPositionFallbackObserver?.unobserve(this.listbox)}anchorPositionFallback(){wo.AnchorPositionFallbackObserver=wo.AnchorPositionFallbackObserver??new IntersectionObserver(e=>{e.forEach(({boundingClientRect:t,isIntersecting:i,target:r})=>{if(sl(r)&&!i){if(t.bottom>window.innerHeight){$(r.dropdown.elementInternals,"flip-block",!0);return}t.top<0&&$(r.dropdown.elementInternals,"flip-block",!1)}})},{threshold:1})}};ll([a],ws.prototype,"appearance",2),ll([a],ws.prototype,"size",2);let yg=ws;const xg=p`
433
+ :host{box-sizing:border-box;grid-template-rows:min-content auto min-content;position:relative;height:100%;padding:${Ru};max-height:100svh}.header{display:flex;justify-content:space-between;align-items:center;${Gp}}.footer{display:flex;justify-content:flex-start;gap:${ge}}`;function ng(){return g`<div class="header" part="header"><slot name="title"></slot><slot name="close"></slot></div><div class="content" part="content"><slot></slot></div><div class="footer" part="footer"><slot name="footer"></slot></div>`}const ag=ng(),lg=rg.compose({name:`${b.prefix}-drawer-body`,template:ag,styles:sg});lg.define(b.registry);function sl(o,e="-listbox"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}function nr(o,e="-option"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}function nl(o){return o.closest("[lang]")?.lang??"en"}let cg=0;function Yo(o="id-"){const e=`${o}${cg++}`;return document.getElementById(e)?Yo(o):e}const al={filledDarker:"filled-darker",filledLighter:"filled-lighter",outline:"outline",transparent:"transparent"},dg={small:"small",medium:"medium",large:"large"},ks={combobox:"combobox",dropdown:"dropdown",select:"select"},hg=g`<svg class="chevron-down-20-regular" role="button" slot="indicator" viewBox="0 0 20 20" ${X("indicator")}><path d="M15.85 7.65a.5.5 0 0 1 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16a.5.5 0 0 1 .7 0" fill="currentColor" /></svg>`,ug=g`<input @input="${(o,e)=>o.inputHandler(e.event)}" @change="${(o,e)=>o.changeHandler(e.event)}" aria-activedescendant="${o=>o.activeDescendant}" aria-controls="${o=>o.listbox?.id??null}" aria-labelledby="${o=>o.ariaLabelledBy}" aria-expanded="${o=>o.open}" aria-haspopup="listbox" placeholder="${o=>o.placeholder}" role="combobox" ?disabled="${o=>o.disabled}" type="${o=>o.type}" value="${o=>o.valueAttribute}" ${X("control")} />`,pg=g`<button aria-activedescendant="${o=>o.activeDescendant}" aria-controls="${o=>o.listbox?.id??null}" aria-expanded="${o=>o.open}" aria-haspopup="listbox" role="combobox" ?disabled="${o=>o.disabled}" type="button" ${X("control")}>${o=>o.displayValue}</button>`;function bg(o={}){return g`<template @click="${(e,t)=>e.clickHandler(t.event)}" @focusout="${(e,t)=>e.focusoutHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @mousedown="${(e,t)=>e.mousedownHandler(t.event)}"><div class="control"><slot name="control" ${X("controlSlot")}></slot><slot name="indicator" ${X("indicatorSlot")}>${$e(o.indicator)}</slot></div><slot ${X("listboxSlot")}></slot></template>`}const gg=bg({indicator:hg});var fg=Object.defineProperty,mg=Object.getOwnPropertyDescriptor,J=(o,e,t,i)=>{for(var r=i>1?void 0:i?mg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&fg(e,t,r),r};const R=class wo extends k{constructor(){super(),this.activeIndex=0,this.id=Yo("dropdown-"),this.required=!1,this.type=ks.dropdown,this.valueAttribute="",this.elementInternals=this.attachInternals(),this.elementInternals.role="presentation",this.addEventListener("connected",this.listboxConnectedHandler),re.enqueue(()=>{this.insertControl()})}get activeDescendant(){if(this.open)return this.enabledOptions[this.activeIndex]?.id}activeIndexChanged(e,t){if(typeof t=="number"){const i=this.matches(":has(:focus-visible)")?t:-1;this.enabledOptions.forEach((r,s)=>{r.active=s===i}),this.open&&this.enabledOptions[i]?.scrollIntoView({block:"nearest"})}}controlChanged(e,t){t&&(t.id=t.id||Yo("input-"),this.controlSlot?.assign(t))}disabledChanged(e,t){re.enqueue(()=>{this.options.forEach(i=>{i.disabled=i.disabledAttribute||this.disabled})})}get displayValue(){if(!this.$fastController.isConnected||!this.control||this.isCombobox&&this.multiple)return $(this.elementInternals,"placeholder-shown",!1),"";this.listFormatter=this.listFormatter??new Intl.ListFormat(nl(this),{type:"conjunction",style:"narrow"});const e=this.listFormatter.format(this.selectedOptions.map(t=>t.text));return $(this.elementInternals,"placeholder-shown",!e),this.isCombobox?e:e||this.placeholder}listboxChanged(e,t){if(e&&f.getNotifier(this).unsubscribe(e),t){t.dropdown=this,t.popover="manual",this.listboxSlot.assign(t);const i=f.getNotifier(this);i.subscribe(t);for(const r of["disabled","multiple"])i.notify(r);re.enqueue(()=>{this.enabledOptions.filter(r=>r.defaultSelected).forEach((r,s)=>{r.selected=this.multiple||s===0})})}}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",$(this.elementInternals,"multiple",t),this.value=null}nameChanged(e,t){re.enqueue(()=>{this.options.forEach(i=>{i.name=t})})}openChanged(e,t){if($(this.elementInternals,"open",t),this.elementInternals.ariaExpanded=t?"true":"false",this.activeIndex=this.selectedIndex??-1,t){wo.AnchorPositionFallbackObserver?.observe(this.listbox);return}wo.AnchorPositionFallbackObserver?.unobserve(this.listbox)}typeChanged(e,t){this.$fastController.isConnected&&this.insertControl()}get enabledOptions(){return this.listbox?.enabledOptions??[]}formResetCallback(){this.enabledOptions.forEach((e,t)=>{if(this.multiple){e.selected=!!e.defaultSelected;return}if(!e.defaultSelected){e.selected=!1;return}this.selectOption(t)})}get freeformOption(){return this.enabledOptions.find(e=>e.freeform)}get isCombobox(){return this.type===ks.combobox}get options(){return this.listbox?.options??[]}get selectedIndex(){return this.enabledOptions.findIndex(e=>e.selected)??-1}get selectedOptions(){return this.listbox?.selectedOptions??[]}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(!this.validationFallbackMessage){const e=document.createElement("input");e.type="radio",e.required=!0,e.checked=!1,this.validationFallbackMessage=e.validationMessage}return this.validationFallbackMessage}get value(){return f.notify(this,"value"),this.enabledOptions.find(e=>e.selected)?.value??null}set value(e){this.multiple||(this.selectOption(this.enabledOptions.findIndex(t=>t.value===e)),f.track(this,"value"))}changeHandler(e){if(this===e.target)return!0;const t=this.isCombobox?this.enabledOptions.findIndex(i=>i.text===this.control.value):this.enabledOptions.indexOf(e.target);return this.selectOption(t,!0),!0}clickHandler(e){if(this.disabled)return;const t=e.target;if(this.focus(),t===this.control&&!this.isCombobox)return this.listbox.togglePopover(),!0;if(!this.open)return this.listbox.showPopover(),!0;if(nr(t)){if(t.disabled)return;this.selectOption(this.enabledOptions.indexOf(t),!0),this.multiple||(this.isCombobox&&(this.control.value=t.text,this.updateFreeformOption()),this.listbox.hidePopover())}return!0}filterOptions(e,t=this.enabledOptions){return this.listCollator||(this.listCollator=new Intl.Collator(nl(this),{usage:"search",sensitivity:"base"})),t.filter(i=>this.listCollator.compare(i.text.substring(0,Math.min(i.text.length,e.length)),e)===0)}focus(e){this.disabled||this.control.focus(e)}focusoutHandler(e){const t=e.relatedTarget;return this.open&&!this.contains(t)&&this.listbox.togglePopover(),!0}getEnabledIndexInBounds(e,t=this.enabledOptions.length||0){return t===0?-1:(e+t)%t}inputHandler(e){this.open||this.listbox.showPopover(),this.updateFreeformOption();const t=this.control.value,i=this.enabledOptions.indexOf(this.filterOptions(t)[0]??null);return this.activeIndex=i,!0}insertControl(){if(this.controlSlot?.assignedNodes().forEach(e=>this.removeChild(e)),this.type===ks.combobox){ug.render(this,this);return}pg.render(this,this)}keydownHandler(e){let t=0;switch(e.key){case"ArrowUp":{e.preventDefault(),t=-1;break}case"ArrowDown":{e.preventDefault(),t=1;break}case" ":{if(this.isCombobox)break;e.preventDefault()}case"Enter":case"Tab":{if(this.open){if(this.selectOption(this.activeIndex,!0),this.multiple)break;return this.listbox.hidePopover(),e.key==="Tab"}this.listbox.showPopover();break}case"Escape":{this.activeIndex=this.multiple?0:this.selectedIndex,this.listbox.hidePopover();break}}if(!t)return!0;if(!this.open){this.listbox.showPopover();return}let i=this.activeIndex;i+=t;let r=this.getEnabledIndexInBounds(i);return r===0&&this.freeformOption?.hidden&&(r=this.getEnabledIndexInBounds(i+t)),this.activeIndex=r,!0}mousedownHandler(e){if(!(this.disabled||e.target===this.control&&!this.isCombobox))return!nr(e.target)}selectOption(e=this.selectedIndex,t=!1){this.listbox.selectOption(e),this.control.value=this.displayValue,this.setValidity(),this.updateFreeformOption(),t&&this.$emit("change")}setValidity(e,t,i){if(this.$fastController.isConnected){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}const r=this.required&&this.listbox.selectedOptions.length===0;this.elementInternals.setValidity({valueMissing:r,...e},t??this.validationMessage,i??this.listbox.enabledOptions[0])}}updateFreeformOption(e=this.control.value){if(this.freeformOption){if(e===""||this.filterOptions(e,this.enabledOptions.filter(t=>!t.freeform)).length){this.freeformOption.value="",this.freeformOption.selected=!1,this.freeformOption.hidden=!0;return}this.freeformOption.value=e,this.freeformOption.hidden=!1}}connectedCallback(){super.connectedCallback(),this.anchorPositionFallback()}disconnectedCallback(){wo.AnchorPositionFallbackObserver?.unobserve(this.listbox),super.disconnectedCallback()}listboxConnectedHandler(e){const t=e.target;sl(t)&&(this.listbox=t)}anchorPositionFallback(){wo.AnchorPositionFallbackObserver=wo.AnchorPositionFallbackObserver??new IntersectionObserver(e=>{e.forEach(({boundingClientRect:t,isIntersecting:i,target:r})=>{if(sl(r)&&!i){if(t.bottom>window.innerHeight){$(r.dropdown.elementInternals,"flip-block",!0);return}t.top<0&&$(r.dropdown.elementInternals,"flip-block",!1)}})},{threshold:1})}};R.formAssociated=!0,J([Sr],R.prototype,"activeDescendant",1),J([m],R.prototype,"activeIndex",2),J([a({attribute:"aria-labelledby",mode:"fromView"})],R.prototype,"ariaLabelledBy",2),J([m],R.prototype,"control",2),J([a({mode:"boolean"})],R.prototype,"disabled",2),J([Sr],R.prototype,"displayValue",1),J([a({attribute:"id"})],R.prototype,"id",2),J([m],R.prototype,"indicator",2),J([m],R.prototype,"indicatorSlot",2),J([a({attribute:"value",mode:"fromView"})],R.prototype,"initialValue",2),J([m],R.prototype,"listbox",2),J([m],R.prototype,"listboxSlot",2),J([a({mode:"boolean"})],R.prototype,"multiple",2),J([a],R.prototype,"name",2),J([m],R.prototype,"open",2),J([a],R.prototype,"placeholder",2),J([a({mode:"boolean"})],R.prototype,"required",2),J([a],R.prototype,"type",2),J([a({attribute:"value"})],R.prototype,"valueAttribute",2);let vg=R;var $g=Object.defineProperty,yg=Object.getOwnPropertyDescriptor,ll=(o,e,t,i)=>{for(var r=i>1?void 0:i?yg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&$g(e,t,r),r};class ws extends vg{constructor(){super(...arguments),this.appearance=al.outline}appearanceChanged(e,t){y(this.elementInternals,e,t,al)}sizeChanged(e,t){y(this.elementInternals,e,t,dg)}}ll([a],ws.prototype,"appearance",2),ll([a],ws.prototype,"size",2);const xg=p`
434
434
  ${C("inline-flex")}
435
435
 
436
- :host{anchor-name:--dropdown-trigger;box-sizing:border-box;color:${_};cursor:pointer}:host(${fd}){color:${Yr}}.control{appearance:none;background-color:${A};border-radius:${z};border:none;box-shadow:inset 0 0 0 ${N} var(--control-border-color);box-sizing:border-box;color:inherit;column-gap:${Q};display:inline-flex;justify-content:space-between;min-width:160px;overflow:hidden;padding:${Ze} ${be};position:relative;text-align:start;width:100%;z-index:1;${Ja}}:host(${T}) .control{column-gap:${Q};padding:${ho} ${le};${el}}:host(${S}) .control{column-gap:${Qe};padding:${Z} ${ge};${qp}}::slotted(:is(input,button)){all:unset;flex:1 1 auto}::slotted(button){cursor:pointer}::slotted(input){cursor:text}:where(slot[name='indicator'] > *,::slotted([slot='indicator'])){all:unset;align-items:center;appearance:none;aspect-ratio:1;color:${ue};display:inline-flex;justify-content:center;width:20px}:host(${T}) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){width:16px}:host(${S}) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){width:24px}.control::after,.control::before{content:'' / '';inset:auto 0 0;pointer-events:none;position:absolute}.control::before{height:${N}}.control::after{background-color:${Lt};height:${Pe};scale:0 1;transition:scale ${ds} ${Rt}}:host(:where(${ud},:focus-within)) .control::after{scale:1 1;transition-duration:${Ui};transition-timing-function:${jt}}:host(:where(${E},${V})) .control::before{background-color:${Ke}}:host(${V}) .control{--control-border-color:${ts};background-color:${Ce};border-radius:${Li}}:host(${E}) .control{--control-border-color:${Ye}}:host(${E}) .control:hover{--control-border-color:${ao}}:host(:where(${E},${V})) .control:hover::before{background-color:${Dt}}:host(${E}) .control:hover::after{background-color:${so}}:host(${E}) .control:active{--control-border-color:${qo}}:host(:where(${E},${V})) .control:active::before{background-color:${Ht}}:host(:where(${E},${V})) .control:active::after{background-color:${no}}:host(${ft}) .control{background-color:${jo}}:host(:where(${Bt},${ft})) .control{--control-border-color:${ae}}:host(:disabled),:host(:disabled) ::slotted(:where(button,input)){cursor:not-allowed}:host(:disabled) .control::before,:host(:disabled) .control::after{content:none}:host(:disabled) .control:is(*,:active,:hover),:host(:disabled) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){--control-border-color:${Ae};background-color:${vt};color:${O}}::slotted([popover]){inset:unset;position:absolute;position-anchor:--dropdown-trigger;position-area:block-end span-inline-end;position-try-fallbacks:flip-inline,flip-block,block-start;max-height:var(--listbox-max-height,calc(50vh - anchor-size(self-block)));min-width:anchor-size(width);overflow:auto}::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--anchor){::slotted([popover]){margin-block-start:calc(${H} + (${Ze} * 2) + ${N});max-height:50vh}:host(${T}) ::slotted([popover]){margin-block-start:calc(${te} + (${ho} * 2) + ${N})}:host(${S}) ::slotted([popover]){margin-block-start:calc(${Ie} + (${Z} * 2) + ${N})}:host(${Wc}) ::slotted([popover]){margin-block-start:revert;transform:translate(0,-100%)}}`,kg=yg.compose({name:`${b.prefix}-dropdown`,template:gg,styles:xg,shadowOptions:{slotAssignment:"manual"}});kg.define(b.registry);const wg={above:"above",after:"after",before:"before"},Fe={badInput:"bad-input",customError:"custom-error",patternMismatch:"pattern-mismatch",rangeOverflow:"range-overflow",rangeUnderflow:"range-underflow",stepMismatch:"step-mismatch",tooLong:"too-long",tooShort:"too-short",typeMismatch:"type-mismatch",valueMissing:"value-missing",valid:"valid"};var Cg=Object.defineProperty,Sg=Object.getOwnPropertyDescriptor,ar=(o,e,t,i)=>{for(var r=i>1?void 0:i?Sg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Cg(e,t,r),r};class Qo extends k{constructor(){super(),this.labelSlot=[],this.elementInternals=this.attachInternals(),this.elementInternals.role="presentation"}labelSlotChanged(e,t){t&&this.input&&(this.setLabelProperties(),this.setStates())}messageSlotChanged(e,t){if($(this.elementInternals,"has-message",!!t.length),!t.length){this.removeEventListener("invalid",this.invalidHandler,{capture:!0});return}this.addEventListener("invalid",this.invalidHandler,{capture:!0})}slottedInputsChanged(e,t){t?.length&&(this.input=t?.[0],this.setStates())}inputChanged(e,t){t&&(this.setStates(),this.setLabelProperties())}changeHandler(e){return this.setStates(),this.setValidationStates(),!0}clickHandler(e){return this===e.target&&this.input.click(),!0}focusinHandler(e){return this.matches(":focus-within:has(> :focus-visible)")&&$(this.elementInternals,"focus-visible",!0),!0}focusoutHandler(e){return $(this.elementInternals,"focus-visible",!1),!0}invalidHandler(e){this.messageSlot.length&&e.preventDefault(),this.setValidationStates()}setLabelProperties(){this.$fastController.isConnected&&(this.input.id=this.input.id||eo("input"),this.labelSlot?.forEach(e=>{e instanceof HTMLLabelElement&&(e.htmlFor=e.htmlFor||this.input.id,e.id=e.id||`${this.input.id}--label`,e.setAttribute("aria-hidden","true"),this.input.setAttribute("aria-labelledby",e.id))}))}setStates(){this.elementInternals&&this.input&&($(this.elementInternals,"disabled",!!this.input.disabled),$(this.elementInternals,"readonly",!!this.input.readOnly),$(this.elementInternals,"required",!!this.input.required),$(this.elementInternals,"checked",!!this.input.checked))}setValidationStates(){if(this.input.validity)for(const[e,t]of Object.entries(Fe))$(this.elementInternals,t,this.input.validity[e])}}ar([m],Qo.prototype,"labelSlot",2),ar([m],Qo.prototype,"messageSlot",2),ar([m],Qo.prototype,"slottedInputs",2),ar([m],Qo.prototype,"input",2);var Ig=Object.defineProperty,Pg=Object.getOwnPropertyDescriptor,zg=(o,e,t,i)=>{for(var r=i>1?void 0:i?Pg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Ig(e,t,r),r};class cl extends Qo{constructor(){super(...arguments),this.labelPosition=wg.above}}zg([a({attribute:"label-position"})],cl.prototype,"labelPosition",2);const Tg=p`
436
+ :host{anchor-name:--dropdown-trigger;box-sizing:border-box;color:${_};cursor:pointer}:host(${fd}){color:${Yr}}.control{appearance:none;background-color:${A};border-radius:${z};border:none;box-shadow:inset 0 0 0 ${N} var(--control-border-color);box-sizing:border-box;color:inherit;column-gap:${Q};display:inline-flex;justify-content:space-between;min-width:160px;overflow:hidden;padding:${Ze} ${be};position:relative;text-align:start;width:100%;z-index:1;${Ja}}:host(${T}) .control{column-gap:${Q};padding:${ho} ${le};${el}}:host(${S}) .control{column-gap:${Qe};padding:${Z} ${ge};${qp}}::slotted(:is(input,button)){all:unset;flex:1 1 auto}::slotted(button){cursor:pointer}::slotted(input){cursor:text}:where(slot[name='indicator'] > *,::slotted([slot='indicator'])){all:unset;align-items:center;appearance:none;aspect-ratio:1;color:${ue};display:inline-flex;justify-content:center;width:20px}:host(${T}) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){width:16px}:host(${S}) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){width:24px}.control::after,.control::before{content:'' / '';inset:auto 0 0;pointer-events:none;position:absolute}.control::before{height:${N}}.control::after{background-color:${Lt};height:${Pe};scale:0 1;transition:scale ${ds} ${Rt}}:host(:where(${ud},:focus-within)) .control::after{scale:1 1;transition-duration:${Ui};transition-timing-function:${jt}}:host(:where(${E},${V})) .control::before{background-color:${Ke}}:host(${V}) .control{--control-border-color:${ts};background-color:${Ce};border-radius:${Li}}:host(${E}) .control{--control-border-color:${Ye}}:host(${E}) .control:hover{--control-border-color:${ao}}:host(:where(${E},${V})) .control:hover::before{background-color:${Dt}}:host(${E}) .control:hover::after{background-color:${so}}:host(${E}) .control:active{--control-border-color:${qo}}:host(:where(${E},${V})) .control:active::before{background-color:${Ht}}:host(:where(${E},${V})) .control:active::after{background-color:${no}}:host(${ft}) .control{background-color:${jo}}:host(:where(${Bt},${ft})) .control{--control-border-color:${ae}}:host(:disabled),:host(:disabled) ::slotted(:where(button,input)){cursor:not-allowed}:host(:disabled) .control::before,:host(:disabled) .control::after{content:none}:host(:disabled) .control:is(*,:active,:hover),:host(:disabled) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){--control-border-color:${Ae};background-color:${vt};color:${O}}::slotted([popover]){inset:unset;position:absolute;position-anchor:--dropdown-trigger;position-area:block-end span-inline-end;position-try-fallbacks:flip-inline,flip-block,block-start;max-height:var(--listbox-max-height,calc(50vh - anchor-size(self-block)));min-width:anchor-size(width);overflow:auto}::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--anchor){::slotted([popover]){margin-block-start:calc(${H} + (${Ze} * 2) + ${N});max-height:50vh}:host(${T}) ::slotted([popover]){margin-block-start:calc(${te} + (${ho} * 2) + ${N})}:host(${S}) ::slotted([popover]){margin-block-start:calc(${Ie} + (${Z} * 2) + ${N})}:host(${Wc}) ::slotted([popover]){margin-block-start:revert;transform:translate(0,-100%)}}`,kg=ws.compose({name:`${b.prefix}-dropdown`,template:gg,styles:xg,shadowOptions:{slotAssignment:"manual"}});kg.define(b.registry);const wg={above:"above",after:"after",before:"before"},Fe={badInput:"bad-input",customError:"custom-error",patternMismatch:"pattern-mismatch",rangeOverflow:"range-overflow",rangeUnderflow:"range-underflow",stepMismatch:"step-mismatch",tooLong:"too-long",tooShort:"too-short",typeMismatch:"type-mismatch",valueMissing:"value-missing",valid:"valid"};var Cg=Object.defineProperty,Sg=Object.getOwnPropertyDescriptor,ar=(o,e,t,i)=>{for(var r=i>1?void 0:i?Sg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Cg(e,t,r),r};class Qo extends k{constructor(){super(),this.labelSlot=[],this.elementInternals=this.attachInternals(),this.elementInternals.role="presentation"}labelSlotChanged(e,t){t&&this.input&&(this.setLabelProperties(),this.setStates())}messageSlotChanged(e,t){if($(this.elementInternals,"has-message",!!t.length),!t.length){this.removeEventListener("invalid",this.invalidHandler,{capture:!0});return}this.addEventListener("invalid",this.invalidHandler,{capture:!0})}slottedInputsChanged(e,t){t?.length&&(this.input=t?.[0],this.setStates())}inputChanged(e,t){t&&(this.setStates(),this.setLabelProperties())}changeHandler(e){return this.setStates(),this.setValidationStates(),!0}clickHandler(e){return this===e.target&&this.input.click(),!0}focusinHandler(e){return this.matches(":focus-within:has(> :focus-visible)")&&$(this.elementInternals,"focus-visible",!0),!0}focusoutHandler(e){return $(this.elementInternals,"focus-visible",!1),!0}invalidHandler(e){this.messageSlot.length&&e.preventDefault(),this.setValidationStates()}setLabelProperties(){this.$fastController.isConnected&&(this.input.id=this.input.id||eo("input"),this.labelSlot?.forEach(e=>{e instanceof HTMLLabelElement&&(e.htmlFor=e.htmlFor||this.input.id,e.id=e.id||`${this.input.id}--label`,e.setAttribute("aria-hidden","true"),this.input.setAttribute("aria-labelledby",e.id))}))}setStates(){this.elementInternals&&this.input&&($(this.elementInternals,"disabled",!!this.input.disabled),$(this.elementInternals,"readonly",!!this.input.readOnly),$(this.elementInternals,"required",!!this.input.required),$(this.elementInternals,"checked",!!this.input.checked))}setValidationStates(){if(this.input.validity)for(const[e,t]of Object.entries(Fe))$(this.elementInternals,t,this.input.validity[e])}}ar([m],Qo.prototype,"labelSlot",2),ar([m],Qo.prototype,"messageSlot",2),ar([m],Qo.prototype,"slottedInputs",2),ar([m],Qo.prototype,"input",2);var Ig=Object.defineProperty,Pg=Object.getOwnPropertyDescriptor,zg=(o,e,t,i)=>{for(var r=i>1?void 0:i?Pg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Ig(e,t,r),r};class cl extends Qo{constructor(){super(...arguments),this.labelPosition=wg.above}}zg([a({attribute:"label-position"})],cl.prototype,"labelPosition",2);const Tg=p`
437
437
  ${C("inline-grid")}
438
438
 
439
439
  :host{color:${_};align-items:center;gap:0 ${ge};justify-items:start;position:relative}:has([slot='message']){color:${_};row-gap:${Z}}:not(::slotted([slot='label'])){gap:0}:host([label-position='before']){grid-template-areas:'label input' 'label message'}:host([label-position='after']){gap:0;grid-template-areas:'input label' 'message message';grid-template-columns:auto 1fr}:host([label-position='after']) ::slotted([slot='input']){margin-inline-end:${ge}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${co}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${qu}}:host([label-position='below']:not(${Qc})){grid-template-areas:'input' 'label'}::slotted([slot='label'])::after{content:'';display:block;position:absolute;inset:0}::slotted([slot='input']){grid-area:input;position:relative;z-index:1}::slotted([slot='message']){margin-block-start:${co};grid-area:message}:host(${Xc}:focus-within){border-radius:${z};outline:${Pe} solid ${_e}}::slotted(label),::slotted([slot='label']){cursor:inherit;display:inline-flex;font-family:${x};font-size:${F};font-weight:${j};grid-area:label;line-height:${H};user-select:none}:host([size='small']) ::slotted(label){font-size:${G};line-height:${te}}:host([size='large']) ::slotted(label){font-size:${xe};line-height:${Ie}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${W}}:host(${M}){cursor:default}::slotted([flag]){display:none}:host(${Pc}) ::slotted([flag='${Fe.badInput}']),:host(${Mc}) ::slotted([flag='${Fe.customError}']),:host(${pd}) ::slotted([flag='${Fe.patternMismatch}']),:host(${xd}) ::slotted([flag='${Fe.rangeOverflow}']),:host(${kd}) ::slotted([flag='${Fe.rangeUnderflow}']),:host(${Ld}) ::slotted([flag='${Fe.stepMismatch}']),:host(${jd}) ::slotted([flag='${Fe.tooLong}']),:host(${Rd}) ::slotted([flag='${Fe.tooShort}']),:host(${qd}) ::slotted([flag='${Fe.typeMismatch}']),:host(${Xd}) ::slotted([flag='${Fe.valueMissing}']),:host(${Wd}) ::slotted([flag='${Fe.valid}']){display:block}`,Bg=g`<template @click="${(o,e)=>o.clickHandler(e.event)}" @change="${(o,e)=>o.changeHandler(e.event)}" @focusin="${(o,e)=>o.focusinHandler(e.event)}" @focusout="${(o,e)=>o.focusoutHandler(e.event)}" ${Mr({property:"slottedInputs",attributes:!0,attributeFilter:["disabled","required","readonly"],subtree:!0,selector:'[slot="input"]',filter:zt()})}><slot name="label" part="label" ${U("labelSlot")}></slot><slot name="input" part="input"></slot><slot name="message" part="message" ${U({property:"messageSlot",filter:zt("[flag]")})}></slot></template>`,Og=cl.compose({name:`${b.prefix}-field`,template:Bg,styles:Tg,shadowOptions:{delegatesFocus:!0}});Og.define(b.registry);const Ag={none:"none",center:"center",contain:"contain",cover:"cover"},_g={circular:"circular",rounded:"rounded",square:"square"};var Eg=Object.defineProperty,Ng=Object.getOwnPropertyDescriptor,Zo=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ng(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Eg(e,t,r),r};class fo extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals()}blockChanged(e,t){$(this.elementInternals,"block",t)}borderedChanged(e,t){$(this.elementInternals,"bordered",t)}shadowChanged(e,t){$(this.elementInternals,"shadow",t)}fitChanged(e,t){y(this.elementInternals,e,t,Ag,"fit-")}shapeChanged(e,t){y(this.elementInternals,e,t,_g)}}Zo([a({mode:"boolean"})],fo.prototype,"block",2),Zo([a({mode:"boolean"})],fo.prototype,"bordered",2),Zo([a({mode:"boolean"})],fo.prototype,"shadow",2),Zo([a],fo.prototype,"fit",2),Zo([a],fo.prototype,"shape",2);const Fg=g`<slot></slot>`,Mg=p`
@@ -528,7 +528,7 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
528
528
  :host{--tabIndicatorScale:${this.activeTabScale.toString()}}`,this.$fastController.addStyles(this.styles)}activeidChanged(e,t){super.activeidChanged(e,t),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(){super.tabsChanged(),this.setTabData()}}Os([a],ii.prototype,"appearance",2),Os([a({mode:"boolean"})],ii.prototype,"disabled",2),Os([a],ii.prototype,"size",2),st(ii,rt);function uv(o={}){return g` ${Xe(o)}<div class="tablist" part="tablist" role="tablist"><slot name="tab" ${U("tabs")}></slot></div>${gt(o)}<div class="tabpanel" part="tabpanel"><slot name="tabpanel" ${U("tabpanels")}></slot></div>`}const pv=uv({}),bv=p`
529
529
  ${C("grid")}
530
530
 
531
- :host{box-sizing:border-box;font-family:${x};font-size:${F};line-height:${H};color:${Ee};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}:host([disabled]){cursor:not-allowed;color:${O}}:host([disabled]) ::slotted(fluent-tab){pointer-events:none;cursor:not-allowed;color:${O}}:host([disabled]) ::slotted(fluent-tab:after){background-color:${O}}:host([disabled]) ::slotted(fluent-tab[aria-selected='true'])::after{background-color:${O}}:host([disabled]) ::slotted(fluent-tab:hover):before{content:unset}:host ::slotted(fluent-tab){border-radius:${z}}:host ::slotted(fluent-tab[aria-selected='true'])::before{background-color:${O}}.tablist{display:grid;grid-template-rows:auto auto;grid-template-columns:auto;position:relative;width:max-content;align-self:end;box-sizing:border-box}::slotted([slot='start']),::slotted([slot='end']){display:flex;align-self:center}::slotted([slot='start']){margin-inline-end:11px}::slotted([slot='end']){margin-inline-start:11px}.tabpanel{grid-row:2;grid-column-start:1;grid-column-end:4;position:relative}:host([orientation='vertical']){grid-template-rows:auto 1fr auto;grid-template-columns:auto 1fr}:host([orientation='vertical']) .tablist{grid-row-start:2;grid-row-end:2;display:grid;grid-template-rows:auto;grid-template-columns:auto 1fr;position:relative;width:max-content;justify-self:end;align-self:flex-start;width:100%}:host([orientation='vertical']) .tabpanel{grid-column:2;grid-row-start:1;grid-row-end:4}:host([orientation='vertical']) ::slotted([slot='end']){grid-row:3}:host([appearance='subtle']) ::slotted(fluent-tab:hover){background-color:${Ro};color:${Kr};fill:${ta}}:host([appearance='subtle']) ::slotted(fluent-tab:active){background-color:${Ft};fill:${Ft};color:${_}}:host([size='small']) ::slotted(fluent-tab){font-size:${F};line-height:${H};padding:${Ze} ${le}}:host([size='large']) ::slotted(fluent-tab){font-size:${xe};line-height:${Ie};padding:${Wi} ${be}}:host ::slotted(fluent-tab[data-animate='true'])::after{transition-property:transform;transition-duration:${Ma};transition-timing-function:${us}}:host ::slotted(fluent-tab)::after{height:${pe};margin-top:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted(fluent-tab)::after{width:${pe};height:unset;margin-top:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted(fluent-tab)::before{height:${pe};border-radius:${Se};content:'';inset:0;position:absolute;margin-top:auto}:host([orientation='vertical']) ::slotted(fluent-tab)::before{height:unset;width:${pe};margin-inline-end:auto;transform-origin:top}:host ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:${pe};margin-top:auto;transform-origin:left}:host([orientation='vertical']) ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:unset;margin-inline-end:auto;transform-origin:top;width:${pe}}:host([orientation='vertical']) ::slotted(fluent-tab){align-items:flex-start;grid-column:2;padding-top:${Ze};padding-bottom:${Ze}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab){padding-top:${co};padding-bottom:${co}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab){padding-top:${Z};padding-bottom:${Z}}:host([size='small']) ::slotted(fluent-tab)::after,:host([size='small']) ::slotted(fluent-tab)::before,:host([size='small']) ::slotted(fluent-tab:hover)::after{right:${le};left:${le}}:host ::slotted(fluent-tab)::after,:host ::slotted(fluent-tab)::before,:host ::slotted(fluent-tab:hover)::after{right:${be};left:${be}}:host([size='large']) ::slotted(fluent-tab)::after,:host([size='large']) ::slotted(fluent-tab)::before,:host([size='large']) ::slotted(fluent-tab:hover)::after{right:${be};left:${be}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab)::after,:host([orientation='vertical'][size='small']) ::slotted(fluent-tab)::before,:host([orientation='vertical'][size='small']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${Ze};bottom:${Ze}}:host([orientation='vertical']) ::slotted(fluent-tab)::after,:host([orientation='vertical']) ::slotted(fluent-tab)::before,:host([orientation='vertical']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${Z};bottom:${Z}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab)::after,:host([orientation='vertical'][size='large']) ::slotted(fluent-tab)::before,:host([orientation='vertical'][size='large']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${uo};bottom:${uo}}`,gv=ii.compose({name:`${b.prefix}-tabs`,template:pv,styles:bv});gv.define(b.registry);const fv=o=>o.getAttribute("aria-disabled")==="true",mv=o=>o.hasAttribute("hidden"),pr=o=>!fv(o)&&!mv(o),ml={subtle:"subtle",transparent:"transparent"},vv={small:"small",medium:"medium",large:"large"},xo=Oe;var $v=Object.defineProperty,yv=Object.getOwnPropertyDescriptor,br=(o,e,t,i)=>{for(var r=i>1?void 0:i?yv(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&$v(e,t,r),r};class ri extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.disabled=!1,this.orientation=xo.horizontal,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.tabPanelMap=new WeakMap,this.change=()=>{this.$emit("change",this.activetab)},this.handleTabClick=e=>{const t=e.currentTarget;t.nodeType===Node.ELEMENT_NODE&&pr(t)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(t),this.setComponent())},this.handleTabKeyDown=e=>{const t=Vr(this);switch(e.key){case zo:if(!this.isHorizontal())return;e.preventDefault(),this.adjust(t==="ltr"?-1:1);break;case To:if(!this.isHorizontal())return;e.preventDefault(),this.adjust(t==="ltr"?1:-1);break;case Bo:if(this.isHorizontal())return;e.preventDefault(),this.adjust(-1);break;case Po:if(this.isHorizontal())return;e.preventDefault(),this.adjust(1);break;case _o:e.preventDefault(),this.adjust(-this.activeTabIndex);break;case Oo:e.preventDefault(),this.adjust(this.tabs.filter(i=>pr(i)).length-this.activeTabIndex-1);break}}}disabledChanged(e,t){$(this.elementInternals,"disabled",t)}orientationChanged(e,t){this.elementInternals.ariaOrientation=t??xo.horizontal,y(this.elementInternals,e,t,xo),this.$fastController.isConnected&&this.setTabs()}activeidChanged(e,t){if(this.$fastController.isConnected&&this.tabs.length>0){if(this.prevActiveTabIndex=this.tabs.findIndex(i=>i.id===e),this.setTabs(),e){const i=this.tabs[this.prevActiveTabIndex],r=this.tabPanelMap.get(i);r&&(r.hidden=!0)}if(t&&this.activetab){const i=this.tabPanelMap.get(this.activetab);i&&(i.hidden=!1)}}}tabsChanged(){if(this.$fastController.isConnected&&this.tabs.length>0){this.tabIds=this.getTabIds(),this.setTabs();for(const e of this.tabs){const t=e.getAttribute("aria-controls")??"",r=this.getRootNode().getElementById(t);t&&r&&(r.role??(r.role="tabpanel"),r.hidden=this.activeid!==e.id,this.tabPanelMap.set(e,r))}}}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}setTabs(){this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach((e,t)=>{if(e.slot==="tab"){const i=this.activeTabIndex===t&&pr(e),r=this.tabIds[t];e.setAttribute("id",r),e.setAttribute("aria-selected",i?"true":"false"),e.addEventListener("click",this.handleTabClick),e.addEventListener("keydown",this.handleTabKeyDown),e.setAttribute("tabindex",i&&!this.disabled?"0":"-1"),i&&(this.activetab=e,this.activeid=r),this.change()}})}getTabIds(){return this.tabs.map(e=>e.getAttribute("id")??`tab-${eo()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===xo.horizontal}adjust(e){const t=this.tabs.filter(n=>pr(n)),i=t.indexOf(this.activetab),r=bc(0,t.length-1,i+e),s=this.tabs.indexOf(t[r]);s>-1&&this.activateTabByIndex(this.tabs,s)}activateTabByIndex(e,t){const i=e[t];this.activetab=i,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=t,i.focus(),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.activeTabIndex=this.getActiveIndex()}}br([a({mode:"boolean"})],ri.prototype,"disabled",2),br([a],ri.prototype,"orientation",2),br([a],ri.prototype,"activeid",2),br([m],ri.prototype,"tabs",2);var xv=Object.defineProperty,kv=Object.getOwnPropertyDescriptor,vl=(o,e,t,i)=>{for(var r=i>1?void 0:i?kv(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&xv(e,t,r),r};class As extends ri{constructor(){super(...arguments),this.activeTabData={x:0,y:0,height:0,width:0},this.previousActiveTabData={x:0,y:0,height:0,width:0},this.activeTabOffset=0,this.activeTabScale=1,this.appearance=ml.transparent}appearanceChanged(e,t){y(this.elementInternals,e,t,ml)}sizeChanged(e,t){y(this.elementInternals,e,t,vv)}calculateAnimationProperties(e){this.activeTabOffset=this.getTabPosition(e),this.activeTabScale=this.getTabScale(e)}getTabPosition(e){return this.orientation===xo.horizontal?this.previousActiveTabData.x-(e.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(e.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(e){return this.orientation===xo.horizontal?this.previousActiveTabData.width/e.getBoundingClientRect().width:this.previousActiveTabData.height/e.getBoundingClientRect().height}applyUpdatedCSSValues(e){this.calculateAnimationProperties(e),this.setAnimationVars()}animationLoop(e){e.setAttribute("data-animate","false"),this.applyUpdatedCSSValues(e),this.previousActiveTabData=this.activeTabData,this.applyUpdatedCSSValues(e),e.setAttribute("data-animate","true")}setTabData(){if(this.tabs&&this.tabs.length>0){const e=this.tabs,i=(this.activetab||e[0])?.getBoundingClientRect(),r=this.getBoundingClientRect();this.activeTabData={x:i.x-r.x,y:i.y-r.y,height:i.height,width:i.width},this.previousActiveTabData?.x!==this.activeTabData?.x&&this.previousActiveTabData?.y!==this.activeTabData?.y&&(this.previousActiveTabData=this.activeTabData)}}setAnimationVars(){this.style.setProperty("--tabIndicatorOffset",`${this.activeTabOffset}px`),this.style.setProperty("--tabIndicatorScale",`${this.activeTabScale}`)}activeidChanged(e,t){super.activeidChanged(e,t),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(){super.tabsChanged(),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}}vl([a],As.prototype,"appearance",2),vl([a],As.prototype,"size",2);const wv=g`<template role="tablist"><slot name="tab" ${U("tabs")}></slot></template>`,Cv=p`
531
+ :host{box-sizing:border-box;font-family:${x};font-size:${F};line-height:${H};color:${Ee};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}:host([disabled]){cursor:not-allowed;color:${O}}:host([disabled]) ::slotted(fluent-tab){pointer-events:none;cursor:not-allowed;color:${O}}:host([disabled]) ::slotted(fluent-tab:after){background-color:${O}}:host([disabled]) ::slotted(fluent-tab[aria-selected='true'])::after{background-color:${O}}:host([disabled]) ::slotted(fluent-tab:hover):before{content:unset}:host ::slotted(fluent-tab){border-radius:${z}}:host ::slotted(fluent-tab[aria-selected='true'])::before{background-color:${O}}.tablist{display:grid;grid-template-rows:auto auto;grid-template-columns:auto;position:relative;width:max-content;align-self:end;box-sizing:border-box}::slotted([slot='start']),::slotted([slot='end']){display:flex;align-self:center}::slotted([slot='start']){margin-inline-end:11px}::slotted([slot='end']){margin-inline-start:11px}.tabpanel{grid-row:2;grid-column-start:1;grid-column-end:4;position:relative}:host([orientation='vertical']){grid-template-rows:auto 1fr auto;grid-template-columns:auto 1fr}:host([orientation='vertical']) .tablist{grid-row-start:2;grid-row-end:2;display:grid;grid-template-rows:auto;grid-template-columns:auto 1fr;position:relative;width:max-content;justify-self:end;align-self:flex-start;width:100%}:host([orientation='vertical']) .tabpanel{grid-column:2;grid-row-start:1;grid-row-end:4}:host([orientation='vertical']) ::slotted([slot='end']){grid-row:3}:host([appearance='subtle']) ::slotted(fluent-tab:hover){background-color:${Ro};color:${Kr};fill:${ta}}:host([appearance='subtle']) ::slotted(fluent-tab:active){background-color:${Ft};fill:${Ft};color:${_}}:host([size='small']) ::slotted(fluent-tab){font-size:${F};line-height:${H};padding:${Ze} ${le}}:host([size='large']) ::slotted(fluent-tab){font-size:${xe};line-height:${Ie};padding:${Wi} ${be}}:host ::slotted(fluent-tab[data-animate='true'])::after{transition-property:transform;transition-duration:${Ma};transition-timing-function:${us}}:host ::slotted(fluent-tab)::after{height:${pe};margin-top:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted(fluent-tab)::after{width:${pe};height:unset;margin-top:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted(fluent-tab)::before{height:${pe};border-radius:${Se};content:'';inset:0;position:absolute;margin-top:auto}:host([orientation='vertical']) ::slotted(fluent-tab)::before{height:unset;width:${pe};margin-inline-end:auto;transform-origin:top}:host ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:${pe};margin-top:auto;transform-origin:left}:host([orientation='vertical']) ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:unset;margin-inline-end:auto;transform-origin:top;width:${pe}}:host([orientation='vertical']) ::slotted(fluent-tab){align-items:flex-start;grid-column:2;padding-top:${Ze};padding-bottom:${Ze}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab){padding-top:${co};padding-bottom:${co}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab){padding-top:${Z};padding-bottom:${Z}}:host([size='small']) ::slotted(fluent-tab)::after,:host([size='small']) ::slotted(fluent-tab)::before,:host([size='small']) ::slotted(fluent-tab:hover)::after{right:${le};left:${le}}:host ::slotted(fluent-tab)::after,:host ::slotted(fluent-tab)::before,:host ::slotted(fluent-tab:hover)::after{right:${be};left:${be}}:host([size='large']) ::slotted(fluent-tab)::after,:host([size='large']) ::slotted(fluent-tab)::before,:host([size='large']) ::slotted(fluent-tab:hover)::after{right:${be};left:${be}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab)::after,:host([orientation='vertical'][size='small']) ::slotted(fluent-tab)::before,:host([orientation='vertical'][size='small']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${Ze};bottom:${Ze}}:host([orientation='vertical']) ::slotted(fluent-tab)::after,:host([orientation='vertical']) ::slotted(fluent-tab)::before,:host([orientation='vertical']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${Z};bottom:${Z}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab)::after,:host([orientation='vertical'][size='large']) ::slotted(fluent-tab)::before,:host([orientation='vertical'][size='large']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${uo};bottom:${uo}}`,gv=ii.compose({name:`${b.prefix}-tabs`,template:pv,styles:bv});gv.define(b.registry);const fv=o=>o.getAttribute("aria-disabled")==="true",mv=o=>o.hasAttribute("hidden"),pr=o=>!fv(o)&&!mv(o),ml={subtle:"subtle",transparent:"transparent"},vv={small:"small",medium:"medium",large:"large"},xo=Oe;var $v=Object.defineProperty,yv=Object.getOwnPropertyDescriptor,br=(o,e,t,i)=>{for(var r=i>1?void 0:i?yv(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&$v(e,t,r),r};class ri extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.disabled=!1,this.orientation=xo.horizontal,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.tabPanelMap=new WeakMap,this.change=()=>{this.$emit("change",this.activetab)},this.handleTabClick=e=>{const t=e.currentTarget;t.nodeType===Node.ELEMENT_NODE&&pr(t)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(t),this.setComponent())},this.handleTabKeyDown=e=>{const t=Vr(this);switch(e.key){case zo:if(!this.isHorizontal())return;e.preventDefault(),this.adjust(t==="ltr"?-1:1);break;case To:if(!this.isHorizontal())return;e.preventDefault(),this.adjust(t==="ltr"?1:-1);break;case Bo:if(this.isHorizontal())return;e.preventDefault(),this.adjust(-1);break;case Po:if(this.isHorizontal())return;e.preventDefault(),this.adjust(1);break;case _o:e.preventDefault(),this.adjust(-this.activeTabIndex);break;case Oo:e.preventDefault(),this.adjust(this.tabs.filter(i=>pr(i)).length-this.activeTabIndex-1);break}}}disabledChanged(e,t){$(this.elementInternals,"disabled",t)}orientationChanged(e,t){this.elementInternals.ariaOrientation=t??xo.horizontal,y(this.elementInternals,e,t,xo),this.$fastController.isConnected&&this.setTabs()}activeidChanged(e,t){if(this.$fastController.isConnected&&this.tabs.length>0){if(this.prevActiveTabIndex=this.tabs.findIndex(i=>i.id===e),this.setTabs(),e){const i=this.tabs[this.prevActiveTabIndex],r=this.tabPanelMap.get(i);r&&(r.hidden=!0)}if(t&&this.activetab){const i=this.tabPanelMap.get(this.activetab);i&&(i.hidden=!1)}e!==t&&this.change()}}tabsChanged(){if(this.$fastController.isConnected&&this.tabs.length>0){this.tabIds=this.getTabIds(),this.setTabs();for(const e of this.tabs){const t=e.getAttribute("aria-controls")??"",r=this.getRootNode().getElementById(t);t&&r&&(r.role??(r.role="tabpanel"),r.hidden=this.activeid!==e.id,this.tabPanelMap.set(e,r))}}}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}setTabs(){this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach((e,t)=>{if(e.slot==="tab"){const i=this.activeTabIndex===t&&pr(e),r=this.tabIds[t];e.setAttribute("id",r),e.setAttribute("aria-selected",i?"true":"false"),e.addEventListener("click",this.handleTabClick),e.addEventListener("keydown",this.handleTabKeyDown),e.setAttribute("tabindex",i&&!this.disabled?"0":"-1"),i&&(this.activetab=e,this.activeid=r)}})}getTabIds(){return this.tabs.map(e=>e.getAttribute("id")??`tab-${eo()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab())}isHorizontal(){return this.orientation===xo.horizontal}adjust(e){const t=this.tabs.filter(n=>pr(n)),i=t.indexOf(this.activetab),r=bc(0,t.length-1,i+e),s=this.tabs.indexOf(t[r]);s>-1&&this.activateTabByIndex(this.tabs,s)}activateTabByIndex(e,t){const i=e[t];this.activetab=i,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=t,i.focus(),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.activeTabIndex=this.getActiveIndex()}}br([a({mode:"boolean"})],ri.prototype,"disabled",2),br([a],ri.prototype,"orientation",2),br([a],ri.prototype,"activeid",2),br([m],ri.prototype,"tabs",2);var xv=Object.defineProperty,kv=Object.getOwnPropertyDescriptor,vl=(o,e,t,i)=>{for(var r=i>1?void 0:i?kv(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&xv(e,t,r),r};class As extends ri{constructor(){super(...arguments),this.activeTabData={x:0,y:0,height:0,width:0},this.previousActiveTabData={x:0,y:0,height:0,width:0},this.activeTabOffset=0,this.activeTabScale=1,this.appearance=ml.transparent}appearanceChanged(e,t){y(this.elementInternals,e,t,ml)}sizeChanged(e,t){y(this.elementInternals,e,t,vv)}calculateAnimationProperties(e){this.activeTabOffset=this.getTabPosition(e),this.activeTabScale=this.getTabScale(e)}getTabPosition(e){return this.orientation===xo.horizontal?this.previousActiveTabData.x-(e.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(e.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(e){return this.orientation===xo.horizontal?this.previousActiveTabData.width/e.getBoundingClientRect().width:this.previousActiveTabData.height/e.getBoundingClientRect().height}applyUpdatedCSSValues(e){this.calculateAnimationProperties(e),this.setAnimationVars()}animationLoop(e){e.setAttribute("data-animate","false"),this.applyUpdatedCSSValues(e),this.previousActiveTabData=this.activeTabData,this.applyUpdatedCSSValues(e),e.setAttribute("data-animate","true")}setTabData(){if(this.tabs&&this.tabs.length>0){const e=this.tabs,i=(this.activetab||e[0])?.getBoundingClientRect(),r=this.getBoundingClientRect();this.activeTabData={x:i.x-r.x,y:i.y-r.y,height:i.height,width:i.width},this.previousActiveTabData?.x!==this.activeTabData?.x&&this.previousActiveTabData?.y!==this.activeTabData?.y&&(this.previousActiveTabData=this.activeTabData)}}setAnimationVars(){this.style.setProperty("--tabIndicatorOffset",`${this.activeTabOffset}px`),this.style.setProperty("--tabIndicatorScale",`${this.activeTabScale}`)}activeidChanged(e,t){super.activeidChanged(e,t),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(){super.tabsChanged(),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}}vl([a],As.prototype,"appearance",2),vl([a],As.prototype,"size",2);const wv=g`<template role="tablist"><slot name="tab" ${U("tabs")}></slot></template>`,Cv=p`
532
532
  ${C("flex")}
533
533
 
534
534
  :host{--tabPaddingInline:inherit;--tabPaddingBlock:inherit;--tabIndicatorInsetInline:0;--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${Ee};flex-direction:row}:host(${P}){flex-direction:column}:host ::slotted([role='tab']){align-items:flex-start}:host ::slotted([slot='tab'][data-animate='true'])::after{transition-property:transform;transition-duration:${Ma};transition-timing-function:${us}}:host ::slotted([slot='tab'])::after{height:${pe};margin-block-start:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host(${P}) ::slotted([slot='tab'])::after{width:${pe};height:unset;margin-block-start:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted([slot='tab'])::before{height:${pe};border-radius:${Se};content:'';inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock);position:absolute;margin-top:auto}:host ::slotted([slot='tab'])::before{inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock)}:host ::slotted([slot='tab'][aria-selected='true'])::before{background-color:${O}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${pe};margin-block-start:auto;transform-origin:left}:host(${P}) ::slotted([slot='tab'])::before,:host(${P}) ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:unset;width:${pe};margin-inline-end:auto;transform-origin:top}:host(:where(${T},${S})) ::slotted([slot='tab']){padding-inline:var(--tabPaddingInline);padding-block:var(--tabPaddingBlock)}:host(${T}) ::slotted([slot='tab']){--tabPaddingBlock:${Ze};--tabPaddingInline:${le};font-size:${F};line-height:${H}}:host(${S}) ::slotted([slot='tab']){--tabPaddingBlock:${Wi};--tabPaddingInline:${be};font-size:${xe};line-height:${Ie}}:host ::slotted([slot='tab'])::after,:host ::slotted([slot='tab'])::before,:host ::slotted([slot='tab']:hover)::after{inset-inline:var(--tabIndicatorInsetInline)}:host ::slotted([slot='tab']){--tabIndicatorInsetInline:${be}}:host(${T}) ::slotted([slot='tab']){--tabIndicatorInsetInline:${le}}:host(${S}) ::slotted([slot='tab']){--tabIndicatorInsetInline:${be}}:host(${P}) ::slotted([slot='tab']){padding-block:var(--tabPaddingBlock)}:host(${P}) ::slotted([slot='tab']){--tabPaddingBlock:${Z}}:host(${P}${T}) ::slotted([slot='tab']){--tabPaddingBlock:${co}}:host(${P}${S}) ::slotted([slot='tab']){--tabPaddingBlock:${Z}}:host(${P}) ::slotted([slot='tab'])::after,:host(${P}) ::slotted([slot='tab'])::before,:host(${P}) ::slotted([slot='tab']:hover)::after{inset-inline:0;inset-block:var(--tabIndicatorInsetBlock)}:host(${P}){--tabIndicatorInsetBlock:${Z}}:host(${P}${T}){--tabIndicatorInsetBlock:${Ze}}:host(${P}${S}){--tabIndicatorInsetBlock:${uo}}:host(${M}){cursor:not-allowed;color:${O}}:host(${M}) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${O}}:host(${M}) ::slotted([slot='tab']:after){background-color:${O}}:host(${M}) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${O}}:host(${M}) ::slotted([slot='tab']:hover):before{content:unset}:host(${B}) ::slotted([slot='tab']:hover){background-color:${Ro};color:${Kr};fill:${ta}}:host(${B}) ::slotted([slot='tab']:active){background-color:${Ft};fill:${Ft};color:${_}}`,Sv=As.compose({name:`${b.prefix}-tablist`,template:wv,styles:Cv});Sv.define(b.registry);const Iv={small:"small",medium:"medium",large:"large"},si={outline:"outline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},Pv=[si.filledLighter,si.filledDarker],gr={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"};var zv=Object.defineProperty,Tv=Object.getOwnPropertyDescriptor,ve=(o,e,t,i)=>{for(var r=i>1?void 0:i?Tv(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&zv(e,t,r),r};class oe extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.userInteracted=!1,this.preConnectControlEl=document.createElement("textarea"),this.autoResize=!1,this.disabled=!1,this.displayShadow=!1,this.readOnly=!1,this.required=!1,this.resize=gr.none,this.spellcheck=!1}defaultSlottedNodesChanged(){const e=this.getContent();this.defaultValue=e,this.value=e}labelSlottedNodesChanged(){this.labelEl&&(this.labelEl.hidden=!this.labelSlottedNodes.length),this.labelSlottedNodes.forEach(e=>{e.disabled=this.disabled,e.required=this.required})}autoResizeChanged(){this.maybeCreateAutoSizerEl(),$(this.elementInternals,"auto-resize",this.autoResize)}disabledChanged(){this.setDisabledSideEffect(this.disabled)}get form(){return this.elementInternals.form}get labels(){return this.elementInternals.labels}readOnlyChanged(){this.elementInternals.ariaReadOnly=`${!!this.readOnly}`}requiredChanged(){this.elementInternals.ariaRequired=`${!!this.required}`,this.labelSlottedNodes?.length&&this.labelSlottedNodes.forEach(e=>e.required=this.required)}resizeChanged(e,t){y(this.elementInternals,e,t,gr,"resize-"),$(this.elementInternals,"resize",qr(gr,t)&&t!==gr.none)}get textLength(){return this.controlEl.textLength}get type(){return"textarea"}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.controlEl.validationMessage}get willValidate(){return this.elementInternals.willValidate}get defaultValue(){return this.controlEl?.defaultValue??this.preConnectControlEl.defaultValue}set defaultValue(e){const t=this.controlEl??this.preConnectControlEl;t.defaultValue=e,this.controlEl&&!this.userInteracted&&(this.controlEl.value=e)}get value(){return this.controlEl?.value??this.preConnectControlEl.value}set value(e){const t=this.controlEl??this.preConnectControlEl;t.value=e,this.setFormValue(e),this.setValidity()}connectedCallback(){super.connectedCallback(),this.setDefaultValue(),this.maybeCreateAutoSizerEl(),this.bindEvents(),this.observeControlElAttrs()}disconnectedCallback(){super.disconnectedCallback(),this.autoSizerObserver?.disconnect(),this.controlElAttrObserver?.disconnect()}formResetCallback(){this.value=this.defaultValue}formDisabledCallback(e){this.setDisabledSideEffect(e),this.setValidity()}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(e){this.elementInternals.setValidity({customError:!!e},e?e.toString():void 0),this.reportValidity()}setValidity(e,t,i){this.$fastController.isConnected&&(this.disabled||this.readOnly?this.elementInternals.setValidity({}):this.elementInternals.setValidity(e??this.controlEl.validity,t??this.controlEl.validationMessage,i??this.controlEl),this.userInteracted&&this.toggleUserValidityState())}select(){this.controlEl.select()}setDefaultValue(){this.defaultValue=this.innerHTML.trim()||this.preConnectControlEl.defaultValue||"",this.value=this.preConnectControlEl.value||this.defaultValue,this.setFormValue(this.value),this.setValidity(),this.preConnectControlEl=null}bindEvents(){this.controlEl.addEventListener("input",()=>this.userInteracted=!0,{once:!0})}getContent(){return this.defaultSlottedNodes.map(e=>{switch(e.nodeType){case Node.ELEMENT_NODE:return e.outerHTML;case Node.TEXT_NODE:return e.textContent.trim();default:return""}}).join("")||""}observeControlElAttrs(){this.controlElAttrObserver=new MutationObserver(()=>{this.setValidity()}),this.controlElAttrObserver.observe(this.controlEl,{attributes:!0,attributeFilter:["disabled","required","readonly","maxlength","minlength"]})}setDisabledSideEffect(e){this.elementInternals.ariaDisabled=`${e}`,this.controlEl&&(this.controlEl.disabled=e),this.labelSlottedNodes?.length&&this.labelSlottedNodes.forEach(t=>t.disabled=this.disabled)}toggleUserValidityState(){$(this.elementInternals,"user-invalid",!this.validity.valid),$(this.elementInternals,"user-valid",this.validity.valid)}maybeCreateAutoSizerEl(){if(!CSS.supports("field-sizing: content")){if(!this.autoResize){this.autoSizerEl?.remove(),this.autoSizerObserver?.disconnect();return}this.autoSizerEl||(this.autoSizerEl=document.createElement("div"),this.autoSizerEl.classList.add("auto-sizer"),this.autoSizerEl.ariaHidden="true"),this.shadowRoot.prepend(this.autoSizerEl),this.autoSizerObserver||(this.autoSizerObserver=new ResizeObserver((e,t)=>{const i=window.getComputedStyle(this).writingMode.startsWith("horizontal")?"height":"width";this.style.getPropertyValue(i)!==""&&(this.autoSizerEl?.remove(),t.disconnect())})),this.autoSizerObserver.observe(this)}}handleControlInput(){this.autoResize&&this.autoSizerEl&&(this.autoSizerEl.textContent=this.value+" "),this.setFormValue(this.value),this.setValidity()}handleControlChange(){this.toggleUserValidityState(),this.$emit("change")}handleControlSelect(){this.$emit("select")}}oe.formAssociated=!0,ve([m],oe.prototype,"defaultSlottedNodes",2),ve([m],oe.prototype,"labelSlottedNodes",2),ve([a],oe.prototype,"autocomplete",2),ve([a({attribute:"auto-resize",mode:"boolean"})],oe.prototype,"autoResize",2),ve([a({attribute:"dirname"})],oe.prototype,"dirName",2),ve([a({mode:"boolean"})],oe.prototype,"disabled",2),ve([a({attribute:"display-shadow",mode:"boolean"})],oe.prototype,"displayShadow",2),ve([a({attribute:"form"})],oe.prototype,"initialForm",2),ve([a({attribute:"maxlength",converter:se})],oe.prototype,"maxLength",2),ve([a({attribute:"minlength",converter:se})],oe.prototype,"minLength",2),ve([a],oe.prototype,"name",2),ve([a],oe.prototype,"placeholder",2),ve([a({attribute:"readonly",mode:"boolean"})],oe.prototype,"readOnly",2),ve([a({mode:"boolean"})],oe.prototype,"required",2),ve([a({mode:"fromView"})],oe.prototype,"resize",2),ve([a({mode:"boolean"})],oe.prototype,"spellcheck",2);var Bv=Object.defineProperty,Ov=Object.getOwnPropertyDescriptor,_s=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ov(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Bv(e,t,r),r};class fr extends oe{constructor(){super(...arguments),this.appearance=si.outline,this.block=!1}labelSlottedNodesChanged(){super.labelSlottedNodesChanged(),this.labelSlottedNodes.forEach(e=>{e.size=this.size})}appearanceChanged(e,t){$(this.elementInternals,e,!1),qr(si,t)?$(this.elementInternals,t,!0):this.appearance=si.outline}blockChanged(){$(this.elementInternals,"block",this.block)}sizeChanged(e,t){y(this.elementInternals,e,t,Iv)}handleChange(e,t){switch(t){case"size":this.labelSlottedNodes.forEach(i=>{i.size=this.size});break;case"appearance":case"displayShadow":this.maybeDisplayShadow();break}}connectedCallback(){super.connectedCallback(),this.maybeDisplayShadow(),f.getNotifier(this).subscribe(this,"appearance"),f.getNotifier(this).subscribe(this,"displayShadow"),f.getNotifier(this).subscribe(this,"size")}disconnectedCallback(){super.disconnectedCallback(),f.getNotifier(this).unsubscribe(this,"appearance"),f.getNotifier(this).unsubscribe(this,"displayShadow"),f.getNotifier(this).unsubscribe(this,"size")}maybeDisplayShadow(){$(this.elementInternals,"display-shadow",this.displayShadow&&Pv.includes(this.appearance))}}_s([a({mode:"fromView"})],fr.prototype,"appearance",2),_s([a({mode:"boolean"})],fr.prototype,"block",2),_s([a],fr.prototype,"size",2);const Av=p`
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fluentui/web-components",
3
3
  "description": "A library of Fluent Web Components",
4
- "version": "3.0.0-beta.86",
4
+ "version": "3.0.0-beta.88",
5
5
  "author": {
6
6
  "name": "Microsoft",
7
7
  "url": "https://discord.gg/FcSNfg4"