@fluentui/web-components 3.0.0-rc.7 → 3.0.0-rc.9

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 (43) hide show
  1. package/CHANGELOG.md +20 -2
  2. package/custom-elements.json +80 -37
  3. package/dist/esm/badge/badge.options.d.ts +3 -1
  4. package/dist/esm/badge/badge.options.js.map +1 -1
  5. package/dist/esm/counter-badge/counter-badge.d.ts +2 -1
  6. package/dist/esm/counter-badge/counter-badge.js +2 -1
  7. package/dist/esm/counter-badge/counter-badge.js.map +1 -1
  8. package/dist/esm/dialog/dialog.d.ts +23 -8
  9. package/dist/esm/dialog/dialog.js +15 -6
  10. package/dist/esm/dialog/dialog.js.map +1 -1
  11. package/dist/esm/dialog/dialog.template.js.map +1 -1
  12. package/dist/esm/drawer/drawer.d.ts +18 -9
  13. package/dist/esm/drawer/drawer.js +12 -6
  14. package/dist/esm/drawer/drawer.js.map +1 -1
  15. package/dist/esm/message-bar/message-bar.d.ts +2 -1
  16. package/dist/esm/message-bar/message-bar.js +2 -1
  17. package/dist/esm/message-bar/message-bar.js.map +1 -1
  18. package/dist/esm/message-bar/message-bar.options.d.ts +6 -3
  19. package/dist/esm/message-bar/message-bar.options.js +6 -3
  20. package/dist/esm/message-bar/message-bar.options.js.map +1 -1
  21. package/dist/esm/progress-bar/progress-bar.base.d.ts +16 -4
  22. package/dist/esm/progress-bar/progress-bar.base.js +4 -1
  23. package/dist/esm/progress-bar/progress-bar.base.js.map +1 -1
  24. package/dist/esm/progress-bar/progress-bar.d.ts +8 -2
  25. package/dist/esm/progress-bar/progress-bar.js.map +1 -1
  26. package/dist/esm/styles/partials/badge.partials.d.ts +2 -1
  27. package/dist/esm/styles/partials/badge.partials.js +2 -1
  28. package/dist/esm/styles/partials/badge.partials.js.map +1 -1
  29. package/dist/esm/textarea/textarea.base.d.ts +5 -0
  30. package/dist/esm/textarea/textarea.base.js +4 -1
  31. package/dist/esm/textarea/textarea.base.js.map +1 -1
  32. package/dist/esm/textarea/textarea.template.js +1 -1
  33. package/dist/esm/textarea/textarea.template.js.map +1 -1
  34. package/dist/esm/tree/tree.d.ts +8 -2
  35. package/dist/esm/tree/tree.js +8 -2
  36. package/dist/esm/tree/tree.js.map +1 -1
  37. package/dist/esm/tree-item/tree-item.base.d.ts +8 -2
  38. package/dist/esm/tree-item/tree-item.base.js +8 -2
  39. package/dist/esm/tree-item/tree-item.base.js.map +1 -1
  40. package/dist/web-components.d.ts +96 -32
  41. package/dist/web-components.js +29 -14
  42. package/dist/web-components.min.js +82 -82
  43. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"tree-item.base.js","sourceRoot":"","sources":["../../../src/tree-item/tree-item.base.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAiB,WAAW,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC5F,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD,MAAM,OAAO,YAAa,SAAQ,WAAW;IAY3C;QACE,KAAK,EAAE,CAAC;QAZV;;;;WAIG;QACI,qBAAgB,GAAqB,IAAI,CAAC,eAAe,EAAE,CAAC;QAWnE;;;;WAIG;QAEH,aAAQ,GAAY,KAAK,CAAC;QAoB1B;;;;;WAKG;QAEH,aAAQ,GAAY,KAAK,CAAC;QAgB1B;;;;WAIG;QAEI,UAAK,GAAY,KAAK,CAAC;QA0B9B,gBAAgB;QAET,mBAAc,GAA+B,EAAE,CAAC;QAtFrD,IAAI,CAAC,gBAAgB,CAAC,IAAI,GAAG,UAAU,CAAC;IAC1C,CAAC;IAUD;;;;;;OAMG;IACI,eAAe,CAAC,IAAa,EAAE,IAAa;QACjD,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE;YACnB,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,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,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACzC,CAAC;IACH,CAAC;IAED,gBAAgB;IACT,oBAAoB;QACzB,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,QAAQ,CAAC,gBAAgB,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,CAAC;IACtF,CAAC;CACF;AA1KQ;IADN,UAAU;8CACuB;AAgBlC;IADC,IAAI,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8CACA;AA2B1B;IADC,IAAI,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8CACA;AAyBnB;IADN,IAAI,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;2CACI;AAUvB;IADN,IAAI,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,CAAC;gDACI;AAkBhC;IADN,UAAU;oDAC4C"}
@@ -2232,8 +2232,11 @@ export declare class BaseProgressBar extends FASTElement {
2232
2232
  elementInternals: ElementInternals;
2233
2233
  /**
2234
2234
  * The validation state of the progress bar
2235
- * @public
2235
+ * The validation state of the progress bar
2236
+ *
2236
2237
  * HTML Attribute: `validation-state`
2238
+ *
2239
+ * @public
2237
2240
  */
2238
2241
  validationState: ProgressBarValidationState | null;
2239
2242
  /**
@@ -2244,8 +2247,11 @@ export declare class BaseProgressBar extends FASTElement {
2244
2247
  validationStateChanged(prev: ProgressBarValidationState | undefined, next: ProgressBarValidationState | undefined): void;
2245
2248
  /**
2246
2249
  * The value of the progress
2247
- * @internal
2250
+ * The value of the progress
2251
+ *
2248
2252
  * HTML Attribute: `value`
2253
+ *
2254
+ * @internal
2249
2255
  */
2250
2256
  value?: number;
2251
2257
  /**
@@ -2256,8 +2262,11 @@ export declare class BaseProgressBar extends FASTElement {
2256
2262
  protected valueChanged(prev: number | undefined, next: number | undefined): void;
2257
2263
  /**
2258
2264
  * The minimum value
2259
- * @internal
2265
+ * The minimum value
2266
+ *
2260
2267
  * HTML Attribute: `min`
2268
+ *
2269
+ * @internal
2261
2270
  */
2262
2271
  min?: number;
2263
2272
  /**
@@ -2269,8 +2278,11 @@ export declare class BaseProgressBar extends FASTElement {
2269
2278
  protected minChanged(prev: number | undefined, next: number | undefined): void;
2270
2279
  /**
2271
2280
  * The maximum value
2272
- * @internal
2281
+ * The maximum value
2282
+ *
2273
2283
  * HTML Attribute: `max`
2284
+ *
2285
+ * @internal
2274
2286
  */
2275
2287
  max?: number;
2276
2288
  /**
@@ -2600,6 +2612,11 @@ export declare class BaseTextArea extends FASTElement {
2600
2612
  * @internal
2601
2613
  */
2602
2614
  labelEl: HTMLLabelElement;
2615
+ /**
2616
+ * The root container element.
2617
+ * @internal
2618
+ */
2619
+ rootEl: HTMLDivElement;
2603
2620
  /**
2604
2621
  * The `<textarea>` element.
2605
2622
  * @internal
@@ -3399,8 +3416,11 @@ declare class BaseTreeItem extends FASTElement {
3399
3416
  constructor();
3400
3417
  /**
3401
3418
  * When true, the control will be appear expanded by user interaction.
3402
- * @public
3419
+ * When true, the control will be appear expanded by user interaction.
3420
+ *
3403
3421
  * HTML Attribute: `expanded`
3422
+ *
3423
+ * @public
3404
3424
  */
3405
3425
  expanded: boolean;
3406
3426
  /**
@@ -3428,8 +3448,11 @@ declare class BaseTreeItem extends FASTElement {
3428
3448
  protected selectedChanged(prev: boolean, next: boolean): void;
3429
3449
  /**
3430
3450
  * When true, the control has no child tree items
3431
- * @public
3451
+ * When true, the control has no child tree items
3452
+ *
3432
3453
  * HTML Attribute: empty
3454
+ *
3455
+ * @public
3433
3456
  */
3434
3457
  empty: boolean;
3435
3458
  private styles;
@@ -6168,10 +6191,11 @@ export declare class CounterBadge extends FASTElement {
6168
6191
  */
6169
6192
  dot: boolean;
6170
6193
  /**
6171
- * @internal
6172
6194
  * Function to set the count
6173
6195
  * This is the default slotted content for the counter badge
6174
6196
  * If children are slotted, that will override the value returned
6197
+ *
6198
+ * @internal
6175
6199
  */
6176
6200
  setCount(): string | void;
6177
6201
  }
@@ -6348,53 +6372,68 @@ export declare const darkModeStylesheetBehavior: (styles: ElementStyles) => Matc
6348
6372
  */
6349
6373
  export declare class Dialog extends FASTElement {
6350
6374
  /**
6351
- * @public
6352
6375
  * The dialog element
6376
+ *
6377
+ * @public
6353
6378
  */
6354
6379
  dialog: HTMLDialogElement;
6355
6380
  /**
6356
- * @public
6357
6381
  * The ID of the element that describes the dialog
6382
+ *
6383
+ * @public
6358
6384
  */
6359
6385
  ariaDescribedby?: string;
6360
6386
  /**
6361
- * @public
6362
6387
  * The ID of the element that labels the dialog
6388
+ *
6389
+ * @public
6363
6390
  */
6364
6391
  ariaLabelledby?: string;
6365
6392
  /**
6393
+ * The label of the dialog
6394
+ *
6366
6395
  * @public
6396
+ */
6397
+ ariaLabel: string | null;
6398
+ /**
6367
6399
  * The type of the dialog modal
6400
+ *
6401
+ * @public
6368
6402
  */
6369
6403
  type: DialogType;
6370
6404
  protected typeChanged(prev: DialogType | undefined, next: DialogType | undefined): void;
6371
6405
  /** @internal */
6372
6406
  connectedCallback(): void;
6373
6407
  /**
6374
- * @public
6375
6408
  * Method to emit an event before the dialog's open state changes
6376
6409
  * HTML spec proposal: https://github.com/whatwg/html/issues/9733
6410
+ *
6411
+ * @public
6377
6412
  */
6378
6413
  emitBeforeToggle: () => void;
6379
6414
  /**
6380
- * @public
6381
6415
  * Method to emit an event after the dialog's open state changes
6382
6416
  * HTML spec proposal: https://github.com/whatwg/html/issues/9733
6417
+ *
6418
+ * @public
6383
6419
  */
6384
6420
  emitToggle: () => void;
6385
6421
  /**
6386
- * @public
6387
6422
  * Method to show the dialog
6423
+ *
6424
+ * @public
6388
6425
  */
6389
6426
  show(): void;
6390
6427
  /**
6391
- * @public
6392
6428
  * Method to hide the dialog
6429
+ *
6430
+ * @public
6393
6431
  */
6394
6432
  hide(): void;
6395
6433
  /**
6396
- * @public
6397
6434
  * Handles click events on the dialog overlay for light-dismiss
6435
+ *
6436
+ * @public
6398
6437
  * @param event - The click event
6399
6438
  * @returns boolean
6400
6439
  */
@@ -6630,20 +6669,23 @@ export declare const DividerTemplate: ElementViewTemplate<Divider>;
6630
6669
  export declare class Drawer extends FASTElement {
6631
6670
  protected roleAttrObserver: MutationObserver;
6632
6671
  /**
6633
- * @public
6634
6672
  * Determines whether the drawer should be displayed as modal or non-modal
6635
6673
  * When rendered as a modal, an overlay is applied over the rest of the view.
6674
+ *
6675
+ * @public
6636
6676
  */
6637
6677
  type: DrawerType;
6638
6678
  protected typeChanged(): void;
6639
6679
  /**
6640
- * @public
6641
6680
  * The ID of the element that labels the drawer.
6681
+ *
6682
+ * @public
6642
6683
  */
6643
6684
  ariaLabelledby?: string;
6644
6685
  /**
6645
- * @public
6646
6686
  * The ID of the element that describes the drawer.
6687
+ *
6688
+ * @public
6647
6689
  */
6648
6690
  ariaDescribedby?: string;
6649
6691
  /**""
@@ -6659,8 +6701,9 @@ export declare class Drawer extends FASTElement {
6659
6701
  */
6660
6702
  size: DrawerSize;
6661
6703
  /**
6662
- * @public
6663
6704
  * The dialog element.
6705
+ *
6706
+ * @public
6664
6707
  */
6665
6708
  dialog: HTMLDialogElement;
6666
6709
  /** @internal */
@@ -6668,25 +6711,29 @@ export declare class Drawer extends FASTElement {
6668
6711
  /** @internal */
6669
6712
  disconnectedCallback(): void;
6670
6713
  /**
6671
- * @public
6672
6714
  * Method to emit an event after the dialog's open state changes
6673
6715
  * HTML spec proposal: https://github.com/whatwg/html/issues/9733
6716
+ *
6717
+ * @public
6674
6718
  */
6675
6719
  emitToggle: () => void;
6676
6720
  /**
6677
- * @public
6678
6721
  * Method to emit an event before the dialog's open state changes
6679
6722
  * HTML spec proposal: https://github.com/whatwg/html/issues/9733
6723
+ *
6724
+ * @public
6680
6725
  */
6681
6726
  emitBeforeToggle: () => void;
6682
6727
  /**
6683
- * @public
6684
6728
  * Method to show the drawer
6729
+ *
6730
+ * @public
6685
6731
  */
6686
6732
  show(): void;
6687
6733
  /**
6688
- * @public
6689
6734
  * Method to hide the drawer
6735
+ *
6736
+ * @public
6690
6737
  */
6691
6738
  hide(): void;
6692
6739
  /**
@@ -6697,8 +6744,9 @@ export declare class Drawer extends FASTElement {
6697
6744
  */
6698
6745
  clickHandler(event: Event): boolean;
6699
6746
  /**
6700
- * @public
6701
6747
  * Handles cancel events on the drawer.
6748
+ *
6749
+ * @public
6702
6750
  */
6703
6751
  cancelHandler(): void;
6704
6752
  protected observeRoleAttr(): void;
@@ -8768,8 +8816,9 @@ export declare class MessageBar extends FASTElement {
8768
8816
  */
8769
8817
  intent?: MessageBarIntent;
8770
8818
  /**
8771
- * @public
8772
8819
  * Method to emit a `dismiss` event when the message bar is dismissed
8820
+ *
8821
+ * @public
8773
8822
  */
8774
8823
  dismissMessageBar: () => void;
8775
8824
  }
@@ -8784,8 +8833,9 @@ export declare class MessageBar extends FASTElement {
8784
8833
  export declare const MessageBarDefinition: FASTElementDefinition<typeof MessageBar>;
8785
8834
 
8786
8835
  /**
8787
- * @public
8788
8836
  * The `intent` variations for the MessageBar component.
8837
+ *
8838
+ * @public
8789
8839
  */
8790
8840
  export declare const MessageBarIntent: {
8791
8841
  readonly success: "success";
@@ -8797,8 +8847,9 @@ export declare const MessageBarIntent: {
8797
8847
  export declare type MessageBarIntent = ValuesOf<typeof MessageBarIntent>;
8798
8848
 
8799
8849
  /**
8800
- * @public
8801
8850
  * The `layout` variations for the MessageBar component.
8851
+ *
8852
+ * @public
8802
8853
  */
8803
8854
  export declare const MessageBarLayout: {
8804
8855
  readonly multiline: "multiline";
@@ -8808,8 +8859,9 @@ export declare const MessageBarLayout: {
8808
8859
  export declare type MessageBarLayout = ValuesOf<typeof MessageBarLayout>;
8809
8860
 
8810
8861
  /**
8811
- * @public
8812
8862
  * The `shape` variations for the MessageBar component.
8863
+ *
8864
+ * @public
8813
8865
  */
8814
8866
  export declare const MessageBarShape: {
8815
8867
  readonly rounded: "rounded";
@@ -8843,14 +8895,20 @@ export declare class ProgressBar extends BaseProgressBar {
8843
8895
  /**
8844
8896
  * The thickness of the progress bar
8845
8897
  *
8846
- * @public
8898
+ * The thickness of the progress bar
8899
+ *
8847
8900
  * HTML Attribute: `thickness`
8901
+ *
8902
+ * @public
8848
8903
  */
8849
8904
  thickness?: ProgressBarThickness;
8850
8905
  /**
8851
8906
  * The shape of the progress bar
8852
- * @public
8907
+ * The shape of the progress bar
8908
+ *
8853
8909
  * HTML Attribute: `shape`
8910
+ *
8911
+ * @public
8854
8912
  */
8855
8913
  shape?: ProgressBarShape;
8856
8914
  }
@@ -11355,15 +11413,21 @@ export declare const TooltipTemplate: ViewTemplate<Tooltip, any>;
11355
11413
  export declare class Tree extends BaseTree {
11356
11414
  /**
11357
11415
  * The size of the tree item element
11358
- * @public
11416
+ * The size of the tree item element
11417
+ *
11359
11418
  * HTML Attribute: size
11419
+ *
11420
+ * @public
11360
11421
  */
11361
11422
  size: TreeItemSize;
11362
11423
  protected sizeChanged(): void;
11363
11424
  /**
11364
11425
  * The appearance variants of the tree item element
11365
- * @public
11426
+ * The appearance variants of the tree item element
11427
+ *
11366
11428
  * HTML Attribute: appearance
11429
+ *
11430
+ * @public
11367
11431
  */
11368
11432
  appearance: TreeItemAppearance;
11369
11433
  protected appearanceChanged(): void;
@@ -6583,10 +6583,11 @@ class CounterBadge extends FASTElement {
6583
6583
  this.setCount();
6584
6584
  }
6585
6585
  /**
6586
- * @internal
6587
6586
  * Function to set the count
6588
6587
  * This is the default slotted content for the counter badge
6589
6588
  * If children are slotted, that will override the value returned
6589
+ *
6590
+ * @internal
6590
6591
  */
6591
6592
  setCount() {
6592
6593
  const count = this.count ?? 0;
@@ -6664,9 +6665,10 @@ class Dialog extends FASTElement {
6664
6665
  super(...arguments);
6665
6666
  this.type = DialogType.modal;
6666
6667
  /**
6667
- * @public
6668
6668
  * Method to emit an event before the dialog's open state changes
6669
6669
  * HTML spec proposal: https://github.com/whatwg/html/issues/9733
6670
+ *
6671
+ * @public
6670
6672
  */
6671
6673
  this.emitBeforeToggle = () => {
6672
6674
  this.$emit("beforetoggle", {
@@ -6675,9 +6677,10 @@ class Dialog extends FASTElement {
6675
6677
  });
6676
6678
  };
6677
6679
  /**
6678
- * @public
6679
6680
  * Method to emit an event after the dialog's open state changes
6680
6681
  * HTML spec proposal: https://github.com/whatwg/html/issues/9733
6682
+ *
6683
+ * @public
6681
6684
  */
6682
6685
  this.emitToggle = () => {
6683
6686
  this.$emit("toggle", {
@@ -6707,8 +6710,9 @@ class Dialog extends FASTElement {
6707
6710
  this.typeChanged(void 0, this.type);
6708
6711
  }
6709
6712
  /**
6710
- * @public
6711
6713
  * Method to show the dialog
6714
+ *
6715
+ * @public
6712
6716
  */
6713
6717
  show() {
6714
6718
  Updates.enqueue(() => {
@@ -6722,8 +6726,9 @@ class Dialog extends FASTElement {
6722
6726
  });
6723
6727
  }
6724
6728
  /**
6725
- * @public
6726
6729
  * Method to hide the dialog
6730
+ *
6731
+ * @public
6727
6732
  */
6728
6733
  hide() {
6729
6734
  this.emitBeforeToggle();
@@ -6731,8 +6736,9 @@ class Dialog extends FASTElement {
6731
6736
  this.emitToggle();
6732
6737
  }
6733
6738
  /**
6734
- * @public
6735
6739
  * Handles click events on the dialog overlay for light-dismiss
6740
+ *
6741
+ * @public
6736
6742
  * @param event - The click event
6737
6743
  * @returns boolean
6738
6744
  */
@@ -6750,6 +6756,9 @@ __decorateClass$D([attr({
6750
6756
  __decorateClass$D([attr({
6751
6757
  attribute: "aria-labelledby"
6752
6758
  })], Dialog.prototype, "ariaLabelledby", 2);
6759
+ __decorateClass$D([attr({
6760
+ attribute: "aria-label"
6761
+ })], Dialog.prototype, "ariaLabel", 2);
6753
6762
  __decorateClass$D([attr], Dialog.prototype, "type", 2);
6754
6763
 
6755
6764
  const template$y = html`<dialog class="dialog" part="dialog" aria-describedby="${x => x.ariaDescribedby}" aria-labelledby="${x => x.ariaLabelledby}" aria-label="${x => x.ariaLabel}" @click="${(x, c) => x.clickHandler(c.event)}" @cancel="${x => x.hide()}" ${ref("dialog")}><slot></slot></dialog>`;
@@ -6933,9 +6942,10 @@ class Drawer extends FASTElement {
6933
6942
  this.position = DrawerPosition.start;
6934
6943
  this.size = DrawerSize.medium;
6935
6944
  /**
6936
- * @public
6937
6945
  * Method to emit an event after the dialog's open state changes
6938
6946
  * HTML spec proposal: https://github.com/whatwg/html/issues/9733
6947
+ *
6948
+ * @public
6939
6949
  */
6940
6950
  this.emitToggle = () => {
6941
6951
  this.$emit("toggle", {
@@ -6944,9 +6954,10 @@ class Drawer extends FASTElement {
6944
6954
  });
6945
6955
  };
6946
6956
  /**
6947
- * @public
6948
6957
  * Method to emit an event before the dialog's open state changes
6949
6958
  * HTML spec proposal: https://github.com/whatwg/html/issues/9733
6959
+ *
6960
+ * @public
6950
6961
  */
6951
6962
  this.emitBeforeToggle = () => {
6952
6963
  this.$emit("beforetoggle", {
@@ -6978,8 +6989,9 @@ class Drawer extends FASTElement {
6978
6989
  this.roleAttrObserver.disconnect();
6979
6990
  }
6980
6991
  /**
6981
- * @public
6982
6992
  * Method to show the drawer
6993
+ *
6994
+ * @public
6983
6995
  */
6984
6996
  show() {
6985
6997
  Updates.enqueue(() => {
@@ -6993,8 +7005,9 @@ class Drawer extends FASTElement {
6993
7005
  });
6994
7006
  }
6995
7007
  /**
6996
- * @public
6997
7008
  * Method to hide the drawer
7009
+ *
7010
+ * @public
6998
7011
  */
6999
7012
  hide() {
7000
7013
  this.emitBeforeToggle();
@@ -7015,8 +7028,9 @@ class Drawer extends FASTElement {
7015
7028
  return true;
7016
7029
  }
7017
7030
  /**
7018
- * @public
7019
7031
  * Handles cancel events on the drawer.
7032
+ *
7033
+ * @public
7020
7034
  */
7021
7035
  cancelHandler() {
7022
7036
  this.hide();
@@ -9394,8 +9408,9 @@ class MessageBar extends FASTElement {
9394
9408
  */
9395
9409
  this.elementInternals = this.attachInternals();
9396
9410
  /**
9397
- * @public
9398
9411
  * Method to emit a `dismiss` event when the message bar is dismissed
9412
+ *
9413
+ * @public
9399
9414
  */
9400
9415
  this.dismissMessageBar = () => {
9401
9416
  this.$emit("dismiss", {});
@@ -12555,7 +12570,7 @@ class BaseTextArea extends FASTElement {
12555
12570
  this.autoSizerEl.classList.add("auto-sizer");
12556
12571
  this.autoSizerEl.ariaHidden = "true";
12557
12572
  }
12558
- this.shadowRoot.prepend(this.autoSizerEl);
12573
+ this.rootEl?.prepend(this.autoSizerEl);
12559
12574
  if (!this.autoSizerObserver) {
12560
12575
  this.autoSizerObserver = new ResizeObserver((_, observer) => {
12561
12576
  const blockSizePropName = window.getComputedStyle(this).writingMode.startsWith("horizontal") ? "height" : "width";
@@ -12704,7 +12719,7 @@ const styles$6 = css`
12704
12719
  :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(:disabled){--color:GrayText;--border-color:GrayText;--border-block-end-color:GrayText;--placeholder-color:GrayText}`));
12705
12720
 
12706
12721
  function textAreaTemplate() {
12707
- return html`<template><label ${ref("labelEl")} for="control" part="label"><slot name="label" ${slotted("labelSlottedNodes")}></slot></label><div class="root" part="root"><textarea ${ref("controlEl")} id="control" class="control" part="control" ?required="${x => x.required}" ?disabled="${x => x.disabled}" ?readonly="${x => x.readOnly}" ?spellcheck="${x => x.spellcheck}" autocomplete="${x => x.autocomplete}" maxlength="${x => x.maxLength}" minlength="${x => x.minLength}" placeholder="${x => x.placeholder}" @change="${x => x.handleControlChange()}" @select="${x => x.handleControlSelect()}" @input="${x => x.handleControlInput()}"></textarea></div><div hidden><slot ${slotted("defaultSlottedNodes")}></slot></div></template>`;
12722
+ return html`<template><label ${ref("labelEl")} for="control" part="label"><slot name="label" ${slotted("labelSlottedNodes")}></slot></label><div class="root" part="root" ${ref("rootEl")}><textarea ${ref("controlEl")} id="control" class="control" part="control" ?required="${x => x.required}" ?disabled="${x => x.disabled}" ?readonly="${x => x.readOnly}" ?spellcheck="${x => x.spellcheck}" autocomplete="${x => x.autocomplete}" maxlength="${x => x.maxLength}" minlength="${x => x.minLength}" placeholder="${x => x.placeholder}" @change="${x => x.handleControlChange()}" @select="${x => x.handleControlSelect()}" @input="${x => x.handleControlInput()}"></textarea></div><div hidden><slot ${slotted("defaultSlottedNodes")}></slot></div></template>`;
12708
12723
  }
12709
12724
  const template$6 = textAreaTemplate();
12710
12725