@ni/nimble-components 24.1.14 → 25.0.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/README.md +7 -0
  2. package/dist/all-components-bundle.js +236 -180
  3. package/dist/all-components-bundle.js.map +1 -1
  4. package/dist/all-components-bundle.min.js +446 -421
  5. package/dist/all-components-bundle.min.js.map +1 -1
  6. package/dist/esm/mapping/icon/index.d.ts +1 -0
  7. package/dist/esm/mapping/icon/index.js +7 -0
  8. package/dist/esm/mapping/icon/index.js.map +1 -1
  9. package/dist/esm/mapping/spinner/index.d.ts +1 -0
  10. package/dist/esm/mapping/spinner/index.js +7 -0
  11. package/dist/esm/mapping/spinner/index.js.map +1 -1
  12. package/dist/esm/src/mapping/icon/index.d.ts +1 -0
  13. package/dist/esm/src/mapping/spinner/index.d.ts +1 -0
  14. package/dist/esm/src/table/testing/table.pageobject.d.ts +4 -4
  15. package/dist/esm/src/table-column/enum-base/models/mapping-icon-config.d.ts +3 -1
  16. package/dist/esm/src/table-column/enum-base/models/mapping-spinner-config.d.ts +8 -1
  17. package/dist/esm/src/table-column/icon/cell-view/index.d.ts +6 -3
  18. package/dist/esm/src/table-column/icon/cell-view/styles.d.ts +1 -0
  19. package/dist/esm/src/table-column/icon/group-header-view/index.d.ts +4 -3
  20. package/dist/esm/src/table-column/icon/testing/table-column-icon.pageobject.d.ts +23 -0
  21. package/dist/esm/table/testing/table.pageobject.d.ts +4 -4
  22. package/dist/esm/table/testing/table.pageobject.js +15 -37
  23. package/dist/esm/table/testing/table.pageobject.js.map +1 -1
  24. package/dist/esm/table-column/enum-base/models/mapping-icon-config.d.ts +3 -1
  25. package/dist/esm/table-column/enum-base/models/mapping-icon-config.js +4 -3
  26. package/dist/esm/table-column/enum-base/models/mapping-icon-config.js.map +1 -1
  27. package/dist/esm/table-column/enum-base/models/mapping-spinner-config.d.ts +8 -1
  28. package/dist/esm/table-column/enum-base/models/mapping-spinner-config.js +13 -1
  29. package/dist/esm/table-column/enum-base/models/mapping-spinner-config.js.map +1 -1
  30. package/dist/esm/table-column/icon/cell-view/index.d.ts +6 -3
  31. package/dist/esm/table-column/icon/cell-view/index.js +19 -7
  32. package/dist/esm/table-column/icon/cell-view/index.js.map +1 -1
  33. package/dist/esm/table-column/icon/cell-view/styles.d.ts +1 -0
  34. package/dist/esm/table-column/icon/cell-view/styles.js +27 -0
  35. package/dist/esm/table-column/icon/cell-view/styles.js.map +1 -0
  36. package/dist/esm/table-column/icon/cell-view/template.js +15 -8
  37. package/dist/esm/table-column/icon/cell-view/template.js.map +1 -1
  38. package/dist/esm/table-column/icon/group-header-view/index.d.ts +4 -3
  39. package/dist/esm/table-column/icon/group-header-view/index.js +8 -8
  40. package/dist/esm/table-column/icon/group-header-view/index.js.map +1 -1
  41. package/dist/esm/table-column/icon/group-header-view/styles.js +5 -3
  42. package/dist/esm/table-column/icon/group-header-view/styles.js.map +1 -1
  43. package/dist/esm/table-column/icon/group-header-view/template.js +10 -24
  44. package/dist/esm/table-column/icon/group-header-view/template.js.map +1 -1
  45. package/dist/esm/table-column/icon/index.js +2 -2
  46. package/dist/esm/table-column/icon/index.js.map +1 -1
  47. package/dist/esm/table-column/icon/testing/table-column-icon.pageobject.d.ts +23 -0
  48. package/dist/esm/table-column/icon/testing/table-column-icon.pageobject.js +79 -0
  49. package/dist/esm/table-column/icon/testing/table-column-icon.pageobject.js.map +1 -0
  50. package/package.json +1 -1
@@ -16333,7 +16333,7 @@
16333
16333
 
16334
16334
  /**
16335
16335
  * Do not edit directly
16336
- * Generated on Mon, 15 Apr 2024 17:21:28 GMT
16336
+ * Generated on Wed, 17 Apr 2024 20:41:20 GMT
16337
16337
  */
16338
16338
 
16339
16339
  const Information100DarkUi = "#a46eff";
@@ -16772,7 +16772,7 @@
16772
16772
 
16773
16773
  const template$F = html `<slot></slot>`;
16774
16774
 
16775
- const styles$X = css `
16775
+ const styles$Y = css `
16776
16776
  :host {
16777
16777
  display: contents;
16778
16778
  }
@@ -16889,7 +16889,7 @@
16889
16889
  ], ThemeProvider.prototype, "theme", void 0);
16890
16890
  const nimbleDesignSystemProvider = ThemeProvider.compose({
16891
16891
  baseName: 'theme-provider',
16892
- styles: styles$X,
16892
+ styles: styles$Y,
16893
16893
  template: template$F
16894
16894
  });
16895
16895
  DesignSystem.getOrCreate()
@@ -17097,7 +17097,7 @@
17097
17097
  }
17098
17098
  }
17099
17099
 
17100
- const styles$W = css `
17100
+ const styles$X = css `
17101
17101
  @layer base, hover, focusVisible, active, disabled;
17102
17102
 
17103
17103
  @layer base {
@@ -17276,7 +17276,7 @@
17276
17276
  baseName: 'anchor',
17277
17277
  baseClass: Anchor$1,
17278
17278
  template: template$E,
17279
- styles: styles$W,
17279
+ styles: styles$X,
17280
17280
  shadowOptions: {
17281
17281
  delegatesFocus: true
17282
17282
  }
@@ -17379,7 +17379,7 @@
17379
17379
  padding: 0;
17380
17380
  `;
17381
17381
 
17382
- const styles$V = css `
17382
+ const styles$W = css `
17383
17383
  @layer base, checked, hover, focusVisible, active, disabled, top;
17384
17384
 
17385
17385
  @layer base {
@@ -17657,8 +17657,8 @@
17657
17657
  }
17658
17658
  `));
17659
17659
 
17660
- const styles$U = css `
17661
- ${styles$V}
17660
+ const styles$V = css `
17661
+ ${styles$W}
17662
17662
  ${buttonAppearanceVariantStyles}
17663
17663
 
17664
17664
  .control {
@@ -17761,7 +17761,7 @@
17761
17761
  const nimbleAnchorButton = AnchorButton.compose({
17762
17762
  baseName: 'anchor-button',
17763
17763
  template: template$D,
17764
- styles: styles$U,
17764
+ styles: styles$V,
17765
17765
  shadowOptions: {
17766
17766
  delegatesFocus: true
17767
17767
  }
@@ -17769,7 +17769,7 @@
17769
17769
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleAnchorButton());
17770
17770
  const anchorButtonTag = 'nimble-anchor-button';
17771
17771
 
17772
- const styles$T = css `
17772
+ const styles$U = css `
17773
17773
  ${display('grid')}
17774
17774
 
17775
17775
  :host {
@@ -17953,7 +17953,7 @@
17953
17953
  const nimbleAnchorMenuItem = AnchorMenuItem.compose({
17954
17954
  baseName: 'anchor-menu-item',
17955
17955
  template: template$C,
17956
- styles: styles$T,
17956
+ styles: styles$U,
17957
17957
  shadowOptions: {
17958
17958
  delegatesFocus: true
17959
17959
  }
@@ -17962,7 +17962,7 @@
17962
17962
  .withPrefix('nimble')
17963
17963
  .register(nimbleAnchorMenuItem());
17964
17964
 
17965
- const styles$S = css `
17965
+ const styles$T = css `
17966
17966
  ${display('inline-flex')}
17967
17967
 
17968
17968
  :host {
@@ -18132,14 +18132,14 @@
18132
18132
  const nimbleAnchorTab = AnchorTab.compose({
18133
18133
  baseName: 'anchor-tab',
18134
18134
  template: template$B,
18135
- styles: styles$S,
18135
+ styles: styles$T,
18136
18136
  shadowOptions: {
18137
18137
  delegatesFocus: true
18138
18138
  }
18139
18139
  });
18140
18140
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleAnchorTab());
18141
18141
 
18142
- const styles$R = css `
18142
+ const styles$S = css `
18143
18143
  ${display('grid')}
18144
18144
 
18145
18145
  :host {
@@ -18368,7 +18368,7 @@
18368
18368
  const nimbleAnchorTabs = AnchorTabs.compose({
18369
18369
  baseName: 'anchor-tabs',
18370
18370
  template: template$A,
18371
- styles: styles$R,
18371
+ styles: styles$S,
18372
18372
  shadowOptions: {
18373
18373
  delegatesFocus: false
18374
18374
  }
@@ -18384,7 +18384,7 @@
18384
18384
  -webkit-user-select: none;
18385
18385
  `;
18386
18386
 
18387
- const styles$Q = css `
18387
+ const styles$R = css `
18388
18388
  ${display('block')}
18389
18389
 
18390
18390
  :host {
@@ -18628,7 +18628,7 @@
18628
18628
  const nimbleAnchorTreeItem = AnchorTreeItem.compose({
18629
18629
  baseName: 'anchor-tree-item',
18630
18630
  template: template$z,
18631
- styles: styles$Q,
18631
+ styles: styles$R,
18632
18632
  shadowOptions: {
18633
18633
  delegatesFocus: true
18634
18634
  }
@@ -18644,7 +18644,7 @@
18644
18644
  zIndex1000: '1000'
18645
18645
  };
18646
18646
 
18647
- const styles$P = css `
18647
+ const styles$Q = css `
18648
18648
  :host {
18649
18649
  /* Avoid using the 'display' helper to customize hidden behavior */
18650
18650
  display: block;
@@ -18673,7 +18673,7 @@
18673
18673
  baseName: 'anchored-region',
18674
18674
  baseClass: AnchoredRegion$1,
18675
18675
  template: anchoredRegionTemplate,
18676
- styles: styles$P
18676
+ styles: styles$Q
18677
18677
  });
18678
18678
  DesignSystem.getOrCreate()
18679
18679
  .withPrefix('nimble')
@@ -18753,7 +18753,7 @@
18753
18753
  */
18754
18754
  const themeBehavior = (theme, styles) => new ThemeStyleSheetBehavior(theme, styles);
18755
18755
 
18756
- const styles$O = css `
18756
+ const styles$P = css `
18757
18757
  ${display('flex')}
18758
18758
 
18759
18759
  :host {
@@ -18896,8 +18896,8 @@
18896
18896
  }
18897
18897
  `));
18898
18898
 
18899
- const styles$N = css `
18900
- ${styles$V}
18899
+ const styles$O = css `
18900
+ ${styles$W}
18901
18901
  ${buttonAppearanceVariantStyles}
18902
18902
  `;
18903
18903
 
@@ -18943,7 +18943,7 @@
18943
18943
  baseName: 'button',
18944
18944
  baseClass: Button$1,
18945
18945
  template: buttonTemplate,
18946
- styles: styles$N,
18946
+ styles: styles$O,
18947
18947
  shadowOptions: {
18948
18948
  delegatesFocus: true
18949
18949
  }
@@ -19700,7 +19700,7 @@
19700
19700
  :innerHTML=${x => x.icon.data}
19701
19701
  ></div>`;
19702
19702
 
19703
- const styles$M = css `
19703
+ const styles$N = css `
19704
19704
  ${display('inline-flex')}
19705
19705
 
19706
19706
  :host {
@@ -19754,7 +19754,7 @@
19754
19754
  const composedIcon = iconClass.compose({
19755
19755
  baseName,
19756
19756
  template: template$y,
19757
- styles: styles$M,
19757
+ styles: styles$N,
19758
19758
  baseClass: iconClass
19759
19759
  });
19760
19760
  DesignSystem.getOrCreate().withPrefix('nimble').register(composedIcon());
@@ -19985,11 +19985,11 @@
19985
19985
  const nimbleBanner = Banner.compose({
19986
19986
  baseName: 'banner',
19987
19987
  template: template$x,
19988
- styles: styles$O
19988
+ styles: styles$P
19989
19989
  });
19990
19990
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleBanner());
19991
19991
 
19992
- const styles$L = css `
19992
+ const styles$M = css `
19993
19993
  ${display('inline-block')}
19994
19994
 
19995
19995
  :host {
@@ -20030,11 +20030,11 @@
20030
20030
  baseName: 'breadcrumb',
20031
20031
  baseClass: Breadcrumb$1,
20032
20032
  template: breadcrumbTemplate,
20033
- styles: styles$L
20033
+ styles: styles$M
20034
20034
  });
20035
20035
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleBreadcrumb());
20036
20036
 
20037
- const styles$K = css `
20037
+ const styles$L = css `
20038
20038
  ${display('inline-flex')}
20039
20039
 
20040
20040
  :host {
@@ -20112,14 +20112,14 @@
20112
20112
  baseName: 'breadcrumb-item',
20113
20113
  baseClass: BreadcrumbItem$1,
20114
20114
  template: breadcrumbItemTemplate,
20115
- styles: styles$K,
20115
+ styles: styles$L,
20116
20116
  separator: forwardSlash16X16.data
20117
20117
  });
20118
20118
  DesignSystem.getOrCreate()
20119
20119
  .withPrefix('nimble')
20120
20120
  .register(nimbleBreadcrumbItem());
20121
20121
 
20122
- const styles$J = css `
20122
+ const styles$K = css `
20123
20123
  ${display('flex')}
20124
20124
 
20125
20125
  :host {
@@ -20159,11 +20159,11 @@
20159
20159
  baseName: 'card',
20160
20160
  baseClass: Card$1,
20161
20161
  template: template$w,
20162
- styles: styles$J
20162
+ styles: styles$K
20163
20163
  });
20164
20164
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleCard());
20165
20165
 
20166
- const styles$I = css `
20166
+ const styles$J = css `
20167
20167
  ${display('inline-flex')}
20168
20168
 
20169
20169
  :host {
@@ -20322,14 +20322,14 @@
20322
20322
  const nimbleCardButton = CardButton.compose({
20323
20323
  baseName: 'card-button',
20324
20324
  template: buttonTemplate,
20325
- styles: styles$I,
20325
+ styles: styles$J,
20326
20326
  shadowOptions: {
20327
20327
  delegatesFocus: true
20328
20328
  }
20329
20329
  });
20330
20330
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleCardButton());
20331
20331
 
20332
- const styles$H = css `
20332
+ const styles$I = css `
20333
20333
  ${display('inline-flex')}
20334
20334
 
20335
20335
  :host {
@@ -20447,15 +20447,15 @@
20447
20447
  baseName: 'checkbox',
20448
20448
  baseClass: Checkbox$1,
20449
20449
  template: checkboxTemplate,
20450
- styles: styles$H,
20450
+ styles: styles$I,
20451
20451
  checkedIndicator: check16X16.data,
20452
20452
  indeterminateIndicator: minus16X16.data
20453
20453
  });
20454
20454
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleCheckbox());
20455
20455
  const checkboxTag = 'nimble-checkbox';
20456
20456
 
20457
- const styles$G = css `
20458
- ${styles$V}
20457
+ const styles$H = css `
20458
+ ${styles$W}
20459
20459
  ${buttonAppearanceVariantStyles}
20460
20460
 
20461
20461
  @layer checked {
@@ -20581,7 +20581,7 @@
20581
20581
  const nimbleToggleButton = ToggleButton.compose({
20582
20582
  baseName: 'toggle-button',
20583
20583
  template: template$v,
20584
- styles: styles$G,
20584
+ styles: styles$H,
20585
20585
  shadowOptions: {
20586
20586
  delegatesFocus: true
20587
20587
  }
@@ -20618,7 +20618,7 @@
20618
20618
  block: 'block'
20619
20619
  };
20620
20620
 
20621
- const styles$F = css `
20621
+ const styles$G = css `
20622
20622
  ${display('inline-flex')}
20623
20623
 
20624
20624
  :host {
@@ -20838,7 +20838,7 @@
20838
20838
  }
20839
20839
  `));
20840
20840
 
20841
- const styles$E = css `
20841
+ const styles$F = css `
20842
20842
  .error-icon {
20843
20843
  display: none;
20844
20844
  }
@@ -20885,9 +20885,9 @@
20885
20885
  standard: 'standard'
20886
20886
  };
20887
20887
 
20888
- const styles$D = css `
20888
+ const styles$E = css `
20889
+ ${styles$G}
20889
20890
  ${styles$F}
20890
- ${styles$E}
20891
20891
 
20892
20892
  :host {
20893
20893
  --ni-private-hover-bottom-border-width: 2px;
@@ -21729,7 +21729,7 @@
21729
21729
  baseName: 'combobox',
21730
21730
  baseClass: FormAssociatedCombobox,
21731
21731
  template: template$u,
21732
- styles: styles$D,
21732
+ styles: styles$E,
21733
21733
  shadowOptions: {
21734
21734
  delegatesFocus: true
21735
21735
  },
@@ -21774,7 +21774,7 @@
21774
21774
  */
21775
21775
  const UserDismissed = Symbol('user dismissed');
21776
21776
 
21777
- const styles$C = css `
21777
+ const styles$D = css `
21778
21778
  ${display('grid')}
21779
21779
 
21780
21780
  dialog {
@@ -22029,12 +22029,12 @@
22029
22029
  const nimbleDialog = Dialog.compose({
22030
22030
  baseName: 'dialog',
22031
22031
  template: template$t,
22032
- styles: styles$C,
22032
+ styles: styles$D,
22033
22033
  baseClass: Dialog
22034
22034
  });
22035
22035
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleDialog());
22036
22036
 
22037
- const styles$B = css `
22037
+ const styles$C = css `
22038
22038
  ${display('block')}
22039
22039
 
22040
22040
  :host {
@@ -22331,7 +22331,7 @@
22331
22331
  const nimbleDrawer = Drawer.compose({
22332
22332
  baseName: 'drawer',
22333
22333
  template: template$s,
22334
- styles: styles$B
22334
+ styles: styles$C
22335
22335
  });
22336
22336
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleDrawer());
22337
22337
 
@@ -24777,7 +24777,7 @@
24777
24777
  .withPrefix('nimble')
24778
24778
  .register(nimbleLabelProviderTable());
24779
24779
 
24780
- const styles$A = css `
24780
+ const styles$B = css `
24781
24781
  ${display('flex')}
24782
24782
 
24783
24783
  :host {
@@ -24938,7 +24938,7 @@
24938
24938
  baseName: 'list-option',
24939
24939
  baseClass: ListboxOption,
24940
24940
  template: template$r,
24941
- styles: styles$A
24941
+ styles: styles$B
24942
24942
  });
24943
24943
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleListOption());
24944
24944
  const listOptionTag = 'nimble-list-option';
@@ -24979,6 +24979,10 @@
24979
24979
  * how specific data values should be displayed as icons in that column's cells.
24980
24980
  */
24981
24981
  class MappingIcon extends Mapping$1 {
24982
+ constructor() {
24983
+ super(...arguments);
24984
+ this.textHidden = false;
24985
+ }
24982
24986
  // Allow icons to be defined asynchronously from when the property is configured
24983
24987
  async resolveIconAsync(icon) {
24984
24988
  try {
@@ -25024,6 +25028,9 @@
25024
25028
  __decorate$1([
25025
25029
  attr()
25026
25030
  ], MappingIcon.prototype, "text", void 0);
25031
+ __decorate$1([
25032
+ attr({ attribute: 'text-hidden', mode: 'boolean' })
25033
+ ], MappingIcon.prototype, "textHidden", void 0);
25027
25034
  __decorate$1([
25028
25035
  observable
25029
25036
  ], MappingIcon.prototype, "resolvedIcon", void 0);
@@ -25039,17 +25046,24 @@
25039
25046
  * which specific data values should be displayed as spinners in that column's cells.
25040
25047
  */
25041
25048
  class MappingSpinner extends Mapping$1 {
25049
+ constructor() {
25050
+ super(...arguments);
25051
+ this.textHidden = false;
25052
+ }
25042
25053
  }
25043
25054
  __decorate$1([
25044
25055
  attr()
25045
25056
  ], MappingSpinner.prototype, "text", void 0);
25057
+ __decorate$1([
25058
+ attr({ attribute: 'text-hidden', mode: 'boolean' })
25059
+ ], MappingSpinner.prototype, "textHidden", void 0);
25046
25060
  const spinnerMapping = MappingSpinner.compose({
25047
25061
  baseName: 'mapping-spinner',
25048
25062
  template: template$q
25049
25063
  });
25050
25064
  DesignSystem.getOrCreate().withPrefix('nimble').register(spinnerMapping());
25051
25065
 
25052
- const styles$z = css `
25066
+ const styles$A = css `
25053
25067
  ${display('grid')}
25054
25068
 
25055
25069
  :host {
@@ -25116,7 +25130,7 @@
25116
25130
  baseName: 'menu',
25117
25131
  baseClass: Menu$1,
25118
25132
  template: menuTemplate,
25119
- styles: styles$z
25133
+ styles: styles$A
25120
25134
  });
25121
25135
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleMenu());
25122
25136
 
@@ -25133,7 +25147,7 @@
25133
25147
  auto: 'auto'
25134
25148
  };
25135
25149
 
25136
- const styles$y = css `
25150
+ const styles$z = css `
25137
25151
  ${display('inline-block')}
25138
25152
 
25139
25153
  :host {
@@ -25399,7 +25413,7 @@
25399
25413
  const nimbleMenuButton = MenuButton.compose({
25400
25414
  baseName: 'menu-button',
25401
25415
  template: template$p,
25402
- styles: styles$y,
25416
+ styles: styles$z,
25403
25417
  shadowOptions: {
25404
25418
  delegatesFocus: true
25405
25419
  }
@@ -25407,7 +25421,7 @@
25407
25421
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleMenuButton());
25408
25422
  const menuButtonTag = 'nimble-menu-button';
25409
25423
 
25410
- const styles$x = css `
25424
+ const styles$y = css `
25411
25425
  ${display('grid')}
25412
25426
 
25413
25427
  :host {
@@ -25505,7 +25519,7 @@
25505
25519
  baseName: 'menu-item',
25506
25520
  baseClass: MenuItem$1,
25507
25521
  template: menuItemTemplate,
25508
- styles: styles$x,
25522
+ styles: styles$y,
25509
25523
  expandCollapseGlyph: arrowExpanderRight16X16.data
25510
25524
  });
25511
25525
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleMenuItem());
@@ -25519,9 +25533,9 @@
25519
25533
  block: 'block'
25520
25534
  };
25521
25535
 
25522
- const styles$w = css `
25536
+ const styles$x = css `
25523
25537
  ${display('inline-block')}
25524
- ${styles$E}
25538
+ ${styles$F}
25525
25539
 
25526
25540
  :host {
25527
25541
  font: ${bodyFont};
@@ -25735,7 +25749,7 @@
25735
25749
  baseName: 'number-field',
25736
25750
  baseClass: NumberField$1,
25737
25751
  template: numberFieldTemplate,
25738
- styles: styles$w,
25752
+ styles: styles$x,
25739
25753
  shadowOptions: {
25740
25754
  delegatesFocus: true
25741
25755
  },
@@ -25778,7 +25792,7 @@
25778
25792
  });
25779
25793
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleNumberField());
25780
25794
 
25781
- const styles$v = css `
25795
+ const styles$w = css `
25782
25796
  ${display('inline-flex')}
25783
25797
 
25784
25798
  :host {
@@ -25879,12 +25893,12 @@
25879
25893
  baseName: 'radio',
25880
25894
  baseClass: Radio$1,
25881
25895
  template: radioTemplate,
25882
- styles: styles$v,
25896
+ styles: styles$w,
25883
25897
  checkedIndicator: circleFilled16X16.data
25884
25898
  });
25885
25899
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleRadio());
25886
25900
 
25887
- const styles$u = css `
25901
+ const styles$v = css `
25888
25902
  ${display('inline-block')}
25889
25903
 
25890
25904
  .positioning-region {
@@ -25919,7 +25933,7 @@
25919
25933
  baseName: 'radio-group',
25920
25934
  baseClass: RadioGroup$1,
25921
25935
  template: radioGroupTemplate,
25922
- styles: styles$u,
25936
+ styles: styles$v,
25923
25937
  shadowOptions: {
25924
25938
  delegatesFocus: true
25925
25939
  }
@@ -43360,7 +43374,7 @@ img.ProseMirror-separator {
43360
43374
  },
43361
43375
  });
43362
43376
 
43363
- const styles$t = css `
43377
+ const styles$u = css `
43364
43378
  .positioning-region {
43365
43379
  display: flex;
43366
43380
  padding: ${smallPadding} ${standardPadding};
@@ -43395,7 +43409,7 @@ img.ProseMirror-separator {
43395
43409
  baseName: 'toolbar',
43396
43410
  baseClass: Toolbar$1,
43397
43411
  template: toolbarTemplate,
43398
- styles: styles$t,
43412
+ styles: styles$u,
43399
43413
  shadowOptions: {
43400
43414
  delegatesFocus: true
43401
43415
  }
@@ -43427,8 +43441,8 @@ img.ProseMirror-separator {
43427
43441
  cssCustomPropertyName: null
43428
43442
  }).withDefault(richTextLabelDefaults.richTextToggleNumberedListLabel);
43429
43443
 
43430
- const styles$s = css `
43431
- ${styles$F}
43444
+ const styles$t = css `
43445
+ ${styles$G}
43432
43446
 
43433
43447
  :host {
43434
43448
  height: auto;
@@ -43445,7 +43459,7 @@ img.ProseMirror-separator {
43445
43459
  }
43446
43460
  `;
43447
43461
 
43448
- const styles$r = css `
43462
+ const styles$s = css `
43449
43463
  ${display('inline-flex')}
43450
43464
 
43451
43465
  :host {
@@ -43477,7 +43491,7 @@ img.ProseMirror-separator {
43477
43491
  const nimbleListbox = Listbox.compose({
43478
43492
  baseName: 'listbox',
43479
43493
  template: listboxTemplate,
43480
- styles: styles$r
43494
+ styles: styles$s
43481
43495
  });
43482
43496
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleListbox());
43483
43497
 
@@ -43744,7 +43758,7 @@ img.ProseMirror-separator {
43744
43758
  const nimbleRichTextMentionListbox = RichTextMentionListbox.compose({
43745
43759
  baseName: 'rich-text-mention-listbox',
43746
43760
  template: template$o,
43747
- styles: styles$s
43761
+ styles: styles$t
43748
43762
  });
43749
43763
  DesignSystem.getOrCreate()
43750
43764
  .withPrefix('nimble')
@@ -43854,9 +43868,9 @@ img.ProseMirror-separator {
43854
43868
  </template>
43855
43869
  `;
43856
43870
 
43857
- const styles$q = css `
43871
+ const styles$r = css `
43858
43872
  ${display('inline-flex')}
43859
- ${styles$E}
43873
+ ${styles$F}
43860
43874
 
43861
43875
  :host {
43862
43876
  font: ${bodyFont};
@@ -58469,7 +58483,7 @@ img.ProseMirror-separator {
58469
58483
  const nimbleRichTextEditor = RichTextEditor.compose({
58470
58484
  baseName: 'rich-text-editor',
58471
58485
  template: template$n,
58472
- styles: styles$q,
58486
+ styles: styles$r,
58473
58487
  shadowOptions: {
58474
58488
  delegatesFocus: true
58475
58489
  }
@@ -58484,7 +58498,7 @@ img.ProseMirror-separator {
58484
58498
  </template>
58485
58499
  `;
58486
58500
 
58487
- const styles$p = css `
58501
+ const styles$q = css `
58488
58502
  ${display('flex')}
58489
58503
 
58490
58504
  :host {
@@ -58597,15 +58611,15 @@ img.ProseMirror-separator {
58597
58611
  const nimbleRichTextViewer = RichTextViewer.compose({
58598
58612
  baseName: 'rich-text-viewer',
58599
58613
  template: template$m,
58600
- styles: styles$p
58614
+ styles: styles$q
58601
58615
  });
58602
58616
  DesignSystem.getOrCreate()
58603
58617
  .withPrefix('nimble')
58604
58618
  .register(nimbleRichTextViewer());
58605
58619
 
58606
- const styles$o = css `
58620
+ const styles$p = css `
58621
+ ${styles$G}
58607
58622
  ${styles$F}
58608
- ${styles$E}
58609
58623
 
58610
58624
  ${
58611
58625
  /* We are using flex `order` to define the visual ordering of the selected value,
@@ -59613,7 +59627,7 @@ img.ProseMirror-separator {
59613
59627
  baseName: 'select',
59614
59628
  baseClass: Select$2,
59615
59629
  template: template$l,
59616
- styles: styles$o,
59630
+ styles: styles$p,
59617
59631
  indicator: arrowExpanderDown16X16.data,
59618
59632
  end: html `
59619
59633
  <${iconExclamationMarkTag}
@@ -59626,7 +59640,7 @@ img.ProseMirror-separator {
59626
59640
  applyMixins(Select, StartEnd, DelegatesARIASelect);
59627
59641
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleSelect());
59628
59642
 
59629
- const styles$n = css `
59643
+ const styles$o = css `
59630
59644
  ${display('inline-grid')}
59631
59645
 
59632
59646
  :host {
@@ -59844,12 +59858,12 @@ img.ProseMirror-separator {
59844
59858
  const nimbleSpinner = Spinner.compose({
59845
59859
  baseName: 'spinner',
59846
59860
  template: template$k,
59847
- styles: styles$n
59861
+ styles: styles$o
59848
59862
  });
59849
59863
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleSpinner());
59850
59864
  const spinnerTag = 'nimble-spinner';
59851
59865
 
59852
- const styles$m = css `
59866
+ const styles$n = css `
59853
59867
  ${display('inline-flex')}
59854
59868
 
59855
59869
  :host {
@@ -60058,11 +60072,11 @@ img.ProseMirror-separator {
60058
60072
  baseClass: Switch$1,
60059
60073
  baseName: 'switch',
60060
60074
  template: template$j,
60061
- styles: styles$m
60075
+ styles: styles$n
60062
60076
  });
60063
60077
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleSwitch());
60064
60078
 
60065
- const styles$l = css `
60079
+ const styles$m = css `
60066
60080
  ${display('inline-flex')}
60067
60081
 
60068
60082
  :host {
@@ -60173,11 +60187,11 @@ img.ProseMirror-separator {
60173
60187
  baseName: 'tab',
60174
60188
  baseClass: Tab$1,
60175
60189
  template: tabTemplate,
60176
- styles: styles$l
60190
+ styles: styles$m
60177
60191
  });
60178
60192
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTab());
60179
60193
 
60180
- const styles$k = css `
60194
+ const styles$l = css `
60181
60195
  ${display('block')}
60182
60196
 
60183
60197
  :host {
@@ -60197,7 +60211,7 @@ img.ProseMirror-separator {
60197
60211
  baseName: 'tab-panel',
60198
60212
  baseClass: TabPanel$1,
60199
60213
  template: tabPanelTemplate,
60200
- styles: styles$k
60214
+ styles: styles$l
60201
60215
  });
60202
60216
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTabPanel());
60203
60217
 
@@ -63876,7 +63890,7 @@ img.ProseMirror-separator {
63876
63890
  }
63877
63891
  }
63878
63892
 
63879
- const styles$j = css `
63893
+ const styles$k = css `
63880
63894
  ${display('flex')}
63881
63895
 
63882
63896
  :host {
@@ -64060,7 +64074,7 @@ img.ProseMirror-separator {
64060
64074
  }
64061
64075
  `));
64062
64076
 
64063
- const styles$i = css `
64077
+ const styles$j = css `
64064
64078
  ${display('flex')}
64065
64079
 
64066
64080
  :host {
@@ -64157,12 +64171,12 @@ img.ProseMirror-separator {
64157
64171
  const nimbleTableHeader = TableHeader.compose({
64158
64172
  baseName: 'table-header',
64159
64173
  template: template$i,
64160
- styles: styles$i
64174
+ styles: styles$j
64161
64175
  });
64162
64176
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTableHeader());
64163
64177
  const tableHeaderTag = 'nimble-table-header';
64164
64178
 
64165
- const styles$h = css `
64179
+ const styles$i = css `
64166
64180
  :host .animating {
64167
64181
  transition: ${mediumDelay} ease-in;
64168
64182
  }
@@ -64187,8 +64201,8 @@ img.ProseMirror-separator {
64187
64201
  }
64188
64202
  `;
64189
64203
 
64190
- const styles$g = css `
64191
- ${styles$h}
64204
+ const styles$h = css `
64205
+ ${styles$i}
64192
64206
  ${display('flex')}
64193
64207
 
64194
64208
  :host {
@@ -64310,7 +64324,7 @@ img.ProseMirror-separator {
64310
64324
  }
64311
64325
  `));
64312
64326
 
64313
- const styles$f = css `
64327
+ const styles$g = css `
64314
64328
  ${display('flex')}
64315
64329
 
64316
64330
  :host {
@@ -64413,7 +64427,7 @@ img.ProseMirror-separator {
64413
64427
  const nimbleTableCell = TableCell.compose({
64414
64428
  baseName: 'table-cell',
64415
64429
  template: template$h,
64416
- styles: styles$f
64430
+ styles: styles$g
64417
64431
  });
64418
64432
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTableCell());
64419
64433
  const tableCellTag = 'nimble-table-cell';
@@ -64755,14 +64769,14 @@ img.ProseMirror-separator {
64755
64769
  const nimbleTableRow = TableRow.compose({
64756
64770
  baseName: 'table-row',
64757
64771
  template: template$g,
64758
- styles: styles$g
64772
+ styles: styles$h
64759
64773
  });
64760
64774
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTableRow());
64761
64775
  const tableRowTag = 'nimble-table-row';
64762
64776
 
64763
- const styles$e = css `
64777
+ const styles$f = css `
64764
64778
  ${display('grid')}
64765
- ${styles$h}
64779
+ ${styles$i}
64766
64780
 
64767
64781
  :host {
64768
64782
  align-items: center;
@@ -64988,7 +65002,7 @@ img.ProseMirror-separator {
64988
65002
  const nimbleTableGroupRow = TableGroupRow.compose({
64989
65003
  baseName: 'table-group-row',
64990
65004
  template: template$f,
64991
- styles: styles$e
65005
+ styles: styles$f
64992
65006
  });
64993
65007
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTableGroupRow());
64994
65008
  const tableGroupRowTag = 'nimble-table-group-row';
@@ -67706,11 +67720,11 @@ img.ProseMirror-separator {
67706
67720
  const nimbleTable = Table.compose({
67707
67721
  baseName: 'table',
67708
67722
  template: template$e,
67709
- styles: styles$j
67723
+ styles: styles$k
67710
67724
  });
67711
67725
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTable());
67712
67726
 
67713
- const styles$d = css `
67727
+ const styles$e = css `
67714
67728
  :host {
67715
67729
  display: contents;
67716
67730
  }
@@ -67816,7 +67830,7 @@ img.ProseMirror-separator {
67816
67830
  return ColumnWithPlaceholder;
67817
67831
  }
67818
67832
 
67819
- const styles$c = css `
67833
+ const styles$d = css `
67820
67834
  :host {
67821
67835
  width: fit-content;
67822
67836
  max-width: 100%;
@@ -67927,7 +67941,7 @@ img.ProseMirror-separator {
67927
67941
  const anchorCellView = TableColumnAnchorCellView.compose({
67928
67942
  baseName: 'table-column-anchor-cell-view',
67929
67943
  template: template$c,
67930
- styles: styles$c
67944
+ styles: styles$d
67931
67945
  });
67932
67946
  DesignSystem.getOrCreate().withPrefix('nimble').register(anchorCellView());
67933
67947
  const tableColumnAnchorCellViewTag = 'nimble-table-column-anchor-cell-view';
@@ -68013,7 +68027,7 @@ img.ProseMirror-separator {
68013
68027
  </span>
68014
68028
  `;
68015
68029
 
68016
- const styles$b = css `
68030
+ const styles$c = css `
68017
68031
  span {
68018
68032
  font: ${bodyFont};
68019
68033
  color: ${bodyFontColor};
@@ -68036,7 +68050,7 @@ img.ProseMirror-separator {
68036
68050
  const tableColumnTextGroupHeaderView = TableColumnTextGroupHeaderView.compose({
68037
68051
  baseName: 'table-column-text-group-header-view',
68038
68052
  template: template$b,
68039
- styles: styles$b
68053
+ styles: styles$c
68040
68054
  });
68041
68055
  DesignSystem.getOrCreate()
68042
68056
  .withPrefix('nimble')
@@ -68155,7 +68169,7 @@ img.ProseMirror-separator {
68155
68169
  const nimbleTableColumnAnchor = TableColumnAnchor.compose({
68156
68170
  baseName: 'table-column-anchor',
68157
68171
  template: template$d,
68158
- styles: styles$d
68172
+ styles: styles$e
68159
68173
  });
68160
68174
  DesignSystem.getOrCreate()
68161
68175
  .withPrefix('nimble')
@@ -68208,7 +68222,7 @@ img.ProseMirror-separator {
68208
68222
  const tableColumnDateTextGroupHeaderView = TableColumnDateTextGroupHeaderView.compose({
68209
68223
  baseName: 'table-column-date-text-group-header-view',
68210
68224
  template: template$b,
68211
- styles: styles$b
68225
+ styles: styles$c
68212
68226
  });
68213
68227
  DesignSystem.getOrCreate()
68214
68228
  .withPrefix('nimble')
@@ -68240,7 +68254,7 @@ img.ProseMirror-separator {
68240
68254
  </template>
68241
68255
  `;
68242
68256
 
68243
- const styles$a = css `
68257
+ const styles$b = css `
68244
68258
  :host(.right-align) {
68245
68259
  margin-left: auto;
68246
68260
  }
@@ -68337,7 +68351,7 @@ img.ProseMirror-separator {
68337
68351
  const dateTextCellView = TableColumnDateTextCellView.compose({
68338
68352
  baseName: 'table-column-date-text-cell-view',
68339
68353
  template: template$a,
68340
- styles: styles$a
68354
+ styles: styles$b
68341
68355
  });
68342
68356
  DesignSystem.getOrCreate().withPrefix('nimble').register(dateTextCellView());
68343
68357
  const tableColumnDateTextCellViewTag = 'nimble-table-column-date-text-cell-view';
@@ -68598,7 +68612,7 @@ img.ProseMirror-separator {
68598
68612
  const nimbleTableColumnDateText = TableColumnDateText.compose({
68599
68613
  baseName: 'table-column-date-text',
68600
68614
  template: template$d,
68601
- styles: styles$d
68615
+ styles: styles$e
68602
68616
  });
68603
68617
  DesignSystem.getOrCreate()
68604
68618
  .withPrefix('nimble')
@@ -68615,7 +68629,7 @@ img.ProseMirror-separator {
68615
68629
  const durationTextCellView = TableColumnDurationTextCellView.compose({
68616
68630
  baseName: 'table-column-duration-text-cell-view',
68617
68631
  template: template$a,
68618
- styles: styles$a
68632
+ styles: styles$b
68619
68633
  });
68620
68634
  DesignSystem.getOrCreate()
68621
68635
  .withPrefix('nimble')
@@ -68717,7 +68731,7 @@ img.ProseMirror-separator {
68717
68731
  const tableColumnDurationTextGroupHeaderView = TableColumnDurationTextGroupHeaderView.compose({
68718
68732
  baseName: 'table-column-duration-text-group-header-view',
68719
68733
  template: template$b,
68720
- styles: styles$b
68734
+ styles: styles$c
68721
68735
  });
68722
68736
  DesignSystem.getOrCreate()
68723
68737
  .withPrefix('nimble')
@@ -68770,7 +68784,7 @@ img.ProseMirror-separator {
68770
68784
  const nimbleTableColumnDurationText = TableColumnDurationText.compose({
68771
68785
  baseName: 'table-column-duration-text',
68772
68786
  template: template$d,
68773
- styles: styles$d
68787
+ styles: styles$e
68774
68788
  });
68775
68789
  DesignSystem.getOrCreate()
68776
68790
  .withPrefix('nimble')
@@ -68878,8 +68892,8 @@ img.ProseMirror-separator {
68878
68892
  attr({ attribute: 'key-type' })
68879
68893
  ], TableColumnEnumBase.prototype, "keyType", void 0);
68880
68894
 
68881
- const styles$9 = css `
68882
- ${styles$d}
68895
+ const styles$a = css `
68896
+ ${styles$e}
68883
68897
 
68884
68898
  slot[name='mapping'] {
68885
68899
  display: none;
@@ -68992,7 +69006,7 @@ img.ProseMirror-separator {
68992
69006
  const enumTextCellView = TableColumnEnumTextCellView.compose({
68993
69007
  baseName: 'table-column-enum-text-cell-view',
68994
69008
  template: template$a,
68995
- styles: styles$a
69009
+ styles: styles$b
68996
69010
  });
68997
69011
  DesignSystem.getOrCreate().withPrefix('nimble').register(enumTextCellView());
68998
69012
  const tableColumnEnumTextCellViewTag = 'nimble-table-column-enum-text-cell-view';
@@ -69011,7 +69025,7 @@ img.ProseMirror-separator {
69011
69025
  const enumTextGroupHeaderView = TableColumnEnumTextGroupHeaderView.compose({
69012
69026
  baseName: 'table-column-enum-text-group-header-view',
69013
69027
  template: template$b,
69014
- styles: styles$b
69028
+ styles: styles$c
69015
69029
  });
69016
69030
  DesignSystem.getOrCreate()
69017
69031
  .withPrefix('nimble')
@@ -69049,7 +69063,7 @@ img.ProseMirror-separator {
69049
69063
  const nimbleTableColumnEnumText = TableColumnEnumText.compose({
69050
69064
  baseName: 'table-column-enum-text',
69051
69065
  template: template$9,
69052
- styles: styles$9
69066
+ styles: styles$a
69053
69067
  });
69054
69068
  DesignSystem.getOrCreate()
69055
69069
  .withPrefix('nimble')
@@ -69078,7 +69092,7 @@ img.ProseMirror-separator {
69078
69092
  const tableColumnNumberTextGroupHeaderView = TableColumnNumberTextGroupHeaderView.compose({
69079
69093
  baseName: 'table-column-number-text-group-header-view',
69080
69094
  template: template$b,
69081
- styles: styles$b
69095
+ styles: styles$c
69082
69096
  });
69083
69097
  DesignSystem.getOrCreate()
69084
69098
  .withPrefix('nimble')
@@ -69100,7 +69114,7 @@ img.ProseMirror-separator {
69100
69114
  const numberTextCellView = TableColumnNumberTextCellView.compose({
69101
69115
  baseName: 'table-column-number-text-cell-view',
69102
69116
  template: template$a,
69103
- styles: styles$a
69117
+ styles: styles$b
69104
69118
  });
69105
69119
  DesignSystem.getOrCreate().withPrefix('nimble').register(numberTextCellView());
69106
69120
  const tableColumnNumberTextCellViewTag = 'nimble-table-column-number-text-cell-view';
@@ -69641,7 +69655,7 @@ img.ProseMirror-separator {
69641
69655
  const nimbleTableColumnNumberText = TableColumnNumberText.compose({
69642
69656
  baseName: 'table-column-number-text',
69643
69657
  template: template$8,
69644
- styles: styles$d
69658
+ styles: styles$e
69645
69659
  });
69646
69660
  DesignSystem.getOrCreate()
69647
69661
  .withPrefix('nimble')
@@ -69694,7 +69708,7 @@ img.ProseMirror-separator {
69694
69708
  }
69695
69709
  }
69696
69710
 
69697
- const styles$8 = css `
69711
+ const styles$9 = css `
69698
69712
  ${display('inline-flex')}
69699
69713
 
69700
69714
  :host {
@@ -69702,11 +69716,13 @@ img.ProseMirror-separator {
69702
69716
  align-items: center;
69703
69717
  }
69704
69718
 
69705
- .no-shrink {
69719
+ .reserve-icon-size {
69706
69720
  flex-shrink: 0;
69721
+ width: ${iconSize};
69722
+ height: ${iconSize};
69707
69723
  }
69708
69724
 
69709
- span {
69725
+ .text {
69710
69726
  flex-shrink: 1;
69711
69727
  font: ${bodyFont};
69712
69728
  color: ${bodyFontColor};
@@ -69718,29 +69734,16 @@ img.ProseMirror-separator {
69718
69734
 
69719
69735
  // prettier-ignore
69720
69736
  const template$7 = html `
69721
- ${when(x => x.visual === 'icon', html `
69722
- ${x => x.iconTemplate}
69723
- <span
69724
- ${overflow('hasOverflow')}
69725
- title="${x => (x.hasOverflow && x.text ? x.text : null)}"
69726
- >${x => x.text}</span>`)}
69727
- ${when(x => x.visual === 'spinner', html `
69728
- <${spinnerTag}
69729
- title="${x => x.text}"
69730
- aria-label="${x => x.text}"
69731
- class="no-shrink">
69732
- </${spinnerTag}>
69733
- <span
69734
- ${overflow('hasOverflow')}
69735
- title="${x => (x.hasOverflow && x.text ? x.text : null)}"
69736
- >${x => x.text}</span>
69737
- `)}
69738
- ${when(x => x.visual === undefined, html `
69739
- <span
69740
- ${overflow('hasOverflow')}
69741
- title="${x => (x.hasOverflow && x.text ? x.text : null)}"
69742
- >${x => x.text}</span>
69743
- `)}
69737
+ ${when(x => x.visualizationTemplate, html `
69738
+ <span class="reserve-icon-size">
69739
+ ${x => x.visualizationTemplate}
69740
+ </span>
69741
+ `)}
69742
+ <span
69743
+ ${overflow('hasOverflow')}
69744
+ title="${x => (x.hasOverflow && x.text ? x.text : null)}"
69745
+ class="text"
69746
+ >${x => x.text}</span>
69744
69747
  `;
69745
69748
 
69746
69749
  // Create an empty template containing only a space because creating a ViewTemplate
@@ -69753,11 +69756,11 @@ img.ProseMirror-separator {
69753
69756
  }
69754
69757
  return html `
69755
69758
  <${icon}
69756
- title="${x => x.text}"
69759
+ title="${x => (x.textHidden ? x.text : '')}"
69757
69760
  role="img"
69758
69761
  aria-label="${x => x.text}"
69762
+ aria-hidden="${x => (x.textHidden ? 'false' : 'true')}"
69759
69763
  severity="${x => x.severity}"
69760
- class="no-shrink"
69761
69764
  >
69762
69765
  </${icon}>
69763
69766
  `;
@@ -69766,19 +69769,30 @@ img.ProseMirror-separator {
69766
69769
  * Mapping configuration corresponding to a icon mapping
69767
69770
  */
69768
69771
  class MappingIconConfig extends MappingConfig {
69769
- constructor(resolvedIcon, severity, text) {
69772
+ constructor(resolvedIcon, severity, text, textHidden) {
69770
69773
  super(text);
69771
69774
  this.severity = severity;
69775
+ this.textHidden = textHidden;
69772
69776
  this.iconTemplate = createIconTemplate(resolvedIcon);
69773
69777
  }
69774
69778
  }
69775
69779
 
69780
+ const spinnerTemplate = html `
69781
+ <${spinnerTag}
69782
+ title="${x => (x.textHidden ? x.text : '')}"
69783
+ aria-label="${x => x.text}"
69784
+ aria-hidden="${x => (x.textHidden ? 'false' : 'true')}"
69785
+ >
69786
+ </${spinnerTag}>
69787
+ `;
69776
69788
  /**
69777
69789
  * Mapping configuration corresponding to a spinner mapping
69778
69790
  */
69779
69791
  class MappingSpinnerConfig extends MappingConfig {
69780
- constructor(text) {
69792
+ constructor(text, textHidden) {
69781
69793
  super(text);
69794
+ this.textHidden = textHidden;
69795
+ this.spinnerTemplate = spinnerTemplate;
69782
69796
  }
69783
69797
  }
69784
69798
 
@@ -69786,8 +69800,12 @@ img.ProseMirror-separator {
69786
69800
  * The group header view for the icon column
69787
69801
  */
69788
69802
  class TableColumnIconGroupHeaderView extends TableColumnTextGroupHeaderViewBase {
69803
+ constructor() {
69804
+ super(...arguments);
69805
+ this.textHidden = false;
69806
+ }
69789
69807
  updateText() {
69790
- this.visual = undefined;
69808
+ this.visualizationTemplate = undefined;
69791
69809
  if (!this.columnConfig) {
69792
69810
  this.text = '';
69793
69811
  return;
@@ -69795,14 +69813,13 @@ img.ProseMirror-separator {
69795
69813
  const value = this.groupHeaderValue;
69796
69814
  const mappingConfig = this.columnConfig.mappingConfigs.get(value);
69797
69815
  if (mappingConfig instanceof MappingIconConfig) {
69798
- this.visual = 'icon';
69799
69816
  this.severity = mappingConfig.severity;
69800
69817
  this.text = mappingConfig.text ?? '';
69801
- this.iconTemplate = mappingConfig.iconTemplate;
69818
+ this.visualizationTemplate = mappingConfig.iconTemplate;
69802
69819
  }
69803
69820
  else if (mappingConfig instanceof MappingSpinnerConfig) {
69804
- this.visual = 'spinner';
69805
69821
  this.text = mappingConfig.text ?? '';
69822
+ this.visualizationTemplate = mappingConfig.spinnerTemplate;
69806
69823
  }
69807
69824
  }
69808
69825
  }
@@ -69811,26 +69828,54 @@ img.ProseMirror-separator {
69811
69828
  ], TableColumnIconGroupHeaderView.prototype, "severity", void 0);
69812
69829
  __decorate$1([
69813
69830
  observable
69814
- ], TableColumnIconGroupHeaderView.prototype, "iconTemplate", void 0);
69815
- __decorate$1([
69816
- observable
69817
- ], TableColumnIconGroupHeaderView.prototype, "visual", void 0);
69831
+ ], TableColumnIconGroupHeaderView.prototype, "visualizationTemplate", void 0);
69818
69832
  const iconGroupHeaderView = TableColumnIconGroupHeaderView.compose({
69819
69833
  baseName: 'table-column-icon-group-header-view',
69820
69834
  template: template$7,
69821
- styles: styles$8
69835
+ styles: styles$9
69822
69836
  });
69823
69837
  DesignSystem.getOrCreate().withPrefix('nimble').register(iconGroupHeaderView());
69824
69838
  const tableColumnIconGroupHeaderViewTag = 'nimble-table-column-icon-group-header-view';
69825
69839
 
69840
+ const styles$8 = css `
69841
+ ${display('inline-flex')}
69842
+
69843
+ :host {
69844
+ gap: ${smallPadding};
69845
+ align-items: center;
69846
+ }
69847
+
69848
+ .reserve-icon-size {
69849
+ flex-shrink: 0;
69850
+ width: ${iconSize};
69851
+ height: ${iconSize};
69852
+ }
69853
+
69854
+ .text {
69855
+ flex-shrink: 1;
69856
+ font: ${bodyFont};
69857
+ color: ${bodyFontColor};
69858
+ white-space: nowrap;
69859
+ overflow: hidden;
69860
+ text-overflow: ellipsis;
69861
+ }
69862
+ `;
69863
+
69864
+ // prettier-ignore
69826
69865
  const template$6 = html `
69827
- ${when(x => x.visual === 'icon', x => x.iconTemplate)}
69828
- ${when(x => x.visual === 'spinner', html `
69829
- <${spinnerTag}
69830
- title="${x => x.text}"
69831
- aria-label="${x => x.text}"
69832
- class="no-shrink">
69833
- </${spinnerTag}>
69866
+ ${when(x => x.visualizationTemplate, html `
69867
+ <span class="reserve-icon-size">
69868
+ ${x => x.visualizationTemplate}
69869
+ </span>
69870
+ `)}
69871
+ ${when(x => !x.textHidden, html `
69872
+ <span
69873
+ ${overflow('hasOverflow')}
69874
+ title=${x => (x.hasOverflow && x.text ? x.text : null)}
69875
+ class="text"
69876
+ >
69877
+ ${x => x.text}
69878
+ </span>
69834
69879
  `)}
69835
69880
  `;
69836
69881
 
@@ -69838,6 +69883,12 @@ img.ProseMirror-separator {
69838
69883
  * The cell view for the icon column
69839
69884
  */
69840
69885
  class TableColumnIconCellView extends TableCellView {
69886
+ constructor() {
69887
+ super(...arguments);
69888
+ this.textHidden = false;
69889
+ /** @internal */
69890
+ this.hasOverflow = false;
69891
+ }
69841
69892
  columnConfigChanged() {
69842
69893
  this.updateState();
69843
69894
  }
@@ -69845,7 +69896,7 @@ img.ProseMirror-separator {
69845
69896
  this.updateState();
69846
69897
  }
69847
69898
  updateState() {
69848
- this.visual = undefined;
69899
+ this.visualizationTemplate = undefined;
69849
69900
  if (!this.columnConfig || !this.cellRecord) {
69850
69901
  return;
69851
69902
  }
@@ -69855,14 +69906,15 @@ img.ProseMirror-separator {
69855
69906
  }
69856
69907
  const mappingConfig = this.columnConfig.mappingConfigs.get(value);
69857
69908
  if (mappingConfig instanceof MappingIconConfig) {
69858
- this.visual = 'icon';
69859
69909
  this.severity = mappingConfig.severity;
69860
69910
  this.text = mappingConfig.text;
69861
- this.iconTemplate = mappingConfig.iconTemplate;
69911
+ this.visualizationTemplate = mappingConfig.iconTemplate;
69912
+ this.textHidden = mappingConfig.textHidden;
69862
69913
  }
69863
69914
  else if (mappingConfig instanceof MappingSpinnerConfig) {
69864
- this.visual = 'spinner';
69865
69915
  this.text = mappingConfig.text;
69916
+ this.visualizationTemplate = mappingConfig.spinnerTemplate;
69917
+ this.textHidden = mappingConfig.textHidden;
69866
69918
  }
69867
69919
  }
69868
69920
  }
@@ -69874,13 +69926,17 @@ img.ProseMirror-separator {
69874
69926
  ], TableColumnIconCellView.prototype, "text", void 0);
69875
69927
  __decorate$1([
69876
69928
  observable
69877
- ], TableColumnIconCellView.prototype, "iconTemplate", void 0);
69929
+ ], TableColumnIconCellView.prototype, "visualizationTemplate", void 0);
69930
+ __decorate$1([
69931
+ observable
69932
+ ], TableColumnIconCellView.prototype, "textHidden", void 0);
69878
69933
  __decorate$1([
69879
69934
  observable
69880
- ], TableColumnIconCellView.prototype, "visual", void 0);
69935
+ ], TableColumnIconCellView.prototype, "hasOverflow", void 0);
69881
69936
  const iconCellView = TableColumnIconCellView.compose({
69882
69937
  baseName: 'table-column-icon-cell-view',
69883
- template: template$6
69938
+ template: template$6,
69939
+ styles: styles$8
69884
69940
  });
69885
69941
  DesignSystem.getOrCreate().withPrefix('nimble').register(iconCellView());
69886
69942
  const tableColumnIconCellViewTag = 'nimble-table-column-icon-cell-view';
@@ -69906,10 +69962,10 @@ img.ProseMirror-separator {
69906
69962
  }
69907
69963
  createMappingConfig(mapping) {
69908
69964
  if (mapping instanceof MappingIcon) {
69909
- return new MappingIconConfig(mapping.resolvedIcon, mapping.severity, mapping.text);
69965
+ return new MappingIconConfig(mapping.resolvedIcon, mapping.severity, mapping.text, mapping.textHidden);
69910
69966
  }
69911
69967
  if (mapping instanceof MappingSpinner) {
69912
- return new MappingSpinnerConfig(mapping.text);
69968
+ return new MappingSpinnerConfig(mapping.text, mapping.textHidden);
69913
69969
  }
69914
69970
  // Getting here would indicate a programming error, b/c validation will prevent
69915
69971
  // this function from running when there is an unsupported mapping.
@@ -69919,7 +69975,7 @@ img.ProseMirror-separator {
69919
69975
  const nimbleTableColumnIcon = TableColumnIcon.compose({
69920
69976
  baseName: 'table-column-icon',
69921
69977
  template: template$9,
69922
- styles: styles$9
69978
+ styles: styles$a
69923
69979
  });
69924
69980
  DesignSystem.getOrCreate()
69925
69981
  .withPrefix('nimble')
@@ -69938,7 +69994,7 @@ img.ProseMirror-separator {
69938
69994
  const textCellView = TableColumnTextCellView.compose({
69939
69995
  baseName: 'table-column-text-cell-view',
69940
69996
  template: template$a,
69941
- styles: styles$a
69997
+ styles: styles$b
69942
69998
  });
69943
69999
  DesignSystem.getOrCreate().withPrefix('nimble').register(textCellView());
69944
70000
  const tableColumnTextCellViewTag = 'nimble-table-column-text-cell-view';
@@ -69966,7 +70022,7 @@ img.ProseMirror-separator {
69966
70022
  const nimbleTableColumnText = TableColumnText.compose({
69967
70023
  baseName: 'table-column-text',
69968
70024
  template: template$d,
69969
- styles: styles$d
70025
+ styles: styles$e
69970
70026
  });
69971
70027
  DesignSystem.getOrCreate()
69972
70028
  .withPrefix('nimble')
@@ -70065,7 +70121,7 @@ img.ProseMirror-separator {
70065
70121
 
70066
70122
  const styles$5 = css `
70067
70123
  ${display('inline-flex')}
70068
- ${styles$E}
70124
+ ${styles$F}
70069
70125
 
70070
70126
  :host {
70071
70127
  font: ${bodyFont};
@@ -70411,7 +70467,7 @@ img.ProseMirror-separator {
70411
70467
 
70412
70468
  const styles$4 = css `
70413
70469
  ${display('inline-block')}
70414
- ${styles$E}
70470
+ ${styles$F}
70415
70471
 
70416
70472
  :host {
70417
70473
  font: ${bodyFont};