@fluentui/web-components 3.1.3 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. package/CHANGELOG.md +25 -2
  2. package/custom-elements.json +1400 -2699
  3. package/dist/esm/accordion-item/accordion-item.d.ts +4 -25
  4. package/dist/esm/accordion-item/accordion-item.js +4 -22
  5. package/dist/esm/accordion-item/accordion-item.js.map +1 -1
  6. package/dist/esm/accordion-item/accordion-item.styles.css +3 -11
  7. package/dist/esm/accordion-item/accordion-item.styles.js +3 -11
  8. package/dist/esm/accordion-item/accordion-item.styles.js.map +1 -1
  9. package/dist/esm/anchor-button/anchor-button.d.ts +5 -57
  10. package/dist/esm/anchor-button/anchor-button.js +5 -59
  11. package/dist/esm/anchor-button/anchor-button.js.map +1 -1
  12. package/dist/esm/avatar/avatar.d.ts +5 -28
  13. package/dist/esm/avatar/avatar.js +4 -9
  14. package/dist/esm/avatar/avatar.js.map +1 -1
  15. package/dist/esm/badge/badge.d.ts +5 -34
  16. package/dist/esm/badge/badge.js +6 -35
  17. package/dist/esm/badge/badge.js.map +1 -1
  18. package/dist/esm/button/button.d.ts +5 -33
  19. package/dist/esm/button/button.js +5 -25
  20. package/dist/esm/button/button.js.map +1 -1
  21. package/dist/esm/checkbox/checkbox.d.ts +3 -17
  22. package/dist/esm/checkbox/checkbox.js +4 -7
  23. package/dist/esm/checkbox/checkbox.js.map +1 -1
  24. package/dist/esm/divider/divider.d.ts +4 -19
  25. package/dist/esm/divider/divider.js +4 -11
  26. package/dist/esm/divider/divider.js.map +1 -1
  27. package/dist/esm/divider/divider.styles.css +21 -13
  28. package/dist/esm/divider/divider.styles.js +21 -13
  29. package/dist/esm/divider/divider.styles.js.map +1 -1
  30. package/dist/esm/drawer/drawer.d.ts +4 -16
  31. package/dist/esm/drawer/drawer.js +4 -22
  32. package/dist/esm/drawer/drawer.js.map +1 -1
  33. package/dist/esm/drawer/drawer.template.html +0 -2
  34. package/dist/esm/drawer/drawer.template.js +0 -2
  35. package/dist/esm/drawer/drawer.template.js.map +1 -1
  36. package/dist/esm/dropdown/dropdown.base.d.ts +7 -9
  37. package/dist/esm/dropdown/dropdown.base.js +9 -14
  38. package/dist/esm/dropdown/dropdown.base.js.map +1 -1
  39. package/dist/esm/dropdown/dropdown.d.ts +3 -16
  40. package/dist/esm/dropdown/dropdown.js +3 -20
  41. package/dist/esm/dropdown/dropdown.js.map +1 -1
  42. package/dist/esm/dropdown/dropdown.options.d.ts +4 -4
  43. package/dist/esm/dropdown/dropdown.options.js.map +1 -1
  44. package/dist/esm/dropdown/dropdown.styles.css +65 -20
  45. package/dist/esm/dropdown/dropdown.styles.d.ts +4 -0
  46. package/dist/esm/dropdown/dropdown.styles.js +69 -20
  47. package/dist/esm/dropdown/dropdown.styles.js.map +1 -1
  48. package/dist/esm/dropdown/dropdown.template.d.ts +2 -0
  49. package/dist/esm/dropdown/dropdown.template.js +4 -2
  50. package/dist/esm/dropdown/dropdown.template.js.map +1 -1
  51. package/dist/esm/field/field.base.d.ts +1 -0
  52. package/dist/esm/field/field.base.js +32 -9
  53. package/dist/esm/field/field.base.js.map +1 -1
  54. package/dist/esm/field/field.d.ts +2 -9
  55. package/dist/esm/field/field.js +2 -17
  56. package/dist/esm/field/field.js.map +1 -1
  57. package/dist/esm/field/field.options.d.ts +4 -0
  58. package/dist/esm/field/field.options.js.map +1 -1
  59. package/dist/esm/field/field.styles.css +3 -5
  60. package/dist/esm/field/field.styles.js +2 -5
  61. package/dist/esm/field/field.styles.js.map +1 -1
  62. package/dist/esm/image/image.d.ts +6 -41
  63. package/dist/esm/image/image.js +7 -17
  64. package/dist/esm/image/image.js.map +1 -1
  65. package/dist/esm/label/label.d.ts +4 -25
  66. package/dist/esm/label/label.js +4 -17
  67. package/dist/esm/label/label.js.map +1 -1
  68. package/dist/esm/link/link.d.ts +3 -20
  69. package/dist/esm/link/link.js +3 -22
  70. package/dist/esm/link/link.js.map +1 -1
  71. package/dist/esm/menu/menu.d.ts +1 -6
  72. package/dist/esm/menu/menu.js +1 -4
  73. package/dist/esm/menu/menu.js.map +1 -1
  74. package/dist/esm/menu-item/menu-item.styles.css +16 -2
  75. package/dist/esm/menu-item/menu-item.styles.js +17 -3
  76. package/dist/esm/menu-item/menu-item.styles.js.map +1 -1
  77. package/dist/esm/menu-list/menu-list.base.js +19 -1
  78. package/dist/esm/menu-list/menu-list.base.js.map +1 -1
  79. package/dist/esm/menu-list/menu-list.styles.css +1 -48
  80. package/dist/esm/menu-list/menu-list.styles.js +1 -48
  81. package/dist/esm/menu-list/menu-list.styles.js.map +1 -1
  82. package/dist/esm/message-bar/message-bar.d.ts +3 -25
  83. package/dist/esm/message-bar/message-bar.js +4 -11
  84. package/dist/esm/message-bar/message-bar.js.map +1 -1
  85. package/dist/esm/option/option.d.ts +2 -14
  86. package/dist/esm/option/option.js +2 -19
  87. package/dist/esm/option/option.js.map +1 -1
  88. package/dist/esm/option/option.styles.css +1 -1
  89. package/dist/esm/option/option.styles.js +2 -2
  90. package/dist/esm/option/option.styles.js.map +1 -1
  91. package/dist/esm/progress-bar/progress-bar.base.d.ts +2 -16
  92. package/dist/esm/progress-bar/progress-bar.base.js +2 -22
  93. package/dist/esm/progress-bar/progress-bar.base.js.map +1 -1
  94. package/dist/esm/progress-bar/progress-bar.d.ts +2 -20
  95. package/dist/esm/progress-bar/progress-bar.js +2 -8
  96. package/dist/esm/progress-bar/progress-bar.js.map +1 -1
  97. package/dist/esm/rating-display/rating-display.d.ts +4 -27
  98. package/dist/esm/rating-display/rating-display.js +4 -22
  99. package/dist/esm/rating-display/rating-display.js.map +1 -1
  100. package/dist/esm/slider/slider.d.ts +2 -8
  101. package/dist/esm/slider/slider.js +1 -3
  102. package/dist/esm/slider/slider.js.map +1 -1
  103. package/dist/esm/spinner/spinner.d.ts +3 -16
  104. package/dist/esm/spinner/spinner.js +3 -8
  105. package/dist/esm/spinner/spinner.js.map +1 -1
  106. package/dist/esm/switch/switch.styles.css +2 -2
  107. package/dist/esm/switch/switch.styles.js +2 -2
  108. package/dist/esm/tablist/tablist.d.ts +2 -12
  109. package/dist/esm/tablist/tablist.js +2 -17
  110. package/dist/esm/tablist/tablist.js.map +1 -1
  111. package/dist/esm/text/text.d.ts +10 -84
  112. package/dist/esm/text/text.js +11 -82
  113. package/dist/esm/text/text.js.map +1 -1
  114. package/dist/esm/text-input/text-input.base.d.ts +18 -0
  115. package/dist/esm/text-input/text-input.base.js +59 -5
  116. package/dist/esm/text-input/text-input.base.js.map +1 -1
  117. package/dist/esm/text-input/text-input.d.ts +2 -17
  118. package/dist/esm/text-input/text-input.js +2 -8
  119. package/dist/esm/text-input/text-input.js.map +1 -1
  120. package/dist/esm/textarea/textarea.base.d.ts +3 -18
  121. package/dist/esm/textarea/textarea.base.js +5 -30
  122. package/dist/esm/textarea/textarea.base.js.map +1 -1
  123. package/dist/esm/textarea/textarea.d.ts +3 -17
  124. package/dist/esm/textarea/textarea.js +14 -28
  125. package/dist/esm/textarea/textarea.js.map +1 -1
  126. package/dist/esm/tooltip/tooltip.options.d.ts +13 -13
  127. package/dist/esm/tooltip/tooltip.options.js +13 -13
  128. package/dist/esm/tooltip/tooltip.options.js.map +1 -1
  129. package/dist/esm/tooltip/tooltip.styles.js +12 -13
  130. package/dist/esm/tooltip/tooltip.styles.js.map +1 -1
  131. package/dist/esm/utils/get-initials.js +1 -2
  132. package/dist/esm/utils/get-initials.js.map +1 -1
  133. package/dist/web-components-all.js +522 -928
  134. package/dist/web-components-all.min.js +15 -15
  135. package/dist/web-components.d.ts +140 -622
  136. package/dist/web-components.js +512 -1008
  137. package/dist/web-components.min.js +15 -15
  138. package/package.json +2 -2
@@ -5100,7 +5100,7 @@ const zIndexFloating = "var(--zIndexFloating)";
5100
5100
  const zIndexPriority = "var(--zIndexPriority)";
5101
5101
  const zIndexDebug = "var(--zIndexDebug)";
5102
5102
 
5103
- const styles$F = css`${display("block")} :host{max-width:fit-content;contain:content;color:${colorNeutralForeground1}}.heading{height:44px;display:grid;position:relative;padding-inline:${spacingHorizontalM} ${spacingHorizontalMNudge};border-radius:${borderRadiusMedium};font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};line-height:${lineHeightBase300};grid-template-columns:auto auto 1fr auto}.button{appearance:none;background:${colorTransparentBackground};border:none;box-sizing:border-box;color:inherit;cursor:pointer;font:inherit;grid-column:auto/span 2;grid-row:1;height:44px;outline:none;padding:0;text-align:start}.button::before{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${borderRadiusSmall}}:where(.default-marker-collapsed,.default-marker-expanded),::slotted(:is([slot='marker-collapsed'],[slot='marker-expanded'])){display:flex;align-items:center;justify-content:center;pointer-events:none;position:relative;height:100%;padding-inline-end:${spacingHorizontalS};grid-column:1/span 1;grid-row:1}.content{margin:0 ${spacingHorizontalM}}::slotted([slot='start']){display:flex;justify-content:center;align-items:center;padding-right:${spacingHorizontalS};grid-column:2/span 1;grid-row:1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${borderRadiusSmall};outline:none;border:2px solid ${colorStrokeFocus1};box-shadow:inset 0 0 0 1px ${colorStrokeFocus2}}:host([disabled]) .button{color:${colorNeutralForegroundDisabled}}:host([disabled]) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host([expanded]) .content{display:block}:host([expanded]) .default-marker-collapsed,:host([expanded]) ::slotted([slot='marker-collapsed']),:host(:not([expanded])) :is(.default-marker-expanded,.content),:host(:not([expanded])) ::slotted([slot='marker-expanded']){display:none}:host([expanded]) ::slotted([slot='marker-expanded']),:host(:not([expanded])) ::slotted([slot='marker-collapsed']){display:flex}.heading{font-size:${fontSizeBase300};line-height:${lineHeightBase300}}:host([size='small']) .heading{font-size:${fontSizeBase200};line-height:${lineHeightBase200}}:host([size='large']) .heading{font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host([size='extra-large']) .heading{font-size:${fontSizeBase500};line-height:${lineHeightBase500}}:host([marker-position='end']) ::slotted([slot='start']){grid-column:1/span 1;color:currentColor}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:4/span 1;padding-inline-start:${spacingHorizontalS};padding-inline-end:0}:host([marker-position='end']) .button{grid-column:2/span 3}:host([block]){max-width:100%}:host([marker-position='end']) .heading{grid-template-columns:auto auto 28px;padding-inline:${spacingHorizontalM}}:host([marker-position='end']:has([slot='start'])) .heading{padding-inline:${spacingHorizontalMNudge} ${spacingHorizontalM}}:host([block][marker-position='end']) .heading{grid-template-columns:auto 1fr}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:5/span 1}`;
5103
+ const styles$F = css`${display("block")} :host{max-width:fit-content;contain:content;color:${colorNeutralForeground1}}.heading{height:44px;display:grid;position:relative;padding-inline:${spacingHorizontalM} ${spacingHorizontalMNudge};border-radius:${borderRadiusMedium};font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};line-height:${lineHeightBase300};grid-template-columns:auto auto 1fr auto}.button{appearance:none;background:${colorTransparentBackground};border:none;box-sizing:border-box;color:inherit;cursor:pointer;font:inherit;grid-column:auto/span 2;grid-row:1;height:44px;outline:none;padding:0;text-align:start}.button::before{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${borderRadiusSmall}}:where(.default-marker-collapsed,.default-marker-expanded),::slotted(:is([slot='marker-collapsed'],[slot='marker-expanded'])){display:flex;align-items:center;justify-content:center;pointer-events:none;position:relative;height:100%;padding-inline-end:${spacingHorizontalS};grid-column:1/span 1;grid-row:1}.content{margin:0 ${spacingHorizontalM}}::slotted([slot='start']){display:flex;justify-content:center;align-items:center;padding-right:${spacingHorizontalS};grid-column:2/span 1;grid-row:1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${borderRadiusSmall};outline:none;border:2px solid ${colorStrokeFocus1};box-shadow:inset 0 0 0 1px ${colorStrokeFocus2}}:host([disabled]) .button{color:${colorNeutralForegroundDisabled}}:host([disabled]) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host([expanded]) .content{display:block}:host([expanded]) .default-marker-collapsed,:host([expanded]) ::slotted([slot='marker-collapsed']),:host(:not([expanded])) :is(.default-marker-expanded,.content),:host(:not([expanded])) ::slotted([slot='marker-expanded']){display:none}:host([expanded]) ::slotted([slot='marker-expanded']),:host(:not([expanded])) ::slotted([slot='marker-collapsed']){display:flex}.heading{font-size:${fontSizeBase300};line-height:${lineHeightBase300}}:host([size='small']) .heading{font-size:${fontSizeBase200};line-height:${lineHeightBase200}}:host([size='large']) .heading{font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host([size='extra-large']) .heading{font-size:${fontSizeBase500};line-height:${lineHeightBase500}}:host([marker-position='end']) ::slotted([slot='start']){grid-column:1/span 1;color:currentColor}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:3;padding-inline-start:${spacingHorizontalS};padding-inline-end:0}:host([marker-position='end']) .button{grid-column:2}:host([block]){max-width:100%}:host([marker-position='end']) .heading{grid-template-columns:auto 1fr auto;padding-inline:${spacingHorizontalM}}:host([marker-position='end']:has([slot='start'])) .heading{padding-inline:${spacingHorizontalMNudge} ${spacingHorizontalM}}`;
5104
5104
 
5105
5105
  function staticallyCompose(item) {
5106
5106
  if (!item) {
@@ -5159,14 +5159,14 @@ function applyMixins(derivedCtor, ...baseCtors) {
5159
5159
  });
5160
5160
  }
5161
5161
 
5162
- var __defProp$P = Object.defineProperty;
5163
- var __getOwnPropDesc$P = Object.getOwnPropertyDescriptor;
5164
- var __decorateClass$P = (decorators, target, key, kind) => {
5165
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$P(target, key) : target;
5162
+ var __defProp$z = Object.defineProperty;
5163
+ var __getOwnPropDesc$z = Object.getOwnPropertyDescriptor;
5164
+ var __decorateClass$z = (decorators, target, key, kind) => {
5165
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$z(target, key) : target;
5166
5166
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
5167
5167
  if (decorator = decorators[i])
5168
5168
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
5169
- if (kind && result) __defProp$P(target, key, result);
5169
+ if (kind && result) __defProp$z(target, key, result);
5170
5170
  return result;
5171
5171
  };
5172
5172
  class BaseAccordionItem extends FASTElement {
@@ -5183,48 +5183,25 @@ class BaseAccordionItem extends FASTElement {
5183
5183
  this.disabled = false;
5184
5184
  }
5185
5185
  }
5186
- __decorateClass$P([
5186
+ __decorateClass$z([
5187
5187
  attr({
5188
5188
  attribute: "heading-level",
5189
5189
  mode: "fromView",
5190
5190
  converter: nullableNumberConverter
5191
5191
  })
5192
5192
  ], BaseAccordionItem.prototype, "headinglevel", 2);
5193
- __decorateClass$P([
5193
+ __decorateClass$z([
5194
5194
  attr({ mode: "boolean" })
5195
5195
  ], BaseAccordionItem.prototype, "expanded", 2);
5196
- __decorateClass$P([
5196
+ __decorateClass$z([
5197
5197
  attr({ mode: "boolean" })
5198
5198
  ], BaseAccordionItem.prototype, "disabled", 2);
5199
- __decorateClass$P([
5199
+ __decorateClass$z([
5200
5200
  observable
5201
5201
  ], BaseAccordionItem.prototype, "expandbutton", 2);
5202
5202
 
5203
- var __defProp$O = Object.defineProperty;
5204
- var __getOwnPropDesc$O = Object.getOwnPropertyDescriptor;
5205
- var __decorateClass$O = (decorators, target, key, kind) => {
5206
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$O(target, key) : target;
5207
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
5208
- if (decorator = decorators[i])
5209
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
5210
- if (kind && result) __defProp$O(target, key, result);
5211
- return result;
5212
- };
5213
5203
  class AccordionItem extends BaseAccordionItem {
5214
- constructor() {
5215
- super(...arguments);
5216
- this.block = false;
5217
- }
5218
5204
  }
5219
- __decorateClass$O([
5220
- attr
5221
- ], AccordionItem.prototype, "size", 2);
5222
- __decorateClass$O([
5223
- attr({ attribute: "marker-position" })
5224
- ], AccordionItem.prototype, "markerPosition", 2);
5225
- __decorateClass$O([
5226
- attr({ mode: "boolean" })
5227
- ], AccordionItem.prototype, "block", 2);
5228
5205
  applyMixins(AccordionItem, StartEnd);
5229
5206
 
5230
5207
  AccordionItem.define(definition$F);
@@ -5280,14 +5257,14 @@ function waitForConnectedDescendants(target, callback, options) {
5280
5257
  scheduleCheck();
5281
5258
  }
5282
5259
 
5283
- var __defProp$N = Object.defineProperty;
5284
- var __getOwnPropDesc$N = Object.getOwnPropertyDescriptor;
5285
- var __decorateClass$N = (decorators, target, key, kind) => {
5286
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$N(target, key) : target;
5260
+ var __defProp$y = Object.defineProperty;
5261
+ var __getOwnPropDesc$y = Object.getOwnPropertyDescriptor;
5262
+ var __decorateClass$y = (decorators, target, key, kind) => {
5263
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$y(target, key) : target;
5287
5264
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
5288
5265
  if (decorator = decorators[i])
5289
5266
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
5290
- if (kind && result) __defProp$N(target, key, result);
5267
+ if (kind && result) __defProp$y(target, key, result);
5291
5268
  return result;
5292
5269
  };
5293
5270
  class Accordion extends FASTElement {
@@ -5432,10 +5409,10 @@ class Accordion extends FASTElement {
5432
5409
  this.setItems();
5433
5410
  }
5434
5411
  }
5435
- __decorateClass$N([
5412
+ __decorateClass$y([
5436
5413
  attr({ attribute: "expand-mode" })
5437
5414
  ], Accordion.prototype, "expandmode", 2);
5438
- __decorateClass$N([
5415
+ __decorateClass$y([
5439
5416
  observable
5440
5417
  ], Accordion.prototype, "slottedAccordionItems", 2);
5441
5418
 
@@ -5508,55 +5485,14 @@ const definition$D = {
5508
5485
  template: template$D
5509
5486
  };
5510
5487
 
5511
- const AnchorPositioningCSSSupported = CSS.supports("anchor-name: --a");
5512
- const AnchorPositioningHTMLSupported = "anchor" in HTMLElement.prototype;
5513
- const CustomStatesSetSupported = CSS.supports("selector(:state(g))");
5514
-
5515
- const statesMap = /* @__PURE__ */ new Map();
5516
- function stateSelector(state) {
5517
- return statesMap.get(state) ?? statesMap.set(state, CustomStatesSetSupported ? `:state(${state})` : `[state--${state}]`).get(state);
5518
- }
5519
- function toggleState(elementInternals, state, force) {
5520
- if (!state || !elementInternals) {
5521
- return;
5522
- }
5523
- if (!CustomStatesSetSupported) {
5524
- elementInternals.shadowRoot.host.toggleAttribute(`state--${state}`, force);
5525
- return;
5526
- }
5527
- if (force ?? !elementInternals.states.has(state)) {
5528
- elementInternals.states.add(state);
5529
- return;
5530
- }
5531
- elementInternals.states.delete(state);
5532
- }
5533
- const matchingStateMap = /* @__PURE__ */ new WeakMap();
5534
- function hasMatchingState(States, state) {
5535
- if (!States || !state) {
5536
- return false;
5537
- }
5538
- if (matchingStateMap.has(States)) {
5539
- return matchingStateMap.get(States).has(state);
5540
- }
5541
- const stateSet = new Set(Object.values(States));
5542
- matchingStateMap.set(States, stateSet);
5543
- return stateSet.has(state);
5544
- }
5545
- function swapStates(elementInternals, prev = "", next = "", States, prefix = "") {
5546
- toggleState(elementInternals, `${prefix}${prev}`, false);
5547
- if (!States || hasMatchingState(States, next)) {
5548
- toggleState(elementInternals, `${prefix}${next}`, true);
5549
- }
5550
- }
5551
-
5552
- var __defProp$M = Object.defineProperty;
5553
- var __getOwnPropDesc$M = Object.getOwnPropertyDescriptor;
5554
- var __decorateClass$M = (decorators, target, key, kind) => {
5555
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$M(target, key) : target;
5488
+ var __defProp$x = Object.defineProperty;
5489
+ var __getOwnPropDesc$x = Object.getOwnPropertyDescriptor;
5490
+ var __decorateClass$x = (decorators, target, key, kind) => {
5491
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$x(target, key) : target;
5556
5492
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
5557
5493
  if (decorator = decorators[i])
5558
5494
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
5559
- if (kind && result) __defProp$M(target, key, result);
5495
+ if (kind && result) __defProp$x(target, key, result);
5560
5496
  return result;
5561
5497
  };
5562
5498
  class BaseAnchor extends FASTElement {
@@ -5668,91 +5604,33 @@ class BaseAnchor extends FASTElement {
5668
5604
  return proxy;
5669
5605
  }
5670
5606
  }
5671
- __decorateClass$M([
5607
+ __decorateClass$x([
5672
5608
  attr
5673
5609
  ], BaseAnchor.prototype, "download", 2);
5674
- __decorateClass$M([
5610
+ __decorateClass$x([
5675
5611
  attr
5676
5612
  ], BaseAnchor.prototype, "href", 2);
5677
- __decorateClass$M([
5613
+ __decorateClass$x([
5678
5614
  attr
5679
5615
  ], BaseAnchor.prototype, "hreflang", 2);
5680
- __decorateClass$M([
5616
+ __decorateClass$x([
5681
5617
  attr
5682
5618
  ], BaseAnchor.prototype, "ping", 2);
5683
- __decorateClass$M([
5619
+ __decorateClass$x([
5684
5620
  attr
5685
5621
  ], BaseAnchor.prototype, "referrerpolicy", 2);
5686
- __decorateClass$M([
5622
+ __decorateClass$x([
5687
5623
  attr
5688
5624
  ], BaseAnchor.prototype, "rel", 2);
5689
- __decorateClass$M([
5625
+ __decorateClass$x([
5690
5626
  attr
5691
5627
  ], BaseAnchor.prototype, "target", 2);
5692
- __decorateClass$M([
5628
+ __decorateClass$x([
5693
5629
  attr
5694
5630
  ], BaseAnchor.prototype, "type", 2);
5695
5631
 
5696
- var __defProp$L = Object.defineProperty;
5697
- var __getOwnPropDesc$L = Object.getOwnPropertyDescriptor;
5698
- var __decorateClass$L = (decorators, target, key, kind) => {
5699
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$L(target, key) : target;
5700
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
5701
- if (decorator = decorators[i])
5702
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
5703
- if (kind && result) __defProp$L(target, key, result);
5704
- return result;
5705
- };
5706
5632
  class AnchorButton extends BaseAnchor {
5707
- constructor() {
5708
- super(...arguments);
5709
- this.iconOnly = false;
5710
- }
5711
- /**
5712
- * Handles changes to appearance attribute custom states
5713
- * @param prev - the previous state
5714
- * @param next - the next state
5715
- */
5716
- appearanceChanged(prev, next) {
5717
- swapStates(this.elementInternals, prev, next, AnchorButtonAppearance);
5718
- }
5719
- /**
5720
- * Handles changes to shape attribute custom states
5721
- * @param prev - the previous state
5722
- * @param next - the next state
5723
- */
5724
- shapeChanged(prev, next) {
5725
- swapStates(this.elementInternals, prev, next, AnchorButtonShape);
5726
- }
5727
- /**
5728
- * Handles changes to size attribute custom states
5729
- * @param prev - the previous state
5730
- * @param next - the next state
5731
- */
5732
- sizeChanged(prev, next) {
5733
- swapStates(this.elementInternals, prev, next, AnchorButtonSize);
5734
- }
5735
- /**
5736
- * Handles changes to icon only custom states
5737
- * @param prev - the previous state
5738
- * @param next - the next state
5739
- */
5740
- iconOnlyChanged(prev, next) {
5741
- toggleState(this.elementInternals, "icon", !!next);
5742
- }
5743
5633
  }
5744
- __decorateClass$L([
5745
- attr
5746
- ], AnchorButton.prototype, "appearance", 2);
5747
- __decorateClass$L([
5748
- attr
5749
- ], AnchorButton.prototype, "shape", 2);
5750
- __decorateClass$L([
5751
- attr
5752
- ], AnchorButton.prototype, "size", 2);
5753
- __decorateClass$L([
5754
- attr({ attribute: "icon-only", mode: "boolean" })
5755
- ], AnchorButton.prototype, "iconOnly", 2);
5756
5634
  applyMixins(AnchorButton, StartEnd);
5757
5635
 
5758
5636
  AnchorButton.define(definition$D);
@@ -5854,7 +5732,7 @@ const definition$C = {
5854
5732
 
5855
5733
  const UNWANTED_ENCLOSURES_REGEX = /[\(\[\{][^\)\]\}]*[\)\]\}]/g;
5856
5734
  const UNWANTED_CHARS_REGEX = /[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g;
5857
- const PHONENUMBER_REGEX = /^\d+[\d\s]*(:?ext|x|)\s*\d+$/i;
5735
+ const PHONENUMBER_REGEX = /^(?:\d[\d\s]*\d|\d[\d\s]*(?:ext|x)\s*\d+)$/i;
5858
5736
  const MULTIPLE_WHITESPACES_REGEX = /\s+/g;
5859
5737
  const UNSUPPORTED_TEXT_REGEX = /[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uAC00-\uD7AF\uD7B0-\uD7FF\u3040-\u309F\u30A0-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]|[\uD840-\uD869][\uDC00-\uDED6]/;
5860
5738
  function getInitialsLatin(displayName, isRtl, firstInitialOnly) {
@@ -5893,14 +5771,14 @@ function getInitials(displayName, isRtl, options) {
5893
5771
  return getInitialsLatin(displayName, isRtl, options?.firstInitialOnly);
5894
5772
  }
5895
5773
 
5896
- var __defProp$K = Object.defineProperty;
5897
- var __getOwnPropDesc$K = Object.getOwnPropertyDescriptor;
5898
- var __decorateClass$K = (decorators, target, key, kind) => {
5899
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$K(target, key) : target;
5774
+ var __defProp$w = Object.defineProperty;
5775
+ var __getOwnPropDesc$w = Object.getOwnPropertyDescriptor;
5776
+ var __decorateClass$w = (decorators, target, key, kind) => {
5777
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$w(target, key) : target;
5900
5778
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
5901
5779
  if (decorator = decorators[i])
5902
5780
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
5903
- if (kind && result) __defProp$K(target, key, result);
5781
+ if (kind && result) __defProp$w(target, key, result);
5904
5782
  return result;
5905
5783
  };
5906
5784
  class BaseAvatar extends FASTElement {
@@ -6009,30 +5887,30 @@ class BaseAvatar extends FASTElement {
6009
5887
  }
6010
5888
  }
6011
5889
  }
6012
- __decorateClass$K([
5890
+ __decorateClass$w([
6013
5891
  observable
6014
5892
  ], BaseAvatar.prototype, "defaultSlot", 2);
6015
- __decorateClass$K([
5893
+ __decorateClass$w([
6016
5894
  observable
6017
5895
  ], BaseAvatar.prototype, "monogram", 2);
6018
- __decorateClass$K([
5896
+ __decorateClass$w([
6019
5897
  observable
6020
5898
  ], BaseAvatar.prototype, "slottedDefaults", 2);
6021
- __decorateClass$K([
5899
+ __decorateClass$w([
6022
5900
  attr
6023
5901
  ], BaseAvatar.prototype, "name", 2);
6024
- __decorateClass$K([
5902
+ __decorateClass$w([
6025
5903
  attr
6026
5904
  ], BaseAvatar.prototype, "initials", 2);
6027
5905
 
6028
- var __defProp$J = Object.defineProperty;
6029
- var __getOwnPropDesc$J = Object.getOwnPropertyDescriptor;
6030
- var __decorateClass$J = (decorators, target, key, kind) => {
6031
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$J(target, key) : target;
5906
+ var __defProp$v = Object.defineProperty;
5907
+ var __getOwnPropDesc$v = Object.getOwnPropertyDescriptor;
5908
+ var __decorateClass$v = (decorators, target, key, kind) => {
5909
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$v(target, key) : target;
6032
5910
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
6033
5911
  if (decorator = decorators[i])
6034
5912
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
6035
- if (kind && result) __defProp$J(target, key, result);
5913
+ if (kind && result) __defProp$v(target, key, result);
6036
5914
  return result;
6037
5915
  };
6038
5916
  const _Avatar = class _Avatar extends BaseAvatar {
@@ -6087,22 +5965,13 @@ const _Avatar = class _Avatar extends BaseAvatar {
6087
5965
  * An array of the available Avatar named colors
6088
5966
  */
6089
5967
  _Avatar.colors = Object.values(AvatarNamedColor);
6090
- __decorateClass$J([
6091
- attr
6092
- ], _Avatar.prototype, "active", 2);
6093
- __decorateClass$J([
6094
- attr
6095
- ], _Avatar.prototype, "shape", 2);
6096
- __decorateClass$J([
6097
- attr
6098
- ], _Avatar.prototype, "appearance", 2);
6099
- __decorateClass$J([
5968
+ __decorateClass$v([
6100
5969
  attr({ converter: nullableNumberConverter })
6101
5970
  ], _Avatar.prototype, "size", 2);
6102
- __decorateClass$J([
5971
+ __decorateClass$v([
6103
5972
  attr
6104
5973
  ], _Avatar.prototype, "color", 2);
6105
- __decorateClass$J([
5974
+ __decorateClass$v([
6106
5975
  attr({ attribute: "color-id" })
6107
5976
  ], _Avatar.prototype, "colorId", 2);
6108
5977
  let Avatar = _Avatar;
@@ -6170,35 +6039,8 @@ const definition$B = {
6170
6039
  template: template$B
6171
6040
  };
6172
6041
 
6173
- var __defProp$I = Object.defineProperty;
6174
- var __getOwnPropDesc$I = Object.getOwnPropertyDescriptor;
6175
- var __decorateClass$I = (decorators, target, key, kind) => {
6176
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$I(target, key) : target;
6177
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
6178
- if (decorator = decorators[i])
6179
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
6180
- if (kind && result) __defProp$I(target, key, result);
6181
- return result;
6182
- };
6183
6042
  class Badge extends FASTElement {
6184
- constructor() {
6185
- super(...arguments);
6186
- this.appearance = BadgeAppearance.filled;
6187
- this.color = BadgeColor.brand;
6188
- }
6189
6043
  }
6190
- __decorateClass$I([
6191
- attr
6192
- ], Badge.prototype, "appearance", 2);
6193
- __decorateClass$I([
6194
- attr
6195
- ], Badge.prototype, "color", 2);
6196
- __decorateClass$I([
6197
- attr
6198
- ], Badge.prototype, "shape", 2);
6199
- __decorateClass$I([
6200
- attr
6201
- ], Badge.prototype, "size", 2);
6202
6044
  applyMixins(Badge, StartEnd);
6203
6045
 
6204
6046
  Badge.define(definition$B);
@@ -6225,14 +6067,14 @@ function maybeSetAutoFocus(element) {
6225
6067
  }
6226
6068
  }
6227
6069
 
6228
- var __defProp$H = Object.defineProperty;
6229
- var __getOwnPropDesc$H = Object.getOwnPropertyDescriptor;
6230
- var __decorateClass$H = (decorators, target, key, kind) => {
6231
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$H(target, key) : target;
6070
+ var __defProp$u = Object.defineProperty;
6071
+ var __getOwnPropDesc$u = Object.getOwnPropertyDescriptor;
6072
+ var __decorateClass$u = (decorators, target, key, kind) => {
6073
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$u(target, key) : target;
6232
6074
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
6233
6075
  if (decorator = decorators[i])
6234
6076
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
6235
- if (kind && result) __defProp$H(target, key, result);
6077
+ if (kind && result) __defProp$u(target, key, result);
6236
6078
  return result;
6237
6079
  };
6238
6080
  class BaseButton extends FASTElement {
@@ -6458,71 +6300,45 @@ class BaseButton extends FASTElement {
6458
6300
  * @public
6459
6301
  */
6460
6302
  BaseButton.formAssociated = true;
6461
- __decorateClass$H([
6303
+ __decorateClass$u([
6462
6304
  observable
6463
6305
  ], BaseButton.prototype, "defaultSlottedContent", 2);
6464
- __decorateClass$H([
6306
+ __decorateClass$u([
6465
6307
  attr({ mode: "boolean" })
6466
6308
  ], BaseButton.prototype, "disabled", 2);
6467
- __decorateClass$H([
6309
+ __decorateClass$u([
6468
6310
  attr({ attribute: "disabled-focusable", mode: "boolean" })
6469
6311
  ], BaseButton.prototype, "disabledFocusable", 2);
6470
- __decorateClass$H([
6312
+ __decorateClass$u([
6471
6313
  attr({ attribute: "formaction" })
6472
6314
  ], BaseButton.prototype, "formAction", 2);
6473
- __decorateClass$H([
6315
+ __decorateClass$u([
6474
6316
  attr({ attribute: "form" })
6475
6317
  ], BaseButton.prototype, "formAttribute", 2);
6476
- __decorateClass$H([
6318
+ __decorateClass$u([
6477
6319
  attr({ attribute: "formenctype" })
6478
6320
  ], BaseButton.prototype, "formEnctype", 2);
6479
- __decorateClass$H([
6321
+ __decorateClass$u([
6480
6322
  attr({ attribute: "formmethod" })
6481
6323
  ], BaseButton.prototype, "formMethod", 2);
6482
- __decorateClass$H([
6324
+ __decorateClass$u([
6483
6325
  attr({ attribute: "formnovalidate", mode: "boolean" })
6484
6326
  ], BaseButton.prototype, "formNoValidate", 2);
6485
- __decorateClass$H([
6327
+ __decorateClass$u([
6486
6328
  attr({ attribute: "formtarget" })
6487
6329
  ], BaseButton.prototype, "formTarget", 2);
6488
- __decorateClass$H([
6330
+ __decorateClass$u([
6489
6331
  attr
6490
6332
  ], BaseButton.prototype, "name", 2);
6491
- __decorateClass$H([
6333
+ __decorateClass$u([
6492
6334
  attr
6493
6335
  ], BaseButton.prototype, "type", 2);
6494
- __decorateClass$H([
6336
+ __decorateClass$u([
6495
6337
  attr
6496
6338
  ], BaseButton.prototype, "value", 2);
6497
6339
 
6498
- var __defProp$G = Object.defineProperty;
6499
- var __getOwnPropDesc$G = Object.getOwnPropertyDescriptor;
6500
- var __decorateClass$G = (decorators, target, key, kind) => {
6501
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$G(target, key) : target;
6502
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
6503
- if (decorator = decorators[i])
6504
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
6505
- if (kind && result) __defProp$G(target, key, result);
6506
- return result;
6507
- };
6508
6340
  class Button extends BaseButton {
6509
- constructor() {
6510
- super(...arguments);
6511
- this.iconOnly = false;
6512
- }
6513
6341
  }
6514
- __decorateClass$G([
6515
- attr
6516
- ], Button.prototype, "appearance", 2);
6517
- __decorateClass$G([
6518
- attr
6519
- ], Button.prototype, "shape", 2);
6520
- __decorateClass$G([
6521
- attr
6522
- ], Button.prototype, "size", 2);
6523
- __decorateClass$G([
6524
- attr({ attribute: "icon-only", mode: "boolean" })
6525
- ], Button.prototype, "iconOnly", 2);
6526
6342
  applyMixins(Button, StartEnd);
6527
6343
 
6528
6344
  Button.define(definition$A);
@@ -6537,7 +6353,48 @@ const CheckboxSize = {
6537
6353
  };
6538
6354
  const tagName$z = `${FluentDesignSystem.prefix}-checkbox`;
6539
6355
 
6540
- const activeState = stateSelector("active");
6356
+ const AnchorPositioningCSSSupported = CSS.supports("anchor-name: --a");
6357
+ const AnchorPositioningHTMLSupported = "anchor" in HTMLElement.prototype;
6358
+ const CustomStatesSetSupported = CSS.supports("selector(:state(g))");
6359
+
6360
+ const statesMap = /* @__PURE__ */ new Map();
6361
+ function stateSelector(state) {
6362
+ return statesMap.get(state) ?? statesMap.set(state, CustomStatesSetSupported ? `:state(${state})` : `[state--${state}]`).get(state);
6363
+ }
6364
+ function toggleState(elementInternals, state, force) {
6365
+ if (!state || !elementInternals) {
6366
+ return;
6367
+ }
6368
+ if (!CustomStatesSetSupported) {
6369
+ elementInternals.shadowRoot.host.toggleAttribute(`state--${state}`, force);
6370
+ return;
6371
+ }
6372
+ if (force ?? !elementInternals.states.has(state)) {
6373
+ elementInternals.states.add(state);
6374
+ return;
6375
+ }
6376
+ elementInternals.states.delete(state);
6377
+ }
6378
+ const matchingStateMap = /* @__PURE__ */ new WeakMap();
6379
+ function hasMatchingState(States, state) {
6380
+ if (!States || !state) {
6381
+ return false;
6382
+ }
6383
+ if (matchingStateMap.has(States)) {
6384
+ return matchingStateMap.get(States).has(state);
6385
+ }
6386
+ const stateSet = new Set(Object.values(States));
6387
+ matchingStateMap.set(States, stateSet);
6388
+ return stateSet.has(state);
6389
+ }
6390
+ function swapStates(elementInternals, prev = "", next = "", States, prefix = "") {
6391
+ toggleState(elementInternals, `${prefix}${prev}`, false);
6392
+ if (!States || hasMatchingState(States, next)) {
6393
+ toggleState(elementInternals, `${prefix}${next}`, true);
6394
+ }
6395
+ }
6396
+
6397
+ stateSelector("active");
6541
6398
  const badInputState = stateSelector("bad-input");
6542
6399
  const checkedState = stateSelector("checked");
6543
6400
  const customErrorState = stateSelector("custom-error");
@@ -6592,14 +6449,14 @@ const definition$z = {
6592
6449
  template: template$z
6593
6450
  };
6594
6451
 
6595
- var __defProp$F = Object.defineProperty;
6596
- var __getOwnPropDesc$F = Object.getOwnPropertyDescriptor;
6597
- var __decorateClass$F = (decorators, target, key, kind) => {
6598
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$F(target, key) : target;
6452
+ var __defProp$t = Object.defineProperty;
6453
+ var __getOwnPropDesc$t = Object.getOwnPropertyDescriptor;
6454
+ var __decorateClass$t = (decorators, target, key, kind) => {
6455
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$t(target, key) : target;
6599
6456
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
6600
6457
  if (decorator = decorators[i])
6601
6458
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
6602
- if (kind && result) __defProp$F(target, key, result);
6459
+ if (kind && result) __defProp$t(target, key, result);
6603
6460
  return result;
6604
6461
  };
6605
6462
  class BaseCheckbox extends FASTElement {
@@ -6952,36 +6809,36 @@ class BaseCheckbox extends FASTElement {
6952
6809
  * @public
6953
6810
  */
6954
6811
  BaseCheckbox.formAssociated = true;
6955
- __decorateClass$F([
6812
+ __decorateClass$t([
6956
6813
  observable
6957
6814
  ], BaseCheckbox.prototype, "disabled", 2);
6958
- __decorateClass$F([
6815
+ __decorateClass$t([
6959
6816
  attr({ attribute: "disabled", mode: "boolean" })
6960
6817
  ], BaseCheckbox.prototype, "disabledAttribute", 2);
6961
- __decorateClass$F([
6818
+ __decorateClass$t([
6962
6819
  attr({ attribute: "form" })
6963
6820
  ], BaseCheckbox.prototype, "formAttribute", 2);
6964
- __decorateClass$F([
6821
+ __decorateClass$t([
6965
6822
  attr({ attribute: "checked", mode: "boolean" })
6966
6823
  ], BaseCheckbox.prototype, "initialChecked", 2);
6967
- __decorateClass$F([
6824
+ __decorateClass$t([
6968
6825
  attr({ attribute: "value", mode: "fromView" })
6969
6826
  ], BaseCheckbox.prototype, "initialValue", 2);
6970
- __decorateClass$F([
6827
+ __decorateClass$t([
6971
6828
  attr
6972
6829
  ], BaseCheckbox.prototype, "name", 2);
6973
- __decorateClass$F([
6830
+ __decorateClass$t([
6974
6831
  attr({ mode: "boolean" })
6975
6832
  ], BaseCheckbox.prototype, "required", 2);
6976
6833
 
6977
- var __defProp$E = Object.defineProperty;
6978
- var __getOwnPropDesc$E = Object.getOwnPropertyDescriptor;
6979
- var __decorateClass$E = (decorators, target, key, kind) => {
6980
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$E(target, key) : target;
6834
+ var __defProp$s = Object.defineProperty;
6835
+ var __getOwnPropDesc$s = Object.getOwnPropertyDescriptor;
6836
+ var __decorateClass$s = (decorators, target, key, kind) => {
6837
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$s(target, key) : target;
6981
6838
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
6982
6839
  if (decorator = decorators[i])
6983
6840
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
6984
- if (kind && result) __defProp$E(target, key, result);
6841
+ if (kind && result) __defProp$s(target, key, result);
6985
6842
  return result;
6986
6843
  };
6987
6844
  class Checkbox extends BaseCheckbox {
@@ -7024,15 +6881,9 @@ class Checkbox extends BaseCheckbox {
7024
6881
  super.toggleChecked(force);
7025
6882
  }
7026
6883
  }
7027
- __decorateClass$E([
6884
+ __decorateClass$s([
7028
6885
  observable
7029
6886
  ], Checkbox.prototype, "indeterminate", 2);
7030
- __decorateClass$E([
7031
- attr
7032
- ], Checkbox.prototype, "shape", 2);
7033
- __decorateClass$E([
7034
- attr
7035
- ], Checkbox.prototype, "size", 2);
7036
6887
 
7037
6888
  Checkbox.define(definition$z);
7038
6889
 
@@ -7102,14 +6953,14 @@ const definition$x = {
7102
6953
  template: template$x
7103
6954
  };
7104
6955
 
7105
- var __defProp$D = Object.defineProperty;
7106
- var __getOwnPropDesc$D = Object.getOwnPropertyDescriptor;
7107
- var __decorateClass$D = (decorators, target, key, kind) => {
7108
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$D(target, key) : target;
6956
+ var __defProp$r = Object.defineProperty;
6957
+ var __getOwnPropDesc$r = Object.getOwnPropertyDescriptor;
6958
+ var __decorateClass$r = (decorators, target, key, kind) => {
6959
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$r(target, key) : target;
7109
6960
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
7110
6961
  if (decorator = decorators[i])
7111
6962
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
7112
- if (kind && result) __defProp$D(target, key, result);
6963
+ if (kind && result) __defProp$r(target, key, result);
7113
6964
  return result;
7114
6965
  };
7115
6966
  class BaseCounterBadge extends FASTElement {
@@ -7137,44 +6988,44 @@ class BaseCounterBadge extends FASTElement {
7137
6988
  return `${count}`;
7138
6989
  }
7139
6990
  }
7140
- __decorateClass$D([
6991
+ __decorateClass$r([
7141
6992
  attr({ converter: nullableNumberConverter })
7142
6993
  ], BaseCounterBadge.prototype, "count", 2);
7143
- __decorateClass$D([
6994
+ __decorateClass$r([
7144
6995
  attr({ attribute: "overflow-count", converter: nullableNumberConverter })
7145
6996
  ], BaseCounterBadge.prototype, "overflowCount", 2);
7146
- __decorateClass$D([
6997
+ __decorateClass$r([
7147
6998
  attr({ attribute: "show-zero", mode: "boolean" })
7148
6999
  ], BaseCounterBadge.prototype, "showZero", 2);
7149
- __decorateClass$D([
7000
+ __decorateClass$r([
7150
7001
  attr({ mode: "boolean" })
7151
7002
  ], BaseCounterBadge.prototype, "dot", 2);
7152
- __decorateClass$D([
7003
+ __decorateClass$r([
7153
7004
  volatile
7154
7005
  ], BaseCounterBadge.prototype, "displayValue", 1);
7155
7006
 
7156
- var __defProp$C = Object.defineProperty;
7157
- var __getOwnPropDesc$C = Object.getOwnPropertyDescriptor;
7158
- var __decorateClass$C = (decorators, target, key, kind) => {
7159
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$C(target, key) : target;
7007
+ var __defProp$q = Object.defineProperty;
7008
+ var __getOwnPropDesc$q = Object.getOwnPropertyDescriptor;
7009
+ var __decorateClass$q = (decorators, target, key, kind) => {
7010
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$q(target, key) : target;
7160
7011
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
7161
7012
  if (decorator = decorators[i])
7162
7013
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
7163
- if (kind && result) __defProp$C(target, key, result);
7014
+ if (kind && result) __defProp$q(target, key, result);
7164
7015
  return result;
7165
7016
  };
7166
7017
  class CounterBadge extends BaseCounterBadge {
7167
7018
  }
7168
- __decorateClass$C([
7019
+ __decorateClass$q([
7169
7020
  attr
7170
7021
  ], CounterBadge.prototype, "appearance", 2);
7171
- __decorateClass$C([
7022
+ __decorateClass$q([
7172
7023
  attr
7173
7024
  ], CounterBadge.prototype, "color", 2);
7174
- __decorateClass$C([
7025
+ __decorateClass$q([
7175
7026
  attr
7176
7027
  ], CounterBadge.prototype, "shape", 2);
7177
- __decorateClass$C([
7028
+ __decorateClass$q([
7178
7029
  attr
7179
7030
  ], CounterBadge.prototype, "size", 2);
7180
7031
  applyMixins(CounterBadge, StartEnd);
@@ -7205,14 +7056,14 @@ const definition$w = {
7205
7056
  template: template$w
7206
7057
  };
7207
7058
 
7208
- var __defProp$B = Object.defineProperty;
7209
- var __getOwnPropDesc$B = Object.getOwnPropertyDescriptor;
7210
- var __decorateClass$B = (decorators, target, key, kind) => {
7211
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$B(target, key) : target;
7059
+ var __defProp$p = Object.defineProperty;
7060
+ var __getOwnPropDesc$p = Object.getOwnPropertyDescriptor;
7061
+ var __decorateClass$p = (decorators, target, key, kind) => {
7062
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$p(target, key) : target;
7212
7063
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
7213
7064
  if (decorator = decorators[i])
7214
7065
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
7215
- if (kind && result) __defProp$B(target, key, result);
7066
+ if (kind && result) __defProp$p(target, key, result);
7216
7067
  return result;
7217
7068
  };
7218
7069
  class Dialog extends FASTElement {
@@ -7315,34 +7166,34 @@ class Dialog extends FASTElement {
7315
7166
  return true;
7316
7167
  }
7317
7168
  }
7318
- __decorateClass$B([
7169
+ __decorateClass$p([
7319
7170
  observable
7320
7171
  ], Dialog.prototype, "dialog", 2);
7321
- __decorateClass$B([
7172
+ __decorateClass$p([
7322
7173
  attr({ attribute: "aria-describedby" })
7323
7174
  ], Dialog.prototype, "ariaDescribedby", 2);
7324
- __decorateClass$B([
7175
+ __decorateClass$p([
7325
7176
  attr({ attribute: "aria-labelledby" })
7326
7177
  ], Dialog.prototype, "ariaLabelledby", 2);
7327
- __decorateClass$B([
7178
+ __decorateClass$p([
7328
7179
  attr({ attribute: "aria-label" })
7329
7180
  ], Dialog.prototype, "ariaLabel", 2);
7330
- __decorateClass$B([
7181
+ __decorateClass$p([
7331
7182
  attr
7332
7183
  ], Dialog.prototype, "type", 2);
7333
- __decorateClass$B([
7184
+ __decorateClass$p([
7334
7185
  volatile
7335
7186
  ], Dialog.prototype, "dialogDescribedby", 1);
7336
- __decorateClass$B([
7187
+ __decorateClass$p([
7337
7188
  volatile
7338
7189
  ], Dialog.prototype, "dialogLabel", 1);
7339
- __decorateClass$B([
7190
+ __decorateClass$p([
7340
7191
  volatile
7341
7192
  ], Dialog.prototype, "dialogLabelledby", 1);
7342
- __decorateClass$B([
7193
+ __decorateClass$p([
7343
7194
  volatile
7344
7195
  ], Dialog.prototype, "dialogModal", 1);
7345
- __decorateClass$B([
7196
+ __decorateClass$p([
7346
7197
  volatile
7347
7198
  ], Dialog.prototype, "dialogRole", 1);
7348
7199
 
@@ -7409,7 +7260,7 @@ const DividerAppearance = {
7409
7260
  };
7410
7261
  const tagName$u = `${FluentDesignSystem.prefix}-divider`;
7411
7262
 
7412
- const styles$u = css`${display("flex")} :host{contain:content}:host::after,:host::before{align-self:center;background:${colorNeutralStroke2};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${strokeWidthThin}}:host([inset]){padding:0 12px}:host ::slotted(*){color:${colorNeutralForeground2};font-family:${fontFamilyBase};font-size:${fontSizeBase200};font-weight:${fontWeightRegular};margin:0;padding:0 12px}:host([align-content='start'])::before,:host([align-content='end'])::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host([orientation='vertical']){align-items:center;flex-direction:column;height:100%;min-height:84px}:host([orientation='vertical']):empty{min-height:20px}:host([orientation='vertical'][inset])::before{margin-top:12px}:host([orientation='vertical'][inset])::after{margin-bottom:12px}:host([orientation='vertical']):empty::before,:host([orientation='vertical']):empty::after{height:10px;min-height:10px;flex-grow:0}:host([orientation='vertical'])::before,:host([orientation='vertical'])::after{width:${strokeWidthThin};min-height:20px;height:100%}:host([orientation='vertical']) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host([orientation='vertical'][align-content='start'])::before{min-height:8px}:host([orientation='vertical'][align-content='end'])::after{min-height:8px}:host([appearance='strong'])::before,:host([appearance='strong'])::after{background:${colorNeutralStroke1}}:host([appearance='strong']) ::slotted(*){color:${colorNeutralForeground1}}:host([appearance='brand'])::before,:host([appearance='brand'])::after{background:${colorBrandStroke1}}:host([appearance='brand']) ::slotted(*){color:${colorBrandForeground1}}:host([appearance='subtle'])::before,:host([appearance='subtle'])::after{background:${colorNeutralStroke3}}:host([appearance='subtle']) ::slotted(*){color:${colorNeutralForeground3}}@media (forced-colors:active){:host([appearance='strong'])::before,:host([appearance='strong'])::after,:host([appearance='brand'])::before,:host([appearance='brand'])::after,:host([appearance='subtle'])::before,:host([appearance='subtle'])::after,:host::after,:host::before{background:WindowText;color:WindowText}}`;
7263
+ const styles$u = css`${display("flex")} :host{--_vertical-min-height:10px;contain:content}:host::after,:host::before{align-self:center;background:${colorNeutralStroke2};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${strokeWidthThin}}:host([inset]){padding:0 12px}:host ::slotted(*){color:${colorNeutralForeground2};font-family:${fontFamilyBase};font-size:${fontSizeBase200};font-weight:${fontWeightRegular};margin:0;padding:0 12px}:host([align-content='start'])::before,:host([align-content='end'])::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host([orientation='vertical']){align-items:center;flex-direction:column;height:100%}:host([orientation='vertical'][inset])::before{margin-top:12px}:host([orientation='vertical'][inset])::after{margin-bottom:12px}:host([orientation='vertical'])::before,:host([orientation='vertical'])::after{width:${strokeWidthThin};min-height:var(--_vertical-min-height);height:100%}@supports not selector(:host(:has(*))){@scope{:scope:has(*){--_vertical-min-height:20px}}}:host(:has(*)){--_vertical-min-height:20px}:host([orientation='vertical']) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host([orientation='vertical'][align-content='start'])::before{min-height:8px}:host([orientation='vertical'][align-content='end'])::after{min-height:8px}:host([appearance='strong'])::before,:host([appearance='strong'])::after{background:${colorNeutralStroke1}}:host([appearance='strong']) ::slotted(*){color:${colorNeutralForeground1}}:host([appearance='brand'])::before,:host([appearance='brand'])::after{background:${colorBrandStroke1}}:host([appearance='brand']) ::slotted(*){color:${colorBrandForeground1}}:host([appearance='subtle'])::before,:host([appearance='subtle'])::after{background:${colorNeutralStroke3}}:host([appearance='subtle']) ::slotted(*){color:${colorNeutralForeground3}}@media (forced-colors:active){:host([appearance='strong'])::before,:host([appearance='strong'])::after,:host([appearance='brand'])::before,:host([appearance='brand'])::after,:host([appearance='subtle'])::before,:host([appearance='subtle'])::after,:host::after,:host::before{background:WindowText;color:WindowText}}`;
7413
7264
 
7414
7265
  function dividerTemplate() {
7415
7266
  return html`<slot></slot>`;
@@ -7423,14 +7274,14 @@ const definition$u = {
7423
7274
  template: template$u
7424
7275
  };
7425
7276
 
7426
- var __defProp$A = Object.defineProperty;
7427
- var __getOwnPropDesc$A = Object.getOwnPropertyDescriptor;
7428
- var __decorateClass$A = (decorators, target, key, kind) => {
7429
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$A(target, key) : target;
7277
+ var __defProp$o = Object.defineProperty;
7278
+ var __getOwnPropDesc$o = Object.getOwnPropertyDescriptor;
7279
+ var __decorateClass$o = (decorators, target, key, kind) => {
7280
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$o(target, key) : target;
7430
7281
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
7431
7282
  if (decorator = decorators[i])
7432
7283
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
7433
- if (kind && result) __defProp$A(target, key, result);
7284
+ if (kind && result) __defProp$o(target, key, result);
7434
7285
  return result;
7435
7286
  };
7436
7287
  class BaseDivider extends FASTElement {
@@ -7477,34 +7328,15 @@ class BaseDivider extends FASTElement {
7477
7328
  swapStates(this.elementInternals, previous, next, DividerOrientation);
7478
7329
  }
7479
7330
  }
7480
- __decorateClass$A([
7331
+ __decorateClass$o([
7481
7332
  attr
7482
7333
  ], BaseDivider.prototype, "role", 2);
7483
- __decorateClass$A([
7334
+ __decorateClass$o([
7484
7335
  attr
7485
7336
  ], BaseDivider.prototype, "orientation", 2);
7486
7337
 
7487
- var __defProp$z = Object.defineProperty;
7488
- var __getOwnPropDesc$z = Object.getOwnPropertyDescriptor;
7489
- var __decorateClass$z = (decorators, target, key, kind) => {
7490
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$z(target, key) : target;
7491
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
7492
- if (decorator = decorators[i])
7493
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
7494
- if (kind && result) __defProp$z(target, key, result);
7495
- return result;
7496
- };
7497
7338
  class Divider extends BaseDivider {
7498
7339
  }
7499
- __decorateClass$z([
7500
- attr({ attribute: "align-content" })
7501
- ], Divider.prototype, "alignContent", 2);
7502
- __decorateClass$z([
7503
- attr
7504
- ], Divider.prototype, "appearance", 2);
7505
- __decorateClass$z([
7506
- attr({ mode: "boolean" })
7507
- ], Divider.prototype, "inset", 2);
7508
7340
 
7509
7341
  Divider.define(definition$u);
7510
7342
 
@@ -7528,7 +7360,7 @@ const tagName$t = `${FluentDesignSystem.prefix}-drawer`;
7528
7360
  const styles$t = css`${display("block")} :host{--dialog-backdrop:${colorBackgroundOverlay}}:host([type='non-modal']) dialog[open]::backdrop{display:none}:host([type='non-modal']) dialog{position:fixed;top:0;bottom:0}:host([type='inline']){height:100%;width:fit-content}:host([type='inline']) dialog[open]{box-shadow:none;position:relative}:host([size='small']) dialog{width:320px;max-width:320px}:host([size='large']) dialog{width:940px;max-width:940px}:host([size='full']) dialog{width:100%;max-width:100%}:host([position='end']) dialog{margin-inline-start:auto;margin-inline-end:0}dialog{background:${colorNeutralBackground1};border-radius:0;border:${strokeWidthThin} solid ${colorTransparentStroke};border-inline-end-color:${colorTransparentStroke};border-inline-start-color:var(--drawer-separator,${colorTransparentStroke});box-shadow:${shadow64};box-sizing:border-box;color:${colorNeutralForeground1};font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};height:100%;line-height:${lineHeightBase300};margin-inline-end:auto;margin-inline-start:0;max-height:100vh;max-width:calc(100vw - ${spacingHorizontalXXL});outline:none;padding:0;bottom:0;top:0;width:var(--drawer-width,592px);z-index:var(--drawer-elevation,1000)}dialog::backdrop{background:var(--dialog-backdrop)}@layer animations{@media (prefers-reduced-motion:no-preference){dialog{transition:display allow-discrete,opacity,overlay allow-discrete,transform;transition-duration:${durationGentle};transition-timing-function:${curveDecelerateMid}}:host dialog:not([open]){transform:translateX(-100%);transition-timing-function:${curveAccelerateMid}}:host([position='end']) dialog:not([open]){transform:translateX(100%);transition-timing-function:${curveAccelerateMid}}dialog[open]{transform:translateX(0)}dialog::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${durationGentle};transition-timing-function:${curveDecelerateMid};background:var(--dialog-backdrop,${colorBackgroundOverlay});opacity:0}dialog[open]::backdrop{opacity:1}dialog::backdrop{transition-timing-function:${curveLinear}}}@starting-style{dialog[open]{transform:translateX(-100%)}:host([position='end']) dialog[open]{transform:translateX(100%)}dialog[open]::backdrop{opacity:0}}}`;
7529
7361
 
7530
7362
  function drawerTemplate() {
7531
- return html`<dialog class=dialog part=dialog aria-describedby=${(x) => x.dialogDescribedby} aria-labelledby=${(x) => x.dialogLabelledby} aria-label=${(x) => x.dialogLabel} aria-modal=${(x) => x.dialogModal} role=${(x) => x.dialogRole} size=${(x) => x.size} position=${(x) => x.position} @click=${(x, c) => x.clickHandler(c.event)} @cancel=${(x) => x.cancelHandler()} ${ref("dialog")}><slot></slot></dialog>`;
7363
+ return html`<dialog class=dialog part=dialog aria-describedby=${(x) => x.dialogDescribedby} aria-labelledby=${(x) => x.dialogLabelledby} aria-label=${(x) => x.dialogLabel} aria-modal=${(x) => x.dialogModal} role=${(x) => x.dialogRole} @click=${(x, c) => x.clickHandler(c.event)} @cancel=${(x) => x.cancelHandler()} ${ref("dialog")}><slot></slot></dialog>`;
7532
7364
  }
7533
7365
  const template$t = drawerTemplate();
7534
7366
 
@@ -7539,21 +7371,19 @@ const definition$t = {
7539
7371
  template: template$t
7540
7372
  };
7541
7373
 
7542
- var __defProp$y = Object.defineProperty;
7543
- var __getOwnPropDesc$y = Object.getOwnPropertyDescriptor;
7544
- var __decorateClass$y = (decorators, target, key, kind) => {
7545
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$y(target, key) : target;
7374
+ var __defProp$n = Object.defineProperty;
7375
+ var __getOwnPropDesc$n = Object.getOwnPropertyDescriptor;
7376
+ var __decorateClass$n = (decorators, target, key, kind) => {
7377
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$n(target, key) : target;
7546
7378
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
7547
7379
  if (decorator = decorators[i])
7548
7380
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
7549
- if (kind && result) __defProp$y(target, key, result);
7381
+ if (kind && result) __defProp$n(target, key, result);
7550
7382
  return result;
7551
7383
  };
7552
7384
  class Drawer extends FASTElement {
7553
7385
  constructor() {
7554
7386
  super(...arguments);
7555
- this.position = DrawerPosition.start;
7556
- this.size = DrawerSize.medium;
7557
7387
  /**
7558
7388
  * Method to emit an event after the dialog's open state changes
7559
7389
  * HTML spec proposal: https://github.com/whatwg/html/issues/9733
@@ -7659,40 +7489,34 @@ class Drawer extends FASTElement {
7659
7489
  this.hide();
7660
7490
  }
7661
7491
  }
7662
- __decorateClass$y([
7492
+ __decorateClass$n([
7663
7493
  attr
7664
7494
  ], Drawer.prototype, "type", 2);
7665
- __decorateClass$y([
7495
+ __decorateClass$n([
7666
7496
  attr({ attribute: "aria-labelledby" })
7667
7497
  ], Drawer.prototype, "ariaLabelledby", 2);
7668
- __decorateClass$y([
7498
+ __decorateClass$n([
7669
7499
  attr({ attribute: "aria-describedby" })
7670
7500
  ], Drawer.prototype, "ariaDescribedby", 2);
7671
- __decorateClass$y([
7672
- attr
7673
- ], Drawer.prototype, "position", 2);
7674
- __decorateClass$y([
7501
+ __decorateClass$n([
7675
7502
  observable
7676
7503
  ], Drawer.prototype, "role", 2);
7677
- __decorateClass$y([
7678
- attr({ attribute: "size" })
7679
- ], Drawer.prototype, "size", 2);
7680
- __decorateClass$y([
7504
+ __decorateClass$n([
7681
7505
  observable
7682
7506
  ], Drawer.prototype, "dialog", 2);
7683
- __decorateClass$y([
7507
+ __decorateClass$n([
7684
7508
  volatile
7685
7509
  ], Drawer.prototype, "dialogDescribedby", 1);
7686
- __decorateClass$y([
7510
+ __decorateClass$n([
7687
7511
  volatile
7688
7512
  ], Drawer.prototype, "dialogLabel", 1);
7689
- __decorateClass$y([
7513
+ __decorateClass$n([
7690
7514
  volatile
7691
7515
  ], Drawer.prototype, "dialogLabelledby", 1);
7692
- __decorateClass$y([
7516
+ __decorateClass$n([
7693
7517
  volatile
7694
7518
  ], Drawer.prototype, "dialogModal", 1);
7695
- __decorateClass$y([
7519
+ __decorateClass$n([
7696
7520
  volatile
7697
7521
  ], Drawer.prototype, "dialogRole", 1);
7698
7522
 
@@ -7776,10 +7600,10 @@ const DropdownType = {
7776
7600
  };
7777
7601
  const tagName$r = `${FluentDesignSystem.prefix}-dropdown`;
7778
7602
 
7779
- const styles$r = css`${display("inline-flex")} :host{box-sizing:border-box;color:${colorNeutralForeground1};cursor:pointer}:host(${placeholderShownState}){color:${colorNeutralForeground4}}.control{appearance:none;background-color:${colorNeutralBackground1};border-radius:${borderRadiusMedium};border:${strokeWidthThin} solid ${colorTransparentStroke};box-shadow:inset 0 0 0 ${strokeWidthThin} var(--control-border-color);box-sizing:border-box;color:inherit;column-gap:${spacingHorizontalXXS};display:inline-flex;justify-content:space-between;min-width:160px;overflow:hidden;padding:${spacingVerticalSNudge} ${spacingHorizontalMNudge};white-space:normal;position:relative;text-align:start;width:100%;z-index:1;${typographyBody1Styles}}:host([size='small']) .control{column-gap:${spacingHorizontalXXS};padding:${spacingVerticalXS} ${spacingHorizontalSNudge};${typographyCaption1Styles}}:host([size='large']) .control{column-gap:${spacingHorizontalS};padding:${spacingVerticalS} ${spacingHorizontalM};${typographyBody2Styles}}::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:${colorNeutralForeground3};display:inline-flex;justify-content:center;width:20px}:host([size='small']) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){width:16px}:host([size='large']) :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:${strokeWidthThin}}.control::after{background-color:${colorCompoundBrandStroke};height:${strokeWidthThick};scale:0 1;transition:scale ${durationUltraFast} ${curveDecelerateMid}}:host(:where(:focus-within)) .control{border-radius:${borderRadiusMedium};box-shadow:inset 0 0 0 1px ${colorStrokeFocus1};outline:${strokeWidthThick} solid ${colorStrokeFocus2}}:host(:where(${openState},:focus-within)) .control::after{scale:1 1;transition-duration:${durationNormal};transition-timing-function:${curveAccelerateMid}}:host(:where([appearance='outline'],[appearance='transparent'])) .control::before{background-color:${colorNeutralStrokeAccessible}}:host([appearance='transparent']) .control{--control-border-color:${colorTransparentStrokeInteractive};background-color:${colorTransparentBackground};border-radius:${borderRadiusNone}}:host([appearance='outline']) .control{--control-border-color:${colorNeutralStroke1}}:host([appearance='outline']) .control:hover{--control-border-color:${colorNeutralStroke1Hover}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:hover::before{background-color:${colorNeutralStrokeAccessibleHover}}:host([appearance='outline']) .control:hover::after{background-color:${colorCompoundBrandBackgroundHover}}:host([appearance='outline']) .control:active{--control-border-color:${colorNeutralStroke1Pressed}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::before{background-color:${colorNeutralStrokeAccessiblePressed}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::after{background-color:${colorCompoundBrandBackgroundPressed}}:host([appearance='filled-darker']) .control{background-color:${colorNeutralBackground3}}:host(:where([appearance='filled-lighter'],[appearance='filled-darker'])) .control{--control-border-color:${colorTransparentStroke}}:host(${nativeDisabledState}),:host(${nativeDisabledState}) ::slotted(:where(button,input)){cursor:not-allowed}:host(${nativeDisabledState}) .control::before,:host(${nativeDisabledState}) .control::after{content:none}:host(${nativeDisabledState}) .control:is(*,:active,:hover),:host(${nativeDisabledState}) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){--control-border-color:${colorNeutralStrokeDisabled};background-color:${colorNeutralBackgroundDisabled};color:${colorNeutralForegroundDisabled}}::slotted(:not([slot]):not([popover])),::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--anchor){:host{--listbox-max-height:50vh;--margin-offset:calc(${lineHeightBase300} + (${spacingVerticalSNudge} * 2) + ${strokeWidthThin})}:host([size='small']){--margin-offset:calc(${lineHeightBase200} + (${spacingVerticalXS} * 2) + ${strokeWidthThin})}:host([size='large']){--margin-offset:calc(${lineHeightBase400} + (${spacingVerticalS} * 2) + ${strokeWidthThin})}}@media (forced-colors:active){:host(${nativeDisabledState}) .control{border-color:GrayText}:host(${nativeDisabledState}) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){color:GrayText}}`;
7603
+ const styles$r = css`${display("inline-flex")} :host{--_indicator-size:20px;--_placeholder-color:${colorNeutralForeground4};--_initial-display:attr(initial-display raw-string,attr(placeholder raw-string,none));box-sizing:border-box;color:${colorNeutralForeground1};cursor:pointer}:host(${placeholderShownState}){color:var(--_placeholder-color)}.control{--control-border-color:${colorNeutralStroke1};appearance:none;background-color:${colorNeutralBackground1};border-radius:${borderRadiusMedium};border:${strokeWidthThin} solid ${colorTransparentStroke};box-shadow:inset 0 0 0 ${strokeWidthThin} var(--control-border-color);box-sizing:border-box;color:inherit;column-gap:${spacingHorizontalXXS};display:inline-grid;grid-template-columns:1fr var(--_indicator-size);justify-content:space-between;min-width:160px;overflow:hidden;padding:${spacingVerticalSNudge} ${spacingHorizontalMNudge};white-space:normal;position:relative;text-align:start;width:100%;z-index:1;${typographyBody1Styles}}:host([size='small']) .control{column-gap:${spacingHorizontalXXS};padding:${spacingVerticalXS} ${spacingHorizontalSNudge};${typographyCaption1Styles}}:host([size='large']) .control{column-gap:${spacingHorizontalS};padding:${spacingVerticalS} ${spacingHorizontalM};${typographyBody2Styles}}:host(:not(:has([slot='control']))) slot[name='control']::before{content:var(--_initial-display)}@scope{:scope:not(:has([slot='control'])) slot[name='control']::before{content:var(--_initial-display)}}:host(:is(:not([value]),[value=''])) slot[name='control']::before{color:var(--_placeholder-color)}::slotted(:is(input,button)){all:unset}slot[name='control']::before,::slotted(:is(input,button)){grid-area:1/1}::slotted(button){cursor:pointer}::slotted(input){cursor:text;min-width:0;width:100%}::slotted(input)::placeholder{color:var(--_placeholder-color)}:where(slot[name='indicator']>*,::slotted([slot='indicator'])){all:unset;align-items:center;appearance:none;aspect-ratio:1;color:${colorNeutralForeground3};display:inline-flex;grid-area:1/2;justify-content:center;width:var(--_indicator-size)}:host([size='small']) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){--_indicator-size:16px}:host([size='large']) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){--_indicator-size:24px}.control::after,.control::before{content:''/'';inset:auto 0 0;pointer-events:none;position:absolute}.control::before{background-color:${colorNeutralStrokeAccessible};height:${strokeWidthThin}}.control::after{background-color:${colorCompoundBrandStroke};height:${strokeWidthThick};scale:0 1;transition:scale ${durationUltraFast} ${curveDecelerateMid}}:host(:where(:focus-within)) .control{border-radius:${borderRadiusMedium};box-shadow:inset 0 0 0 1px ${colorStrokeFocus1};outline:${strokeWidthThick} solid ${colorStrokeFocus2}}:host(:where(${openState},:focus-within)) .control::after{scale:1 1;transition-duration:${durationNormal};transition-timing-function:${curveAccelerateMid}}:host([appearance='transparent']) .control{--control-border-color:${colorTransparentStrokeInteractive};background-color:${colorTransparentBackground};border-radius:${borderRadiusNone}}.control:hover{--control-border-color:${colorNeutralStroke1Hover}}.control:hover::before{background-color:${colorNeutralStrokeAccessibleHover}}.control:hover::after{background-color:${colorCompoundBrandBackgroundHover}}.control:active{--control-border-color:${colorNeutralStroke1Pressed}}.control:active::before{background-color:${colorNeutralStrokeAccessiblePressed}}.control:active::after{background-color:${colorCompoundBrandBackgroundPressed}}:host([appearance='transparent']) .control:is(:hover,:active){--control-border-color:${colorTransparentStrokeInteractive}}:host([appearance='transparent']) .control:hover::after{background-color:${colorCompoundBrandStroke}}:host([appearance='filled-darker']) .control{background-color:${colorNeutralBackground3}}:host(:where([appearance='filled-lighter'],[appearance='filled-darker'])) .control{--control-border-color:${colorTransparentStroke}}:host(:where([appearance='filled-lighter'],[appearance='filled-darker'])) .control:is(:hover,:active){--control-border-color:${colorTransparentStroke}}:host(:where([appearance='filled-lighter'],[appearance='filled-darker'])) .control::before{background-color:initial}:host(:where([appearance='filled-lighter'],[appearance='filled-darker'])) .control:is(:hover,:active)::after{background-color:${colorCompoundBrandStroke}}:host(${nativeDisabledState}),:host(${nativeDisabledState}) ::slotted(:where(button,input)){cursor:not-allowed}:host(${nativeDisabledState}) .control::before,:host(${nativeDisabledState}) .control::after{content:none}:host(${nativeDisabledState}) .control:is(*,:active,:hover),:host(${nativeDisabledState}) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){--control-border-color:${colorNeutralStrokeDisabled};background-color:${colorNeutralBackgroundDisabled};color:${colorNeutralForegroundDisabled}}::slotted(:not([slot]):not([popover])),::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--anchor){:host{--listbox-max-height:50vh;--margin-offset:calc(${lineHeightBase300} + (${spacingVerticalSNudge} * 2) + ${strokeWidthThin})}:host([size='small']){--margin-offset:calc(${lineHeightBase200} + (${spacingVerticalXS} * 2) + ${strokeWidthThin})}:host([size='large']){--margin-offset:calc(${lineHeightBase400} + (${spacingVerticalS} * 2) + ${strokeWidthThin})}}@media (forced-colors:active){:host(${nativeDisabledState}) .control{border-color:GrayText}:host(${nativeDisabledState}) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){color:GrayText}}`;
7780
7604
 
7781
7605
  const dropdownIndicatorTemplate = html`<svg class=chevron-down-20-regular aria-hidden=true slot=indicator viewBox="0 0 20 20" ${ref("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>`;
7782
- const dropdownInputTemplate = html`<input @input=${(x, c) => x.inputHandler(c.event)} @change=${(x, c) => x.changeHandler(c.event)} aria-activedescendant=${(x) => x.activeDescendant} aria-controls=${(x) => x.listbox?.id ?? null} aria-labelledby=${(x) => x.ariaLabelledBy} aria-expanded=${(x) => x.open} aria-haspopup=listbox placeholder=${(x) => x.placeholder} role=combobox ?disabled=${(x) => x.disabled} type=${(x) => x.type} value=${(x) => x.valueAttribute} slot=control ${ref("control")}>`;
7606
+ const dropdownInputTemplate = html`<input @input=${(x, c) => x.inputHandler(c.event)} @change=${(x, c) => x.changeHandler(c.event)} aria-activedescendant=${(x) => x.activeDescendant} aria-controls=${(x) => x.listbox?.id ?? null} aria-labelledby=${(x) => x.ariaLabelledBy} aria-expanded=${(x) => x.open} aria-haspopup=listbox size=1 placeholder=${(x) => x.placeholder} role=combobox ?disabled=${(x) => x.disabled} value=${(x) => x.initialValue} slot=control ${ref("control")}>`;
7783
7607
  const dropdownButtonTemplate = html`<button aria-activedescendant=${(x) => x.activeDescendant} aria-controls=${(x) => x.listbox?.id ?? null} aria-expanded=${(x) => x.open} aria-haspopup=listbox role=combobox ?disabled=${(x) => x.disabled} type=button slot=control ${ref("control")}>${(x) => x.displayValue}</button>`;
7784
7608
  function dropdownTemplate(options = {}) {
7785
7609
  return html`<template @click=${(x, c) => x.clickHandler(c.event)} @focusout=${(x, c) => x.focusoutHandler(c.event)} @keydown=${(x, c) => x.keydownHandler(c.event)} @mousedown=${(x, c) => x.mousedownHandler(c.event)}><div class=control><slot name=control ${ref("controlSlot")}></slot><slot name=indicator ${ref("indicatorSlot")}>${staticallyCompose(options.indicator)}</slot></div><slot @slotchange=${(x, c) => x.slotchangeHandler(c.event)}></slot></template>`;
@@ -7829,14 +7653,14 @@ function uniqueId(prefix = "id-") {
7829
7653
  return document.getElementById(str) ? uniqueId(prefix) : str;
7830
7654
  }
7831
7655
 
7832
- var __defProp$x = Object.defineProperty;
7833
- var __getOwnPropDesc$x = Object.getOwnPropertyDescriptor;
7834
- var __decorateClass$x = (decorators, target, key, kind) => {
7835
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$x(target, key) : target;
7656
+ var __defProp$m = Object.defineProperty;
7657
+ var __getOwnPropDesc$m = Object.getOwnPropertyDescriptor;
7658
+ var __decorateClass$m = (decorators, target, key, kind) => {
7659
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$m(target, key) : target;
7836
7660
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
7837
7661
  if (decorator = decorators[i])
7838
7662
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
7839
- if (kind && result) __defProp$x(target, key, result);
7663
+ if (kind && result) __defProp$m(target, key, result);
7840
7664
  return result;
7841
7665
  };
7842
7666
  const _BaseDropdown = class _BaseDropdown extends FASTElement {
@@ -7846,7 +7670,6 @@ const _BaseDropdown = class _BaseDropdown extends FASTElement {
7846
7670
  this.id = uniqueId("dropdown-");
7847
7671
  this.required = false;
7848
7672
  this.type = DropdownType.dropdown;
7849
- this.valueAttribute = "";
7850
7673
  /**
7851
7674
  * Repositions the listbox to align with the control element. Used when the browser does not support CSS anchor
7852
7675
  * positioning.
@@ -7912,7 +7735,7 @@ const _BaseDropdown = class _BaseDropdown extends FASTElement {
7912
7735
  if (typeof next === "number") {
7913
7736
  const optionIndex = this.matches(":has(:focus-visible)") ? next : -1;
7914
7737
  this.enabledOptions.forEach((option, index) => {
7915
- option.active = index === optionIndex;
7738
+ option.toggleAttribute("active", index === optionIndex);
7916
7739
  });
7917
7740
  if (this.open) {
7918
7741
  this.enabledOptions[optionIndex]?.scrollIntoView({ block: "nearest" });
@@ -7996,7 +7819,7 @@ const _BaseDropdown = class _BaseDropdown extends FASTElement {
7996
7819
  this.setValidity();
7997
7820
  });
7998
7821
  if (AnchorPositioningCSSSupported) {
7999
- const anchorName = uniqueId("--dropdown-anchor-");
7822
+ const anchorName = this.style.getPropertyValue("anchor-name") || uniqueId("--dropdown-anchor-");
8000
7823
  this.style.setProperty("anchor-name", anchorName);
8001
7824
  this.listbox.style.setProperty("position-anchor", anchorName);
8002
7825
  }
@@ -8610,6 +8433,13 @@ const _BaseDropdown = class _BaseDropdown extends FASTElement {
8610
8433
  }
8611
8434
  }
8612
8435
  };
8436
+ /**
8437
+ * The element identity. This static property should NOT be overridden by subclasses. It’s designed to provide an
8438
+ * unambiguous name for the custom element and its subclass custom elements, regardless of their tag names.
8439
+ * @readonly
8440
+ * @internal
8441
+ */
8442
+ _BaseDropdown.elementIdentity = "dropdown";
8613
8443
  /**
8614
8444
  * The form-associated flag.
8615
8445
  * @see {@link https://html.spec.whatwg.org/multipage/custom-elements.html#custom-elements-face-example | Form-associated custom elements}
@@ -8617,84 +8447,61 @@ const _BaseDropdown = class _BaseDropdown extends FASTElement {
8617
8447
  * @public
8618
8448
  */
8619
8449
  _BaseDropdown.formAssociated = true;
8620
- __decorateClass$x([
8450
+ __decorateClass$m([
8621
8451
  volatile
8622
8452
  ], _BaseDropdown.prototype, "activeDescendant", 1);
8623
- __decorateClass$x([
8453
+ __decorateClass$m([
8624
8454
  observable
8625
8455
  ], _BaseDropdown.prototype, "activeIndex", 2);
8626
- __decorateClass$x([
8456
+ __decorateClass$m([
8627
8457
  attr({ attribute: "aria-labelledby", mode: "fromView" })
8628
8458
  ], _BaseDropdown.prototype, "ariaLabelledBy", 2);
8629
- __decorateClass$x([
8459
+ __decorateClass$m([
8630
8460
  observable
8631
8461
  ], _BaseDropdown.prototype, "control", 2);
8632
- __decorateClass$x([
8462
+ __decorateClass$m([
8633
8463
  attr({ mode: "boolean" })
8634
8464
  ], _BaseDropdown.prototype, "disabled", 2);
8635
- __decorateClass$x([
8465
+ __decorateClass$m([
8636
8466
  volatile
8637
8467
  ], _BaseDropdown.prototype, "displayValue", 1);
8638
- __decorateClass$x([
8468
+ __decorateClass$m([
8639
8469
  attr({ attribute: "id" })
8640
8470
  ], _BaseDropdown.prototype, "id", 2);
8641
- __decorateClass$x([
8471
+ __decorateClass$m([
8642
8472
  observable
8643
8473
  ], _BaseDropdown.prototype, "indicator", 2);
8644
- __decorateClass$x([
8474
+ __decorateClass$m([
8645
8475
  observable
8646
8476
  ], _BaseDropdown.prototype, "indicatorSlot", 2);
8647
- __decorateClass$x([
8477
+ __decorateClass$m([
8648
8478
  attr({ attribute: "value", mode: "fromView" })
8649
8479
  ], _BaseDropdown.prototype, "initialValue", 2);
8650
- __decorateClass$x([
8480
+ __decorateClass$m([
8651
8481
  observable
8652
8482
  ], _BaseDropdown.prototype, "listbox", 2);
8653
- __decorateClass$x([
8483
+ __decorateClass$m([
8654
8484
  attr({ mode: "boolean" })
8655
8485
  ], _BaseDropdown.prototype, "multiple", 2);
8656
- __decorateClass$x([
8486
+ __decorateClass$m([
8657
8487
  attr
8658
8488
  ], _BaseDropdown.prototype, "name", 2);
8659
- __decorateClass$x([
8489
+ __decorateClass$m([
8660
8490
  observable
8661
8491
  ], _BaseDropdown.prototype, "open", 2);
8662
- __decorateClass$x([
8492
+ __decorateClass$m([
8663
8493
  attr
8664
8494
  ], _BaseDropdown.prototype, "placeholder", 2);
8665
- __decorateClass$x([
8495
+ __decorateClass$m([
8666
8496
  attr({ mode: "boolean" })
8667
8497
  ], _BaseDropdown.prototype, "required", 2);
8668
- __decorateClass$x([
8498
+ __decorateClass$m([
8669
8499
  attr
8670
8500
  ], _BaseDropdown.prototype, "type", 2);
8671
- __decorateClass$x([
8672
- attr({ attribute: "value" })
8673
- ], _BaseDropdown.prototype, "valueAttribute", 2);
8674
8501
  let BaseDropdown = _BaseDropdown;
8675
8502
 
8676
- var __defProp$w = Object.defineProperty;
8677
- var __getOwnPropDesc$w = Object.getOwnPropertyDescriptor;
8678
- var __decorateClass$w = (decorators, target, key, kind) => {
8679
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$w(target, key) : target;
8680
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
8681
- if (decorator = decorators[i])
8682
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
8683
- if (kind && result) __defProp$w(target, key, result);
8684
- return result;
8685
- };
8686
8503
  class Dropdown extends BaseDropdown {
8687
- constructor() {
8688
- super(...arguments);
8689
- this.appearance = DropdownAppearance.outline;
8690
- }
8691
8504
  }
8692
- __decorateClass$w([
8693
- attr
8694
- ], Dropdown.prototype, "appearance", 2);
8695
- __decorateClass$w([
8696
- attr
8697
- ], Dropdown.prototype, "size", 2);
8698
8505
 
8699
8506
  Dropdown.define(definition$r);
8700
8507
 
@@ -8718,7 +8525,7 @@ const ValidationFlags = {
8718
8525
  };
8719
8526
  const tagName$o = `${FluentDesignSystem.prefix}-field`;
8720
8527
 
8721
- const styles$q = css`${display("inline-grid")} :host{color:${colorNeutralForeground1};align-items:center;gap:0 ${spacingHorizontalM};justify-items:start}:has([slot='message']){color:${colorNeutralForeground1};row-gap:${spacingVerticalS}}: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:${spacingHorizontalM}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${spacingVerticalXXS}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${spacingVerticalM}}:host(${requiredState}) ::slotted([slot='label'])::after{content:'*'/'';color:${colorPaletteRedForeground1};margin-inline-start:${spacingHorizontalXS}}::slotted([slot='input']){grid-area:input}::slotted([slot='message']){color:${colorNeutralForeground3};font-family:${fontFamilyBase};font-size:${fontSizeBase200};font-weight:${fontWeightRegular};grid-area:message;line-height:${lineHeightBase200};margin-block-start:${spacingVerticalXXS}}:host(${focusVisibleState}:focus-within){border-radius:${borderRadiusMedium};outline:${strokeWidthThick} solid ${colorStrokeFocus2}}::slotted(label),::slotted([slot='label']){cursor:inherit;display:inline-flex;font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};grid-area:label;line-height:${lineHeightBase300};justify-self:stretch;user-select:none}:host([size='small']) ::slotted(label){font-size:${fontSizeBase200};line-height:${lineHeightBase200}}:host([size='large']) ::slotted(label){font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${fontWeightSemibold}}:host(${disabledState}){cursor:default}::slotted([flag]){display:none}:host(${badInputState}) ::slotted([flag='${ValidationFlags.badInput}']),:host(${customErrorState}) ::slotted([flag='${ValidationFlags.customError}']),:host(${patternMismatchState}) ::slotted([flag='${ValidationFlags.patternMismatch}']),:host(${rangeOverflowState}) ::slotted([flag='${ValidationFlags.rangeOverflow}']),:host(${rangeUnderflowState}) ::slotted([flag='${ValidationFlags.rangeUnderflow}']),:host(${stepMismatchState}) ::slotted([flag='${ValidationFlags.stepMismatch}']),:host(${tooLongState}) ::slotted([flag='${ValidationFlags.tooLong}']),:host(${tooShortState}) ::slotted([flag='${ValidationFlags.tooShort}']),:host(${typeMismatchState}) ::slotted([flag='${ValidationFlags.typeMismatch}']),:host(${valueMissingState}) ::slotted([flag='${ValidationFlags.valueMissing}']),:host(${validState}) ::slotted([flag='${ValidationFlags.valid}']){display:block}`;
8528
+ const styles$q = css`${display("inline-grid")} :host{color:${colorNeutralForeground1};align-items:center;gap:0 ${spacingHorizontalM};justify-items:start;grid-template-areas:'label' 'input' 'message';row-gap:${spacingVerticalXXS}}:has([slot='message']){color:${colorNeutralForeground1};row-gap:${spacingVerticalS}}: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:${spacingHorizontalM}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${spacingVerticalM}}:host(${requiredState}) ::slotted([slot='label'])::after{content:'*'/'';color:${colorPaletteRedForeground1};margin-inline-start:${spacingHorizontalXS}}::slotted([slot='input']){grid-area:input}::slotted([slot='message']){color:${colorNeutralForeground3};font-family:${fontFamilyBase};font-size:${fontSizeBase200};font-weight:${fontWeightRegular};grid-area:message;line-height:${lineHeightBase200};margin-block-start:${spacingVerticalXXS}}:host(${focusVisibleState}:focus-within){border-radius:${borderRadiusMedium};outline:${strokeWidthThick} solid ${colorStrokeFocus2}}::slotted(label),::slotted([slot='label']){cursor:inherit;display:inline-flex;font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};grid-area:label;line-height:${lineHeightBase300};justify-self:stretch;user-select:none}:host([size='small']) ::slotted(label){font-size:${fontSizeBase200};line-height:${lineHeightBase200}}:host([size='large']) ::slotted(label){font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${fontWeightSemibold}}:host(${disabledState}){cursor:default}::slotted([flag]){display:none}:host(${badInputState}) ::slotted([flag='${ValidationFlags.badInput}']),:host(${customErrorState}) ::slotted([flag='${ValidationFlags.customError}']),:host(${patternMismatchState}) ::slotted([flag='${ValidationFlags.patternMismatch}']),:host(${rangeOverflowState}) ::slotted([flag='${ValidationFlags.rangeOverflow}']),:host(${rangeUnderflowState}) ::slotted([flag='${ValidationFlags.rangeUnderflow}']),:host(${stepMismatchState}) ::slotted([flag='${ValidationFlags.stepMismatch}']),:host(${tooLongState}) ::slotted([flag='${ValidationFlags.tooLong}']),:host(${tooShortState}) ::slotted([flag='${ValidationFlags.tooShort}']),:host(${typeMismatchState}) ::slotted([flag='${ValidationFlags.typeMismatch}']),:host(${valueMissingState}) ::slotted([flag='${ValidationFlags.valueMissing}']),:host(${validState}) ::slotted([flag='${ValidationFlags.valid}']){display:block}`;
8722
8529
 
8723
8530
  const template$q = html`<template @click=${(x, c) => x.clickHandler(c.event)} @change=${(x, c) => x.changeHandler(c.event)} @focusin=${(x, c) => x.focusinHandler(c.event)} @focusout=${(x, c) => x.focusoutHandler(c.event)}><slot name=label part=label ${slotted("labelSlot")}></slot><slot name=input part=input ${slotted("slottedInputs")}></slot><slot name=message part=message ${slotted({ property: "messageSlot", filter: elements("[flag]") })}></slot></template>`;
8724
8531
 
@@ -8732,14 +8539,14 @@ const definition$q = {
8732
8539
  template: template$q
8733
8540
  };
8734
8541
 
8735
- var __defProp$v = Object.defineProperty;
8736
- var __getOwnPropDesc$v = Object.getOwnPropertyDescriptor;
8737
- var __decorateClass$v = (decorators, target, key, kind) => {
8738
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$v(target, key) : target;
8542
+ var __defProp$l = Object.defineProperty;
8543
+ var __getOwnPropDesc$l = Object.getOwnPropertyDescriptor;
8544
+ var __decorateClass$l = (decorators, target, key, kind) => {
8545
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$l(target, key) : target;
8739
8546
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
8740
8547
  if (decorator = decorators[i])
8741
8548
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
8742
- if (kind && result) __defProp$v(target, key, result);
8549
+ if (kind && result) __defProp$l(target, key, result);
8743
8550
  return result;
8744
8551
  };
8745
8552
  class BaseField extends FASTElement {
@@ -8888,17 +8695,40 @@ class BaseField extends FASTElement {
8888
8695
  *
8889
8696
  * @internal
8890
8697
  */
8891
- setLabelProperties() {
8892
- if (this.$fastController.isConnected) {
8893
- this.input.id = this.input.id || uniqueId("input");
8894
- this.labelSlot?.forEach((label) => {
8895
- if (label instanceof HTMLLabelElement) {
8896
- label.htmlFor = label.htmlFor || this.input.id;
8897
- label.id = label.id || `${this.input.id}--label`;
8898
- this.input.setAttribute("aria-labelledby", label.id);
8698
+ async setLabelProperties() {
8699
+ const input = await this.getLabelableInput();
8700
+ if (!input) {
8701
+ return;
8702
+ }
8703
+ input.id || (input.id = uniqueId("input"));
8704
+ this.labelSlot?.forEach((label) => {
8705
+ if (label instanceof HTMLLabelElement) {
8706
+ label.htmlFor || (label.htmlFor = input.id);
8707
+ label.id || (label.id = `${input.id}--label`);
8708
+ input.setAttribute("aria-labelledby", label.id);
8709
+ }
8710
+ });
8711
+ }
8712
+ getLabelableInput() {
8713
+ return new Promise((resolve) => {
8714
+ if (!this.input) {
8715
+ return resolve(null);
8716
+ }
8717
+ if (this.input.constructor.elementIdentity !== "dropdown") {
8718
+ return resolve(this.input);
8719
+ }
8720
+ if (this.input.control) {
8721
+ return resolve(this.input.control);
8722
+ }
8723
+ new MutationObserver((_, observer) => {
8724
+ if (this.input.control) {
8725
+ resolve(this.input.control);
8726
+ observer.disconnect();
8899
8727
  }
8728
+ }).observe(this.input, {
8729
+ childList: true
8900
8730
  });
8901
- }
8731
+ });
8902
8732
  }
8903
8733
  /**
8904
8734
  * Toggles the field's states based on the slotted input.
@@ -8922,38 +8752,21 @@ class BaseField extends FASTElement {
8922
8752
  }
8923
8753
  }
8924
8754
  }
8925
- __decorateClass$v([
8755
+ __decorateClass$l([
8926
8756
  observable
8927
8757
  ], BaseField.prototype, "labelSlot", 2);
8928
- __decorateClass$v([
8758
+ __decorateClass$l([
8929
8759
  observable
8930
8760
  ], BaseField.prototype, "messageSlot", 2);
8931
- __decorateClass$v([
8761
+ __decorateClass$l([
8932
8762
  observable
8933
8763
  ], BaseField.prototype, "slottedInputs", 2);
8934
- __decorateClass$v([
8764
+ __decorateClass$l([
8935
8765
  observable
8936
8766
  ], BaseField.prototype, "input", 2);
8937
8767
 
8938
- var __defProp$u = Object.defineProperty;
8939
- var __getOwnPropDesc$u = Object.getOwnPropertyDescriptor;
8940
- var __decorateClass$u = (decorators, target, key, kind) => {
8941
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$u(target, key) : target;
8942
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
8943
- if (decorator = decorators[i])
8944
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
8945
- if (kind && result) __defProp$u(target, key, result);
8946
- return result;
8947
- };
8948
8768
  class Field extends BaseField {
8949
- constructor() {
8950
- super(...arguments);
8951
- this.labelPosition = LabelPosition.above;
8952
- }
8953
8769
  }
8954
- __decorateClass$u([
8955
- attr({ attribute: "label-position" })
8956
- ], Field.prototype, "labelPosition", 2);
8957
8770
 
8958
8771
  Field.define(definition$q);
8959
8772
 
@@ -8981,33 +8794,8 @@ const definition$p = {
8981
8794
  template: template$p
8982
8795
  };
8983
8796
 
8984
- var __defProp$t = Object.defineProperty;
8985
- var __getOwnPropDesc$t = Object.getOwnPropertyDescriptor;
8986
- var __decorateClass$t = (decorators, target, key, kind) => {
8987
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$t(target, key) : target;
8988
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
8989
- if (decorator = decorators[i])
8990
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
8991
- if (kind && result) __defProp$t(target, key, result);
8992
- return result;
8993
- };
8994
8797
  class Image extends FASTElement {
8995
8798
  }
8996
- __decorateClass$t([
8997
- attr({ mode: "boolean" })
8998
- ], Image.prototype, "block", 2);
8999
- __decorateClass$t([
9000
- attr({ mode: "boolean" })
9001
- ], Image.prototype, "bordered", 2);
9002
- __decorateClass$t([
9003
- attr({ mode: "boolean" })
9004
- ], Image.prototype, "shadow", 2);
9005
- __decorateClass$t([
9006
- attr
9007
- ], Image.prototype, "fit", 2);
9008
- __decorateClass$t([
9009
- attr
9010
- ], Image.prototype, "shape", 2);
9011
8799
 
9012
8800
  Image.define(definition$p);
9013
8801
 
@@ -9036,33 +8824,23 @@ const definition$o = {
9036
8824
  template: template$o
9037
8825
  };
9038
8826
 
9039
- var __defProp$s = Object.defineProperty;
9040
- var __getOwnPropDesc$s = Object.getOwnPropertyDescriptor;
9041
- var __decorateClass$s = (decorators, target, key, kind) => {
9042
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$s(target, key) : target;
8827
+ var __defProp$k = Object.defineProperty;
8828
+ var __getOwnPropDesc$k = Object.getOwnPropertyDescriptor;
8829
+ var __decorateClass$k = (decorators, target, key, kind) => {
8830
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$k(target, key) : target;
9043
8831
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
9044
8832
  if (decorator = decorators[i])
9045
8833
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
9046
- if (kind && result) __defProp$s(target, key, result);
8834
+ if (kind && result) __defProp$k(target, key, result);
9047
8835
  return result;
9048
8836
  };
9049
8837
  class Label extends FASTElement {
9050
8838
  constructor() {
9051
8839
  super(...arguments);
9052
- this.disabled = false;
9053
8840
  this.required = false;
9054
8841
  }
9055
8842
  }
9056
- __decorateClass$s([
9057
- attr
9058
- ], Label.prototype, "size", 2);
9059
- __decorateClass$s([
9060
- attr
9061
- ], Label.prototype, "weight", 2);
9062
- __decorateClass$s([
9063
- attr({ mode: "boolean" })
9064
- ], Label.prototype, "disabled", 2);
9065
- __decorateClass$s([
8843
+ __decorateClass$k([
9066
8844
  attr({ mode: "boolean" })
9067
8845
  ], Label.prototype, "required", 2);
9068
8846
 
@@ -9088,28 +8866,8 @@ const definition$n = {
9088
8866
  template: template$n
9089
8867
  };
9090
8868
 
9091
- var __defProp$r = Object.defineProperty;
9092
- var __getOwnPropDesc$r = Object.getOwnPropertyDescriptor;
9093
- var __decorateClass$r = (decorators, target, key, kind) => {
9094
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$r(target, key) : target;
9095
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
9096
- if (decorator = decorators[i])
9097
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
9098
- if (kind && result) __defProp$r(target, key, result);
9099
- return result;
9100
- };
9101
8869
  class Link extends BaseAnchor {
9102
- constructor() {
9103
- super(...arguments);
9104
- this.inline = false;
9105
- }
9106
8870
  }
9107
- __decorateClass$r([
9108
- attr
9109
- ], Link.prototype, "appearance", 2);
9110
- __decorateClass$r([
9111
- attr({ mode: "boolean" })
9112
- ], Link.prototype, "inline", 2);
9113
8871
 
9114
8872
  Link.define(definition$n);
9115
8873
 
@@ -9127,14 +8885,14 @@ const definition$m = {
9127
8885
  template: template$m
9128
8886
  };
9129
8887
 
9130
- var __defProp$q = Object.defineProperty;
9131
- var __getOwnPropDesc$q = Object.getOwnPropertyDescriptor;
9132
- var __decorateClass$q = (decorators, target, key, kind) => {
9133
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$q(target, key) : target;
8888
+ var __defProp$j = Object.defineProperty;
8889
+ var __getOwnPropDesc$j = Object.getOwnPropertyDescriptor;
8890
+ var __decorateClass$j = (decorators, target, key, kind) => {
8891
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$j(target, key) : target;
9134
8892
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
9135
8893
  if (decorator = decorators[i])
9136
8894
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
9137
- if (kind && result) __defProp$q(target, key, result);
8895
+ if (kind && result) __defProp$j(target, key, result);
9138
8896
  return result;
9139
8897
  };
9140
8898
  class Listbox extends FASTElement {
@@ -9301,19 +9059,19 @@ class Listbox extends FASTElement {
9301
9059
  });
9302
9060
  }
9303
9061
  }
9304
- __decorateClass$q([
9062
+ __decorateClass$j([
9305
9063
  observable
9306
9064
  ], Listbox.prototype, "defaultSlot", 2);
9307
- __decorateClass$q([
9065
+ __decorateClass$j([
9308
9066
  observable
9309
9067
  ], Listbox.prototype, "multiple", 2);
9310
- __decorateClass$q([
9068
+ __decorateClass$j([
9311
9069
  observable
9312
9070
  ], Listbox.prototype, "options", 2);
9313
- __decorateClass$q([
9071
+ __decorateClass$j([
9314
9072
  observable
9315
9073
  ], Listbox.prototype, "selectedIndex", 2);
9316
- __decorateClass$q([
9074
+ __decorateClass$j([
9317
9075
  observable
9318
9076
  ], Listbox.prototype, "dropdown", 2);
9319
9077
 
@@ -9372,7 +9130,7 @@ function isMenuItem(element, tagName2 = "-menu-item") {
9372
9130
  }
9373
9131
  const tagName$j = `${FluentDesignSystem.prefix}-menu-item`;
9374
9132
 
9375
- const styles$k = css`${display("flex")} :host{align-items:center;background:${colorNeutralBackground1};border-radius:${borderRadiusMedium};box-sizing:border-box;color:${colorNeutralForeground2};cursor:pointer;font:${fontWeightRegular} ${fontSizeBase300}/${lineHeightBase300} ${fontFamilyBase};gap:4px;min-block-size:32px;overflow:visible;padding-inline:10px}@supports (grid-template-columns:subgrid){:host{display:grid;gap:0;grid-template-columns:subgrid;padding-inline:unset}}:host(:hover){background:${colorNeutralBackground1Hover};color:${colorNeutralForeground2Hover}}:host(:active){background-color:${colorNeutralBackground1Selected};color:${colorNeutralForeground2Pressed}}:host(:active) ::slotted([slot='start']){color:${colorCompoundBrandForeground1Pressed}}:host(${disabledState}){background-color:${colorNeutralBackgroundDisabled};color:${colorNeutralForegroundDisabled}}:host(${disabledState}) ::slotted([slot='start']),:host(${disabledState}) ::slotted([slot='end']){color:${colorNeutralForegroundDisabled}}:host(:focus-visible){border-radius:${borderRadiusMedium};outline:2px solid ${colorStrokeFocus2}}:host(:not(${checkedState})) .indicator,:host(:not(${checkedState})) ::slotted([slot='indicator']),:host(:not(${submenuState})) .submenu-glyph,:host(:not(${submenuState})) ::slotted([slot='submenu-glyph']){display:none}::slotted([slot='end']){color:${colorNeutralForeground3};font:${fontWeightRegular} ${fontSizeBase200}/${lineHeightBase200} ${fontFamilyBase};white-space:nowrap}.indicator,::slotted([slot='indicator']){grid-column:2/span 1;width:20px}::slotted([slot='start']){display:inline-flex;grid-column:3/span 1}.content{flex-grow:1;grid-column:4/span 1;padding:0 2px;white-space:nowrap}::slotted([slot='end']){grid-column:5/span 1;justify-self:end}.submenu-glyph,::slotted([slot='submenu-glyph']){grid-column:6/span 1;justify-self:end}@layer popover{:host{anchor-name:--menu-trigger;position:relative}@position-try --inline-inside{inset-inline-start:unset;inset-inline-end:anchor(inside)}::slotted([popover]){margin:0;max-block-size:var(--menu-max-height,auto);position:fixed;position-anchor:--menu-trigger;inset:unset;inset-block-start:anchor(inside);inset-inline-start:anchor(outside);position-try-fallbacks:--inline-inside,flip-block,flip-block --inline-inside;z-index:1}::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--menu-trigger){::slotted([popover]){align-self:start}}}@media (forced-colors:active){:host(${disabledState}),:host(${disabledState}) ::slotted([slot='start']),:host(${disabledState}) ::slotted([slot='end']){color:GrayText}}`;
9133
+ const styles$k = css`${display("flex")} :host{align-items:center;background:${colorNeutralBackground1};border-radius:${borderRadiusMedium};box-sizing:border-box;color:${colorNeutralForeground2};cursor:pointer;font:${fontWeightRegular} ${fontSizeBase300}/${lineHeightBase300} ${fontFamilyBase};gap:4px;min-block-size:32px;overflow:visible;padding-inline:10px}@supports (grid-template-columns:subgrid){:host{display:grid;gap:0;grid-template-columns:subgrid;padding-inline:unset}}:host(:hover){background:${colorNeutralBackground1Hover};color:${colorNeutralForeground2Hover}}:host(:active){background-color:${colorNeutralBackground1Selected};color:${colorNeutralForeground2Pressed}}:host(:active) ::slotted([slot='start']){color:${colorCompoundBrandForeground1Pressed}}:host(${disabledState}){background-color:${colorNeutralBackgroundDisabled};color:${colorNeutralForegroundDisabled}}:host(${disabledState}) ::slotted([slot='start']),:host(${disabledState}) ::slotted([slot='end']){color:${colorNeutralForegroundDisabled}}:host(:focus-visible){border-radius:${borderRadiusMedium};outline:2px solid ${colorStrokeFocus2}}:host(:not([role='menuitemcheckbox']):not([role='menuitemradio'])) .indicator,:host(:not([role='menuitemcheckbox']):not([role='menuitemradio'])) ::slotted([slot='indicator']),:host(:not(${submenuState})) .submenu-glyph,:host(:not(${submenuState})) ::slotted([slot='submenu-glyph']){display:none}:host(:not(${checkedState})) .indicator,:host(:not(${checkedState})) ::slotted([slot='indicator']){visibility:hidden}.indicator,::slotted([slot='indicator']),::slotted([slot='start']),::slotted([slot='end']),.submenu-glyph,::slotted([slot='submenu-glyph']){margin-inline:${spacingHorizontalXXS}}::slotted([slot='end']){color:${colorNeutralForeground3};font:${fontWeightRegular} ${fontSizeBase200}/${lineHeightBase200} ${fontFamilyBase};white-space:nowrap}.indicator,::slotted([slot='indicator']){grid-column:2/span 1;width:20px}::slotted([slot='start']){display:inline-flex;grid-column:3/span 1}.content{flex-grow:1;grid-column:4/span 1;padding:0 2px;white-space:nowrap}::slotted([slot='end']){grid-column:5/span 1;justify-self:end}.submenu-glyph,::slotted([slot='submenu-glyph']){grid-column:6/span 1;justify-self:end}@layer popover{:host{anchor-name:--menu-trigger;position:relative}@position-try --inline-inside{inset-inline-start:unset;inset-inline-end:anchor(inside)}::slotted([popover]){margin:0;max-block-size:var(--menu-max-height,auto);position:fixed;position-anchor:--menu-trigger;inset:unset;inset-block-start:anchor(inside);inset-inline-start:anchor(outside);position-try-fallbacks:--inline-inside,flip-block,flip-block --inline-inside;z-index:1}::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--menu-trigger){::slotted([popover]){align-self:start}}}@media (forced-colors:active){:host(${disabledState}),:host(${disabledState}) ::slotted([slot='start']),:host(${disabledState}) ::slotted([slot='end']){color:GrayText}}`;
9376
9134
 
9377
9135
  const Checkmark16Filled = html.partial(
9378
9136
  `<svg class=indicator fill=currentColor aria-hidden=true width=16 height=16 viewBox="0 0 16 16" xmlns=http://www.w3.org/2000/svg><path d="M14.05 3.49c.28.3.27.77-.04 1.06l-7.93 7.47A.85.85 0 014.9 12L2.22 9.28a.75.75 0 111.06-1.06l2.24 2.27 7.47-7.04a.75.75 0 011.06.04z" fill=currentColor></path></svg>`
@@ -9395,14 +9153,14 @@ const definition$k = {
9395
9153
  template: template$k
9396
9154
  };
9397
9155
 
9398
- var __defProp$p = Object.defineProperty;
9399
- var __getOwnPropDesc$p = Object.getOwnPropertyDescriptor;
9400
- var __decorateClass$p = (decorators, target, key, kind) => {
9401
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$p(target, key) : target;
9402
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
9156
+ var __defProp$i = Object.defineProperty;
9157
+ var __getOwnPropDesc$i = Object.getOwnPropertyDescriptor;
9158
+ var __decorateClass$i = (decorators, target, key, kind) => {
9159
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$i(target, key) : target;
9160
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
9403
9161
  if (decorator = decorators[i])
9404
9162
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
9405
- if (kind && result) __defProp$p(target, key, result);
9163
+ if (kind && result) __defProp$i(target, key, result);
9406
9164
  return result;
9407
9165
  };
9408
9166
  class MenuItem extends FASTElement {
@@ -9602,22 +9360,22 @@ class MenuItem extends FASTElement {
9602
9360
  maybeSetAutoFocus(this);
9603
9361
  }
9604
9362
  }
9605
- __decorateClass$p([
9363
+ __decorateClass$i([
9606
9364
  attr({ mode: "boolean" })
9607
9365
  ], MenuItem.prototype, "disabled", 2);
9608
- __decorateClass$p([
9366
+ __decorateClass$i([
9609
9367
  attr
9610
9368
  ], MenuItem.prototype, "role", 2);
9611
- __decorateClass$p([
9369
+ __decorateClass$i([
9612
9370
  attr({ mode: "boolean" })
9613
9371
  ], MenuItem.prototype, "checked", 2);
9614
- __decorateClass$p([
9372
+ __decorateClass$i([
9615
9373
  attr({ mode: "boolean" })
9616
9374
  ], MenuItem.prototype, "hidden", 2);
9617
- __decorateClass$p([
9375
+ __decorateClass$i([
9618
9376
  observable
9619
9377
  ], MenuItem.prototype, "slottedSubmenu", 2);
9620
- __decorateClass$p([
9378
+ __decorateClass$i([
9621
9379
  observable
9622
9380
  ], MenuItem.prototype, "submenu", 2);
9623
9381
  applyMixins(MenuItem, StartEnd);
@@ -9626,7 +9384,7 @@ MenuItem.define(definition$k);
9626
9384
 
9627
9385
  const tagName$i = `${FluentDesignSystem.prefix}-menu-list`;
9628
9386
 
9629
- const styles$j = css`${display("grid")} :host{--_col-indicator-width:0px;--_col-start-width:0px;--_col-content-width:1fr;--_col-end-width:0px;--_col-submenu-width:0px;contain:layout style;block-size:auto;max-inline-size:300px;min-inline-size:160px;inline-size:auto;background-color:${colorNeutralBackground1};border:1px solid ${colorTransparentStroke};border-radius:${borderRadiusMedium};box-shadow:${shadow16};grid-template-columns:10px var(--_col-indicator-width) var(--_col-start-width) var(--_col-content-width) var(--_col-end-width) var(--_col-submenu-width) 10px;gap:2px 0;padding:4px}::slotted(*){grid-column:1/-1}:host(:has(>[role='menuitemradio'],>[role='menuitemcheckbox'])){--_col-indicator-width:24px}:host(:has(>*>[slot='start'])){--_col-start-width:24px}:host(:has(>*>[slot='end'])){--_col-end-width:24px}:host(:has(>*>[slot='submenu'])){--_col-submenu-width:24px}@scope{:scope:has(>[role='menuitemradio'],>[role='menuitemcheckbox']){--_col-indicator-width:24px}:scope:has(>*>[slot='start']){--_col-start-width:24px}:scope:has(>*>[slot='end']){--_col-end-width:24px}:scope:has(>*>[slot='submenu']){--_col-submenu-width:24px}}`;
9387
+ const styles$j = css`${display("grid")} :host{contain:layout style;block-size:auto;max-inline-size:300px;min-inline-size:160px;inline-size:auto;background-color:${colorNeutralBackground1};border:1px solid ${colorTransparentStroke};border-radius:${borderRadiusMedium};box-shadow:${shadow16};grid-template-columns:10px max-content max-content minmax(0,1fr) max-content max-content 10px;gap:2px 0;padding:4px}::slotted(*){grid-column:1/-1}`;
9630
9388
 
9631
9389
  function menuTemplate$1() {
9632
9390
  return html`<template focusgroup=menu><slot ${slotted("items")}></slot></template>`;
@@ -10105,14 +9863,14 @@ class ArrayItemCollection {
10105
9863
  }
10106
9864
  }
10107
9865
 
10108
- var __defProp$o = Object.defineProperty;
10109
- var __getOwnPropDesc$o = Object.getOwnPropertyDescriptor;
10110
- var __decorateClass$o = (decorators, target, key, kind) => {
10111
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$o(target, key) : target;
9866
+ var __defProp$h = Object.defineProperty;
9867
+ var __getOwnPropDesc$h = Object.getOwnPropertyDescriptor;
9868
+ var __decorateClass$h = (decorators, target, key, kind) => {
9869
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$h(target, key) : target;
10112
9870
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
10113
9871
  if (decorator = decorators[i])
10114
9872
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
10115
- if (kind && result) __defProp$o(target, key, result);
9873
+ if (kind && result) __defProp$h(target, key, result);
10116
9874
  return result;
10117
9875
  };
10118
9876
  const _BaseMenuList = class _BaseMenuList extends FASTElement {
@@ -10203,7 +9961,9 @@ const _BaseMenuList = class _BaseMenuList extends FASTElement {
10203
9961
  * @public
10204
9962
  */
10205
9963
  focus() {
10206
- this.menuItems?.find((item) => !item.disabled)?.focus();
9964
+ Updates.enqueue(() => {
9965
+ this.menuItems?.find((item) => !item.disabled)?.focus();
9966
+ });
10207
9967
  }
10208
9968
  setItems() {
10209
9969
  const children = Array.from(this.children);
@@ -10229,7 +9989,7 @@ const _BaseMenuList = class _BaseMenuList extends FASTElement {
10229
9989
  }
10230
9990
  };
10231
9991
  _BaseMenuList.focusableElementRoles = MenuItemRole;
10232
- __decorateClass$o([
9992
+ __decorateClass$h([
10233
9993
  observable
10234
9994
  ], _BaseMenuList.prototype, "items", 2);
10235
9995
  let BaseMenuList = _BaseMenuList;
@@ -10274,14 +10034,14 @@ const definition$i = {
10274
10034
  template: template$i
10275
10035
  };
10276
10036
 
10277
- var __defProp$n = Object.defineProperty;
10278
- var __getOwnPropDesc$n = Object.getOwnPropertyDescriptor;
10279
- var __decorateClass$n = (decorators, target, key, kind) => {
10280
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$n(target, key) : target;
10037
+ var __defProp$g = Object.defineProperty;
10038
+ var __getOwnPropDesc$g = Object.getOwnPropertyDescriptor;
10039
+ var __decorateClass$g = (decorators, target, key, kind) => {
10040
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$g(target, key) : target;
10281
10041
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
10282
10042
  if (decorator = decorators[i])
10283
10043
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
10284
- if (kind && result) __defProp$n(target, key, result);
10044
+ if (kind && result) __defProp$g(target, key, result);
10285
10045
  return result;
10286
10046
  };
10287
10047
  class Menu extends FASTElement {
@@ -10575,28 +10335,25 @@ class Menu extends FASTElement {
10575
10335
  }
10576
10336
  }
10577
10337
  }
10578
- __decorateClass$n([
10338
+ __decorateClass$g([
10579
10339
  attr({ attribute: "open-on-hover", mode: "boolean" })
10580
10340
  ], Menu.prototype, "openOnHover", 2);
10581
- __decorateClass$n([
10341
+ __decorateClass$g([
10582
10342
  attr({ attribute: "open-on-context", mode: "boolean" })
10583
10343
  ], Menu.prototype, "openOnContext", 2);
10584
- __decorateClass$n([
10344
+ __decorateClass$g([
10585
10345
  attr({ attribute: "close-on-scroll", mode: "boolean" })
10586
10346
  ], Menu.prototype, "closeOnScroll", 2);
10587
- __decorateClass$n([
10347
+ __decorateClass$g([
10588
10348
  attr({ attribute: "persist-on-item-click", mode: "boolean" })
10589
10349
  ], Menu.prototype, "persistOnItemClick", 2);
10590
- __decorateClass$n([
10591
- attr({ mode: "boolean" })
10592
- ], Menu.prototype, "split", 2);
10593
- __decorateClass$n([
10350
+ __decorateClass$g([
10594
10351
  observable
10595
10352
  ], Menu.prototype, "slottedMenuList", 2);
10596
- __decorateClass$n([
10353
+ __decorateClass$g([
10597
10354
  observable
10598
10355
  ], Menu.prototype, "slottedTriggers", 2);
10599
- __decorateClass$n([
10356
+ __decorateClass$g([
10600
10357
  observable
10601
10358
  ], Menu.prototype, "primaryAction", 2);
10602
10359
 
@@ -10632,16 +10389,6 @@ const definition$h = {
10632
10389
  template: template$h
10633
10390
  };
10634
10391
 
10635
- var __defProp$m = Object.defineProperty;
10636
- var __getOwnPropDesc$m = Object.getOwnPropertyDescriptor;
10637
- var __decorateClass$m = (decorators, target, key, kind) => {
10638
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$m(target, key) : target;
10639
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
10640
- if (decorator = decorators[i])
10641
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
10642
- if (kind && result) __defProp$m(target, key, result);
10643
- return result;
10644
- };
10645
10392
  class MessageBar extends FASTElement {
10646
10393
  constructor() {
10647
10394
  super();
@@ -10662,19 +10409,10 @@ class MessageBar extends FASTElement {
10662
10409
  this.elementInternals.role = "status";
10663
10410
  }
10664
10411
  }
10665
- __decorateClass$m([
10666
- attr
10667
- ], MessageBar.prototype, "shape", 2);
10668
- __decorateClass$m([
10669
- attr
10670
- ], MessageBar.prototype, "layout", 2);
10671
- __decorateClass$m([
10672
- attr
10673
- ], MessageBar.prototype, "intent", 2);
10674
10412
 
10675
10413
  MessageBar.define(definition$h);
10676
10414
 
10677
- const styles$g = css`${display("inline-grid")} :host{-webkit-tap-highlight-color:transparent;${typographyBody1Styles} align-items:center;background-color:${colorNeutralBackground1};border-radius:${borderRadiusMedium};box-sizing:border-box;color:${colorNeutralForeground2};column-gap:${spacingHorizontalXS};cursor:pointer;grid-template-areas:'indicator start content';grid-template-columns:auto auto 1fr;min-height:32px;padding:${spacingHorizontalSNudge};text-align:start}.content{grid-area:content;line-height:1}::slotted([slot='start']){grid-area:start}:host(:hover){background-color:${colorNeutralBackground1Hover};color:${colorNeutralForeground2Hover}}:host(:active){background-color:${colorNeutralBackground1Pressed};color:${colorNeutralForeground2Pressed}}:host(${nativeDisabledState}){background-color:${colorNeutralBackground1};color:${colorNeutralForegroundDisabled};cursor:default}.checkmark-16-filled{fill:currentColor;width:16px}slot[name='checked-indicator']>*,::slotted([slot='checked-indicator']){aspect-ratio:1;flex:0 0 auto;grid-area:indicator;visibility:hidden}:host(${selectedState}) :is(slot[name='checked-indicator']>*,::slotted([slot='checked-indicator'])){visibility:visible}:host(${multipleState}) .checkmark-16-filled,:host(:not(${multipleState})) .checkmark-12-regular{display:none}:host(${multipleState}) .checkmark-12-regular{background-color:${colorNeutralBackground1};border-radius:${borderRadiusSmall};border:${strokeWidthThin} solid ${colorNeutralStrokeAccessible};box-sizing:border-box;cursor:pointer;fill:transparent;position:relative;visibility:visible;width:16px}:host(${multipleState}${selectedState}) .checkmark-12-regular{background-color:${colorCompoundBrandBackground};border-color:${colorCompoundBrandStroke};fill:${colorNeutralForegroundInverted}}:host(${nativeDisabledState}${multipleState}) .checkmark-12-regular{border-color:${colorNeutralStrokeDisabled}}:host(${nativeDisabledState}${multipleState}${selectedState}) .checkmark-12-regular{background-color:${colorNeutralBackgroundDisabled}}:host(${activeState}){border:${strokeWidthThick} solid ${colorStrokeFocus2}}@supports (selector(:host(:has(*)))){:host(:has([slot='start']:not([size='16']))){column-gap:${spacingHorizontalSNudge}}}:host(${descriptionState}){column-gap:${spacingHorizontalSNudge};grid-template-areas:'indicator start content' 'indicator start description'}::slotted([slot='description']){color:${colorNeutralForeground3};grid-area:description;${typographyCaption1Styles}}@media (forced-colors:active){:host(${nativeDisabledState}){color:GrayText}}`;
10415
+ const styles$g = css`${display("inline-grid")} :host{-webkit-tap-highlight-color:transparent;${typographyBody1Styles} align-items:center;background-color:${colorNeutralBackground1};border-radius:${borderRadiusMedium};box-sizing:border-box;color:${colorNeutralForeground2};column-gap:${spacingHorizontalXS};cursor:pointer;grid-template-areas:'indicator start content';grid-template-columns:auto auto 1fr;min-height:32px;padding:${spacingHorizontalSNudge};text-align:start}.content{grid-area:content;line-height:1}::slotted([slot='start']){grid-area:start}:host(:hover){background-color:${colorNeutralBackground1Hover};color:${colorNeutralForeground2Hover}}:host(:active){background-color:${colorNeutralBackground1Pressed};color:${colorNeutralForeground2Pressed}}:host(${nativeDisabledState}){background-color:${colorNeutralBackground1};color:${colorNeutralForegroundDisabled};cursor:default}.checkmark-16-filled{fill:currentColor;width:16px}slot[name='checked-indicator']>*,::slotted([slot='checked-indicator']){aspect-ratio:1;flex:0 0 auto;grid-area:indicator;visibility:hidden}:host(${selectedState}) :is(slot[name='checked-indicator']>*,::slotted([slot='checked-indicator'])){visibility:visible}:host(${multipleState}) .checkmark-16-filled,:host(:not(${multipleState})) .checkmark-12-regular{display:none}:host(${multipleState}) .checkmark-12-regular{background-color:${colorNeutralBackground1};border-radius:${borderRadiusSmall};border:${strokeWidthThin} solid ${colorNeutralStrokeAccessible};box-sizing:border-box;cursor:pointer;fill:transparent;position:relative;visibility:visible;width:16px}:host(${multipleState}${selectedState}) .checkmark-12-regular{background-color:${colorCompoundBrandBackground};border-color:${colorCompoundBrandStroke};fill:${colorNeutralForegroundInverted}}:host(${nativeDisabledState}${multipleState}) .checkmark-12-regular{border-color:${colorNeutralStrokeDisabled}}:host(${nativeDisabledState}${multipleState}${selectedState}) .checkmark-12-regular{background-color:${colorNeutralBackgroundDisabled}}:host([active]){border:${strokeWidthThick} solid ${colorStrokeFocus2}}@supports (selector(:host(:has(*)))){:host(:has([slot='start']:not([size='16']))){column-gap:${spacingHorizontalSNudge}}}:host(${descriptionState}){column-gap:${spacingHorizontalSNudge};grid-template-areas:'indicator start content' 'indicator start description'}::slotted([slot='description']){color:${colorNeutralForeground3};grid-area:description;${typographyCaption1Styles}}@media (forced-colors:active){:host(${nativeDisabledState}){color:GrayText}}`;
10678
10416
 
10679
10417
  const checkedIndicator$1 = html.partial(
10680
10418
  /* html */
@@ -10694,20 +10432,19 @@ const definition$g = {
10694
10432
  template: template$g
10695
10433
  };
10696
10434
 
10697
- var __defProp$l = Object.defineProperty;
10698
- var __getOwnPropDesc$l = Object.getOwnPropertyDescriptor;
10699
- var __decorateClass$l = (decorators, target, key, kind) => {
10700
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$l(target, key) : target;
10435
+ var __defProp$f = Object.defineProperty;
10436
+ var __getOwnPropDesc$f = Object.getOwnPropertyDescriptor;
10437
+ var __decorateClass$f = (decorators, target, key, kind) => {
10438
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$f(target, key) : target;
10701
10439
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
10702
10440
  if (decorator = decorators[i])
10703
10441
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
10704
- if (kind && result) __defProp$l(target, key, result);
10442
+ if (kind && result) __defProp$f(target, key, result);
10705
10443
  return result;
10706
10444
  };
10707
10445
  class DropdownOption extends FASTElement {
10708
10446
  constructor() {
10709
10447
  super();
10710
- this.active = false;
10711
10448
  this.id = uniqueId("option-");
10712
10449
  this.initialValue = "";
10713
10450
  this.multiple = false;
@@ -10725,16 +10462,6 @@ class DropdownOption extends FASTElement {
10725
10462
  this._value = this.initialValue;
10726
10463
  this.elementInternals.role = "option";
10727
10464
  }
10728
- /**
10729
- * Changes the active state of the option when the active property changes.
10730
- *
10731
- * @param prev - the previous active state
10732
- * @param next - the current active state
10733
- * @internal
10734
- */
10735
- activeChanged(prev, next) {
10736
- toggleState(this.elementInternals, "active", next);
10737
- }
10738
10465
  /**
10739
10466
  * Sets the selected property to match the currentSelected state.
10740
10467
  *
@@ -10912,46 +10639,43 @@ class DropdownOption extends FASTElement {
10912
10639
  * @public
10913
10640
  */
10914
10641
  DropdownOption.formAssociated = true;
10915
- __decorateClass$l([
10916
- observable
10917
- ], DropdownOption.prototype, "active", 2);
10918
- __decorateClass$l([
10642
+ __decorateClass$f([
10919
10643
  attr({ attribute: "current-selected", mode: "boolean" })
10920
10644
  ], DropdownOption.prototype, "currentSelected", 2);
10921
- __decorateClass$l([
10645
+ __decorateClass$f([
10922
10646
  attr({ attribute: "selected", mode: "boolean" })
10923
10647
  ], DropdownOption.prototype, "defaultSelected", 2);
10924
- __decorateClass$l([
10648
+ __decorateClass$f([
10925
10649
  observable
10926
10650
  ], DropdownOption.prototype, "descriptionSlot", 2);
10927
- __decorateClass$l([
10651
+ __decorateClass$f([
10928
10652
  observable
10929
10653
  ], DropdownOption.prototype, "disabled", 2);
10930
- __decorateClass$l([
10654
+ __decorateClass$f([
10931
10655
  attr({ attribute: "disabled", mode: "boolean" })
10932
10656
  ], DropdownOption.prototype, "disabledAttribute", 2);
10933
- __decorateClass$l([
10657
+ __decorateClass$f([
10934
10658
  attr({ attribute: "form" })
10935
10659
  ], DropdownOption.prototype, "formAttribute", 2);
10936
- __decorateClass$l([
10660
+ __decorateClass$f([
10937
10661
  attr({ mode: "boolean" })
10938
10662
  ], DropdownOption.prototype, "freeform", 2);
10939
- __decorateClass$l([
10663
+ __decorateClass$f([
10940
10664
  attr({ attribute: "id" })
10941
10665
  ], DropdownOption.prototype, "id", 2);
10942
- __decorateClass$l([
10666
+ __decorateClass$f([
10943
10667
  attr({ attribute: "value", mode: "fromView" })
10944
10668
  ], DropdownOption.prototype, "initialValue", 2);
10945
- __decorateClass$l([
10669
+ __decorateClass$f([
10946
10670
  observable
10947
10671
  ], DropdownOption.prototype, "multiple", 2);
10948
- __decorateClass$l([
10672
+ __decorateClass$f([
10949
10673
  attr
10950
10674
  ], DropdownOption.prototype, "name", 2);
10951
- __decorateClass$l([
10675
+ __decorateClass$f([
10952
10676
  observable
10953
10677
  ], DropdownOption.prototype, "start", 2);
10954
- __decorateClass$l([
10678
+ __decorateClass$f([
10955
10679
  attr({ attribute: "text", mode: "fromView" })
10956
10680
  ], DropdownOption.prototype, "textAttribute", 2);
10957
10681
 
@@ -10986,14 +10710,14 @@ const definition$f = {
10986
10710
  template: template$f
10987
10711
  };
10988
10712
 
10989
- var __defProp$k = Object.defineProperty;
10990
- var __getOwnPropDesc$k = Object.getOwnPropertyDescriptor;
10991
- var __decorateClass$k = (decorators, target, key, kind) => {
10992
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$k(target, key) : target;
10713
+ var __defProp$e = Object.defineProperty;
10714
+ var __getOwnPropDesc$e = Object.getOwnPropertyDescriptor;
10715
+ var __decorateClass$e = (decorators, target, key, kind) => {
10716
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$e(target, key) : target;
10993
10717
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
10994
10718
  if (decorator = decorators[i])
10995
10719
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
10996
- if (kind && result) __defProp$k(target, key, result);
10720
+ if (kind && result) __defProp$e(target, key, result);
10997
10721
  return result;
10998
10722
  };
10999
10723
  class BaseProgressBar extends FASTElement {
@@ -11005,7 +10729,6 @@ class BaseProgressBar extends FASTElement {
11005
10729
  * @internal
11006
10730
  */
11007
10731
  this.elementInternals = this.attachInternals();
11008
- this.validationState = null;
11009
10732
  this.elementInternals.role = "progressbar";
11010
10733
  }
11011
10734
  /**
@@ -11015,14 +10738,6 @@ class BaseProgressBar extends FASTElement {
11015
10738
  indicatorChanged() {
11016
10739
  this.setIndicatorWidth();
11017
10740
  }
11018
- /**
11019
- * Handles changes to validation-state attribute custom states
11020
- * @param prev - the previous state
11021
- * @param next - the next state
11022
- */
11023
- validationStateChanged(prev, next) {
11024
- swapStates(this.elementInternals, prev, next, ProgressBarValidationState);
11025
- }
11026
10741
  /**
11027
10742
  * Updates the percent complete when the `value` property changes.
11028
10743
  *
@@ -11084,40 +10799,21 @@ class BaseProgressBar extends FASTElement {
11084
10799
  });
11085
10800
  }
11086
10801
  }
11087
- __decorateClass$k([
10802
+ __decorateClass$e([
11088
10803
  observable
11089
10804
  ], BaseProgressBar.prototype, "indicator", 2);
11090
- __decorateClass$k([
11091
- attr({ attribute: "validation-state" })
11092
- ], BaseProgressBar.prototype, "validationState", 2);
11093
- __decorateClass$k([
10805
+ __decorateClass$e([
11094
10806
  attr({ converter: nullableNumberConverter })
11095
10807
  ], BaseProgressBar.prototype, "value", 2);
11096
- __decorateClass$k([
10808
+ __decorateClass$e([
11097
10809
  attr({ converter: nullableNumberConverter })
11098
10810
  ], BaseProgressBar.prototype, "min", 2);
11099
- __decorateClass$k([
10811
+ __decorateClass$e([
11100
10812
  attr({ converter: nullableNumberConverter })
11101
10813
  ], BaseProgressBar.prototype, "max", 2);
11102
10814
 
11103
- var __defProp$j = Object.defineProperty;
11104
- var __getOwnPropDesc$j = Object.getOwnPropertyDescriptor;
11105
- var __decorateClass$j = (decorators, target, key, kind) => {
11106
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$j(target, key) : target;
11107
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
11108
- if (decorator = decorators[i])
11109
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
11110
- if (kind && result) __defProp$j(target, key, result);
11111
- return result;
11112
- };
11113
10815
  class ProgressBar extends BaseProgressBar {
11114
10816
  }
11115
- __decorateClass$j([
11116
- attr
11117
- ], ProgressBar.prototype, "thickness", 2);
11118
- __decorateClass$j([
11119
- attr
11120
- ], ProgressBar.prototype, "shape", 2);
11121
10817
 
11122
10818
  ProgressBar.define(definition$f);
11123
10819
 
@@ -11143,14 +10839,14 @@ function isRadio(element, tagName2 = "-radio") {
11143
10839
  }
11144
10840
  const tagName$d = `${FluentDesignSystem.prefix}-radio`;
11145
10841
 
11146
- var __defProp$i = Object.defineProperty;
11147
- var __getOwnPropDesc$i = Object.getOwnPropertyDescriptor;
11148
- var __decorateClass$i = (decorators, target, key, kind) => {
11149
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$i(target, key) : target;
10842
+ var __defProp$d = Object.defineProperty;
10843
+ var __getOwnPropDesc$d = Object.getOwnPropertyDescriptor;
10844
+ var __decorateClass$d = (decorators, target, key, kind) => {
10845
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$d(target, key) : target;
11150
10846
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
11151
10847
  if (decorator = decorators[i])
11152
10848
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
11153
- if (kind && result) __defProp$i(target, key, result);
10849
+ if (kind && result) __defProp$d(target, key, result);
11154
10850
  return result;
11155
10851
  };
11156
10852
  class BaseRadioGroup extends FASTElement {
@@ -11546,28 +11242,28 @@ class BaseRadioGroup extends FASTElement {
11546
11242
  * @public
11547
11243
  */
11548
11244
  BaseRadioGroup.formAssociated = true;
11549
- __decorateClass$i([
11245
+ __decorateClass$d([
11550
11246
  observable
11551
11247
  ], BaseRadioGroup.prototype, "checkedIndex", 2);
11552
- __decorateClass$i([
11248
+ __decorateClass$d([
11553
11249
  attr({ attribute: "disabled", mode: "boolean" })
11554
11250
  ], BaseRadioGroup.prototype, "disabled", 2);
11555
- __decorateClass$i([
11251
+ __decorateClass$d([
11556
11252
  attr({ attribute: "value", mode: "fromView" })
11557
11253
  ], BaseRadioGroup.prototype, "initialValue", 2);
11558
- __decorateClass$i([
11254
+ __decorateClass$d([
11559
11255
  attr
11560
11256
  ], BaseRadioGroup.prototype, "name", 2);
11561
- __decorateClass$i([
11257
+ __decorateClass$d([
11562
11258
  attr
11563
11259
  ], BaseRadioGroup.prototype, "orientation", 2);
11564
- __decorateClass$i([
11260
+ __decorateClass$d([
11565
11261
  observable
11566
11262
  ], BaseRadioGroup.prototype, "radios", 2);
11567
- __decorateClass$i([
11263
+ __decorateClass$d([
11568
11264
  attr({ mode: "boolean" })
11569
11265
  ], BaseRadioGroup.prototype, "required", 2);
11570
- __decorateClass$i([
11266
+ __decorateClass$d([
11571
11267
  observable
11572
11268
  ], BaseRadioGroup.prototype, "slottedRadios", 2);
11573
11269
 
@@ -11694,14 +11390,14 @@ const RatingDisplaySize = {
11694
11390
  };
11695
11391
  const tagName$c = `${FluentDesignSystem.prefix}-rating-display`;
11696
11392
 
11697
- var __defProp$h = Object.defineProperty;
11698
- var __getOwnPropDesc$h = Object.getOwnPropertyDescriptor;
11699
- var __decorateClass$h = (decorators, target, key, kind) => {
11700
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$h(target, key) : target;
11393
+ var __defProp$c = Object.defineProperty;
11394
+ var __getOwnPropDesc$c = Object.getOwnPropertyDescriptor;
11395
+ var __decorateClass$c = (decorators, target, key, kind) => {
11396
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$c(target, key) : target;
11701
11397
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
11702
11398
  if (decorator = decorators[i])
11703
11399
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
11704
- if (kind && result) __defProp$h(target, key, result);
11400
+ if (kind && result) __defProp$c(target, key, result);
11705
11401
  return result;
11706
11402
  };
11707
11403
  const SUPPORTS_ATTR_TYPE = CSS.supports("width: attr(value type(<number>))");
@@ -11800,19 +11496,19 @@ class BaseRatingDisplay extends FASTElement {
11800
11496
  });
11801
11497
  }
11802
11498
  }
11803
- __decorateClass$h([
11499
+ __decorateClass$c([
11804
11500
  observable
11805
11501
  ], BaseRatingDisplay.prototype, "iconSlot", 2);
11806
- __decorateClass$h([
11502
+ __decorateClass$c([
11807
11503
  attr({ converter: nullableNumberConverter })
11808
11504
  ], BaseRatingDisplay.prototype, "count", 2);
11809
- __decorateClass$h([
11505
+ __decorateClass$c([
11810
11506
  attr({ attribute: "icon-view-box" })
11811
11507
  ], BaseRatingDisplay.prototype, "iconViewBox", 2);
11812
- __decorateClass$h([
11508
+ __decorateClass$c([
11813
11509
  attr({ converter: nullableNumberConverter })
11814
11510
  ], BaseRatingDisplay.prototype, "max", 2);
11815
- __decorateClass$h([
11511
+ __decorateClass$c([
11816
11512
  attr({ converter: nullableNumberConverter })
11817
11513
  ], BaseRatingDisplay.prototype, "value", 2);
11818
11514
 
@@ -11839,31 +11535,8 @@ const definition$c = {
11839
11535
  template: template$c
11840
11536
  };
11841
11537
 
11842
- var __defProp$g = Object.defineProperty;
11843
- var __getOwnPropDesc$g = Object.getOwnPropertyDescriptor;
11844
- var __decorateClass$g = (decorators, target, key, kind) => {
11845
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$g(target, key) : target;
11846
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
11847
- if (decorator = decorators[i])
11848
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
11849
- if (kind && result) __defProp$g(target, key, result);
11850
- return result;
11851
- };
11852
11538
  class RatingDisplay extends BaseRatingDisplay {
11853
- constructor() {
11854
- super(...arguments);
11855
- this.compact = false;
11856
- }
11857
11539
  }
11858
- __decorateClass$g([
11859
- attr
11860
- ], RatingDisplay.prototype, "color", 2);
11861
- __decorateClass$g([
11862
- attr
11863
- ], RatingDisplay.prototype, "size", 2);
11864
- __decorateClass$g([
11865
- attr({ mode: "boolean" })
11866
- ], RatingDisplay.prototype, "compact", 2);
11867
11540
 
11868
11541
  RatingDisplay.define(definition$c);
11869
11542
 
@@ -11916,14 +11589,14 @@ function convertPixelToPercent(pixelPos, minPosition, maxPosition, direction) {
11916
11589
  return pct;
11917
11590
  }
11918
11591
 
11919
- var __defProp$f = Object.defineProperty;
11920
- var __getOwnPropDesc$f = Object.getOwnPropertyDescriptor;
11921
- var __decorateClass$f = (decorators, target, key, kind) => {
11922
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$f(target, key) : target;
11592
+ var __defProp$b = Object.defineProperty;
11593
+ var __getOwnPropDesc$b = Object.getOwnPropertyDescriptor;
11594
+ var __decorateClass$b = (decorators, target, key, kind) => {
11595
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$b(target, key) : target;
11923
11596
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
11924
11597
  if (decorator = decorators[i])
11925
11598
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
11926
- if (kind && result) __defProp$f(target, key, result);
11599
+ if (kind && result) __defProp$b(target, key, result);
11927
11600
  return result;
11928
11601
  };
11929
11602
  class Slider extends FASTElement {
@@ -12464,55 +12137,52 @@ class Slider extends FASTElement {
12464
12137
  * @public
12465
12138
  */
12466
12139
  Slider.formAssociated = true;
12467
- __decorateClass$f([
12468
- attr
12469
- ], Slider.prototype, "size", 2);
12470
- __decorateClass$f([
12140
+ __decorateClass$b([
12471
12141
  attr({ attribute: "value", mode: "fromView" })
12472
12142
  ], Slider.prototype, "initialValue", 2);
12473
- __decorateClass$f([
12143
+ __decorateClass$b([
12474
12144
  observable
12475
12145
  ], Slider.prototype, "direction", 2);
12476
- __decorateClass$f([
12146
+ __decorateClass$b([
12477
12147
  observable
12478
12148
  ], Slider.prototype, "isDragging", 2);
12479
- __decorateClass$f([
12149
+ __decorateClass$b([
12480
12150
  observable
12481
12151
  ], Slider.prototype, "position", 2);
12482
- __decorateClass$f([
12152
+ __decorateClass$b([
12483
12153
  observable
12484
12154
  ], Slider.prototype, "trackWidth", 2);
12485
- __decorateClass$f([
12155
+ __decorateClass$b([
12486
12156
  observable
12487
12157
  ], Slider.prototype, "trackMinWidth", 2);
12488
- __decorateClass$f([
12158
+ __decorateClass$b([
12489
12159
  observable
12490
12160
  ], Slider.prototype, "trackHeight", 2);
12491
- __decorateClass$f([
12161
+ __decorateClass$b([
12492
12162
  observable
12493
12163
  ], Slider.prototype, "trackLeft", 2);
12494
- __decorateClass$f([
12164
+ __decorateClass$b([
12495
12165
  observable
12496
12166
  ], Slider.prototype, "trackMinHeight", 2);
12497
- __decorateClass$f([
12167
+ __decorateClass$b([
12498
12168
  observable
12499
12169
  ], Slider.prototype, "valueTextFormatter", 2);
12500
- __decorateClass$f([
12170
+ __decorateClass$b([
12501
12171
  attr({ mode: "boolean" })
12502
12172
  ], Slider.prototype, "disabled", 2);
12503
- __decorateClass$f([
12173
+ __decorateClass$b([
12504
12174
  attr({ converter: numberLikeStringConverter })
12505
12175
  ], Slider.prototype, "min", 2);
12506
- __decorateClass$f([
12176
+ __decorateClass$b([
12507
12177
  attr({ converter: numberLikeStringConverter })
12508
12178
  ], Slider.prototype, "max", 2);
12509
- __decorateClass$f([
12179
+ __decorateClass$b([
12510
12180
  attr({ converter: numberLikeStringConverter })
12511
12181
  ], Slider.prototype, "step", 2);
12512
- __decorateClass$f([
12182
+ __decorateClass$b([
12513
12183
  attr
12514
12184
  ], Slider.prototype, "orientation", 2);
12515
- __decorateClass$f([
12185
+ __decorateClass$b([
12516
12186
  attr
12517
12187
  ], Slider.prototype, "mode", 2);
12518
12188
 
@@ -12557,24 +12227,8 @@ class BaseSpinner extends FASTElement {
12557
12227
  }
12558
12228
  }
12559
12229
 
12560
- var __defProp$e = Object.defineProperty;
12561
- var __getOwnPropDesc$e = Object.getOwnPropertyDescriptor;
12562
- var __decorateClass$e = (decorators, target, key, kind) => {
12563
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$e(target, key) : target;
12564
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
12565
- if (decorator = decorators[i])
12566
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
12567
- if (kind && result) __defProp$e(target, key, result);
12568
- return result;
12569
- };
12570
12230
  class Spinner extends BaseSpinner {
12571
12231
  }
12572
- __decorateClass$e([
12573
- attr
12574
- ], Spinner.prototype, "size", 2);
12575
- __decorateClass$e([
12576
- attr
12577
- ], Spinner.prototype, "appearance", 2);
12578
12232
 
12579
12233
  Spinner.define(definition$a);
12580
12234
 
@@ -12585,7 +12239,7 @@ const SwitchLabelPosition = {
12585
12239
  };
12586
12240
  const tagName$9 = `${FluentDesignSystem.prefix}-switch`;
12587
12241
 
12588
- const styles$9 = css`${display("inline-flex")} :host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${spacingHorizontalXXS};width:40px;height:20px;background-color:${colorTransparentBackground};border:1px solid ${colorNeutralStrokeAccessible};border-radius:${borderRadiusCircular}}:host(:enabled){cursor:pointer}:host(:hover){background:none;border-color:${colorNeutralStrokeAccessibleHover}}:host(:active){border-color:${colorNeutralStrokeAccessiblePressed}}:host(${nativeDisabledState}),:host([readonly]){border:1px solid ${colorNeutralStrokeDisabled};background-color:none;pointer:default}:host(${checkedState}){background:${colorCompoundBrandBackground};border-color:${colorCompoundBrandBackground}}:host(${checkedState}:hover){background:${colorCompoundBrandBackgroundHover};border-color:${colorCompoundBrandBackgroundHover}}:host(${checkedState}:active){background:${colorCompoundBrandBackgroundPressed};border-color:${colorCompoundBrandBackgroundPressed}}:host(${checkedState}${nativeDisabledState}){background:${colorNeutralBackgroundDisabled};border-color:${colorNeutralStrokeDisabled}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${colorNeutralForeground3};transition-duration:${durationNormal};transition-timing-function:${curveEasyEase};transition-property:margin-inline-start}:host(${checkedState}) .checked-indicator{background-color:${colorNeutralForegroundInverted};margin-inline-start:calc(100% - 14px)}:host(${checkedState}:hover) .checked-indicator{background:${colorNeutralForegroundInvertedHover}}:host(${checkedState}:active) .checked-indicator{background:${colorNeutralForegroundInvertedPressed}}:host(:hover) .checked-indicator{background-color:${colorNeutralForeground3Hover}}:host(:active) .checked-indicator{background-color:${colorNeutralForeground3Pressed}}:host(${nativeDisabledState}) .checked-indicator,:host([readonly]) .checked-indicator{background:${colorNeutralForegroundDisabled}}:host(${checkedState}${nativeDisabledState}) .checked-indicator{background:${colorNeutralForegroundDisabled}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${colorTransparentStroke};outline:${strokeWidthThick} solid ${colorTransparentStroke};outline-offset:1px;box-shadow:${shadow4},0 0 0 2px ${colorStrokeFocus2}}@media (forced-colors:active){:host{border-color:InactiveBorder}:host(${checkedState}),:host(${checkedState}:active),:host(${checkedState}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${checkedState}) .checked-indicator,:host(${checkedState}:hover) .checked-indicator,:host(${checkedState}:active) .checked-indicator{background-color:ButtonFace}:host(${nativeDisabledState}) .checked-indicator,:host(${checkedState}${nativeDisabledState}) .checked-indicator{background-color:GrayText}}`;
12242
+ const styles$9 = css`${display("inline-flex")} :host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${spacingHorizontalXXS};width:40px;height:20px;background-color:${colorTransparentBackground};border:1px solid ${colorNeutralStrokeAccessible};border-radius:${borderRadiusCircular}}:host(:enabled){cursor:pointer}:host(:hover){background:none;border-color:${colorNeutralStrokeAccessibleHover}}:host(:active){border-color:${colorNeutralStrokeAccessiblePressed}}:host(${nativeDisabledState}),:host([readonly]){border:1px solid ${colorNeutralStrokeDisabled};background-color:none;pointer:default}:host(${checkedState}){background:${colorCompoundBrandBackground};border-color:${colorCompoundBrandBackground}}:host(${checkedState}:hover){background:${colorCompoundBrandBackgroundHover};border-color:${colorCompoundBrandBackgroundHover}}:host(${checkedState}:active){background:${colorCompoundBrandBackgroundPressed};border-color:${colorCompoundBrandBackgroundPressed}}:host(${checkedState}${nativeDisabledState}){background:${colorNeutralBackgroundDisabled};border-color:${colorNeutralStrokeDisabled}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${colorNeutralForeground3};transition-duration:${durationNormal};transition-timing-function:${curveEasyEase};transition-property:margin-inline-start}:host(${checkedState}) .checked-indicator{background-color:${colorNeutralForegroundInverted};margin-inline-start:calc(100% - 14px)}:host(${checkedState}:hover) .checked-indicator{background:${colorNeutralForegroundInvertedHover}}:host(${checkedState}:active) .checked-indicator{background:${colorNeutralForegroundInvertedPressed}}:host(:hover) .checked-indicator{background-color:${colorNeutralForeground3Hover}}:host(:active) .checked-indicator{background-color:${colorNeutralForeground3Pressed}}:host(${nativeDisabledState}) .checked-indicator,:host([readonly]) .checked-indicator{background:${colorNeutralForegroundDisabled}}:host(${checkedState}${nativeDisabledState}) .checked-indicator{background:${colorNeutralForegroundDisabled}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${colorTransparentStroke};outline:${strokeWidthThick} solid ${colorTransparentStroke};outline-offset:1px;box-shadow:${shadow4},0 0 0 2px ${colorStrokeFocus2}}@media (forced-colors:active){:host{border-color:InactiveBorder}:host(${checkedState}),:host(${checkedState}:active),:host(${checkedState}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:CanvasText}:host(${checkedState}) .checked-indicator,:host(${checkedState}:hover) .checked-indicator,:host(${checkedState}:active) .checked-indicator{background-color:HighlightText}:host(${nativeDisabledState}) .checked-indicator,:host(${checkedState}${nativeDisabledState}) .checked-indicator{background-color:GrayText}}`;
12589
12243
 
12590
12244
  function switchTemplate(options = {}) {
12591
12245
  return html`<template @click=${(x, c) => x.clickHandler(c.event)} @input=${(x, c) => x.inputHandler(c.event)} @keydown=${(x, c) => x.keydownHandler(c.event)} @keyup=${(x, c) => x.keyupHandler(c.event)}><slot name=switch>${staticallyCompose(options.switch)}</slot></template>`;
@@ -12632,14 +12286,14 @@ const definition$8 = {
12632
12286
  template: template$8
12633
12287
  };
12634
12288
 
12635
- var __defProp$d = Object.defineProperty;
12636
- var __getOwnPropDesc$d = Object.getOwnPropertyDescriptor;
12637
- var __decorateClass$d = (decorators, target, key, kind) => {
12638
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$d(target, key) : target;
12289
+ var __defProp$a = Object.defineProperty;
12290
+ var __getOwnPropDesc$a = Object.getOwnPropertyDescriptor;
12291
+ var __decorateClass$a = (decorators, target, key, kind) => {
12292
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$a(target, key) : target;
12639
12293
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
12640
12294
  if (decorator = decorators[i])
12641
12295
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
12642
- if (kind && result) __defProp$d(target, key, result);
12296
+ if (kind && result) __defProp$a(target, key, result);
12643
12297
  return result;
12644
12298
  };
12645
12299
  class Tab extends FASTElement {
@@ -12676,7 +12330,7 @@ class Tab extends FASTElement {
12676
12330
  this.tabIndex = disabled && this.getAttribute("aria-selected") !== "true" ? -1 : 0;
12677
12331
  }
12678
12332
  }
12679
- __decorateClass$d([
12333
+ __decorateClass$a([
12680
12334
  attr({ mode: "boolean" })
12681
12335
  ], Tab.prototype, "disabled", 2);
12682
12336
  applyMixins(Tab, StartEnd);
@@ -12706,14 +12360,14 @@ const definition$7 = {
12706
12360
  template: template$7
12707
12361
  };
12708
12362
 
12709
- var __defProp$c = Object.defineProperty;
12710
- var __getOwnPropDesc$c = Object.getOwnPropertyDescriptor;
12711
- var __decorateClass$c = (decorators, target, key, kind) => {
12712
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$c(target, key) : target;
12363
+ var __defProp$9 = Object.defineProperty;
12364
+ var __getOwnPropDesc$9 = Object.getOwnPropertyDescriptor;
12365
+ var __decorateClass$9 = (decorators, target, key, kind) => {
12366
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$9(target, key) : target;
12713
12367
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
12714
12368
  if (decorator = decorators[i])
12715
12369
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
12716
- if (kind && result) __defProp$c(target, key, result);
12370
+ if (kind && result) __defProp$9(target, key, result);
12717
12371
  return result;
12718
12372
  };
12719
12373
  class BaseTablist extends FASTElement {
@@ -12855,37 +12509,23 @@ class BaseTablist extends FASTElement {
12855
12509
  );
12856
12510
  }
12857
12511
  }
12858
- __decorateClass$c([
12512
+ __decorateClass$9([
12859
12513
  attr({ mode: "boolean" })
12860
12514
  ], BaseTablist.prototype, "disabled", 2);
12861
- __decorateClass$c([
12515
+ __decorateClass$9([
12862
12516
  attr
12863
12517
  ], BaseTablist.prototype, "orientation", 2);
12864
- __decorateClass$c([
12518
+ __decorateClass$9([
12865
12519
  attr
12866
12520
  ], BaseTablist.prototype, "activeid", 2);
12867
- __decorateClass$c([
12521
+ __decorateClass$9([
12868
12522
  observable
12869
12523
  ], BaseTablist.prototype, "slottedTabs", 2);
12870
- __decorateClass$c([
12524
+ __decorateClass$9([
12871
12525
  observable
12872
12526
  ], BaseTablist.prototype, "tabs", 2);
12873
12527
 
12874
- var __defProp$b = Object.defineProperty;
12875
- var __getOwnPropDesc$b = Object.getOwnPropertyDescriptor;
12876
- var __decorateClass$b = (decorators, target, key, kind) => {
12877
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$b(target, key) : target;
12878
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
12879
- if (decorator = decorators[i])
12880
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
12881
- if (kind && result) __defProp$b(target, key, result);
12882
- return result;
12883
- };
12884
12528
  class Tablist extends BaseTablist {
12885
- constructor() {
12886
- super(...arguments);
12887
- this.appearance = TablistAppearance.transparent;
12888
- }
12889
12529
  disconnectedCallback() {
12890
12530
  this.fg?.disconnect();
12891
12531
  super.disconnectedCallback();
@@ -12910,12 +12550,6 @@ class Tablist extends BaseTablist {
12910
12550
  }
12911
12551
  }
12912
12552
  }
12913
- __decorateClass$b([
12914
- attr
12915
- ], Tablist.prototype, "appearance", 2);
12916
- __decorateClass$b([
12917
- attr
12918
- ], Tablist.prototype, "size", 2);
12919
12553
 
12920
12554
  Tablist.define(definition$7);
12921
12555
 
@@ -12964,14 +12598,14 @@ const definition$6 = {
12964
12598
 
12965
12599
  const whitespaceFilter = (value) => value.nodeType !== Node.TEXT_NODE || !!value.nodeValue?.trim().length;
12966
12600
 
12967
- var __defProp$a = Object.defineProperty;
12968
- var __getOwnPropDesc$a = Object.getOwnPropertyDescriptor;
12969
- var __decorateClass$a = (decorators, target, key, kind) => {
12970
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$a(target, key) : target;
12601
+ var __defProp$8 = Object.defineProperty;
12602
+ var __getOwnPropDesc$8 = Object.getOwnPropertyDescriptor;
12603
+ var __decorateClass$8 = (decorators, target, key, kind) => {
12604
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$8(target, key) : target;
12971
12605
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
12972
12606
  if (decorator = decorators[i])
12973
12607
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
12974
- if (kind && result) __defProp$a(target, key, result);
12608
+ if (kind && result) __defProp$8(target, key, result);
12975
12609
  return result;
12976
12610
  };
12977
12611
  class BaseTextArea extends FASTElement {
@@ -12989,10 +12623,8 @@ class BaseTextArea extends FASTElement {
12989
12623
  this.preConnectControlEl = document.createElement("textarea");
12990
12624
  this.autoResize = false;
12991
12625
  this.disabled = false;
12992
- this.displayShadow = false;
12993
12626
  this.readOnly = false;
12994
12627
  this.required = false;
12995
- this.resize = TextAreaResize.none;
12996
12628
  this.spellcheck = false;
12997
12629
  }
12998
12630
  /**
@@ -13024,7 +12656,7 @@ class BaseTextArea extends FASTElement {
13024
12656
  this.labelEl.hidden = !this.filteredLabelSlottedNodes.length;
13025
12657
  }
13026
12658
  this.filteredLabelSlottedNodes.forEach((node) => {
13027
- node.disabled = this.disabled;
12659
+ node.toggleAttribute("disabled", this.disabled);
13028
12660
  node.required = this.required;
13029
12661
  });
13030
12662
  }
@@ -13064,14 +12696,6 @@ class BaseTextArea extends FASTElement {
13064
12696
  this.filteredLabelSlottedNodes.forEach((node) => node.required = this.required);
13065
12697
  }
13066
12698
  }
13067
- resizeChanged(prev, next) {
13068
- swapStates(this.elementInternals, prev, next, TextAreaResize, "resize-");
13069
- toggleState(
13070
- this.elementInternals,
13071
- "resize",
13072
- hasMatchingState(TextAreaResize, next) && next !== TextAreaResize.none
13073
- );
13074
- }
13075
12699
  /**
13076
12700
  * The length of the current value.
13077
12701
  * @see The {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement#textLength | 'textLength'} property
@@ -13292,7 +12916,7 @@ class BaseTextArea extends FASTElement {
13292
12916
  this.controlEl.disabled = disabled;
13293
12917
  }
13294
12918
  if (this.filteredLabelSlottedNodes?.length) {
13295
- this.filteredLabelSlottedNodes.forEach((node) => node.disabled = this.disabled);
12919
+ this.filteredLabelSlottedNodes.forEach((node) => node.toggleAttribute("disabled", this.disabled));
13296
12920
  }
13297
12921
  }
13298
12922
  toggleUserValidityState() {
@@ -13359,78 +12983,71 @@ class BaseTextArea extends FASTElement {
13359
12983
  * @public
13360
12984
  */
13361
12985
  BaseTextArea.formAssociated = true;
13362
- __decorateClass$a([
12986
+ __decorateClass$8([
13363
12987
  observable
13364
12988
  ], BaseTextArea.prototype, "controlEl", 2);
13365
- __decorateClass$a([
12989
+ __decorateClass$8([
13366
12990
  observable
13367
12991
  ], BaseTextArea.prototype, "defaultSlottedNodes", 2);
13368
- __decorateClass$a([
12992
+ __decorateClass$8([
13369
12993
  observable
13370
12994
  ], BaseTextArea.prototype, "labelSlottedNodes", 2);
13371
- __decorateClass$a([
12995
+ __decorateClass$8([
13372
12996
  attr
13373
12997
  ], BaseTextArea.prototype, "autocomplete", 2);
13374
- __decorateClass$a([
12998
+ __decorateClass$8([
13375
12999
  attr({ attribute: "auto-resize", mode: "boolean" })
13376
13000
  ], BaseTextArea.prototype, "autoResize", 2);
13377
- __decorateClass$a([
13001
+ __decorateClass$8([
13378
13002
  attr({ attribute: "dirname" })
13379
13003
  ], BaseTextArea.prototype, "dirName", 2);
13380
- __decorateClass$a([
13004
+ __decorateClass$8([
13381
13005
  attr({ mode: "boolean" })
13382
13006
  ], BaseTextArea.prototype, "disabled", 2);
13383
- __decorateClass$a([
13384
- attr({ attribute: "display-shadow", mode: "boolean" })
13385
- ], BaseTextArea.prototype, "displayShadow", 2);
13386
- __decorateClass$a([
13007
+ __decorateClass$8([
13387
13008
  attr({ attribute: "form" })
13388
13009
  ], BaseTextArea.prototype, "initialForm", 2);
13389
- __decorateClass$a([
13010
+ __decorateClass$8([
13390
13011
  attr({ attribute: "maxlength", converter: nullableNumberConverter })
13391
13012
  ], BaseTextArea.prototype, "maxLength", 2);
13392
- __decorateClass$a([
13013
+ __decorateClass$8([
13393
13014
  attr({ attribute: "minlength", converter: nullableNumberConverter })
13394
13015
  ], BaseTextArea.prototype, "minLength", 2);
13395
- __decorateClass$a([
13016
+ __decorateClass$8([
13396
13017
  attr
13397
13018
  ], BaseTextArea.prototype, "name", 2);
13398
- __decorateClass$a([
13019
+ __decorateClass$8([
13399
13020
  attr
13400
13021
  ], BaseTextArea.prototype, "placeholder", 2);
13401
- __decorateClass$a([
13022
+ __decorateClass$8([
13402
13023
  attr({ attribute: "readonly", mode: "boolean" })
13403
13024
  ], BaseTextArea.prototype, "readOnly", 2);
13404
- __decorateClass$a([
13025
+ __decorateClass$8([
13405
13026
  attr({ mode: "boolean" })
13406
13027
  ], BaseTextArea.prototype, "required", 2);
13407
- __decorateClass$a([
13408
- attr({ mode: "fromView" })
13409
- ], BaseTextArea.prototype, "resize", 2);
13410
- __decorateClass$a([
13028
+ __decorateClass$8([
13411
13029
  attr({ mode: "boolean" })
13412
13030
  ], BaseTextArea.prototype, "spellcheck", 2);
13413
13031
 
13414
- var __defProp$9 = Object.defineProperty;
13415
- var __getOwnPropDesc$9 = Object.getOwnPropertyDescriptor;
13416
- var __decorateClass$9 = (decorators, target, key, kind) => {
13417
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$9(target, key) : target;
13032
+ var __defProp$7 = Object.defineProperty;
13033
+ var __getOwnPropDesc$7 = Object.getOwnPropertyDescriptor;
13034
+ var __decorateClass$7 = (decorators, target, key, kind) => {
13035
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$7(target, key) : target;
13418
13036
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
13419
13037
  if (decorator = decorators[i])
13420
13038
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
13421
- if (kind && result) __defProp$9(target, key, result);
13039
+ if (kind && result) __defProp$7(target, key, result);
13422
13040
  return result;
13423
13041
  };
13424
13042
  class TextArea extends BaseTextArea {
13425
- constructor() {
13426
- super(...arguments);
13427
- this.appearance = TextAreaAppearance.outline;
13428
- this.block = false;
13429
- }
13430
13043
  labelSlottedNodesChanged() {
13431
13044
  super.labelSlottedNodesChanged();
13432
13045
  this.labelSlottedNodes.forEach((node) => {
13433
- node.size = this.size;
13046
+ if (this.size) {
13047
+ node.setAttribute("size", this.size);
13048
+ } else {
13049
+ node.removeAttribute("size");
13050
+ }
13434
13051
  });
13435
13052
  }
13436
13053
  /**
@@ -13440,7 +13057,11 @@ class TextArea extends BaseTextArea {
13440
13057
  switch (propertyName) {
13441
13058
  case "size":
13442
13059
  this.labelSlottedNodes.forEach((node) => {
13443
- node.size = this.size;
13060
+ if (this.size) {
13061
+ node.setAttribute("size", this.size);
13062
+ } else {
13063
+ node.removeAttribute("size");
13064
+ }
13444
13065
  });
13445
13066
  break;
13446
13067
  }
@@ -13460,13 +13081,7 @@ class TextArea extends BaseTextArea {
13460
13081
  Observable.getNotifier(this).unsubscribe(this, "size");
13461
13082
  }
13462
13083
  }
13463
- __decorateClass$9([
13464
- attr({ mode: "fromView" })
13465
- ], TextArea.prototype, "appearance", 2);
13466
- __decorateClass$9([
13467
- attr({ mode: "boolean" })
13468
- ], TextArea.prototype, "block", 2);
13469
- __decorateClass$9([
13084
+ __decorateClass$7([
13470
13085
  attr
13471
13086
  ], TextArea.prototype, "size", 2);
13472
13087
 
@@ -13523,14 +13138,14 @@ const definition$5 = {
13523
13138
  template: template$5
13524
13139
  };
13525
13140
 
13526
- var __defProp$8 = Object.defineProperty;
13527
- var __getOwnPropDesc$8 = Object.getOwnPropertyDescriptor;
13528
- var __decorateClass$8 = (decorators, target, key, kind) => {
13529
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$8(target, key) : target;
13141
+ var __defProp$6 = Object.defineProperty;
13142
+ var __getOwnPropDesc$6 = Object.getOwnPropertyDescriptor;
13143
+ var __decorateClass$6 = (decorators, target, key, kind) => {
13144
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$6(target, key) : target;
13530
13145
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
13531
13146
  if (decorator = decorators[i])
13532
13147
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
13533
- if (kind && result) __defProp$8(target, key, result);
13148
+ if (kind && result) __defProp$6(target, key, result);
13534
13149
  return result;
13535
13150
  };
13536
13151
  class BaseTextInput extends FASTElement {
@@ -13543,6 +13158,18 @@ class BaseTextInput extends FASTElement {
13543
13158
  * @internal
13544
13159
  */
13545
13160
  this.dirtyValue = false;
13161
+ /**
13162
+ * The value as of the last `change` event or programmatic update.
13163
+ *
13164
+ * @internal
13165
+ */
13166
+ this.committedValue = "";
13167
+ /**
13168
+ * Indicates that `value` is being updated from the internal control's `input` event.
13169
+ *
13170
+ * @internal
13171
+ */
13172
+ this.isUserInput = false;
13546
13173
  /**
13547
13174
  * The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
13548
13175
  *
@@ -13653,6 +13280,9 @@ class BaseTextInput extends FASTElement {
13653
13280
  }
13654
13281
  set value(value) {
13655
13282
  this.currentValue = value;
13283
+ if (!this.isUserInput) {
13284
+ this.committedValue = value ?? "";
13285
+ }
13656
13286
  if (this.elementInternals && this.control) {
13657
13287
  this.control.value = value ?? "";
13658
13288
  this.setFormValue(value);
@@ -13689,12 +13319,23 @@ class BaseTextInput extends FASTElement {
13689
13319
  * proxies the change event, emitting a `change` event whenever the internal control emits a `change` event.
13690
13320
  */
13691
13321
  changeHandler(e) {
13322
+ if (this.control.value !== this.committedValue) {
13323
+ this.emitChange(e);
13324
+ }
13325
+ return true;
13326
+ }
13327
+ /**
13328
+ * Validates, records the committed value, and emits `change` on the host.
13329
+ *
13330
+ * @internal
13331
+ */
13332
+ emitChange(detail) {
13333
+ this.committedValue = this.control.value;
13692
13334
  this.setValidity();
13693
- this.$emit("change", e, {
13335
+ this.$emit("change", detail, {
13694
13336
  bubbles: true,
13695
13337
  composed: true
13696
13338
  });
13697
- return true;
13698
13339
  }
13699
13340
  /**
13700
13341
  * Checks the validity of the element and returns the result.
@@ -13766,7 +13407,12 @@ class BaseTextInput extends FASTElement {
13766
13407
  */
13767
13408
  inputHandler(e) {
13768
13409
  this.dirtyValue = true;
13769
- this.value = this.control.value;
13410
+ this.isUserInput = true;
13411
+ try {
13412
+ this.value = this.control.value;
13413
+ } finally {
13414
+ this.isUserInput = false;
13415
+ }
13770
13416
  return true;
13771
13417
  }
13772
13418
  /**
@@ -13776,9 +13422,19 @@ class BaseTextInput extends FASTElement {
13776
13422
  * @internal
13777
13423
  */
13778
13424
  keydownHandler(e) {
13779
- if (e.key === "Enter") {
13780
- this.implicitSubmit();
13425
+ if (e.key !== "Enter") {
13426
+ return true;
13427
+ }
13428
+ if (e.isComposing || e.keyCode === 229) {
13429
+ return true;
13430
+ }
13431
+ if (e.composedPath()[0] !== this.control) {
13432
+ return true;
13433
+ }
13434
+ if (this.control.value !== this.committedValue) {
13435
+ this.emitChange();
13781
13436
  }
13437
+ this.implicitSubmit();
13782
13438
  return true;
13783
13439
  }
13784
13440
  /**
@@ -13852,58 +13508,58 @@ class BaseTextInput extends FASTElement {
13852
13508
  * @public
13853
13509
  */
13854
13510
  BaseTextInput.formAssociated = true;
13855
- __decorateClass$8([
13511
+ __decorateClass$6([
13856
13512
  attr
13857
13513
  ], BaseTextInput.prototype, "autocomplete", 2);
13858
- __decorateClass$8([
13514
+ __decorateClass$6([
13859
13515
  attr({ attribute: "current-value" })
13860
13516
  ], BaseTextInput.prototype, "currentValue", 2);
13861
- __decorateClass$8([
13517
+ __decorateClass$6([
13862
13518
  observable
13863
13519
  ], BaseTextInput.prototype, "defaultSlottedNodes", 2);
13864
- __decorateClass$8([
13520
+ __decorateClass$6([
13865
13521
  attr
13866
13522
  ], BaseTextInput.prototype, "dirname", 2);
13867
- __decorateClass$8([
13523
+ __decorateClass$6([
13868
13524
  attr({ mode: "boolean" })
13869
13525
  ], BaseTextInput.prototype, "disabled", 2);
13870
- __decorateClass$8([
13526
+ __decorateClass$6([
13871
13527
  attr({ attribute: "form" })
13872
13528
  ], BaseTextInput.prototype, "formAttribute", 2);
13873
- __decorateClass$8([
13529
+ __decorateClass$6([
13874
13530
  attr({ attribute: "value", mode: "fromView" })
13875
13531
  ], BaseTextInput.prototype, "initialValue", 2);
13876
- __decorateClass$8([
13532
+ __decorateClass$6([
13877
13533
  attr
13878
13534
  ], BaseTextInput.prototype, "list", 2);
13879
- __decorateClass$8([
13535
+ __decorateClass$6([
13880
13536
  attr({ converter: nullableNumberConverter })
13881
13537
  ], BaseTextInput.prototype, "maxlength", 2);
13882
- __decorateClass$8([
13538
+ __decorateClass$6([
13883
13539
  attr({ converter: nullableNumberConverter })
13884
13540
  ], BaseTextInput.prototype, "minlength", 2);
13885
- __decorateClass$8([
13541
+ __decorateClass$6([
13886
13542
  attr({ mode: "boolean" })
13887
13543
  ], BaseTextInput.prototype, "multiple", 2);
13888
- __decorateClass$8([
13544
+ __decorateClass$6([
13889
13545
  attr
13890
13546
  ], BaseTextInput.prototype, "name", 2);
13891
- __decorateClass$8([
13547
+ __decorateClass$6([
13892
13548
  attr
13893
13549
  ], BaseTextInput.prototype, "pattern", 2);
13894
- __decorateClass$8([
13550
+ __decorateClass$6([
13895
13551
  attr
13896
13552
  ], BaseTextInput.prototype, "placeholder", 2);
13897
- __decorateClass$8([
13553
+ __decorateClass$6([
13898
13554
  attr({ attribute: "readonly", mode: "boolean" })
13899
13555
  ], BaseTextInput.prototype, "readOnly", 2);
13900
- __decorateClass$8([
13556
+ __decorateClass$6([
13901
13557
  attr({ mode: "boolean" })
13902
13558
  ], BaseTextInput.prototype, "required", 2);
13903
- __decorateClass$8([
13559
+ __decorateClass$6([
13904
13560
  attr({ converter: nullableNumberConverter })
13905
13561
  ], BaseTextInput.prototype, "size", 2);
13906
- __decorateClass$8([
13562
+ __decorateClass$6([
13907
13563
  attr({
13908
13564
  converter: {
13909
13565
  fromView: (value) => typeof value === "string" ? ["true", ""].includes(value.trim().toLowerCase()) : null,
@@ -13911,34 +13567,18 @@ __decorateClass$8([
13911
13567
  }
13912
13568
  })
13913
13569
  ], BaseTextInput.prototype, "spellcheck", 2);
13914
- __decorateClass$8([
13570
+ __decorateClass$6([
13915
13571
  attr
13916
13572
  ], BaseTextInput.prototype, "type", 2);
13917
- __decorateClass$8([
13573
+ __decorateClass$6([
13918
13574
  observable
13919
13575
  ], BaseTextInput.prototype, "control", 2);
13920
- __decorateClass$8([
13576
+ __decorateClass$6([
13921
13577
  observable
13922
13578
  ], BaseTextInput.prototype, "controlLabel", 2);
13923
13579
 
13924
- var __defProp$7 = Object.defineProperty;
13925
- var __getOwnPropDesc$7 = Object.getOwnPropertyDescriptor;
13926
- var __decorateClass$7 = (decorators, target, key, kind) => {
13927
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$7(target, key) : target;
13928
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
13929
- if (decorator = decorators[i])
13930
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
13931
- if (kind && result) __defProp$7(target, key, result);
13932
- return result;
13933
- };
13934
13580
  class TextInput extends BaseTextInput {
13935
13581
  }
13936
- __decorateClass$7([
13937
- attr
13938
- ], TextInput.prototype, "appearance", 2);
13939
- __decorateClass$7([
13940
- attr({ attribute: "control-size" })
13941
- ], TextInput.prototype, "controlSize", 2);
13942
13582
  applyMixins(TextInput, StartEnd);
13943
13583
 
13944
13584
  TextInput.define(definition$5);
@@ -13985,16 +13625,6 @@ const definition$4 = {
13985
13625
  template: template$4
13986
13626
  };
13987
13627
 
13988
- var __defProp$6 = Object.defineProperty;
13989
- var __getOwnPropDesc$6 = Object.getOwnPropertyDescriptor;
13990
- var __decorateClass$6 = (decorators, target, key, kind) => {
13991
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$6(target, key) : target;
13992
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
13993
- if (decorator = decorators[i])
13994
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
13995
- if (kind && result) __defProp$6(target, key, result);
13996
- return result;
13997
- };
13998
13628
  class Text extends FASTElement {
13999
13629
  constructor() {
14000
13630
  super(...arguments);
@@ -14004,44 +13634,8 @@ class Text extends FASTElement {
14004
13634
  * @internal
14005
13635
  */
14006
13636
  this.elementInternals = this.attachInternals();
14007
- this.nowrap = false;
14008
- this.truncate = false;
14009
- this.italic = false;
14010
- this.underline = false;
14011
- this.strikethrough = false;
14012
- this.block = false;
14013
13637
  }
14014
13638
  }
14015
- __decorateClass$6([
14016
- attr({ mode: "boolean" })
14017
- ], Text.prototype, "nowrap", 2);
14018
- __decorateClass$6([
14019
- attr({ mode: "boolean" })
14020
- ], Text.prototype, "truncate", 2);
14021
- __decorateClass$6([
14022
- attr({ mode: "boolean" })
14023
- ], Text.prototype, "italic", 2);
14024
- __decorateClass$6([
14025
- attr({ mode: "boolean" })
14026
- ], Text.prototype, "underline", 2);
14027
- __decorateClass$6([
14028
- attr({ mode: "boolean" })
14029
- ], Text.prototype, "strikethrough", 2);
14030
- __decorateClass$6([
14031
- attr({ mode: "boolean" })
14032
- ], Text.prototype, "block", 2);
14033
- __decorateClass$6([
14034
- attr
14035
- ], Text.prototype, "size", 2);
14036
- __decorateClass$6([
14037
- attr
14038
- ], Text.prototype, "font", 2);
14039
- __decorateClass$6([
14040
- attr
14041
- ], Text.prototype, "weight", 2);
14042
- __decorateClass$6([
14043
- attr
14044
- ], Text.prototype, "align", 2);
14045
13639
 
14046
13640
  Text.define(definition$4);
14047
13641
 
@@ -14124,22 +13718,22 @@ __decorateClass$5([
14124
13718
  ToggleButton.define(definition$3);
14125
13719
 
14126
13720
  const TooltipPositioningOption = {
14127
- "above-start": "block-start span-inline-end",
14128
- above: "block-start",
14129
- "above-end": "block-start span-inline-start",
14130
- "below-start": "block-end span-inline-end",
14131
- below: "block-end",
14132
- "below-end": "block-end span-inline-start",
14133
- "before-top": "inline-start span-block-end",
14134
- before: "inline-start",
14135
- "before-bottom": "inline-start span-block-start",
14136
- "after-top": "inline-end span-block-end",
14137
- after: "inline-end",
14138
- "after-bottom": "inline-end span-block-start"
13721
+ "above-start": "above-start",
13722
+ above: "above",
13723
+ "above-end": "above-end",
13724
+ "below-start": "below-start",
13725
+ below: "below",
13726
+ "below-end": "below-end",
13727
+ "before-top": "before-top",
13728
+ before: "before",
13729
+ "before-bottom": "before-bottom",
13730
+ "after-top": "after-top",
13731
+ after: "after",
13732
+ "after-bottom": "after-bottom"
14139
13733
  };
14140
13734
  const tagName$2 = `${FluentDesignSystem.prefix}-tooltip`;
14141
13735
 
14142
- const styles$2 = css`${display("inline-flex")} :host(:not(:popover-open)){display:none}:host{--position-area:block-start;--position-try-options:flip-block;--block-offset:${spacingVerticalXS};--inline-offset:${spacingHorizontalXS};background:${colorNeutralBackground1};border-radius:${borderRadiusMedium};border:1px solid ${colorTransparentStroke};box-sizing:border-box;color:${colorNeutralForeground1};display:inline-flex;filter:drop-shadow(0 0 2px ${colorNeutralShadowAmbient}) drop-shadow(0 4px 8px ${colorNeutralShadowKey});font-family:${fontFamilyBase};font-size:${fontSizeBase200};inset:unset;line-height:${lineHeightBase200};margin:unset;max-width:240px;overflow:visible;padding:4px ${spacingHorizontalMNudge} 6px;position:absolute;position-area:var(--position-area);position-try-fallbacks:var(--position-try-options);width:auto;z-index:1}@supports (inset-area:block-start){:host{inset-area:var(--position-area);position-try-fallbacks:var(--position-try-options)}}:host(:is([positioning^='above'],[positioning^='below'],:not([positioning]))){margin-block:var(--block-offset)}:host(:is([positioning^='before'],[positioning^='after'])){margin-inline:var(--inline-offset);--position-try-options:flip-inline}:host([positioning='above-start']){--position-area:${TooltipPositioningOption["above-start"]}}:host([positioning='above']){--position-area:${TooltipPositioningOption.above}}:host([positioning='above-end']){--position-area:${TooltipPositioningOption["above-end"]}}:host([positioning='below-start']){--position-area:${TooltipPositioningOption["below-start"]}}:host([positioning='below']){--position-area:${TooltipPositioningOption.below}}:host([positioning='below-end']){--position-area:${TooltipPositioningOption["below-end"]}}:host([positioning='before-top']){--position-area:${TooltipPositioningOption["before-top"]}}:host([positioning='before']){--position-area:${TooltipPositioningOption.before}}:host([positioning='before-bottom']){--position-area:${TooltipPositioningOption["before-bottom"]}}:host([positioning='after-top']){--position-area:${TooltipPositioningOption["after-top"]}}:host([positioning='after']){--position-area:${TooltipPositioningOption.after}}:host([positioning='after-bottom']){--position-area:${TooltipPositioningOption["after-bottom"]}}`;
13736
+ const styles$2 = css`${display("inline-flex")} :host(:not(:popover-open)){display:none}:host{--position-area:block-start;--position-try-options:flip-block;--block-offset:${spacingVerticalXS};--inline-offset:${spacingHorizontalXS};background:${colorNeutralBackground1};border-radius:${borderRadiusMedium};border:1px solid ${colorTransparentStroke};box-sizing:border-box;color:${colorNeutralForeground1};display:inline-flex;filter:drop-shadow(0 0 2px ${colorNeutralShadowAmbient}) drop-shadow(0 4px 8px ${colorNeutralShadowKey});font-family:${fontFamilyBase};font-size:${fontSizeBase200};inset:unset;line-height:${lineHeightBase200};margin:unset;max-width:240px;overflow:visible;padding:4px ${spacingHorizontalMNudge} 6px;position:absolute;position-area:var(--position-area);position-try-fallbacks:var(--position-try-options);width:auto;z-index:1}@supports (inset-area:block-start){:host{inset-area:var(--position-area);position-try-fallbacks:var(--position-try-options)}}:host(:is([positioning^='above'],[positioning^='below'],:not([positioning]))){margin-block:var(--block-offset)}:host(:is([positioning^='before'],[positioning^='after'])){margin-inline:var(--inline-offset);--position-try-options:flip-inline}:host([positioning='above-start']){--position-area:block-start span-inline-end}:host([positioning='above']){--position-area:block-start}:host([positioning='above-end']){--position-area:block-start span-inline-start}:host([positioning='below-start']){--position-area:block-end span-inline-end}:host([positioning='below']){--position-area:block-end}:host([positioning='below-end']){--position-area:block-end span-inline-start}:host([positioning='before-top']){--position-area:inline-start span-block-end}:host([positioning='before']){--position-area:inline-start}:host([positioning='before-bottom']){--position-area:inline-start span-block-start}:host([positioning='after-top']){--position-area:inline-end span-block-end}:host([positioning='after']){--position-area:inline-end}:host([positioning='after-bottom']){--position-area:inline-end span-block-start}`;
14143
13737
 
14144
13738
  const template$2 = html`<template popover aria-hidden=true><slot></slot></template>`;
14145
13739