@ni/nimble-components 18.6.4 → 18.8.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 (50) hide show
  1. package/dist/all-components-bundle.js +288 -83
  2. package/dist/all-components-bundle.js.map +1 -1
  3. package/dist/all-components-bundle.min.js +1199 -1082
  4. package/dist/all-components-bundle.min.js.map +1 -1
  5. package/dist/esm/all-components.d.ts +1 -0
  6. package/dist/esm/all-components.js +1 -0
  7. package/dist/esm/all-components.js.map +1 -1
  8. package/dist/esm/anchor-menu-item/index.d.ts +38 -0
  9. package/dist/esm/anchor-menu-item/index.js +109 -0
  10. package/dist/esm/anchor-menu-item/index.js.map +1 -0
  11. package/dist/esm/anchor-menu-item/styles.d.ts +1 -0
  12. package/dist/esm/anchor-menu-item/styles.js +80 -0
  13. package/dist/esm/anchor-menu-item/styles.js.map +1 -0
  14. package/dist/esm/anchor-menu-item/template.d.ts +4 -0
  15. package/dist/esm/anchor-menu-item/template.js +32 -0
  16. package/dist/esm/anchor-menu-item/template.js.map +1 -0
  17. package/dist/esm/banner/template.js +11 -12
  18. package/dist/esm/banner/template.js.map +1 -1
  19. package/dist/esm/combobox/index.js +9 -9
  20. package/dist/esm/combobox/index.js.map +1 -1
  21. package/dist/esm/menu-button/template.js +6 -7
  22. package/dist/esm/menu-button/template.js.map +1 -1
  23. package/dist/esm/number-field/index.js +14 -14
  24. package/dist/esm/number-field/index.js.map +1 -1
  25. package/dist/esm/select/index.js +3 -3
  26. package/dist/esm/select/index.js.map +1 -1
  27. package/dist/esm/table/components/cell/index.d.ts +1 -0
  28. package/dist/esm/table/components/cell/index.js +1 -0
  29. package/dist/esm/table/components/cell/index.js.map +1 -1
  30. package/dist/esm/table/components/cell/template.js +5 -6
  31. package/dist/esm/table/components/cell/template.js.map +1 -1
  32. package/dist/esm/table/components/header/index.d.ts +1 -0
  33. package/dist/esm/table/components/header/index.js +1 -0
  34. package/dist/esm/table/components/header/index.js.map +1 -1
  35. package/dist/esm/table/components/header/template.js +4 -5
  36. package/dist/esm/table/components/header/template.js.map +1 -1
  37. package/dist/esm/table/components/row/index.d.ts +1 -0
  38. package/dist/esm/table/components/row/index.js +1 -0
  39. package/dist/esm/table/components/row/index.js.map +1 -1
  40. package/dist/esm/table/components/row/template.js +3 -4
  41. package/dist/esm/table/components/row/template.js.map +1 -1
  42. package/dist/esm/table/template.js +6 -7
  43. package/dist/esm/table/template.js.map +1 -1
  44. package/dist/esm/text-field/index.js +3 -3
  45. package/dist/esm/text-field/index.js.map +1 -1
  46. package/dist/esm/tooltip/template.js +9 -10
  47. package/dist/esm/tooltip/template.js.map +1 -1
  48. package/dist/esm/tree-item/styles.js +0 -6
  49. package/dist/esm/tree-item/styles.js.map +1 -1
  50. package/package.json +1 -1
@@ -16807,9 +16807,9 @@
16807
16807
  return `${prefix}${uniqueIdCounter++}`;
16808
16808
  }
16809
16809
 
16810
- const template$k = html `<slot></slot>`;
16810
+ const template$l = html `<slot></slot>`;
16811
16811
 
16812
- const styles$J = css `
16812
+ const styles$K = css `
16813
16813
  :host {
16814
16814
  display: contents;
16815
16815
  }
@@ -16865,8 +16865,8 @@
16865
16865
  ], ThemeProvider.prototype, "theme", void 0);
16866
16866
  const nimbleDesignSystemProvider = ThemeProvider.compose({
16867
16867
  baseName: 'theme-provider',
16868
- styles: styles$J,
16869
- template: template$k
16868
+ styles: styles$K,
16869
+ template: template$l
16870
16870
  });
16871
16871
  DesignSystem.getOrCreate()
16872
16872
  .withPrefix('nimble')
@@ -17050,7 +17050,7 @@
17050
17050
  }
17051
17051
  }
17052
17052
 
17053
- const styles$I = css `
17053
+ const styles$J = css `
17054
17054
  ${display('inline')}
17055
17055
 
17056
17056
  :host {
@@ -17133,7 +17133,7 @@
17133
17133
  `;
17134
17134
 
17135
17135
  // prettier-ignore
17136
- const template$j = (context, definition) => html `
17136
+ const template$k = (context, definition) => html `
17137
17137
  <a
17138
17138
  class="control"
17139
17139
  part="control"
@@ -17206,8 +17206,8 @@
17206
17206
  const nimbleAnchor = Anchor.compose({
17207
17207
  baseName: 'anchor',
17208
17208
  baseClass: Anchor$1,
17209
- template: template$j,
17210
- styles: styles$I,
17209
+ template: template$k,
17210
+ styles: styles$J,
17211
17211
  shadowOptions: {
17212
17212
  delegatesFocus: true
17213
17213
  }
@@ -17293,7 +17293,7 @@
17293
17293
  return new MultivaluePropertyStyleSheetBehavior('appearance', value, styles);
17294
17294
  }
17295
17295
 
17296
- const styles$H = css `
17296
+ const styles$I = css `
17297
17297
  ${display('inline-flex')}
17298
17298
 
17299
17299
  :host {
@@ -17574,8 +17574,8 @@
17574
17574
  }
17575
17575
  `));
17576
17576
 
17577
- const styles$G = css `
17578
- ${styles$H}
17577
+ const styles$H = css `
17578
+ ${styles$I}
17579
17579
  ${buttonAppearanceVariantStyles}
17580
17580
 
17581
17581
  .control {
@@ -17583,7 +17583,7 @@
17583
17583
  }
17584
17584
  `;
17585
17585
 
17586
- const template$i = (context, definition) => html `
17586
+ const template$j = (context, definition) => html `
17587
17587
  <a
17588
17588
  class="control"
17589
17589
  part="control"
@@ -17665,8 +17665,8 @@
17665
17665
  ], AnchorButton.prototype, "disabled", void 0);
17666
17666
  const nimbleAnchorButton = AnchorButton.compose({
17667
17667
  baseName: 'anchor-button',
17668
- template: template$i,
17669
- styles: styles$G,
17668
+ template: template$j,
17669
+ styles: styles$H,
17670
17670
  shadowOptions: {
17671
17671
  delegatesFocus: true
17672
17672
  }
@@ -17674,6 +17674,214 @@
17674
17674
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleAnchorButton());
17675
17675
  DesignSystem.tagFor(AnchorButton);
17676
17676
 
17677
+ const styles$G = css `
17678
+ ${display('grid')}
17679
+
17680
+ :host {
17681
+ font: ${bodyFont};
17682
+ }
17683
+
17684
+ :host(:focus-within:not(:active)) {
17685
+ outline: 2px solid ${borderHoverColor};
17686
+ outline-offset: -2px;
17687
+ }
17688
+
17689
+ :host(:hover) {
17690
+ background: ${fillHoverColor};
17691
+ }
17692
+
17693
+ :host(:active) {
17694
+ background: ${fillSelectedColor};
17695
+ }
17696
+
17697
+ :host([disabled]) {
17698
+ background: transparent;
17699
+ }
17700
+
17701
+ a {
17702
+ display: grid;
17703
+ contain: layout;
17704
+ overflow: visible;
17705
+ box-sizing: border-box;
17706
+ height: ${controlHeight};
17707
+ grid-template-columns: 1fr;
17708
+ column-gap: 8px;
17709
+ grid-template-rows: 1fr;
17710
+ justify-items: start;
17711
+ align-items: center;
17712
+ margin: 0 0;
17713
+ white-space: nowrap;
17714
+ color: ${bodyFontColor};
17715
+ fill: currentcolor;
17716
+ cursor: pointer;
17717
+ text-decoration: none;
17718
+ outline: none;
17719
+ }
17720
+
17721
+ :host([disabled]) a {
17722
+ color: ${bodyDisabledFontColor};
17723
+ fill: currentcolor;
17724
+ cursor: default;
17725
+ }
17726
+
17727
+ :host(.indent-1) a {
17728
+ grid-template-columns: ${iconSize} 1fr;
17729
+ }
17730
+
17731
+ [part='start'] {
17732
+ display: contents;
17733
+ }
17734
+
17735
+ slot[name='start']::slotted(*) {
17736
+ fill: currentcolor;
17737
+ width: ${iconSize};
17738
+ height: ${iconSize};
17739
+ }
17740
+
17741
+ :host(.indent-1) .start {
17742
+ grid-column: 1;
17743
+ }
17744
+
17745
+ :host(.indent-1) .content {
17746
+ grid-column: 2;
17747
+ }
17748
+
17749
+ [part='end'] {
17750
+ display: none;
17751
+ }
17752
+ `;
17753
+
17754
+ const template$i = (context, definition) => html `
17755
+ <template
17756
+ role="menuitem"
17757
+ class="${x => (typeof x.startColumnCount === 'number'
17758
+ ? `indent-${x.startColumnCount}`
17759
+ : '')}"
17760
+ aria-disabled="${x => x.disabled}"
17761
+ >
17762
+ <a
17763
+ ${ref('anchor')}
17764
+ download="${x => x.download}"
17765
+ href=${x => (x.disabled ? null : x.href)}
17766
+ hreflang="${x => x.hreflang}"
17767
+ ping="${x => x.ping}"
17768
+ referrerpolicy="${x => x.referrerpolicy}"
17769
+ rel="${x => x.rel}"
17770
+ target="${x => x.target}"
17771
+ type="${x => x.type}"
17772
+ @click="${(x, c) => x.clickHandler(c.event)}"
17773
+ @keydown="${(x, c) => x.keydownHandler(c.event)}"
17774
+ >
17775
+ ${startSlotTemplate(context, definition)}
17776
+ <span class="content" part="content">
17777
+ <slot></slot>
17778
+ </span>
17779
+ ${endSlotTemplate(context, definition)}
17780
+ </a>
17781
+ </template>
17782
+ `;
17783
+
17784
+ /**
17785
+ * A nimble-styled anchor menu-item
17786
+ */
17787
+ class AnchorMenuItem extends AnchorBase {
17788
+ constructor() {
17789
+ super(...arguments);
17790
+ this.disabled = false;
17791
+ /**
17792
+ * There is an assumption that this component is styled using a grid display, and this property
17793
+ * controls which grid column contains the menu item text (i.e. the indentation of the text).
17794
+ * The parent menu sets this value on all its child menu items so their indentations align.
17795
+ * @internal
17796
+ */
17797
+ this.startColumnCount = 0;
17798
+ }
17799
+ // The following two handlers are workarounds for issues with anchor menu items in submenus.
17800
+ // Events can bubble up the DOM and get handled by the menu item in the parent menu. When that happens,
17801
+ // the menu item's handlers (FAST) return false and prevent the default action, i.e. navigation.
17802
+ // FAST has this issue about supporting links in menus: https://github.com/microsoft/fast/issues/5415
17803
+ /**
17804
+ * @internal
17805
+ */
17806
+ clickHandler(e) {
17807
+ e.stopImmediatePropagation();
17808
+ return true;
17809
+ }
17810
+ /**
17811
+ * @internal
17812
+ */
17813
+ keydownHandler(e) {
17814
+ if (e.defaultPrevented) {
17815
+ return false;
17816
+ }
17817
+ switch (e.key) {
17818
+ case keyEnter:
17819
+ e.stopImmediatePropagation();
17820
+ break;
17821
+ }
17822
+ return true;
17823
+ }
17824
+ // The FAST Menu manages the `tabindex` of its menu items. Because of a bug in Chromium
17825
+ // (https://bugs.chromium.org/p/chromium/issues/detail?id=1346606), setting the tabindex on an element
17826
+ // with `delegatesFocus=true` causes the element to lose focus. This causes the menu to close, preventing
17827
+ // arrowing through the items or navigating to the url. As a workaround, we intercept attempts to
17828
+ // set the tabindex on the host and instead set it on the inner anchor.
17829
+ // The referenced Chromium bug is actually fixed, but it hasn't been pulled into Edge yet (it is in
17830
+ // Chrome). Issue https://github.com/ni/nimble/issues/1118 tracks removal of this workaround.
17831
+ setAttribute(qualifiedName, value) {
17832
+ if (qualifiedName === 'tabindex') {
17833
+ this.anchor.setAttribute(qualifiedName, value);
17834
+ }
17835
+ else {
17836
+ super.setAttribute(qualifiedName, value);
17837
+ }
17838
+ }
17839
+ // This is part of the bug workaround described above (in setAttribute)
17840
+ get tabIndex() {
17841
+ return this.anchor.tabIndex;
17842
+ }
17843
+ // This is part of the bug workaround described above (in setAttribute)
17844
+ set tabIndex(value) {
17845
+ this.anchor.tabIndex = value;
17846
+ }
17847
+ }
17848
+ __decorate$1([
17849
+ attr({ mode: 'boolean' })
17850
+ ], AnchorMenuItem.prototype, "disabled", void 0);
17851
+ __decorate$1([
17852
+ observable
17853
+ ], AnchorMenuItem.prototype, "anchor", void 0);
17854
+ __decorate$1([
17855
+ observable
17856
+ ], AnchorMenuItem.prototype, "startColumnCount", void 0);
17857
+ const nimbleAnchorMenuItem = AnchorMenuItem.compose({
17858
+ baseName: 'anchor-menu-item',
17859
+ template: template$i,
17860
+ styles: styles$G,
17861
+ shadowOptions: {
17862
+ delegatesFocus: true
17863
+ }
17864
+ });
17865
+ applyMixins(AnchorMenuItem, StartEnd);
17866
+ DesignSystem.getOrCreate()
17867
+ .withPrefix('nimble')
17868
+ .register(nimbleAnchorMenuItem());
17869
+ DesignSystem.tagFor(AnchorMenuItem);
17870
+ // This is a workaround for the fact that FAST's menu uses `instanceof MenuItem`
17871
+ // in their logic for indenting menu items. Since our AnchorMenuItem derives from
17872
+ // AnchorBase and not FAST's MenuItem, we need to change their MenuItem's definition
17873
+ // of `hasInstance` so that it includes our AnchorMenuItem, too.
17874
+ //
17875
+ // If/when we change FAST to test for the presence of `startColumnCount` instead
17876
+ // of using `instanceof MenuItem`, we can remove this workaround. Here is the
17877
+ // PR into FAST: https://github.com/microsoft/fast/pull/6667
17878
+ const originalInstanceOf = MenuItem$1[Symbol.hasInstance].bind(MenuItem$1);
17879
+ Object.defineProperty(MenuItem$1, Symbol.hasInstance, {
17880
+ value(instance) {
17881
+ return (originalInstanceOf(instance) || instance instanceof AnchorMenuItem);
17882
+ }
17883
+ });
17884
+
17677
17885
  const styles$F = css `
17678
17886
  ${display('inline-flex')}
17679
17887
 
@@ -18088,7 +18296,7 @@
18088
18296
  DesignSystem.getOrCreate()
18089
18297
  .withPrefix('nimble')
18090
18298
  .register(nimbleAnchoredRegion());
18091
- DesignSystem.tagFor(AnchoredRegion);
18299
+ const anchoredRegionTag = DesignSystem.tagFor(AnchoredRegion);
18092
18300
 
18093
18301
  /**
18094
18302
  * Subscription for {@link ThemeStyleSheetBehavior}
@@ -18322,7 +18530,7 @@
18322
18530
  `));
18323
18531
 
18324
18532
  const styles$A = css `
18325
- ${styles$H}
18533
+ ${styles$I}
18326
18534
  ${buttonAppearanceVariantStyles}
18327
18535
  `;
18328
18536
 
@@ -18374,7 +18582,7 @@
18374
18582
  }
18375
18583
  });
18376
18584
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleButton());
18377
- DesignSystem.tagFor(Button);
18585
+ const buttonTag = DesignSystem.tagFor(Button);
18378
18586
 
18379
18587
  /* 🤖 this file was generated by svg-to-ts */
18380
18588
  const add16X16 = {
@@ -19066,7 +19274,7 @@
19066
19274
  }
19067
19275
  }
19068
19276
  registerIcon('icon-exclamation-mark', IconExclamationMark);
19069
- DesignSystem.tagFor(IconExclamationMark);
19277
+ const iconExclamationMarkTag = DesignSystem.tagFor(IconExclamationMark);
19070
19278
 
19071
19279
  // AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
19072
19280
  /**
@@ -19078,7 +19286,7 @@
19078
19286
  }
19079
19287
  }
19080
19288
  registerIcon('icon-info', IconInfo);
19081
- DesignSystem.tagFor(IconInfo);
19289
+ const iconInfoTag = DesignSystem.tagFor(IconInfo);
19082
19290
 
19083
19291
  // AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
19084
19292
  /**
@@ -19090,7 +19298,7 @@
19090
19298
  }
19091
19299
  }
19092
19300
  registerIcon('icon-triangle-filled', IconTriangleFilled);
19093
- DesignSystem.tagFor(IconTriangleFilled);
19301
+ const iconTriangleFilledTag = DesignSystem.tagFor(IconTriangleFilled);
19094
19302
 
19095
19303
  // AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
19096
19304
  /**
@@ -19102,7 +19310,7 @@
19102
19310
  }
19103
19311
  }
19104
19312
  registerIcon('icon-xmark', IconXmark);
19105
- DesignSystem.tagFor(IconXmark);
19313
+ const iconXmarkTag = DesignSystem.tagFor(IconXmark);
19106
19314
 
19107
19315
  /**
19108
19316
  * Severities of banners.
@@ -19142,13 +19350,13 @@
19142
19350
  >
19143
19351
  <div class="icon">
19144
19352
  ${when(x => x.severity === BannerSeverity.error, html `
19145
- <${DesignSystem.tagFor(IconExclamationMark)}></${DesignSystem.tagFor(IconExclamationMark)}>
19353
+ <${iconExclamationMarkTag}></${iconExclamationMarkTag}>
19146
19354
  `)}
19147
19355
  ${when(x => x.severity === BannerSeverity.warning, html `
19148
- <${DesignSystem.tagFor(IconTriangleFilled)}></${DesignSystem.tagFor(IconTriangleFilled)}>
19356
+ <${iconTriangleFilledTag}></${iconTriangleFilledTag}>
19149
19357
  `)}
19150
19358
  ${when(x => x.severity === BannerSeverity.information, html `
19151
- <${DesignSystem.tagFor(IconInfo)}></${DesignSystem.tagFor(IconInfo)}>
19359
+ <${iconInfoTag}></${iconInfoTag}>
19152
19360
  `)}
19153
19361
  </div>
19154
19362
  <div class="text">
@@ -19159,10 +19367,10 @@
19159
19367
  <slot name="action"></slot>
19160
19368
  <div class="dismiss">
19161
19369
  ${when(x => !x.preventDismiss, html `
19162
- <${DesignSystem.tagFor(Button)} appearance="ghost" content-hidden @click="${x => x.dismissBanner()}">
19163
- <${DesignSystem.tagFor(IconXmark)} slot="start"></${DesignSystem.tagFor(IconXmark)}>
19370
+ <${buttonTag} appearance="ghost" content-hidden @click="${x => x.dismissBanner()}">
19371
+ <${iconXmarkTag} slot="start"></${iconXmarkTag}>
19164
19372
  ${x => x.dismissButtonLabel ?? 'Close'}
19165
- </${DesignSystem.tagFor(Button)}>
19373
+ </${buttonTag}>
19166
19374
  `)}
19167
19375
  </div>
19168
19376
  </div>
@@ -19664,7 +19872,7 @@
19664
19872
  DesignSystem.tagFor(Checkbox);
19665
19873
 
19666
19874
  const styles$u = css `
19667
- ${styles$H}
19875
+ ${styles$I}
19668
19876
 
19669
19877
  .control[aria-pressed='true'] {
19670
19878
  background-color: ${fillSelectedColor};
@@ -19772,7 +19980,7 @@
19772
19980
  }
19773
19981
  });
19774
19982
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleToggleButton());
19775
- DesignSystem.tagFor(ToggleButton);
19983
+ const toggleButtonTag = DesignSystem.tagFor(ToggleButton);
19776
19984
 
19777
19985
  const errorTextTemplate = html `
19778
19986
  <div class="error-text" title="${x => x.errorText}" aria-live="polite">
@@ -19790,7 +19998,7 @@
19790
19998
  }
19791
19999
  }
19792
20000
  registerIcon('icon-arrow-expander-down', IconArrowExpanderDown);
19793
- DesignSystem.tagFor(IconArrowExpanderDown);
20001
+ const iconArrowExpanderDownTag = DesignSystem.tagFor(IconArrowExpanderDown);
19794
20002
 
19795
20003
  const DropdownAppearance = {
19796
20004
  underline: 'underline',
@@ -20316,12 +20524,12 @@
20316
20524
  },
20317
20525
  end: html `
20318
20526
  <div class="end-slot-container">
20319
- <${DesignSystem.tagFor(IconExclamationMark)}
20527
+ <${iconExclamationMarkTag}
20320
20528
  severity="error"
20321
20529
  class="error-icon"
20322
- ></${DesignSystem.tagFor(IconExclamationMark)}>
20530
+ ></${iconExclamationMarkTag}>
20323
20531
  <div class="separator"></div>
20324
- <${DesignSystem.tagFor(ToggleButton)}
20532
+ <${toggleButtonTag}
20325
20533
  ${ref('dropdownButton')}
20326
20534
  appearance="ghost"
20327
20535
  ?checked="${x => x.open}"
@@ -20336,12 +20544,12 @@
20336
20544
  aria-expanded="${x => x.open}"
20337
20545
  tabindex="-1"
20338
20546
  >
20339
- <${DesignSystem.tagFor(IconArrowExpanderDown)}
20547
+ <${iconArrowExpanderDownTag}
20340
20548
  slot="start"
20341
20549
  class="dropdown-icon"
20342
20550
  >
20343
- </${DesignSystem.tagFor(IconArrowExpanderDown)}>
20344
- </${DesignSystem.tagFor(ToggleButton)}>
20551
+ </${iconArrowExpanderDownTag}>
20552
+ </${toggleButtonTag}>
20345
20553
  </div>
20346
20554
  ${errorTextTemplate}
20347
20555
  `
@@ -20887,7 +21095,7 @@
20887
21095
  }
20888
21096
  }
20889
21097
  registerIcon('icon-add', IconAdd);
20890
- DesignSystem.tagFor(IconAdd);
21098
+ const iconAddTag = DesignSystem.tagFor(IconAdd);
20891
21099
 
20892
21100
  // AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
20893
21101
  /**
@@ -20899,7 +21107,7 @@
20899
21107
  }
20900
21108
  }
20901
21109
  registerIcon('icon-arrow-down', IconArrowDown);
20902
- DesignSystem.tagFor(IconArrowDown);
21110
+ const iconArrowDownTag = DesignSystem.tagFor(IconArrowDown);
20903
21111
 
20904
21112
  // AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
20905
21113
  /**
@@ -21019,7 +21227,7 @@
21019
21227
  }
21020
21228
  }
21021
21229
  registerIcon('icon-arrow-up', IconArrowUp);
21022
- DesignSystem.tagFor(IconArrowUp);
21230
+ const iconArrowUpTag = DesignSystem.tagFor(IconArrowUp);
21023
21231
 
21024
21232
  // AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
21025
21233
  /**
@@ -22123,7 +22331,7 @@
22123
22331
  }
22124
22332
  }
22125
22333
  registerIcon('icon-minus-wide', IconMinusWide);
22126
- DesignSystem.tagFor(IconMinusWide);
22334
+ const iconMinusWideTag = DesignSystem.tagFor(IconMinusWide);
22127
22335
 
22128
22336
  // AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
22129
22337
  /**
@@ -22423,7 +22631,7 @@
22423
22631
  }
22424
22632
  }
22425
22633
  registerIcon('icon-three-dots-line', IconThreeDotsLine);
22426
- DesignSystem.tagFor(IconThreeDotsLine);
22634
+ const iconThreeDotsLineTag = DesignSystem.tagFor(IconThreeDotsLine);
22427
22635
 
22428
22636
  // AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
22429
22637
  /**
@@ -22834,7 +23042,7 @@
22834
23042
  ?open="${x => x.open}"
22835
23043
  @focusout="${(x, c) => x.focusoutHandler(c.event)}"
22836
23044
  >
22837
- <${DesignSystem.tagFor(ToggleButton)}
23045
+ <${toggleButtonTag}
22838
23046
  part="button"
22839
23047
  appearance="${x => x.appearance}"
22840
23048
  ?content-hidden="${x => x.contentHidden}"
@@ -22851,9 +23059,9 @@
22851
23059
  <slot slot="start" name="start"></slot>
22852
23060
  <slot></slot>
22853
23061
  <slot slot="end" name="end"></slot>
22854
- </${DesignSystem.tagFor(ToggleButton)}>
23062
+ </${toggleButtonTag}>
22855
23063
  ${when(x => x.open, html `
22856
- <${DesignSystem.tagFor(AnchoredRegion)}
23064
+ <${anchoredRegionTag}
22857
23065
  fixed-placement="true"
22858
23066
  auto-update-mode="auto"
22859
23067
  horizontal-inset="true"
@@ -22867,7 +23075,7 @@
22867
23075
  <span part="menu">
22868
23076
  <slot name="menu" ${slotted({ property: 'slottedMenus' })}></slot>
22869
23077
  </span>
22870
- </${DesignSystem.tagFor(AnchoredRegion)}>
23078
+ </${anchoredRegionTag}>
22871
23079
  `)}
22872
23080
  </template>
22873
23081
  `;
@@ -23091,7 +23299,7 @@
23091
23299
  }
23092
23300
  });
23093
23301
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleMenuButton());
23094
- DesignSystem.tagFor(MenuButton);
23302
+ const menuButtonTag = DesignSystem.tagFor(MenuButton);
23095
23303
 
23096
23304
  const styles$l = css `
23097
23305
  ${display('grid')}
@@ -23427,37 +23635,37 @@
23427
23635
  delegatesFocus: true
23428
23636
  },
23429
23637
  stepDownGlyph: html `
23430
- <${DesignSystem.tagFor(Button)}
23638
+ <${buttonTag}
23431
23639
  class="step-up-down-button"
23432
23640
  appearance="ghost"
23433
23641
  content-hidden
23434
23642
  tabindex="-1"
23435
23643
  >
23436
23644
  "Decrement"
23437
- <${DesignSystem.tagFor(IconMinusWide)}
23645
+ <${iconMinusWideTag}
23438
23646
  slot="start"
23439
23647
  >
23440
- </${DesignSystem.tagFor(IconMinusWide)}>
23441
- </${DesignSystem.tagFor(Button)}>
23648
+ </${iconMinusWideTag}>
23649
+ </${buttonTag}>
23442
23650
  `,
23443
23651
  stepUpGlyph: html `
23444
- <${DesignSystem.tagFor(Button)}
23652
+ <${buttonTag}
23445
23653
  class="step-up-down-button"
23446
23654
  appearance="ghost"
23447
23655
  content-hidden
23448
23656
  tabindex="-1"
23449
23657
  >
23450
23658
  "Increment"
23451
- <${DesignSystem.tagFor(IconAdd)}
23659
+ <${iconAddTag}
23452
23660
  slot="start">
23453
- </${DesignSystem.tagFor(IconAdd)}>
23454
- </${DesignSystem.tagFor(Button)}>
23661
+ </${iconAddTag}>
23662
+ </${buttonTag}>
23455
23663
  `,
23456
23664
  end: html `
23457
- <${DesignSystem.tagFor(IconExclamationMark)}
23665
+ <${iconExclamationMarkTag}
23458
23666
  severity="error"
23459
23667
  class="error-icon"
23460
- ></${DesignSystem.tagFor(IconExclamationMark)}>
23668
+ ></${iconExclamationMarkTag}>
23461
23669
  ${errorTextTemplate}
23462
23670
  `
23463
23671
  });
@@ -23694,10 +23902,10 @@
23694
23902
  styles: styles$h,
23695
23903
  indicator: arrowExpanderDown16X16.data,
23696
23904
  end: html `
23697
- <${DesignSystem.tagFor(IconExclamationMark)}
23905
+ <${iconExclamationMarkTag}
23698
23906
  severity="error"
23699
23907
  class="error-icon"
23700
- ></${DesignSystem.tagFor(IconExclamationMark)}>
23908
+ ></${iconExclamationMarkTag}>
23701
23909
  ${errorTextTemplate}
23702
23910
  `
23703
23911
  });
@@ -27487,10 +27695,10 @@
27487
27695
 
27488
27696
  <span class="sort-indicator" aria-hidden="true">
27489
27697
  ${when(x => x.sortDirection === TableColumnSortDirection.ascending, html `
27490
- <${DesignSystem.tagFor(IconArrowUp)}></${DesignSystem.tagFor(IconArrowUp)}>
27698
+ <${iconArrowUpTag}></${iconArrowUpTag}>
27491
27699
  `)}
27492
27700
  ${when(x => x.sortDirection === TableColumnSortDirection.descending, html `
27493
- <${DesignSystem.tagFor(IconArrowDown)}></${DesignSystem.tagFor(IconArrowDown)}>
27701
+ <${iconArrowDownTag}></${iconArrowDownTag}>
27494
27702
  `)}
27495
27703
  </span>
27496
27704
  </template>
@@ -27537,6 +27745,7 @@
27537
27745
  styles: styles$c
27538
27746
  });
27539
27747
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTableHeader());
27748
+ const tableHeaderTag = DesignSystem.tagFor(TableHeader);
27540
27749
 
27541
27750
  const styles$b = css `
27542
27751
  ${display('grid')}
@@ -27593,17 +27802,17 @@
27593
27802
  <div ${ref('cellContentContainer')} class="cell-content-container"></div>
27594
27803
 
27595
27804
  ${when(x => x.hasActionMenu, html `
27596
- <${DesignSystem.tagFor(MenuButton)}
27805
+ <${menuButtonTag}
27597
27806
  content-hidden
27598
27807
  appearance="${ButtonAppearance.ghost}"
27599
27808
  @beforetoggle="${(x, c) => x.onActionMenuBeforeToggle(c.event)}"
27600
27809
  @toggle="${(x, c) => x.onActionMenuToggle(c.event)}"
27601
27810
  class="action-menu"
27602
27811
  >
27603
- <${DesignSystem.tagFor(IconThreeDotsLine)} slot="start"></${DesignSystem.tagFor(IconThreeDotsLine)}>
27812
+ <${iconThreeDotsLineTag} slot="start"></${iconThreeDotsLineTag}>
27604
27813
  ${x => x.actionMenuLabel}
27605
27814
  <slot name="cellActionMenu" slot="menu"></slot>
27606
- </${DesignSystem.tagFor(MenuButton)}>
27815
+ </${menuButtonTag}>
27607
27816
  `)}
27608
27817
  </template>
27609
27818
  `;
@@ -27678,13 +27887,14 @@
27678
27887
  styles: styles$a
27679
27888
  });
27680
27889
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTableCell());
27890
+ const tableCellTag = DesignSystem.tagFor(TableCell);
27681
27891
 
27682
27892
  // prettier-ignore
27683
27893
  const template$5 = html `
27684
27894
  <template role="row">
27685
27895
  ${repeat(x => x.columnStates, html `
27686
27896
  ${when(x => !x.column.columnHidden, html `
27687
- <${DesignSystem.tagFor(TableCell)}
27897
+ <${tableCellTag}
27688
27898
  class="cell"
27689
27899
  :cellTemplate="${x => x.column.cellTemplate}"
27690
27900
  :cellStyles="${x => x.column.cellStyles}"
@@ -27701,7 +27911,7 @@
27701
27911
  slot="cellActionMenu"
27702
27912
  ></slot>
27703
27913
  `)}
27704
- </${DesignSystem.tagFor(TableCell)}>
27914
+ </${tableCellTag}>
27705
27915
  `)}
27706
27916
  `)}
27707
27917
  </template>
@@ -27784,6 +27994,7 @@
27784
27994
  styles: styles$b
27785
27995
  });
27786
27996
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTableRow());
27997
+ const tableRowTag = DesignSystem.tagFor(TableRow);
27787
27998
 
27788
27999
  // prettier-ignore
27789
28000
  const template$4 = html `
@@ -27799,13 +28010,13 @@
27799
28010
  <div class="header-row" role="row">
27800
28011
  ${repeat(x => x.columns, html `
27801
28012
  ${when(x => !x.columnHidden, html `
27802
- <${DesignSystem.tagFor(TableHeader)}
28013
+ <${tableHeaderTag}
27803
28014
  class="header"
27804
28015
  sort-direction="${x => (typeof x.sortIndex === 'number' ? x.sortDirection : TableColumnSortDirection.none)}"
27805
28016
  ?first-sorted-column="${(x, c) => x === c.parent.firstSortedColumn}"
27806
28017
  >
27807
28018
  <slot name="${x => x.slot}"></slot>
27808
- </${DesignSystem.tagFor(TableHeader)}>
28019
+ </${tableHeaderTag}>
27809
28020
  `)}
27810
28021
  `)}
27811
28022
  <div class="header-scrollbar-spacer"></div>
@@ -27817,7 +28028,7 @@
27817
28028
  role="rowgroup">
27818
28029
  ${when(x => x.columns.length > 0 && x.canRenderRows, html `
27819
28030
  ${repeat(x => x.virtualizer.visibleItems, html `
27820
- <${DesignSystem.tagFor(TableRow)}
28031
+ <${tableRowTag}
27821
28032
  class="row"
27822
28033
  record-id="${(x, c) => c.parent.tableData[x.index]?.id}"
27823
28034
  :dataRecord="${(x, c) => c.parent.tableData[x.index]?.record}"
@@ -27833,7 +28044,7 @@
27833
28044
  </slot>
27834
28045
  `)}
27835
28046
  `)}
27836
- </${DesignSystem.tagFor(TableRow)}>
28047
+ </${tableRowTag}>
27837
28048
  `)}
27838
28049
  `)}
27839
28050
  </div>
@@ -29660,10 +29871,10 @@
29660
29871
  delegatesFocus: true
29661
29872
  },
29662
29873
  end: html `
29663
- <${DesignSystem.tagFor(IconExclamationMark)}
29874
+ <${iconExclamationMarkTag}
29664
29875
  severity="error"
29665
29876
  class="error-icon"
29666
- ></${DesignSystem.tagFor(IconExclamationMark)}>
29877
+ ></${iconExclamationMarkTag}>
29667
29878
  <span part="actions">
29668
29879
  <slot name="actions"></slot>
29669
29880
  </span>
@@ -29806,7 +30017,7 @@
29806
30017
  // prettier-ignore
29807
30018
  const template$1 = html `
29808
30019
  ${when(x => x.tooltipVisible, html `
29809
- <${DesignSystem.tagFor(AnchoredRegion)}
30020
+ <${anchoredRegionTag}
29810
30021
  class="anchored-region"
29811
30022
  fixed-placement="true"
29812
30023
  auto-update-mode="${x => x.autoUpdateMode}"
@@ -29824,17 +30035,17 @@
29824
30035
  ${ref('region')}
29825
30036
  >
29826
30037
  <div class="tooltip" part="tooltip" role="tooltip">
29827
- <${DesignSystem.tagFor(IconExclamationMark)}
30038
+ <${iconExclamationMarkTag}
29828
30039
  severity="error"
29829
30040
  class="status-icon"
29830
- ></${DesignSystem.tagFor(IconExclamationMark)}>
29831
- <${DesignSystem.tagFor(IconInfo)}
30041
+ ></${iconExclamationMarkTag}>
30042
+ <${iconInfoTag}
29832
30043
  severity="information"
29833
30044
  class="status-icon"
29834
- ></${DesignSystem.tagFor(IconInfo)}>
30045
+ ></${iconInfoTag}>
29835
30046
  <slot></slot>
29836
30047
  </div>
29837
- </${DesignSystem.tagFor(AnchoredRegion)}>
30048
+ </${anchoredRegionTag}>
29838
30049
  `)}
29839
30050
  `;
29840
30051
 
@@ -30072,12 +30283,6 @@
30072
30283
  height: ${iconSize};
30073
30284
  }
30074
30285
 
30075
- ${
30076
- /*
30077
- Cannot call DesignSystem.tagFor(TreeItem) as this string is evaluated
30078
- before the registration of the element itself; the style is self-referencing.
30079
- Instead styling against the role which is more general and likely a better approach.
30080
- */ ''}
30081
30286
  ::slotted([role='treeitem']) {
30082
30287
  --ni-private-tree-item-nested-width: 1em;
30083
30288
  --ni-private-expand-collapse-button-nested-width: calc(