@fluentui/web-components 3.0.0-beta.25 → 3.0.0-beta.27

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.
@@ -3386,70 +3386,70 @@ function uniqueId(prefix = "") {
3386
3386
  return `${prefix}${uniqueIdCounter++}`;
3387
3387
  }
3388
3388
 
3389
- var __defProp$t = Object.defineProperty;
3390
- var __getOwnPropDesc$t = Object.getOwnPropertyDescriptor;
3391
- var __decorateClass$t = (decorators, target, key, kind) => {
3392
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$t(target, key) : target;
3389
+ var __defProp$s = Object.defineProperty;
3390
+ var __getOwnPropDesc$s = Object.getOwnPropertyDescriptor;
3391
+ var __decorateClass$s = (decorators, target, key, kind) => {
3392
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$s(target, key) : target;
3393
3393
  for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
3394
- if (kind && result) __defProp$t(target, key, result);
3394
+ if (kind && result) __defProp$s(target, key, result);
3395
3395
  return result;
3396
3396
  };
3397
3397
  class ARIAGlobalStatesAndProperties {}
3398
- __decorateClass$t([attr({
3398
+ __decorateClass$s([attr({
3399
3399
  attribute: "aria-atomic"
3400
3400
  })], ARIAGlobalStatesAndProperties.prototype, "ariaAtomic", 2);
3401
- __decorateClass$t([attr({
3401
+ __decorateClass$s([attr({
3402
3402
  attribute: "aria-busy"
3403
3403
  })], ARIAGlobalStatesAndProperties.prototype, "ariaBusy", 2);
3404
- __decorateClass$t([attr({
3404
+ __decorateClass$s([attr({
3405
3405
  attribute: "aria-controls"
3406
3406
  })], ARIAGlobalStatesAndProperties.prototype, "ariaControls", 2);
3407
- __decorateClass$t([attr({
3407
+ __decorateClass$s([attr({
3408
3408
  attribute: "aria-current"
3409
3409
  })], ARIAGlobalStatesAndProperties.prototype, "ariaCurrent", 2);
3410
- __decorateClass$t([attr({
3410
+ __decorateClass$s([attr({
3411
3411
  attribute: "aria-describedby"
3412
3412
  })], ARIAGlobalStatesAndProperties.prototype, "ariaDescribedby", 2);
3413
- __decorateClass$t([attr({
3413
+ __decorateClass$s([attr({
3414
3414
  attribute: "aria-details"
3415
3415
  })], ARIAGlobalStatesAndProperties.prototype, "ariaDetails", 2);
3416
- __decorateClass$t([attr({
3416
+ __decorateClass$s([attr({
3417
3417
  attribute: "aria-disabled"
3418
3418
  })], ARIAGlobalStatesAndProperties.prototype, "ariaDisabled", 2);
3419
- __decorateClass$t([attr({
3419
+ __decorateClass$s([attr({
3420
3420
  attribute: "aria-errormessage"
3421
3421
  })], ARIAGlobalStatesAndProperties.prototype, "ariaErrormessage", 2);
3422
- __decorateClass$t([attr({
3422
+ __decorateClass$s([attr({
3423
3423
  attribute: "aria-flowto"
3424
3424
  })], ARIAGlobalStatesAndProperties.prototype, "ariaFlowto", 2);
3425
- __decorateClass$t([attr({
3425
+ __decorateClass$s([attr({
3426
3426
  attribute: "aria-haspopup"
3427
3427
  })], ARIAGlobalStatesAndProperties.prototype, "ariaHaspopup", 2);
3428
- __decorateClass$t([attr({
3428
+ __decorateClass$s([attr({
3429
3429
  attribute: "aria-hidden"
3430
3430
  })], ARIAGlobalStatesAndProperties.prototype, "ariaHidden", 2);
3431
- __decorateClass$t([attr({
3431
+ __decorateClass$s([attr({
3432
3432
  attribute: "aria-invalid"
3433
3433
  })], ARIAGlobalStatesAndProperties.prototype, "ariaInvalid", 2);
3434
- __decorateClass$t([attr({
3434
+ __decorateClass$s([attr({
3435
3435
  attribute: "aria-keyshortcuts"
3436
3436
  })], ARIAGlobalStatesAndProperties.prototype, "ariaKeyshortcuts", 2);
3437
- __decorateClass$t([attr({
3437
+ __decorateClass$s([attr({
3438
3438
  attribute: "aria-label"
3439
3439
  })], ARIAGlobalStatesAndProperties.prototype, "ariaLabel", 2);
3440
- __decorateClass$t([attr({
3440
+ __decorateClass$s([attr({
3441
3441
  attribute: "aria-labelledby"
3442
3442
  })], ARIAGlobalStatesAndProperties.prototype, "ariaLabelledby", 2);
3443
- __decorateClass$t([attr({
3443
+ __decorateClass$s([attr({
3444
3444
  attribute: "aria-live"
3445
3445
  })], ARIAGlobalStatesAndProperties.prototype, "ariaLive", 2);
3446
- __decorateClass$t([attr({
3446
+ __decorateClass$s([attr({
3447
3447
  attribute: "aria-owns"
3448
3448
  })], ARIAGlobalStatesAndProperties.prototype, "ariaOwns", 2);
3449
- __decorateClass$t([attr({
3449
+ __decorateClass$s([attr({
3450
3450
  attribute: "aria-relevant"
3451
3451
  })], ARIAGlobalStatesAndProperties.prototype, "ariaRelevant", 2);
3452
- __decorateClass$t([attr({
3452
+ __decorateClass$s([attr({
3453
3453
  attribute: "aria-roledescription"
3454
3454
  })], ARIAGlobalStatesAndProperties.prototype, "ariaRoledescription", 2);
3455
3455
 
@@ -3618,12 +3618,12 @@ function applyMixins(derivedCtor, ...baseCtors) {
3618
3618
  });
3619
3619
  }
3620
3620
 
3621
- var __defProp$s = Object.defineProperty;
3622
- var __getOwnPropDesc$s = Object.getOwnPropertyDescriptor;
3623
- var __decorateClass$s = (decorators, target, key, kind) => {
3624
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$s(target, key) : target;
3621
+ var __defProp$r = Object.defineProperty;
3622
+ var __getOwnPropDesc$r = Object.getOwnPropertyDescriptor;
3623
+ var __decorateClass$r = (decorators, target, key, kind) => {
3624
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$r(target, key) : target;
3625
3625
  for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
3626
- if (kind && result) __defProp$s(target, key, result);
3626
+ if (kind && result) __defProp$r(target, key, result);
3627
3627
  return result;
3628
3628
  };
3629
3629
  class AccordionItem extends FASTElement {
@@ -3645,23 +3645,23 @@ class AccordionItem extends FASTElement {
3645
3645
  };
3646
3646
  }
3647
3647
  }
3648
- __decorateClass$s([attr({
3648
+ __decorateClass$r([attr({
3649
3649
  attribute: "heading-level",
3650
3650
  mode: "fromView",
3651
3651
  converter: nullableNumberConverter
3652
3652
  })], AccordionItem.prototype, "headinglevel", 2);
3653
- __decorateClass$s([attr({
3653
+ __decorateClass$r([attr({
3654
3654
  mode: "boolean"
3655
3655
  })], AccordionItem.prototype, "expanded", 2);
3656
- __decorateClass$s([attr({
3656
+ __decorateClass$r([attr({
3657
3657
  mode: "boolean"
3658
3658
  })], AccordionItem.prototype, "disabled", 2);
3659
- __decorateClass$s([attr], AccordionItem.prototype, "id", 2);
3660
- __decorateClass$s([attr], AccordionItem.prototype, "size", 2);
3661
- __decorateClass$s([attr({
3659
+ __decorateClass$r([attr], AccordionItem.prototype, "id", 2);
3660
+ __decorateClass$r([attr], AccordionItem.prototype, "size", 2);
3661
+ __decorateClass$r([attr({
3662
3662
  mode: "boolean"
3663
3663
  })], AccordionItem.prototype, "block", 2);
3664
- __decorateClass$s([attr({
3664
+ __decorateClass$r([attr({
3665
3665
  attribute: "expand-icon-position"
3666
3666
  })], AccordionItem.prototype, "expandIconPosition", 2);
3667
3667
  applyMixins(AccordionItem, StartEnd);
@@ -3949,12 +3949,12 @@ const AccordionExpandMode = {
3949
3949
  multi: "multi"
3950
3950
  };
3951
3951
 
3952
- var __defProp$r = Object.defineProperty;
3953
- var __getOwnPropDesc$r = Object.getOwnPropertyDescriptor;
3954
- var __decorateClass$r = (decorators, target, key, kind) => {
3955
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$r(target, key) : target;
3952
+ var __defProp$q = Object.defineProperty;
3953
+ var __getOwnPropDesc$q = Object.getOwnPropertyDescriptor;
3954
+ var __decorateClass$q = (decorators, target, key, kind) => {
3955
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$q(target, key) : target;
3956
3956
  for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
3957
- if (kind && result) __defProp$r(target, key, result);
3957
+ if (kind && result) __defProp$q(target, key, result);
3958
3958
  return result;
3959
3959
  };
3960
3960
  class Accordion extends FASTElement {
@@ -4132,10 +4132,10 @@ class Accordion extends FASTElement {
4132
4132
  }
4133
4133
  }
4134
4134
  }
4135
- __decorateClass$r([attr({
4135
+ __decorateClass$q([attr({
4136
4136
  attribute: "expand-mode"
4137
4137
  })], Accordion.prototype, "expandmode", 2);
4138
- __decorateClass$r([observable], Accordion.prototype, "slottedAccordionItems", 2);
4138
+ __decorateClass$q([observable], Accordion.prototype, "slottedAccordionItems", 2);
4139
4139
 
4140
4140
  const styles$s = css`
4141
4141
  ${display("flex")}
@@ -4158,12 +4158,12 @@ const definition$t = Accordion.compose({
4158
4158
 
4159
4159
  definition$t.define(FluentDesignSystem.registry);
4160
4160
 
4161
- var __defProp$q = Object.defineProperty;
4162
- var __getOwnPropDesc$q = Object.getOwnPropertyDescriptor;
4163
- var __decorateClass$q = (decorators, target, key, kind) => {
4164
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$q(target, key) : target;
4161
+ var __defProp$p = Object.defineProperty;
4162
+ var __getOwnPropDesc$p = Object.getOwnPropertyDescriptor;
4163
+ var __decorateClass$p = (decorators, target, key, kind) => {
4164
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$p(target, key) : target;
4165
4165
  for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
4166
- if (kind && result) __defProp$q(target, key, result);
4166
+ if (kind && result) __defProp$p(target, key, result);
4167
4167
  return result;
4168
4168
  };
4169
4169
  class AnchorButton extends FASTElement {
@@ -4210,31 +4210,31 @@ class AnchorButton extends FASTElement {
4210
4210
  this.removeEventListener("click", this.handleDisabledFocusableClick);
4211
4211
  }
4212
4212
  }
4213
- __decorateClass$q([attr], AnchorButton.prototype, "download", 2);
4214
- __decorateClass$q([attr], AnchorButton.prototype, "href", 2);
4215
- __decorateClass$q([attr], AnchorButton.prototype, "hreflang", 2);
4216
- __decorateClass$q([attr], AnchorButton.prototype, "ping", 2);
4217
- __decorateClass$q([attr], AnchorButton.prototype, "referrerpolicy", 2);
4218
- __decorateClass$q([attr], AnchorButton.prototype, "rel", 2);
4219
- __decorateClass$q([attr], AnchorButton.prototype, "target", 2);
4220
- __decorateClass$q([attr], AnchorButton.prototype, "type", 2);
4221
- __decorateClass$q([observable], AnchorButton.prototype, "defaultSlottedContent", 2);
4222
- __decorateClass$q([attr], AnchorButton.prototype, "appearance", 2);
4223
- __decorateClass$q([attr], AnchorButton.prototype, "shape", 2);
4224
- __decorateClass$q([attr], AnchorButton.prototype, "size", 2);
4225
- __decorateClass$q([attr({
4213
+ __decorateClass$p([attr], AnchorButton.prototype, "download", 2);
4214
+ __decorateClass$p([attr], AnchorButton.prototype, "href", 2);
4215
+ __decorateClass$p([attr], AnchorButton.prototype, "hreflang", 2);
4216
+ __decorateClass$p([attr], AnchorButton.prototype, "ping", 2);
4217
+ __decorateClass$p([attr], AnchorButton.prototype, "referrerpolicy", 2);
4218
+ __decorateClass$p([attr], AnchorButton.prototype, "rel", 2);
4219
+ __decorateClass$p([attr], AnchorButton.prototype, "target", 2);
4220
+ __decorateClass$p([attr], AnchorButton.prototype, "type", 2);
4221
+ __decorateClass$p([observable], AnchorButton.prototype, "defaultSlottedContent", 2);
4222
+ __decorateClass$p([attr], AnchorButton.prototype, "appearance", 2);
4223
+ __decorateClass$p([attr], AnchorButton.prototype, "shape", 2);
4224
+ __decorateClass$p([attr], AnchorButton.prototype, "size", 2);
4225
+ __decorateClass$p([attr({
4226
4226
  attribute: "icon-only",
4227
4227
  mode: "boolean"
4228
4228
  })], AnchorButton.prototype, "iconOnly", 2);
4229
- __decorateClass$q([attr({
4229
+ __decorateClass$p([attr({
4230
4230
  mode: "boolean"
4231
4231
  })], AnchorButton.prototype, "disabled", 2);
4232
- __decorateClass$q([attr({
4232
+ __decorateClass$p([attr({
4233
4233
  attribute: "disabled-focusable",
4234
4234
  mode: "boolean"
4235
4235
  })], AnchorButton.prototype, "disabledFocusable", 2);
4236
4236
  class DelegatesARIALink {}
4237
- __decorateClass$q([attr({
4237
+ __decorateClass$p([attr({
4238
4238
  attribute: "aria-expanded"
4239
4239
  })], DelegatesARIALink.prototype, "ariaExpanded", 2);
4240
4240
  applyMixins(DelegatesARIALink, ARIAGlobalStatesAndProperties);
@@ -4344,12 +4344,12 @@ const AvatarColor = {
4344
4344
  ...AvatarNamedColor
4345
4345
  };
4346
4346
 
4347
- var __defProp$p = Object.defineProperty;
4348
- var __getOwnPropDesc$p = Object.getOwnPropertyDescriptor;
4349
- var __decorateClass$p = (decorators, target, key, kind) => {
4350
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$p(target, key) : target;
4347
+ var __defProp$o = Object.defineProperty;
4348
+ var __getOwnPropDesc$o = Object.getOwnPropertyDescriptor;
4349
+ var __decorateClass$o = (decorators, target, key, kind) => {
4350
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$o(target, key) : target;
4351
4351
  for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
4352
- if (kind && result) __defProp$p(target, key, result);
4352
+ if (kind && result) __defProp$o(target, key, result);
4353
4353
  return result;
4354
4354
  };
4355
4355
  const _Avatar = class _Avatar extends FASTElement {
@@ -4385,16 +4385,16 @@ const _Avatar = class _Avatar extends FASTElement {
4385
4385
  * An array of the available Avatar named colors
4386
4386
  */
4387
4387
  _Avatar.colors = Object.values(AvatarNamedColor);
4388
- __decorateClass$p([attr], _Avatar.prototype, "name", 2);
4389
- __decorateClass$p([attr], _Avatar.prototype, "initials", 2);
4390
- __decorateClass$p([attr({
4388
+ __decorateClass$o([attr], _Avatar.prototype, "name", 2);
4389
+ __decorateClass$o([attr], _Avatar.prototype, "initials", 2);
4390
+ __decorateClass$o([attr({
4391
4391
  converter: nullableNumberConverter
4392
4392
  })], _Avatar.prototype, "size", 2);
4393
- __decorateClass$p([attr], _Avatar.prototype, "shape", 2);
4394
- __decorateClass$p([attr], _Avatar.prototype, "active", 2);
4395
- __decorateClass$p([attr], _Avatar.prototype, "appearance", 2);
4396
- __decorateClass$p([attr], _Avatar.prototype, "color", 2);
4397
- __decorateClass$p([attr({
4393
+ __decorateClass$o([attr], _Avatar.prototype, "shape", 2);
4394
+ __decorateClass$o([attr], _Avatar.prototype, "active", 2);
4395
+ __decorateClass$o([attr], _Avatar.prototype, "appearance", 2);
4396
+ __decorateClass$o([attr], _Avatar.prototype, "color", 2);
4397
+ __decorateClass$o([attr({
4398
4398
  attribute: "color-id"
4399
4399
  })], _Avatar.prototype, "colorId", 2);
4400
4400
  let Avatar = _Avatar;
@@ -4453,12 +4453,12 @@ const BadgeColor = {
4453
4453
  warning: "warning"
4454
4454
  };
4455
4455
 
4456
- var __defProp$o = Object.defineProperty;
4457
- var __getOwnPropDesc$o = Object.getOwnPropertyDescriptor;
4458
- var __decorateClass$o = (decorators, target, key, kind) => {
4459
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$o(target, key) : target;
4456
+ var __defProp$n = Object.defineProperty;
4457
+ var __getOwnPropDesc$n = Object.getOwnPropertyDescriptor;
4458
+ var __decorateClass$n = (decorators, target, key, kind) => {
4459
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$n(target, key) : target;
4460
4460
  for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
4461
- if (kind && result) __defProp$o(target, key, result);
4461
+ if (kind && result) __defProp$n(target, key, result);
4462
4462
  return result;
4463
4463
  };
4464
4464
  class Badge extends FASTElement {
@@ -4468,10 +4468,10 @@ class Badge extends FASTElement {
4468
4468
  this.color = BadgeColor.brand;
4469
4469
  }
4470
4470
  }
4471
- __decorateClass$o([attr], Badge.prototype, "appearance", 2);
4472
- __decorateClass$o([attr], Badge.prototype, "color", 2);
4473
- __decorateClass$o([attr], Badge.prototype, "shape", 2);
4474
- __decorateClass$o([attr], Badge.prototype, "size", 2);
4471
+ __decorateClass$n([attr], Badge.prototype, "appearance", 2);
4472
+ __decorateClass$n([attr], Badge.prototype, "color", 2);
4473
+ __decorateClass$n([attr], Badge.prototype, "shape", 2);
4474
+ __decorateClass$n([attr], Badge.prototype, "size", 2);
4475
4475
  applyMixins(Badge, StartEnd);
4476
4476
 
4477
4477
  const textPadding = spacingHorizontalXXS;
@@ -4855,12 +4855,12 @@ const ButtonType = {
4855
4855
  button: "button"
4856
4856
  };
4857
4857
 
4858
- var __defProp$n = Object.defineProperty;
4859
- var __getOwnPropDesc$n = Object.getOwnPropertyDescriptor;
4860
- var __decorateClass$n = (decorators, target, key, kind) => {
4861
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$n(target, key) : target;
4858
+ var __defProp$m = Object.defineProperty;
4859
+ var __getOwnPropDesc$m = Object.getOwnPropertyDescriptor;
4860
+ var __decorateClass$m = (decorators, target, key, kind) => {
4861
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$m(target, key) : target;
4862
4862
  for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
4863
- if (kind && result) __defProp$n(target, key, result);
4863
+ if (kind && result) __defProp$m(target, key, result);
4864
4864
  return result;
4865
4865
  };
4866
4866
  class Button extends FASTElement {
@@ -5064,46 +5064,46 @@ class Button extends FASTElement {
5064
5064
  * @public
5065
5065
  */
5066
5066
  Button.formAssociated = true;
5067
- __decorateClass$n([attr], Button.prototype, "appearance", 2);
5068
- __decorateClass$n([attr({
5067
+ __decorateClass$m([attr], Button.prototype, "appearance", 2);
5068
+ __decorateClass$m([attr({
5069
5069
  mode: "boolean"
5070
5070
  })], Button.prototype, "autofocus", 2);
5071
- __decorateClass$n([observable], Button.prototype, "defaultSlottedContent", 2);
5072
- __decorateClass$n([attr({
5071
+ __decorateClass$m([observable], Button.prototype, "defaultSlottedContent", 2);
5072
+ __decorateClass$m([attr({
5073
5073
  mode: "boolean"
5074
5074
  })], Button.prototype, "disabled", 2);
5075
- __decorateClass$n([attr({
5075
+ __decorateClass$m([attr({
5076
5076
  attribute: "disabled-focusable",
5077
5077
  mode: "boolean"
5078
5078
  })], Button.prototype, "disabledFocusable", 2);
5079
- __decorateClass$n([attr({
5079
+ __decorateClass$m([attr({
5080
5080
  attribute: "formaction"
5081
5081
  })], Button.prototype, "formAction", 2);
5082
- __decorateClass$n([attr({
5082
+ __decorateClass$m([attr({
5083
5083
  attribute: "form"
5084
5084
  })], Button.prototype, "formAttribute", 2);
5085
- __decorateClass$n([attr({
5085
+ __decorateClass$m([attr({
5086
5086
  attribute: "formenctype"
5087
5087
  })], Button.prototype, "formEnctype", 2);
5088
- __decorateClass$n([attr({
5088
+ __decorateClass$m([attr({
5089
5089
  attribute: "formmethod"
5090
5090
  })], Button.prototype, "formMethod", 2);
5091
- __decorateClass$n([attr({
5091
+ __decorateClass$m([attr({
5092
5092
  attribute: "formnovalidate",
5093
5093
  mode: "boolean"
5094
5094
  })], Button.prototype, "formNoValidate", 2);
5095
- __decorateClass$n([attr({
5095
+ __decorateClass$m([attr({
5096
5096
  attribute: "formtarget"
5097
5097
  })], Button.prototype, "formTarget", 2);
5098
- __decorateClass$n([attr({
5098
+ __decorateClass$m([attr({
5099
5099
  attribute: "icon-only",
5100
5100
  mode: "boolean"
5101
5101
  })], Button.prototype, "iconOnly", 2);
5102
- __decorateClass$n([attr], Button.prototype, "name", 2);
5103
- __decorateClass$n([attr], Button.prototype, "shape", 2);
5104
- __decorateClass$n([attr], Button.prototype, "size", 2);
5105
- __decorateClass$n([attr], Button.prototype, "type", 2);
5106
- __decorateClass$n([attr], Button.prototype, "value", 2);
5102
+ __decorateClass$m([attr], Button.prototype, "name", 2);
5103
+ __decorateClass$m([attr], Button.prototype, "shape", 2);
5104
+ __decorateClass$m([attr], Button.prototype, "size", 2);
5105
+ __decorateClass$m([attr], Button.prototype, "type", 2);
5106
+ __decorateClass$m([attr], Button.prototype, "value", 2);
5107
5107
  applyMixins(Button, StartEnd);
5108
5108
 
5109
5109
  const styles$o = css`
@@ -5139,15 +5139,15 @@ function toggleState(elementInternals, state, force) {
5139
5139
  elementInternals.states.delete(state);
5140
5140
  }
5141
5141
 
5142
- var __defProp$m = Object.defineProperty;
5143
- var __getOwnPropDesc$m = Object.getOwnPropertyDescriptor;
5144
- var __decorateClass$m = (decorators, target, key, kind) => {
5145
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$m(target, key) : target;
5142
+ var __defProp$l = Object.defineProperty;
5143
+ var __getOwnPropDesc$l = Object.getOwnPropertyDescriptor;
5144
+ var __decorateClass$l = (decorators, target, key, kind) => {
5145
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$l(target, key) : target;
5146
5146
  for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
5147
- if (kind && result) __defProp$m(target, key, result);
5147
+ if (kind && result) __defProp$l(target, key, result);
5148
5148
  return result;
5149
5149
  };
5150
- class Checkbox extends FASTElement {
5150
+ class BaseCheckbox extends FASTElement {
5151
5151
  constructor() {
5152
5152
  super();
5153
5153
  this.disabled = false;
@@ -5470,39 +5470,40 @@ class Checkbox extends FASTElement {
5470
5470
  *
5471
5471
  * @public
5472
5472
  */
5473
- Checkbox.formAssociated = true;
5474
- __decorateClass$m([attr({
5473
+ BaseCheckbox.formAssociated = true;
5474
+ __decorateClass$l([attr({
5475
5475
  mode: "boolean"
5476
- })], Checkbox.prototype, "autofocus", 2);
5477
- __decorateClass$m([attr({
5476
+ })], BaseCheckbox.prototype, "autofocus", 2);
5477
+ __decorateClass$l([attr({
5478
5478
  mode: "boolean"
5479
- })], Checkbox.prototype, "disabled", 2);
5480
- __decorateClass$m([attr({
5479
+ })], BaseCheckbox.prototype, "disabled", 2);
5480
+ __decorateClass$l([attr({
5481
5481
  attribute: "form"
5482
- })], Checkbox.prototype, "formAttribute", 2);
5483
- __decorateClass$m([observable], Checkbox.prototype, "indeterminate", 2);
5484
- __decorateClass$m([attr({
5482
+ })], BaseCheckbox.prototype, "formAttribute", 2);
5483
+ __decorateClass$l([observable], BaseCheckbox.prototype, "indeterminate", 2);
5484
+ __decorateClass$l([attr({
5485
5485
  attribute: "checked",
5486
5486
  mode: "boolean"
5487
- })], Checkbox.prototype, "initialChecked", 2);
5488
- __decorateClass$m([attr({
5487
+ })], BaseCheckbox.prototype, "initialChecked", 2);
5488
+ __decorateClass$l([attr({
5489
5489
  attribute: "value",
5490
5490
  mode: "fromView"
5491
- })], Checkbox.prototype, "initialValue", 2);
5492
- __decorateClass$m([attr], Checkbox.prototype, "name", 2);
5493
- __decorateClass$m([attr({
5491
+ })], BaseCheckbox.prototype, "initialValue", 2);
5492
+ __decorateClass$l([attr], BaseCheckbox.prototype, "name", 2);
5493
+ __decorateClass$l([attr({
5494
5494
  mode: "boolean"
5495
- })], Checkbox.prototype, "required", 2);
5496
- __decorateClass$m([attr], Checkbox.prototype, "shape", 2);
5497
- __decorateClass$m([attr], Checkbox.prototype, "size", 2);
5495
+ })], BaseCheckbox.prototype, "required", 2);
5496
+ class Checkbox extends BaseCheckbox {}
5497
+ __decorateClass$l([attr], Checkbox.prototype, "shape", 2);
5498
+ __decorateClass$l([attr], Checkbox.prototype, "size", 2);
5498
5499
 
5499
- const checkedState = css.partial`:is([state--checked], :state(checked))`;
5500
+ const checkedState$1 = css.partial`:is([state--checked], :state(checked))`;
5500
5501
  const indeterminateState = css.partial`:is([state--indeterminate], :state(indeterminate))`;
5501
5502
  const styles$n = css`
5502
5503
  ${display("inline-flex")}
5503
5504
 
5504
- :host{--size:16px;background-color:${colorNeutralBackground1};border-radius:${borderRadiusSmall};border:${strokeWidthThin} solid ${colorNeutralStrokeAccessible};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${colorNeutralStrokeAccessibleHover}}:host(:active){border-color:${colorNeutralStrokeAccessiblePressed}}:host(${checkedState}:hover){background-color:${colorCompoundBrandBackgroundHover};border-color:${colorCompoundBrandStrokeHover}}:host(${checkedState}:active){background-color:${colorCompoundBrandBackgroundPressed};border-color:${colorCompoundBrandStrokePressed}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${strokeWidthThick} solid ${colorTransparentStroke};border-radius:${borderRadiusMedium}}:host(:not([slot='input']):focus-visible)::after{border-color:${colorStrokeFocus2}}.indeterminate-indicator,.checked-indicator{color:${colorNeutralForegroundInverted};inset:0;margin:auto;position:absolute}::slotted([slot='checked-indicator']),.checked-indicator{fill:currentColor;display:inline-flex;flex:1 0 auto;width:12px}:host(:not(${checkedState})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${checkedState}),:host(${indeterminateState}){border-color:${colorCompoundBrandStroke}}:host(${checkedState}),:host(${indeterminateState}) .indeterminate-indicator{background-color:${colorCompoundBrandBackground}}:host(${indeterminateState}) .indeterminate-indicator{border-radius:${borderRadiusSmall};position:absolute;width:calc(var(--size) / 2);inset:0}:host([size='large']){--size:20px}:host([size='large']) ::slotted([slot='checked-indicator']),:host([size='large']) .checked-indicator{width:16px}:host([shape='circular']),:host([shape='circular']) .indeterminate-indicator{border-radius:${borderRadiusCircular}}:host([disabled]),:host([disabled]${checkedState}){background-color:${colorNeutralBackgroundDisabled};border-color:${colorNeutralStrokeDisabled}}:host([disabled]){cursor:unset}:host([disabled]${indeterminateState}) .indeterminate-indicator{background-color:${colorNeutralStrokeDisabled}}:host([disabled]${checkedState}) .checked-indicator{color:${colorNeutralStrokeDisabled}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
5505
- :host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${checkedState}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${checkedState}),:host(${indeterminateState}) .indeterminate-indicator{background-color:FieldText}:host(${checkedState}:not([disabled]):hover),:host(${indeterminateState}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${indeterminateState}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${checkedState}) .checked-indicator{color:GrayText}`));
5505
+ :host{--size:16px;background-color:${colorNeutralBackground1};border-radius:${borderRadiusSmall};border:${strokeWidthThin} solid ${colorNeutralStrokeAccessible};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${colorNeutralStrokeAccessibleHover}}:host(:active){border-color:${colorNeutralStrokeAccessiblePressed}}:host(${checkedState$1}:hover){background-color:${colorCompoundBrandBackgroundHover};border-color:${colorCompoundBrandStrokeHover}}:host(${checkedState$1}:active){background-color:${colorCompoundBrandBackgroundPressed};border-color:${colorCompoundBrandStrokePressed}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${strokeWidthThick} solid ${colorTransparentStroke};border-radius:${borderRadiusMedium}}:host(:not([slot='input']):focus-visible)::after{border-color:${colorStrokeFocus2}}.indeterminate-indicator,.checked-indicator{color:${colorNeutralForegroundInverted};inset:0;margin:auto;position:absolute}::slotted([slot='checked-indicator']),.checked-indicator{fill:currentColor;display:inline-flex;flex:1 0 auto;width:12px}:host(:not(${checkedState$1})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${checkedState$1}),:host(${indeterminateState}){border-color:${colorCompoundBrandStroke}}:host(${checkedState$1}),:host(${indeterminateState}) .indeterminate-indicator{background-color:${colorCompoundBrandBackground}}:host(${indeterminateState}) .indeterminate-indicator{border-radius:${borderRadiusSmall};position:absolute;width:calc(var(--size) / 2);inset:0}:host([size='large']){--size:20px}:host([size='large']) ::slotted([slot='checked-indicator']),:host([size='large']) .checked-indicator{width:16px}:host([shape='circular']),:host([shape='circular']) .indeterminate-indicator{border-radius:${borderRadiusCircular}}:host([disabled]),:host([disabled]${checkedState$1}){background-color:${colorNeutralBackgroundDisabled};border-color:${colorNeutralStrokeDisabled}}:host([disabled]){cursor:unset}:host([disabled]${indeterminateState}) .indeterminate-indicator{background-color:${colorNeutralStrokeDisabled}}:host([disabled]${checkedState$1}) .checked-indicator{color:${colorNeutralStrokeDisabled}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
5506
+ :host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${checkedState$1}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${checkedState$1}),:host(${indeterminateState}) .indeterminate-indicator{background-color:FieldText}:host(${checkedState$1}:not([disabled]):hover),:host(${indeterminateState}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${indeterminateState}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${checkedState$1}) .checked-indicator{color:GrayText}`));
5506
5507
 
5507
5508
  const checkedIndicator = html.partial( /* html */
5508
5509
  `
@@ -5560,12 +5561,12 @@ const definition$n = CompoundButton.compose({
5560
5561
 
5561
5562
  definition$n.define(FluentDesignSystem.registry);
5562
5563
 
5563
- var __defProp$l = Object.defineProperty;
5564
- var __getOwnPropDesc$l = Object.getOwnPropertyDescriptor;
5565
- var __decorateClass$l = (decorators, target, key, kind) => {
5566
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$l(target, key) : target;
5564
+ var __defProp$k = Object.defineProperty;
5565
+ var __getOwnPropDesc$k = Object.getOwnPropertyDescriptor;
5566
+ var __decorateClass$k = (decorators, target, key, kind) => {
5567
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$k(target, key) : target;
5567
5568
  for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
5568
- if (kind && result) __defProp$l(target, key, result);
5569
+ if (kind && result) __defProp$k(target, key, result);
5569
5570
  return result;
5570
5571
  };
5571
5572
  class CounterBadge extends FASTElement {
@@ -5596,22 +5597,22 @@ class CounterBadge extends FASTElement {
5596
5597
  return;
5597
5598
  }
5598
5599
  }
5599
- __decorateClass$l([attr], CounterBadge.prototype, "appearance", 2);
5600
- __decorateClass$l([attr], CounterBadge.prototype, "color", 2);
5601
- __decorateClass$l([attr], CounterBadge.prototype, "shape", 2);
5602
- __decorateClass$l([attr], CounterBadge.prototype, "size", 2);
5603
- __decorateClass$l([attr({
5600
+ __decorateClass$k([attr], CounterBadge.prototype, "appearance", 2);
5601
+ __decorateClass$k([attr], CounterBadge.prototype, "color", 2);
5602
+ __decorateClass$k([attr], CounterBadge.prototype, "shape", 2);
5603
+ __decorateClass$k([attr], CounterBadge.prototype, "size", 2);
5604
+ __decorateClass$k([attr({
5604
5605
  converter: nullableNumberConverter
5605
5606
  })], CounterBadge.prototype, "count", 2);
5606
- __decorateClass$l([attr({
5607
+ __decorateClass$k([attr({
5607
5608
  attribute: "overflow-count",
5608
5609
  converter: nullableNumberConverter
5609
5610
  })], CounterBadge.prototype, "overflowCount", 2);
5610
- __decorateClass$l([attr({
5611
+ __decorateClass$k([attr({
5611
5612
  attribute: "show-zero",
5612
5613
  mode: "boolean"
5613
5614
  })], CounterBadge.prototype, "showZero", 2);
5614
- __decorateClass$l([attr({
5615
+ __decorateClass$k([attr({
5615
5616
  mode: "boolean"
5616
5617
  })], CounterBadge.prototype, "dot", 2);
5617
5618
  applyMixins(CounterBadge, StartEnd);
@@ -5645,12 +5646,12 @@ const DialogType = {
5645
5646
  alert: "alert"
5646
5647
  };
5647
5648
 
5648
- var __defProp$k = Object.defineProperty;
5649
- var __getOwnPropDesc$k = Object.getOwnPropertyDescriptor;
5650
- var __decorateClass$k = (decorators, target, key, kind) => {
5651
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$k(target, key) : target;
5649
+ var __defProp$j = Object.defineProperty;
5650
+ var __getOwnPropDesc$j = Object.getOwnPropertyDescriptor;
5651
+ var __decorateClass$j = (decorators, target, key, kind) => {
5652
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$j(target, key) : target;
5652
5653
  for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
5653
- if (kind && result) __defProp$k(target, key, result);
5654
+ if (kind && result) __defProp$j(target, key, result);
5654
5655
  return result;
5655
5656
  };
5656
5657
  class Dialog extends FASTElement {
@@ -5718,14 +5719,14 @@ class Dialog extends FASTElement {
5718
5719
  return true;
5719
5720
  }
5720
5721
  }
5721
- __decorateClass$k([observable], Dialog.prototype, "dialog", 2);
5722
- __decorateClass$k([attr({
5722
+ __decorateClass$j([observable], Dialog.prototype, "dialog", 2);
5723
+ __decorateClass$j([attr({
5723
5724
  attribute: "aria-describedby"
5724
5725
  })], Dialog.prototype, "ariaDescribedby", 2);
5725
- __decorateClass$k([attr({
5726
+ __decorateClass$j([attr({
5726
5727
  attribute: "aria-labelledby"
5727
5728
  })], Dialog.prototype, "ariaLabelledby", 2);
5728
- __decorateClass$k([attr], Dialog.prototype, "type", 2);
5729
+ __decorateClass$j([attr], Dialog.prototype, "type", 2);
5729
5730
 
5730
5731
  const template$l = html`<dialog role="${x => x.type === DialogType.alert ? "alertdialog" : "dialog"}" type="${x => x.type}" class="dialog" part="dialog" aria-modal="${x => x.type === DialogType.modal || x.type === DialogType.alert ? "true" : void 0}" aria-describedby="${x => x.ariaDescribedby}" aria-labelledby="${x => x.ariaLabelledby}" aria-label="${x => x.ariaLabel}" @click="${(x, c) => x.clickHandler(c.event)}" @cancel="${(x, c) => x.type === DialogType.alert ? c.event.preventDefault() : x.hide()}" ${ref("dialog")}><slot></slot></dialog>`;
5731
5732
 
@@ -5741,12 +5742,12 @@ const definition$l = Dialog.compose({
5741
5742
 
5742
5743
  definition$l.define(FluentDesignSystem.registry);
5743
5744
 
5744
- var __defProp$j = Object.defineProperty;
5745
- var __getOwnPropDesc$j = Object.getOwnPropertyDescriptor;
5746
- var __decorateClass$j = (decorators, target, key, kind) => {
5747
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$j(target, key) : target;
5745
+ var __defProp$i = Object.defineProperty;
5746
+ var __getOwnPropDesc$i = Object.getOwnPropertyDescriptor;
5747
+ var __decorateClass$i = (decorators, target, key, kind) => {
5748
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$i(target, key) : target;
5748
5749
  for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
5749
- if (kind && result) __defProp$j(target, key, result);
5750
+ if (kind && result) __defProp$i(target, key, result);
5750
5751
  return result;
5751
5752
  };
5752
5753
  class DialogBody extends FASTElement {
@@ -5755,7 +5756,7 @@ class DialogBody extends FASTElement {
5755
5756
  this.noTitleAction = false;
5756
5757
  }
5757
5758
  }
5758
- __decorateClass$j([attr({
5759
+ __decorateClass$i([attr({
5759
5760
  mode: "boolean",
5760
5761
  attribute: "no-title-action"
5761
5762
  })], DialogBody.prototype, "noTitleAction", 2);
@@ -5774,7 +5775,7 @@ const dismissed16Regular = html.partial(`
5774
5775
  fill="currentColor"
5775
5776
  ></path>
5776
5777
  </svg>`);
5777
- const template$k = html`<div class="title" part="title"><slot name="title"></slot><slot name="title-action"><fluent-button ?hidden=${x => x.noTitleAction || x.parentNode?.type !== DialogType.nonModal} tabindex="0" part="title-action" class="title-action" appearance="transparent" icon-only @click=${x => x.parentNode?.hide()} ${ref("defaultTitleAction")}>${dismissed16Regular}</fluent-button></slot></div><div class="content" part="content"><slot></slot></div><div class="actions" part="actions"><slot name="action"></slot></div>`;
5778
+ const template$k = html`<div class="title" part="title"><slot name="title"></slot><slot name="title-action"><fluent-button ?hidden=${x => x.noTitleAction || x.parentNode?.type === DialogType.alert} tabindex="0" part="title-action" class="title-action" appearance="transparent" icon-only @click=${x => x.parentNode?.hide()} ${ref("defaultTitleAction")}>${dismissed16Regular}</fluent-button></slot></div><div class="content" part="content"><slot></slot></div><div class="actions" part="actions"><slot name="action"></slot></div>`;
5778
5779
 
5779
5780
  const styles$j = css`
5780
5781
  ${display("grid")}
@@ -5801,33 +5802,71 @@ const DividerRole = {
5801
5802
  };
5802
5803
  const DividerOrientation = Orientation;
5803
5804
 
5804
- var __defProp$i = Object.defineProperty;
5805
- var __getOwnPropDesc$i = Object.getOwnPropertyDescriptor;
5806
- var __decorateClass$i = (decorators, target, key, kind) => {
5807
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$i(target, key) : target;
5805
+ var __defProp$h = Object.defineProperty;
5806
+ var __getOwnPropDesc$h = Object.getOwnPropertyDescriptor;
5807
+ var __decorateClass$h = (decorators, target, key, kind) => {
5808
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$h(target, key) : target;
5808
5809
  for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
5809
- if (kind && result) __defProp$i(target, key, result);
5810
+ if (kind && result) __defProp$h(target, key, result);
5810
5811
  return result;
5811
5812
  };
5812
5813
  class Divider extends FASTElement {
5813
5814
  constructor() {
5814
5815
  super(...arguments);
5815
- this.role = DividerRole.separator;
5816
- this.orientation = DividerOrientation.horizontal;
5816
+ /**
5817
+ * The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
5818
+ *
5819
+ * @internal
5820
+ */
5821
+ this.elementInternals = this.attachInternals();
5822
+ }
5823
+ connectedCallback() {
5824
+ super.connectedCallback();
5825
+ this.elementInternals.role = this.role ?? DividerRole.separator;
5826
+ if (this.role !== DividerRole.presentation) {
5827
+ this.elementInternals.ariaOrientation = this.orientation ?? DividerOrientation.horizontal;
5828
+ }
5829
+ }
5830
+ /**
5831
+ * Sets the element's internal role when the role attribute changes.
5832
+ *
5833
+ * @param previous - the previous role value
5834
+ * @param next - the current role value
5835
+ * @internal
5836
+ */
5837
+ roleChanged(previous, next) {
5838
+ if (this.$fastController.isConnected) {
5839
+ this.elementInternals.role = `${next ?? DividerRole.separator}`;
5840
+ }
5841
+ if (next === DividerRole.presentation) {
5842
+ this.elementInternals.ariaOrientation = null;
5843
+ }
5844
+ }
5845
+ /**
5846
+ * Sets the element's internal orientation when the orientation attribute changes.
5847
+ *
5848
+ * @param previous - the previous orientation value
5849
+ * @param next - the current orientation value
5850
+ * @internal
5851
+ */
5852
+ orientationChanged(previous, next) {
5853
+ if (this.$fastController.isConnected) {
5854
+ this.elementInternals.ariaOrientation = this.role !== DividerRole.presentation ? next : null;
5855
+ }
5817
5856
  }
5818
5857
  }
5819
- __decorateClass$i([attr], Divider.prototype, "role", 2);
5820
- __decorateClass$i([attr], Divider.prototype, "orientation", 2);
5821
- __decorateClass$i([attr({
5858
+ __decorateClass$h([attr], Divider.prototype, "role", 2);
5859
+ __decorateClass$h([attr], Divider.prototype, "orientation", 2);
5860
+ __decorateClass$h([attr({
5822
5861
  attribute: "align-content"
5823
5862
  })], Divider.prototype, "alignContent", 2);
5824
- __decorateClass$i([attr], Divider.prototype, "appearance", 2);
5825
- __decorateClass$i([attr({
5863
+ __decorateClass$h([attr], Divider.prototype, "appearance", 2);
5864
+ __decorateClass$h([attr({
5826
5865
  mode: "boolean"
5827
5866
  })], Divider.prototype, "inset", 2);
5828
5867
 
5829
5868
  function dividerTemplate() {
5830
- return html`<template role="${x => x.role}" aria-orientation="${x => x.role !== DividerRole.presentation ? x.orientation : void 0}"><slot></slot></template>`;
5869
+ return html`<slot></slot>`;
5831
5870
  }
5832
5871
  const template$j = dividerTemplate();
5833
5872
 
@@ -5864,12 +5903,12 @@ const ValidationFlags = {
5864
5903
  valid: "valid"
5865
5904
  };
5866
5905
 
5867
- var __defProp$h = Object.defineProperty;
5868
- var __getOwnPropDesc$h = Object.getOwnPropertyDescriptor;
5869
- var __decorateClass$h = (decorators, target, key, kind) => {
5870
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$h(target, key) : target;
5906
+ var __defProp$g = Object.defineProperty;
5907
+ var __getOwnPropDesc$g = Object.getOwnPropertyDescriptor;
5908
+ var __decorateClass$g = (decorators, target, key, kind) => {
5909
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$g(target, key) : target;
5871
5910
  for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
5872
- if (kind && result) __defProp$h(target, key, result);
5911
+ if (kind && result) __defProp$g(target, key, result);
5873
5912
  return result;
5874
5913
  };
5875
5914
  class Field extends FASTElement {
@@ -5989,11 +6028,11 @@ class Field extends FASTElement {
5989
6028
  }
5990
6029
  }
5991
6030
  }
5992
- __decorateClass$h([attr({
6031
+ __decorateClass$g([attr({
5993
6032
  attribute: "label-position"
5994
6033
  })], Field.prototype, "labelPosition", 2);
5995
- __decorateClass$h([observable], Field.prototype, "messageSlot", 2);
5996
- __decorateClass$h([observable], Field.prototype, "slottedInputs", 2);
6034
+ __decorateClass$g([observable], Field.prototype, "messageSlot", 2);
6035
+ __decorateClass$g([observable], Field.prototype, "slottedInputs", 2);
5997
6036
 
5998
6037
  const disabledState = css.partial`:is([state--disabled], :state(disabled))`;
5999
6038
  const focusVisibleState = css.partial`:is([state--focus-visible], :state(focus-visible))`;
@@ -6036,26 +6075,26 @@ const definition$i = Field.compose({
6036
6075
 
6037
6076
  definition$i.define(FluentDesignSystem.registry);
6038
6077
 
6039
- var __defProp$g = Object.defineProperty;
6040
- var __getOwnPropDesc$g = Object.getOwnPropertyDescriptor;
6041
- var __decorateClass$g = (decorators, target, key, kind) => {
6042
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$g(target, key) : target;
6078
+ var __defProp$f = Object.defineProperty;
6079
+ var __getOwnPropDesc$f = Object.getOwnPropertyDescriptor;
6080
+ var __decorateClass$f = (decorators, target, key, kind) => {
6081
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$f(target, key) : target;
6043
6082
  for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
6044
- if (kind && result) __defProp$g(target, key, result);
6083
+ if (kind && result) __defProp$f(target, key, result);
6045
6084
  return result;
6046
6085
  };
6047
6086
  class Image extends FASTElement {}
6048
- __decorateClass$g([attr({
6087
+ __decorateClass$f([attr({
6049
6088
  mode: "boolean"
6050
6089
  })], Image.prototype, "block", 2);
6051
- __decorateClass$g([attr({
6090
+ __decorateClass$f([attr({
6052
6091
  mode: "boolean"
6053
6092
  })], Image.prototype, "bordered", 2);
6054
- __decorateClass$g([attr({
6093
+ __decorateClass$f([attr({
6055
6094
  mode: "boolean"
6056
6095
  })], Image.prototype, "shadow", 2);
6057
- __decorateClass$g([attr], Image.prototype, "fit", 2);
6058
- __decorateClass$g([attr], Image.prototype, "shape", 2);
6096
+ __decorateClass$f([attr], Image.prototype, "fit", 2);
6097
+ __decorateClass$f([attr], Image.prototype, "shape", 2);
6059
6098
 
6060
6099
  const template$h = html`<slot></slot>`;
6061
6100
 
@@ -6070,12 +6109,12 @@ const definition$h = Image.compose({
6070
6109
 
6071
6110
  definition$h.define(FluentDesignSystem.registry);
6072
6111
 
6073
- var __defProp$f = Object.defineProperty;
6074
- var __getOwnPropDesc$f = Object.getOwnPropertyDescriptor;
6075
- var __decorateClass$f = (decorators, target, key, kind) => {
6076
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$f(target, key) : target;
6112
+ var __defProp$e = Object.defineProperty;
6113
+ var __getOwnPropDesc$e = Object.getOwnPropertyDescriptor;
6114
+ var __decorateClass$e = (decorators, target, key, kind) => {
6115
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$e(target, key) : target;
6077
6116
  for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
6078
- if (kind && result) __defProp$f(target, key, result);
6117
+ if (kind && result) __defProp$e(target, key, result);
6079
6118
  return result;
6080
6119
  };
6081
6120
  class Label extends FASTElement {
@@ -6085,12 +6124,12 @@ class Label extends FASTElement {
6085
6124
  this.required = false;
6086
6125
  }
6087
6126
  }
6088
- __decorateClass$f([attr], Label.prototype, "size", 2);
6089
- __decorateClass$f([attr], Label.prototype, "weight", 2);
6090
- __decorateClass$f([attr({
6127
+ __decorateClass$e([attr], Label.prototype, "size", 2);
6128
+ __decorateClass$e([attr], Label.prototype, "weight", 2);
6129
+ __decorateClass$e([attr({
6091
6130
  mode: "boolean"
6092
6131
  })], Label.prototype, "disabled", 2);
6093
- __decorateClass$f([attr({
6132
+ __decorateClass$e([attr({
6094
6133
  mode: "boolean"
6095
6134
  })], Label.prototype, "required", 2);
6096
6135
 
@@ -7066,12 +7105,12 @@ const MenuItemRole = {
7066
7105
  [MenuItemRole.menuitemradio]: "menuitemradio"
7067
7106
  });
7068
7107
 
7069
- var __defProp$e = Object.defineProperty;
7070
- var __getOwnPropDesc$e = Object.getOwnPropertyDescriptor;
7071
- var __decorateClass$e = (decorators, target, key, kind) => {
7072
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$e(target, key) : target;
7108
+ var __defProp$d = Object.defineProperty;
7109
+ var __getOwnPropDesc$d = Object.getOwnPropertyDescriptor;
7110
+ var __decorateClass$d = (decorators, target, key, kind) => {
7111
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$d(target, key) : target;
7073
7112
  for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
7074
- if (kind && result) __defProp$e(target, key, result);
7113
+ if (kind && result) __defProp$d(target, key, result);
7075
7114
  return result;
7076
7115
  };
7077
7116
  class MenuItem extends FASTElement {
@@ -7276,21 +7315,21 @@ class MenuItem extends FASTElement {
7276
7315
  });
7277
7316
  }
7278
7317
  }
7279
- __decorateClass$e([attr({
7318
+ __decorateClass$d([attr({
7280
7319
  mode: "boolean"
7281
7320
  })], MenuItem.prototype, "disabled", 2);
7282
- __decorateClass$e([attr({
7321
+ __decorateClass$d([attr({
7283
7322
  mode: "boolean"
7284
7323
  })], MenuItem.prototype, "expanded", 2);
7285
- __decorateClass$e([attr], MenuItem.prototype, "role", 2);
7286
- __decorateClass$e([attr({
7324
+ __decorateClass$d([attr], MenuItem.prototype, "role", 2);
7325
+ __decorateClass$d([attr({
7287
7326
  mode: "boolean"
7288
7327
  })], MenuItem.prototype, "checked", 2);
7289
- __decorateClass$e([attr({
7328
+ __decorateClass$d([attr({
7290
7329
  mode: "boolean"
7291
7330
  })], MenuItem.prototype, "hidden", 2);
7292
- __decorateClass$e([observable], MenuItem.prototype, "slottedSubmenu", 2);
7293
- __decorateClass$e([observable], MenuItem.prototype, "submenu", 2);
7331
+ __decorateClass$d([observable], MenuItem.prototype, "slottedSubmenu", 2);
7332
+ __decorateClass$d([observable], MenuItem.prototype, "submenu", 2);
7294
7333
  applyMixins(MenuItem, StartEnd);
7295
7334
 
7296
7335
  const styles$e = css`
@@ -7320,12 +7359,12 @@ const definition$e = MenuItem.compose({
7320
7359
 
7321
7360
  definition$e.define(FluentDesignSystem.registry);
7322
7361
 
7323
- var __defProp$d = Object.defineProperty;
7324
- var __getOwnPropDesc$d = Object.getOwnPropertyDescriptor;
7325
- var __decorateClass$d = (decorators, target, key, kind) => {
7326
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$d(target, key) : target;
7362
+ var __defProp$c = Object.defineProperty;
7363
+ var __getOwnPropDesc$c = Object.getOwnPropertyDescriptor;
7364
+ var __decorateClass$c = (decorators, target, key, kind) => {
7365
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$c(target, key) : target;
7327
7366
  for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
7328
- if (kind && result) __defProp$d(target, key, result);
7367
+ if (kind && result) __defProp$c(target, key, result);
7329
7368
  return result;
7330
7369
  };
7331
7370
  const _MenuList = class _MenuList extends FASTElement {
@@ -7566,7 +7605,7 @@ const _MenuList = class _MenuList extends FASTElement {
7566
7605
  }
7567
7606
  };
7568
7607
  _MenuList.focusableElementRoles = MenuItemRole;
7569
- __decorateClass$d([observable], _MenuList.prototype, "items", 2);
7608
+ __decorateClass$c([observable], _MenuList.prototype, "items", 2);
7570
7609
  let MenuList = _MenuList;
7571
7610
 
7572
7611
  const styles$d = css`
@@ -7587,12 +7626,12 @@ const definition$d = MenuList.compose({
7587
7626
 
7588
7627
  definition$d.define(FluentDesignSystem.registry);
7589
7628
 
7590
- var __defProp$c = Object.defineProperty;
7591
- var __getOwnPropDesc$c = Object.getOwnPropertyDescriptor;
7592
- var __decorateClass$c = (decorators, target, key, kind) => {
7593
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$c(target, key) : target;
7629
+ var __defProp$b = Object.defineProperty;
7630
+ var __getOwnPropDesc$b = Object.getOwnPropertyDescriptor;
7631
+ var __decorateClass$b = (decorators, target, key, kind) => {
7632
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$b(target, key) : target;
7594
7633
  for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
7595
- if (kind && result) __defProp$c(target, key, result);
7634
+ if (kind && result) __defProp$b(target, key, result);
7596
7635
  return result;
7597
7636
  };
7598
7637
  class Menu extends FASTElement {
@@ -7928,27 +7967,27 @@ class Menu extends FASTElement {
7928
7967
  }
7929
7968
  }
7930
7969
  }
7931
- __decorateClass$c([observable, attr({
7970
+ __decorateClass$b([observable, attr({
7932
7971
  attribute: "open-on-hover",
7933
7972
  mode: "boolean"
7934
7973
  })], Menu.prototype, "openOnHover", 2);
7935
- __decorateClass$c([observable, attr({
7974
+ __decorateClass$b([observable, attr({
7936
7975
  attribute: "open-on-context",
7937
7976
  mode: "boolean"
7938
7977
  })], Menu.prototype, "openOnContext", 2);
7939
- __decorateClass$c([observable, attr({
7978
+ __decorateClass$b([observable, attr({
7940
7979
  attribute: "close-on-scroll",
7941
7980
  mode: "boolean"
7942
7981
  })], Menu.prototype, "closeOnScroll", 2);
7943
- __decorateClass$c([observable, attr({
7982
+ __decorateClass$b([observable, attr({
7944
7983
  attribute: "persist-on-item-click",
7945
7984
  mode: "boolean"
7946
7985
  })], Menu.prototype, "persistOnItemClick", 2);
7947
- __decorateClass$c([observable, attr({
7986
+ __decorateClass$b([observable, attr({
7948
7987
  mode: "boolean"
7949
7988
  })], Menu.prototype, "open", 2);
7950
- __decorateClass$c([observable], Menu.prototype, "slottedMenuList", 2);
7951
- __decorateClass$c([observable], Menu.prototype, "slottedTriggers", 2);
7989
+ __decorateClass$b([observable], Menu.prototype, "slottedMenuList", 2);
7990
+ __decorateClass$b([observable], Menu.prototype, "slottedTriggers", 2);
7952
7991
 
7953
7992
  const styles$c = css`
7954
7993
  :host{position:relative;z-index:var(--z-index-menu,1)}.positioning-container{position:fixed;top:0;left:0;transform:translate(0,0)}`;
@@ -7972,12 +8011,12 @@ const definition$c = Menu.compose({
7972
8011
 
7973
8012
  definition$c.define(FluentDesignSystem.registry);
7974
8013
 
7975
- var __defProp$b = Object.defineProperty;
7976
- var __getOwnPropDesc$b = Object.getOwnPropertyDescriptor;
7977
- var __decorateClass$b = (decorators, target, key, kind) => {
7978
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$b(target, key) : target;
8014
+ var __defProp$a = Object.defineProperty;
8015
+ var __getOwnPropDesc$a = Object.getOwnPropertyDescriptor;
8016
+ var __decorateClass$a = (decorators, target, key, kind) => {
8017
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$a(target, key) : target;
7979
8018
  for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
7980
- if (kind && result) __defProp$b(target, key, result);
8019
+ if (kind && result) __defProp$a(target, key, result);
7981
8020
  return result;
7982
8021
  };
7983
8022
  class BaseProgress extends FASTElement {
@@ -8013,23 +8052,23 @@ class BaseProgress extends FASTElement {
8013
8052
  this.percentComplete = range === 0 ? 0 : Math.fround((value - min) / range * 100);
8014
8053
  }
8015
8054
  }
8016
- __decorateClass$b([attr({
8055
+ __decorateClass$a([attr({
8017
8056
  converter: nullableNumberConverter
8018
8057
  })], BaseProgress.prototype, "value", 2);
8019
- __decorateClass$b([attr({
8058
+ __decorateClass$a([attr({
8020
8059
  converter: nullableNumberConverter
8021
8060
  })], BaseProgress.prototype, "min", 2);
8022
- __decorateClass$b([attr({
8061
+ __decorateClass$a([attr({
8023
8062
  converter: nullableNumberConverter
8024
8063
  })], BaseProgress.prototype, "max", 2);
8025
- __decorateClass$b([observable], BaseProgress.prototype, "percentComplete", 2);
8064
+ __decorateClass$a([observable], BaseProgress.prototype, "percentComplete", 2);
8026
8065
 
8027
- var __defProp$a = Object.defineProperty;
8028
- var __getOwnPropDesc$a = Object.getOwnPropertyDescriptor;
8029
- var __decorateClass$a = (decorators, target, key, kind) => {
8030
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$a(target, key) : target;
8066
+ var __defProp$9 = Object.defineProperty;
8067
+ var __getOwnPropDesc$9 = Object.getOwnPropertyDescriptor;
8068
+ var __decorateClass$9 = (decorators, target, key, kind) => {
8069
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$9(target, key) : target;
8031
8070
  for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
8032
- if (kind && result) __defProp$a(target, key, result);
8071
+ if (kind && result) __defProp$9(target, key, result);
8033
8072
  return result;
8034
8073
  };
8035
8074
  class ProgressBar extends BaseProgress {
@@ -8038,9 +8077,9 @@ class ProgressBar extends BaseProgress {
8038
8077
  this.validationState = null;
8039
8078
  }
8040
8079
  }
8041
- __decorateClass$a([attr], ProgressBar.prototype, "thickness", 2);
8042
- __decorateClass$a([attr], ProgressBar.prototype, "shape", 2);
8043
- __decorateClass$a([attr({
8080
+ __decorateClass$9([attr], ProgressBar.prototype, "thickness", 2);
8081
+ __decorateClass$9([attr], ProgressBar.prototype, "shape", 2);
8082
+ __decorateClass$9([attr({
8044
8083
  attribute: "validation-state"
8045
8084
  })], ProgressBar.prototype, "validationState", 2);
8046
8085
 
@@ -8520,12 +8559,12 @@ class FormAssociatedRadio extends CheckableFormAssociated(_Radio) {
8520
8559
  }
8521
8560
  }
8522
8561
 
8523
- var __defProp$9 = Object.defineProperty;
8524
- var __getOwnPropDesc$9 = Object.getOwnPropertyDescriptor;
8525
- var __decorateClass$9 = (decorators, target, key, kind) => {
8526
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$9(target, key) : target;
8562
+ var __defProp$8 = Object.defineProperty;
8563
+ var __getOwnPropDesc$8 = Object.getOwnPropertyDescriptor;
8564
+ var __decorateClass$8 = (decorators, target, key, kind) => {
8565
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$8(target, key) : target;
8527
8566
  for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
8528
- if (kind && result) __defProp$9(target, key, result);
8567
+ if (kind && result) __defProp$8(target, key, result);
8529
8568
  return result;
8530
8569
  };
8531
8570
  class Radio extends FormAssociatedRadio {
@@ -8592,17 +8631,17 @@ class Radio extends FormAssociatedRadio {
8592
8631
  return true;
8593
8632
  }
8594
8633
  }
8595
- __decorateClass$9([observable], Radio.prototype, "name", 2);
8596
- __decorateClass$9([observable], Radio.prototype, "defaultSlottedNodes", 2);
8634
+ __decorateClass$8([observable], Radio.prototype, "name", 2);
8635
+ __decorateClass$8([observable], Radio.prototype, "defaultSlottedNodes", 2);
8597
8636
 
8598
8637
  const RadioGroupOrientation = Orientation;
8599
8638
 
8600
- var __defProp$8 = Object.defineProperty;
8601
- var __getOwnPropDesc$8 = Object.getOwnPropertyDescriptor;
8602
- var __decorateClass$8 = (decorators, target, key, kind) => {
8603
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$8(target, key) : target;
8639
+ var __defProp$7 = Object.defineProperty;
8640
+ var __getOwnPropDesc$7 = Object.getOwnPropertyDescriptor;
8641
+ var __decorateClass$7 = (decorators, target, key, kind) => {
8642
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$7(target, key) : target;
8604
8643
  for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
8605
- if (kind && result) __defProp$8(target, key, result);
8644
+ if (kind && result) __defProp$7(target, key, result);
8606
8645
  return result;
8607
8646
  };
8608
8647
  class RadioGroup extends FASTElement {
@@ -8905,22 +8944,22 @@ class RadioGroup extends FASTElement {
8905
8944
  }
8906
8945
  }
8907
8946
  }
8908
- __decorateClass$8([attr({
8947
+ __decorateClass$7([attr({
8909
8948
  mode: "boolean"
8910
8949
  })], RadioGroup.prototype, "stacked", 2);
8911
- __decorateClass$8([attr({
8950
+ __decorateClass$7([attr({
8912
8951
  attribute: "readonly",
8913
8952
  mode: "boolean"
8914
8953
  })], RadioGroup.prototype, "readOnly", 2);
8915
- __decorateClass$8([attr({
8954
+ __decorateClass$7([attr({
8916
8955
  attribute: "disabled",
8917
8956
  mode: "boolean"
8918
8957
  })], RadioGroup.prototype, "disabled", 2);
8919
- __decorateClass$8([attr], RadioGroup.prototype, "name", 2);
8920
- __decorateClass$8([attr], RadioGroup.prototype, "value", 2);
8921
- __decorateClass$8([attr], RadioGroup.prototype, "orientation", 2);
8922
- __decorateClass$8([observable], RadioGroup.prototype, "childItems", 2);
8923
- __decorateClass$8([observable], RadioGroup.prototype, "slottedRadioButtons", 2);
8958
+ __decorateClass$7([attr], RadioGroup.prototype, "name", 2);
8959
+ __decorateClass$7([attr], RadioGroup.prototype, "value", 2);
8960
+ __decorateClass$7([attr], RadioGroup.prototype, "orientation", 2);
8961
+ __decorateClass$7([observable], RadioGroup.prototype, "childItems", 2);
8962
+ __decorateClass$7([observable], RadioGroup.prototype, "slottedRadioButtons", 2);
8924
8963
 
8925
8964
  const styles$a = css`
8926
8965
  ${display("flex")}
@@ -8988,12 +9027,12 @@ function convertPixelToPercent(pixelPos, minPosition, maxPosition, direction) {
8988
9027
  return pct;
8989
9028
  }
8990
9029
 
8991
- var __defProp$7 = Object.defineProperty;
8992
- var __getOwnPropDesc$7 = Object.getOwnPropertyDescriptor;
8993
- var __decorateClass$7 = (decorators, target, key, kind) => {
8994
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$7(target, key) : target;
9030
+ var __defProp$6 = Object.defineProperty;
9031
+ var __getOwnPropDesc$6 = Object.getOwnPropertyDescriptor;
9032
+ var __decorateClass$6 = (decorators, target, key, kind) => {
9033
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$6(target, key) : target;
8995
9034
  for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
8996
- if (kind && result) __defProp$7(target, key, result);
9035
+ if (kind && result) __defProp$6(target, key, result);
8997
9036
  return result;
8998
9037
  };
8999
9038
  class Slider extends FormAssociatedSlider {
@@ -9322,31 +9361,31 @@ class Slider extends FormAssociatedSlider {
9322
9361
  return constrainedValue + this.min;
9323
9362
  }
9324
9363
  }
9325
- __decorateClass$7([attr], Slider.prototype, "size", 2);
9326
- __decorateClass$7([attr({
9364
+ __decorateClass$6([attr], Slider.prototype, "size", 2);
9365
+ __decorateClass$6([attr({
9327
9366
  attribute: "readonly",
9328
9367
  mode: "boolean"
9329
9368
  })], Slider.prototype, "readOnly", 2);
9330
- __decorateClass$7([observable], Slider.prototype, "direction", 2);
9331
- __decorateClass$7([observable], Slider.prototype, "isDragging", 2);
9332
- __decorateClass$7([observable], Slider.prototype, "position", 2);
9333
- __decorateClass$7([observable], Slider.prototype, "trackWidth", 2);
9334
- __decorateClass$7([observable], Slider.prototype, "trackMinWidth", 2);
9335
- __decorateClass$7([observable], Slider.prototype, "trackHeight", 2);
9336
- __decorateClass$7([observable], Slider.prototype, "trackLeft", 2);
9337
- __decorateClass$7([observable], Slider.prototype, "trackMinHeight", 2);
9338
- __decorateClass$7([observable], Slider.prototype, "valueTextFormatter", 2);
9339
- __decorateClass$7([attr({
9369
+ __decorateClass$6([observable], Slider.prototype, "direction", 2);
9370
+ __decorateClass$6([observable], Slider.prototype, "isDragging", 2);
9371
+ __decorateClass$6([observable], Slider.prototype, "position", 2);
9372
+ __decorateClass$6([observable], Slider.prototype, "trackWidth", 2);
9373
+ __decorateClass$6([observable], Slider.prototype, "trackMinWidth", 2);
9374
+ __decorateClass$6([observable], Slider.prototype, "trackHeight", 2);
9375
+ __decorateClass$6([observable], Slider.prototype, "trackLeft", 2);
9376
+ __decorateClass$6([observable], Slider.prototype, "trackMinHeight", 2);
9377
+ __decorateClass$6([observable], Slider.prototype, "valueTextFormatter", 2);
9378
+ __decorateClass$6([attr({
9340
9379
  converter: nullableNumberConverter
9341
9380
  })], Slider.prototype, "min", 2);
9342
- __decorateClass$7([attr({
9381
+ __decorateClass$6([attr({
9343
9382
  converter: nullableNumberConverter
9344
9383
  })], Slider.prototype, "max", 2);
9345
- __decorateClass$7([attr({
9384
+ __decorateClass$6([attr({
9346
9385
  converter: nullableNumberConverter
9347
9386
  })], Slider.prototype, "step", 2);
9348
- __decorateClass$7([attr], Slider.prototype, "orientation", 2);
9349
- __decorateClass$7([attr], Slider.prototype, "mode", 2);
9387
+ __decorateClass$6([attr], Slider.prototype, "orientation", 2);
9388
+ __decorateClass$6([attr], Slider.prototype, "mode", 2);
9350
9389
 
9351
9390
  const styles$8 = css`
9352
9391
  ${display("inline-grid")} :host{--thumb-size:18px;--thumb-padding:3px;--thumb-translate:calc(var(--thumb-size) * -0.5 + var(--track-width) / 2);--track-overhang:-2px;--track-width:4px;--fast-slider-height:calc(var(--thumb-size) * 10);--slider-direction:90deg;align-items:center;box-sizing:border-box;outline:none;cursor:pointer;user-select:none;border-radius:${borderRadiusSmall};touch-action:pan-y;min-width:calc(var(--thumb-size) * 1px);width:100%}:host([size='small']){--thumb-size:14px;--track-width:2px;--thumb-padding:3px}:host([orientation='vertical']){--slider-direction:0deg;height:160px;min-height:var(--thumb-size);touch-action:pan-x;padding:8px 0;width:auto;min-width:auto}:host([disabled]:hover){cursor:initial}:host(:focus-visible){box-shadow:0 0 0 2pt ${colorStrokeFocus2};outline:1px solid ${colorStrokeFocus1}}.thumb-cursor:focus{outline:0}.thumb-container{position:absolute;height:var(--thumb-size);width:var(--thumb-size);transition:all 0.2s ease}.thumb-container{transform:translateX(calc(var(--thumb-size) * 0.5)) translateY(calc(var(--thumb-translate) * -1.5))}:host([size='small']) .thumb-container{transform:translateX(calc(var(--thumb-size) * 0.5)) translateY(calc(var(--thumb-translate) * -1.35))}:host([orientation='vertical']) .thumb-container{transform:translateX(calc(var(--thumb-translate) * -1.5)) translateY(calc(var(--thumb-size) * -0.5))}:host([orientation='vertical'][size='small']) .thumb-container{transform:translateX(calc(var(--thumb-translate) * -1.35)) translateY(calc(var(--thumb-size) * -0.5))}.thumb-cursor{height:var(--thumb-size);width:var(--thumb-size);background-color:${colorBrandBackground};border-radius:${borderRadiusCircular};box-shadow:inset 0 0 0 var(--thumb-padding) ${colorNeutralBackground1},0 0 0 1px ${colorNeutralStroke1}}.thumb-cursor:hover{background-color:${colorCompoundBrandBackgroundHover}}.thumb-cursor:active{background-color:${colorCompoundBrandBackgroundPressed}}:host([disabled]) .thumb-cursor{background-color:${colorNeutralForegroundDisabled};box-shadow:inset 0 0 0 var(--thumb-padding) ${colorNeutralBackground1},0 0 0 1px ${colorNeutralStrokeDisabled}}.positioning-region{position:relative;display:grid}:host([orientation='horizontal']) .positioning-region{margin:0 8px;grid-template-rows:var(--thumb-size) var(--thumb-size)}:host([orientation='vertical']) .positioning-region{margin:8px 0;height:100%;grid-template-columns:var(--thumb-size) var(--thumb-size)}.track{align-self:start;position:absolute;background-color:${colorNeutralStrokeAccessible};border-radius:${borderRadiusMedium};overflow:hidden}:host([step]) .track::after{content:'';position:absolute;border-radius:${borderRadiusMedium};width:100%;inset:0 2px;background-image:repeating-linear-gradient(
@@ -9369,12 +9408,12 @@ const definition$8 = Slider.compose({
9369
9408
 
9370
9409
  definition$8.define(FluentDesignSystem.registry);
9371
9410
 
9372
- var __defProp$6 = Object.defineProperty;
9373
- var __getOwnPropDesc$6 = Object.getOwnPropertyDescriptor;
9374
- var __decorateClass$6 = (decorators, target, key, kind) => {
9375
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$6(target, key) : target;
9411
+ var __defProp$5 = Object.defineProperty;
9412
+ var __getOwnPropDesc$5 = Object.getOwnPropertyDescriptor;
9413
+ var __decorateClass$5 = (decorators, target, key, kind) => {
9414
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$5(target, key) : target;
9376
9415
  for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
9377
- if (kind && result) __defProp$6(target, key, result);
9416
+ if (kind && result) __defProp$5(target, key, result);
9378
9417
  return result;
9379
9418
  };
9380
9419
  class Spinner extends FASTElement {
@@ -9389,8 +9428,8 @@ class Spinner extends FASTElement {
9389
9428
  this.elementInternals.role = "progressbar";
9390
9429
  }
9391
9430
  }
9392
- __decorateClass$6([attr], Spinner.prototype, "size", 2);
9393
- __decorateClass$6([attr], Spinner.prototype, "appearance", 2);
9431
+ __decorateClass$5([attr], Spinner.prototype, "size", 2);
9432
+ __decorateClass$5([attr], Spinner.prototype, "appearance", 2);
9394
9433
 
9395
9434
  const styles$7 = css`
9396
9435
  ${display("flex")}
@@ -9407,84 +9446,21 @@ const definition$7 = Spinner.compose({
9407
9446
 
9408
9447
  definition$7.define(FluentDesignSystem.registry);
9409
9448
 
9410
- class _Switch extends FASTElement {}
9411
- class FormAssociatedSwitch extends CheckableFormAssociated(_Switch) {
9412
- constructor() {
9413
- super(...arguments);
9414
- this.proxy = document.createElement("input");
9415
- }
9416
- }
9417
-
9418
- var __defProp$5 = Object.defineProperty;
9419
- var __getOwnPropDesc$5 = Object.getOwnPropertyDescriptor;
9420
- var __decorateClass$5 = (decorators, target, key, kind) => {
9421
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$5(target, key) : target;
9422
- for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
9423
- if (kind && result) __defProp$5(target, key, result);
9424
- return result;
9425
- };
9426
- class Switch extends FormAssociatedSwitch {
9427
- constructor() {
9428
- super();
9429
- /**
9430
- * The element's value to be included in form submission when checked.
9431
- * Default to "on" to reach parity with input[type="checkbox"]
9432
- *
9433
- * @internal
9434
- */
9435
- this.initialValue = "on";
9436
- /**
9437
- * @internal
9438
- */
9439
- this.keypressHandler = e => {
9440
- if (this.readOnly) {
9441
- return;
9442
- }
9443
- switch (e.key) {
9444
- case keyEnter:
9445
- case keySpace:
9446
- this.checked = !this.checked;
9447
- break;
9448
- }
9449
- };
9450
- /**
9451
- * @internal
9452
- */
9453
- this.clickHandler = e => {
9454
- if (!this.disabled && !this.readOnly) {
9455
- this.checked = !this.checked;
9456
- }
9457
- };
9458
- this.proxy.setAttribute("type", "checkbox");
9459
- }
9460
- // Map to proxy element
9461
- readOnlyChanged() {
9462
- if (this.proxy instanceof HTMLInputElement) {
9463
- this.proxy.readOnly = this.readOnly;
9464
- }
9465
- }
9466
- }
9467
- __decorateClass$5([attr({
9468
- attribute: "label-position"
9469
- })], Switch.prototype, "labelPosition", 2);
9470
- __decorateClass$5([attr({
9471
- attribute: "readonly",
9472
- mode: "boolean"
9473
- })], Switch.prototype, "readOnly", 2);
9474
- __decorateClass$5([observable], Switch.prototype, "defaultSlottedNodes", 2);
9449
+ class Switch extends BaseCheckbox {}
9475
9450
 
9476
9451
  function switchTemplate(options = {}) {
9477
- return html`<template role="switch" aria-checked="${x => x.checked}" aria-disabled="${x => x.disabled}" aria-readonly="${x => x.readOnly}" tabindex="${x => x.disabled ? null : 0}" @keypress="${(x, c) => x.keypressHandler(c.event)}" @click="${(x, c) => x.clickHandler(c.event)}"><label part="label" class="${x => x.defaultSlottedNodes && x.defaultSlottedNodes.length ? "label" : "label label__hidden"}"><slot ${slotted("defaultSlottedNodes")}></slot></label><div part="switch" class="switch"><slot name="switch">${staticallyCompose(options.switch)}</slot></div></template>`;
9452
+ return html`<template tabindex="${x => !x.disabled ? 0 : void 0}" @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>`;
9478
9453
  }
9479
9454
  const template$6 = switchTemplate({
9480
9455
  switch: `<span class="checked-indicator" part="checked-indicator"></span>`
9481
9456
  });
9482
9457
 
9458
+ const checkedState = css.partial`:is([state--checked], :state(checked))`;
9483
9459
  const styles$6 = css`
9484
9460
  ${display("inline-flex")}
9485
9461
 
9486
- :host{align-items:center;flex-direction:row-reverse;outline:none;user-select:none;contain:content}:host([label-position='before']){flex-direction:row}:host([label-position='above']){flex-direction:column;align-items:flex-start}:host([disabled]) .label,:host([readonly]) .label,:host([readonly]) .switch,:host([disabled]) .switch{cursor:not-allowed}.label{position:relative;color:${colorNeutralForeground1};line-height:${lineHeightBase300};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};font-family:${fontFamilyBase};padding:${spacingVerticalXS} ${spacingHorizontalXS};cursor:pointer}.label__hidden{display:none}.switch{display:flex;align-items:center;padding:0 ${spacingHorizontalXXS};box-sizing:border-box;width:40px;height:20px;background-color:${colorTransparentBackground};border:1px solid ${colorNeutralStrokeAccessible};border-radius:${borderRadiusCircular};outline:none;cursor:pointer;margin:${spacingVerticalS} ${spacingHorizontalS}}:host(:hover) .switch{background:none;border-color:${colorNeutralStrokeAccessibleHover}}:host(:active) .switch{border-color:${colorNeutralStrokeAccessiblePressed}}:host([disabled]) .switch,:host([readonly]) .switch{border:1px solid ${colorNeutralStrokeDisabled};background-color:none;pointer:default}:host([aria-checked='true']) .switch{background:${colorCompoundBrandBackground}}:host([aria-checked='true']:hover) .switch{background:${colorCompoundBrandBackgroundHover};border-color:${colorCompoundBrandBackgroundHover}}:host([aria-checked='true']:active) .switch{background:${colorCompoundBrandBackgroundPressed};border-color:${colorCompoundBrandBackgroundPressed}}:host([aria-checked='true'][disabled]) .switch{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([aria-checked='true']) .checked-indicator{background-color:${colorNeutralForegroundInverted};margin-inline-start:calc(100% - 14px)}:host([aria-checked='true']:hover) .checked-indicator{background:${colorNeutralForegroundInvertedHover}}:host([aria-checked='true']:active) .checked-indicator{background:${colorNeutralForegroundInvertedPressed}}:host(:hover) .checked-indicator{background-color:${colorNeutralForeground3Hover}}:host(:active) .checked-indicator{background-color:${colorNeutralForeground3Pressed}}:host([disabled]) .checked-indicator,:host([readonly]) .checked-indicator{background:${colorNeutralForegroundDisabled}}:host([aria-checked='true'][disabled]) .checked-indicator{background:${colorNeutralForegroundDisabled}}:host(:focus-visible){border-color:${colorTransparentStroke};outline:${strokeWidthThick} solid ${colorTransparentStroke};box-shadow:${shadow4},0 0 0 2px ${colorStrokeFocus2}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
9487
- .switch{border-color:InactiveBorder}:host([aria-checked='true']) .switch,:host([aria-checked='true']:active) .switch,:host([aria-checked='true']:hover) .switch{background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host([aria-checked='true']) .checked-indicator,:host([aria-checked='true']:hover) .checked-indicator,:host([aria-checked='true']:active) .checked-indicator{background-color:ButtonFace}`));
9462
+ :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};cursor:pointer}:host(:hover){background:none;border-color:${colorNeutralStrokeAccessibleHover}}:host(:active){border-color:${colorNeutralStrokeAccessiblePressed}}:host(:disabled),: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}:disabled){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(:disabled) .checked-indicator,:host([readonly]) .checked-indicator{background:${colorNeutralForegroundDisabled}}:host(${checkedState}:disabled) .checked-indicator{background:${colorNeutralForegroundDisabled}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${colorTransparentStroke};outline:${strokeWidthThick} solid ${colorTransparentStroke};box-shadow:${shadow4},0 0 0 2px ${colorStrokeFocus2}}`.withBehaviors(forcedColorsStylesheetBehavior(css`
9463
+ :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}`));
9488
9464
 
9489
9465
  const definition$6 = Switch.compose({
9490
9466
  name: `${FluentDesignSystem.prefix}-switch`,