@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
@@ -4868,7 +4868,7 @@ const curveEasyEaseMax = "var(--curveEasyEaseMax)";
4868
4868
  const curveEasyEase = "var(--curveEasyEase)";
4869
4869
  const curveLinear = "var(--curveLinear)";
4870
4870
 
4871
- 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}`;
4871
+ 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}}`;
4872
4872
 
4873
4873
  function staticallyCompose(item) {
4874
4874
  if (!item) {
@@ -4927,14 +4927,14 @@ function applyMixins(derivedCtor, ...baseCtors) {
4927
4927
  });
4928
4928
  }
4929
4929
 
4930
- var __defProp$P = Object.defineProperty;
4931
- var __getOwnPropDesc$P = Object.getOwnPropertyDescriptor;
4932
- var __decorateClass$P = (decorators, target, key, kind) => {
4933
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$P(target, key) : target;
4930
+ var __defProp$z = Object.defineProperty;
4931
+ var __getOwnPropDesc$z = Object.getOwnPropertyDescriptor;
4932
+ var __decorateClass$z = (decorators, target, key, kind) => {
4933
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$z(target, key) : target;
4934
4934
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
4935
4935
  if (decorator = decorators[i])
4936
4936
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
4937
- if (kind && result) __defProp$P(target, key, result);
4937
+ if (kind && result) __defProp$z(target, key, result);
4938
4938
  return result;
4939
4939
  };
4940
4940
  class BaseAccordionItem extends FASTElement {
@@ -4951,48 +4951,25 @@ class BaseAccordionItem extends FASTElement {
4951
4951
  this.disabled = false;
4952
4952
  }
4953
4953
  }
4954
- __decorateClass$P([
4954
+ __decorateClass$z([
4955
4955
  attr({
4956
4956
  attribute: "heading-level",
4957
4957
  mode: "fromView",
4958
4958
  converter: nullableNumberConverter
4959
4959
  })
4960
4960
  ], BaseAccordionItem.prototype, "headinglevel", 2);
4961
- __decorateClass$P([
4961
+ __decorateClass$z([
4962
4962
  attr({ mode: "boolean" })
4963
4963
  ], BaseAccordionItem.prototype, "expanded", 2);
4964
- __decorateClass$P([
4964
+ __decorateClass$z([
4965
4965
  attr({ mode: "boolean" })
4966
4966
  ], BaseAccordionItem.prototype, "disabled", 2);
4967
- __decorateClass$P([
4967
+ __decorateClass$z([
4968
4968
  observable
4969
4969
  ], BaseAccordionItem.prototype, "expandbutton", 2);
4970
4970
 
4971
- var __defProp$O = Object.defineProperty;
4972
- var __getOwnPropDesc$O = Object.getOwnPropertyDescriptor;
4973
- var __decorateClass$O = (decorators, target, key, kind) => {
4974
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$O(target, key) : target;
4975
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
4976
- if (decorator = decorators[i])
4977
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
4978
- if (kind && result) __defProp$O(target, key, result);
4979
- return result;
4980
- };
4981
4971
  class AccordionItem extends BaseAccordionItem {
4982
- constructor() {
4983
- super(...arguments);
4984
- this.block = false;
4985
- }
4986
4972
  }
4987
- __decorateClass$O([
4988
- attr
4989
- ], AccordionItem.prototype, "size", 2);
4990
- __decorateClass$O([
4991
- attr({ attribute: "marker-position" })
4992
- ], AccordionItem.prototype, "markerPosition", 2);
4993
- __decorateClass$O([
4994
- attr({ mode: "boolean" })
4995
- ], AccordionItem.prototype, "block", 2);
4996
4973
  applyMixins(AccordionItem, StartEnd);
4997
4974
 
4998
4975
  AccordionItem.define(definition$F);
@@ -5048,14 +5025,14 @@ function waitForConnectedDescendants(target, callback, options) {
5048
5025
  scheduleCheck();
5049
5026
  }
5050
5027
 
5051
- var __defProp$N = Object.defineProperty;
5052
- var __getOwnPropDesc$N = Object.getOwnPropertyDescriptor;
5053
- var __decorateClass$N = (decorators, target, key, kind) => {
5054
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$N(target, key) : target;
5028
+ var __defProp$y = Object.defineProperty;
5029
+ var __getOwnPropDesc$y = Object.getOwnPropertyDescriptor;
5030
+ var __decorateClass$y = (decorators, target, key, kind) => {
5031
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$y(target, key) : target;
5055
5032
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
5056
5033
  if (decorator = decorators[i])
5057
5034
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
5058
- if (kind && result) __defProp$N(target, key, result);
5035
+ if (kind && result) __defProp$y(target, key, result);
5059
5036
  return result;
5060
5037
  };
5061
5038
  class Accordion extends FASTElement {
@@ -5200,31 +5177,15 @@ class Accordion extends FASTElement {
5200
5177
  this.setItems();
5201
5178
  }
5202
5179
  }
5203
- __decorateClass$N([
5180
+ __decorateClass$y([
5204
5181
  attr({ attribute: "expand-mode" })
5205
5182
  ], Accordion.prototype, "expandmode", 2);
5206
- __decorateClass$N([
5183
+ __decorateClass$y([
5207
5184
  observable
5208
5185
  ], Accordion.prototype, "slottedAccordionItems", 2);
5209
5186
 
5210
5187
  Accordion.define(definition$E);
5211
5188
 
5212
- const ButtonAppearance = {
5213
- primary: "primary",
5214
- outline: "outline",
5215
- subtle: "subtle",
5216
- transparent: "transparent"
5217
- };
5218
- const ButtonShape = {
5219
- circular: "circular",
5220
- rounded: "rounded",
5221
- square: "square"
5222
- };
5223
- const ButtonSize = {
5224
- small: "small",
5225
- medium: "medium",
5226
- large: "large"
5227
- };
5228
5189
  const ButtonType = {
5229
5190
  submit: "submit",
5230
5191
  reset: "reset",
@@ -5232,9 +5193,6 @@ const ButtonType = {
5232
5193
  };
5233
5194
  const tagName$D = `${FluentDesignSystem.prefix}-button`;
5234
5195
 
5235
- const AnchorButtonAppearance = ButtonAppearance;
5236
- const AnchorButtonShape = ButtonShape;
5237
- const AnchorButtonSize = ButtonSize;
5238
5196
  const AnchorAttributes = {
5239
5197
  download: "download",
5240
5198
  href: "href",
@@ -5264,55 +5222,14 @@ const definition$D = {
5264
5222
  template: template$D
5265
5223
  };
5266
5224
 
5267
- const AnchorPositioningCSSSupported = CSS.supports("anchor-name: --a");
5268
- const AnchorPositioningHTMLSupported = "anchor" in HTMLElement.prototype;
5269
- const CustomStatesSetSupported = CSS.supports("selector(:state(g))");
5270
-
5271
- const statesMap = /* @__PURE__ */ new Map();
5272
- function stateSelector(state) {
5273
- return statesMap.get(state) ?? statesMap.set(state, CustomStatesSetSupported ? `:state(${state})` : `[state--${state}]`).get(state);
5274
- }
5275
- function toggleState(elementInternals, state, force) {
5276
- if (!state || !elementInternals) {
5277
- return;
5278
- }
5279
- if (!CustomStatesSetSupported) {
5280
- elementInternals.shadowRoot.host.toggleAttribute(`state--${state}`, force);
5281
- return;
5282
- }
5283
- if (force ?? !elementInternals.states.has(state)) {
5284
- elementInternals.states.add(state);
5285
- return;
5286
- }
5287
- elementInternals.states.delete(state);
5288
- }
5289
- const matchingStateMap = /* @__PURE__ */ new WeakMap();
5290
- function hasMatchingState(States, state) {
5291
- if (!States || !state) {
5292
- return false;
5293
- }
5294
- if (matchingStateMap.has(States)) {
5295
- return matchingStateMap.get(States).has(state);
5296
- }
5297
- const stateSet = new Set(Object.values(States));
5298
- matchingStateMap.set(States, stateSet);
5299
- return stateSet.has(state);
5300
- }
5301
- function swapStates(elementInternals, prev = "", next = "", States, prefix = "") {
5302
- toggleState(elementInternals, `${prefix}${prev}`, false);
5303
- if (!States || hasMatchingState(States, next)) {
5304
- toggleState(elementInternals, `${prefix}${next}`, true);
5305
- }
5306
- }
5307
-
5308
- var __defProp$M = Object.defineProperty;
5309
- var __getOwnPropDesc$M = Object.getOwnPropertyDescriptor;
5310
- var __decorateClass$M = (decorators, target, key, kind) => {
5311
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$M(target, key) : target;
5225
+ var __defProp$x = Object.defineProperty;
5226
+ var __getOwnPropDesc$x = Object.getOwnPropertyDescriptor;
5227
+ var __decorateClass$x = (decorators, target, key, kind) => {
5228
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$x(target, key) : target;
5312
5229
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
5313
5230
  if (decorator = decorators[i])
5314
5231
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
5315
- if (kind && result) __defProp$M(target, key, result);
5232
+ if (kind && result) __defProp$x(target, key, result);
5316
5233
  return result;
5317
5234
  };
5318
5235
  class BaseAnchor extends FASTElement {
@@ -5424,91 +5341,33 @@ class BaseAnchor extends FASTElement {
5424
5341
  return proxy;
5425
5342
  }
5426
5343
  }
5427
- __decorateClass$M([
5344
+ __decorateClass$x([
5428
5345
  attr
5429
5346
  ], BaseAnchor.prototype, "download", 2);
5430
- __decorateClass$M([
5347
+ __decorateClass$x([
5431
5348
  attr
5432
5349
  ], BaseAnchor.prototype, "href", 2);
5433
- __decorateClass$M([
5350
+ __decorateClass$x([
5434
5351
  attr
5435
5352
  ], BaseAnchor.prototype, "hreflang", 2);
5436
- __decorateClass$M([
5353
+ __decorateClass$x([
5437
5354
  attr
5438
5355
  ], BaseAnchor.prototype, "ping", 2);
5439
- __decorateClass$M([
5356
+ __decorateClass$x([
5440
5357
  attr
5441
5358
  ], BaseAnchor.prototype, "referrerpolicy", 2);
5442
- __decorateClass$M([
5359
+ __decorateClass$x([
5443
5360
  attr
5444
5361
  ], BaseAnchor.prototype, "rel", 2);
5445
- __decorateClass$M([
5362
+ __decorateClass$x([
5446
5363
  attr
5447
5364
  ], BaseAnchor.prototype, "target", 2);
5448
- __decorateClass$M([
5365
+ __decorateClass$x([
5449
5366
  attr
5450
5367
  ], BaseAnchor.prototype, "type", 2);
5451
5368
 
5452
- var __defProp$L = Object.defineProperty;
5453
- var __getOwnPropDesc$L = Object.getOwnPropertyDescriptor;
5454
- var __decorateClass$L = (decorators, target, key, kind) => {
5455
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$L(target, key) : target;
5456
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
5457
- if (decorator = decorators[i])
5458
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
5459
- if (kind && result) __defProp$L(target, key, result);
5460
- return result;
5461
- };
5462
5369
  class AnchorButton extends BaseAnchor {
5463
- constructor() {
5464
- super(...arguments);
5465
- this.iconOnly = false;
5466
- }
5467
- /**
5468
- * Handles changes to appearance attribute custom states
5469
- * @param prev - the previous state
5470
- * @param next - the next state
5471
- */
5472
- appearanceChanged(prev, next) {
5473
- swapStates(this.elementInternals, prev, next, AnchorButtonAppearance);
5474
- }
5475
- /**
5476
- * Handles changes to shape attribute custom states
5477
- * @param prev - the previous state
5478
- * @param next - the next state
5479
- */
5480
- shapeChanged(prev, next) {
5481
- swapStates(this.elementInternals, prev, next, AnchorButtonShape);
5482
- }
5483
- /**
5484
- * Handles changes to size attribute custom states
5485
- * @param prev - the previous state
5486
- * @param next - the next state
5487
- */
5488
- sizeChanged(prev, next) {
5489
- swapStates(this.elementInternals, prev, next, AnchorButtonSize);
5490
- }
5491
- /**
5492
- * Handles changes to icon only custom states
5493
- * @param prev - the previous state
5494
- * @param next - the next state
5495
- */
5496
- iconOnlyChanged(prev, next) {
5497
- toggleState(this.elementInternals, "icon", !!next);
5498
- }
5499
5370
  }
5500
- __decorateClass$L([
5501
- attr
5502
- ], AnchorButton.prototype, "appearance", 2);
5503
- __decorateClass$L([
5504
- attr
5505
- ], AnchorButton.prototype, "shape", 2);
5506
- __decorateClass$L([
5507
- attr
5508
- ], AnchorButton.prototype, "size", 2);
5509
- __decorateClass$L([
5510
- attr({ attribute: "icon-only", mode: "boolean" })
5511
- ], AnchorButton.prototype, "iconOnly", 2);
5512
5371
  applyMixins(AnchorButton, StartEnd);
5513
5372
 
5514
5373
  AnchorButton.define(definition$D);
@@ -5581,7 +5440,7 @@ const definition$C = {
5581
5440
 
5582
5441
  const UNWANTED_ENCLOSURES_REGEX = /[\(\[\{][^\)\]\}]*[\)\]\}]/g;
5583
5442
  const UNWANTED_CHARS_REGEX = /[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g;
5584
- const PHONENUMBER_REGEX = /^\d+[\d\s]*(:?ext|x|)\s*\d+$/i;
5443
+ const PHONENUMBER_REGEX = /^(?:\d[\d\s]*\d|\d[\d\s]*(?:ext|x)\s*\d+)$/i;
5585
5444
  const MULTIPLE_WHITESPACES_REGEX = /\s+/g;
5586
5445
  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]/;
5587
5446
  function getInitialsLatin(displayName, isRtl, firstInitialOnly) {
@@ -5620,14 +5479,14 @@ function getInitials(displayName, isRtl, options) {
5620
5479
  return getInitialsLatin(displayName, isRtl, options?.firstInitialOnly);
5621
5480
  }
5622
5481
 
5623
- var __defProp$K = Object.defineProperty;
5624
- var __getOwnPropDesc$K = Object.getOwnPropertyDescriptor;
5625
- var __decorateClass$K = (decorators, target, key, kind) => {
5626
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$K(target, key) : target;
5482
+ var __defProp$w = Object.defineProperty;
5483
+ var __getOwnPropDesc$w = Object.getOwnPropertyDescriptor;
5484
+ var __decorateClass$w = (decorators, target, key, kind) => {
5485
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$w(target, key) : target;
5627
5486
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
5628
5487
  if (decorator = decorators[i])
5629
5488
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
5630
- if (kind && result) __defProp$K(target, key, result);
5489
+ if (kind && result) __defProp$w(target, key, result);
5631
5490
  return result;
5632
5491
  };
5633
5492
  class BaseAvatar extends FASTElement {
@@ -5736,30 +5595,30 @@ class BaseAvatar extends FASTElement {
5736
5595
  }
5737
5596
  }
5738
5597
  }
5739
- __decorateClass$K([
5598
+ __decorateClass$w([
5740
5599
  observable
5741
5600
  ], BaseAvatar.prototype, "defaultSlot", 2);
5742
- __decorateClass$K([
5601
+ __decorateClass$w([
5743
5602
  observable
5744
5603
  ], BaseAvatar.prototype, "monogram", 2);
5745
- __decorateClass$K([
5604
+ __decorateClass$w([
5746
5605
  observable
5747
5606
  ], BaseAvatar.prototype, "slottedDefaults", 2);
5748
- __decorateClass$K([
5607
+ __decorateClass$w([
5749
5608
  attr
5750
5609
  ], BaseAvatar.prototype, "name", 2);
5751
- __decorateClass$K([
5610
+ __decorateClass$w([
5752
5611
  attr
5753
5612
  ], BaseAvatar.prototype, "initials", 2);
5754
5613
 
5755
- var __defProp$J = Object.defineProperty;
5756
- var __getOwnPropDesc$J = Object.getOwnPropertyDescriptor;
5757
- var __decorateClass$J = (decorators, target, key, kind) => {
5758
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$J(target, key) : target;
5614
+ var __defProp$v = Object.defineProperty;
5615
+ var __getOwnPropDesc$v = Object.getOwnPropertyDescriptor;
5616
+ var __decorateClass$v = (decorators, target, key, kind) => {
5617
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$v(target, key) : target;
5759
5618
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
5760
5619
  if (decorator = decorators[i])
5761
5620
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
5762
- if (kind && result) __defProp$J(target, key, result);
5621
+ if (kind && result) __defProp$v(target, key, result);
5763
5622
  return result;
5764
5623
  };
5765
5624
  const _Avatar = class _Avatar extends BaseAvatar {
@@ -5814,22 +5673,13 @@ const _Avatar = class _Avatar extends BaseAvatar {
5814
5673
  * An array of the available Avatar named colors
5815
5674
  */
5816
5675
  _Avatar.colors = Object.values(AvatarNamedColor);
5817
- __decorateClass$J([
5818
- attr
5819
- ], _Avatar.prototype, "active", 2);
5820
- __decorateClass$J([
5821
- attr
5822
- ], _Avatar.prototype, "shape", 2);
5823
- __decorateClass$J([
5824
- attr
5825
- ], _Avatar.prototype, "appearance", 2);
5826
- __decorateClass$J([
5676
+ __decorateClass$v([
5827
5677
  attr({ converter: nullableNumberConverter })
5828
5678
  ], _Avatar.prototype, "size", 2);
5829
- __decorateClass$J([
5679
+ __decorateClass$v([
5830
5680
  attr
5831
5681
  ], _Avatar.prototype, "color", 2);
5832
- __decorateClass$J([
5682
+ __decorateClass$v([
5833
5683
  attr({ attribute: "color-id" })
5834
5684
  ], _Avatar.prototype, "colorId", 2);
5835
5685
  let Avatar = _Avatar;
@@ -5845,22 +5695,6 @@ const getHashCode = (str) => {
5845
5695
 
5846
5696
  Avatar.define(definition$C);
5847
5697
 
5848
- const BadgeAppearance = {
5849
- filled: "filled",
5850
- ghost: "ghost",
5851
- outline: "outline",
5852
- tint: "tint"
5853
- };
5854
- const BadgeColor = {
5855
- brand: "brand",
5856
- danger: "danger",
5857
- important: "important",
5858
- informative: "informative",
5859
- severe: "severe",
5860
- subtle: "subtle",
5861
- success: "success",
5862
- warning: "warning"
5863
- };
5864
5698
  const tagName$A = `${FluentDesignSystem.prefix}-badge`;
5865
5699
 
5866
5700
  const badgeBaseStyles = css.partial`${display("inline-flex")} :host{position:relative;box-sizing:border-box;align-items:center;justify-content:center;font-family:${fontFamilyBase};font-weight:${fontWeightSemibold};font-size:${fontSizeBase200};line-height:${lineHeightBase200};min-width:20px;height:20px;padding-inline:calc(${spacingHorizontalXS} + ${spacingHorizontalXXS});border-radius:${borderRadiusCircular};border-color:${colorTransparentStroke};background-color:${colorBrandBackground};color:${colorNeutralForegroundOnBrand};contain:content}::slotted(svg){font-size:12px}:host(:not([appearance='ghost']))::after{position:absolute;content:'';top:0;left:0;bottom:0;right:0;border-style:solid;border-width:${strokeWidthThin};border-color:inherit;border-radius:inherit}`;
@@ -5884,35 +5718,8 @@ const definition$B = {
5884
5718
  template: template$B
5885
5719
  };
5886
5720
 
5887
- var __defProp$I = Object.defineProperty;
5888
- var __getOwnPropDesc$I = Object.getOwnPropertyDescriptor;
5889
- var __decorateClass$I = (decorators, target, key, kind) => {
5890
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$I(target, key) : target;
5891
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
5892
- if (decorator = decorators[i])
5893
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
5894
- if (kind && result) __defProp$I(target, key, result);
5895
- return result;
5896
- };
5897
5721
  class Badge extends FASTElement {
5898
- constructor() {
5899
- super(...arguments);
5900
- this.appearance = BadgeAppearance.filled;
5901
- this.color = BadgeColor.brand;
5902
- }
5903
5722
  }
5904
- __decorateClass$I([
5905
- attr
5906
- ], Badge.prototype, "appearance", 2);
5907
- __decorateClass$I([
5908
- attr
5909
- ], Badge.prototype, "color", 2);
5910
- __decorateClass$I([
5911
- attr
5912
- ], Badge.prototype, "shape", 2);
5913
- __decorateClass$I([
5914
- attr
5915
- ], Badge.prototype, "size", 2);
5916
5723
  applyMixins(Badge, StartEnd);
5917
5724
 
5918
5725
  Badge.define(definition$B);
@@ -5939,14 +5746,14 @@ function maybeSetAutoFocus(element) {
5939
5746
  }
5940
5747
  }
5941
5748
 
5942
- var __defProp$H = Object.defineProperty;
5943
- var __getOwnPropDesc$H = Object.getOwnPropertyDescriptor;
5944
- var __decorateClass$H = (decorators, target, key, kind) => {
5945
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$H(target, key) : target;
5749
+ var __defProp$u = Object.defineProperty;
5750
+ var __getOwnPropDesc$u = Object.getOwnPropertyDescriptor;
5751
+ var __decorateClass$u = (decorators, target, key, kind) => {
5752
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$u(target, key) : target;
5946
5753
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
5947
5754
  if (decorator = decorators[i])
5948
5755
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
5949
- if (kind && result) __defProp$H(target, key, result);
5756
+ if (kind && result) __defProp$u(target, key, result);
5950
5757
  return result;
5951
5758
  };
5952
5759
  class BaseButton extends FASTElement {
@@ -6172,78 +5979,93 @@ class BaseButton extends FASTElement {
6172
5979
  * @public
6173
5980
  */
6174
5981
  BaseButton.formAssociated = true;
6175
- __decorateClass$H([
5982
+ __decorateClass$u([
6176
5983
  observable
6177
5984
  ], BaseButton.prototype, "defaultSlottedContent", 2);
6178
- __decorateClass$H([
5985
+ __decorateClass$u([
6179
5986
  attr({ mode: "boolean" })
6180
5987
  ], BaseButton.prototype, "disabled", 2);
6181
- __decorateClass$H([
5988
+ __decorateClass$u([
6182
5989
  attr({ attribute: "disabled-focusable", mode: "boolean" })
6183
5990
  ], BaseButton.prototype, "disabledFocusable", 2);
6184
- __decorateClass$H([
5991
+ __decorateClass$u([
6185
5992
  attr({ attribute: "formaction" })
6186
5993
  ], BaseButton.prototype, "formAction", 2);
6187
- __decorateClass$H([
5994
+ __decorateClass$u([
6188
5995
  attr({ attribute: "form" })
6189
5996
  ], BaseButton.prototype, "formAttribute", 2);
6190
- __decorateClass$H([
5997
+ __decorateClass$u([
6191
5998
  attr({ attribute: "formenctype" })
6192
5999
  ], BaseButton.prototype, "formEnctype", 2);
6193
- __decorateClass$H([
6000
+ __decorateClass$u([
6194
6001
  attr({ attribute: "formmethod" })
6195
6002
  ], BaseButton.prototype, "formMethod", 2);
6196
- __decorateClass$H([
6003
+ __decorateClass$u([
6197
6004
  attr({ attribute: "formnovalidate", mode: "boolean" })
6198
6005
  ], BaseButton.prototype, "formNoValidate", 2);
6199
- __decorateClass$H([
6006
+ __decorateClass$u([
6200
6007
  attr({ attribute: "formtarget" })
6201
6008
  ], BaseButton.prototype, "formTarget", 2);
6202
- __decorateClass$H([
6009
+ __decorateClass$u([
6203
6010
  attr
6204
6011
  ], BaseButton.prototype, "name", 2);
6205
- __decorateClass$H([
6012
+ __decorateClass$u([
6206
6013
  attr
6207
6014
  ], BaseButton.prototype, "type", 2);
6208
- __decorateClass$H([
6015
+ __decorateClass$u([
6209
6016
  attr
6210
6017
  ], BaseButton.prototype, "value", 2);
6211
6018
 
6212
- var __defProp$G = Object.defineProperty;
6213
- var __getOwnPropDesc$G = Object.getOwnPropertyDescriptor;
6214
- var __decorateClass$G = (decorators, target, key, kind) => {
6215
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$G(target, key) : target;
6216
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
6217
- if (decorator = decorators[i])
6218
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
6219
- if (kind && result) __defProp$G(target, key, result);
6220
- return result;
6221
- };
6222
6019
  class Button extends BaseButton {
6223
- constructor() {
6224
- super(...arguments);
6225
- this.iconOnly = false;
6226
- }
6227
6020
  }
6228
- __decorateClass$G([
6229
- attr
6230
- ], Button.prototype, "appearance", 2);
6231
- __decorateClass$G([
6232
- attr
6233
- ], Button.prototype, "shape", 2);
6234
- __decorateClass$G([
6235
- attr
6236
- ], Button.prototype, "size", 2);
6237
- __decorateClass$G([
6238
- attr({ attribute: "icon-only", mode: "boolean" })
6239
- ], Button.prototype, "iconOnly", 2);
6240
6021
  applyMixins(Button, StartEnd);
6241
6022
 
6242
6023
  Button.define(definition$A);
6243
6024
 
6244
6025
  const tagName$z = `${FluentDesignSystem.prefix}-checkbox`;
6245
6026
 
6246
- const activeState = stateSelector("active");
6027
+ const AnchorPositioningCSSSupported = CSS.supports("anchor-name: --a");
6028
+ const AnchorPositioningHTMLSupported = "anchor" in HTMLElement.prototype;
6029
+ const CustomStatesSetSupported = CSS.supports("selector(:state(g))");
6030
+
6031
+ const statesMap = /* @__PURE__ */ new Map();
6032
+ function stateSelector(state) {
6033
+ return statesMap.get(state) ?? statesMap.set(state, CustomStatesSetSupported ? `:state(${state})` : `[state--${state}]`).get(state);
6034
+ }
6035
+ function toggleState(elementInternals, state, force) {
6036
+ if (!state || !elementInternals) {
6037
+ return;
6038
+ }
6039
+ if (!CustomStatesSetSupported) {
6040
+ elementInternals.shadowRoot.host.toggleAttribute(`state--${state}`, force);
6041
+ return;
6042
+ }
6043
+ if (force ?? !elementInternals.states.has(state)) {
6044
+ elementInternals.states.add(state);
6045
+ return;
6046
+ }
6047
+ elementInternals.states.delete(state);
6048
+ }
6049
+ const matchingStateMap = /* @__PURE__ */ new WeakMap();
6050
+ function hasMatchingState(States, state) {
6051
+ if (!States || !state) {
6052
+ return false;
6053
+ }
6054
+ if (matchingStateMap.has(States)) {
6055
+ return matchingStateMap.get(States).has(state);
6056
+ }
6057
+ const stateSet = new Set(Object.values(States));
6058
+ matchingStateMap.set(States, stateSet);
6059
+ return stateSet.has(state);
6060
+ }
6061
+ function swapStates(elementInternals, prev = "", next = "", States, prefix = "") {
6062
+ toggleState(elementInternals, `${prefix}${prev}`, false);
6063
+ if (!States || hasMatchingState(States, next)) {
6064
+ toggleState(elementInternals, `${prefix}${next}`, true);
6065
+ }
6066
+ }
6067
+
6068
+ stateSelector("active");
6247
6069
  const badInputState = stateSelector("bad-input");
6248
6070
  const checkedState = stateSelector("checked");
6249
6071
  const customErrorState = stateSelector("custom-error");
@@ -6298,14 +6120,14 @@ const definition$z = {
6298
6120
  template: template$z
6299
6121
  };
6300
6122
 
6301
- var __defProp$F = Object.defineProperty;
6302
- var __getOwnPropDesc$F = Object.getOwnPropertyDescriptor;
6303
- var __decorateClass$F = (decorators, target, key, kind) => {
6304
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$F(target, key) : target;
6123
+ var __defProp$t = Object.defineProperty;
6124
+ var __getOwnPropDesc$t = Object.getOwnPropertyDescriptor;
6125
+ var __decorateClass$t = (decorators, target, key, kind) => {
6126
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$t(target, key) : target;
6305
6127
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
6306
6128
  if (decorator = decorators[i])
6307
6129
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
6308
- if (kind && result) __defProp$F(target, key, result);
6130
+ if (kind && result) __defProp$t(target, key, result);
6309
6131
  return result;
6310
6132
  };
6311
6133
  class BaseCheckbox extends FASTElement {
@@ -6658,36 +6480,36 @@ class BaseCheckbox extends FASTElement {
6658
6480
  * @public
6659
6481
  */
6660
6482
  BaseCheckbox.formAssociated = true;
6661
- __decorateClass$F([
6483
+ __decorateClass$t([
6662
6484
  observable
6663
6485
  ], BaseCheckbox.prototype, "disabled", 2);
6664
- __decorateClass$F([
6486
+ __decorateClass$t([
6665
6487
  attr({ attribute: "disabled", mode: "boolean" })
6666
6488
  ], BaseCheckbox.prototype, "disabledAttribute", 2);
6667
- __decorateClass$F([
6489
+ __decorateClass$t([
6668
6490
  attr({ attribute: "form" })
6669
6491
  ], BaseCheckbox.prototype, "formAttribute", 2);
6670
- __decorateClass$F([
6492
+ __decorateClass$t([
6671
6493
  attr({ attribute: "checked", mode: "boolean" })
6672
6494
  ], BaseCheckbox.prototype, "initialChecked", 2);
6673
- __decorateClass$F([
6495
+ __decorateClass$t([
6674
6496
  attr({ attribute: "value", mode: "fromView" })
6675
6497
  ], BaseCheckbox.prototype, "initialValue", 2);
6676
- __decorateClass$F([
6498
+ __decorateClass$t([
6677
6499
  attr
6678
6500
  ], BaseCheckbox.prototype, "name", 2);
6679
- __decorateClass$F([
6501
+ __decorateClass$t([
6680
6502
  attr({ mode: "boolean" })
6681
6503
  ], BaseCheckbox.prototype, "required", 2);
6682
6504
 
6683
- var __defProp$E = Object.defineProperty;
6684
- var __getOwnPropDesc$E = Object.getOwnPropertyDescriptor;
6685
- var __decorateClass$E = (decorators, target, key, kind) => {
6686
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$E(target, key) : target;
6505
+ var __defProp$s = Object.defineProperty;
6506
+ var __getOwnPropDesc$s = Object.getOwnPropertyDescriptor;
6507
+ var __decorateClass$s = (decorators, target, key, kind) => {
6508
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$s(target, key) : target;
6687
6509
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
6688
6510
  if (decorator = decorators[i])
6689
6511
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
6690
- if (kind && result) __defProp$E(target, key, result);
6512
+ if (kind && result) __defProp$s(target, key, result);
6691
6513
  return result;
6692
6514
  };
6693
6515
  class Checkbox extends BaseCheckbox {
@@ -6730,15 +6552,9 @@ class Checkbox extends BaseCheckbox {
6730
6552
  super.toggleChecked(force);
6731
6553
  }
6732
6554
  }
6733
- __decorateClass$E([
6555
+ __decorateClass$s([
6734
6556
  observable
6735
6557
  ], Checkbox.prototype, "indeterminate", 2);
6736
- __decorateClass$E([
6737
- attr
6738
- ], Checkbox.prototype, "shape", 2);
6739
- __decorateClass$E([
6740
- attr
6741
- ], Checkbox.prototype, "size", 2);
6742
6558
 
6743
6559
  Checkbox.define(definition$z);
6744
6560
 
@@ -6779,14 +6595,14 @@ const definition$x = {
6779
6595
  template: template$x
6780
6596
  };
6781
6597
 
6782
- var __defProp$D = Object.defineProperty;
6783
- var __getOwnPropDesc$D = Object.getOwnPropertyDescriptor;
6784
- var __decorateClass$D = (decorators, target, key, kind) => {
6785
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$D(target, key) : target;
6598
+ var __defProp$r = Object.defineProperty;
6599
+ var __getOwnPropDesc$r = Object.getOwnPropertyDescriptor;
6600
+ var __decorateClass$r = (decorators, target, key, kind) => {
6601
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$r(target, key) : target;
6786
6602
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
6787
6603
  if (decorator = decorators[i])
6788
6604
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
6789
- if (kind && result) __defProp$D(target, key, result);
6605
+ if (kind && result) __defProp$r(target, key, result);
6790
6606
  return result;
6791
6607
  };
6792
6608
  class BaseCounterBadge extends FASTElement {
@@ -6814,44 +6630,44 @@ class BaseCounterBadge extends FASTElement {
6814
6630
  return `${count}`;
6815
6631
  }
6816
6632
  }
6817
- __decorateClass$D([
6633
+ __decorateClass$r([
6818
6634
  attr({ converter: nullableNumberConverter })
6819
6635
  ], BaseCounterBadge.prototype, "count", 2);
6820
- __decorateClass$D([
6636
+ __decorateClass$r([
6821
6637
  attr({ attribute: "overflow-count", converter: nullableNumberConverter })
6822
6638
  ], BaseCounterBadge.prototype, "overflowCount", 2);
6823
- __decorateClass$D([
6639
+ __decorateClass$r([
6824
6640
  attr({ attribute: "show-zero", mode: "boolean" })
6825
6641
  ], BaseCounterBadge.prototype, "showZero", 2);
6826
- __decorateClass$D([
6642
+ __decorateClass$r([
6827
6643
  attr({ mode: "boolean" })
6828
6644
  ], BaseCounterBadge.prototype, "dot", 2);
6829
- __decorateClass$D([
6645
+ __decorateClass$r([
6830
6646
  volatile
6831
6647
  ], BaseCounterBadge.prototype, "displayValue", 1);
6832
6648
 
6833
- var __defProp$C = Object.defineProperty;
6834
- var __getOwnPropDesc$C = Object.getOwnPropertyDescriptor;
6835
- var __decorateClass$C = (decorators, target, key, kind) => {
6836
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$C(target, key) : target;
6837
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
6838
- if (decorator = decorators[i])
6839
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
6840
- if (kind && result) __defProp$C(target, key, result);
6649
+ var __defProp$q = Object.defineProperty;
6650
+ var __getOwnPropDesc$q = Object.getOwnPropertyDescriptor;
6651
+ var __decorateClass$q = (decorators, target, key, kind) => {
6652
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$q(target, key) : target;
6653
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
6654
+ if (decorator = decorators[i])
6655
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
6656
+ if (kind && result) __defProp$q(target, key, result);
6841
6657
  return result;
6842
6658
  };
6843
6659
  class CounterBadge extends BaseCounterBadge {
6844
6660
  }
6845
- __decorateClass$C([
6661
+ __decorateClass$q([
6846
6662
  attr
6847
6663
  ], CounterBadge.prototype, "appearance", 2);
6848
- __decorateClass$C([
6664
+ __decorateClass$q([
6849
6665
  attr
6850
6666
  ], CounterBadge.prototype, "color", 2);
6851
- __decorateClass$C([
6667
+ __decorateClass$q([
6852
6668
  attr
6853
6669
  ], CounterBadge.prototype, "shape", 2);
6854
- __decorateClass$C([
6670
+ __decorateClass$q([
6855
6671
  attr
6856
6672
  ], CounterBadge.prototype, "size", 2);
6857
6673
  applyMixins(CounterBadge, StartEnd);
@@ -6882,14 +6698,14 @@ const definition$w = {
6882
6698
  template: template$w
6883
6699
  };
6884
6700
 
6885
- var __defProp$B = Object.defineProperty;
6886
- var __getOwnPropDesc$B = Object.getOwnPropertyDescriptor;
6887
- var __decorateClass$B = (decorators, target, key, kind) => {
6888
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$B(target, key) : target;
6701
+ var __defProp$p = Object.defineProperty;
6702
+ var __getOwnPropDesc$p = Object.getOwnPropertyDescriptor;
6703
+ var __decorateClass$p = (decorators, target, key, kind) => {
6704
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$p(target, key) : target;
6889
6705
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
6890
6706
  if (decorator = decorators[i])
6891
6707
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
6892
- if (kind && result) __defProp$B(target, key, result);
6708
+ if (kind && result) __defProp$p(target, key, result);
6893
6709
  return result;
6894
6710
  };
6895
6711
  class Dialog extends FASTElement {
@@ -6992,34 +6808,34 @@ class Dialog extends FASTElement {
6992
6808
  return true;
6993
6809
  }
6994
6810
  }
6995
- __decorateClass$B([
6811
+ __decorateClass$p([
6996
6812
  observable
6997
6813
  ], Dialog.prototype, "dialog", 2);
6998
- __decorateClass$B([
6814
+ __decorateClass$p([
6999
6815
  attr({ attribute: "aria-describedby" })
7000
6816
  ], Dialog.prototype, "ariaDescribedby", 2);
7001
- __decorateClass$B([
6817
+ __decorateClass$p([
7002
6818
  attr({ attribute: "aria-labelledby" })
7003
6819
  ], Dialog.prototype, "ariaLabelledby", 2);
7004
- __decorateClass$B([
6820
+ __decorateClass$p([
7005
6821
  attr({ attribute: "aria-label" })
7006
6822
  ], Dialog.prototype, "ariaLabel", 2);
7007
- __decorateClass$B([
6823
+ __decorateClass$p([
7008
6824
  attr
7009
6825
  ], Dialog.prototype, "type", 2);
7010
- __decorateClass$B([
6826
+ __decorateClass$p([
7011
6827
  volatile
7012
6828
  ], Dialog.prototype, "dialogDescribedby", 1);
7013
- __decorateClass$B([
6829
+ __decorateClass$p([
7014
6830
  volatile
7015
6831
  ], Dialog.prototype, "dialogLabel", 1);
7016
- __decorateClass$B([
6832
+ __decorateClass$p([
7017
6833
  volatile
7018
6834
  ], Dialog.prototype, "dialogLabelledby", 1);
7019
- __decorateClass$B([
6835
+ __decorateClass$p([
7020
6836
  volatile
7021
6837
  ], Dialog.prototype, "dialogModal", 1);
7022
- __decorateClass$B([
6838
+ __decorateClass$p([
7023
6839
  volatile
7024
6840
  ], Dialog.prototype, "dialogRole", 1);
7025
6841
 
@@ -7076,7 +6892,7 @@ const DividerRole = {
7076
6892
  const DividerOrientation = Orientation;
7077
6893
  const tagName$u = `${FluentDesignSystem.prefix}-divider`;
7078
6894
 
7079
- 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}}`;
6895
+ 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}}`;
7080
6896
 
7081
6897
  function dividerTemplate() {
7082
6898
  return html`<slot></slot>`;
@@ -7090,14 +6906,14 @@ const definition$u = {
7090
6906
  template: template$u
7091
6907
  };
7092
6908
 
7093
- var __defProp$A = Object.defineProperty;
7094
- var __getOwnPropDesc$A = Object.getOwnPropertyDescriptor;
7095
- var __decorateClass$A = (decorators, target, key, kind) => {
7096
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$A(target, key) : target;
6909
+ var __defProp$o = Object.defineProperty;
6910
+ var __getOwnPropDesc$o = Object.getOwnPropertyDescriptor;
6911
+ var __decorateClass$o = (decorators, target, key, kind) => {
6912
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$o(target, key) : target;
7097
6913
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
7098
6914
  if (decorator = decorators[i])
7099
6915
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
7100
- if (kind && result) __defProp$A(target, key, result);
6916
+ if (kind && result) __defProp$o(target, key, result);
7101
6917
  return result;
7102
6918
  };
7103
6919
  class BaseDivider extends FASTElement {
@@ -7144,47 +6960,18 @@ class BaseDivider extends FASTElement {
7144
6960
  swapStates(this.elementInternals, previous, next, DividerOrientation);
7145
6961
  }
7146
6962
  }
7147
- __decorateClass$A([
6963
+ __decorateClass$o([
7148
6964
  attr
7149
6965
  ], BaseDivider.prototype, "role", 2);
7150
- __decorateClass$A([
6966
+ __decorateClass$o([
7151
6967
  attr
7152
6968
  ], BaseDivider.prototype, "orientation", 2);
7153
6969
 
7154
- var __defProp$z = Object.defineProperty;
7155
- var __getOwnPropDesc$z = Object.getOwnPropertyDescriptor;
7156
- var __decorateClass$z = (decorators, target, key, kind) => {
7157
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$z(target, key) : target;
7158
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
7159
- if (decorator = decorators[i])
7160
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
7161
- if (kind && result) __defProp$z(target, key, result);
7162
- return result;
7163
- };
7164
6970
  class Divider extends BaseDivider {
7165
6971
  }
7166
- __decorateClass$z([
7167
- attr({ attribute: "align-content" })
7168
- ], Divider.prototype, "alignContent", 2);
7169
- __decorateClass$z([
7170
- attr
7171
- ], Divider.prototype, "appearance", 2);
7172
- __decorateClass$z([
7173
- attr({ mode: "boolean" })
7174
- ], Divider.prototype, "inset", 2);
7175
6972
 
7176
6973
  Divider.define(definition$u);
7177
6974
 
7178
- const DrawerPosition = {
7179
- start: "start",
7180
- end: "end"
7181
- };
7182
- const DrawerSize = {
7183
- small: "small",
7184
- medium: "medium",
7185
- large: "large",
7186
- full: "full"
7187
- };
7188
6975
  const DrawerType = {
7189
6976
  nonModal: "non-modal",
7190
6977
  modal: "modal",
@@ -7195,7 +6982,7 @@ const tagName$t = `${FluentDesignSystem.prefix}-drawer`;
7195
6982
  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}}}`;
7196
6983
 
7197
6984
  function drawerTemplate() {
7198
- 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>`;
6985
+ 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>`;
7199
6986
  }
7200
6987
  const template$t = drawerTemplate();
7201
6988
 
@@ -7206,21 +6993,19 @@ const definition$t = {
7206
6993
  template: template$t
7207
6994
  };
7208
6995
 
7209
- var __defProp$y = Object.defineProperty;
7210
- var __getOwnPropDesc$y = Object.getOwnPropertyDescriptor;
7211
- var __decorateClass$y = (decorators, target, key, kind) => {
7212
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$y(target, key) : target;
6996
+ var __defProp$n = Object.defineProperty;
6997
+ var __getOwnPropDesc$n = Object.getOwnPropertyDescriptor;
6998
+ var __decorateClass$n = (decorators, target, key, kind) => {
6999
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$n(target, key) : target;
7213
7000
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
7214
7001
  if (decorator = decorators[i])
7215
7002
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
7216
- if (kind && result) __defProp$y(target, key, result);
7003
+ if (kind && result) __defProp$n(target, key, result);
7217
7004
  return result;
7218
7005
  };
7219
7006
  class Drawer extends FASTElement {
7220
7007
  constructor() {
7221
7008
  super(...arguments);
7222
- this.position = DrawerPosition.start;
7223
- this.size = DrawerSize.medium;
7224
7009
  /**
7225
7010
  * Method to emit an event after the dialog's open state changes
7226
7011
  * HTML spec proposal: https://github.com/whatwg/html/issues/9733
@@ -7326,40 +7111,34 @@ class Drawer extends FASTElement {
7326
7111
  this.hide();
7327
7112
  }
7328
7113
  }
7329
- __decorateClass$y([
7114
+ __decorateClass$n([
7330
7115
  attr
7331
7116
  ], Drawer.prototype, "type", 2);
7332
- __decorateClass$y([
7117
+ __decorateClass$n([
7333
7118
  attr({ attribute: "aria-labelledby" })
7334
7119
  ], Drawer.prototype, "ariaLabelledby", 2);
7335
- __decorateClass$y([
7120
+ __decorateClass$n([
7336
7121
  attr({ attribute: "aria-describedby" })
7337
7122
  ], Drawer.prototype, "ariaDescribedby", 2);
7338
- __decorateClass$y([
7339
- attr
7340
- ], Drawer.prototype, "position", 2);
7341
- __decorateClass$y([
7123
+ __decorateClass$n([
7342
7124
  observable
7343
7125
  ], Drawer.prototype, "role", 2);
7344
- __decorateClass$y([
7345
- attr({ attribute: "size" })
7346
- ], Drawer.prototype, "size", 2);
7347
- __decorateClass$y([
7126
+ __decorateClass$n([
7348
7127
  observable
7349
7128
  ], Drawer.prototype, "dialog", 2);
7350
- __decorateClass$y([
7129
+ __decorateClass$n([
7351
7130
  volatile
7352
7131
  ], Drawer.prototype, "dialogDescribedby", 1);
7353
- __decorateClass$y([
7132
+ __decorateClass$n([
7354
7133
  volatile
7355
7134
  ], Drawer.prototype, "dialogLabel", 1);
7356
- __decorateClass$y([
7135
+ __decorateClass$n([
7357
7136
  volatile
7358
7137
  ], Drawer.prototype, "dialogLabelledby", 1);
7359
- __decorateClass$y([
7138
+ __decorateClass$n([
7360
7139
  volatile
7361
7140
  ], Drawer.prototype, "dialogModal", 1);
7362
- __decorateClass$y([
7141
+ __decorateClass$n([
7363
7142
  volatile
7364
7143
  ], Drawer.prototype, "dialogRole", 1);
7365
7144
 
@@ -7419,12 +7198,6 @@ class DrawerBody extends FASTElement {
7419
7198
 
7420
7199
  DrawerBody.define(definition$s);
7421
7200
 
7422
- const DropdownAppearance = {
7423
- filledDarker: "filled-darker",
7424
- filledLighter: "filled-lighter",
7425
- outline: "outline",
7426
- transparent: "transparent"
7427
- };
7428
7201
  const DropdownType = {
7429
7202
  combobox: "combobox",
7430
7203
  dropdown: "dropdown",
@@ -7432,10 +7205,10 @@ const DropdownType = {
7432
7205
  };
7433
7206
  const tagName$r = `${FluentDesignSystem.prefix}-dropdown`;
7434
7207
 
7435
- 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}}`;
7208
+ 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}}`;
7436
7209
 
7437
7210
  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>`;
7438
- 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")}>`;
7211
+ 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")}>`;
7439
7212
  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>`;
7440
7213
  function dropdownTemplate(options = {}) {
7441
7214
  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>`;
@@ -7485,14 +7258,14 @@ function uniqueId(prefix = "id-") {
7485
7258
  return document.getElementById(str) ? uniqueId(prefix) : str;
7486
7259
  }
7487
7260
 
7488
- var __defProp$x = Object.defineProperty;
7489
- var __getOwnPropDesc$x = Object.getOwnPropertyDescriptor;
7490
- var __decorateClass$x = (decorators, target, key, kind) => {
7491
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$x(target, key) : target;
7261
+ var __defProp$m = Object.defineProperty;
7262
+ var __getOwnPropDesc$m = Object.getOwnPropertyDescriptor;
7263
+ var __decorateClass$m = (decorators, target, key, kind) => {
7264
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$m(target, key) : target;
7492
7265
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
7493
7266
  if (decorator = decorators[i])
7494
7267
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
7495
- if (kind && result) __defProp$x(target, key, result);
7268
+ if (kind && result) __defProp$m(target, key, result);
7496
7269
  return result;
7497
7270
  };
7498
7271
  const _BaseDropdown = class _BaseDropdown extends FASTElement {
@@ -7502,7 +7275,6 @@ const _BaseDropdown = class _BaseDropdown extends FASTElement {
7502
7275
  this.id = uniqueId("dropdown-");
7503
7276
  this.required = false;
7504
7277
  this.type = DropdownType.dropdown;
7505
- this.valueAttribute = "";
7506
7278
  /**
7507
7279
  * Repositions the listbox to align with the control element. Used when the browser does not support CSS anchor
7508
7280
  * positioning.
@@ -7568,7 +7340,7 @@ const _BaseDropdown = class _BaseDropdown extends FASTElement {
7568
7340
  if (typeof next === "number") {
7569
7341
  const optionIndex = this.matches(":has(:focus-visible)") ? next : -1;
7570
7342
  this.enabledOptions.forEach((option, index) => {
7571
- option.active = index === optionIndex;
7343
+ option.toggleAttribute("active", index === optionIndex);
7572
7344
  });
7573
7345
  if (this.open) {
7574
7346
  this.enabledOptions[optionIndex]?.scrollIntoView({ block: "nearest" });
@@ -7652,7 +7424,7 @@ const _BaseDropdown = class _BaseDropdown extends FASTElement {
7652
7424
  this.setValidity();
7653
7425
  });
7654
7426
  if (AnchorPositioningCSSSupported) {
7655
- const anchorName = uniqueId("--dropdown-anchor-");
7427
+ const anchorName = this.style.getPropertyValue("anchor-name") || uniqueId("--dropdown-anchor-");
7656
7428
  this.style.setProperty("anchor-name", anchorName);
7657
7429
  this.listbox.style.setProperty("position-anchor", anchorName);
7658
7430
  }
@@ -8266,6 +8038,13 @@ const _BaseDropdown = class _BaseDropdown extends FASTElement {
8266
8038
  }
8267
8039
  }
8268
8040
  };
8041
+ /**
8042
+ * The element identity. This static property should NOT be overridden by subclasses. It’s designed to provide an
8043
+ * unambiguous name for the custom element and its subclass custom elements, regardless of their tag names.
8044
+ * @readonly
8045
+ * @internal
8046
+ */
8047
+ _BaseDropdown.elementIdentity = "dropdown";
8269
8048
  /**
8270
8049
  * The form-associated flag.
8271
8050
  * @see {@link https://html.spec.whatwg.org/multipage/custom-elements.html#custom-elements-face-example | Form-associated custom elements}
@@ -8273,92 +8052,64 @@ const _BaseDropdown = class _BaseDropdown extends FASTElement {
8273
8052
  * @public
8274
8053
  */
8275
8054
  _BaseDropdown.formAssociated = true;
8276
- __decorateClass$x([
8055
+ __decorateClass$m([
8277
8056
  volatile
8278
8057
  ], _BaseDropdown.prototype, "activeDescendant", 1);
8279
- __decorateClass$x([
8058
+ __decorateClass$m([
8280
8059
  observable
8281
8060
  ], _BaseDropdown.prototype, "activeIndex", 2);
8282
- __decorateClass$x([
8061
+ __decorateClass$m([
8283
8062
  attr({ attribute: "aria-labelledby", mode: "fromView" })
8284
8063
  ], _BaseDropdown.prototype, "ariaLabelledBy", 2);
8285
- __decorateClass$x([
8064
+ __decorateClass$m([
8286
8065
  observable
8287
8066
  ], _BaseDropdown.prototype, "control", 2);
8288
- __decorateClass$x([
8067
+ __decorateClass$m([
8289
8068
  attr({ mode: "boolean" })
8290
8069
  ], _BaseDropdown.prototype, "disabled", 2);
8291
- __decorateClass$x([
8070
+ __decorateClass$m([
8292
8071
  volatile
8293
8072
  ], _BaseDropdown.prototype, "displayValue", 1);
8294
- __decorateClass$x([
8073
+ __decorateClass$m([
8295
8074
  attr({ attribute: "id" })
8296
8075
  ], _BaseDropdown.prototype, "id", 2);
8297
- __decorateClass$x([
8076
+ __decorateClass$m([
8298
8077
  observable
8299
8078
  ], _BaseDropdown.prototype, "indicator", 2);
8300
- __decorateClass$x([
8079
+ __decorateClass$m([
8301
8080
  observable
8302
8081
  ], _BaseDropdown.prototype, "indicatorSlot", 2);
8303
- __decorateClass$x([
8082
+ __decorateClass$m([
8304
8083
  attr({ attribute: "value", mode: "fromView" })
8305
8084
  ], _BaseDropdown.prototype, "initialValue", 2);
8306
- __decorateClass$x([
8085
+ __decorateClass$m([
8307
8086
  observable
8308
8087
  ], _BaseDropdown.prototype, "listbox", 2);
8309
- __decorateClass$x([
8088
+ __decorateClass$m([
8310
8089
  attr({ mode: "boolean" })
8311
8090
  ], _BaseDropdown.prototype, "multiple", 2);
8312
- __decorateClass$x([
8091
+ __decorateClass$m([
8313
8092
  attr
8314
8093
  ], _BaseDropdown.prototype, "name", 2);
8315
- __decorateClass$x([
8094
+ __decorateClass$m([
8316
8095
  observable
8317
8096
  ], _BaseDropdown.prototype, "open", 2);
8318
- __decorateClass$x([
8097
+ __decorateClass$m([
8319
8098
  attr
8320
8099
  ], _BaseDropdown.prototype, "placeholder", 2);
8321
- __decorateClass$x([
8100
+ __decorateClass$m([
8322
8101
  attr({ mode: "boolean" })
8323
8102
  ], _BaseDropdown.prototype, "required", 2);
8324
- __decorateClass$x([
8103
+ __decorateClass$m([
8325
8104
  attr
8326
8105
  ], _BaseDropdown.prototype, "type", 2);
8327
- __decorateClass$x([
8328
- attr({ attribute: "value" })
8329
- ], _BaseDropdown.prototype, "valueAttribute", 2);
8330
8106
  let BaseDropdown = _BaseDropdown;
8331
8107
 
8332
- var __defProp$w = Object.defineProperty;
8333
- var __getOwnPropDesc$w = Object.getOwnPropertyDescriptor;
8334
- var __decorateClass$w = (decorators, target, key, kind) => {
8335
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$w(target, key) : target;
8336
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
8337
- if (decorator = decorators[i])
8338
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
8339
- if (kind && result) __defProp$w(target, key, result);
8340
- return result;
8341
- };
8342
8108
  class Dropdown extends BaseDropdown {
8343
- constructor() {
8344
- super(...arguments);
8345
- this.appearance = DropdownAppearance.outline;
8346
- }
8347
8109
  }
8348
- __decorateClass$w([
8349
- attr
8350
- ], Dropdown.prototype, "appearance", 2);
8351
- __decorateClass$w([
8352
- attr
8353
- ], Dropdown.prototype, "size", 2);
8354
8110
 
8355
8111
  Dropdown.define(definition$r);
8356
8112
 
8357
- const LabelPosition = {
8358
- above: "above",
8359
- after: "after",
8360
- before: "before"
8361
- };
8362
8113
  const ValidationFlags = {
8363
8114
  badInput: "bad-input",
8364
8115
  customError: "custom-error",
@@ -8374,7 +8125,7 @@ const ValidationFlags = {
8374
8125
  };
8375
8126
  const tagName$o = `${FluentDesignSystem.prefix}-field`;
8376
8127
 
8377
- 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}`;
8128
+ 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}`;
8378
8129
 
8379
8130
  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>`;
8380
8131
 
@@ -8388,14 +8139,14 @@ const definition$q = {
8388
8139
  template: template$q
8389
8140
  };
8390
8141
 
8391
- var __defProp$v = Object.defineProperty;
8392
- var __getOwnPropDesc$v = Object.getOwnPropertyDescriptor;
8393
- var __decorateClass$v = (decorators, target, key, kind) => {
8394
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$v(target, key) : target;
8142
+ var __defProp$l = Object.defineProperty;
8143
+ var __getOwnPropDesc$l = Object.getOwnPropertyDescriptor;
8144
+ var __decorateClass$l = (decorators, target, key, kind) => {
8145
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$l(target, key) : target;
8395
8146
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
8396
8147
  if (decorator = decorators[i])
8397
8148
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
8398
- if (kind && result) __defProp$v(target, key, result);
8149
+ if (kind && result) __defProp$l(target, key, result);
8399
8150
  return result;
8400
8151
  };
8401
8152
  class BaseField extends FASTElement {
@@ -8544,17 +8295,40 @@ class BaseField extends FASTElement {
8544
8295
  *
8545
8296
  * @internal
8546
8297
  */
8547
- setLabelProperties() {
8548
- if (this.$fastController.isConnected) {
8549
- this.input.id = this.input.id || uniqueId("input");
8550
- this.labelSlot?.forEach((label) => {
8551
- if (label instanceof HTMLLabelElement) {
8552
- label.htmlFor = label.htmlFor || this.input.id;
8553
- label.id = label.id || `${this.input.id}--label`;
8554
- this.input.setAttribute("aria-labelledby", label.id);
8298
+ async setLabelProperties() {
8299
+ const input = await this.getLabelableInput();
8300
+ if (!input) {
8301
+ return;
8302
+ }
8303
+ input.id || (input.id = uniqueId("input"));
8304
+ this.labelSlot?.forEach((label) => {
8305
+ if (label instanceof HTMLLabelElement) {
8306
+ label.htmlFor || (label.htmlFor = input.id);
8307
+ label.id || (label.id = `${input.id}--label`);
8308
+ input.setAttribute("aria-labelledby", label.id);
8309
+ }
8310
+ });
8311
+ }
8312
+ getLabelableInput() {
8313
+ return new Promise((resolve) => {
8314
+ if (!this.input) {
8315
+ return resolve(null);
8316
+ }
8317
+ if (this.input.constructor.elementIdentity !== "dropdown") {
8318
+ return resolve(this.input);
8319
+ }
8320
+ if (this.input.control) {
8321
+ return resolve(this.input.control);
8322
+ }
8323
+ new MutationObserver((_, observer) => {
8324
+ if (this.input.control) {
8325
+ resolve(this.input.control);
8326
+ observer.disconnect();
8555
8327
  }
8328
+ }).observe(this.input, {
8329
+ childList: true
8556
8330
  });
8557
- }
8331
+ });
8558
8332
  }
8559
8333
  /**
8560
8334
  * Toggles the field's states based on the slotted input.
@@ -8578,38 +8352,21 @@ class BaseField extends FASTElement {
8578
8352
  }
8579
8353
  }
8580
8354
  }
8581
- __decorateClass$v([
8355
+ __decorateClass$l([
8582
8356
  observable
8583
8357
  ], BaseField.prototype, "labelSlot", 2);
8584
- __decorateClass$v([
8358
+ __decorateClass$l([
8585
8359
  observable
8586
8360
  ], BaseField.prototype, "messageSlot", 2);
8587
- __decorateClass$v([
8361
+ __decorateClass$l([
8588
8362
  observable
8589
8363
  ], BaseField.prototype, "slottedInputs", 2);
8590
- __decorateClass$v([
8364
+ __decorateClass$l([
8591
8365
  observable
8592
8366
  ], BaseField.prototype, "input", 2);
8593
8367
 
8594
- var __defProp$u = Object.defineProperty;
8595
- var __getOwnPropDesc$u = Object.getOwnPropertyDescriptor;
8596
- var __decorateClass$u = (decorators, target, key, kind) => {
8597
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$u(target, key) : target;
8598
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
8599
- if (decorator = decorators[i])
8600
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
8601
- if (kind && result) __defProp$u(target, key, result);
8602
- return result;
8603
- };
8604
8368
  class Field extends BaseField {
8605
- constructor() {
8606
- super(...arguments);
8607
- this.labelPosition = LabelPosition.above;
8608
- }
8609
8369
  }
8610
- __decorateClass$u([
8611
- attr({ attribute: "label-position" })
8612
- ], Field.prototype, "labelPosition", 2);
8613
8370
 
8614
8371
  Field.define(definition$q);
8615
8372
 
@@ -8626,33 +8383,8 @@ const definition$p = {
8626
8383
  template: template$p
8627
8384
  };
8628
8385
 
8629
- var __defProp$t = Object.defineProperty;
8630
- var __getOwnPropDesc$t = Object.getOwnPropertyDescriptor;
8631
- var __decorateClass$t = (decorators, target, key, kind) => {
8632
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$t(target, key) : target;
8633
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
8634
- if (decorator = decorators[i])
8635
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
8636
- if (kind && result) __defProp$t(target, key, result);
8637
- return result;
8638
- };
8639
8386
  class Image extends FASTElement {
8640
8387
  }
8641
- __decorateClass$t([
8642
- attr({ mode: "boolean" })
8643
- ], Image.prototype, "block", 2);
8644
- __decorateClass$t([
8645
- attr({ mode: "boolean" })
8646
- ], Image.prototype, "bordered", 2);
8647
- __decorateClass$t([
8648
- attr({ mode: "boolean" })
8649
- ], Image.prototype, "shadow", 2);
8650
- __decorateClass$t([
8651
- attr
8652
- ], Image.prototype, "fit", 2);
8653
- __decorateClass$t([
8654
- attr
8655
- ], Image.prototype, "shape", 2);
8656
8388
 
8657
8389
  Image.define(definition$p);
8658
8390
 
@@ -8672,33 +8404,23 @@ const definition$o = {
8672
8404
  template: template$o
8673
8405
  };
8674
8406
 
8675
- var __defProp$s = Object.defineProperty;
8676
- var __getOwnPropDesc$s = Object.getOwnPropertyDescriptor;
8677
- var __decorateClass$s = (decorators, target, key, kind) => {
8678
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$s(target, key) : target;
8407
+ var __defProp$k = Object.defineProperty;
8408
+ var __getOwnPropDesc$k = Object.getOwnPropertyDescriptor;
8409
+ var __decorateClass$k = (decorators, target, key, kind) => {
8410
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$k(target, key) : target;
8679
8411
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
8680
8412
  if (decorator = decorators[i])
8681
8413
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
8682
- if (kind && result) __defProp$s(target, key, result);
8414
+ if (kind && result) __defProp$k(target, key, result);
8683
8415
  return result;
8684
8416
  };
8685
8417
  class Label extends FASTElement {
8686
8418
  constructor() {
8687
8419
  super(...arguments);
8688
- this.disabled = false;
8689
8420
  this.required = false;
8690
8421
  }
8691
8422
  }
8692
- __decorateClass$s([
8693
- attr
8694
- ], Label.prototype, "size", 2);
8695
- __decorateClass$s([
8696
- attr
8697
- ], Label.prototype, "weight", 2);
8698
- __decorateClass$s([
8699
- attr({ mode: "boolean" })
8700
- ], Label.prototype, "disabled", 2);
8701
- __decorateClass$s([
8423
+ __decorateClass$k([
8702
8424
  attr({ mode: "boolean" })
8703
8425
  ], Label.prototype, "required", 2);
8704
8426
 
@@ -8720,28 +8442,8 @@ const definition$n = {
8720
8442
  template: template$n
8721
8443
  };
8722
8444
 
8723
- var __defProp$r = Object.defineProperty;
8724
- var __getOwnPropDesc$r = Object.getOwnPropertyDescriptor;
8725
- var __decorateClass$r = (decorators, target, key, kind) => {
8726
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$r(target, key) : target;
8727
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
8728
- if (decorator = decorators[i])
8729
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
8730
- if (kind && result) __defProp$r(target, key, result);
8731
- return result;
8732
- };
8733
8445
  class Link extends BaseAnchor {
8734
- constructor() {
8735
- super(...arguments);
8736
- this.inline = false;
8737
- }
8738
8446
  }
8739
- __decorateClass$r([
8740
- attr
8741
- ], Link.prototype, "appearance", 2);
8742
- __decorateClass$r([
8743
- attr({ mode: "boolean" })
8744
- ], Link.prototype, "inline", 2);
8745
8447
 
8746
8448
  Link.define(definition$n);
8747
8449
 
@@ -8759,14 +8461,14 @@ const definition$m = {
8759
8461
  template: template$m
8760
8462
  };
8761
8463
 
8762
- var __defProp$q = Object.defineProperty;
8763
- var __getOwnPropDesc$q = Object.getOwnPropertyDescriptor;
8764
- var __decorateClass$q = (decorators, target, key, kind) => {
8765
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$q(target, key) : target;
8464
+ var __defProp$j = Object.defineProperty;
8465
+ var __getOwnPropDesc$j = Object.getOwnPropertyDescriptor;
8466
+ var __decorateClass$j = (decorators, target, key, kind) => {
8467
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$j(target, key) : target;
8766
8468
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
8767
8469
  if (decorator = decorators[i])
8768
8470
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
8769
- if (kind && result) __defProp$q(target, key, result);
8471
+ if (kind && result) __defProp$j(target, key, result);
8770
8472
  return result;
8771
8473
  };
8772
8474
  class Listbox extends FASTElement {
@@ -8933,19 +8635,19 @@ class Listbox extends FASTElement {
8933
8635
  });
8934
8636
  }
8935
8637
  }
8936
- __decorateClass$q([
8638
+ __decorateClass$j([
8937
8639
  observable
8938
8640
  ], Listbox.prototype, "defaultSlot", 2);
8939
- __decorateClass$q([
8641
+ __decorateClass$j([
8940
8642
  observable
8941
8643
  ], Listbox.prototype, "multiple", 2);
8942
- __decorateClass$q([
8644
+ __decorateClass$j([
8943
8645
  observable
8944
8646
  ], Listbox.prototype, "options", 2);
8945
- __decorateClass$q([
8647
+ __decorateClass$j([
8946
8648
  observable
8947
8649
  ], Listbox.prototype, "selectedIndex", 2);
8948
- __decorateClass$q([
8650
+ __decorateClass$j([
8949
8651
  observable
8950
8652
  ], Listbox.prototype, "dropdown", 2);
8951
8653
 
@@ -9001,7 +8703,7 @@ function isMenuItem(element, tagName2 = "-menu-item") {
9001
8703
  }
9002
8704
  const tagName$j = `${FluentDesignSystem.prefix}-menu-item`;
9003
8705
 
9004
- 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}}`;
8706
+ 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}}`;
9005
8707
 
9006
8708
  const Checkmark16Filled = html.partial(
9007
8709
  `<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>`
@@ -9024,14 +8726,14 @@ const definition$k = {
9024
8726
  template: template$k
9025
8727
  };
9026
8728
 
9027
- var __defProp$p = Object.defineProperty;
9028
- var __getOwnPropDesc$p = Object.getOwnPropertyDescriptor;
9029
- var __decorateClass$p = (decorators, target, key, kind) => {
9030
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$p(target, key) : target;
8729
+ var __defProp$i = Object.defineProperty;
8730
+ var __getOwnPropDesc$i = Object.getOwnPropertyDescriptor;
8731
+ var __decorateClass$i = (decorators, target, key, kind) => {
8732
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$i(target, key) : target;
9031
8733
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
9032
8734
  if (decorator = decorators[i])
9033
8735
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
9034
- if (kind && result) __defProp$p(target, key, result);
8736
+ if (kind && result) __defProp$i(target, key, result);
9035
8737
  return result;
9036
8738
  };
9037
8739
  class MenuItem extends FASTElement {
@@ -9231,22 +8933,22 @@ class MenuItem extends FASTElement {
9231
8933
  maybeSetAutoFocus(this);
9232
8934
  }
9233
8935
  }
9234
- __decorateClass$p([
8936
+ __decorateClass$i([
9235
8937
  attr({ mode: "boolean" })
9236
8938
  ], MenuItem.prototype, "disabled", 2);
9237
- __decorateClass$p([
8939
+ __decorateClass$i([
9238
8940
  attr
9239
8941
  ], MenuItem.prototype, "role", 2);
9240
- __decorateClass$p([
8942
+ __decorateClass$i([
9241
8943
  attr({ mode: "boolean" })
9242
8944
  ], MenuItem.prototype, "checked", 2);
9243
- __decorateClass$p([
8945
+ __decorateClass$i([
9244
8946
  attr({ mode: "boolean" })
9245
8947
  ], MenuItem.prototype, "hidden", 2);
9246
- __decorateClass$p([
8948
+ __decorateClass$i([
9247
8949
  observable
9248
8950
  ], MenuItem.prototype, "slottedSubmenu", 2);
9249
- __decorateClass$p([
8951
+ __decorateClass$i([
9250
8952
  observable
9251
8953
  ], MenuItem.prototype, "submenu", 2);
9252
8954
  applyMixins(MenuItem, StartEnd);
@@ -9255,7 +8957,7 @@ MenuItem.define(definition$k);
9255
8957
 
9256
8958
  const tagName$i = `${FluentDesignSystem.prefix}-menu-list`;
9257
8959
 
9258
- 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}}`;
8960
+ 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}`;
9259
8961
 
9260
8962
  function menuTemplate$1() {
9261
8963
  return html`<template focusgroup=menu><slot ${slotted("items")}></slot></template>`;
@@ -9734,14 +9436,14 @@ class ArrayItemCollection {
9734
9436
  }
9735
9437
  }
9736
9438
 
9737
- var __defProp$o = Object.defineProperty;
9738
- var __getOwnPropDesc$o = Object.getOwnPropertyDescriptor;
9739
- var __decorateClass$o = (decorators, target, key, kind) => {
9740
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$o(target, key) : target;
9439
+ var __defProp$h = Object.defineProperty;
9440
+ var __getOwnPropDesc$h = Object.getOwnPropertyDescriptor;
9441
+ var __decorateClass$h = (decorators, target, key, kind) => {
9442
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$h(target, key) : target;
9741
9443
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
9742
9444
  if (decorator = decorators[i])
9743
9445
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
9744
- if (kind && result) __defProp$o(target, key, result);
9446
+ if (kind && result) __defProp$h(target, key, result);
9745
9447
  return result;
9746
9448
  };
9747
9449
  const _BaseMenuList = class _BaseMenuList extends FASTElement {
@@ -9832,7 +9534,9 @@ const _BaseMenuList = class _BaseMenuList extends FASTElement {
9832
9534
  * @public
9833
9535
  */
9834
9536
  focus() {
9835
- this.menuItems?.find((item) => !item.disabled)?.focus();
9537
+ Updates.enqueue(() => {
9538
+ this.menuItems?.find((item) => !item.disabled)?.focus();
9539
+ });
9836
9540
  }
9837
9541
  setItems() {
9838
9542
  const children = Array.from(this.children);
@@ -9858,7 +9562,7 @@ const _BaseMenuList = class _BaseMenuList extends FASTElement {
9858
9562
  }
9859
9563
  };
9860
9564
  _BaseMenuList.focusableElementRoles = MenuItemRole;
9861
- __decorateClass$o([
9565
+ __decorateClass$h([
9862
9566
  observable
9863
9567
  ], _BaseMenuList.prototype, "items", 2);
9864
9568
  let BaseMenuList = _BaseMenuList;
@@ -9903,14 +9607,14 @@ const definition$i = {
9903
9607
  template: template$i
9904
9608
  };
9905
9609
 
9906
- var __defProp$n = Object.defineProperty;
9907
- var __getOwnPropDesc$n = Object.getOwnPropertyDescriptor;
9908
- var __decorateClass$n = (decorators, target, key, kind) => {
9909
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$n(target, key) : target;
9610
+ var __defProp$g = Object.defineProperty;
9611
+ var __getOwnPropDesc$g = Object.getOwnPropertyDescriptor;
9612
+ var __decorateClass$g = (decorators, target, key, kind) => {
9613
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$g(target, key) : target;
9910
9614
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
9911
9615
  if (decorator = decorators[i])
9912
9616
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
9913
- if (kind && result) __defProp$n(target, key, result);
9617
+ if (kind && result) __defProp$g(target, key, result);
9914
9618
  return result;
9915
9619
  };
9916
9620
  class Menu extends FASTElement {
@@ -10204,28 +9908,25 @@ class Menu extends FASTElement {
10204
9908
  }
10205
9909
  }
10206
9910
  }
10207
- __decorateClass$n([
9911
+ __decorateClass$g([
10208
9912
  attr({ attribute: "open-on-hover", mode: "boolean" })
10209
9913
  ], Menu.prototype, "openOnHover", 2);
10210
- __decorateClass$n([
9914
+ __decorateClass$g([
10211
9915
  attr({ attribute: "open-on-context", mode: "boolean" })
10212
9916
  ], Menu.prototype, "openOnContext", 2);
10213
- __decorateClass$n([
9917
+ __decorateClass$g([
10214
9918
  attr({ attribute: "close-on-scroll", mode: "boolean" })
10215
9919
  ], Menu.prototype, "closeOnScroll", 2);
10216
- __decorateClass$n([
9920
+ __decorateClass$g([
10217
9921
  attr({ attribute: "persist-on-item-click", mode: "boolean" })
10218
9922
  ], Menu.prototype, "persistOnItemClick", 2);
10219
- __decorateClass$n([
10220
- attr({ mode: "boolean" })
10221
- ], Menu.prototype, "split", 2);
10222
- __decorateClass$n([
9923
+ __decorateClass$g([
10223
9924
  observable
10224
9925
  ], Menu.prototype, "slottedMenuList", 2);
10225
- __decorateClass$n([
9926
+ __decorateClass$g([
10226
9927
  observable
10227
9928
  ], Menu.prototype, "slottedTriggers", 2);
10228
- __decorateClass$n([
9929
+ __decorateClass$g([
10229
9930
  observable
10230
9931
  ], Menu.prototype, "primaryAction", 2);
10231
9932
 
@@ -10247,16 +9948,6 @@ const definition$h = {
10247
9948
  template: template$h
10248
9949
  };
10249
9950
 
10250
- var __defProp$m = Object.defineProperty;
10251
- var __getOwnPropDesc$m = Object.getOwnPropertyDescriptor;
10252
- var __decorateClass$m = (decorators, target, key, kind) => {
10253
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$m(target, key) : target;
10254
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
10255
- if (decorator = decorators[i])
10256
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
10257
- if (kind && result) __defProp$m(target, key, result);
10258
- return result;
10259
- };
10260
9951
  class MessageBar extends FASTElement {
10261
9952
  constructor() {
10262
9953
  super();
@@ -10277,19 +9968,10 @@ class MessageBar extends FASTElement {
10277
9968
  this.elementInternals.role = "status";
10278
9969
  }
10279
9970
  }
10280
- __decorateClass$m([
10281
- attr
10282
- ], MessageBar.prototype, "shape", 2);
10283
- __decorateClass$m([
10284
- attr
10285
- ], MessageBar.prototype, "layout", 2);
10286
- __decorateClass$m([
10287
- attr
10288
- ], MessageBar.prototype, "intent", 2);
10289
9971
 
10290
9972
  MessageBar.define(definition$h);
10291
9973
 
10292
- 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}}`;
9974
+ 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}}`;
10293
9975
 
10294
9976
  const checkedIndicator$1 = html.partial(
10295
9977
  /* html */
@@ -10309,20 +9991,19 @@ const definition$g = {
10309
9991
  template: template$g
10310
9992
  };
10311
9993
 
10312
- var __defProp$l = Object.defineProperty;
10313
- var __getOwnPropDesc$l = Object.getOwnPropertyDescriptor;
10314
- var __decorateClass$l = (decorators, target, key, kind) => {
10315
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$l(target, key) : target;
9994
+ var __defProp$f = Object.defineProperty;
9995
+ var __getOwnPropDesc$f = Object.getOwnPropertyDescriptor;
9996
+ var __decorateClass$f = (decorators, target, key, kind) => {
9997
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$f(target, key) : target;
10316
9998
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
10317
9999
  if (decorator = decorators[i])
10318
10000
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
10319
- if (kind && result) __defProp$l(target, key, result);
10001
+ if (kind && result) __defProp$f(target, key, result);
10320
10002
  return result;
10321
10003
  };
10322
10004
  class DropdownOption extends FASTElement {
10323
10005
  constructor() {
10324
10006
  super();
10325
- this.active = false;
10326
10007
  this.id = uniqueId("option-");
10327
10008
  this.initialValue = "";
10328
10009
  this.multiple = false;
@@ -10340,16 +10021,6 @@ class DropdownOption extends FASTElement {
10340
10021
  this._value = this.initialValue;
10341
10022
  this.elementInternals.role = "option";
10342
10023
  }
10343
- /**
10344
- * Changes the active state of the option when the active property changes.
10345
- *
10346
- * @param prev - the previous active state
10347
- * @param next - the current active state
10348
- * @internal
10349
- */
10350
- activeChanged(prev, next) {
10351
- toggleState(this.elementInternals, "active", next);
10352
- }
10353
10024
  /**
10354
10025
  * Sets the selected property to match the currentSelected state.
10355
10026
  *
@@ -10527,56 +10198,48 @@ class DropdownOption extends FASTElement {
10527
10198
  * @public
10528
10199
  */
10529
10200
  DropdownOption.formAssociated = true;
10530
- __decorateClass$l([
10531
- observable
10532
- ], DropdownOption.prototype, "active", 2);
10533
- __decorateClass$l([
10201
+ __decorateClass$f([
10534
10202
  attr({ attribute: "current-selected", mode: "boolean" })
10535
10203
  ], DropdownOption.prototype, "currentSelected", 2);
10536
- __decorateClass$l([
10204
+ __decorateClass$f([
10537
10205
  attr({ attribute: "selected", mode: "boolean" })
10538
10206
  ], DropdownOption.prototype, "defaultSelected", 2);
10539
- __decorateClass$l([
10207
+ __decorateClass$f([
10540
10208
  observable
10541
10209
  ], DropdownOption.prototype, "descriptionSlot", 2);
10542
- __decorateClass$l([
10210
+ __decorateClass$f([
10543
10211
  observable
10544
10212
  ], DropdownOption.prototype, "disabled", 2);
10545
- __decorateClass$l([
10213
+ __decorateClass$f([
10546
10214
  attr({ attribute: "disabled", mode: "boolean" })
10547
10215
  ], DropdownOption.prototype, "disabledAttribute", 2);
10548
- __decorateClass$l([
10216
+ __decorateClass$f([
10549
10217
  attr({ attribute: "form" })
10550
10218
  ], DropdownOption.prototype, "formAttribute", 2);
10551
- __decorateClass$l([
10219
+ __decorateClass$f([
10552
10220
  attr({ mode: "boolean" })
10553
10221
  ], DropdownOption.prototype, "freeform", 2);
10554
- __decorateClass$l([
10222
+ __decorateClass$f([
10555
10223
  attr({ attribute: "id" })
10556
10224
  ], DropdownOption.prototype, "id", 2);
10557
- __decorateClass$l([
10225
+ __decorateClass$f([
10558
10226
  attr({ attribute: "value", mode: "fromView" })
10559
10227
  ], DropdownOption.prototype, "initialValue", 2);
10560
- __decorateClass$l([
10228
+ __decorateClass$f([
10561
10229
  observable
10562
10230
  ], DropdownOption.prototype, "multiple", 2);
10563
- __decorateClass$l([
10231
+ __decorateClass$f([
10564
10232
  attr
10565
10233
  ], DropdownOption.prototype, "name", 2);
10566
- __decorateClass$l([
10234
+ __decorateClass$f([
10567
10235
  observable
10568
10236
  ], DropdownOption.prototype, "start", 2);
10569
- __decorateClass$l([
10237
+ __decorateClass$f([
10570
10238
  attr({ attribute: "text", mode: "fromView" })
10571
10239
  ], DropdownOption.prototype, "textAttribute", 2);
10572
10240
 
10573
10241
  DropdownOption.define(definition$g);
10574
10242
 
10575
- const ProgressBarValidationState = {
10576
- success: "success",
10577
- warning: "warning",
10578
- error: "error"
10579
- };
10580
10243
  const tagName$f = `${FluentDesignSystem.prefix}-progress-bar`;
10581
10244
 
10582
10245
  const styles$f = css`${display("block")} :host{width:100%;height:2px;overflow-x:hidden;background-color:${colorNeutralBackground6};border-radius:${borderRadiusMedium};contain:content;@supports (width:attr(value type(<number>))){--max:attr(max type(<number>),100);--min:attr(min type(<number>),0);--value:attr(value type(<number>),0);--indicator-width:clamp(0%,calc((var(--value) - var(--min))/(var(--max) - var(--min)) * 100%),100%)}}:host([thickness='large']){height:4px}:host([shape='square']){border-radius:${borderRadiusNone}}.indicator{background-color:${colorCompoundBrandBackground};border-radius:inherit;height:100%}:host([value]) .indicator{transition:all 0.2s ease-in-out;@supports (width:attr(value type(<number>))){width:var(--indicator-width)}}:host(:not([value])) .indicator{position:relative;width:33%;background-image:linear-gradient( to right,${colorNeutralBackground6} 0%,${colorTransparentBackground} 50%,${colorNeutralBackground6} 100% );animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host([validation-state='error']) .indicator{background-color:${colorPaletteRedBackground3}}:host([validation-state='warning']) .indicator{background-color:${colorPaletteDarkOrangeBackground3}}:host([validation-state='success']) .indicator{background-color:${colorPaletteGreenBackground3}}@layer animations{@media (prefers-reduced-motion:no-preference){:host([value]){transition:none}:host(:not([value])) .indicator{animation-duration:0.01ms;animation-iteration-count:1}}}@keyframes indeterminate{0%{inset-inline-start:-33%}100%{inset-inline-start:100%}}@media (forced-colors:active){:host{background-color:CanvasText}.indicator,:host(:is([validation-state='success'],[validation-state='warning'],[validation-state='error'])) .indicator{background-color:Highlight}}`;
@@ -10593,14 +10256,14 @@ const definition$f = {
10593
10256
  template: template$f
10594
10257
  };
10595
10258
 
10596
- var __defProp$k = Object.defineProperty;
10597
- var __getOwnPropDesc$k = Object.getOwnPropertyDescriptor;
10598
- var __decorateClass$k = (decorators, target, key, kind) => {
10599
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$k(target, key) : target;
10259
+ var __defProp$e = Object.defineProperty;
10260
+ var __getOwnPropDesc$e = Object.getOwnPropertyDescriptor;
10261
+ var __decorateClass$e = (decorators, target, key, kind) => {
10262
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$e(target, key) : target;
10600
10263
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
10601
10264
  if (decorator = decorators[i])
10602
10265
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
10603
- if (kind && result) __defProp$k(target, key, result);
10266
+ if (kind && result) __defProp$e(target, key, result);
10604
10267
  return result;
10605
10268
  };
10606
10269
  class BaseProgressBar extends FASTElement {
@@ -10612,7 +10275,6 @@ class BaseProgressBar extends FASTElement {
10612
10275
  * @internal
10613
10276
  */
10614
10277
  this.elementInternals = this.attachInternals();
10615
- this.validationState = null;
10616
10278
  this.elementInternals.role = "progressbar";
10617
10279
  }
10618
10280
  /**
@@ -10622,14 +10284,6 @@ class BaseProgressBar extends FASTElement {
10622
10284
  indicatorChanged() {
10623
10285
  this.setIndicatorWidth();
10624
10286
  }
10625
- /**
10626
- * Handles changes to validation-state attribute custom states
10627
- * @param prev - the previous state
10628
- * @param next - the next state
10629
- */
10630
- validationStateChanged(prev, next) {
10631
- swapStates(this.elementInternals, prev, next, ProgressBarValidationState);
10632
- }
10633
10287
  /**
10634
10288
  * Updates the percent complete when the `value` property changes.
10635
10289
  *
@@ -10691,40 +10345,21 @@ class BaseProgressBar extends FASTElement {
10691
10345
  });
10692
10346
  }
10693
10347
  }
10694
- __decorateClass$k([
10348
+ __decorateClass$e([
10695
10349
  observable
10696
10350
  ], BaseProgressBar.prototype, "indicator", 2);
10697
- __decorateClass$k([
10698
- attr({ attribute: "validation-state" })
10699
- ], BaseProgressBar.prototype, "validationState", 2);
10700
- __decorateClass$k([
10351
+ __decorateClass$e([
10701
10352
  attr({ converter: nullableNumberConverter })
10702
10353
  ], BaseProgressBar.prototype, "value", 2);
10703
- __decorateClass$k([
10354
+ __decorateClass$e([
10704
10355
  attr({ converter: nullableNumberConverter })
10705
10356
  ], BaseProgressBar.prototype, "min", 2);
10706
- __decorateClass$k([
10357
+ __decorateClass$e([
10707
10358
  attr({ converter: nullableNumberConverter })
10708
10359
  ], BaseProgressBar.prototype, "max", 2);
10709
10360
 
10710
- var __defProp$j = Object.defineProperty;
10711
- var __getOwnPropDesc$j = Object.getOwnPropertyDescriptor;
10712
- var __decorateClass$j = (decorators, target, key, kind) => {
10713
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$j(target, key) : target;
10714
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
10715
- if (decorator = decorators[i])
10716
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
10717
- if (kind && result) __defProp$j(target, key, result);
10718
- return result;
10719
- };
10720
10361
  class ProgressBar extends BaseProgressBar {
10721
10362
  }
10722
- __decorateClass$j([
10723
- attr
10724
- ], ProgressBar.prototype, "thickness", 2);
10725
- __decorateClass$j([
10726
- attr
10727
- ], ProgressBar.prototype, "shape", 2);
10728
10363
 
10729
10364
  ProgressBar.define(definition$f);
10730
10365
 
@@ -10750,14 +10385,14 @@ function isRadio(element, tagName2 = "-radio") {
10750
10385
  }
10751
10386
  const tagName$d = `${FluentDesignSystem.prefix}-radio`;
10752
10387
 
10753
- var __defProp$i = Object.defineProperty;
10754
- var __getOwnPropDesc$i = Object.getOwnPropertyDescriptor;
10755
- var __decorateClass$i = (decorators, target, key, kind) => {
10756
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$i(target, key) : target;
10388
+ var __defProp$d = Object.defineProperty;
10389
+ var __getOwnPropDesc$d = Object.getOwnPropertyDescriptor;
10390
+ var __decorateClass$d = (decorators, target, key, kind) => {
10391
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$d(target, key) : target;
10757
10392
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
10758
10393
  if (decorator = decorators[i])
10759
10394
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
10760
- if (kind && result) __defProp$i(target, key, result);
10395
+ if (kind && result) __defProp$d(target, key, result);
10761
10396
  return result;
10762
10397
  };
10763
10398
  class BaseRadioGroup extends FASTElement {
@@ -11153,28 +10788,28 @@ class BaseRadioGroup extends FASTElement {
11153
10788
  * @public
11154
10789
  */
11155
10790
  BaseRadioGroup.formAssociated = true;
11156
- __decorateClass$i([
10791
+ __decorateClass$d([
11157
10792
  observable
11158
10793
  ], BaseRadioGroup.prototype, "checkedIndex", 2);
11159
- __decorateClass$i([
10794
+ __decorateClass$d([
11160
10795
  attr({ attribute: "disabled", mode: "boolean" })
11161
10796
  ], BaseRadioGroup.prototype, "disabled", 2);
11162
- __decorateClass$i([
10797
+ __decorateClass$d([
11163
10798
  attr({ attribute: "value", mode: "fromView" })
11164
10799
  ], BaseRadioGroup.prototype, "initialValue", 2);
11165
- __decorateClass$i([
10800
+ __decorateClass$d([
11166
10801
  attr
11167
10802
  ], BaseRadioGroup.prototype, "name", 2);
11168
- __decorateClass$i([
10803
+ __decorateClass$d([
11169
10804
  attr
11170
10805
  ], BaseRadioGroup.prototype, "orientation", 2);
11171
- __decorateClass$i([
10806
+ __decorateClass$d([
11172
10807
  observable
11173
10808
  ], BaseRadioGroup.prototype, "radios", 2);
11174
- __decorateClass$i([
10809
+ __decorateClass$d([
11175
10810
  attr({ mode: "boolean" })
11176
10811
  ], BaseRadioGroup.prototype, "required", 2);
11177
- __decorateClass$i([
10812
+ __decorateClass$d([
11178
10813
  observable
11179
10814
  ], BaseRadioGroup.prototype, "slottedRadios", 2);
11180
10815
 
@@ -11291,14 +10926,14 @@ Radio.define(definition$d);
11291
10926
 
11292
10927
  const tagName$c = `${FluentDesignSystem.prefix}-rating-display`;
11293
10928
 
11294
- var __defProp$h = Object.defineProperty;
11295
- var __getOwnPropDesc$h = Object.getOwnPropertyDescriptor;
11296
- var __decorateClass$h = (decorators, target, key, kind) => {
11297
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$h(target, key) : target;
10929
+ var __defProp$c = Object.defineProperty;
10930
+ var __getOwnPropDesc$c = Object.getOwnPropertyDescriptor;
10931
+ var __decorateClass$c = (decorators, target, key, kind) => {
10932
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$c(target, key) : target;
11298
10933
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
11299
10934
  if (decorator = decorators[i])
11300
10935
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
11301
- if (kind && result) __defProp$h(target, key, result);
10936
+ if (kind && result) __defProp$c(target, key, result);
11302
10937
  return result;
11303
10938
  };
11304
10939
  const SUPPORTS_ATTR_TYPE = CSS.supports("width: attr(value type(<number>))");
@@ -11397,19 +11032,19 @@ class BaseRatingDisplay extends FASTElement {
11397
11032
  });
11398
11033
  }
11399
11034
  }
11400
- __decorateClass$h([
11035
+ __decorateClass$c([
11401
11036
  observable
11402
11037
  ], BaseRatingDisplay.prototype, "iconSlot", 2);
11403
- __decorateClass$h([
11038
+ __decorateClass$c([
11404
11039
  attr({ converter: nullableNumberConverter })
11405
11040
  ], BaseRatingDisplay.prototype, "count", 2);
11406
- __decorateClass$h([
11041
+ __decorateClass$c([
11407
11042
  attr({ attribute: "icon-view-box" })
11408
11043
  ], BaseRatingDisplay.prototype, "iconViewBox", 2);
11409
- __decorateClass$h([
11044
+ __decorateClass$c([
11410
11045
  attr({ converter: nullableNumberConverter })
11411
11046
  ], BaseRatingDisplay.prototype, "max", 2);
11412
- __decorateClass$h([
11047
+ __decorateClass$c([
11413
11048
  attr({ converter: nullableNumberConverter })
11414
11049
  ], BaseRatingDisplay.prototype, "value", 2);
11415
11050
 
@@ -11436,31 +11071,8 @@ const definition$c = {
11436
11071
  template: template$c
11437
11072
  };
11438
11073
 
11439
- var __defProp$g = Object.defineProperty;
11440
- var __getOwnPropDesc$g = Object.getOwnPropertyDescriptor;
11441
- var __decorateClass$g = (decorators, target, key, kind) => {
11442
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$g(target, key) : target;
11443
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
11444
- if (decorator = decorators[i])
11445
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
11446
- if (kind && result) __defProp$g(target, key, result);
11447
- return result;
11448
- };
11449
11074
  class RatingDisplay extends BaseRatingDisplay {
11450
- constructor() {
11451
- super(...arguments);
11452
- this.compact = false;
11453
- }
11454
11075
  }
11455
- __decorateClass$g([
11456
- attr
11457
- ], RatingDisplay.prototype, "color", 2);
11458
- __decorateClass$g([
11459
- attr
11460
- ], RatingDisplay.prototype, "size", 2);
11461
- __decorateClass$g([
11462
- attr({ mode: "boolean" })
11463
- ], RatingDisplay.prototype, "compact", 2);
11464
11076
 
11465
11077
  RatingDisplay.define(definition$c);
11466
11078
 
@@ -11509,14 +11121,14 @@ function convertPixelToPercent(pixelPos, minPosition, maxPosition, direction) {
11509
11121
  return pct;
11510
11122
  }
11511
11123
 
11512
- var __defProp$f = Object.defineProperty;
11513
- var __getOwnPropDesc$f = Object.getOwnPropertyDescriptor;
11514
- var __decorateClass$f = (decorators, target, key, kind) => {
11515
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$f(target, key) : target;
11124
+ var __defProp$b = Object.defineProperty;
11125
+ var __getOwnPropDesc$b = Object.getOwnPropertyDescriptor;
11126
+ var __decorateClass$b = (decorators, target, key, kind) => {
11127
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$b(target, key) : target;
11516
11128
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
11517
11129
  if (decorator = decorators[i])
11518
11130
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
11519
- if (kind && result) __defProp$f(target, key, result);
11131
+ if (kind && result) __defProp$b(target, key, result);
11520
11132
  return result;
11521
11133
  };
11522
11134
  class Slider extends FASTElement {
@@ -12057,55 +11669,52 @@ class Slider extends FASTElement {
12057
11669
  * @public
12058
11670
  */
12059
11671
  Slider.formAssociated = true;
12060
- __decorateClass$f([
12061
- attr
12062
- ], Slider.prototype, "size", 2);
12063
- __decorateClass$f([
11672
+ __decorateClass$b([
12064
11673
  attr({ attribute: "value", mode: "fromView" })
12065
11674
  ], Slider.prototype, "initialValue", 2);
12066
- __decorateClass$f([
11675
+ __decorateClass$b([
12067
11676
  observable
12068
11677
  ], Slider.prototype, "direction", 2);
12069
- __decorateClass$f([
11678
+ __decorateClass$b([
12070
11679
  observable
12071
11680
  ], Slider.prototype, "isDragging", 2);
12072
- __decorateClass$f([
11681
+ __decorateClass$b([
12073
11682
  observable
12074
11683
  ], Slider.prototype, "position", 2);
12075
- __decorateClass$f([
11684
+ __decorateClass$b([
12076
11685
  observable
12077
11686
  ], Slider.prototype, "trackWidth", 2);
12078
- __decorateClass$f([
11687
+ __decorateClass$b([
12079
11688
  observable
12080
11689
  ], Slider.prototype, "trackMinWidth", 2);
12081
- __decorateClass$f([
11690
+ __decorateClass$b([
12082
11691
  observable
12083
11692
  ], Slider.prototype, "trackHeight", 2);
12084
- __decorateClass$f([
11693
+ __decorateClass$b([
12085
11694
  observable
12086
11695
  ], Slider.prototype, "trackLeft", 2);
12087
- __decorateClass$f([
11696
+ __decorateClass$b([
12088
11697
  observable
12089
11698
  ], Slider.prototype, "trackMinHeight", 2);
12090
- __decorateClass$f([
11699
+ __decorateClass$b([
12091
11700
  observable
12092
11701
  ], Slider.prototype, "valueTextFormatter", 2);
12093
- __decorateClass$f([
11702
+ __decorateClass$b([
12094
11703
  attr({ mode: "boolean" })
12095
11704
  ], Slider.prototype, "disabled", 2);
12096
- __decorateClass$f([
11705
+ __decorateClass$b([
12097
11706
  attr({ converter: numberLikeStringConverter })
12098
11707
  ], Slider.prototype, "min", 2);
12099
- __decorateClass$f([
11708
+ __decorateClass$b([
12100
11709
  attr({ converter: numberLikeStringConverter })
12101
11710
  ], Slider.prototype, "max", 2);
12102
- __decorateClass$f([
11711
+ __decorateClass$b([
12103
11712
  attr({ converter: numberLikeStringConverter })
12104
11713
  ], Slider.prototype, "step", 2);
12105
- __decorateClass$f([
11714
+ __decorateClass$b([
12106
11715
  attr
12107
11716
  ], Slider.prototype, "orientation", 2);
12108
- __decorateClass$f([
11717
+ __decorateClass$b([
12109
11718
  attr
12110
11719
  ], Slider.prototype, "mode", 2);
12111
11720
 
@@ -12137,30 +11746,14 @@ class BaseSpinner extends FASTElement {
12137
11746
  }
12138
11747
  }
12139
11748
 
12140
- var __defProp$e = Object.defineProperty;
12141
- var __getOwnPropDesc$e = Object.getOwnPropertyDescriptor;
12142
- var __decorateClass$e = (decorators, target, key, kind) => {
12143
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$e(target, key) : target;
12144
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
12145
- if (decorator = decorators[i])
12146
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
12147
- if (kind && result) __defProp$e(target, key, result);
12148
- return result;
12149
- };
12150
11749
  class Spinner extends BaseSpinner {
12151
11750
  }
12152
- __decorateClass$e([
12153
- attr
12154
- ], Spinner.prototype, "size", 2);
12155
- __decorateClass$e([
12156
- attr
12157
- ], Spinner.prototype, "appearance", 2);
12158
11751
 
12159
11752
  Spinner.define(definition$a);
12160
11753
 
12161
11754
  const tagName$9 = `${FluentDesignSystem.prefix}-switch`;
12162
11755
 
12163
- 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}}`;
11756
+ 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}}`;
12164
11757
 
12165
11758
  function switchTemplate(options = {}) {
12166
11759
  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>`;
@@ -12207,14 +11800,14 @@ const definition$8 = {
12207
11800
  template: template$8
12208
11801
  };
12209
11802
 
12210
- var __defProp$d = Object.defineProperty;
12211
- var __getOwnPropDesc$d = Object.getOwnPropertyDescriptor;
12212
- var __decorateClass$d = (decorators, target, key, kind) => {
12213
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$d(target, key) : target;
11803
+ var __defProp$a = Object.defineProperty;
11804
+ var __getOwnPropDesc$a = Object.getOwnPropertyDescriptor;
11805
+ var __decorateClass$a = (decorators, target, key, kind) => {
11806
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$a(target, key) : target;
12214
11807
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
12215
11808
  if (decorator = decorators[i])
12216
11809
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
12217
- if (kind && result) __defProp$d(target, key, result);
11810
+ if (kind && result) __defProp$a(target, key, result);
12218
11811
  return result;
12219
11812
  };
12220
11813
  class Tab extends FASTElement {
@@ -12251,17 +11844,13 @@ class Tab extends FASTElement {
12251
11844
  this.tabIndex = disabled && this.getAttribute("aria-selected") !== "true" ? -1 : 0;
12252
11845
  }
12253
11846
  }
12254
- __decorateClass$d([
11847
+ __decorateClass$a([
12255
11848
  attr({ mode: "boolean" })
12256
11849
  ], Tab.prototype, "disabled", 2);
12257
11850
  applyMixins(Tab, StartEnd);
12258
11851
 
12259
11852
  Tab.define(definition$8);
12260
11853
 
12261
- const TablistAppearance = {
12262
- subtle: "subtle",
12263
- transparent: "transparent"
12264
- };
12265
11854
  const TablistOrientation = Orientation;
12266
11855
  const tagName$7 = `${FluentDesignSystem.prefix}-tablist`;
12267
11856
 
@@ -12276,14 +11865,14 @@ const definition$7 = {
12276
11865
  template: template$7
12277
11866
  };
12278
11867
 
12279
- var __defProp$c = Object.defineProperty;
12280
- var __getOwnPropDesc$c = Object.getOwnPropertyDescriptor;
12281
- var __decorateClass$c = (decorators, target, key, kind) => {
12282
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$c(target, key) : target;
11868
+ var __defProp$9 = Object.defineProperty;
11869
+ var __getOwnPropDesc$9 = Object.getOwnPropertyDescriptor;
11870
+ var __decorateClass$9 = (decorators, target, key, kind) => {
11871
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$9(target, key) : target;
12283
11872
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
12284
11873
  if (decorator = decorators[i])
12285
11874
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
12286
- if (kind && result) __defProp$c(target, key, result);
11875
+ if (kind && result) __defProp$9(target, key, result);
12287
11876
  return result;
12288
11877
  };
12289
11878
  class BaseTablist extends FASTElement {
@@ -12425,37 +12014,23 @@ class BaseTablist extends FASTElement {
12425
12014
  );
12426
12015
  }
12427
12016
  }
12428
- __decorateClass$c([
12017
+ __decorateClass$9([
12429
12018
  attr({ mode: "boolean" })
12430
12019
  ], BaseTablist.prototype, "disabled", 2);
12431
- __decorateClass$c([
12020
+ __decorateClass$9([
12432
12021
  attr
12433
12022
  ], BaseTablist.prototype, "orientation", 2);
12434
- __decorateClass$c([
12023
+ __decorateClass$9([
12435
12024
  attr
12436
12025
  ], BaseTablist.prototype, "activeid", 2);
12437
- __decorateClass$c([
12026
+ __decorateClass$9([
12438
12027
  observable
12439
12028
  ], BaseTablist.prototype, "slottedTabs", 2);
12440
- __decorateClass$c([
12029
+ __decorateClass$9([
12441
12030
  observable
12442
12031
  ], BaseTablist.prototype, "tabs", 2);
12443
12032
 
12444
- var __defProp$b = Object.defineProperty;
12445
- var __getOwnPropDesc$b = Object.getOwnPropertyDescriptor;
12446
- var __decorateClass$b = (decorators, target, key, kind) => {
12447
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$b(target, key) : target;
12448
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
12449
- if (decorator = decorators[i])
12450
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
12451
- if (kind && result) __defProp$b(target, key, result);
12452
- return result;
12453
- };
12454
12033
  class Tablist extends BaseTablist {
12455
- constructor() {
12456
- super(...arguments);
12457
- this.appearance = TablistAppearance.transparent;
12458
- }
12459
12034
  disconnectedCallback() {
12460
12035
  this.fg?.disconnect();
12461
12036
  super.disconnectedCallback();
@@ -12480,26 +12055,9 @@ class Tablist extends BaseTablist {
12480
12055
  }
12481
12056
  }
12482
12057
  }
12483
- __decorateClass$b([
12484
- attr
12485
- ], Tablist.prototype, "appearance", 2);
12486
- __decorateClass$b([
12487
- attr
12488
- ], Tablist.prototype, "size", 2);
12489
12058
 
12490
12059
  Tablist.define(definition$7);
12491
12060
 
12492
- const TextAreaAppearance = {
12493
- outline: "outline",
12494
- filledLighter: "filled-lighter",
12495
- filledDarker: "filled-darker"
12496
- };
12497
- const TextAreaResize = {
12498
- none: "none",
12499
- both: "both",
12500
- horizontal: "horizontal",
12501
- vertical: "vertical"
12502
- };
12503
12061
  const tagName$6 = `${FluentDesignSystem.prefix}-textarea`;
12504
12062
 
12505
12063
  const styles$6 = css`${display("inline-block")} :host{--font-size:${fontSizeBase300};--line-height:${lineHeightBase300};--padding-inline:${spacingHorizontalMNudge};--padding-block:${spacingVerticalSNudge};--min-block-size:52px;--block-size:var(--min-block-size);--inline-size:18rem;--border-width:${strokeWidthThin};--control-padding-inline:${spacingHorizontalXXS};--color:${colorNeutralForeground1};--background-color:${colorNeutralBackground1};--border-color:${colorNeutralStroke1};--border-block-end-color:${colorNeutralStrokeAccessible};--placeholder-color:${colorNeutralForeground4};--focus-indicator-color:${colorCompoundBrandStroke};--box-shadow:none;--contain-size:size;--resize:none;color:var(--color);font-family:${fontFamilyBase};font-size:var(--font-size);font-weight:${fontWeightRegular};line-height:var(--line-height);position:relative}:host(:hover){--border-color:${colorNeutralStroke1Hover};--border-block-end-color:${colorNeutralStrokeAccessibleHover}}:host(:active){--border-color:${colorNeutralStroke1Pressed};--border-block-end-color:${colorNeutralStrokeAccessiblePressed}}:host(:focus-within){outline:none}:host([block]:not([hidden])){display:block}:host([size='small']){--font-size:${fontSizeBase200};--line-height:${lineHeightBase200};--min-block-size:40px;--padding-block:${spacingVerticalXS};--padding-inline:${spacingHorizontalSNudge};--control-padding-inline:${spacingHorizontalXXS}}:host([size='large']){--font-size:${fontSizeBase400};--line-height:${lineHeightBase400};--min-block-size:64px;--padding-block:${spacingVerticalS};--padding-inline:${spacingHorizontalM};--control-padding-inline:${spacingHorizontalSNudge}}:host([resize='both']:not(${nativeDisabledState})){--resize:both}:host([resize='horizontal']:not(${nativeDisabledState})){--resize:horizontal}:host([resize='vertical']:not(${nativeDisabledState})){--resize:vertical}:host([auto-resize]){--block-size:auto;--contain-size:inline-size}:host([appearance='filled-darker']){--background-color:${colorNeutralBackground3};--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-lighter']){--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-darker'][display-shadow]),:host([appearance='filled-lighter'][display-shadow]){--box-shadow:${shadow2}}:host(${userInvalidState}){--border-color:${colorPaletteRedBorder2};--border-block-end-color:${colorPaletteRedBorder2}}:host(${nativeDisabledState}){--color:${colorNeutralForegroundDisabled};--background-color:${colorTransparentBackground};--border-color:${colorNeutralStrokeDisabled};--border-block-end-color:var(--border-color);--box-shadow:none;--placeholder-color:${colorNeutralForegroundDisabled};cursor:no-drop;user-select:none}.root{background-color:var(--background-color);border:var(--border-width) solid var(--border-color);border-block-end-color:var(--border-block-end-color);border-radius:${borderRadiusMedium};box-sizing:border-box;box-shadow:var(--box-shadow);contain:paint layout style var(--contain-size);display:grid;grid-template:1fr/1fr;inline-size:var(--inline-size);min-block-size:var(--min-block-size);block-size:var(--block-size);overflow:hidden;padding:var(--padding-block) var(--padding-inline);position:relative;resize:var(--resize)}:host([block]) .root{inline-size:auto}.root::after{border-bottom:2px solid var(--focus-indicator-color);border-radius:0 0 ${borderRadiusMedium} ${borderRadiusMedium};box-sizing:border-box;clip-path:inset(calc(100% - 2px) 1px 0px);content:'';height:max(2px,${borderRadiusMedium});inset:auto -1px 0;position:absolute;transform:scaleX(0);transition-delay:${curveAccelerateMid};transition-duration:${durationUltraFast};transition-property:transform}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${durationNormal};transition-delay:${curveDecelerateMid}}:host([readonly]) .root::after,:host(${nativeDisabledState}) .root::after{content:none}label{color:var(--color);display:flex;inline-size:fit-content;padding-block-end:${spacingVerticalXS};padding-inline-end:${spacingHorizontalXS}}:host(:empty) label,label[hidden]{display:none}.auto-sizer,.control{box-sizing:border-box;font:inherit;grid-column:1/-1;grid-row:1/-1;letter-space:inherit;padding:0 var(--control-padding-inline)}.auto-sizer{display:none;padding-block-end:2px;pointer-events:none;visibility:hidden;white-space:pre-wrap}:host([auto-resize]) .auto-sizer{display:block}.control{appearance:none;background-color:transparent;border:0;color:inherit;field-sizing:content;max-block-size:100%;outline:0;overflow:auto;resize:none;text-align:inherit}.control:disabled{cursor:inherit}.control::placeholder{color:var(--placeholder-color)}::selection{color:${colorNeutralForegroundInverted};background-color:${colorNeutralBackgroundInverted}}@media (forced-colors:active){:host{--border-color:FieldText;--border-block-end-color:FieldText;--focus-indicator-color:Highlight;--placeholder-color:FieldText}:host(:hover),:host(:active),:host(:focus-within){--border-color:Highlight;--border-block-end-color:Highlight}:host(${nativeDisabledState}){--color:GrayText;--border-color:GrayText;--border-block-end-color:GrayText;--placeholder-color:GrayText}}`;
@@ -12521,14 +12079,14 @@ const definition$6 = {
12521
12079
 
12522
12080
  const whitespaceFilter = (value) => value.nodeType !== Node.TEXT_NODE || !!value.nodeValue?.trim().length;
12523
12081
 
12524
- var __defProp$a = Object.defineProperty;
12525
- var __getOwnPropDesc$a = Object.getOwnPropertyDescriptor;
12526
- var __decorateClass$a = (decorators, target, key, kind) => {
12527
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$a(target, key) : target;
12082
+ var __defProp$8 = Object.defineProperty;
12083
+ var __getOwnPropDesc$8 = Object.getOwnPropertyDescriptor;
12084
+ var __decorateClass$8 = (decorators, target, key, kind) => {
12085
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$8(target, key) : target;
12528
12086
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
12529
12087
  if (decorator = decorators[i])
12530
12088
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
12531
- if (kind && result) __defProp$a(target, key, result);
12089
+ if (kind && result) __defProp$8(target, key, result);
12532
12090
  return result;
12533
12091
  };
12534
12092
  class BaseTextArea extends FASTElement {
@@ -12546,10 +12104,8 @@ class BaseTextArea extends FASTElement {
12546
12104
  this.preConnectControlEl = document.createElement("textarea");
12547
12105
  this.autoResize = false;
12548
12106
  this.disabled = false;
12549
- this.displayShadow = false;
12550
12107
  this.readOnly = false;
12551
12108
  this.required = false;
12552
- this.resize = TextAreaResize.none;
12553
12109
  this.spellcheck = false;
12554
12110
  }
12555
12111
  /**
@@ -12581,7 +12137,7 @@ class BaseTextArea extends FASTElement {
12581
12137
  this.labelEl.hidden = !this.filteredLabelSlottedNodes.length;
12582
12138
  }
12583
12139
  this.filteredLabelSlottedNodes.forEach((node) => {
12584
- node.disabled = this.disabled;
12140
+ node.toggleAttribute("disabled", this.disabled);
12585
12141
  node.required = this.required;
12586
12142
  });
12587
12143
  }
@@ -12621,14 +12177,6 @@ class BaseTextArea extends FASTElement {
12621
12177
  this.filteredLabelSlottedNodes.forEach((node) => node.required = this.required);
12622
12178
  }
12623
12179
  }
12624
- resizeChanged(prev, next) {
12625
- swapStates(this.elementInternals, prev, next, TextAreaResize, "resize-");
12626
- toggleState(
12627
- this.elementInternals,
12628
- "resize",
12629
- hasMatchingState(TextAreaResize, next) && next !== TextAreaResize.none
12630
- );
12631
- }
12632
12180
  /**
12633
12181
  * The length of the current value.
12634
12182
  * @see The {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement#textLength | 'textLength'} property
@@ -12849,7 +12397,7 @@ class BaseTextArea extends FASTElement {
12849
12397
  this.controlEl.disabled = disabled;
12850
12398
  }
12851
12399
  if (this.filteredLabelSlottedNodes?.length) {
12852
- this.filteredLabelSlottedNodes.forEach((node) => node.disabled = this.disabled);
12400
+ this.filteredLabelSlottedNodes.forEach((node) => node.toggleAttribute("disabled", this.disabled));
12853
12401
  }
12854
12402
  }
12855
12403
  toggleUserValidityState() {
@@ -12916,78 +12464,71 @@ class BaseTextArea extends FASTElement {
12916
12464
  * @public
12917
12465
  */
12918
12466
  BaseTextArea.formAssociated = true;
12919
- __decorateClass$a([
12467
+ __decorateClass$8([
12920
12468
  observable
12921
12469
  ], BaseTextArea.prototype, "controlEl", 2);
12922
- __decorateClass$a([
12470
+ __decorateClass$8([
12923
12471
  observable
12924
12472
  ], BaseTextArea.prototype, "defaultSlottedNodes", 2);
12925
- __decorateClass$a([
12473
+ __decorateClass$8([
12926
12474
  observable
12927
12475
  ], BaseTextArea.prototype, "labelSlottedNodes", 2);
12928
- __decorateClass$a([
12476
+ __decorateClass$8([
12929
12477
  attr
12930
12478
  ], BaseTextArea.prototype, "autocomplete", 2);
12931
- __decorateClass$a([
12479
+ __decorateClass$8([
12932
12480
  attr({ attribute: "auto-resize", mode: "boolean" })
12933
12481
  ], BaseTextArea.prototype, "autoResize", 2);
12934
- __decorateClass$a([
12482
+ __decorateClass$8([
12935
12483
  attr({ attribute: "dirname" })
12936
12484
  ], BaseTextArea.prototype, "dirName", 2);
12937
- __decorateClass$a([
12485
+ __decorateClass$8([
12938
12486
  attr({ mode: "boolean" })
12939
12487
  ], BaseTextArea.prototype, "disabled", 2);
12940
- __decorateClass$a([
12941
- attr({ attribute: "display-shadow", mode: "boolean" })
12942
- ], BaseTextArea.prototype, "displayShadow", 2);
12943
- __decorateClass$a([
12488
+ __decorateClass$8([
12944
12489
  attr({ attribute: "form" })
12945
12490
  ], BaseTextArea.prototype, "initialForm", 2);
12946
- __decorateClass$a([
12491
+ __decorateClass$8([
12947
12492
  attr({ attribute: "maxlength", converter: nullableNumberConverter })
12948
12493
  ], BaseTextArea.prototype, "maxLength", 2);
12949
- __decorateClass$a([
12494
+ __decorateClass$8([
12950
12495
  attr({ attribute: "minlength", converter: nullableNumberConverter })
12951
12496
  ], BaseTextArea.prototype, "minLength", 2);
12952
- __decorateClass$a([
12497
+ __decorateClass$8([
12953
12498
  attr
12954
12499
  ], BaseTextArea.prototype, "name", 2);
12955
- __decorateClass$a([
12500
+ __decorateClass$8([
12956
12501
  attr
12957
12502
  ], BaseTextArea.prototype, "placeholder", 2);
12958
- __decorateClass$a([
12503
+ __decorateClass$8([
12959
12504
  attr({ attribute: "readonly", mode: "boolean" })
12960
12505
  ], BaseTextArea.prototype, "readOnly", 2);
12961
- __decorateClass$a([
12506
+ __decorateClass$8([
12962
12507
  attr({ mode: "boolean" })
12963
12508
  ], BaseTextArea.prototype, "required", 2);
12964
- __decorateClass$a([
12965
- attr({ mode: "fromView" })
12966
- ], BaseTextArea.prototype, "resize", 2);
12967
- __decorateClass$a([
12509
+ __decorateClass$8([
12968
12510
  attr({ mode: "boolean" })
12969
12511
  ], BaseTextArea.prototype, "spellcheck", 2);
12970
12512
 
12971
- var __defProp$9 = Object.defineProperty;
12972
- var __getOwnPropDesc$9 = Object.getOwnPropertyDescriptor;
12973
- var __decorateClass$9 = (decorators, target, key, kind) => {
12974
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$9(target, key) : target;
12513
+ var __defProp$7 = Object.defineProperty;
12514
+ var __getOwnPropDesc$7 = Object.getOwnPropertyDescriptor;
12515
+ var __decorateClass$7 = (decorators, target, key, kind) => {
12516
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$7(target, key) : target;
12975
12517
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
12976
12518
  if (decorator = decorators[i])
12977
12519
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
12978
- if (kind && result) __defProp$9(target, key, result);
12520
+ if (kind && result) __defProp$7(target, key, result);
12979
12521
  return result;
12980
12522
  };
12981
12523
  class TextArea extends BaseTextArea {
12982
- constructor() {
12983
- super(...arguments);
12984
- this.appearance = TextAreaAppearance.outline;
12985
- this.block = false;
12986
- }
12987
12524
  labelSlottedNodesChanged() {
12988
12525
  super.labelSlottedNodesChanged();
12989
12526
  this.labelSlottedNodes.forEach((node) => {
12990
- node.size = this.size;
12527
+ if (this.size) {
12528
+ node.setAttribute("size", this.size);
12529
+ } else {
12530
+ node.removeAttribute("size");
12531
+ }
12991
12532
  });
12992
12533
  }
12993
12534
  /**
@@ -12997,7 +12538,11 @@ class TextArea extends BaseTextArea {
12997
12538
  switch (propertyName) {
12998
12539
  case "size":
12999
12540
  this.labelSlottedNodes.forEach((node) => {
13000
- node.size = this.size;
12541
+ if (this.size) {
12542
+ node.setAttribute("size", this.size);
12543
+ } else {
12544
+ node.removeAttribute("size");
12545
+ }
13001
12546
  });
13002
12547
  break;
13003
12548
  }
@@ -13017,13 +12562,7 @@ class TextArea extends BaseTextArea {
13017
12562
  Observable.getNotifier(this).unsubscribe(this, "size");
13018
12563
  }
13019
12564
  }
13020
- __decorateClass$9([
13021
- attr({ mode: "fromView" })
13022
- ], TextArea.prototype, "appearance", 2);
13023
- __decorateClass$9([
13024
- attr({ mode: "boolean" })
13025
- ], TextArea.prototype, "block", 2);
13026
- __decorateClass$9([
12565
+ __decorateClass$7([
13027
12566
  attr
13028
12567
  ], TextArea.prototype, "size", 2);
13029
12568
 
@@ -13069,14 +12608,14 @@ const definition$5 = {
13069
12608
  template: template$5
13070
12609
  };
13071
12610
 
13072
- var __defProp$8 = Object.defineProperty;
13073
- var __getOwnPropDesc$8 = Object.getOwnPropertyDescriptor;
13074
- var __decorateClass$8 = (decorators, target, key, kind) => {
13075
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$8(target, key) : target;
12611
+ var __defProp$6 = Object.defineProperty;
12612
+ var __getOwnPropDesc$6 = Object.getOwnPropertyDescriptor;
12613
+ var __decorateClass$6 = (decorators, target, key, kind) => {
12614
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$6(target, key) : target;
13076
12615
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
13077
12616
  if (decorator = decorators[i])
13078
12617
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
13079
- if (kind && result) __defProp$8(target, key, result);
12618
+ if (kind && result) __defProp$6(target, key, result);
13080
12619
  return result;
13081
12620
  };
13082
12621
  class BaseTextInput extends FASTElement {
@@ -13089,6 +12628,18 @@ class BaseTextInput extends FASTElement {
13089
12628
  * @internal
13090
12629
  */
13091
12630
  this.dirtyValue = false;
12631
+ /**
12632
+ * The value as of the last `change` event or programmatic update.
12633
+ *
12634
+ * @internal
12635
+ */
12636
+ this.committedValue = "";
12637
+ /**
12638
+ * Indicates that `value` is being updated from the internal control's `input` event.
12639
+ *
12640
+ * @internal
12641
+ */
12642
+ this.isUserInput = false;
13092
12643
  /**
13093
12644
  * The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
13094
12645
  *
@@ -13199,6 +12750,9 @@ class BaseTextInput extends FASTElement {
13199
12750
  }
13200
12751
  set value(value) {
13201
12752
  this.currentValue = value;
12753
+ if (!this.isUserInput) {
12754
+ this.committedValue = value ?? "";
12755
+ }
13202
12756
  if (this.elementInternals && this.control) {
13203
12757
  this.control.value = value ?? "";
13204
12758
  this.setFormValue(value);
@@ -13235,12 +12789,23 @@ class BaseTextInput extends FASTElement {
13235
12789
  * proxies the change event, emitting a `change` event whenever the internal control emits a `change` event.
13236
12790
  */
13237
12791
  changeHandler(e) {
12792
+ if (this.control.value !== this.committedValue) {
12793
+ this.emitChange(e);
12794
+ }
12795
+ return true;
12796
+ }
12797
+ /**
12798
+ * Validates, records the committed value, and emits `change` on the host.
12799
+ *
12800
+ * @internal
12801
+ */
12802
+ emitChange(detail) {
12803
+ this.committedValue = this.control.value;
13238
12804
  this.setValidity();
13239
- this.$emit("change", e, {
12805
+ this.$emit("change", detail, {
13240
12806
  bubbles: true,
13241
12807
  composed: true
13242
12808
  });
13243
- return true;
13244
12809
  }
13245
12810
  /**
13246
12811
  * Checks the validity of the element and returns the result.
@@ -13312,7 +12877,12 @@ class BaseTextInput extends FASTElement {
13312
12877
  */
13313
12878
  inputHandler(e) {
13314
12879
  this.dirtyValue = true;
13315
- this.value = this.control.value;
12880
+ this.isUserInput = true;
12881
+ try {
12882
+ this.value = this.control.value;
12883
+ } finally {
12884
+ this.isUserInput = false;
12885
+ }
13316
12886
  return true;
13317
12887
  }
13318
12888
  /**
@@ -13322,9 +12892,19 @@ class BaseTextInput extends FASTElement {
13322
12892
  * @internal
13323
12893
  */
13324
12894
  keydownHandler(e) {
13325
- if (e.key === "Enter") {
13326
- this.implicitSubmit();
12895
+ if (e.key !== "Enter") {
12896
+ return true;
12897
+ }
12898
+ if (e.isComposing || e.keyCode === 229) {
12899
+ return true;
13327
12900
  }
12901
+ if (e.composedPath()[0] !== this.control) {
12902
+ return true;
12903
+ }
12904
+ if (this.control.value !== this.committedValue) {
12905
+ this.emitChange();
12906
+ }
12907
+ this.implicitSubmit();
13328
12908
  return true;
13329
12909
  }
13330
12910
  /**
@@ -13398,58 +12978,58 @@ class BaseTextInput extends FASTElement {
13398
12978
  * @public
13399
12979
  */
13400
12980
  BaseTextInput.formAssociated = true;
13401
- __decorateClass$8([
12981
+ __decorateClass$6([
13402
12982
  attr
13403
12983
  ], BaseTextInput.prototype, "autocomplete", 2);
13404
- __decorateClass$8([
12984
+ __decorateClass$6([
13405
12985
  attr({ attribute: "current-value" })
13406
12986
  ], BaseTextInput.prototype, "currentValue", 2);
13407
- __decorateClass$8([
12987
+ __decorateClass$6([
13408
12988
  observable
13409
12989
  ], BaseTextInput.prototype, "defaultSlottedNodes", 2);
13410
- __decorateClass$8([
12990
+ __decorateClass$6([
13411
12991
  attr
13412
12992
  ], BaseTextInput.prototype, "dirname", 2);
13413
- __decorateClass$8([
12993
+ __decorateClass$6([
13414
12994
  attr({ mode: "boolean" })
13415
12995
  ], BaseTextInput.prototype, "disabled", 2);
13416
- __decorateClass$8([
12996
+ __decorateClass$6([
13417
12997
  attr({ attribute: "form" })
13418
12998
  ], BaseTextInput.prototype, "formAttribute", 2);
13419
- __decorateClass$8([
12999
+ __decorateClass$6([
13420
13000
  attr({ attribute: "value", mode: "fromView" })
13421
13001
  ], BaseTextInput.prototype, "initialValue", 2);
13422
- __decorateClass$8([
13002
+ __decorateClass$6([
13423
13003
  attr
13424
13004
  ], BaseTextInput.prototype, "list", 2);
13425
- __decorateClass$8([
13005
+ __decorateClass$6([
13426
13006
  attr({ converter: nullableNumberConverter })
13427
13007
  ], BaseTextInput.prototype, "maxlength", 2);
13428
- __decorateClass$8([
13008
+ __decorateClass$6([
13429
13009
  attr({ converter: nullableNumberConverter })
13430
13010
  ], BaseTextInput.prototype, "minlength", 2);
13431
- __decorateClass$8([
13011
+ __decorateClass$6([
13432
13012
  attr({ mode: "boolean" })
13433
13013
  ], BaseTextInput.prototype, "multiple", 2);
13434
- __decorateClass$8([
13014
+ __decorateClass$6([
13435
13015
  attr
13436
13016
  ], BaseTextInput.prototype, "name", 2);
13437
- __decorateClass$8([
13017
+ __decorateClass$6([
13438
13018
  attr
13439
13019
  ], BaseTextInput.prototype, "pattern", 2);
13440
- __decorateClass$8([
13020
+ __decorateClass$6([
13441
13021
  attr
13442
13022
  ], BaseTextInput.prototype, "placeholder", 2);
13443
- __decorateClass$8([
13023
+ __decorateClass$6([
13444
13024
  attr({ attribute: "readonly", mode: "boolean" })
13445
13025
  ], BaseTextInput.prototype, "readOnly", 2);
13446
- __decorateClass$8([
13026
+ __decorateClass$6([
13447
13027
  attr({ mode: "boolean" })
13448
13028
  ], BaseTextInput.prototype, "required", 2);
13449
- __decorateClass$8([
13029
+ __decorateClass$6([
13450
13030
  attr({ converter: nullableNumberConverter })
13451
13031
  ], BaseTextInput.prototype, "size", 2);
13452
- __decorateClass$8([
13032
+ __decorateClass$6([
13453
13033
  attr({
13454
13034
  converter: {
13455
13035
  fromView: (value) => typeof value === "string" ? ["true", ""].includes(value.trim().toLowerCase()) : null,
@@ -13457,34 +13037,18 @@ __decorateClass$8([
13457
13037
  }
13458
13038
  })
13459
13039
  ], BaseTextInput.prototype, "spellcheck", 2);
13460
- __decorateClass$8([
13040
+ __decorateClass$6([
13461
13041
  attr
13462
13042
  ], BaseTextInput.prototype, "type", 2);
13463
- __decorateClass$8([
13043
+ __decorateClass$6([
13464
13044
  observable
13465
13045
  ], BaseTextInput.prototype, "control", 2);
13466
- __decorateClass$8([
13046
+ __decorateClass$6([
13467
13047
  observable
13468
13048
  ], BaseTextInput.prototype, "controlLabel", 2);
13469
13049
 
13470
- var __defProp$7 = Object.defineProperty;
13471
- var __getOwnPropDesc$7 = Object.getOwnPropertyDescriptor;
13472
- var __decorateClass$7 = (decorators, target, key, kind) => {
13473
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$7(target, key) : target;
13474
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
13475
- if (decorator = decorators[i])
13476
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
13477
- if (kind && result) __defProp$7(target, key, result);
13478
- return result;
13479
- };
13480
13050
  class TextInput extends BaseTextInput {
13481
13051
  }
13482
- __decorateClass$7([
13483
- attr
13484
- ], TextInput.prototype, "appearance", 2);
13485
- __decorateClass$7([
13486
- attr({ attribute: "control-size" })
13487
- ], TextInput.prototype, "controlSize", 2);
13488
13052
  applyMixins(TextInput, StartEnd);
13489
13053
 
13490
13054
  TextInput.define(definition$5);
@@ -13502,16 +13066,6 @@ const definition$4 = {
13502
13066
  template: template$4
13503
13067
  };
13504
13068
 
13505
- var __defProp$6 = Object.defineProperty;
13506
- var __getOwnPropDesc$6 = Object.getOwnPropertyDescriptor;
13507
- var __decorateClass$6 = (decorators, target, key, kind) => {
13508
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$6(target, key) : target;
13509
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
13510
- if (decorator = decorators[i])
13511
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
13512
- if (kind && result) __defProp$6(target, key, result);
13513
- return result;
13514
- };
13515
13069
  class Text extends FASTElement {
13516
13070
  constructor() {
13517
13071
  super(...arguments);
@@ -13521,44 +13075,8 @@ class Text extends FASTElement {
13521
13075
  * @internal
13522
13076
  */
13523
13077
  this.elementInternals = this.attachInternals();
13524
- this.nowrap = false;
13525
- this.truncate = false;
13526
- this.italic = false;
13527
- this.underline = false;
13528
- this.strikethrough = false;
13529
- this.block = false;
13530
13078
  }
13531
13079
  }
13532
- __decorateClass$6([
13533
- attr({ mode: "boolean" })
13534
- ], Text.prototype, "nowrap", 2);
13535
- __decorateClass$6([
13536
- attr({ mode: "boolean" })
13537
- ], Text.prototype, "truncate", 2);
13538
- __decorateClass$6([
13539
- attr({ mode: "boolean" })
13540
- ], Text.prototype, "italic", 2);
13541
- __decorateClass$6([
13542
- attr({ mode: "boolean" })
13543
- ], Text.prototype, "underline", 2);
13544
- __decorateClass$6([
13545
- attr({ mode: "boolean" })
13546
- ], Text.prototype, "strikethrough", 2);
13547
- __decorateClass$6([
13548
- attr({ mode: "boolean" })
13549
- ], Text.prototype, "block", 2);
13550
- __decorateClass$6([
13551
- attr
13552
- ], Text.prototype, "size", 2);
13553
- __decorateClass$6([
13554
- attr
13555
- ], Text.prototype, "font", 2);
13556
- __decorateClass$6([
13557
- attr
13558
- ], Text.prototype, "weight", 2);
13559
- __decorateClass$6([
13560
- attr
13561
- ], Text.prototype, "align", 2);
13562
13080
 
13563
13081
  Text.define(definition$4);
13564
13082
 
@@ -13637,23 +13155,9 @@ __decorateClass$5([
13637
13155
 
13638
13156
  ToggleButton.define(definition$3);
13639
13157
 
13640
- const TooltipPositioningOption = {
13641
- "above-start": "block-start span-inline-end",
13642
- above: "block-start",
13643
- "above-end": "block-start span-inline-start",
13644
- "below-start": "block-end span-inline-end",
13645
- below: "block-end",
13646
- "below-end": "block-end span-inline-start",
13647
- "before-top": "inline-start span-block-end",
13648
- before: "inline-start",
13649
- "before-bottom": "inline-start span-block-start",
13650
- "after-top": "inline-end span-block-end",
13651
- after: "inline-end",
13652
- "after-bottom": "inline-end span-block-start"
13653
- };
13654
13158
  const tagName$2 = `${FluentDesignSystem.prefix}-tooltip`;
13655
13159
 
13656
- 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"]}}`;
13160
+ 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}`;
13657
13161
 
13658
13162
  const template$2 = html`<template popover aria-hidden=true><slot></slot></template>`;
13659
13163