@fluentui/web-components 3.1.3 → 3.1.4

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 (40) hide show
  1. package/CHANGELOG.md +19 -2
  2. package/custom-elements.json +45 -55
  3. package/dist/esm/divider/divider.styles.css +21 -13
  4. package/dist/esm/divider/divider.styles.js +21 -13
  5. package/dist/esm/divider/divider.styles.js.map +1 -1
  6. package/dist/esm/dropdown/dropdown.base.d.ts +7 -9
  7. package/dist/esm/dropdown/dropdown.base.js +8 -13
  8. package/dist/esm/dropdown/dropdown.base.js.map +1 -1
  9. package/dist/esm/dropdown/dropdown.styles.css +37 -6
  10. package/dist/esm/dropdown/dropdown.styles.d.ts +4 -0
  11. package/dist/esm/dropdown/dropdown.styles.js +41 -6
  12. package/dist/esm/dropdown/dropdown.styles.js.map +1 -1
  13. package/dist/esm/dropdown/dropdown.template.d.ts +2 -0
  14. package/dist/esm/dropdown/dropdown.template.js +4 -2
  15. package/dist/esm/dropdown/dropdown.template.js.map +1 -1
  16. package/dist/esm/field/field.base.d.ts +1 -0
  17. package/dist/esm/field/field.base.js +32 -9
  18. package/dist/esm/field/field.base.js.map +1 -1
  19. package/dist/esm/field/field.options.d.ts +4 -0
  20. package/dist/esm/field/field.options.js.map +1 -1
  21. package/dist/esm/menu-list/menu-list.base.js +19 -1
  22. package/dist/esm/menu-list/menu-list.base.js.map +1 -1
  23. package/dist/esm/switch/switch.styles.css +2 -2
  24. package/dist/esm/switch/switch.styles.js +2 -2
  25. package/dist/esm/text-input/text-input.base.d.ts +18 -0
  26. package/dist/esm/text-input/text-input.base.js +59 -5
  27. package/dist/esm/text-input/text-input.base.js.map +1 -1
  28. package/dist/esm/tooltip/tooltip.options.d.ts +13 -13
  29. package/dist/esm/tooltip/tooltip.options.js +13 -13
  30. package/dist/esm/tooltip/tooltip.options.js.map +1 -1
  31. package/dist/esm/tooltip/tooltip.styles.js +12 -13
  32. package/dist/esm/tooltip/tooltip.styles.js.map +1 -1
  33. package/dist/esm/utils/get-initials.js +1 -2
  34. package/dist/esm/utils/get-initials.js.map +1 -1
  35. package/dist/web-components-all.js +107 -38
  36. package/dist/web-components-all.min.js +13 -13
  37. package/dist/web-components.d.ts +49 -22
  38. package/dist/web-components.js +95 -40
  39. package/dist/web-components.min.js +13 -13
  40. package/package.json +1 -1
@@ -1,21 +1,21 @@
1
1
  import type { ValuesOf } from '../utils/typings.js';
2
2
  /**
3
- * The TooltipPositioning options and their corresponding CSS values
3
+ * The TooltipPositioning options
4
4
  * @public
5
5
  */
6
6
  export declare const TooltipPositioningOption: {
7
- readonly 'above-start': "block-start span-inline-end";
8
- readonly above: "block-start";
9
- readonly 'above-end': "block-start span-inline-start";
10
- readonly 'below-start': "block-end span-inline-end";
11
- readonly below: "block-end";
12
- readonly 'below-end': "block-end span-inline-start";
13
- readonly 'before-top': "inline-start span-block-end";
14
- readonly before: "inline-start";
15
- readonly 'before-bottom': "inline-start span-block-start";
16
- readonly 'after-top': "inline-end span-block-end";
17
- readonly after: "inline-end";
18
- readonly 'after-bottom': "inline-end span-block-start";
7
+ readonly 'above-start': "above-start";
8
+ readonly above: "above";
9
+ readonly 'above-end': "above-end";
10
+ readonly 'below-start': "below-start";
11
+ readonly below: "below";
12
+ readonly 'below-end': "below-end";
13
+ readonly 'before-top': "before-top";
14
+ readonly before: "before";
15
+ readonly 'before-bottom': "before-bottom";
16
+ readonly 'after-top': "after-top";
17
+ readonly after: "after";
18
+ readonly 'after-bottom': "after-bottom";
19
19
  };
20
20
  /**
21
21
  * The TooltipPositioning type
@@ -1,21 +1,21 @@
1
1
  import { FluentDesignSystem } from '../fluent-design-system.js';
2
2
  /**
3
- * The TooltipPositioning options and their corresponding CSS values
3
+ * The TooltipPositioning options
4
4
  * @public
5
5
  */
6
6
  export const TooltipPositioningOption = {
7
- 'above-start': 'block-start span-inline-end',
8
- above: 'block-start',
9
- 'above-end': 'block-start span-inline-start',
10
- 'below-start': 'block-end span-inline-end',
11
- below: 'block-end',
12
- 'below-end': 'block-end span-inline-start',
13
- 'before-top': 'inline-start span-block-end',
14
- before: 'inline-start',
15
- 'before-bottom': 'inline-start span-block-start',
16
- 'after-top': 'inline-end span-block-end',
17
- after: 'inline-end',
18
- 'after-bottom': 'inline-end span-block-start',
7
+ 'above-start': 'above-start',
8
+ above: 'above',
9
+ 'above-end': 'above-end',
10
+ 'below-start': 'below-start',
11
+ below: 'below',
12
+ 'below-end': 'below-end',
13
+ 'before-top': 'before-top',
14
+ before: 'before',
15
+ 'before-bottom': 'before-bottom',
16
+ 'after-top': 'after-top',
17
+ after: 'after',
18
+ 'after-bottom': 'after-bottom',
19
19
  };
20
20
  /**
21
21
  * The tag name for the tooltip element.
@@ -1 +1 @@
1
- {"version":3,"file":"tooltip.options.js","sourceRoot":"","sources":["../../../src/tooltip/tooltip.options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAGhE;;;GAGG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,aAAa,EAAE,6BAA6B;IAC5C,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,+BAA+B;IAC5C,aAAa,EAAE,2BAA2B;IAC1C,KAAK,EAAE,WAAW;IAClB,WAAW,EAAE,6BAA6B;IAC1C,YAAY,EAAE,6BAA6B;IAC3C,MAAM,EAAE,cAAc;IACtB,eAAe,EAAE,+BAA+B;IAChD,WAAW,EAAE,2BAA2B;IACxC,KAAK,EAAE,YAAY;IACnB,cAAc,EAAE,6BAA6B;CACrC,CAAC;AAQX;;;;GAIG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,kBAAkB,CAAC,MAAM,UAAmB,CAAC"}
1
+ {"version":3,"file":"tooltip.options.js","sourceRoot":"","sources":["../../../src/tooltip/tooltip.options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAGhE;;;GAGG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,aAAa,EAAE,aAAa;IAC5B,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,WAAW;IACxB,aAAa,EAAE,aAAa;IAC5B,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,WAAW;IACxB,YAAY,EAAE,YAAY;IAC1B,MAAM,EAAE,QAAQ;IAChB,eAAe,EAAE,eAAe;IAChC,WAAW,EAAE,WAAW;IACxB,KAAK,EAAE,OAAO;IACd,cAAc,EAAE,cAAc;CACtB,CAAC;AAQX;;;;GAIG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,kBAAkB,CAAC,MAAM,UAAmB,CAAC"}
@@ -1,7 +1,6 @@
1
1
  import { css } from '@microsoft/fast-element';
2
2
  import { display } from '../utils/display.js';
3
3
  import { borderRadiusMedium, colorNeutralBackground1, colorNeutralForeground1, colorNeutralShadowAmbient, colorNeutralShadowKey, colorTransparentStroke, fontFamilyBase, fontSizeBase200, lineHeightBase200, spacingHorizontalMNudge, spacingHorizontalXS, spacingVerticalXS, } from '../theme/design-tokens.js';
4
- import { TooltipPositioningOption } from './tooltip.options.js';
5
4
  /**
6
5
  * Styles for the tooltip component
7
6
  * @public
@@ -57,40 +56,40 @@ export const styles = css `
57
56
  }
58
57
 
59
58
  :host([positioning='above-start']) {
60
- --position-area: ${TooltipPositioningOption['above-start']};
59
+ --position-area: block-start span-inline-end;
61
60
  }
62
61
  :host([positioning='above']) {
63
- --position-area: ${TooltipPositioningOption.above};
62
+ --position-area: block-start;
64
63
  }
65
64
  :host([positioning='above-end']) {
66
- --position-area: ${TooltipPositioningOption['above-end']};
65
+ --position-area: block-start span-inline-start;
67
66
  }
68
67
  :host([positioning='below-start']) {
69
- --position-area: ${TooltipPositioningOption['below-start']};
68
+ --position-area: block-end span-inline-end;
70
69
  }
71
70
  :host([positioning='below']) {
72
- --position-area: ${TooltipPositioningOption.below};
71
+ --position-area: block-end;
73
72
  }
74
73
  :host([positioning='below-end']) {
75
- --position-area: ${TooltipPositioningOption['below-end']};
74
+ --position-area: block-end span-inline-start;
76
75
  }
77
76
  :host([positioning='before-top']) {
78
- --position-area: ${TooltipPositioningOption['before-top']};
77
+ --position-area: inline-start span-block-end;
79
78
  }
80
79
  :host([positioning='before']) {
81
- --position-area: ${TooltipPositioningOption.before};
80
+ --position-area: inline-start;
82
81
  }
83
82
  :host([positioning='before-bottom']) {
84
- --position-area: ${TooltipPositioningOption['before-bottom']};
83
+ --position-area: inline-start span-block-start;
85
84
  }
86
85
  :host([positioning='after-top']) {
87
- --position-area: ${TooltipPositioningOption['after-top']};
86
+ --position-area: inline-end span-block-end;
88
87
  }
89
88
  :host([positioning='after']) {
90
- --position-area: ${TooltipPositioningOption.after};
89
+ --position-area: inline-end;
91
90
  }
92
91
  :host([positioning='after-bottom']) {
93
- --position-area: ${TooltipPositioningOption['after-bottom']};
92
+ --position-area: inline-end span-block-start;
94
93
  }
95
94
  `;
96
95
  //# sourceMappingURL=tooltip.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tooltip.styles.js","sourceRoot":"","sources":["../../../src/tooltip/tooltip.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACvB,uBAAuB,EACvB,yBAAyB,EACzB,qBAAqB,EACrB,sBAAsB,EACtB,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,uBAAuB,EACvB,mBAAmB,EACnB,iBAAiB,GAClB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAEhE;;;GAGG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;IACrB,OAAO,CAAC,aAAa,CAAC;;;;;;;;;sBASJ,iBAAiB;uBAChB,mBAAmB;kBACxB,uBAAuB;qBACpB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F,cAAc;iBAChB,eAAe;;mBAEb,iBAAiB;;;;mBAIjB,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4DzC,CAAC"}
@@ -17,7 +17,7 @@ const UNWANTED_CHARS_REGEX = /[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-
17
17
  * Regular expression matching phone numbers. Applied after chars matching UNWANTED_CHARS_REGEX have been removed
18
18
  * and number has been trimmed for whitespaces
19
19
  */
20
- const PHONENUMBER_REGEX = /^\d+[\d\s]*(:?ext|x|)\s*\d+$/i;
20
+ const PHONENUMBER_REGEX = /^(?:\d[\d\s]*\d|\d[\d\s]*(?:ext|x)\s*\d+)$/i;
21
21
  /** Regular expression matching one or more spaces. */
22
22
  const MULTIPLE_WHITESPACES_REGEX = /\s+/g;
23
23
  /**
@@ -28,7 +28,6 @@ const MULTIPLE_WHITESPACES_REGEX = /\s+/g;
28
28
  * CJK: CJK Unified Ideographs Extension A, CJK Unified Ideographs, CJK Compatibility Ideographs,
29
29
  * CJK Unified Ideographs Extension B
30
30
  */
31
- // eslint-disable-next-line
32
31
  const UNSUPPORTED_TEXT_REGEX = /[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uAC00-\uD7AF\uD7B0-\uD7FF\u3040-\u309F\u30A0-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]|[\uD840-\uD869][\uDC00-\uDED6]/;
33
32
  function getInitialsLatin(displayName, isRtl, firstInitialOnly) {
34
33
  let initials = '';
@@ -1 +1 @@
1
- {"version":3,"file":"get-initials.js","sourceRoot":"","sources":["../../../src/utils/get-initials.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAEhE;;GAEG;AAEH;;;GAGG;AACH,MAAM,yBAAyB,GAAW,6BAA6B,CAAC;AAExE;;;GAGG;AACH,4CAA4C;AAC5C,MAAM,oBAAoB,G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d,OAMC;IAED,IAAI,CAAC,WAAW,EAAE,CAAC;QACjB,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,WAAW,GAAG,kBAAkB,CAAC,WAAW,CAAC,CAAC;IAE9C,oFAAoF;IACpF,IACE,sBAAsB,CAAC,IAAI,CAAC,WAAW,CAAC;QACxC,CAAC,CAAC,OAAO,EAAE,kBAAkB,IAAI,iBAAiB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,EACrE,CAAC;QACD,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,OAAO,gBAAgB,CAAC,WAAW,EAAE,KAAK,EAAE,OAAO,EAAE,gBAAgB,CAAC,CAAC;AACzE,CAAC"}
@@ -5854,7 +5854,7 @@ const definition$C = {
5854
5854
 
5855
5855
  const UNWANTED_ENCLOSURES_REGEX = /[\(\[\{][^\)\]\}]*[\)\]\}]/g;
5856
5856
  const UNWANTED_CHARS_REGEX = /[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g;
5857
- const PHONENUMBER_REGEX = /^\d+[\d\s]*(:?ext|x|)\s*\d+$/i;
5857
+ const PHONENUMBER_REGEX = /^(?:\d[\d\s]*\d|\d[\d\s]*(?:ext|x)\s*\d+)$/i;
5858
5858
  const MULTIPLE_WHITESPACES_REGEX = /\s+/g;
5859
5859
  const UNSUPPORTED_TEXT_REGEX = /[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uAC00-\uD7AF\uD7B0-\uD7FF\u3040-\u309F\u30A0-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]|[\uD840-\uD869][\uDC00-\uDED6]/;
5860
5860
  function getInitialsLatin(displayName, isRtl, firstInitialOnly) {
@@ -7409,7 +7409,7 @@ const DividerAppearance = {
7409
7409
  };
7410
7410
  const tagName$u = `${FluentDesignSystem.prefix}-divider`;
7411
7411
 
7412
- const styles$u = css`${display("flex")} :host{contain:content}:host::after,:host::before{align-self:center;background:${colorNeutralStroke2};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${strokeWidthThin}}:host([inset]){padding:0 12px}:host ::slotted(*){color:${colorNeutralForeground2};font-family:${fontFamilyBase};font-size:${fontSizeBase200};font-weight:${fontWeightRegular};margin:0;padding:0 12px}:host([align-content='start'])::before,:host([align-content='end'])::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host([orientation='vertical']){align-items:center;flex-direction:column;height:100%;min-height:84px}:host([orientation='vertical']):empty{min-height:20px}:host([orientation='vertical'][inset])::before{margin-top:12px}:host([orientation='vertical'][inset])::after{margin-bottom:12px}:host([orientation='vertical']):empty::before,:host([orientation='vertical']):empty::after{height:10px;min-height:10px;flex-grow:0}:host([orientation='vertical'])::before,:host([orientation='vertical'])::after{width:${strokeWidthThin};min-height:20px;height:100%}:host([orientation='vertical']) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host([orientation='vertical'][align-content='start'])::before{min-height:8px}:host([orientation='vertical'][align-content='end'])::after{min-height:8px}:host([appearance='strong'])::before,:host([appearance='strong'])::after{background:${colorNeutralStroke1}}:host([appearance='strong']) ::slotted(*){color:${colorNeutralForeground1}}:host([appearance='brand'])::before,:host([appearance='brand'])::after{background:${colorBrandStroke1}}:host([appearance='brand']) ::slotted(*){color:${colorBrandForeground1}}:host([appearance='subtle'])::before,:host([appearance='subtle'])::after{background:${colorNeutralStroke3}}:host([appearance='subtle']) ::slotted(*){color:${colorNeutralForeground3}}@media (forced-colors:active){:host([appearance='strong'])::before,:host([appearance='strong'])::after,:host([appearance='brand'])::before,:host([appearance='brand'])::after,:host([appearance='subtle'])::before,:host([appearance='subtle'])::after,:host::after,:host::before{background:WindowText;color:WindowText}}`;
7412
+ const styles$u = css`${display("flex")} :host{--_vertical-min-height:10px;contain:content}:host::after,:host::before{align-self:center;background:${colorNeutralStroke2};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${strokeWidthThin}}:host([inset]){padding:0 12px}:host ::slotted(*){color:${colorNeutralForeground2};font-family:${fontFamilyBase};font-size:${fontSizeBase200};font-weight:${fontWeightRegular};margin:0;padding:0 12px}:host([align-content='start'])::before,:host([align-content='end'])::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host([orientation='vertical']){align-items:center;flex-direction:column;height:100%}:host([orientation='vertical'][inset])::before{margin-top:12px}:host([orientation='vertical'][inset])::after{margin-bottom:12px}:host([orientation='vertical'])::before,:host([orientation='vertical'])::after{width:${strokeWidthThin};min-height:var(--_vertical-min-height);height:100%}@supports not selector(:host(:has(*))){@scope{:scope:has(*){--_vertical-min-height:20px}}}:host(:has(*)){--_vertical-min-height:20px}:host([orientation='vertical']) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host([orientation='vertical'][align-content='start'])::before{min-height:8px}:host([orientation='vertical'][align-content='end'])::after{min-height:8px}:host([appearance='strong'])::before,:host([appearance='strong'])::after{background:${colorNeutralStroke1}}:host([appearance='strong']) ::slotted(*){color:${colorNeutralForeground1}}:host([appearance='brand'])::before,:host([appearance='brand'])::after{background:${colorBrandStroke1}}:host([appearance='brand']) ::slotted(*){color:${colorBrandForeground1}}:host([appearance='subtle'])::before,:host([appearance='subtle'])::after{background:${colorNeutralStroke3}}:host([appearance='subtle']) ::slotted(*){color:${colorNeutralForeground3}}@media (forced-colors:active){:host([appearance='strong'])::before,:host([appearance='strong'])::after,:host([appearance='brand'])::before,:host([appearance='brand'])::after,:host([appearance='subtle'])::before,:host([appearance='subtle'])::after,:host::after,:host::before{background:WindowText;color:WindowText}}`;
7413
7413
 
7414
7414
  function dividerTemplate() {
7415
7415
  return html`<slot></slot>`;
@@ -7776,10 +7776,10 @@ const DropdownType = {
7776
7776
  };
7777
7777
  const tagName$r = `${FluentDesignSystem.prefix}-dropdown`;
7778
7778
 
7779
- const styles$r = css`${display("inline-flex")} :host{box-sizing:border-box;color:${colorNeutralForeground1};cursor:pointer}:host(${placeholderShownState}){color:${colorNeutralForeground4}}.control{appearance:none;background-color:${colorNeutralBackground1};border-radius:${borderRadiusMedium};border:${strokeWidthThin} solid ${colorTransparentStroke};box-shadow:inset 0 0 0 ${strokeWidthThin} var(--control-border-color);box-sizing:border-box;color:inherit;column-gap:${spacingHorizontalXXS};display:inline-flex;justify-content:space-between;min-width:160px;overflow:hidden;padding:${spacingVerticalSNudge} ${spacingHorizontalMNudge};white-space:normal;position:relative;text-align:start;width:100%;z-index:1;${typographyBody1Styles}}:host([size='small']) .control{column-gap:${spacingHorizontalXXS};padding:${spacingVerticalXS} ${spacingHorizontalSNudge};${typographyCaption1Styles}}:host([size='large']) .control{column-gap:${spacingHorizontalS};padding:${spacingVerticalS} ${spacingHorizontalM};${typographyBody2Styles}}::slotted(:is(input,button)){all:unset;flex:1 1 auto}::slotted(button){cursor:pointer}::slotted(input){cursor:text}:where(slot[name='indicator']>*,::slotted([slot='indicator'])){all:unset;align-items:center;appearance:none;aspect-ratio:1;color:${colorNeutralForeground3};display:inline-flex;justify-content:center;width:20px}:host([size='small']) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){width:16px}:host([size='large']) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){width:24px}.control::after,.control::before{content:''/'';inset:auto 0 0;pointer-events:none;position:absolute}.control::before{height:${strokeWidthThin}}.control::after{background-color:${colorCompoundBrandStroke};height:${strokeWidthThick};scale:0 1;transition:scale ${durationUltraFast} ${curveDecelerateMid}}:host(:where(:focus-within)) .control{border-radius:${borderRadiusMedium};box-shadow:inset 0 0 0 1px ${colorStrokeFocus1};outline:${strokeWidthThick} solid ${colorStrokeFocus2}}:host(:where(${openState},:focus-within)) .control::after{scale:1 1;transition-duration:${durationNormal};transition-timing-function:${curveAccelerateMid}}:host(:where([appearance='outline'],[appearance='transparent'])) .control::before{background-color:${colorNeutralStrokeAccessible}}:host([appearance='transparent']) .control{--control-border-color:${colorTransparentStrokeInteractive};background-color:${colorTransparentBackground};border-radius:${borderRadiusNone}}:host([appearance='outline']) .control{--control-border-color:${colorNeutralStroke1}}:host([appearance='outline']) .control:hover{--control-border-color:${colorNeutralStroke1Hover}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:hover::before{background-color:${colorNeutralStrokeAccessibleHover}}:host([appearance='outline']) .control:hover::after{background-color:${colorCompoundBrandBackgroundHover}}:host([appearance='outline']) .control:active{--control-border-color:${colorNeutralStroke1Pressed}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::before{background-color:${colorNeutralStrokeAccessiblePressed}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::after{background-color:${colorCompoundBrandBackgroundPressed}}:host([appearance='filled-darker']) .control{background-color:${colorNeutralBackground3}}:host(:where([appearance='filled-lighter'],[appearance='filled-darker'])) .control{--control-border-color:${colorTransparentStroke}}:host(${nativeDisabledState}),:host(${nativeDisabledState}) ::slotted(:where(button,input)){cursor:not-allowed}:host(${nativeDisabledState}) .control::before,:host(${nativeDisabledState}) .control::after{content:none}:host(${nativeDisabledState}) .control:is(*,:active,:hover),:host(${nativeDisabledState}) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){--control-border-color:${colorNeutralStrokeDisabled};background-color:${colorNeutralBackgroundDisabled};color:${colorNeutralForegroundDisabled}}::slotted(:not([slot]):not([popover])),::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--anchor){:host{--listbox-max-height:50vh;--margin-offset:calc(${lineHeightBase300} + (${spacingVerticalSNudge} * 2) + ${strokeWidthThin})}:host([size='small']){--margin-offset:calc(${lineHeightBase200} + (${spacingVerticalXS} * 2) + ${strokeWidthThin})}:host([size='large']){--margin-offset:calc(${lineHeightBase400} + (${spacingVerticalS} * 2) + ${strokeWidthThin})}}@media (forced-colors:active){:host(${nativeDisabledState}) .control{border-color:GrayText}:host(${nativeDisabledState}) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){color:GrayText}}`;
7779
+ const styles$r = css`${display("inline-flex")} :host{--_indicator-size:20px;--_placeholder-color:${colorNeutralForeground4};--_initial-display:attr(initial-display raw-string,attr(placeholder raw-string,none));box-sizing:border-box;color:${colorNeutralForeground1};cursor:pointer}:host(${placeholderShownState}){color:var(--_placeholder-color)}.control{appearance:none;background-color:${colorNeutralBackground1};border-radius:${borderRadiusMedium};border:${strokeWidthThin} solid ${colorTransparentStroke};box-shadow:inset 0 0 0 ${strokeWidthThin} var(--control-border-color);box-sizing:border-box;color:inherit;column-gap:${spacingHorizontalXXS};display:inline-grid;grid-template-columns:1fr var(--_indicator-size);justify-content:space-between;min-width:160px;overflow:hidden;padding:${spacingVerticalSNudge} ${spacingHorizontalMNudge};white-space:normal;position:relative;text-align:start;width:100%;z-index:1;${typographyBody1Styles}}:host([size='small']) .control{column-gap:${spacingHorizontalXXS};padding:${spacingVerticalXS} ${spacingHorizontalSNudge};${typographyCaption1Styles}}:host([size='large']) .control{column-gap:${spacingHorizontalS};padding:${spacingVerticalS} ${spacingHorizontalM};${typographyBody2Styles}}:host(:not(:has([slot='control']))) slot[name='control']::before{content:var(--_initial-display)}@scope{:scope:not(:has([slot='control'])) slot[name='control']::before{content:var(--_initial-display)}}:host(:is(:not([value]),[value=''])) slot[name='control']::before{color:var(--_placeholder-color)}::slotted(:is(input,button)){all:unset}slot[name='control']::before,::slotted(:is(input,button)){grid-area:1/1}::slotted(button){cursor:pointer}::slotted(input){cursor:text;min-width:0;width:100%}::slotted(input)::placeholder{color:var(--_placeholder-color)}:where(slot[name='indicator']>*,::slotted([slot='indicator'])){all:unset;align-items:center;appearance:none;aspect-ratio:1;color:${colorNeutralForeground3};display:inline-flex;grid-area:1/2;justify-content:center;width:var(--_indicator-size)}:host([size='small']) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){--_indicator-size:16px}:host([size='large']) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){--_indicator-size:24px}.control::after,.control::before{content:''/'';inset:auto 0 0;pointer-events:none;position:absolute}.control::before{height:${strokeWidthThin}}.control::after{background-color:${colorCompoundBrandStroke};height:${strokeWidthThick};scale:0 1;transition:scale ${durationUltraFast} ${curveDecelerateMid}}:host(:where(:focus-within)) .control{border-radius:${borderRadiusMedium};box-shadow:inset 0 0 0 1px ${colorStrokeFocus1};outline:${strokeWidthThick} solid ${colorStrokeFocus2}}:host(:where(${openState},:focus-within)) .control::after{scale:1 1;transition-duration:${durationNormal};transition-timing-function:${curveAccelerateMid}}:host(:where([appearance='outline'],[appearance='transparent'])) .control::before{background-color:${colorNeutralStrokeAccessible}}:host([appearance='transparent']) .control{--control-border-color:${colorTransparentStrokeInteractive};background-color:${colorTransparentBackground};border-radius:${borderRadiusNone}}:host([appearance='outline']) .control{--control-border-color:${colorNeutralStroke1}}:host([appearance='outline']) .control:hover{--control-border-color:${colorNeutralStroke1Hover}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:hover::before{background-color:${colorNeutralStrokeAccessibleHover}}:host([appearance='outline']) .control:hover::after{background-color:${colorCompoundBrandBackgroundHover}}:host([appearance='outline']) .control:active{--control-border-color:${colorNeutralStroke1Pressed}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::before{background-color:${colorNeutralStrokeAccessiblePressed}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::after{background-color:${colorCompoundBrandBackgroundPressed}}:host([appearance='filled-darker']) .control{background-color:${colorNeutralBackground3}}:host(:where([appearance='filled-lighter'],[appearance='filled-darker'])) .control{--control-border-color:${colorTransparentStroke}}:host(${nativeDisabledState}),:host(${nativeDisabledState}) ::slotted(:where(button,input)){cursor:not-allowed}:host(${nativeDisabledState}) .control::before,:host(${nativeDisabledState}) .control::after{content:none}:host(${nativeDisabledState}) .control:is(*,:active,:hover),:host(${nativeDisabledState}) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){--control-border-color:${colorNeutralStrokeDisabled};background-color:${colorNeutralBackgroundDisabled};color:${colorNeutralForegroundDisabled}}::slotted(:not([slot]):not([popover])),::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--anchor){:host{--listbox-max-height:50vh;--margin-offset:calc(${lineHeightBase300} + (${spacingVerticalSNudge} * 2) + ${strokeWidthThin})}:host([size='small']){--margin-offset:calc(${lineHeightBase200} + (${spacingVerticalXS} * 2) + ${strokeWidthThin})}:host([size='large']){--margin-offset:calc(${lineHeightBase400} + (${spacingVerticalS} * 2) + ${strokeWidthThin})}}@media (forced-colors:active){:host(${nativeDisabledState}) .control{border-color:GrayText}:host(${nativeDisabledState}) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){color:GrayText}}`;
7780
7780
 
7781
7781
  const dropdownIndicatorTemplate = html`<svg class=chevron-down-20-regular aria-hidden=true slot=indicator viewBox="0 0 20 20" ${ref("indicator")}><path d="M15.85 7.65a.5.5 0 0 1 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16a.5.5 0 0 1 .7 0" fill=currentColor /></svg>`;
7782
- const dropdownInputTemplate = html`<input @input=${(x, c) => x.inputHandler(c.event)} @change=${(x, c) => x.changeHandler(c.event)} aria-activedescendant=${(x) => x.activeDescendant} aria-controls=${(x) => x.listbox?.id ?? null} aria-labelledby=${(x) => x.ariaLabelledBy} aria-expanded=${(x) => x.open} aria-haspopup=listbox placeholder=${(x) => x.placeholder} role=combobox ?disabled=${(x) => x.disabled} type=${(x) => x.type} value=${(x) => x.valueAttribute} slot=control ${ref("control")}>`;
7782
+ const dropdownInputTemplate = html`<input @input=${(x, c) => x.inputHandler(c.event)} @change=${(x, c) => x.changeHandler(c.event)} aria-activedescendant=${(x) => x.activeDescendant} aria-controls=${(x) => x.listbox?.id ?? null} aria-labelledby=${(x) => x.ariaLabelledBy} aria-expanded=${(x) => x.open} aria-haspopup=listbox size=1 placeholder=${(x) => x.placeholder} role=combobox ?disabled=${(x) => x.disabled} value=${(x) => x.initialValue} slot=control ${ref("control")}>`;
7783
7783
  const dropdownButtonTemplate = html`<button aria-activedescendant=${(x) => x.activeDescendant} aria-controls=${(x) => x.listbox?.id ?? null} aria-expanded=${(x) => x.open} aria-haspopup=listbox role=combobox ?disabled=${(x) => x.disabled} type=button slot=control ${ref("control")}>${(x) => x.displayValue}</button>`;
7784
7784
  function dropdownTemplate(options = {}) {
7785
7785
  return html`<template @click=${(x, c) => x.clickHandler(c.event)} @focusout=${(x, c) => x.focusoutHandler(c.event)} @keydown=${(x, c) => x.keydownHandler(c.event)} @mousedown=${(x, c) => x.mousedownHandler(c.event)}><div class=control><slot name=control ${ref("controlSlot")}></slot><slot name=indicator ${ref("indicatorSlot")}>${staticallyCompose(options.indicator)}</slot></div><slot @slotchange=${(x, c) => x.slotchangeHandler(c.event)}></slot></template>`;
@@ -7846,7 +7846,6 @@ const _BaseDropdown = class _BaseDropdown extends FASTElement {
7846
7846
  this.id = uniqueId("dropdown-");
7847
7847
  this.required = false;
7848
7848
  this.type = DropdownType.dropdown;
7849
- this.valueAttribute = "";
7850
7849
  /**
7851
7850
  * Repositions the listbox to align with the control element. Used when the browser does not support CSS anchor
7852
7851
  * positioning.
@@ -7996,7 +7995,7 @@ const _BaseDropdown = class _BaseDropdown extends FASTElement {
7996
7995
  this.setValidity();
7997
7996
  });
7998
7997
  if (AnchorPositioningCSSSupported) {
7999
- const anchorName = uniqueId("--dropdown-anchor-");
7998
+ const anchorName = this.style.getPropertyValue("anchor-name") || uniqueId("--dropdown-anchor-");
8000
7999
  this.style.setProperty("anchor-name", anchorName);
8001
8000
  this.listbox.style.setProperty("position-anchor", anchorName);
8002
8001
  }
@@ -8610,6 +8609,13 @@ const _BaseDropdown = class _BaseDropdown extends FASTElement {
8610
8609
  }
8611
8610
  }
8612
8611
  };
8612
+ /**
8613
+ * The element identity. This static property should NOT be overridden by subclasses. It’s designed to provide an
8614
+ * unambiguous name for the custom element and its subclass custom elements, regardless of their tag names.
8615
+ * @readonly
8616
+ * @internal
8617
+ */
8618
+ _BaseDropdown.elementIdentity = "dropdown";
8613
8619
  /**
8614
8620
  * The form-associated flag.
8615
8621
  * @see {@link https://html.spec.whatwg.org/multipage/custom-elements.html#custom-elements-face-example | Form-associated custom elements}
@@ -8668,9 +8674,6 @@ __decorateClass$x([
8668
8674
  __decorateClass$x([
8669
8675
  attr
8670
8676
  ], _BaseDropdown.prototype, "type", 2);
8671
- __decorateClass$x([
8672
- attr({ attribute: "value" })
8673
- ], _BaseDropdown.prototype, "valueAttribute", 2);
8674
8677
  let BaseDropdown = _BaseDropdown;
8675
8678
 
8676
8679
  var __defProp$w = Object.defineProperty;
@@ -8888,17 +8891,40 @@ class BaseField extends FASTElement {
8888
8891
  *
8889
8892
  * @internal
8890
8893
  */
8891
- setLabelProperties() {
8892
- if (this.$fastController.isConnected) {
8893
- this.input.id = this.input.id || uniqueId("input");
8894
- this.labelSlot?.forEach((label) => {
8895
- if (label instanceof HTMLLabelElement) {
8896
- label.htmlFor = label.htmlFor || this.input.id;
8897
- label.id = label.id || `${this.input.id}--label`;
8898
- this.input.setAttribute("aria-labelledby", label.id);
8894
+ async setLabelProperties() {
8895
+ const input = await this.getLabelableInput();
8896
+ if (!input) {
8897
+ return;
8898
+ }
8899
+ input.id || (input.id = uniqueId("input"));
8900
+ this.labelSlot?.forEach((label) => {
8901
+ if (label instanceof HTMLLabelElement) {
8902
+ label.htmlFor || (label.htmlFor = input.id);
8903
+ label.id || (label.id = `${input.id}--label`);
8904
+ input.setAttribute("aria-labelledby", label.id);
8905
+ }
8906
+ });
8907
+ }
8908
+ getLabelableInput() {
8909
+ return new Promise((resolve) => {
8910
+ if (!this.input) {
8911
+ return resolve(null);
8912
+ }
8913
+ if (this.input.constructor.elementIdentity !== "dropdown") {
8914
+ return resolve(this.input);
8915
+ }
8916
+ if (this.input.control) {
8917
+ return resolve(this.input.control);
8918
+ }
8919
+ new MutationObserver((_, observer) => {
8920
+ if (this.input.control) {
8921
+ resolve(this.input.control);
8922
+ observer.disconnect();
8899
8923
  }
8924
+ }).observe(this.input, {
8925
+ childList: true
8900
8926
  });
8901
- }
8927
+ });
8902
8928
  }
8903
8929
  /**
8904
8930
  * Toggles the field's states based on the slotted input.
@@ -10203,7 +10229,9 @@ const _BaseMenuList = class _BaseMenuList extends FASTElement {
10203
10229
  * @public
10204
10230
  */
10205
10231
  focus() {
10206
- this.menuItems?.find((item) => !item.disabled)?.focus();
10232
+ Updates.enqueue(() => {
10233
+ this.menuItems?.find((item) => !item.disabled)?.focus();
10234
+ });
10207
10235
  }
10208
10236
  setItems() {
10209
10237
  const children = Array.from(this.children);
@@ -12585,7 +12613,7 @@ const SwitchLabelPosition = {
12585
12613
  };
12586
12614
  const tagName$9 = `${FluentDesignSystem.prefix}-switch`;
12587
12615
 
12588
- const styles$9 = css`${display("inline-flex")} :host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${spacingHorizontalXXS};width:40px;height:20px;background-color:${colorTransparentBackground};border:1px solid ${colorNeutralStrokeAccessible};border-radius:${borderRadiusCircular}}:host(:enabled){cursor:pointer}:host(:hover){background:none;border-color:${colorNeutralStrokeAccessibleHover}}:host(:active){border-color:${colorNeutralStrokeAccessiblePressed}}:host(${nativeDisabledState}),:host([readonly]){border:1px solid ${colorNeutralStrokeDisabled};background-color:none;pointer:default}:host(${checkedState}){background:${colorCompoundBrandBackground};border-color:${colorCompoundBrandBackground}}:host(${checkedState}:hover){background:${colorCompoundBrandBackgroundHover};border-color:${colorCompoundBrandBackgroundHover}}:host(${checkedState}:active){background:${colorCompoundBrandBackgroundPressed};border-color:${colorCompoundBrandBackgroundPressed}}:host(${checkedState}${nativeDisabledState}){background:${colorNeutralBackgroundDisabled};border-color:${colorNeutralStrokeDisabled}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${colorNeutralForeground3};transition-duration:${durationNormal};transition-timing-function:${curveEasyEase};transition-property:margin-inline-start}:host(${checkedState}) .checked-indicator{background-color:${colorNeutralForegroundInverted};margin-inline-start:calc(100% - 14px)}:host(${checkedState}:hover) .checked-indicator{background:${colorNeutralForegroundInvertedHover}}:host(${checkedState}:active) .checked-indicator{background:${colorNeutralForegroundInvertedPressed}}:host(:hover) .checked-indicator{background-color:${colorNeutralForeground3Hover}}:host(:active) .checked-indicator{background-color:${colorNeutralForeground3Pressed}}:host(${nativeDisabledState}) .checked-indicator,:host([readonly]) .checked-indicator{background:${colorNeutralForegroundDisabled}}:host(${checkedState}${nativeDisabledState}) .checked-indicator{background:${colorNeutralForegroundDisabled}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${colorTransparentStroke};outline:${strokeWidthThick} solid ${colorTransparentStroke};outline-offset:1px;box-shadow:${shadow4},0 0 0 2px ${colorStrokeFocus2}}@media (forced-colors:active){:host{border-color:InactiveBorder}:host(${checkedState}),:host(${checkedState}:active),:host(${checkedState}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${checkedState}) .checked-indicator,:host(${checkedState}:hover) .checked-indicator,:host(${checkedState}:active) .checked-indicator{background-color:ButtonFace}:host(${nativeDisabledState}) .checked-indicator,:host(${checkedState}${nativeDisabledState}) .checked-indicator{background-color:GrayText}}`;
12616
+ const styles$9 = css`${display("inline-flex")} :host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${spacingHorizontalXXS};width:40px;height:20px;background-color:${colorTransparentBackground};border:1px solid ${colorNeutralStrokeAccessible};border-radius:${borderRadiusCircular}}:host(:enabled){cursor:pointer}:host(:hover){background:none;border-color:${colorNeutralStrokeAccessibleHover}}:host(:active){border-color:${colorNeutralStrokeAccessiblePressed}}:host(${nativeDisabledState}),:host([readonly]){border:1px solid ${colorNeutralStrokeDisabled};background-color:none;pointer:default}:host(${checkedState}){background:${colorCompoundBrandBackground};border-color:${colorCompoundBrandBackground}}:host(${checkedState}:hover){background:${colorCompoundBrandBackgroundHover};border-color:${colorCompoundBrandBackgroundHover}}:host(${checkedState}:active){background:${colorCompoundBrandBackgroundPressed};border-color:${colorCompoundBrandBackgroundPressed}}:host(${checkedState}${nativeDisabledState}){background:${colorNeutralBackgroundDisabled};border-color:${colorNeutralStrokeDisabled}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${colorNeutralForeground3};transition-duration:${durationNormal};transition-timing-function:${curveEasyEase};transition-property:margin-inline-start}:host(${checkedState}) .checked-indicator{background-color:${colorNeutralForegroundInverted};margin-inline-start:calc(100% - 14px)}:host(${checkedState}:hover) .checked-indicator{background:${colorNeutralForegroundInvertedHover}}:host(${checkedState}:active) .checked-indicator{background:${colorNeutralForegroundInvertedPressed}}:host(:hover) .checked-indicator{background-color:${colorNeutralForeground3Hover}}:host(:active) .checked-indicator{background-color:${colorNeutralForeground3Pressed}}:host(${nativeDisabledState}) .checked-indicator,:host([readonly]) .checked-indicator{background:${colorNeutralForegroundDisabled}}:host(${checkedState}${nativeDisabledState}) .checked-indicator{background:${colorNeutralForegroundDisabled}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${colorTransparentStroke};outline:${strokeWidthThick} solid ${colorTransparentStroke};outline-offset:1px;box-shadow:${shadow4},0 0 0 2px ${colorStrokeFocus2}}@media (forced-colors:active){:host{border-color:InactiveBorder}:host(${checkedState}),:host(${checkedState}:active),:host(${checkedState}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:CanvasText}:host(${checkedState}) .checked-indicator,:host(${checkedState}:hover) .checked-indicator,:host(${checkedState}:active) .checked-indicator{background-color:HighlightText}:host(${nativeDisabledState}) .checked-indicator,:host(${checkedState}${nativeDisabledState}) .checked-indicator{background-color:GrayText}}`;
12589
12617
 
12590
12618
  function switchTemplate(options = {}) {
12591
12619
  return html`<template @click=${(x, c) => x.clickHandler(c.event)} @input=${(x, c) => x.inputHandler(c.event)} @keydown=${(x, c) => x.keydownHandler(c.event)} @keyup=${(x, c) => x.keyupHandler(c.event)}><slot name=switch>${staticallyCompose(options.switch)}</slot></template>`;
@@ -13543,6 +13571,18 @@ class BaseTextInput extends FASTElement {
13543
13571
  * @internal
13544
13572
  */
13545
13573
  this.dirtyValue = false;
13574
+ /**
13575
+ * The value as of the last `change` event or programmatic update.
13576
+ *
13577
+ * @internal
13578
+ */
13579
+ this.committedValue = "";
13580
+ /**
13581
+ * Indicates that `value` is being updated from the internal control's `input` event.
13582
+ *
13583
+ * @internal
13584
+ */
13585
+ this.isUserInput = false;
13546
13586
  /**
13547
13587
  * The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
13548
13588
  *
@@ -13653,6 +13693,9 @@ class BaseTextInput extends FASTElement {
13653
13693
  }
13654
13694
  set value(value) {
13655
13695
  this.currentValue = value;
13696
+ if (!this.isUserInput) {
13697
+ this.committedValue = value ?? "";
13698
+ }
13656
13699
  if (this.elementInternals && this.control) {
13657
13700
  this.control.value = value ?? "";
13658
13701
  this.setFormValue(value);
@@ -13689,12 +13732,23 @@ class BaseTextInput extends FASTElement {
13689
13732
  * proxies the change event, emitting a `change` event whenever the internal control emits a `change` event.
13690
13733
  */
13691
13734
  changeHandler(e) {
13735
+ if (this.control.value !== this.committedValue) {
13736
+ this.emitChange(e);
13737
+ }
13738
+ return true;
13739
+ }
13740
+ /**
13741
+ * Validates, records the committed value, and emits `change` on the host.
13742
+ *
13743
+ * @internal
13744
+ */
13745
+ emitChange(detail) {
13746
+ this.committedValue = this.control.value;
13692
13747
  this.setValidity();
13693
- this.$emit("change", e, {
13748
+ this.$emit("change", detail, {
13694
13749
  bubbles: true,
13695
13750
  composed: true
13696
13751
  });
13697
- return true;
13698
13752
  }
13699
13753
  /**
13700
13754
  * Checks the validity of the element and returns the result.
@@ -13766,7 +13820,12 @@ class BaseTextInput extends FASTElement {
13766
13820
  */
13767
13821
  inputHandler(e) {
13768
13822
  this.dirtyValue = true;
13769
- this.value = this.control.value;
13823
+ this.isUserInput = true;
13824
+ try {
13825
+ this.value = this.control.value;
13826
+ } finally {
13827
+ this.isUserInput = false;
13828
+ }
13770
13829
  return true;
13771
13830
  }
13772
13831
  /**
@@ -13776,9 +13835,19 @@ class BaseTextInput extends FASTElement {
13776
13835
  * @internal
13777
13836
  */
13778
13837
  keydownHandler(e) {
13779
- if (e.key === "Enter") {
13780
- this.implicitSubmit();
13838
+ if (e.key !== "Enter") {
13839
+ return true;
13840
+ }
13841
+ if (e.isComposing || e.keyCode === 229) {
13842
+ return true;
13781
13843
  }
13844
+ if (e.composedPath()[0] !== this.control) {
13845
+ return true;
13846
+ }
13847
+ if (this.control.value !== this.committedValue) {
13848
+ this.emitChange();
13849
+ }
13850
+ this.implicitSubmit();
13782
13851
  return true;
13783
13852
  }
13784
13853
  /**
@@ -14124,22 +14193,22 @@ __decorateClass$5([
14124
14193
  ToggleButton.define(definition$3);
14125
14194
 
14126
14195
  const TooltipPositioningOption = {
14127
- "above-start": "block-start span-inline-end",
14128
- above: "block-start",
14129
- "above-end": "block-start span-inline-start",
14130
- "below-start": "block-end span-inline-end",
14131
- below: "block-end",
14132
- "below-end": "block-end span-inline-start",
14133
- "before-top": "inline-start span-block-end",
14134
- before: "inline-start",
14135
- "before-bottom": "inline-start span-block-start",
14136
- "after-top": "inline-end span-block-end",
14137
- after: "inline-end",
14138
- "after-bottom": "inline-end span-block-start"
14196
+ "above-start": "above-start",
14197
+ above: "above",
14198
+ "above-end": "above-end",
14199
+ "below-start": "below-start",
14200
+ below: "below",
14201
+ "below-end": "below-end",
14202
+ "before-top": "before-top",
14203
+ before: "before",
14204
+ "before-bottom": "before-bottom",
14205
+ "after-top": "after-top",
14206
+ after: "after",
14207
+ "after-bottom": "after-bottom"
14139
14208
  };
14140
14209
  const tagName$2 = `${FluentDesignSystem.prefix}-tooltip`;
14141
14210
 
14142
- const styles$2 = css`${display("inline-flex")} :host(:not(:popover-open)){display:none}:host{--position-area:block-start;--position-try-options:flip-block;--block-offset:${spacingVerticalXS};--inline-offset:${spacingHorizontalXS};background:${colorNeutralBackground1};border-radius:${borderRadiusMedium};border:1px solid ${colorTransparentStroke};box-sizing:border-box;color:${colorNeutralForeground1};display:inline-flex;filter:drop-shadow(0 0 2px ${colorNeutralShadowAmbient}) drop-shadow(0 4px 8px ${colorNeutralShadowKey});font-family:${fontFamilyBase};font-size:${fontSizeBase200};inset:unset;line-height:${lineHeightBase200};margin:unset;max-width:240px;overflow:visible;padding:4px ${spacingHorizontalMNudge} 6px;position:absolute;position-area:var(--position-area);position-try-fallbacks:var(--position-try-options);width:auto;z-index:1}@supports (inset-area:block-start){:host{inset-area:var(--position-area);position-try-fallbacks:var(--position-try-options)}}:host(:is([positioning^='above'],[positioning^='below'],:not([positioning]))){margin-block:var(--block-offset)}:host(:is([positioning^='before'],[positioning^='after'])){margin-inline:var(--inline-offset);--position-try-options:flip-inline}:host([positioning='above-start']){--position-area:${TooltipPositioningOption["above-start"]}}:host([positioning='above']){--position-area:${TooltipPositioningOption.above}}:host([positioning='above-end']){--position-area:${TooltipPositioningOption["above-end"]}}:host([positioning='below-start']){--position-area:${TooltipPositioningOption["below-start"]}}:host([positioning='below']){--position-area:${TooltipPositioningOption.below}}:host([positioning='below-end']){--position-area:${TooltipPositioningOption["below-end"]}}:host([positioning='before-top']){--position-area:${TooltipPositioningOption["before-top"]}}:host([positioning='before']){--position-area:${TooltipPositioningOption.before}}:host([positioning='before-bottom']){--position-area:${TooltipPositioningOption["before-bottom"]}}:host([positioning='after-top']){--position-area:${TooltipPositioningOption["after-top"]}}:host([positioning='after']){--position-area:${TooltipPositioningOption.after}}:host([positioning='after-bottom']){--position-area:${TooltipPositioningOption["after-bottom"]}}`;
14211
+ const styles$2 = css`${display("inline-flex")} :host(:not(:popover-open)){display:none}:host{--position-area:block-start;--position-try-options:flip-block;--block-offset:${spacingVerticalXS};--inline-offset:${spacingHorizontalXS};background:${colorNeutralBackground1};border-radius:${borderRadiusMedium};border:1px solid ${colorTransparentStroke};box-sizing:border-box;color:${colorNeutralForeground1};display:inline-flex;filter:drop-shadow(0 0 2px ${colorNeutralShadowAmbient}) drop-shadow(0 4px 8px ${colorNeutralShadowKey});font-family:${fontFamilyBase};font-size:${fontSizeBase200};inset:unset;line-height:${lineHeightBase200};margin:unset;max-width:240px;overflow:visible;padding:4px ${spacingHorizontalMNudge} 6px;position:absolute;position-area:var(--position-area);position-try-fallbacks:var(--position-try-options);width:auto;z-index:1}@supports (inset-area:block-start){:host{inset-area:var(--position-area);position-try-fallbacks:var(--position-try-options)}}:host(:is([positioning^='above'],[positioning^='below'],:not([positioning]))){margin-block:var(--block-offset)}:host(:is([positioning^='before'],[positioning^='after'])){margin-inline:var(--inline-offset);--position-try-options:flip-inline}:host([positioning='above-start']){--position-area:block-start span-inline-end}:host([positioning='above']){--position-area:block-start}:host([positioning='above-end']){--position-area:block-start span-inline-start}:host([positioning='below-start']){--position-area:block-end span-inline-end}:host([positioning='below']){--position-area:block-end}:host([positioning='below-end']){--position-area:block-end span-inline-start}:host([positioning='before-top']){--position-area:inline-start span-block-end}:host([positioning='before']){--position-area:inline-start}:host([positioning='before-bottom']){--position-area:inline-start span-block-start}:host([positioning='after-top']){--position-area:inline-end span-block-end}:host([positioning='after']){--position-area:inline-end}:host([positioning='after-bottom']){--position-area:inline-end span-block-start}`;
14143
14212
 
14144
14213
  const template$2 = html`<template popover aria-hidden=true><slot></slot></template>`;
14145
14214