@ni/ok-components 1.14.0 → 1.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/all-components-bundle.js +1015 -422
  2. package/dist/all-components-bundle.js.map +1 -1
  3. package/dist/all-components-bundle.min.js +531 -329
  4. package/dist/all-components-bundle.min.js.map +1 -1
  5. package/dist/custom-elements.json +241 -0
  6. package/dist/custom-elements.md +34 -0
  7. package/dist/esm/fv/all-fv.d.ts +1 -0
  8. package/dist/esm/fv/all-fv.js +1 -0
  9. package/dist/esm/fv/all-fv.js.map +1 -1
  10. package/dist/esm/fv/multi-select/index.d.ts +100 -0
  11. package/dist/esm/fv/multi-select/index.js +367 -0
  12. package/dist/esm/fv/multi-select/index.js.map +1 -0
  13. package/dist/esm/fv/multi-select/models/form-associated.d.ts +16 -0
  14. package/dist/esm/fv/multi-select/models/form-associated.js +17 -0
  15. package/dist/esm/fv/multi-select/models/form-associated.js.map +1 -0
  16. package/dist/esm/fv/multi-select/styles.d.ts +1 -0
  17. package/dist/esm/fv/multi-select/styles.js +241 -0
  18. package/dist/esm/fv/multi-select/styles.js.map +1 -0
  19. package/dist/esm/fv/multi-select/template.d.ts +2 -0
  20. package/dist/esm/fv/multi-select/template.js +171 -0
  21. package/dist/esm/fv/multi-select/template.js.map +1 -0
  22. package/dist/esm/fv/multi-select/types.d.ts +8 -0
  23. package/dist/esm/fv/multi-select/types.js +2 -0
  24. package/dist/esm/fv/multi-select/types.js.map +1 -0
  25. package/dist/esm/fv/split-button/styles.js +45 -5
  26. package/dist/esm/fv/split-button/styles.js.map +1 -1
  27. package/dist/esm/fv/split-button/template.js +3 -1
  28. package/dist/esm/fv/split-button/template.js.map +1 -1
  29. package/dist/esm/fv/split-button-anchor/index.d.ts +2 -2
  30. package/dist/esm/fv/split-button-anchor/index.js +4 -4
  31. package/dist/esm/fv/split-button-anchor/index.js.map +1 -1
  32. package/dist/esm/fv/split-button-anchor/styles.d.ts +1 -1
  33. package/dist/esm/fv/split-button-anchor/styles.js +1 -227
  34. package/dist/esm/fv/split-button-anchor/styles.js.map +1 -1
  35. package/dist/esm/fv/split-button-anchor/template.js +9 -4
  36. package/dist/esm/fv/split-button-anchor/template.js.map +1 -1
  37. package/package.json +1 -1
@@ -14980,7 +14980,7 @@
14980
14980
  const prefix = 'ni-nimble';
14981
14981
  const styleNameFromTokenName = (tokenName) => `${prefix}-${tokenName}`;
14982
14982
 
14983
- const template$1s = html `<slot></slot>`;
14983
+ const template$1t = html `<slot></slot>`;
14984
14984
 
14985
14985
  const styles$1I = css `
14986
14986
  ${display$2('contents')}
@@ -15110,7 +15110,7 @@
15110
15110
  const nimbleDesignSystemProvider = ThemeProvider.compose({
15111
15111
  baseName: 'theme-provider',
15112
15112
  styles: styles$1I,
15113
- template: template$1s
15113
+ template: template$1t
15114
15114
  });
15115
15115
  DesignSystem.getOrCreate()
15116
15116
  .withPrefix('nimble')
@@ -16863,7 +16863,7 @@
16863
16863
  }
16864
16864
  `;
16865
16865
 
16866
- const template$1r = (_context, definition) => html `${
16866
+ const template$1s = (_context, definition) => html `${
16867
16867
  /* top-container div is necessary because setting contenteditable directly on the native anchor instead
16868
16868
  leaves it focusable, unlike the behavior you get when the anchor is _within_ a contenteditable element.
16869
16869
  */ ''}<div
@@ -16966,7 +16966,7 @@
16966
16966
  const nimbleAnchor = Anchor.compose({
16967
16967
  baseName: 'anchor',
16968
16968
  baseClass: Anchor$1,
16969
- template: template$1r,
16969
+ template: template$1s,
16970
16970
  styles: styles$1H,
16971
16971
  shadowOptions: {
16972
16972
  delegatesFocus: true
@@ -17381,7 +17381,7 @@
17381
17381
  }
17382
17382
  `;
17383
17383
 
17384
- const template$1q = (context, definition) => html `
17384
+ const template$1r = (context, definition) => html `
17385
17385
  <a
17386
17386
  class="control"
17387
17387
  part="control"
@@ -17463,7 +17463,7 @@
17463
17463
  ], AnchorButton.prototype, "disabled", void 0);
17464
17464
  const nimbleAnchorButton = AnchorButton.compose({
17465
17465
  baseName: 'anchor-button',
17466
- template: template$1q,
17466
+ template: template$1r,
17467
17467
  styles: styles$1F,
17468
17468
  shadowOptions: {
17469
17469
  delegatesFocus: true
@@ -17555,7 +17555,7 @@
17555
17555
  }
17556
17556
  `;
17557
17557
 
17558
- const template$1p = (context, definition) => html `
17558
+ const template$1q = (context, definition) => html `
17559
17559
  <template
17560
17560
  role="menuitem"
17561
17561
  class="${x => (typeof x.startColumnCount === 'number'
@@ -17656,7 +17656,7 @@
17656
17656
  // FoundationAnchor already applies the StartEnd mixin, so we don't need to do it here.
17657
17657
  const nimbleAnchorMenuItem = AnchorMenuItem.compose({
17658
17658
  baseName: 'anchor-menu-item',
17659
- template: template$1p,
17659
+ template: template$1q,
17660
17660
  styles: styles$1E,
17661
17661
  shadowOptions: {
17662
17662
  delegatesFocus: true
@@ -19568,7 +19568,7 @@ Defines an interaction area clip-path that leaves out the severity text so it is
19568
19568
  };
19569
19569
 
19570
19570
  // Avoiding any whitespace in the template because this is an inline element
19571
- const template$1o = html `<div
19571
+ const template$1p = html `<div
19572
19572
  class="icon"
19573
19573
  aria-hidden="true"
19574
19574
  :innerHTML=${x => x.icon.data}
@@ -19637,7 +19637,7 @@ Defines an interaction area clip-path that leaves out the severity text so it is
19637
19637
  const registerIconSvg = (baseName, iconClass) => {
19638
19638
  const composedIcon = iconClass.compose({
19639
19639
  baseName,
19640
- template: template$1o,
19640
+ template: template$1p,
19641
19641
  styles: styles$1A
19642
19642
  });
19643
19643
  DesignSystem.getOrCreate().withPrefix('nimble').register(composedIcon());
@@ -19762,7 +19762,7 @@ Defines an interaction area clip-path that leaves out the severity text so it is
19762
19762
  */
19763
19763
  const StepperOrientation = Orientation;
19764
19764
 
19765
- const template$1n = (context, definition) => html `
19765
+ const template$1o = (context, definition) => html `
19766
19766
  <template slot="step">
19767
19767
  <li class="
19768
19768
  container
@@ -19909,7 +19909,7 @@ Defines an interaction area clip-path that leaves out the severity text so it is
19909
19909
  ], AnchorStep.prototype, "tabIndex", void 0);
19910
19910
  const nimbleAnchorStep = AnchorStep.compose({
19911
19911
  baseName: 'anchor-step',
19912
- template: template$1n,
19912
+ template: template$1o,
19913
19913
  styles: styles$1B,
19914
19914
  shadowOptions: {
19915
19915
  delegatesFocus: true
@@ -20034,7 +20034,7 @@ Defines an interaction area clip-path that leaves out the severity text so it is
20034
20034
  }
20035
20035
  `;
20036
20036
 
20037
- const template$1m = (context, definition) => html `
20037
+ const template$1n = (context, definition) => html `
20038
20038
  <template slot="anchortab" role="tab" aria-disabled="${x => x.disabled}">
20039
20039
  <a
20040
20040
  download="${x => x.download}"
@@ -20086,7 +20086,7 @@ Defines an interaction area clip-path that leaves out the severity text so it is
20086
20086
  // FoundationAnchor already applies the StartEnd mixin, so we don't need to do it here.
20087
20087
  const nimbleAnchorTab = AnchorTab.compose({
20088
20088
  baseName: 'anchor-tab',
20089
- template: template$1m,
20089
+ template: template$1n,
20090
20090
  styles: styles$1z,
20091
20091
  shadowOptions: {
20092
20092
  delegatesFocus: true
@@ -20139,7 +20139,7 @@ Defines an interaction area clip-path that leaves out the severity text so it is
20139
20139
  ${buttonAppearanceVariantStyles}
20140
20140
  `;
20141
20141
 
20142
- const template$1l = (context, definition) => html `
20142
+ const template$1m = (context, definition) => html `
20143
20143
  <button
20144
20144
  class="control"
20145
20145
  part="control"
@@ -20230,7 +20230,7 @@ Defines an interaction area clip-path that leaves out the severity text so it is
20230
20230
  const nimbleButton = Button.compose({
20231
20231
  baseName: 'button',
20232
20232
  baseClass: Button$1,
20233
- template: template$1l,
20233
+ template: template$1m,
20234
20234
  styles: styles$1x,
20235
20235
  shadowOptions: {
20236
20236
  delegatesFocus: true
@@ -20265,7 +20265,7 @@ Defines an interaction area clip-path that leaves out the severity text so it is
20265
20265
  registerIconSvg('icon-arrow-expander-right', IconArrowExpanderRight);
20266
20266
  const iconArrowExpanderRightTag = 'nimble-icon-arrow-expander-right';
20267
20267
 
20268
- const template$1k = (context, definition) => html `
20268
+ const template$1l = (context, definition) => html `
20269
20269
  <div
20270
20270
  class="tab-bar"
20271
20271
  >
@@ -20566,7 +20566,7 @@ Defines an interaction area clip-path that leaves out the severity text so it is
20566
20566
  applyMixins(AnchorTabs, StartEnd);
20567
20567
  const nimbleAnchorTabs = AnchorTabs.compose({
20568
20568
  baseName: 'anchor-tabs',
20569
- template: template$1k,
20569
+ template: template$1l,
20570
20570
  styles: styles$1y,
20571
20571
  shadowOptions: {
20572
20572
  delegatesFocus: false
@@ -20679,7 +20679,7 @@ Defines an interaction area clip-path that leaves out the severity text so it is
20679
20679
  }
20680
20680
  `;
20681
20681
 
20682
- const template$1j = (context, definition) => html `
20682
+ const template$1k = (context, definition) => html `
20683
20683
  <template
20684
20684
  role="treeitem"
20685
20685
  slot="${x => (x.isNestedItem() ? 'item' : null)}"
@@ -20816,7 +20816,7 @@ Defines an interaction area clip-path that leaves out the severity text so it is
20816
20816
  // FoundationAnchor already applies the StartEnd mixin, so we don't need to do it here.
20817
20817
  const nimbleAnchorTreeItem = AnchorTreeItem.compose({
20818
20818
  baseName: 'anchor-tree-item',
20819
- template: template$1j,
20819
+ template: template$1k,
20820
20820
  styles: styles$1w,
20821
20821
  shadowOptions: {
20822
20822
  delegatesFocus: true
@@ -21038,7 +21038,7 @@ Defines an interaction area clip-path that leaves out the severity text so it is
21038
21038
  information: 'information'
21039
21039
  };
21040
21040
 
21041
- const template$1i = html `
21041
+ const template$1j = html `
21042
21042
  <${themeProviderTag} theme="${Theme.color}">
21043
21043
  <div class="container"
21044
21044
  role="status"
@@ -21156,7 +21156,7 @@ Defines an interaction area clip-path that leaves out the severity text so it is
21156
21156
  applyMixins(Banner, ARIAGlobalStatesAndProperties);
21157
21157
  const nimbleBanner = Banner.compose({
21158
21158
  baseName: 'banner',
21159
- template: template$1i,
21159
+ template: template$1j,
21160
21160
  styles: styles$1u
21161
21161
  });
21162
21162
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleBanner());
@@ -21435,7 +21435,7 @@ so this becomes the fallback color for the slot */ ''}
21435
21435
  }
21436
21436
  `;
21437
21437
 
21438
- const template$1h = html `
21438
+ const template$1i = html `
21439
21439
  <section aria-labelledby="title-slot">
21440
21440
  <span id="title-slot"><slot name="title"></slot></span>
21441
21441
  <slot></slot>
@@ -21450,7 +21450,7 @@ so this becomes the fallback color for the slot */ ''}
21450
21450
  const nimbleCard = Card.compose({
21451
21451
  baseName: 'card',
21452
21452
  baseClass: Card$1,
21453
- template: template$1h,
21453
+ template: template$1i,
21454
21454
  styles: styles$1r
21455
21455
  });
21456
21456
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleCard());
@@ -21797,7 +21797,7 @@ so this becomes the fallback color for the slot */ ''}
21797
21797
  </div>
21798
21798
  `;
21799
21799
 
21800
- const template$1g = (_context, definition) => html `
21800
+ const template$1h = (_context, definition) => html `
21801
21801
  <template
21802
21802
  role="checkbox"
21803
21803
  aria-checked="${x => x.checked}"
@@ -21894,7 +21894,7 @@ so this becomes the fallback color for the slot */ ''}
21894
21894
  const nimbleCheckbox = Checkbox.compose({
21895
21895
  baseName: 'checkbox',
21896
21896
  baseClass: Checkbox$1,
21897
- template: template$1g,
21897
+ template: template$1h,
21898
21898
  styles: styles$1o,
21899
21899
  checkedIndicator: check16X16.data,
21900
21900
  indeterminateIndicator: minus16X16.data
@@ -21968,7 +21968,7 @@ so this becomes the fallback color for the slot */ ''}
21968
21968
  }
21969
21969
  `));
21970
21970
 
21971
- const template$1f = (context, definition) => html `
21971
+ const template$1g = (context, definition) => html `
21972
21972
  ${startSlotTemplate(context, definition)}
21973
21973
  <span
21974
21974
  class="content"
@@ -22054,7 +22054,7 @@ so this becomes the fallback color for the slot */ ''}
22054
22054
  applyMixins(Chip, StartEnd);
22055
22055
  const nimbleChip = Chip.compose({
22056
22056
  baseName: 'chip',
22057
- template: template$1f,
22057
+ template: template$1g,
22058
22058
  styles: styles$1n,
22059
22059
  shadowOptions: {
22060
22060
  delegatesFocus: true
@@ -22111,7 +22111,7 @@ so this becomes the fallback color for the slot */ ''}
22111
22111
  }
22112
22112
  `));
22113
22113
 
22114
- const template$1e = (context, definition) => html `
22114
+ const template$1f = (context, definition) => html `
22115
22115
  <div
22116
22116
  role="button"
22117
22117
  part="control"
@@ -22206,7 +22206,7 @@ so this becomes the fallback color for the slot */ ''}
22206
22206
  applyMixins(ToggleButton, StartEnd, DelegatesARIAButton);
22207
22207
  const nimbleToggleButton = ToggleButton.compose({
22208
22208
  baseName: 'toggle-button',
22209
- template: template$1e,
22209
+ template: template$1f,
22210
22210
  styles: styles$1m,
22211
22211
  shadowOptions: {
22212
22212
  delegatesFocus: true
@@ -22685,7 +22685,7 @@ so this becomes the fallback color for the slot */ ''}
22685
22685
  <slot></slot>
22686
22686
  </label>
22687
22687
  `);
22688
- const template$1d = (context, definition) => html `
22688
+ const template$1e = (context, definition) => html `
22689
22689
  <template
22690
22690
  aria-disabled="${x => x.ariaDisabled}"
22691
22691
  autocomplete="${x => x.autocomplete}"
@@ -23460,7 +23460,7 @@ so this becomes the fallback color for the slot */ ''}
23460
23460
  const nimbleCombobox = Combobox.compose({
23461
23461
  baseName: 'combobox',
23462
23462
  baseClass: FormAssociatedCombobox,
23463
- template: template$1d,
23463
+ template: template$1e,
23464
23464
  styles: styles$1j,
23465
23465
  shadowOptions: {
23466
23466
  delegatesFocus: true
@@ -23598,7 +23598,7 @@ so this becomes the fallback color for the slot */ ''}
23598
23598
  }
23599
23599
  `;
23600
23600
 
23601
- const template$1c = html `
23601
+ const template$1d = html `
23602
23602
  <template>
23603
23603
  <dialog
23604
23604
  ${ref('dialogElement')}
@@ -23746,7 +23746,7 @@ so this becomes the fallback color for the slot */ ''}
23746
23746
  applyMixins(Dialog, ARIAGlobalStatesAndProperties);
23747
23747
  const nimbleDialog = Dialog.compose({
23748
23748
  baseName: 'dialog',
23749
- template: template$1c,
23749
+ template: template$1d,
23750
23750
  styles: styles$1i,
23751
23751
  baseClass: Dialog
23752
23752
  });
@@ -23895,7 +23895,7 @@ so this becomes the fallback color for the slot */ ''}
23895
23895
  }
23896
23896
  `;
23897
23897
 
23898
- const template$1b = html `
23898
+ const template$1c = html `
23899
23899
  <dialog
23900
23900
  ${ref('dialog')}
23901
23901
  aria-label="${x => x.ariaLabel}"
@@ -24037,7 +24037,7 @@ so this becomes the fallback color for the slot */ ''}
24037
24037
  applyMixins(Drawer, ARIAGlobalStatesAndProperties);
24038
24038
  const nimbleDrawer = Drawer.compose({
24039
24039
  baseName: 'drawer',
24040
- template: template$1b,
24040
+ template: template$1c,
24041
24041
  styles: styles$1h
24042
24042
  });
24043
24043
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleDrawer());
@@ -27336,7 +27336,7 @@ so this becomes the fallback color for the slot */ ''}
27336
27336
  * The template for the {@link @ni/fast-foundation#(ListboxOption:class)} component.
27337
27337
  * @public
27338
27338
  */
27339
- const template$1a = (context, definition) => html `
27339
+ const template$1b = (context, definition) => html `
27340
27340
  <template
27341
27341
  aria-checked="${x => x.ariaChecked}"
27342
27342
  aria-disabled="${x => x.ariaDisabled}"
@@ -27438,7 +27438,7 @@ so this becomes the fallback color for the slot */ ''}
27438
27438
  const nimbleListOption = ListOption.compose({
27439
27439
  baseName: 'list-option',
27440
27440
  baseClass: ListboxOption,
27441
- template: template$1a,
27441
+ template: template$1b,
27442
27442
  styles: styles$1f
27443
27443
  });
27444
27444
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleListOption());
@@ -27506,7 +27506,7 @@ so this becomes the fallback color for the slot */ ''}
27506
27506
  const isListOption$1 = (n) => {
27507
27507
  return n instanceof ListOption;
27508
27508
  };
27509
- const template$19 = html `
27509
+ const template$1a = html `
27510
27510
  <template
27511
27511
  role="group"
27512
27512
  aria-label="${x => x.labelContent}"
@@ -27648,7 +27648,7 @@ so this becomes the fallback color for the slot */ ''}
27648
27648
  const nimbleListOptionGroup = ListOptionGroup.compose({
27649
27649
  baseName: 'list-option-group',
27650
27650
  baseClass: FoundationElement,
27651
- template: template$19,
27651
+ template: template$1a,
27652
27652
  styles: styles$1e
27653
27653
  });
27654
27654
  DesignSystem.getOrCreate()
@@ -27676,7 +27676,7 @@ so this becomes the fallback color for the slot */ ''}
27676
27676
  attr()
27677
27677
  ], Mapping$1.prototype, "key", void 0);
27678
27678
 
27679
- const template$18 = html `<template slot="mapping"></template>`;
27679
+ const template$19 = html `<template slot="mapping"></template>`;
27680
27680
 
27681
27681
  const styles$1d = css `
27682
27682
  ${display$2('none')}
@@ -27694,7 +27694,7 @@ so this becomes the fallback color for the slot */ ''}
27694
27694
  ], MappingEmpty.prototype, "text", void 0);
27695
27695
  const emptyMapping = MappingEmpty.compose({
27696
27696
  baseName: 'mapping-empty',
27697
- template: template$18,
27697
+ template: template$19,
27698
27698
  styles: styles$1d
27699
27699
  });
27700
27700
  DesignSystem.getOrCreate().withPrefix('nimble').register(emptyMapping());
@@ -27765,7 +27765,7 @@ so this becomes the fallback color for the slot */ ''}
27765
27765
  ], MappingIcon.prototype, "resolvedIcon", void 0);
27766
27766
  const iconMapping = MappingIcon.compose({
27767
27767
  baseName: 'mapping-icon',
27768
- template: template$18,
27768
+ template: template$19,
27769
27769
  styles: styles$1d
27770
27770
  });
27771
27771
  DesignSystem.getOrCreate().withPrefix('nimble').register(iconMapping());
@@ -27789,7 +27789,7 @@ so this becomes the fallback color for the slot */ ''}
27789
27789
  ], MappingSpinner.prototype, "textHidden", void 0);
27790
27790
  const spinnerMapping = MappingSpinner.compose({
27791
27791
  baseName: 'mapping-spinner',
27792
- template: template$18,
27792
+ template: template$19,
27793
27793
  styles: styles$1d
27794
27794
  });
27795
27795
  DesignSystem.getOrCreate().withPrefix('nimble').register(spinnerMapping());
@@ -27806,7 +27806,7 @@ so this becomes the fallback color for the slot */ ''}
27806
27806
  ], MappingText.prototype, "text", void 0);
27807
27807
  const textMapping = MappingText.compose({
27808
27808
  baseName: 'mapping-text',
27809
- template: template$18,
27809
+ template: template$19,
27810
27810
  styles: styles$1d
27811
27811
  });
27812
27812
  DesignSystem.getOrCreate().withPrefix('nimble').register(textMapping());
@@ -28109,7 +28109,7 @@ so this becomes the fallback color for the slot */ ''}
28109
28109
  observable
28110
28110
  ], Menu$1.prototype, "itemIcons", void 0);
28111
28111
 
28112
- const template$17 = () => html `
28112
+ const template$18 = () => html `
28113
28113
  <template
28114
28114
  slot="${x => {
28115
28115
  if (x.slot) {
@@ -28197,7 +28197,7 @@ so this becomes the fallback color for the slot */ ''}
28197
28197
  const nimbleMenu = Menu.compose({
28198
28198
  baseName: 'menu',
28199
28199
  baseClass: Menu$1,
28200
- template: template$17,
28200
+ template: template$18,
28201
28201
  styles: styles$1c
28202
28202
  });
28203
28203
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleMenu());
@@ -28233,7 +28233,7 @@ so this becomes the fallback color for the slot */ ''}
28233
28233
  }
28234
28234
  `;
28235
28235
 
28236
- const template$16 = html `
28236
+ const template$17 = html `
28237
28237
  <template
28238
28238
  ?open="${x => x.open}"
28239
28239
  @focusout="${(x, c) => x.focusoutHandler(c.event)}"
@@ -28483,7 +28483,7 @@ so this becomes the fallback color for the slot */ ''}
28483
28483
  ], MenuButton.prototype, "slottedMenus", void 0);
28484
28484
  const nimbleMenuButton = MenuButton.compose({
28485
28485
  baseName: 'menu-button',
28486
- template: template$16,
28486
+ template: template$17,
28487
28487
  styles: styles$1b,
28488
28488
  shadowOptions: {
28489
28489
  delegatesFocus: true
@@ -28839,7 +28839,7 @@ so this becomes the fallback color for the slot */ ''}
28839
28839
  * The template for the {@link @ni/fast-foundation#(NumberField:class)} component.
28840
28840
  * @public
28841
28841
  */
28842
- const template$15 = (context, definition) => html `
28842
+ const template$16 = (context, definition) => html `
28843
28843
  <template class="${x => (x.readOnly ? 'readonly' : '')}">
28844
28844
  ${labelTemplate$4}
28845
28845
  <div class="root" part="root">
@@ -28993,7 +28993,7 @@ so this becomes the fallback color for the slot */ ''}
28993
28993
  const nimbleNumberField = NumberField.compose({
28994
28994
  baseName: 'number-field',
28995
28995
  baseClass: NumberField$1,
28996
- template: template$15,
28996
+ template: template$16,
28997
28997
  styles: styles$19,
28998
28998
  shadowOptions: {
28999
28999
  delegatesFocus: true
@@ -29184,7 +29184,7 @@ so this becomes the fallback color for the slot */ ''}
29184
29184
  `;
29185
29185
 
29186
29186
  const labelTemplate$3 = createRequiredVisibleLabelTemplate(html `<slot name="label"></slot>`);
29187
- const template$14 = html `
29187
+ const template$15 = html `
29188
29188
  <template
29189
29189
  role="radiogroup"
29190
29190
  aria-disabled="${x => x.disabled}"
@@ -29224,7 +29224,7 @@ so this becomes the fallback color for the slot */ ''}
29224
29224
  const nimbleRadioGroup = RadioGroup.compose({
29225
29225
  baseName: 'radio-group',
29226
29226
  baseClass: RadioGroup$1,
29227
- template: template$14,
29227
+ template: template$15,
29228
29228
  styles: styles$17,
29229
29229
  shadowOptions: {
29230
29230
  delegatesFocus: true
@@ -50241,7 +50241,7 @@ img.ProseMirror-separator {
50241
50241
  }
50242
50242
  `;
50243
50243
 
50244
- const template$13 = html `
50244
+ const template$14 = html `
50245
50245
  <template>
50246
50246
  <${anchoredRegionTag}
50247
50247
  ${ref('region')}
@@ -50529,7 +50529,7 @@ img.ProseMirror-separator {
50529
50529
  ], RichTextMentionListbox.prototype, "anchorElement", void 0);
50530
50530
  const nimbleRichTextMentionListbox = RichTextMentionListbox.compose({
50531
50531
  baseName: 'rich-text-mention-listbox',
50532
- template: template$13,
50532
+ template: template$14,
50533
50533
  styles: styles$15
50534
50534
  });
50535
50535
  DesignSystem.getOrCreate()
@@ -50537,7 +50537,7 @@ img.ProseMirror-separator {
50537
50537
  .register(nimbleRichTextMentionListbox());
50538
50538
  const richTextMentionListboxTag = 'nimble-rich-text-mention-listbox';
50539
50539
 
50540
- const template$12 = html `
50540
+ const template$13 = html `
50541
50541
  <template
50542
50542
  ${children$1({ property: 'childItems', filter: elements() })}
50543
50543
  @focusout="${x => x.focusoutHandler()}"
@@ -69512,7 +69512,7 @@ img.ProseMirror-separator {
69512
69512
  applyMixins(RichTextEditor, ARIAGlobalStatesAndProperties);
69513
69513
  const nimbleRichTextEditor = RichTextEditor.compose({
69514
69514
  baseName: 'rich-text-editor',
69515
- template: template$12,
69515
+ template: template$13,
69516
69516
  styles: styles$14,
69517
69517
  shadowOptions: {
69518
69518
  delegatesFocus: true
@@ -69522,7 +69522,7 @@ img.ProseMirror-separator {
69522
69522
  .withPrefix('nimble')
69523
69523
  .register(nimbleRichTextEditor());
69524
69524
 
69525
- const template$11 = html `
69525
+ const template$12 = html `
69526
69526
  <template ${children$1({ property: 'childItems', filter: elements() })}>
69527
69527
  <div ${ref('viewer')} class="viewer"></div>
69528
69528
  </template>
@@ -69641,7 +69641,7 @@ img.ProseMirror-separator {
69641
69641
  ], RichTextViewer.prototype, "markdown", void 0);
69642
69642
  const nimbleRichTextViewer = RichTextViewer.compose({
69643
69643
  baseName: 'rich-text-viewer',
69644
- template: template$11,
69644
+ template: template$12,
69645
69645
  styles: styles$13
69646
69646
  });
69647
69647
  DesignSystem.getOrCreate()
@@ -69984,7 +69984,7 @@ img.ProseMirror-separator {
69984
69984
  }
69985
69985
  `));
69986
69986
 
69987
- const template$10 = html `
69987
+ const template$11 = html `
69988
69988
  <template role="progressbar">
69989
69989
  ${''
69990
69990
  /**
@@ -70031,7 +70031,7 @@ img.ProseMirror-separator {
70031
70031
  ], Spinner.prototype, "appearance", void 0);
70032
70032
  const nimbleSpinner = Spinner.compose({
70033
70033
  baseName: 'spinner',
70034
- template: template$10,
70034
+ template: template$11,
70035
70035
  styles: styles$11
70036
70036
  });
70037
70037
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleSpinner());
@@ -70048,7 +70048,7 @@ img.ProseMirror-separator {
70048
70048
  <slot ${ref('labelSlot')}></slot>
70049
70049
  </label>
70050
70050
  `);
70051
- const template$$ = (context, definition) => html `
70051
+ const template$10 = (context, definition) => html `
70052
70052
  <template
70053
70053
  class="${x => [
70054
70054
  x.collapsible && 'collapsible',
@@ -71260,7 +71260,7 @@ img.ProseMirror-separator {
71260
71260
  const nimbleSelect = Select.compose({
71261
71261
  baseName: 'select',
71262
71262
  baseClass: Select$2,
71263
- template: template$$,
71263
+ template: template$10,
71264
71264
  styles: styles$12,
71265
71265
  indicator: arrowExpanderDown16X16.data,
71266
71266
  end: html `
@@ -71286,7 +71286,7 @@ img.ProseMirror-separator {
71286
71286
  }
71287
71287
  `;
71288
71288
 
71289
- const template$_ = (context, definition) => html `
71289
+ const template$$ = (context, definition) => html `
71290
71290
  <template slot="step">
71291
71291
  <li class="
71292
71292
  container
@@ -71408,7 +71408,7 @@ img.ProseMirror-separator {
71408
71408
  ], Step.prototype, "tabIndex", void 0);
71409
71409
  const nimbleStep = Step.compose({
71410
71410
  baseName: 'step',
71411
- template: template$_,
71411
+ template: template$$,
71412
71412
  styles: styles$10,
71413
71413
  shadowOptions: {
71414
71414
  delegatesFocus: true
@@ -71487,7 +71487,7 @@ img.ProseMirror-separator {
71487
71487
  }
71488
71488
  `;
71489
71489
 
71490
- const template$Z = html `
71490
+ const template$_ = html `
71491
71491
  ${when(x => x.showScrollButtons, html `
71492
71492
  <${buttonTag}
71493
71493
  content-hidden
@@ -71632,7 +71632,7 @@ img.ProseMirror-separator {
71632
71632
  ], Stepper.prototype, "steps", void 0);
71633
71633
  const nimbleStepper = Stepper.compose({
71634
71634
  baseName: 'stepper',
71635
- template: template$Z,
71635
+ template: template$_,
71636
71636
  styles: styles$$
71637
71637
  });
71638
71638
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleStepper());
@@ -71867,7 +71867,7 @@ img.ProseMirror-separator {
71867
71867
  }
71868
71868
  `));
71869
71869
 
71870
- const template$Y = html `
71870
+ const template$Z = html `
71871
71871
  <template
71872
71872
  role="switch"
71873
71873
  aria-checked="${x => x.checked}"
@@ -71911,7 +71911,7 @@ img.ProseMirror-separator {
71911
71911
  const nimbleSwitch = Switch.compose({
71912
71912
  baseClass: Switch$1,
71913
71913
  baseName: 'switch',
71914
- template: template$Y,
71914
+ template: template$Z,
71915
71915
  styles: styles$_
71916
71916
  });
71917
71917
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleSwitch());
@@ -76064,7 +76064,7 @@ focus outline in that case.
76064
76064
  }
76065
76065
  `;
76066
76066
 
76067
- const template$X = html `
76067
+ const template$Y = html `
76068
76068
  <template role="columnheader"
76069
76069
  class="${x => (x.alignment === TableColumnAlignment.right ? 'right-align' : '')}"
76070
76070
  aria-sort="${x => x.ariaSort}"
@@ -76150,7 +76150,7 @@ focus outline in that case.
76150
76150
  ], TableHeader.prototype, "isGrouped", void 0);
76151
76151
  const nimbleTableHeader = TableHeader.compose({
76152
76152
  baseName: 'table-header',
76153
- template: template$X,
76153
+ template: template$Y,
76154
76154
  styles: styles$W
76155
76155
  });
76156
76156
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTableHeader());
@@ -76474,7 +76474,7 @@ focus outline in that case.
76474
76474
  }
76475
76475
  `;
76476
76476
 
76477
- const template$W = html `
76477
+ const template$X = html `
76478
76478
  <template role="cell" style="--ni-private-table-cell-nesting-level: ${x => x.nestingLevel}"
76479
76479
  @focusin="${x => x.onCellFocusIn()}"
76480
76480
  @blur="${x => x.onCellBlur()}"
@@ -76571,7 +76571,7 @@ focus outline in that case.
76571
76571
  ], TableCell.prototype, "nestingLevel", void 0);
76572
76572
  const nimbleTableCell = TableCell.compose({
76573
76573
  baseName: 'table-cell',
76574
- template: template$W,
76574
+ template: template$X,
76575
76575
  styles: styles$T
76576
76576
  });
76577
76577
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTableCell());
@@ -76608,7 +76608,7 @@ focus outline in that case.
76608
76608
  `)}
76609
76609
  </${tableCellTag}>
76610
76610
  `;
76611
- const template$V = html `
76611
+ const template$W = html `
76612
76612
  <template
76613
76613
  role="row"
76614
76614
  aria-selected=${x => x.ariaSelected}
@@ -76984,7 +76984,7 @@ focus outline in that case.
76984
76984
  ], TableRow.prototype, "ariaSelected", null);
76985
76985
  const nimbleTableRow = TableRow.compose({
76986
76986
  baseName: 'table-row',
76987
- template: template$V,
76987
+ template: template$W,
76988
76988
  styles: styles$U
76989
76989
  });
76990
76990
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTableRow());
@@ -77165,7 +77165,7 @@ focus outline in that case.
77165
77165
  }
77166
77166
  `));
77167
77167
 
77168
- const template$U = html `
77168
+ const template$V = html `
77169
77169
  <template
77170
77170
  role="row"
77171
77171
  @click=${x => x.onGroupExpandToggle()}
@@ -77341,7 +77341,7 @@ focus outline in that case.
77341
77341
  ], TableGroupRow.prototype, "allowHover", void 0);
77342
77342
  const nimbleTableGroupRow = TableGroupRow.compose({
77343
77343
  baseName: 'table-group-row',
77344
- template: template$U,
77344
+ template: template$V,
77345
77345
  styles: styles$S
77346
77346
  });
77347
77347
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTableGroupRow());
@@ -77362,7 +77362,7 @@ focus outline in that case.
77362
77362
  <slot name="${x => x.slot}"></slot>
77363
77363
  </${tableHeaderTag}>
77364
77364
  `;
77365
- const template$T = html `
77365
+ const template$U = html `
77366
77366
  <template
77367
77367
  role="treegrid"
77368
77368
  ${'' /* tabindex managed dynamically by KeyboardNavigationManager */}
@@ -82735,7 +82735,7 @@ focus outline in that case.
82735
82735
  ], Table$1.prototype, "windowShiftKeyDown", void 0);
82736
82736
  const nimbleTable = Table$1.compose({
82737
82737
  baseName: 'table',
82738
- template: template$T,
82738
+ template: template$U,
82739
82739
  styles: styles$X
82740
82740
  });
82741
82741
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTable());
@@ -82752,7 +82752,7 @@ focus outline in that case.
82752
82752
 
82753
82753
  // Avoiding a wrapping <template> and be careful about starting and ending whitspace
82754
82754
  // so the template can be composed into other column header templates
82755
- const template$S = html `<span
82755
+ const template$T = html `<span
82756
82756
  ${overflow('hasOverflow')}
82757
82757
  class="header-content"
82758
82758
  title=${x => (x.hasOverflow && x.headerTextContent ? x.headerTextContent : null)}
@@ -82848,7 +82848,7 @@ focus outline in that case.
82848
82848
  }
82849
82849
  `;
82850
82850
 
82851
- const template$R = html `
82851
+ const template$S = html `
82852
82852
  <template
82853
82853
  @click="${(x, c) => {
82854
82854
  if (typeof x.cellRecord?.href === 'string') {
@@ -82940,7 +82940,7 @@ focus outline in that case.
82940
82940
  ], TableColumnAnchorCellView.prototype, "showAnchor", null);
82941
82941
  const anchorCellView = TableColumnAnchorCellView.compose({
82942
82942
  baseName: 'table-column-anchor-cell-view',
82943
- template: template$R,
82943
+ template: template$S,
82944
82944
  styles: styles$Q
82945
82945
  });
82946
82946
  DesignSystem.getOrCreate().withPrefix('nimble').register(anchorCellView());
@@ -83018,7 +83018,7 @@ focus outline in that case.
83018
83018
  observable
83019
83019
  ], TableColumnTextGroupHeaderViewBase.prototype, "text", void 0);
83020
83020
 
83021
- const template$Q = html `
83021
+ const template$R = html `
83022
83022
  <span
83023
83023
  ${overflow('hasOverflow')}
83024
83024
  title="${x => (x.hasOverflow && x.text ? x.text : null)}"
@@ -83051,7 +83051,7 @@ focus outline in that case.
83051
83051
  }
83052
83052
  const tableColumnTextGroupHeaderView = TableColumnTextGroupHeaderView.compose({
83053
83053
  baseName: 'table-column-text-group-header-view',
83054
- template: template$Q,
83054
+ template: template$R,
83055
83055
  styles: styles$P
83056
83056
  });
83057
83057
  DesignSystem.getOrCreate()
@@ -83296,7 +83296,7 @@ focus outline in that case.
83296
83296
  ], TableColumnAnchor.prototype, "download", void 0);
83297
83297
  const nimbleTableColumnAnchor = TableColumnAnchor.compose({
83298
83298
  baseName: 'table-column-anchor',
83299
- template: template$S,
83299
+ template: template$T,
83300
83300
  styles: styles$R
83301
83301
  });
83302
83302
  DesignSystem.getOrCreate()
@@ -83335,7 +83335,7 @@ focus outline in that case.
83335
83335
  }
83336
83336
  const tableColumnDateTextGroupHeaderView = TableColumnDateTextGroupHeaderView.compose({
83337
83337
  baseName: 'table-column-date-text-group-header-view',
83338
- template: template$Q,
83338
+ template: template$R,
83339
83339
  styles: styles$P
83340
83340
  });
83341
83341
  DesignSystem.getOrCreate()
@@ -83343,7 +83343,7 @@ focus outline in that case.
83343
83343
  .register(tableColumnDateTextGroupHeaderView());
83344
83344
  const tableColumnDateTextGroupHeaderViewTag = 'nimble-table-column-date-text-group-header-view';
83345
83345
 
83346
- const template$P = html `
83346
+ const template$Q = html `
83347
83347
  <template
83348
83348
  class="
83349
83349
  ${x => (x.alignment === TableColumnAlignment.right ? 'right-align' : '')}
@@ -83461,7 +83461,7 @@ focus outline in that case.
83461
83461
  }
83462
83462
  const dateTextCellView = TableColumnDateTextCellView.compose({
83463
83463
  baseName: 'table-column-date-text-cell-view',
83464
- template: template$P,
83464
+ template: template$Q,
83465
83465
  styles: styles$O
83466
83466
  });
83467
83467
  DesignSystem.getOrCreate().withPrefix('nimble').register(dateTextCellView());
@@ -83796,7 +83796,7 @@ focus outline in that case.
83796
83796
  ], TableColumnDateText.prototype, "customHourCycle", void 0);
83797
83797
  const nimbleTableColumnDateText = TableColumnDateText.compose({
83798
83798
  baseName: 'table-column-date-text',
83799
- template: template$S,
83799
+ template: template$T,
83800
83800
  styles: styles$R
83801
83801
  });
83802
83802
  DesignSystem.getOrCreate()
@@ -83813,7 +83813,7 @@ focus outline in that case.
83813
83813
  }
83814
83814
  const durationTextCellView = TableColumnDurationTextCellView.compose({
83815
83815
  baseName: 'table-column-duration-text-cell-view',
83816
- template: template$P,
83816
+ template: template$Q,
83817
83817
  styles: styles$O
83818
83818
  });
83819
83819
  DesignSystem.getOrCreate()
@@ -83915,7 +83915,7 @@ focus outline in that case.
83915
83915
  }
83916
83916
  const tableColumnDurationTextGroupHeaderView = TableColumnDurationTextGroupHeaderView.compose({
83917
83917
  baseName: 'table-column-duration-text-group-header-view',
83918
- template: template$Q,
83918
+ template: template$R,
83919
83919
  styles: styles$P
83920
83920
  });
83921
83921
  DesignSystem.getOrCreate()
@@ -83968,7 +83968,7 @@ focus outline in that case.
83968
83968
  }
83969
83969
  const nimbleTableColumnDurationText = TableColumnDurationText.compose({
83970
83970
  baseName: 'table-column-duration-text',
83971
- template: template$S,
83971
+ template: template$T,
83972
83972
  styles: styles$R
83973
83973
  });
83974
83974
  DesignSystem.getOrCreate()
@@ -84085,7 +84085,7 @@ focus outline in that case.
84085
84085
  }
84086
84086
  `;
84087
84087
 
84088
- const template$O = html `${template$S}<slot ${slotted('mappings')} name="mapping"></slot>`;
84088
+ const template$P = html `${template$T}<slot ${slotted('mappings')} name="mapping"></slot>`;
84089
84089
 
84090
84090
  // As the returned class is internal to the function, we can't write a signature that uses is directly, so rely on inference
84091
84091
  // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type
@@ -84212,7 +84212,7 @@ focus outline in that case.
84212
84212
  }
84213
84213
  `;
84214
84214
 
84215
- const template$N = html `
84215
+ const template$O = html `
84216
84216
  ${when(x => x.visualizationTemplate, html `
84217
84217
  <span class="reserve-icon-size">
84218
84218
  ${x => x.visualizationTemplate}
@@ -84356,7 +84356,7 @@ focus outline in that case.
84356
84356
  ], TableColumnMappingGroupHeaderView.prototype, "visualizationTemplate", void 0);
84357
84357
  const mappingGroupHeaderView = TableColumnMappingGroupHeaderView.compose({
84358
84358
  baseName: 'table-column-mapping-group-header-view',
84359
- template: template$N,
84359
+ template: template$O,
84360
84360
  styles: styles$M
84361
84361
  });
84362
84362
  DesignSystem.getOrCreate()
@@ -84388,7 +84388,7 @@ focus outline in that case.
84388
84388
  }
84389
84389
  `;
84390
84390
 
84391
- const template$M = html `
84391
+ const template$N = html `
84392
84392
  ${when(x => x.visualizationTemplate, html `
84393
84393
  <span class="reserve-icon-size">
84394
84394
  ${x => x.visualizationTemplate}
@@ -84475,7 +84475,7 @@ focus outline in that case.
84475
84475
  ], TableColumnMappingCellView.prototype, "hasOverflow", void 0);
84476
84476
  const mappingCellView = TableColumnMappingCellView.compose({
84477
84477
  baseName: 'table-column-mapping-cell-view',
84478
- template: template$M,
84478
+ template: template$N,
84479
84479
  styles: styles$L
84480
84480
  });
84481
84481
  DesignSystem.getOrCreate().withPrefix('nimble').register(mappingCellView());
@@ -84559,23 +84559,23 @@ focus outline in that case.
84559
84559
  ], TableColumnMapping.prototype, "widthMode", void 0);
84560
84560
  const nimbleTableColumnMapping = TableColumnMapping.compose({
84561
84561
  baseName: 'table-column-mapping',
84562
- template: template$O,
84562
+ template: template$P,
84563
84563
  styles: styles$N
84564
84564
  });
84565
84565
  DesignSystem.getOrCreate()
84566
84566
  .withPrefix('nimble')
84567
84567
  .register(nimbleTableColumnMapping());
84568
84568
 
84569
- const template$L = html `
84569
+ const template$M = html `
84570
84570
  <template @delegated-event="${(x, c) => x.onDelegatedEvent(c.event)}"
84571
- >${template$S}</template
84571
+ >${template$T}</template
84572
84572
  >
84573
84573
  `;
84574
84574
 
84575
84575
  /** @internal */
84576
84576
  const cellViewMenuSlotName = 'menu-button-menu';
84577
84577
 
84578
- const template$K = html `
84578
+ const template$L = html `
84579
84579
  ${when(x => x.showMenuButton, html `
84580
84580
  <${menuButtonTag}
84581
84581
  ${ref('menuButton')}
@@ -84669,7 +84669,7 @@ focus outline in that case.
84669
84669
  ], TableColumnMenuButtonCellView.prototype, "showMenuButton", null);
84670
84670
  const menuButtonCellView = TableColumnMenuButtonCellView.compose({
84671
84671
  baseName: 'table-column-menu-button-cell-view',
84672
- template: template$K,
84672
+ template: template$L,
84673
84673
  styles: styles$K
84674
84674
  });
84675
84675
  DesignSystem.getOrCreate().withPrefix('nimble').register(menuButtonCellView());
@@ -84725,7 +84725,7 @@ focus outline in that case.
84725
84725
  ], TableColumnMenuButton.prototype, "menuSlot", void 0);
84726
84726
  const nimbleTableColumnMenuButton = TableColumnMenuButton.compose({
84727
84727
  baseName: 'table-column-menu-button',
84728
- template: template$L,
84728
+ template: template$M,
84729
84729
  styles: styles$R
84730
84730
  });
84731
84731
  DesignSystem.getOrCreate()
@@ -84734,7 +84734,7 @@ focus outline in that case.
84734
84734
 
84735
84735
  // Avoiding a wrapping <template> and be careful about starting and ending whitespace
84736
84736
  // so the template can be composed into other column header templates
84737
- const template$J = html `<span
84737
+ const template$K = html `<span
84738
84738
  ${overflow('hasOverflow')}
84739
84739
  class="header-content"
84740
84740
  title=${x => (x.hasOverflow && x.headerTextContent ? x.headerTextContent : null)}
@@ -84753,7 +84753,7 @@ focus outline in that case.
84753
84753
  }
84754
84754
  const tableColumnNumberTextGroupHeaderView = TableColumnNumberTextGroupHeaderView.compose({
84755
84755
  baseName: 'table-column-number-text-group-header-view',
84756
- template: template$Q,
84756
+ template: template$R,
84757
84757
  styles: styles$P
84758
84758
  });
84759
84759
  DesignSystem.getOrCreate()
@@ -84775,7 +84775,7 @@ focus outline in that case.
84775
84775
  }
84776
84776
  const numberTextCellView = TableColumnNumberTextCellView.compose({
84777
84777
  baseName: 'table-column-number-text-cell-view',
84778
- template: template$P,
84778
+ template: template$Q,
84779
84779
  styles: styles$O
84780
84780
  });
84781
84781
  DesignSystem.getOrCreate().withPrefix('nimble').register(numberTextCellView());
@@ -85316,7 +85316,7 @@ focus outline in that case.
85316
85316
  ], TableColumnNumberText.prototype, "unit", void 0);
85317
85317
  const nimbleTableColumnNumberText = TableColumnNumberText.compose({
85318
85318
  baseName: 'table-column-number-text',
85319
- template: template$J,
85319
+ template: template$K,
85320
85320
  styles: styles$R
85321
85321
  });
85322
85322
  DesignSystem.getOrCreate()
@@ -85335,7 +85335,7 @@ focus outline in that case.
85335
85335
  }
85336
85336
  const textCellView = TableColumnTextCellView.compose({
85337
85337
  baseName: 'table-column-text-cell-view',
85338
- template: template$P,
85338
+ template: template$Q,
85339
85339
  styles: styles$O
85340
85340
  });
85341
85341
  DesignSystem.getOrCreate().withPrefix('nimble').register(textCellView());
@@ -85390,7 +85390,7 @@ focus outline in that case.
85390
85390
  }
85391
85391
  const nimbleTableColumnText = TableColumnText.compose({
85392
85392
  baseName: 'table-column-text',
85393
- template: template$S,
85393
+ template: template$T,
85394
85394
  styles: styles$R
85395
85395
  });
85396
85396
  DesignSystem.getOrCreate()
@@ -85479,7 +85479,7 @@ focus outline in that case.
85479
85479
  const nimbleTabs = Tabs.compose({
85480
85480
  baseName: 'tabs',
85481
85481
  baseClass: Tabs$1,
85482
- template: template$1k,
85482
+ template: template$1l,
85483
85483
  styles: styles$J
85484
85484
  });
85485
85485
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTabs());
@@ -85516,7 +85516,7 @@ focus outline in that case.
85516
85516
  }
85517
85517
  `;
85518
85518
 
85519
- const template$I = (context, definition) => html `
85519
+ const template$J = (context, definition) => html `
85520
85520
  <template slot="end">
85521
85521
  ${when(x => x.defaultSlottedElements.length > 0, html `
85522
85522
  <div class="separator"></div>
@@ -85548,7 +85548,7 @@ focus outline in that case.
85548
85548
  ], TabsToolbar.prototype, "defaultSlottedElements", void 0);
85549
85549
  const nimbleTabsToolbar = TabsToolbar.compose({
85550
85550
  baseName: 'tabs-toolbar',
85551
- template: template$I,
85551
+ template: template$J,
85552
85552
  styles: styles$I
85553
85553
  });
85554
85554
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTabsToolbar());
@@ -85757,7 +85757,7 @@ focus outline in that case.
85757
85757
  <slot ${slotted('defaultSlottedNodes')}></slot>
85758
85758
  </label>
85759
85759
  `);
85760
- const template$H = () => html `
85760
+ const template$I = () => html `
85761
85761
  ${labelTemplate$1}
85762
85762
  <div class="container">
85763
85763
  <textarea
@@ -85905,7 +85905,7 @@ focus outline in that case.
85905
85905
  const nimbleTextArea = TextArea.compose({
85906
85906
  baseName: 'text-area',
85907
85907
  baseClass: TextArea$1,
85908
- template: template$H,
85908
+ template: template$I,
85909
85909
  styles: styles$H,
85910
85910
  shadowOptions: {
85911
85911
  delegatesFocus: true
@@ -86203,7 +86203,7 @@ focus outline in that case.
86203
86203
  * The template for the {@link @ni/fast-foundation#(TextField:class)} component.
86204
86204
  * @public
86205
86205
  */
86206
- const template$G = (context, definition) => html `
86206
+ const template$H = (context, definition) => html `
86207
86207
  <template
86208
86208
  class="
86209
86209
  ${x => (x.readOnly ? 'readonly' : '')}
@@ -86292,7 +86292,7 @@ focus outline in that case.
86292
86292
  const nimbleTextField = TextField.compose({
86293
86293
  baseName: 'text-field',
86294
86294
  baseClass: TextField$1,
86295
- template: template$G,
86295
+ template: template$H,
86296
86296
  styles: styles$G,
86297
86297
  shadowOptions: {
86298
86298
  delegatesFocus: true
@@ -86396,7 +86396,7 @@ focus outline in that case.
86396
86396
  }
86397
86397
  `));
86398
86398
 
86399
- const template$F = html `
86399
+ const template$G = html `
86400
86400
  ${when(x => x.tooltipVisible, html `
86401
86401
  <${anchoredRegionTag}
86402
86402
  class="anchored-region"
@@ -86448,7 +86448,7 @@ focus outline in that case.
86448
86448
  const nimbleTooltip = Tooltip.compose({
86449
86449
  baseName: 'tooltip',
86450
86450
  baseClass: Tooltip$1,
86451
- template: template$F,
86451
+ template: template$G,
86452
86452
  styles: styles$F
86453
86453
  });
86454
86454
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTooltip());
@@ -86774,7 +86774,7 @@ focus outline in that case.
86774
86774
  }
86775
86775
  `;
86776
86776
 
86777
- const template$E = html `
86777
+ const template$F = html `
86778
86778
  <template
86779
86779
  role="tree"
86780
86780
  ${ref('treeView')}
@@ -86870,7 +86870,7 @@ focus outline in that case.
86870
86870
  const nimbleTreeView = TreeView.compose({
86871
86871
  baseName: 'tree-view',
86872
86872
  baseClass: TreeView$1,
86873
- template: template$E,
86873
+ template: template$F,
86874
86874
  styles: styles$D
86875
86875
  });
86876
86876
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTreeView());
@@ -86987,7 +86987,7 @@ focus outline in that case.
86987
86987
  }
86988
86988
  const unitScaleByte = new UnitScaleByte();
86989
86989
 
86990
- const template$D = html `<template slot="unit"></template>`;
86990
+ const template$E = html `<template slot="unit"></template>`;
86991
86991
 
86992
86992
  const styles$C = css `
86993
86993
  ${display$2('none')}
@@ -87017,7 +87017,7 @@ focus outline in that case.
87017
87017
  ], UnitByte.prototype, "binary", void 0);
87018
87018
  const nimbleUnitByte = UnitByte.compose({
87019
87019
  baseName: 'unit-byte',
87020
- template: template$D,
87020
+ template: template$E,
87021
87021
  styles: styles$C
87022
87022
  });
87023
87023
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleUnitByte());
@@ -87070,7 +87070,7 @@ focus outline in that case.
87070
87070
  }
87071
87071
  const nimbleUnitVolt = UnitVolt.compose({
87072
87072
  baseName: 'unit-volt',
87073
- template: template$D,
87073
+ template: template$E,
87074
87074
  styles: styles$C
87075
87075
  });
87076
87076
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleUnitVolt());
@@ -102115,7 +102115,7 @@ focus outline in that case.
102115
102115
  return new Table(reader.readAll());
102116
102116
  }
102117
102117
 
102118
- const template$C = html `
102118
+ const template$D = html `
102119
102119
  <div class="wafer-map-container">
102120
102120
  <svg class="svg-root">
102121
102121
  <g ${ref('zoomContainer')} transform=${x => x.transform.toString()}>
@@ -105173,7 +105173,7 @@ focus outline in that case.
105173
105173
  ], WaferMap.prototype, "colorScale", void 0);
105174
105174
  const nimbleWaferMap = WaferMap.compose({
105175
105175
  baseName: 'wafer-map',
105176
- template: template$C,
105176
+ template: template$D,
105177
105177
  styles: styles$B
105178
105178
  });
105179
105179
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleWaferMap());
@@ -105276,7 +105276,7 @@ focus outline in that case.
105276
105276
  }
105277
105277
  `;
105278
105278
 
105279
- const template$B = html `
105279
+ const template$C = html `
105280
105280
  <div class="toolbar ${x => (x.toolbarEmpty ? 'toolbar-empty' : '')}">
105281
105281
  <slot name="toolbar" ${slotted({ property: 'slottedToolbarElements' })}></slot>
105282
105282
  </div>
@@ -105676,7 +105676,7 @@ focus outline in that case.
105676
105676
  ], ChatConversation.prototype, "slottedEndElements", void 0);
105677
105677
  const sprightChatConversation = ChatConversation.compose({
105678
105678
  baseName: 'chat-conversation',
105679
- template: template$B,
105679
+ template: template$C,
105680
105680
  styles: styles$A
105681
105681
  });
105682
105682
  DesignSystem.getOrCreate()
@@ -105843,7 +105843,7 @@ focus outline in that case.
105843
105843
  cssCustomPropertyName: null
105844
105844
  }).withDefault(chatLabelDefaults.chatStopLabel);
105845
105845
 
105846
- const template$A = html `
105846
+ const template$B = html `
105847
105847
  <div class="container">
105848
105848
  <section class="attachments ${x => (x.attachmentsIsEmpty ? '' : 'has-content')}">
105849
105849
  <slot
@@ -106089,7 +106089,7 @@ focus outline in that case.
106089
106089
  ], ChatInput.prototype, "slottedAttachmentsElements", void 0);
106090
106090
  const sprightChatInput = ChatInput.compose({
106091
106091
  baseName: 'chat-input',
106092
- template: template$A,
106092
+ template: template$B,
106093
106093
  styles: styles$z,
106094
106094
  shadowOptions: {
106095
106095
  delegatesFocus: true
@@ -106182,7 +106182,7 @@ focus outline in that case.
106182
106182
  }
106183
106183
  `;
106184
106184
 
106185
- const template$z = (context, definition) => html `
106185
+ const template$A = (context, definition) => html `
106186
106186
  <div class="container">
106187
106187
  ${startSlotTemplate(context, definition)}
106188
106188
  <section class="message-content">
@@ -106231,7 +106231,7 @@ focus outline in that case.
106231
106231
  applyMixins(ChatMessage, StartEnd);
106232
106232
  const sprightChatMessage = ChatMessage.compose({
106233
106233
  baseName: 'chat-message',
106234
- template: template$z,
106234
+ template: template$A,
106235
106235
  styles: styles$y
106236
106236
  });
106237
106237
  DesignSystem.getOrCreate().withPrefix('spright').register(sprightChatMessage());
@@ -106298,7 +106298,7 @@ focus outline in that case.
106298
106298
  }
106299
106299
  `;
106300
106300
 
106301
- const template$y = (context, definition) => html `
106301
+ const template$z = (context, definition) => html `
106302
106302
  <div class="container">
106303
106303
  ${startSlotTemplate(context, definition)}
106304
106304
  <section class="message-content">
@@ -106338,7 +106338,7 @@ focus outline in that case.
106338
106338
  applyMixins(ChatMessageInbound, StartEnd);
106339
106339
  const sprightChatMessageInbound = ChatMessageInbound.compose({
106340
106340
  baseName: 'chat-message-inbound',
106341
- template: template$y,
106341
+ template: template$z,
106342
106342
  styles: styles$x
106343
106343
  });
106344
106344
  DesignSystem.getOrCreate().withPrefix('spright').register(sprightChatMessageInbound());
@@ -106378,7 +106378,7 @@ focus outline in that case.
106378
106378
  }
106379
106379
  `;
106380
106380
 
106381
- const template$x = () => html `
106381
+ const template$y = () => html `
106382
106382
  <div class="container">
106383
106383
  <section class="message-content">
106384
106384
  <slot></slot>
@@ -106400,7 +106400,7 @@ focus outline in that case.
106400
106400
  }
106401
106401
  const sprightChatMessageOutbound = ChatMessageOutbound.compose({
106402
106402
  baseName: 'chat-message-outbound',
106403
- template: template$x,
106403
+ template: template$y,
106404
106404
  styles: styles$w
106405
106405
  });
106406
106406
  DesignSystem.getOrCreate().withPrefix('spright').register(sprightChatMessageOutbound());
@@ -106436,7 +106436,7 @@ focus outline in that case.
106436
106436
  }
106437
106437
  `;
106438
106438
 
106439
- const template$w = () => html `
106439
+ const template$x = () => html `
106440
106440
  <div class="container">
106441
106441
  <section class="message-content">
106442
106442
  <slot></slot>
@@ -106456,7 +106456,7 @@ focus outline in that case.
106456
106456
  }
106457
106457
  const sprightChatMessageSystem = ChatMessageSystem.compose({
106458
106458
  baseName: 'chat-message-system',
106459
- template: template$w,
106459
+ template: template$x,
106460
106460
  styles: styles$v
106461
106461
  });
106462
106462
  DesignSystem.getOrCreate().withPrefix('spright').register(sprightChatMessageSystem());
@@ -106572,7 +106572,7 @@ focus outline in that case.
106572
106572
  <path class="nigel-chat-dark-0" d="M11.36,7.6l-.03.02c-1.12.61-2.04,1.53-2.65,2.65l-.02.03c-.1.18-.35.18-.45,0l-.02-.03c-.61-1.12-1.53-2.04-2.65-2.65l-.03-.02c-.18-.1-.18-.35,0-.45l.03-.02c1.12-.61,2.04-1.53,2.65-2.65l.02-.03c.1-.18.35-.18.45,0l.02.03c.61,1.12,1.53,2.04,2.65,2.65l.03.02c.18.1.18.35,0,.45Z"/>
106573
106573
  </svg>`;
106574
106574
 
106575
- const template$v = html `
106575
+ const template$w = html `
106576
106576
  <div class="icon light-icon" aria-hidden="true" :innerHTML="${() => nigelChatLightData}"></div>
106577
106577
  <div class="icon dark-icon" aria-hidden="true" :innerHTML="${() => nigelChatDarkData}"></div>
106578
106578
  `;
@@ -106601,7 +106601,7 @@ focus outline in that case.
106601
106601
  }
106602
106602
  const sprightIconNigelChat = IconNigelChat.compose({
106603
106603
  baseName: 'icon-nigel-chat',
106604
- template: template$v,
106604
+ template: template$w,
106605
106605
  styles: styles$t
106606
106606
  });
106607
106607
  DesignSystem.getOrCreate()
@@ -106609,7 +106609,7 @@ focus outline in that case.
106609
106609
  .register(sprightIconNigelChat());
106610
106610
  const iconNigelChatTag = 'spright-icon-nigel-chat';
106611
106611
 
106612
- const template$u = () => html `
106612
+ const template$v = () => html `
106613
106613
  <div class="container">
106614
106614
  <div class="brand-icon">
106615
106615
  <slot name="brand-icon">
@@ -106655,7 +106655,7 @@ focus outline in that case.
106655
106655
  ], ChatMessageWelcome.prototype, "subtitleIsEmpty", void 0);
106656
106656
  const sprightChatMessageWelcome = ChatMessageWelcome.compose({
106657
106657
  baseName: 'chat-message-welcome',
106658
- template: template$u,
106658
+ template: template$v,
106659
106659
  styles: styles$u
106660
106660
  });
106661
106661
  DesignSystem.getOrCreate().withPrefix('spright').register(sprightChatMessageWelcome());
@@ -106677,12 +106677,12 @@ focus outline in that case.
106677
106677
  */
106678
106678
  class IconBreakpointConditional extends Icon {
106679
106679
  }
106680
- const template$t = html `
106680
+ const template$u = html `
106681
106681
  <div class="icon" aria-hidden="true" :innerHTML="${() => iconData$6}"></div>
106682
106682
  `;
106683
106683
  const sprightIconBreakpointConditional = IconBreakpointConditional.compose({
106684
106684
  baseName: 'icon-breakpoint-conditional',
106685
- template: template$t,
106685
+ template: template$u,
106686
106686
  styles: styles$1A
106687
106687
  });
106688
106688
  DesignSystem.getOrCreate()
@@ -106708,12 +106708,12 @@ focus outline in that case.
106708
106708
  */
106709
106709
  class IconBreakpointDisabled extends Icon {
106710
106710
  }
106711
- const template$s = html `
106711
+ const template$t = html `
106712
106712
  <div class="icon" aria-hidden="true" :innerHTML="${() => iconData$5}"></div>
106713
106713
  `;
106714
106714
  const sprightIconBreakpointDisabled = IconBreakpointDisabled.compose({
106715
106715
  baseName: 'icon-breakpoint-disabled',
106716
- template: template$s,
106716
+ template: template$t,
106717
106717
  styles: styles$1A
106718
106718
  });
106719
106719
  DesignSystem.getOrCreate()
@@ -106738,12 +106738,12 @@ focus outline in that case.
106738
106738
  */
106739
106739
  class IconBreakpointEnabled extends Icon {
106740
106740
  }
106741
- const template$r = html `
106741
+ const template$s = html `
106742
106742
  <div class="icon" aria-hidden="true" :innerHTML="${() => iconData$4}"></div>
106743
106743
  `;
106744
106744
  const sprightIconBreakpointEnabled = IconBreakpointEnabled.compose({
106745
106745
  baseName: 'icon-breakpoint-enabled',
106746
- template: template$r,
106746
+ template: template$s,
106747
106747
  styles: styles$1A
106748
106748
  });
106749
106749
  DesignSystem.getOrCreate()
@@ -106768,12 +106768,12 @@ focus outline in that case.
106768
106768
  */
106769
106769
  class IconBreakpointExecutionPointer extends Icon {
106770
106770
  }
106771
- const template$q = html `
106771
+ const template$r = html `
106772
106772
  <div class="icon" aria-hidden="true" :innerHTML="${() => iconData$3}"></div>
106773
106773
  `;
106774
106774
  const sprightIconBreakpointExecutionPointer = IconBreakpointExecutionPointer.compose({
106775
106775
  baseName: 'icon-breakpoint-execution-pointer',
106776
- template: template$q,
106776
+ template: template$r,
106777
106777
  styles: styles$1A
106778
106778
  });
106779
106779
  DesignSystem.getOrCreate()
@@ -106802,12 +106802,12 @@ focus outline in that case.
106802
106802
  */
106803
106803
  class IconBreakpointHitDisabled extends Icon {
106804
106804
  }
106805
- const template$p = html `
106805
+ const template$q = html `
106806
106806
  <div class="icon" aria-hidden="true" :innerHTML="${() => iconData$2}"></div>
106807
106807
  `;
106808
106808
  const sprightIconBreakpointHitDisabled = IconBreakpointHitDisabled.compose({
106809
106809
  baseName: 'icon-breakpoint-hit-disabled',
106810
- template: template$p,
106810
+ template: template$q,
106811
106811
  styles: styles$1A
106812
106812
  });
106813
106813
  DesignSystem.getOrCreate()
@@ -106837,12 +106837,12 @@ focus outline in that case.
106837
106837
  */
106838
106838
  class IconBreakpointHit extends Icon {
106839
106839
  }
106840
- const template$o = html `
106840
+ const template$p = html `
106841
106841
  <div class="icon" aria-hidden="true" :innerHTML="${() => iconData$1}"></div>
106842
106842
  `;
106843
106843
  const sprightIconBreakpointHit = IconBreakpointHit.compose({
106844
106844
  baseName: 'icon-breakpoint-hit',
106845
- template: template$o,
106845
+ template: template$p,
106846
106846
  styles: styles$1A
106847
106847
  });
106848
106848
  DesignSystem.getOrCreate()
@@ -106868,12 +106868,12 @@ focus outline in that case.
106868
106868
  */
106869
106869
  class IconBreakpointHover extends Icon {
106870
106870
  }
106871
- const template$n = html `
106871
+ const template$o = html `
106872
106872
  <div class="icon" aria-hidden="true" :innerHTML="${() => iconData}"></div>
106873
106873
  `;
106874
106874
  const sprightIconBreakpointHover = IconBreakpointHover.compose({
106875
106875
  baseName: 'icon-breakpoint-hover',
106876
- template: template$n,
106876
+ template: template$o,
106877
106877
  styles: styles$1A
106878
106878
  });
106879
106879
  DesignSystem.getOrCreate()
@@ -106899,7 +106899,7 @@ focus outline in that case.
106899
106899
  }
106900
106900
  const sprightIconWorkItemCalendarWeek = IconWorkItemCalendarWeek.compose({
106901
106901
  baseName: 'icon-work-item-calendar-week',
106902
- template: template$1o,
106902
+ template: template$1p,
106903
106903
  styles: styles$s
106904
106904
  });
106905
106905
  DesignSystem.getOrCreate()
@@ -106924,7 +106924,7 @@ focus outline in that case.
106924
106924
  }
106925
106925
  const sprightIconWorkItemCalipers = IconWorkItemCalipers.compose({
106926
106926
  baseName: 'icon-work-item-calipers',
106927
- template: template$1o,
106927
+ template: template$1p,
106928
106928
  styles: styles$r
106929
106929
  });
106930
106930
  DesignSystem.getOrCreate()
@@ -106949,7 +106949,7 @@ focus outline in that case.
106949
106949
  }
106950
106950
  const sprightIconWorkItemForklift = IconWorkItemForklift.compose({
106951
106951
  baseName: 'icon-work-item-forklift',
106952
- template: template$1o,
106952
+ template: template$1p,
106953
106953
  styles: styles$q
106954
106954
  });
106955
106955
  DesignSystem.getOrCreate()
@@ -106974,7 +106974,7 @@ focus outline in that case.
106974
106974
  }
106975
106975
  const sprightIconWorkItemRectangleCheckLines = IconWorkItemRectangleCheckLines.compose({
106976
106976
  baseName: 'icon-work-item-rectangle-check-lines',
106977
- template: template$1o,
106977
+ template: template$1p,
106978
106978
  styles: styles$p
106979
106979
  });
106980
106980
  DesignSystem.getOrCreate()
@@ -106999,7 +106999,7 @@ focus outline in that case.
106999
106999
  }
107000
107000
  const sprightIconWorkItemSquareListCog = IconWorkItemSquareListCog.compose({
107001
107001
  baseName: 'icon-work-item-square-list-cog',
107002
- template: template$1o,
107002
+ template: template$1p,
107003
107003
  styles: styles$o
107004
107004
  });
107005
107005
  DesignSystem.getOrCreate()
@@ -107024,7 +107024,7 @@ focus outline in that case.
107024
107024
  }
107025
107025
  const sprightIconWorkItemUserHelmetSafety = IconWorkItemUserHelmetSafety.compose({
107026
107026
  baseName: 'icon-work-item-user-helmet-safety',
107027
- template: template$1o,
107027
+ template: template$1p,
107028
107028
  styles: styles$n
107029
107029
  });
107030
107030
  DesignSystem.getOrCreate()
@@ -107049,7 +107049,7 @@ focus outline in that case.
107049
107049
  }
107050
107050
  const sprightIconWorkItemWrenchHammer = IconWorkItemWrenchHammer.compose({
107051
107051
  baseName: 'icon-work-item-wrench-hammer',
107052
- template: template$1o,
107052
+ template: template$1p,
107053
107053
  styles: styles$m
107054
107054
  });
107055
107055
  DesignSystem.getOrCreate()
@@ -107108,7 +107108,7 @@ focus outline in that case.
107108
107108
  }
107109
107109
  `;
107110
107110
 
107111
- const template$m = html `<slot></slot>`;
107111
+ const template$n = html `<slot></slot>`;
107112
107112
 
107113
107113
  /**
107114
107114
  * A Spright demo component (not for production use)
@@ -107117,7 +107117,7 @@ focus outline in that case.
107117
107117
  }
107118
107118
  const sprightRectangle = Rectangle.compose({
107119
107119
  baseName: 'rectangle',
107120
- template: template$m,
107120
+ template: template$n,
107121
107121
  styles: styles$l
107122
107122
  });
107123
107123
  DesignSystem.getOrCreate().withPrefix('spright').register(sprightRectangle());
@@ -107251,7 +107251,7 @@ focus outline in that case.
107251
107251
  }
107252
107252
  `));
107253
107253
 
107254
- const template$l = html `
107254
+ const template$m = html `
107255
107255
  <details
107256
107256
  class="accordion-item-details"
107257
107257
  ?open="${x => x.expanded}"
@@ -107302,7 +107302,7 @@ focus outline in that case.
107302
107302
  ], FvAccordionItem.prototype, "appearance", void 0);
107303
107303
  const okFvAccordionItem = FvAccordionItem.compose({
107304
107304
  baseName: 'fv-accordion-item',
107305
- template: template$l,
107305
+ template: template$m,
107306
107306
  styles: styles$k
107307
107307
  });
107308
107308
  DesignSystem.getOrCreate()
@@ -107669,7 +107669,7 @@ focus outline in that case.
107669
107669
  </div>
107670
107670
  </div>
107671
107671
  `;
107672
- const template$k = html `
107672
+ const template$l = html `
107673
107673
  ${when(x => x.interactionMode === FvCardInteractionMode.card, html `
107674
107674
  <${cardButtonTag}
107675
107675
  class="card-shell card-button-shell"
@@ -107817,7 +107817,7 @@ focus outline in that case.
107817
107817
  ], FvCard.prototype, "hasFooterEndContent", void 0);
107818
107818
  const okFvCard = FvCard.compose({
107819
107819
  baseName: 'fv-card',
107820
- template: template$k,
107820
+ template: template$l,
107821
107821
  styles: styles$j
107822
107822
  });
107823
107823
  DesignSystem.getOrCreate()
@@ -107904,7 +107904,7 @@ focus outline in that case.
107904
107904
  }
107905
107905
  `;
107906
107906
 
107907
- const template$j = html `
107907
+ const template$k = html `
107908
107908
  <div class="field">
107909
107909
  <span class="marker" aria-hidden="true"></span>
107910
107910
  <div class="content">
@@ -108050,7 +108050,7 @@ focus outline in that case.
108050
108050
  ], FvBulkEditField.prototype, "controls", void 0);
108051
108051
  const okFvBulkEditField = FvBulkEditField.compose({
108052
108052
  baseName: 'fv-bulk-edit-field',
108053
- template: template$j,
108053
+ template: template$k,
108054
108054
  styles: styles$i
108055
108055
  });
108056
108056
  DesignSystem.getOrCreate().withPrefix('ok').register(okFvBulkEditField());
@@ -108303,7 +108303,7 @@ focus outline in that case.
108303
108303
  @layer top {}
108304
108304
  `;
108305
108305
 
108306
- const template$i = html `
108306
+ const template$j = html `
108307
108307
  <div class="chip-selector">
108308
108308
  ${when(x => x.label.length > 0, html `
108309
108309
  <label id="${x => x.labelId}" class="label" for="${x => x.inputId}">
@@ -108793,7 +108793,7 @@ focus outline in that case.
108793
108793
  ], FvChipSelector.prototype, "field", void 0);
108794
108794
  const okFvChipSelector = FvChipSelector.compose({
108795
108795
  baseName: 'fv-chip-selector',
108796
- template: template$i,
108796
+ template: template$j,
108797
108797
  styles: styles$h
108798
108798
  });
108799
108799
  DesignSystem.getOrCreate().withPrefix('ok').register(okFvChipSelector());
@@ -108850,7 +108850,7 @@ focus outline in that case.
108850
108850
  @layer top {}
108851
108851
  `;
108852
108852
 
108853
- const template$h = html `
108853
+ const template$i = html `
108854
108854
  <button
108855
108855
  id="${x => x.tooltipAnchorId}"
108856
108856
  class="context-help-trigger"
@@ -108898,7 +108898,7 @@ focus outline in that case.
108898
108898
  ], FvContextHelp.prototype, "iconVisible", void 0);
108899
108899
  const okFvContextHelp = FvContextHelp.compose({
108900
108900
  baseName: 'fv-context-help',
108901
- template: template$h,
108901
+ template: template$i,
108902
108902
  styles: styles$g
108903
108903
  });
108904
108904
  DesignSystem.getOrCreate().withPrefix('ok').register(okFvContextHelp());
@@ -108965,7 +108965,7 @@ focus outline in that case.
108965
108965
  }
108966
108966
  `;
108967
108967
 
108968
- const template$g = html `
108968
+ const template$h = html `
108969
108969
  ${when(x => x.message !== undefined, html `
108970
108970
  <${bannerTag}
108971
108971
  :open="${x => x.message !== undefined}"
@@ -109086,7 +109086,7 @@ focus outline in that case.
109086
109086
  ], FvEditCommitBar.prototype, "summary", null);
109087
109087
  const okFvEditCommitBar = FvEditCommitBar.compose({
109088
109088
  baseName: 'fv-edit-commit-bar',
109089
- template: template$g,
109089
+ template: template$h,
109090
109090
  styles: styles$f
109091
109091
  });
109092
109092
  DesignSystem.getOrCreate().withPrefix('ok').register(okFvEditCommitBar());
@@ -109208,7 +109208,7 @@ focus outline in that case.
109208
109208
  `;
109209
109209
 
109210
109210
  const queryTokenTemplate = html `${when(x => x.kind === 'predicate', html `<span class="query-expression"><b>${x => (x.kind === 'predicate' ? x.field : '')}</b> ${x => (x.kind === 'predicate' ? x.operator : '')}<b>${x => (x.kind === 'predicate' ? x.value : '')}</b></span>`)}${when(x => x.kind === 'logic', html `<span class="logical-operator">${x => (x.kind === 'logic' ? x.text : '')}</span>`)}${when(x => x.kind === 'group', html `<span class="compound-expression-container">${x => (x.kind === 'group' ? x.text : '')}</span>`)}`;
109211
- const template$f = html `
109211
+ const template$g = html `
109212
109212
  <div class="filter-bar" role="group" aria-label="${x => x.label}">
109213
109213
  <button
109214
109214
  ${ref('editButton')}
@@ -109347,7 +109347,7 @@ focus outline in that case.
109347
109347
  ], FvFilterBar.prototype, "queryTokens", null);
109348
109348
  const okFvFilterBar = FvFilterBar.compose({
109349
109349
  baseName: 'fv-filter-bar',
109350
- template: template$f,
109350
+ template: template$g,
109351
109351
  styles: styles$e
109352
109352
  });
109353
109353
  DesignSystem.getOrCreate().withPrefix('ok').register(okFvFilterBar());
@@ -109449,7 +109449,7 @@ focus outline in that case.
109449
109449
  }
109450
109450
  `;
109451
109451
 
109452
- const template$e = html `
109452
+ const template$f = html `
109453
109453
  <div class="item" part="item">
109454
109454
  <div class="text" part="text">
109455
109455
  <div class="title" part="title">${x => x.titleText}</div>
@@ -109550,7 +109550,7 @@ focus outline in that case.
109550
109550
  ], FvMasterDetailListItem.prototype, "hasStatusSlotContent", void 0);
109551
109551
  const okFvMasterDetailListItem = FvMasterDetailListItem.compose({
109552
109552
  baseName: 'fv-master-detail-list-item',
109553
- template: template$e,
109553
+ template: template$f,
109554
109554
  styles: styles$d
109555
109555
  });
109556
109556
  DesignSystem.getOrCreate().withPrefix('ok').register(okFvMasterDetailListItem());
@@ -109621,7 +109621,7 @@ focus outline in that case.
109621
109621
  }
109622
109622
  `;
109623
109623
 
109624
- const template$d = html `
109624
+ const template$e = html `
109625
109625
  <div class="master-detail-list">
109626
109626
  <div class="filter-row">
109627
109627
  <input
@@ -109815,7 +109815,7 @@ focus outline in that case.
109815
109815
  ], FvMasterDetailList.prototype, "items", void 0);
109816
109816
  const okFvMasterDetailList = FvMasterDetailList.compose({
109817
109817
  baseName: 'fv-master-detail-list',
109818
- template: template$d,
109818
+ template: template$e,
109819
109819
  styles: styles$c,
109820
109820
  shadowOptions: {
109821
109821
  delegatesFocus: true
@@ -109824,6 +109824,777 @@ focus outline in that case.
109824
109824
  DesignSystem.getOrCreate().withPrefix('ok').register(okFvMasterDetailList());
109825
109825
 
109826
109826
  const styles$b = css `
109827
+ ${display('inline-block')}
109828
+
109829
+ :host {
109830
+ width: 300px;
109831
+ max-width: 100%;
109832
+ font: ${bodyFont};
109833
+ color: ${bodyFontColor};
109834
+ }
109835
+
109836
+ .label {
109837
+ display: block;
109838
+ margin-bottom: ${smallPadding};
109839
+ font: ${controlLabelFont};
109840
+ color: ${controlLabelFontColor};
109841
+ }
109842
+
109843
+ .control-field {
109844
+ position: relative;
109845
+ display: flex;
109846
+ align-items: center;
109847
+ gap: ${smallPadding};
109848
+ width: 100%;
109849
+ height: ${controlHeight};
109850
+ box-sizing: border-box;
109851
+ padding: 0 ${standardPadding};
109852
+ border: ${borderWidth} solid transparent;
109853
+ border-bottom-color: rgba(${borderRgbPartialColor}, 0.3);
109854
+ border-radius: 0;
109855
+ font: inherit;
109856
+ color: inherit;
109857
+ background: transparent;
109858
+ text-align: start;
109859
+ cursor: pointer;
109860
+ }
109861
+
109862
+ .control {
109863
+ display: flex;
109864
+ align-items: center;
109865
+ flex: 1;
109866
+ min-width: 0;
109867
+ height: 100%;
109868
+ padding: 0;
109869
+ border: none;
109870
+ font: inherit;
109871
+ color: inherit;
109872
+ background: transparent;
109873
+ text-align: start;
109874
+ cursor: inherit;
109875
+ outline: none;
109876
+ }
109877
+
109878
+ .clear-button {
109879
+ flex: none;
109880
+ height: ${controlSlimHeight};
109881
+ }
109882
+
109883
+ :host([appearance='outline']) .control-field {
109884
+ border-color: rgba(${borderRgbPartialColor}, 0.3);
109885
+ }
109886
+
109887
+ :host([appearance='block']) .control-field {
109888
+ background: rgba(${borderRgbPartialColor}, 0.1);
109889
+ border-color: transparent;
109890
+ }
109891
+
109892
+ :host([appearance='frameless']) .control-field {
109893
+ border-color: transparent;
109894
+ }
109895
+
109896
+ :host([open]:not(:hover)) .control-field {
109897
+ border-bottom-color: ${borderHoverColor};
109898
+ }
109899
+
109900
+ .control-field::before,
109901
+ .control-field::after {
109902
+ content: '';
109903
+ position: absolute;
109904
+ left: 50%;
109905
+ transform: translateX(-50%);
109906
+ width: 0;
109907
+ height: 0;
109908
+ pointer-events: none;
109909
+ transition: width ${smallDelay} ease-in;
109910
+ }
109911
+
109912
+ .control-field::before {
109913
+ bottom: calc(${borderWidth} + 1px);
109914
+ border-bottom: 1px solid ${borderHoverColor};
109915
+ }
109916
+
109917
+ .control-field::after {
109918
+ bottom: calc(-1 * ${borderWidth});
109919
+ border-bottom: calc(${borderWidth} + 1px) solid ${borderHoverColor};
109920
+ }
109921
+
109922
+ :host(:not([disabled], :disabled)) .control-field:has(.control${focusVisible})::before {
109923
+ width: calc(100% - 8px);
109924
+ }
109925
+
109926
+ :host(:not([disabled], :disabled)) .control-field:hover::after,
109927
+ :host(:not([disabled], :disabled)) .control-field:has(.control${focusVisible})::after {
109928
+ width: 100%;
109929
+ }
109930
+
109931
+ @media (prefers-reduced-motion) {
109932
+ .control-field::before,
109933
+ .control-field::after {
109934
+ transition-duration: 0s;
109935
+ }
109936
+ }
109937
+
109938
+ .selected-value {
109939
+ flex: 1;
109940
+ min-width: 0;
109941
+ overflow: hidden;
109942
+ text-overflow: ellipsis;
109943
+ white-space: nowrap;
109944
+ }
109945
+
109946
+ .placeholder,
109947
+ .empty {
109948
+ color: ${placeholderFontColor};
109949
+ }
109950
+
109951
+ .anchored-region.bottom {
109952
+ padding-top: ${smallPadding};
109953
+ }
109954
+
109955
+ .anchored-region.top {
109956
+ padding-bottom: ${smallPadding};
109957
+ }
109958
+
109959
+ .popup {
109960
+ display: flex;
109961
+ flex-direction: column;
109962
+ width: 100%;
109963
+ max-height: max(0px, calc(var(--ok-fv-multi-select-available-height, 100vh) - ${smallPadding}));
109964
+ box-sizing: border-box;
109965
+ border: ${borderWidth} solid ${popupBorderColor};
109966
+ background: ${applicationBackgroundColor};
109967
+ box-shadow: ${elevation2BoxShadow};
109968
+ }
109969
+
109970
+ .filter-field {
109971
+ flex-shrink: 0;
109972
+ display: flex;
109973
+ align-items: center;
109974
+ height: ${controlHeight};
109975
+ background: transparent;
109976
+ box-shadow: 0 2px rgba(${borderRgbPartialColor}, 0.1);
109977
+ }
109978
+
109979
+ .filter-icon {
109980
+ flex-shrink: 0;
109981
+ margin-left: ${smallPadding};
109982
+ ${iconColor.cssCustomProperty}: ${placeholderFontColor};
109983
+ }
109984
+
109985
+ .filter-input {
109986
+ width: 100%;
109987
+ min-width: 0;
109988
+ height: ${controlHeight};
109989
+ padding: 0 ${smallPadding} 0 ${mediumPadding};
109990
+ border: none;
109991
+ outline: none;
109992
+ font: inherit;
109993
+ color: inherit;
109994
+ background: transparent;
109995
+ }
109996
+
109997
+ .filter-input::placeholder {
109998
+ color: ${placeholderFontColor};
109999
+ }
110000
+
110001
+ .listbox {
110002
+ min-height: 0;
110003
+ max-height: 240px;
110004
+ overflow-y: auto;
110005
+ outline: none;
110006
+ }
110007
+
110008
+ .option {
110009
+ display: flex;
110010
+ align-items: center;
110011
+ gap: ${smallPadding};
110012
+ min-height: ${controlHeight};
110013
+ padding: 0 ${standardPadding};
110014
+ cursor: pointer;
110015
+ }
110016
+
110017
+ .option-label {
110018
+ overflow: hidden;
110019
+ text-overflow: ellipsis;
110020
+ white-space: nowrap;
110021
+ }
110022
+
110023
+ .option nimble-checkbox {
110024
+ flex: none;
110025
+ pointer-events: none;
110026
+ }
110027
+
110028
+ .option:not([aria-disabled='true']):hover {
110029
+ background: ${fillHoverColor};
110030
+ }
110031
+
110032
+ .keyboard-navigation .option.active {
110033
+ background: ${fillSelectedColor};
110034
+ }
110035
+
110036
+ .keyboard-navigation .option.active:hover {
110037
+ background: ${fillHoverSelectedColor};
110038
+ }
110039
+
110040
+ :host(:is([disabled], :disabled)) .control-field,
110041
+ :host(:is([disabled], :disabled)) .label,
110042
+ .option[aria-disabled='true'] {
110043
+ color: ${bodyDisabledFontColor};
110044
+ cursor: default;
110045
+ }
110046
+
110047
+ :host(:is([disabled], :disabled)) .control-field {
110048
+ ${iconColor.cssCustomProperty}: ${bodyDisabledFontColor};
110049
+ }
110050
+
110051
+ .empty {
110052
+ flex-shrink: 0;
110053
+ padding: ${standardPadding};
110054
+ }
110055
+ `.withBehaviors(themeBehavior(Theme.color, css `
110056
+ .filter-field {
110057
+ background: rgba(255, 255, 255, 0.15);
110058
+ }
110059
+ `));
110060
+
110061
+ const template$d = html `
110062
+ <template
110063
+ @focusout="${(x, c) => x.handleFocusout(c.event)}"
110064
+ @click="${(x, c) => {
110065
+ if (c.event.composedPath()[0] === x && !x.effectiveDisabled) {
110066
+ x.control.focus();
110067
+ }
110068
+ return true;
110069
+ }}"
110070
+ >
110071
+ ${when(x => x.label.length > 0, html `
110072
+ <label class="label" id="${x => `${x.controlId}-label`}" for="${x => x.controlId}">${x => x.label}</label>
110073
+ `)}
110074
+ <div ${ref('controlField')} class="control-field"
110075
+ @keypress="${(_, c) => {
110076
+ c.event.stopPropagation();
110077
+ return true;
110078
+ }}"
110079
+ @click="${x => {
110080
+ x.open = !x.open;
110081
+ }}"
110082
+ @pointerdown="${x => {
110083
+ x.keyboardNavigation = false;
110084
+ return true;
110085
+ }}">
110086
+ <button
110087
+ ${ref('control')}
110088
+ id="${x => x.controlId}"
110089
+ class="control"
110090
+ part="control"
110091
+ type="button"
110092
+ ?disabled="${x => x.effectiveDisabled}"
110093
+ aria-labelledby="${x => `${x.label ? `${x.controlId}-label ` : ''}${x.controlId}-value`}"
110094
+ aria-haspopup="listbox"
110095
+ aria-expanded="${x => x.open}"
110096
+ aria-controls="${x => x.listboxId}"
110097
+ @keydown="${(x, c) => x.handleControlKeydown(c.event)}"
110098
+ >
110099
+ <span class="selected-value ${x => (x.selectedValues.length === 0 ? 'placeholder' : '')}"
110100
+ id="${x => `${x.controlId}-value`}"
110101
+ part="selected-value" title="${x => x.displayValue || null}">
110102
+ ${x => x.displayValue || x.placeholder}
110103
+ </span>
110104
+ </button>
110105
+ ${when(x => x.clearable && !x.effectiveDisabled && x.selectedValues.length > 0, html `
110106
+ <${buttonTag}
110107
+ class="clear-button"
110108
+ part="clear-button"
110109
+ tabindex="-1"
110110
+ appearance="ghost"
110111
+ content-hidden
110112
+ aria-label="Clear selection"
110113
+ @click="${(x, c) => {
110114
+ c.event.stopPropagation();
110115
+ x.clearSelection();
110116
+ }}"
110117
+ >
110118
+ <${iconTimesTag} slot="start"></${iconTimesTag}>
110119
+ </${buttonTag}>
110120
+ `)}
110121
+ <${iconArrowExpanderDownTag} aria-hidden="true"></${iconArrowExpanderDownTag}>
110122
+ </div>
110123
+ <${anchoredRegionTag}
110124
+ ${ref('region')}
110125
+ class="anchored-region"
110126
+ fixed-placement
110127
+ auto-update-mode="auto"
110128
+ vertical-default-position="bottom"
110129
+ vertical-positioning-mode="dynamic"
110130
+ horizontal-default-position="center"
110131
+ horizontal-positioning-mode="locktodefault"
110132
+ horizontal-scaling="anchor"
110133
+ ?hidden="${x => !x.open}"
110134
+ @loaded="${x => x.focusPopup()}"
110135
+ >
110136
+ <div class="popup ${x => (x.keyboardNavigation ? 'keyboard-navigation' : '')}"
110137
+ @keypress="${(_, c) => {
110138
+ c.event.stopPropagation();
110139
+ return true;
110140
+ }}"
110141
+ @pointerdown="${x => {
110142
+ x.keyboardNavigation = false;
110143
+ return true;
110144
+ }}"
110145
+ @keydown="${(x, c) => x.handlePopupKeydown(c.event)}">
110146
+ ${when(x => x.filterable, html `
110147
+ <div class="filter-field">
110148
+ <${iconMagnifyingGlassTag} class="filter-icon" aria-hidden="true"></${iconMagnifyingGlassTag}>
110149
+ <input
110150
+ ${ref('filterInput')}
110151
+ class="filter-input"
110152
+ type="text"
110153
+ role="combobox"
110154
+ autocomplete="off"
110155
+ aria-autocomplete="list"
110156
+ aria-expanded="${x => x.open}"
110157
+ aria-controls="${x => x.listboxId}"
110158
+ aria-activedescendant="${x => x.activeOptionId}"
110159
+ aria-label="${x => filterSearchLabel.getValueFor(x)}"
110160
+ placeholder="${x => filterSearchLabel.getValueFor(x)}"
110161
+ :value="${x => x.filter}"
110162
+ @input="${(x, c) => {
110163
+ x.handleInput(c.event);
110164
+ return true;
110165
+ }}"
110166
+ @change="${(_, c) => {
110167
+ c.event.stopPropagation();
110168
+ return true;
110169
+ }}"
110170
+ />
110171
+ </div>
110172
+ `)}
110173
+ <div ${ref('listbox')}
110174
+ id="${x => x.listboxId}"
110175
+ class="listbox"
110176
+ part="listbox"
110177
+ role="listbox"
110178
+ aria-label="${x => x.label || x.placeholder || null}"
110179
+ aria-multiselectable="true"
110180
+ aria-required="${x => x.required}"
110181
+ aria-activedescendant="${x => (!x.filterable ? x.activeOptionId : null)}"
110182
+ tabindex="${x => (x.filterable ? '-1' : '0')}"
110183
+ >
110184
+ ${repeat(x => x.visibleOptions, html `
110185
+ <div
110186
+ id="${(_, c) => `${c.parent.listboxId}-${c.index}`}"
110187
+ class="option ${(_, c) => (c.parent.activeIndex === c.index ? 'active' : '')}"
110188
+ part="option"
110189
+ role="option"
110190
+ aria-selected="${(x, c) => c.parent.selectedValues.includes(x.value)}"
110191
+ aria-disabled="${x => !!x.disabled}"
110192
+ @mousedown="${() => false}"
110193
+ @click="${(x, c) => {
110194
+ if (!x.disabled) {
110195
+ c.parent.keyboardNavigation = false;
110196
+ c.parent.activeIndex = c.index;
110197
+ c.parent.toggleOption(x);
110198
+ }
110199
+ }}"
110200
+ >
110201
+ <${checkboxTag}
110202
+ inert
110203
+ aria-hidden="true"
110204
+ tabindex="-1"
110205
+ :checked="${(x, c) => c.parent.selectedValues.includes(x.value)}"
110206
+ ?disabled="${x => !!x.disabled}"
110207
+ @change="${(_, c) => {
110208
+ c.event.stopPropagation();
110209
+ return true;
110210
+ }}"
110211
+ ></${checkboxTag}>
110212
+ <span class="option-label" title="${x => x.label}">${x => x.label}</span>
110213
+ </div>
110214
+ `, { positioning: true })}
110215
+ </div>
110216
+ ${when(x => x.visibleOptions.length === 0, html `
110217
+ <div class="empty" role="status">${x => filterNoResultsLabel.getValueFor(x)}</div>
110218
+ `)}
110219
+ </div>
110220
+ </${anchoredRegionTag}>
110221
+ </template>
110222
+ `;
110223
+
110224
+ /* eslint-disable max-classes-per-file */
110225
+ // eslint-disable-next-line jsdoc/require-jsdoc
110226
+ class MultiSelect extends FoundationElement {
110227
+ }
110228
+ /**
110229
+ * Form-associated base with a native multiple-select proxy.
110230
+ * @internal
110231
+ */
110232
+ class FormAssociatedMultiSelect extends FormAssociated(MultiSelect) {
110233
+ constructor() {
110234
+ super(...arguments);
110235
+ this.proxy = Object.assign(document.createElement('select'), { multiple: true });
110236
+ }
110237
+ }
110238
+ /* eslint-enable max-classes-per-file */
110239
+
110240
+ /**
110241
+ * A dropdown with checkbox options and optional local search.
110242
+ */
110243
+ class FvMultiSelect extends FormAssociatedMultiSelect {
110244
+ constructor() {
110245
+ super(...arguments);
110246
+ this.appearance = DropdownAppearance.underline;
110247
+ this.label = '';
110248
+ this.placeholder = '';
110249
+ this.filterable = false;
110250
+ this.clearable = false;
110251
+ this.open = false;
110252
+ this.options = [];
110253
+ this.selectedValues = [];
110254
+ /** @internal */
110255
+ this.filter = '';
110256
+ /** @internal */
110257
+ this.activeIndex = -1;
110258
+ /** @internal */
110259
+ this.keyboardNavigation = false;
110260
+ /** @internal */
110261
+ this.controlId = uniqueId('ok-fv-multi-select-');
110262
+ /** @internal */
110263
+ this.listboxId = `${this.controlId}-listbox`;
110264
+ /** @internal */
110265
+ this.formDisabled = false;
110266
+ this.updatePopupLayout = () => {
110267
+ if (this.open && this.isConnected) {
110268
+ const bounds = this.controlField.getBoundingClientRect();
110269
+ const availableHeight = Math.max(0, bounds.top, window.innerHeight - bounds.bottom);
110270
+ this.style.setProperty('--ok-fv-multi-select-available-height', `${availableHeight}px`);
110271
+ this.region.update();
110272
+ }
110273
+ };
110274
+ this.documentClickHandler = (event) => {
110275
+ if (this.open && !event.composedPath().includes(this)) {
110276
+ this.open = false;
110277
+ }
110278
+ };
110279
+ }
110280
+ /** @internal */
110281
+ get effectiveDisabled() {
110282
+ return this.disabled || this.formDisabled;
110283
+ }
110284
+ /** @internal */
110285
+ get visibleOptions() {
110286
+ const filter = diacriticInsensitiveStringNormalizer(this.filter);
110287
+ return this.options.filter(option => !this.filterable
110288
+ || diacriticInsensitiveStringNormalizer(option.label).includes(filter));
110289
+ }
110290
+ /** @internal */
110291
+ get displayValue() {
110292
+ return this.selectedValues
110293
+ .map(value => this.options.find(option => option.value === value)?.label ?? value)
110294
+ .join(', ');
110295
+ }
110296
+ /** @internal */
110297
+ get activeOptionId() {
110298
+ return this.open && this.activeIndex >= 0
110299
+ ? `${this.listboxId}-${this.activeIndex}`
110300
+ : null;
110301
+ }
110302
+ /** @internal */
110303
+ connectedCallback() {
110304
+ this.initialSelectedValues ?? (this.initialSelectedValues = [...this.selectedValues]);
110305
+ super.connectedCallback();
110306
+ this.syncFormValue();
110307
+ document.addEventListener('click', this.documentClickHandler);
110308
+ window.addEventListener('resize', this.updatePopupLayout);
110309
+ window.addEventListener('scroll', this.updatePopupLayout, true);
110310
+ this.resetActiveOption();
110311
+ if (this.open) {
110312
+ void this.openChanged();
110313
+ }
110314
+ }
110315
+ /** @internal */
110316
+ disconnectedCallback() {
110317
+ document.removeEventListener('click', this.documentClickHandler);
110318
+ window.removeEventListener('resize', this.updatePopupLayout);
110319
+ window.removeEventListener('scroll', this.updatePopupLayout, true);
110320
+ super.disconnectedCallback();
110321
+ }
110322
+ /** @internal */
110323
+ disabledChanged(previous, next) {
110324
+ super.disabledChanged?.(previous, next);
110325
+ if (this.disabled) {
110326
+ this.open = false;
110327
+ }
110328
+ this.syncFormValue();
110329
+ }
110330
+ /** @internal */
110331
+ formDisabledCallback(disabled) {
110332
+ this.formDisabled = disabled;
110333
+ if (disabled) {
110334
+ this.open = false;
110335
+ }
110336
+ this.syncFormValue();
110337
+ }
110338
+ /** @internal */
110339
+ selectedValuesChanged() {
110340
+ this.syncFormValue();
110341
+ }
110342
+ /** @internal */
110343
+ nameChanged(previous, next) {
110344
+ super.nameChanged?.(previous, next);
110345
+ this.syncFormValue();
110346
+ }
110347
+ /** @internal */
110348
+ valueChanged() {
110349
+ this.syncFormValue();
110350
+ }
110351
+ /** @internal */
110352
+ validate() {
110353
+ if (this.effectiveDisabled) {
110354
+ this.setValidity({});
110355
+ }
110356
+ else {
110357
+ super.validate(this.control);
110358
+ }
110359
+ }
110360
+ /** @internal */
110361
+ formResetCallback() {
110362
+ this.open = false;
110363
+ this.selectedValues = [...(this.initialSelectedValues ?? [])];
110364
+ }
110365
+ /** @internal */
110366
+ async openChanged() {
110367
+ if (this.open && this.effectiveDisabled) {
110368
+ this.open = false;
110369
+ return;
110370
+ }
110371
+ if (!this.open) {
110372
+ if (this.$fastController.isConnected) {
110373
+ // Rebinding on opening waits for a fresh anchored-region layout.
110374
+ this.region.anchorElement = null;
110375
+ }
110376
+ this.filter = '';
110377
+ this.activeIndex = -1;
110378
+ this.keyboardNavigation = false;
110379
+ return;
110380
+ }
110381
+ if (!this.$fastController.isConnected) {
110382
+ return;
110383
+ }
110384
+ this.region.anchorElement = this.controlField;
110385
+ this.updatePopupLayout();
110386
+ this.resetActiveOption();
110387
+ await DOM.nextUpdate();
110388
+ this.focusPopup();
110389
+ }
110390
+ /** @internal */
110391
+ focusPopup() {
110392
+ if (this.open && this.isConnected) {
110393
+ (this.filterable ? this.filterInput : this.listbox)?.focus();
110394
+ this.scrollActiveOptionIntoView();
110395
+ }
110396
+ }
110397
+ /** @internal */
110398
+ optionsChanged() {
110399
+ this.resetActiveOption();
110400
+ }
110401
+ /** @internal */
110402
+ filterChanged() {
110403
+ this.resetActiveOption();
110404
+ }
110405
+ /** @internal */
110406
+ async filterableChanged() {
110407
+ this.filter = '';
110408
+ if (this.open) {
110409
+ this.resetActiveOption();
110410
+ if (!this.filterable) {
110411
+ this.listbox?.focus();
110412
+ return;
110413
+ }
110414
+ await DOM.nextUpdate();
110415
+ this.focusPopup();
110416
+ }
110417
+ }
110418
+ /** @internal */
110419
+ toggleOption(option) {
110420
+ if (this.effectiveDisabled || option.disabled) {
110421
+ return;
110422
+ }
110423
+ this.selectedValues = this.selectedValues.includes(option.value)
110424
+ ? this.selectedValues.filter(value => value !== option.value)
110425
+ : [...this.selectedValues, option.value];
110426
+ this.$emit('input');
110427
+ this.$emit('change');
110428
+ }
110429
+ /** @internal */
110430
+ clearSelection() {
110431
+ if (this.effectiveDisabled || !this.clearable || this.selectedValues.length === 0) {
110432
+ return;
110433
+ }
110434
+ this.open = false;
110435
+ this.selectedValues = [];
110436
+ this.control.focus();
110437
+ this.$emit('input');
110438
+ this.$emit('change');
110439
+ }
110440
+ /** @internal */
110441
+ handleInput(event) {
110442
+ this.filter = event.target.value;
110443
+ event.stopPropagation();
110444
+ }
110445
+ /** @internal */
110446
+ handleControlKeydown(event) {
110447
+ this.keyboardNavigation = true;
110448
+ if (event.key === 'Escape' && !this.open) {
110449
+ this.clearSelection();
110450
+ }
110451
+ if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {
110452
+ this.open = !this.effectiveDisabled;
110453
+ if (event.key === 'ArrowUp') {
110454
+ this.moveActiveOption(-1, true);
110455
+ }
110456
+ return false;
110457
+ }
110458
+ return true;
110459
+ }
110460
+ /** @internal */
110461
+ handlePopupKeydown(event) {
110462
+ if (event.isComposing) {
110463
+ return true;
110464
+ }
110465
+ if (event.key === 'Escape' || event.key === 'Tab') {
110466
+ this.open = false;
110467
+ // Hide the popup before the browser chooses the next native Tab stop.
110468
+ DOM.processUpdates();
110469
+ this.control.focus();
110470
+ return event.key === 'Tab';
110471
+ }
110472
+ if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {
110473
+ this.keyboardNavigation = true;
110474
+ this.moveActiveOption(event.key === 'ArrowDown' ? 1 : -1);
110475
+ return false;
110476
+ }
110477
+ const inSearch = event.target === this.filterInput;
110478
+ if (!inSearch && (event.key === 'Home' || event.key === 'End')) {
110479
+ this.keyboardNavigation = true;
110480
+ this.moveActiveOption(event.key === 'Home' ? 1 : -1, true);
110481
+ return false;
110482
+ }
110483
+ if (event.key === 'Enter' || (!inSearch && event.key === ' ')) {
110484
+ const option = this.visibleOptions[this.activeIndex];
110485
+ if (option) {
110486
+ this.toggleOption(option);
110487
+ }
110488
+ return false;
110489
+ }
110490
+ return true;
110491
+ }
110492
+ /** @internal */
110493
+ handleFocusout(event) {
110494
+ const next = event.relatedTarget;
110495
+ if (!(next instanceof Node)
110496
+ || (!this.contains(next) && !this.shadowRoot?.contains(next))) {
110497
+ this.open = false;
110498
+ }
110499
+ }
110500
+ resetActiveOption() {
110501
+ if (this.$fastController.isConnected) {
110502
+ this.activeIndex = this.visibleOptions.findIndex(option => !option.disabled);
110503
+ this.scrollActiveOptionIntoView();
110504
+ }
110505
+ }
110506
+ scrollActiveOptionIntoView() {
110507
+ requestAnimationFrame(() => {
110508
+ if (this.open && this.isConnected) {
110509
+ this.shadowRoot?.getElementById(this.activeOptionId ?? '')?.scrollIntoView({ block: 'nearest' });
110510
+ }
110511
+ });
110512
+ }
110513
+ syncFormValue() {
110514
+ if (!this.$fastController.isConnected) {
110515
+ return;
110516
+ }
110517
+ this.proxy.required = this.required;
110518
+ this.proxy.disabled = this.effectiveDisabled;
110519
+ this.proxy.replaceChildren(...this.selectedValues.map(value => new Option(value, value, false, true)));
110520
+ const data = new FormData();
110521
+ if (this.name) {
110522
+ for (const value of this.selectedValues) {
110523
+ data.append(this.name, value);
110524
+ }
110525
+ }
110526
+ this.setFormValue(this.effectiveDisabled ? null : data);
110527
+ this.validate();
110528
+ }
110529
+ moveActiveOption(direction, fromEdge = false) {
110530
+ const options = this.visibleOptions;
110531
+ let index = this.activeIndex;
110532
+ if (fromEdge) {
110533
+ index = direction > 0 ? -1 : options.length;
110534
+ }
110535
+ for (index += direction; index >= 0 && index < options.length; index += direction) {
110536
+ if (!options[index].disabled) {
110537
+ this.activeIndex = index;
110538
+ this.scrollActiveOptionIntoView();
110539
+ break;
110540
+ }
110541
+ }
110542
+ }
110543
+ }
110544
+ __decorate([
110545
+ attr
110546
+ ], FvMultiSelect.prototype, "appearance", void 0);
110547
+ __decorate([
110548
+ attr
110549
+ ], FvMultiSelect.prototype, "label", void 0);
110550
+ __decorate([
110551
+ attr
110552
+ ], FvMultiSelect.prototype, "placeholder", void 0);
110553
+ __decorate([
110554
+ attr({ mode: 'boolean' })
110555
+ ], FvMultiSelect.prototype, "filterable", void 0);
110556
+ __decorate([
110557
+ attr({ mode: 'boolean' })
110558
+ ], FvMultiSelect.prototype, "clearable", void 0);
110559
+ __decorate([
110560
+ attr({ mode: 'boolean' })
110561
+ ], FvMultiSelect.prototype, "open", void 0);
110562
+ __decorate([
110563
+ observable
110564
+ ], FvMultiSelect.prototype, "options", void 0);
110565
+ __decorate([
110566
+ observable
110567
+ ], FvMultiSelect.prototype, "selectedValues", void 0);
110568
+ __decorate([
110569
+ observable
110570
+ ], FvMultiSelect.prototype, "filter", void 0);
110571
+ __decorate([
110572
+ observable
110573
+ ], FvMultiSelect.prototype, "activeIndex", void 0);
110574
+ __decorate([
110575
+ observable
110576
+ ], FvMultiSelect.prototype, "keyboardNavigation", void 0);
110577
+ __decorate([
110578
+ observable
110579
+ ], FvMultiSelect.prototype, "formDisabled", void 0);
110580
+ __decorate([
110581
+ volatile
110582
+ ], FvMultiSelect.prototype, "effectiveDisabled", null);
110583
+ __decorate([
110584
+ volatile
110585
+ ], FvMultiSelect.prototype, "activeOptionId", null);
110586
+ const okFvMultiSelect = FvMultiSelect.compose({
110587
+ baseName: 'fv-multi-select',
110588
+ baseClass: FormAssociatedMultiSelect,
110589
+ template: template$d,
110590
+ styles: styles$b,
110591
+ shadowOptions: {
110592
+ delegatesFocus: true
110593
+ }
110594
+ });
110595
+ DesignSystem.getOrCreate().withPrefix('ok').register(okFvMultiSelect());
110596
+
110597
+ const styles$a = css `
109827
110598
  @layer base, hover, focusVisible, active, disabled, top;
109828
110599
 
109829
110600
  @layer base {
@@ -109931,9 +110702,32 @@ focus outline in that case.
109931
110702
  }
109932
110703
 
109933
110704
  .split-button-primary {
110705
+ display: inline-flex;
110706
+ align-items: center;
110707
+ justify-content: center;
109934
110708
  padding: 0 ${standardPadding};
109935
110709
  padding-inline-end: ${mediumPadding};
109936
110710
  white-space: nowrap;
110711
+ text-decoration: none;
110712
+ }
110713
+
110714
+ slot[name='start']::slotted(*),
110715
+ slot[name='end']::slotted(*) {
110716
+ flex-shrink: 0;
110717
+ color: currentColor;
110718
+ ${iconColor.cssCustomProperty}: currentColor;
110719
+ }
110720
+
110721
+ slot[name='start']::slotted(*) {
110722
+ margin-inline-end: ${smallPadding};
110723
+ }
110724
+
110725
+ slot[name='end']::slotted(*) {
110726
+ margin-inline-start: ${smallPadding};
110727
+ }
110728
+
110729
+ .split-button-primary-disabled {
110730
+ cursor: default;
109937
110731
  }
109938
110732
 
109939
110733
  .split-button-toggle {
@@ -109967,21 +110761,21 @@ focus outline in that case.
109967
110761
  }
109968
110762
 
109969
110763
  @layer hover {
109970
- .split-button-primary:enabled:hover,
110764
+ .split-button-primary:is(:enabled, [href]):hover,
109971
110765
  .split-button-toggle:enabled:hover {
109972
110766
  border-color: ${borderHoverColor};
109973
110767
  box-shadow: 0 0 0 ${borderWidth} ${borderHoverColor} inset;
109974
110768
  z-index: 1;
109975
110769
  }
109976
110770
 
109977
- .split-button-primary:enabled:hover + .split-button-toggle::after,
110771
+ .split-button-primary:is(:enabled, [href]):hover + .split-button-toggle::after,
109978
110772
  .split-button-toggle:enabled:hover::after {
109979
110773
  visibility: hidden;
109980
110774
  }
109981
110775
  }
109982
110776
 
109983
110777
  @layer focusVisible {
109984
- .split-button-primary:enabled:focus-visible,
110778
+ .split-button-primary:is(:enabled, [href]):focus-visible,
109985
110779
  .split-button-toggle:enabled:focus-visible {
109986
110780
  border-color: ${borderHoverColor};
109987
110781
  box-shadow: 0 0 0 ${borderWidth} ${borderHoverColor} inset;
@@ -110000,7 +110794,7 @@ focus outline in that case.
110000
110794
  }
110001
110795
 
110002
110796
  @layer active {
110003
- .split-button-primary:enabled:active,
110797
+ .split-button-primary:is(:enabled, [href]):active,
110004
110798
  .split-button-toggle:enabled:active,
110005
110799
  :host([open]) .split-button-toggle {
110006
110800
  border-color: ${borderHoverColor};
@@ -110018,7 +110812,7 @@ focus outline in that case.
110018
110812
  visibility: hidden;
110019
110813
  }
110020
110814
 
110021
- :host([appearance='block']) .split-button-primary:enabled:active,
110815
+ :host([appearance='block']) .split-button-primary:is(:enabled, [href]):active,
110022
110816
  :host([appearance='block']) .split-button-toggle:enabled:active,
110023
110817
  :host([appearance='block'][open]) .split-button-toggle {
110024
110818
  background-color: ${applicationBackgroundColor};
@@ -110036,6 +110830,14 @@ focus outline in that case.
110036
110830
  --ni-private-ok-fv-split-button-color: ${buttonLabelDisabledFontColor};
110037
110831
  }
110038
110832
 
110833
+ :host([disabled][appearance='block']) {
110834
+ --ni-private-ok-fv-split-button-background-image: linear-gradient(
110835
+ rgba(${borderRgbPartialColor}, 0.1),
110836
+ rgba(${borderRgbPartialColor}, 0.1)
110837
+ );
110838
+ --ni-private-ok-fv-split-button-border: rgba(${borderRgbPartialColor}, 0.1);
110839
+ }
110840
+
110039
110841
  :host([disabled][appearance='outline']) {
110040
110842
  --ni-private-ok-fv-split-button-border: rgba(${borderRgbPartialColor}, 0.3);
110041
110843
  }
@@ -110044,6 +110846,15 @@ focus outline in that case.
110044
110846
  :host([disabled]) .split-button-toggle {
110045
110847
  cursor: default;
110046
110848
  box-shadow: none;
110849
+ background-image: none;
110850
+ background-size: 100% 100%;
110851
+ }
110852
+
110853
+ :host([disabled]) slot[name='start']::slotted(*),
110854
+ :host([disabled]) slot[name='end']::slotted(*),
110855
+ :host([disabled]) .split-button-toggle > * {
110856
+ opacity: 0.3;
110857
+ ${iconColor.cssCustomProperty}: ${buttonLabelFontColor};
110047
110858
  }
110048
110859
 
110049
110860
  :host([disabled][appearance='ghost']) .split-button-primary,
@@ -110068,7 +110879,9 @@ focus outline in that case.
110068
110879
  return true;
110069
110880
  }}"
110070
110881
  >
110071
- ${x => x.label}
110882
+ <slot name="start"></slot>
110883
+ <span>${x => x.label}</span>
110884
+ <slot name="end"></slot>
110072
110885
  </button>
110073
110886
  <button
110074
110887
  class="split-button-toggle"
@@ -110228,239 +111041,18 @@ focus outline in that case.
110228
111041
  const okFvSplitButton = FvSplitButton.compose({
110229
111042
  baseName: 'fv-split-button',
110230
111043
  template: template$c,
110231
- styles: styles$b
111044
+ styles: styles$a
110232
111045
  });
110233
111046
  DesignSystem.getOrCreate().withPrefix('ok').register(okFvSplitButton());
110234
111047
 
110235
- const styles$a = css `
110236
- @layer base, hover, focusVisible, active, disabled, top;
110237
-
110238
- @layer base {
110239
- ${display('inline-block')}
110240
-
110241
- :host {
110242
- --ni-private-ok-fv-split-button-anchor-background-image: none;
110243
- --ni-private-ok-fv-split-button-anchor-background-size: 100% 100%;
110244
- --ni-private-ok-fv-split-button-anchor-background-size-emphasis: 100% 100%;
110245
- --ni-private-ok-fv-split-button-anchor-border: rgba(${actionRgbPartialColor}, 0.3);
110246
- --ni-private-ok-fv-split-button-anchor-color: ${buttonLabelFontColor};
110247
- position: relative;
110248
- height: ${controlHeight};
110249
- vertical-align: middle;
110250
- }
110251
-
110252
- :host([appearance='ghost']) {
110253
- --ni-private-ok-fv-split-button-anchor-border: transparent;
110254
- }
110255
-
110256
- :host([appearance='block']) {
110257
- --ni-private-ok-fv-split-button-anchor-background-image: linear-gradient(
110258
- rgba(${borderRgbPartialColor}, 0.1),
110259
- rgba(${borderRgbPartialColor}, 0.1)
110260
- );
110261
- --ni-private-ok-fv-split-button-anchor-border: rgba(${borderRgbPartialColor}, 0.1);
110262
- --ni-private-ok-fv-split-button-anchor-background-size-emphasis: calc(100% - 4px) calc(100% - 4px);
110263
- }
110264
-
110265
- :host([appearance='outline'][appearance-variant='primary']) {
110266
- --ni-private-ok-fv-split-button-anchor-border: rgb(${actionRgbPartialColor});
110267
- }
110268
-
110269
- :host([appearance='outline'][appearance-variant='accent']) {
110270
- --ni-private-ok-fv-split-button-anchor-border: ${buttonBorderAccentOutlineColor};
110271
- --ni-private-ok-fv-split-button-anchor-color: ${buttonAccentOutlineFontColor};
110272
- }
110273
-
110274
- :host([appearance='block'][appearance-variant='primary']) {
110275
- --ni-private-ok-fv-split-button-anchor-background-image: linear-gradient(
110276
- ${buttonFillPrimaryColor},
110277
- ${buttonFillPrimaryColor}
110278
- );
110279
- --ni-private-ok-fv-split-button-anchor-border: ${buttonFillPrimaryColor};
110280
- --ni-private-ok-fv-split-button-anchor-color: ${buttonPrimaryFontColor};
110281
- }
110282
-
110283
- :host([appearance='block'][appearance-variant='accent']) {
110284
- --ni-private-ok-fv-split-button-anchor-background-image: linear-gradient(
110285
- ${buttonFillAccentColor},
110286
- ${buttonFillAccentColor}
110287
- );
110288
- --ni-private-ok-fv-split-button-anchor-border: ${buttonFillAccentColor};
110289
- --ni-private-ok-fv-split-button-anchor-color: ${buttonAccentBlockFontColor};
110290
- }
110291
-
110292
- .split-button-container {
110293
- position: relative;
110294
- display: inline-flex;
110295
- align-items: stretch;
110296
- height: 100%;
110297
- }
110298
-
110299
- .split-button-primary,
110300
- .split-button-toggle {
110301
- appearance: none;
110302
- position: relative;
110303
- z-index: 0;
110304
- height: 100%;
110305
- box-sizing: border-box;
110306
- margin: 0;
110307
- border: ${borderWidth} solid var(--ni-private-ok-fv-split-button-anchor-border);
110308
- background-color: transparent;
110309
- background-image: var(--ni-private-ok-fv-split-button-anchor-background-image);
110310
- background-position: center;
110311
- background-repeat: no-repeat;
110312
- background-size: var(--ni-private-ok-fv-split-button-anchor-background-size);
110313
- color: var(--ni-private-ok-fv-split-button-anchor-color);
110314
- fill: currentcolor;
110315
- font: ${buttonLabelFont};
110316
- cursor: pointer;
110317
- outline: none;
110318
- transition:
110319
- box-shadow ${smallDelay} ease-in-out,
110320
- border-color ${smallDelay} ease-in-out,
110321
- background-size ${smallDelay} ease-in-out;
110322
- }
110323
-
110324
- .split-button-primary {
110325
- display: inline-flex;
110326
- align-items: center;
110327
- justify-content: center;
110328
- padding: 0 ${standardPadding};
110329
- border-inline-end-color: transparent;
110330
- white-space: nowrap;
110331
- text-decoration: none;
110332
- }
110333
-
110334
- .split-button-primary::before,
110335
- .split-button-toggle::before {
110336
- content: '';
110337
- position: absolute;
110338
- inset: 0;
110339
- pointer-events: none;
110340
- outline: 0px solid transparent;
110341
- outline-offset: -3px;
110342
- transition: outline ${smallDelay} ease-in-out;
110343
- }
110344
-
110345
- .split-button-toggle {
110346
- width: ${controlHeight};
110347
- min-width: ${controlHeight};
110348
- display: inline-flex;
110349
- align-items: center;
110350
- justify-content: center;
110351
- border-inline-start-color: var(--ni-private-ok-fv-split-button-anchor-border);
110352
- margin-inline-start: calc(-1 * ${borderWidth});
110353
- }
110354
-
110355
- .split-button-toggle > * {
110356
- color: currentColor;
110357
- ${iconColor.cssCustomProperty}: currentColor;
110358
- }
110359
-
110360
- .split-button-primary-disabled {
110361
- cursor: default;
110362
- }
110363
-
110364
- :host([appearance='ghost']) .split-button-primary,
110365
- :host([appearance='ghost']) .split-button-toggle {
110366
- border-color: transparent;
110367
- box-shadow: none;
110368
- }
110369
-
110370
- slot[name='menu']::slotted(*) {
110371
- min-width: 100%;
110372
- margin: 4px 0 0;
110373
- }
110374
- }
110375
-
110376
- @layer hover {
110377
- .split-button-primary:hover,
110378
- .split-button-toggle:hover {
110379
- border-color: ${borderHoverColor};
110380
- box-shadow: 0 0 0 ${borderWidth} ${borderHoverColor} inset;
110381
- background-size: var(--ni-private-ok-fv-split-button-anchor-background-size-emphasis);
110382
- z-index: 1;
110383
- }
110384
-
110385
- :host([appearance='ghost']) .split-button-primary:hover,
110386
- :host([appearance='ghost']) .split-button-toggle:hover {
110387
- border-color: ${borderHoverColor};
110388
- box-shadow: 0 0 0 ${borderWidth} ${borderHoverColor} inset;
110389
- }
110390
- }
110391
-
110392
- @layer focusVisible {
110393
- .split-button-primary:focus-visible,
110394
- .split-button-toggle:focus-visible {
110395
- border-color: ${borderHoverColor};
110396
- box-shadow: 0 0 0 ${borderWidth} ${borderHoverColor} inset;
110397
- background-size: var(--ni-private-ok-fv-split-button-anchor-background-size-emphasis);
110398
- z-index: 1;
110399
- }
110400
-
110401
- .split-button-primary:focus-visible::before,
110402
- .split-button-toggle:focus-visible::before {
110403
- outline: ${borderWidth} solid ${borderHoverColor};
110404
- }
110405
-
110406
- :host([appearance='ghost']) .split-button-primary:focus-visible,
110407
- :host([appearance='ghost']) .split-button-toggle:focus-visible {
110408
- border-color: ${borderHoverColor};
110409
- box-shadow: 0 0 0 ${borderWidth} ${borderHoverColor} inset;
110410
- }
110411
- }
110412
-
110413
- @layer active {
110414
- .split-button-primary:active,
110415
- .split-button-toggle:active,
110416
- :host([open]) .split-button-toggle {
110417
- border-color: ${borderHoverColor};
110418
- box-shadow: none;
110419
- background-image: linear-gradient(${fillSelectedColor}, ${fillSelectedColor});
110420
- background-size: calc(100% - 2px) calc(100% - 2px);
110421
- }
110422
-
110423
- :host([appearance='block']) .split-button-primary:active,
110424
- :host([appearance='block']) .split-button-toggle:active,
110425
- :host([appearance='block'][open]) .split-button-toggle {
110426
- background-size: calc(100% - 4px) calc(100% - 4px);
110427
- }
110428
-
110429
- :host([appearance='outline'][appearance-variant='accent']) .split-button-primary:active,
110430
- :host([appearance='outline'][appearance-variant='accent']) .split-button-toggle:active,
110431
- :host([appearance='outline'][appearance-variant='accent'][open]) .split-button-toggle {
110432
- color: ${buttonAccentOutlineFontColor};
110433
- }
110434
- }
110435
-
110436
- @layer disabled {
110437
- :host([disabled]) {
110438
- --ni-private-ok-fv-split-button-anchor-color: ${buttonLabelDisabledFontColor};
110439
- }
110440
-
110441
- :host([disabled][appearance='outline']) {
110442
- --ni-private-ok-fv-split-button-anchor-border: rgba(${borderRgbPartialColor}, 0.3);
110443
- }
110444
-
110445
- :host([disabled]) .split-button-primary,
110446
- :host([disabled]) .split-button-toggle {
110447
- cursor: default;
110448
- box-shadow: none;
110449
- }
110450
-
110451
- :host([disabled][appearance='ghost']) .split-button-primary,
110452
- :host([disabled][appearance='ghost']) .split-button-toggle {
110453
- border-color: transparent;
110454
- }
110455
- }
110456
-
110457
- @layer top {}
111048
+ const primaryContent = html `
111049
+ <slot name="start"></slot>
111050
+ <span>${x => x.label}</span>
111051
+ <slot name="end"></slot>
110458
111052
  `;
110459
-
110460
111053
  const template$b = html `
110461
111054
  <div
110462
111055
  class="split-button-container"
110463
- ${ref('splitButtonContainer')}
110464
111056
  >
110465
111057
  ${when(x => !x.disabled && x.href.length > 0, html `
110466
111058
  <a
@@ -110474,7 +111066,7 @@ focus outline in that case.
110474
111066
  return true;
110475
111067
  }}"
110476
111068
  >
110477
- ${x => x.label}
111069
+ ${primaryContent}
110478
111070
  </a>
110479
111071
  `)}
110480
111072
  ${when(x => x.disabled || x.href.length === 0, html `
@@ -110482,11 +111074,12 @@ focus outline in that case.
110482
111074
  class="split-button-primary split-button-primary-disabled"
110483
111075
  aria-disabled="${x => x.disabled}"
110484
111076
  >
110485
- ${x => x.label}
111077
+ ${primaryContent}
110486
111078
  </span>
110487
111079
  `)}
110488
111080
  <button
110489
111081
  class="split-button-toggle"
111082
+ ${ref('toggleButton')}
110490
111083
  type="button"
110491
111084
  ?disabled="${x => x.disabled}"
110492
111085
  aria-label="${x => `More actions for ${x.label}`}"
@@ -110506,9 +111099,9 @@ focus outline in that case.
110506
111099
  auto-update-mode="auto"
110507
111100
  horizontal-inset
110508
111101
  horizontal-positioning-mode="dynamic"
111102
+ horizontal-default-position="end"
110509
111103
  vertical-positioning-mode="locktodefault"
110510
111104
  vertical-default-position="bottom"
110511
- horizontal-scaling="anchor"
110512
111105
  ${ref('region')}
110513
111106
  >
110514
111107
  <span part="menu">
@@ -110600,14 +111193,14 @@ focus outline in that case.
110600
111193
  prev.removeEventListener('change', this.menuChangeHandler);
110601
111194
  }
110602
111195
  if (this.region) {
110603
- this.region.anchorElement = this.splitButtonContainer ?? this;
111196
+ this.region.anchorElement = this.toggleButton ?? this;
110604
111197
  this.region.addEventListener('change', this.menuChangeHandler, { capture: true });
110605
111198
  }
110606
111199
  }
110607
111200
  /** @internal */
110608
- splitButtonContainerChanged() {
111201
+ toggleButtonChanged() {
110609
111202
  if (this.region) {
110610
- this.region.anchorElement = this.splitButtonContainer ?? this;
111203
+ this.region.anchorElement = this.toggleButton ?? this;
110611
111204
  }
110612
111205
  }
110613
111206
  setOpen(nextOpen) {
@@ -110651,7 +111244,7 @@ focus outline in that case.
110651
111244
  ], FvSplitButtonAnchor.prototype, "appearanceVariant", void 0);
110652
111245
  __decorate([
110653
111246
  observable
110654
- ], FvSplitButtonAnchor.prototype, "splitButtonContainer", void 0);
111247
+ ], FvSplitButtonAnchor.prototype, "toggleButton", void 0);
110655
111248
  __decorate([
110656
111249
  observable
110657
111250
  ], FvSplitButtonAnchor.prototype, "region", void 0);
@@ -112936,7 +113529,7 @@ focus outline in that case.
112936
113529
 
112937
113530
  const template = html `
112938
113531
  <template @delegated-event="${(x, c) => x.onDelegatedEvent(c.event)}"
112939
- >${template$S}</template
113532
+ >${template$T}</template
112940
113533
  >
112941
113534
  `;
112942
113535