@ni/spright-components 1.0.0 → 1.0.2

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.
@@ -15200,7 +15200,7 @@
15200
15200
  * @param display - The CSS display property value
15201
15201
  * @public
15202
15202
  */
15203
- function display(displayValue) {
15203
+ function display$2(displayValue) {
15204
15204
  return `${hidden}:host{display:${displayValue}}`;
15205
15205
  }
15206
15206
 
@@ -15219,6 +15219,12 @@
15219
15219
  class AnchorBase extends Anchor$1 {
15220
15220
  }
15221
15221
 
15222
+ /**
15223
+ * This utility will generate the appropriate display style, as well as a style rule
15224
+ * to hide the host element when its `hidden` attribute is set.
15225
+ */
15226
+ const display$1 = (displayValue) => `${display$2(displayValue)}`;
15227
+
15222
15228
  /**
15223
15229
  * This file is a workaround for: https://github.com/prettier/prettier/issues/11400
15224
15230
  */
@@ -16333,7 +16339,7 @@
16333
16339
 
16334
16340
  /**
16335
16341
  * Do not edit directly
16336
- * Generated on Wed, 15 May 2024 18:39:02 GMT
16342
+ * Generated on Thu, 16 May 2024 18:32:42 GMT
16337
16343
  */
16338
16344
 
16339
16345
  const Information100DarkUi = "#a46eff";
@@ -16766,10 +16772,8 @@
16766
16772
 
16767
16773
  const template$G = html `<slot></slot>`;
16768
16774
 
16769
- const styles$Z = css `
16770
- :host {
16771
- display: contents;
16772
- }
16775
+ const styles$10 = css `
16776
+ ${display$1('contents')}
16773
16777
  `;
16774
16778
 
16775
16779
  /**
@@ -16883,7 +16887,7 @@
16883
16887
  ], ThemeProvider.prototype, "theme", void 0);
16884
16888
  const nimbleDesignSystemProvider = ThemeProvider.compose({
16885
16889
  baseName: 'theme-provider',
16886
- styles: styles$Z,
16890
+ styles: styles$10,
16887
16891
  template: template$G
16888
16892
  });
16889
16893
  DesignSystem.getOrCreate()
@@ -17069,11 +17073,11 @@
17069
17073
  }
17070
17074
  }
17071
17075
 
17072
- const styles$Y = css `
17076
+ const styles$$ = css `
17073
17077
  @layer base, hover, focusVisible, active, disabled;
17074
17078
 
17075
17079
  @layer base {
17076
- ${display('inline')}
17080
+ ${display$1('inline')}
17077
17081
 
17078
17082
  :host {
17079
17083
  box-sizing: border-box;
@@ -17248,7 +17252,7 @@
17248
17252
  baseName: 'anchor',
17249
17253
  baseClass: Anchor$1,
17250
17254
  template: template$F,
17251
- styles: styles$Y,
17255
+ styles: styles$$,
17252
17256
  shadowOptions: {
17253
17257
  delegatesFocus: true
17254
17258
  }
@@ -17351,11 +17355,11 @@
17351
17355
  padding: 0;
17352
17356
  `;
17353
17357
 
17354
- const styles$X = css `
17358
+ const styles$_ = css `
17355
17359
  @layer base, checked, hover, focusVisible, active, disabled, top;
17356
17360
 
17357
17361
  @layer base {
17358
- ${display('inline-flex')}
17362
+ ${display$1('inline-flex')}
17359
17363
 
17360
17364
  :host {
17361
17365
  background-color: transparent;
@@ -17629,8 +17633,8 @@
17629
17633
  }
17630
17634
  `));
17631
17635
 
17632
- const styles$W = css `
17633
- ${styles$X}
17636
+ const styles$Z = css `
17637
+ ${styles$_}
17634
17638
  ${buttonAppearanceVariantStyles}
17635
17639
 
17636
17640
  .control {
@@ -17733,7 +17737,7 @@
17733
17737
  const nimbleAnchorButton = AnchorButton.compose({
17734
17738
  baseName: 'anchor-button',
17735
17739
  template: template$E,
17736
- styles: styles$W,
17740
+ styles: styles$Z,
17737
17741
  shadowOptions: {
17738
17742
  delegatesFocus: true
17739
17743
  }
@@ -17741,8 +17745,8 @@
17741
17745
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleAnchorButton());
17742
17746
  const anchorButtonTag = 'nimble-anchor-button';
17743
17747
 
17744
- const styles$V = css `
17745
- ${display('grid')}
17748
+ const styles$Y = css `
17749
+ ${display$1('grid')}
17746
17750
 
17747
17751
  :host {
17748
17752
  font: ${bodyFont};
@@ -17927,7 +17931,7 @@
17927
17931
  const nimbleAnchorMenuItem = AnchorMenuItem.compose({
17928
17932
  baseName: 'anchor-menu-item',
17929
17933
  template: template$D,
17930
- styles: styles$V,
17934
+ styles: styles$Y,
17931
17935
  shadowOptions: {
17932
17936
  delegatesFocus: true
17933
17937
  }
@@ -17937,8 +17941,8 @@
17937
17941
  .register(nimbleAnchorMenuItem());
17938
17942
  const anchorMenuItemTag = 'nimble-anchor-menu-item';
17939
17943
 
17940
- const styles$U = css `
17941
- ${display('inline-flex')}
17944
+ const styles$X = css `
17945
+ ${display$1('inline-flex')}
17942
17946
 
17943
17947
  :host {
17944
17948
  position: relative;
@@ -18107,15 +18111,15 @@
18107
18111
  const nimbleAnchorTab = AnchorTab.compose({
18108
18112
  baseName: 'anchor-tab',
18109
18113
  template: template$C,
18110
- styles: styles$U,
18114
+ styles: styles$X,
18111
18115
  shadowOptions: {
18112
18116
  delegatesFocus: true
18113
18117
  }
18114
18118
  });
18115
18119
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleAnchorTab());
18116
18120
 
18117
- const styles$T = css `
18118
- ${display('grid')}
18121
+ const styles$W = css `
18122
+ ${display$1('grid')}
18119
18123
 
18120
18124
  :host {
18121
18125
  box-sizing: border-box;
@@ -18343,7 +18347,7 @@
18343
18347
  const nimbleAnchorTabs = AnchorTabs.compose({
18344
18348
  baseName: 'anchor-tabs',
18345
18349
  template: template$B,
18346
- styles: styles$T,
18350
+ styles: styles$W,
18347
18351
  shadowOptions: {
18348
18352
  delegatesFocus: false
18349
18353
  }
@@ -18359,8 +18363,8 @@
18359
18363
  -webkit-user-select: none;
18360
18364
  `;
18361
18365
 
18362
- const styles$S = css `
18363
- ${display('block')}
18366
+ const styles$V = css `
18367
+ ${display$1('block')}
18364
18368
 
18365
18369
  :host {
18366
18370
  ${
@@ -18603,7 +18607,7 @@
18603
18607
  const nimbleAnchorTreeItem = AnchorTreeItem.compose({
18604
18608
  baseName: 'anchor-tree-item',
18605
18609
  template: template$A,
18606
- styles: styles$S,
18610
+ styles: styles$V,
18607
18611
  shadowOptions: {
18608
18612
  delegatesFocus: true
18609
18613
  }
@@ -18619,15 +18623,17 @@
18619
18623
  zIndex1000: '1000'
18620
18624
  };
18621
18625
 
18622
- const styles$R = css `
18626
+ const styles$U = css `
18627
+ ${display$1('block')}
18628
+
18623
18629
  :host {
18624
- /* Avoid using the 'display' helper to customize hidden behavior */
18625
- display: block;
18626
18630
  contain: layout;
18627
18631
  z-index: ${ZIndexLevels.zIndex1000};
18628
18632
  }
18629
18633
 
18634
+ ${'' /* Override 'display' helper hidden behavior */}
18630
18635
  :host([hidden]) {
18636
+ display: block;
18631
18637
  visibility: hidden;
18632
18638
  }
18633
18639
  `;
@@ -18648,7 +18654,7 @@
18648
18654
  baseName: 'anchored-region',
18649
18655
  baseClass: AnchoredRegion$1,
18650
18656
  template: anchoredRegionTemplate,
18651
- styles: styles$R
18657
+ styles: styles$U
18652
18658
  });
18653
18659
  DesignSystem.getOrCreate()
18654
18660
  .withPrefix('nimble')
@@ -18728,8 +18734,8 @@
18728
18734
  */
18729
18735
  const themeBehavior = (theme, styles) => new ThemeStyleSheetBehavior(theme, styles);
18730
18736
 
18731
- const styles$Q = css `
18732
- ${display('flex')}
18737
+ const styles$T = css `
18738
+ ${display$1('flex')}
18733
18739
 
18734
18740
  :host {
18735
18741
  font: ${bodyFont};
@@ -18871,8 +18877,8 @@
18871
18877
  }
18872
18878
  `));
18873
18879
 
18874
- const styles$P = css `
18875
- ${styles$X}
18880
+ const styles$S = css `
18881
+ ${styles$_}
18876
18882
  ${buttonAppearanceVariantStyles}
18877
18883
  `;
18878
18884
 
@@ -18918,7 +18924,7 @@
18918
18924
  baseName: 'button',
18919
18925
  baseClass: Button$1,
18920
18926
  template: buttonTemplate,
18921
- styles: styles$P,
18927
+ styles: styles$S,
18922
18928
  shadowOptions: {
18923
18929
  delegatesFocus: true
18924
18930
  }
@@ -19675,8 +19681,8 @@
19675
19681
  :innerHTML=${x => x.icon.data}
19676
19682
  ></div>`;
19677
19683
 
19678
- const styles$O = css `
19679
- ${display('inline-flex')}
19684
+ const styles$R = css `
19685
+ ${display$1('inline-flex')}
19680
19686
 
19681
19687
  :host {
19682
19688
  align-items: center;
@@ -19729,8 +19735,7 @@
19729
19735
  const composedIcon = iconClass.compose({
19730
19736
  baseName,
19731
19737
  template: template$z,
19732
- styles: styles$O,
19733
- baseClass: iconClass
19738
+ styles: styles$R
19734
19739
  });
19735
19740
  DesignSystem.getOrCreate().withPrefix('nimble').register(composedIcon());
19736
19741
  };
@@ -19960,12 +19965,12 @@
19960
19965
  const nimbleBanner = Banner.compose({
19961
19966
  baseName: 'banner',
19962
19967
  template: template$y,
19963
- styles: styles$Q
19968
+ styles: styles$T
19964
19969
  });
19965
19970
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleBanner());
19966
19971
 
19967
- const styles$N = css `
19968
- ${display('inline-block')}
19972
+ const styles$Q = css `
19973
+ ${display$1('inline-block')}
19969
19974
 
19970
19975
  :host {
19971
19976
  box-sizing: border-box;
@@ -20005,12 +20010,12 @@
20005
20010
  baseName: 'breadcrumb',
20006
20011
  baseClass: Breadcrumb$1,
20007
20012
  template: breadcrumbTemplate,
20008
- styles: styles$N
20013
+ styles: styles$Q
20009
20014
  });
20010
20015
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleBreadcrumb());
20011
20016
 
20012
- const styles$M = css `
20013
- ${display('inline-flex')}
20017
+ const styles$P = css `
20018
+ ${display$1('inline-flex')}
20014
20019
 
20015
20020
  :host {
20016
20021
  height: ${controlHeight};
@@ -20087,15 +20092,15 @@
20087
20092
  baseName: 'breadcrumb-item',
20088
20093
  baseClass: BreadcrumbItem$1,
20089
20094
  template: breadcrumbItemTemplate,
20090
- styles: styles$M,
20095
+ styles: styles$P,
20091
20096
  separator: forwardSlash16X16.data
20092
20097
  });
20093
20098
  DesignSystem.getOrCreate()
20094
20099
  .withPrefix('nimble')
20095
20100
  .register(nimbleBreadcrumbItem());
20096
20101
 
20097
- const styles$L = css `
20098
- ${display('flex')}
20102
+ const styles$O = css `
20103
+ ${display$1('flex')}
20099
20104
 
20100
20105
  :host {
20101
20106
  flex-direction: column;
@@ -20134,12 +20139,12 @@
20134
20139
  baseName: 'card',
20135
20140
  baseClass: Card$1,
20136
20141
  template: template$x,
20137
- styles: styles$L
20142
+ styles: styles$O
20138
20143
  });
20139
20144
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleCard());
20140
20145
 
20141
- const styles$K = css `
20142
- ${display('inline-flex')}
20146
+ const styles$N = css `
20147
+ ${display$1('inline-flex')}
20143
20148
 
20144
20149
  :host {
20145
20150
  background-color: transparent;
@@ -20297,15 +20302,15 @@
20297
20302
  const nimbleCardButton = CardButton.compose({
20298
20303
  baseName: 'card-button',
20299
20304
  template: buttonTemplate,
20300
- styles: styles$K,
20305
+ styles: styles$N,
20301
20306
  shadowOptions: {
20302
20307
  delegatesFocus: true
20303
20308
  }
20304
20309
  });
20305
20310
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleCardButton());
20306
20311
 
20307
- const styles$J = css `
20308
- ${display('inline-flex')}
20312
+ const styles$M = css `
20313
+ ${display$1('inline-flex')}
20309
20314
 
20310
20315
  :host {
20311
20316
  font: ${bodyFont};
@@ -20422,15 +20427,15 @@
20422
20427
  baseName: 'checkbox',
20423
20428
  baseClass: Checkbox$1,
20424
20429
  template: checkboxTemplate,
20425
- styles: styles$J,
20430
+ styles: styles$M,
20426
20431
  checkedIndicator: check16X16.data,
20427
20432
  indeterminateIndicator: minus16X16.data
20428
20433
  });
20429
20434
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleCheckbox());
20430
20435
  const checkboxTag = 'nimble-checkbox';
20431
20436
 
20432
- const styles$I = css `
20433
- ${styles$X}
20437
+ const styles$L = css `
20438
+ ${styles$_}
20434
20439
  ${buttonAppearanceVariantStyles}
20435
20440
 
20436
20441
  @layer checked {
@@ -20556,7 +20561,7 @@
20556
20561
  const nimbleToggleButton = ToggleButton.compose({
20557
20562
  baseName: 'toggle-button',
20558
20563
  template: template$w,
20559
- styles: styles$I,
20564
+ styles: styles$L,
20560
20565
  shadowOptions: {
20561
20566
  delegatesFocus: true
20562
20567
  }
@@ -20593,8 +20598,8 @@
20593
20598
  block: 'block'
20594
20599
  };
20595
20600
 
20596
- const styles$H = css `
20597
- ${display('inline-flex')}
20601
+ const styles$K = css `
20602
+ ${display$1('inline-flex')}
20598
20603
 
20599
20604
  :host {
20600
20605
  box-sizing: border-box;
@@ -20755,7 +20760,7 @@
20755
20760
 
20756
20761
  .indicator {
20757
20762
  flex: none;
20758
- margin-inline-start: 1em;
20763
+ margin-left: ${smallPadding};
20759
20764
  padding-right: 8px;
20760
20765
  display: flex;
20761
20766
  justify-content: center;
@@ -20813,7 +20818,7 @@
20813
20818
  }
20814
20819
  `));
20815
20820
 
20816
- const styles$G = css `
20821
+ const styles$J = css `
20817
20822
  .error-icon {
20818
20823
  display: none;
20819
20824
  }
@@ -20860,9 +20865,9 @@
20860
20865
  standard: 'standard'
20861
20866
  };
20862
20867
 
20863
- const styles$F = css `
20864
- ${styles$H}
20865
- ${styles$G}
20868
+ const styles$I = css `
20869
+ ${styles$K}
20870
+ ${styles$J}
20866
20871
 
20867
20872
  :host {
20868
20873
  --ni-private-hover-bottom-border-width: 2px;
@@ -21704,7 +21709,7 @@
21704
21709
  baseName: 'combobox',
21705
21710
  baseClass: FormAssociatedCombobox,
21706
21711
  template: template$v,
21707
- styles: styles$F,
21712
+ styles: styles$I,
21708
21713
  shadowOptions: {
21709
21714
  delegatesFocus: true
21710
21715
  },
@@ -21749,8 +21754,8 @@
21749
21754
  */
21750
21755
  const UserDismissed = Symbol('user dismissed');
21751
21756
 
21752
- const styles$E = css `
21753
- ${display('grid')}
21757
+ const styles$H = css `
21758
+ ${display$1('grid')}
21754
21759
 
21755
21760
  dialog {
21756
21761
  flex-direction: column;
@@ -22004,13 +22009,13 @@
22004
22009
  const nimbleDialog = Dialog.compose({
22005
22010
  baseName: 'dialog',
22006
22011
  template: template$u,
22007
- styles: styles$E,
22012
+ styles: styles$H,
22008
22013
  baseClass: Dialog
22009
22014
  });
22010
22015
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleDialog());
22011
22016
 
22012
- const styles$D = css `
22013
- ${display('block')}
22017
+ const styles$G = css `
22018
+ ${display$1('block')}
22014
22019
 
22015
22020
  :host {
22016
22021
  position: absolute;
@@ -22306,7 +22311,7 @@
22306
22311
  const nimbleDrawer = Drawer.compose({
22307
22312
  baseName: 'drawer',
22308
22313
  template: template$t,
22309
- styles: styles$D
22314
+ styles: styles$G
22310
22315
  });
22311
22316
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleDrawer());
22312
22317
 
@@ -24536,6 +24541,10 @@
24536
24541
  }
24537
24542
  }
24538
24543
 
24544
+ const styles$F = css `
24545
+ ${display$1('none')}
24546
+ `;
24547
+
24539
24548
  const supportedLabels$1 = {
24540
24549
  popupDismiss: popupDismissLabel,
24541
24550
  numericDecrement: numericDecrementLabel,
@@ -24580,7 +24589,8 @@
24580
24589
  attr({ attribute: 'filter-no-results' })
24581
24590
  ], LabelProviderCore.prototype, "filterNoResults", void 0);
24582
24591
  const nimbleLabelProviderCore = LabelProviderCore.compose({
24583
- baseName: 'label-provider-core'
24592
+ baseName: 'label-provider-core',
24593
+ styles: styles$F
24584
24594
  });
24585
24595
  DesignSystem.getOrCreate()
24586
24596
  .withPrefix('nimble')
@@ -24746,14 +24756,15 @@
24746
24756
  attr({ attribute: 'group-row-placeholder-empty' })
24747
24757
  ], LabelProviderTable.prototype, "groupRowPlaceholderEmpty", void 0);
24748
24758
  const nimbleLabelProviderTable = LabelProviderTable.compose({
24749
- baseName: 'label-provider-table'
24759
+ baseName: 'label-provider-table',
24760
+ styles: styles$F
24750
24761
  });
24751
24762
  DesignSystem.getOrCreate()
24752
24763
  .withPrefix('nimble')
24753
24764
  .register(nimbleLabelProviderTable());
24754
24765
 
24755
- const styles$C = css `
24756
- ${display('flex')}
24766
+ const styles$E = css `
24767
+ ${display$1('flex')}
24757
24768
 
24758
24769
  :host {
24759
24770
  font: ${bodyFont};
@@ -24925,7 +24936,7 @@
24925
24936
  baseName: 'list-option',
24926
24937
  baseClass: ListboxOption,
24927
24938
  template: template$s,
24928
- styles: styles$C
24939
+ styles: styles$E
24929
24940
  });
24930
24941
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleListOption());
24931
24942
  const listOptionTag = 'nimble-list-option';
@@ -24941,6 +24952,10 @@
24941
24952
 
24942
24953
  const template$r = html `<template slot="mapping"></template>`;
24943
24954
 
24955
+ const styles$D = css `
24956
+ ${display$1('none')}
24957
+ `;
24958
+
24944
24959
  /**
24945
24960
  * Maps data values to text.
24946
24961
  * One or more may be added as children of a nimble-table-column-mapping element. The
@@ -24953,7 +24968,8 @@
24953
24968
  ], MappingEmpty.prototype, "text", void 0);
24954
24969
  const emptyMapping = MappingEmpty.compose({
24955
24970
  baseName: 'mapping-empty',
24956
- template: template$r
24971
+ template: template$r,
24972
+ styles: styles$D
24957
24973
  });
24958
24974
  DesignSystem.getOrCreate().withPrefix('nimble').register(emptyMapping());
24959
24975
 
@@ -25023,7 +25039,8 @@
25023
25039
  ], MappingIcon.prototype, "resolvedIcon", void 0);
25024
25040
  const iconMapping = MappingIcon.compose({
25025
25041
  baseName: 'mapping-icon',
25026
- template: template$r
25042
+ template: template$r,
25043
+ styles: styles$D
25027
25044
  });
25028
25045
  DesignSystem.getOrCreate().withPrefix('nimble').register(iconMapping());
25029
25046
 
@@ -25046,7 +25063,8 @@
25046
25063
  ], MappingSpinner.prototype, "textHidden", void 0);
25047
25064
  const spinnerMapping = MappingSpinner.compose({
25048
25065
  baseName: 'mapping-spinner',
25049
- template: template$r
25066
+ template: template$r,
25067
+ styles: styles$D
25050
25068
  });
25051
25069
  DesignSystem.getOrCreate().withPrefix('nimble').register(spinnerMapping());
25052
25070
 
@@ -25062,12 +25080,13 @@
25062
25080
  ], MappingText.prototype, "text", void 0);
25063
25081
  const textMapping = MappingText.compose({
25064
25082
  baseName: 'mapping-text',
25065
- template: template$r
25083
+ template: template$r,
25084
+ styles: styles$D
25066
25085
  });
25067
25086
  DesignSystem.getOrCreate().withPrefix('nimble').register(textMapping());
25068
25087
 
25069
- const styles$B = css `
25070
- ${display('grid')}
25088
+ const styles$C = css `
25089
+ ${display$1('grid')}
25071
25090
 
25072
25091
  :host {
25073
25092
  background: ${applicationBackgroundColor};
@@ -25138,7 +25157,7 @@
25138
25157
  baseName: 'menu',
25139
25158
  baseClass: Menu$1,
25140
25159
  template: menuTemplate,
25141
- styles: styles$B
25160
+ styles: styles$C
25142
25161
  });
25143
25162
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleMenu());
25144
25163
 
@@ -25155,8 +25174,8 @@
25155
25174
  auto: 'auto'
25156
25175
  };
25157
25176
 
25158
- const styles$A = css `
25159
- ${display('inline-block')}
25177
+ const styles$B = css `
25178
+ ${display$1('inline-block')}
25160
25179
 
25161
25180
  :host {
25162
25181
  height: ${controlHeight};
@@ -25421,7 +25440,7 @@
25421
25440
  const nimbleMenuButton = MenuButton.compose({
25422
25441
  baseName: 'menu-button',
25423
25442
  template: template$q,
25424
- styles: styles$A,
25443
+ styles: styles$B,
25425
25444
  shadowOptions: {
25426
25445
  delegatesFocus: true
25427
25446
  }
@@ -25429,8 +25448,8 @@
25429
25448
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleMenuButton());
25430
25449
  const menuButtonTag = 'nimble-menu-button';
25431
25450
 
25432
- const styles$z = css `
25433
- ${display('grid')}
25451
+ const styles$A = css `
25452
+ ${display$1('grid')}
25434
25453
 
25435
25454
  :host {
25436
25455
  contain: layout;
@@ -25527,7 +25546,7 @@
25527
25546
  baseName: 'menu-item',
25528
25547
  baseClass: MenuItem$1,
25529
25548
  template: menuItemTemplate,
25530
- styles: styles$z,
25549
+ styles: styles$A,
25531
25550
  expandCollapseGlyph: arrowExpanderRight16X16.data
25532
25551
  });
25533
25552
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleMenuItem());
@@ -25541,9 +25560,9 @@
25541
25560
  block: 'block'
25542
25561
  };
25543
25562
 
25544
- const styles$y = css `
25545
- ${display('inline-block')}
25546
- ${styles$G}
25563
+ const styles$z = css `
25564
+ ${display$1('inline-block')}
25565
+ ${styles$J}
25547
25566
 
25548
25567
  :host {
25549
25568
  font: ${bodyFont};
@@ -25757,7 +25776,7 @@
25757
25776
  baseName: 'number-field',
25758
25777
  baseClass: NumberField$1,
25759
25778
  template: numberFieldTemplate,
25760
- styles: styles$y,
25779
+ styles: styles$z,
25761
25780
  shadowOptions: {
25762
25781
  delegatesFocus: true
25763
25782
  },
@@ -25800,8 +25819,8 @@
25800
25819
  });
25801
25820
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleNumberField());
25802
25821
 
25803
- const styles$x = css `
25804
- ${display('inline-flex')}
25822
+ const styles$y = css `
25823
+ ${display$1('inline-flex')}
25805
25824
 
25806
25825
  :host {
25807
25826
  font: ${bodyFont};
@@ -25901,13 +25920,13 @@
25901
25920
  baseName: 'radio',
25902
25921
  baseClass: Radio$1,
25903
25922
  template: radioTemplate,
25904
- styles: styles$x,
25923
+ styles: styles$y,
25905
25924
  checkedIndicator: circleFilled16X16.data
25906
25925
  });
25907
25926
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleRadio());
25908
25927
 
25909
- const styles$w = css `
25910
- ${display('inline-block')}
25928
+ const styles$x = css `
25929
+ ${display$1('inline-block')}
25911
25930
 
25912
25931
  .positioning-region {
25913
25932
  display: flex;
@@ -25941,7 +25960,7 @@
25941
25960
  baseName: 'radio-group',
25942
25961
  baseClass: RadioGroup$1,
25943
25962
  template: radioGroupTemplate,
25944
- styles: styles$w,
25963
+ styles: styles$x,
25945
25964
  shadowOptions: {
25946
25965
  delegatesFocus: true
25947
25966
  }
@@ -43380,7 +43399,9 @@ img.ProseMirror-separator {
43380
43399
  },
43381
43400
  });
43382
43401
 
43383
- const styles$v = css `
43402
+ const styles$w = css `
43403
+ ${display$1('inline')}
43404
+
43384
43405
  .positioning-region {
43385
43406
  display: flex;
43386
43407
  padding: ${smallPadding} ${standardPadding};
@@ -43415,7 +43436,7 @@ img.ProseMirror-separator {
43415
43436
  baseName: 'toolbar',
43416
43437
  baseClass: Toolbar$1,
43417
43438
  template: toolbarTemplate,
43418
- styles: styles$v,
43439
+ styles: styles$w,
43419
43440
  shadowOptions: {
43420
43441
  delegatesFocus: true
43421
43442
  }
@@ -43447,8 +43468,8 @@ img.ProseMirror-separator {
43447
43468
  cssCustomPropertyName: null
43448
43469
  }).withDefault(richTextLabelDefaults.richTextToggleNumberedListLabel);
43449
43470
 
43450
- const styles$u = css `
43451
- ${styles$H}
43471
+ const styles$v = css `
43472
+ ${styles$K}
43452
43473
 
43453
43474
  :host {
43454
43475
  height: auto;
@@ -43465,8 +43486,8 @@ img.ProseMirror-separator {
43465
43486
  }
43466
43487
  `;
43467
43488
 
43468
- const styles$t = css `
43469
- ${display('inline-flex')}
43489
+ const styles$u = css `
43490
+ ${display$1('inline-flex')}
43470
43491
 
43471
43492
  :host {
43472
43493
  background: ${applicationBackgroundColor};
@@ -43497,7 +43518,7 @@ img.ProseMirror-separator {
43497
43518
  const nimbleListbox = Listbox.compose({
43498
43519
  baseName: 'listbox',
43499
43520
  template: listboxTemplate,
43500
- styles: styles$t
43521
+ styles: styles$u
43501
43522
  });
43502
43523
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleListbox());
43503
43524
 
@@ -43764,7 +43785,7 @@ img.ProseMirror-separator {
43764
43785
  const nimbleRichTextMentionListbox = RichTextMentionListbox.compose({
43765
43786
  baseName: 'rich-text-mention-listbox',
43766
43787
  template: template$p,
43767
- styles: styles$u
43788
+ styles: styles$v
43768
43789
  });
43769
43790
  DesignSystem.getOrCreate()
43770
43791
  .withPrefix('nimble')
@@ -43874,9 +43895,9 @@ img.ProseMirror-separator {
43874
43895
  </template>
43875
43896
  `;
43876
43897
 
43877
- const styles$s = css `
43878
- ${display('inline-flex')}
43879
- ${styles$G}
43898
+ const styles$t = css `
43899
+ ${display$1('inline-flex')}
43900
+ ${styles$J}
43880
43901
 
43881
43902
  :host {
43882
43903
  font: ${bodyFont};
@@ -58489,7 +58510,7 @@ img.ProseMirror-separator {
58489
58510
  const nimbleRichTextEditor = RichTextEditor.compose({
58490
58511
  baseName: 'rich-text-editor',
58491
58512
  template: template$o,
58492
- styles: styles$s,
58513
+ styles: styles$t,
58493
58514
  shadowOptions: {
58494
58515
  delegatesFocus: true
58495
58516
  }
@@ -58504,8 +58525,8 @@ img.ProseMirror-separator {
58504
58525
  </template>
58505
58526
  `;
58506
58527
 
58507
- const styles$r = css `
58508
- ${display('flex')}
58528
+ const styles$s = css `
58529
+ ${display$1('flex')}
58509
58530
 
58510
58531
  :host {
58511
58532
  font: ${bodyFont};
@@ -58617,15 +58638,15 @@ img.ProseMirror-separator {
58617
58638
  const nimbleRichTextViewer = RichTextViewer.compose({
58618
58639
  baseName: 'rich-text-viewer',
58619
58640
  template: template$n,
58620
- styles: styles$r
58641
+ styles: styles$s
58621
58642
  });
58622
58643
  DesignSystem.getOrCreate()
58623
58644
  .withPrefix('nimble')
58624
58645
  .register(nimbleRichTextViewer());
58625
58646
 
58626
- const styles$q = css `
58627
- ${styles$H}
58628
- ${styles$G}
58647
+ const styles$r = css `
58648
+ ${styles$K}
58649
+ ${styles$J}
58629
58650
 
58630
58651
  ${
58631
58652
  /* We are using flex `order` to define the visual ordering of the selected value,
@@ -58639,8 +58660,15 @@ img.ProseMirror-separator {
58639
58660
  order: 1;
58640
58661
  }
58641
58662
 
58642
- [part='indicator'] {
58663
+ .clear-button {
58643
58664
  order: 3;
58665
+ width: auto;
58666
+ height: auto;
58667
+ margin-left: ${smallPadding};
58668
+ }
58669
+
58670
+ [part='indicator'] {
58671
+ order: 4;
58644
58672
  }
58645
58673
 
58646
58674
  .error-icon {
@@ -58776,7 +58804,6 @@ img.ProseMirror-separator {
58776
58804
  role="combobox"
58777
58805
  tabindex="${x => (!x.disabled ? '0' : null)}"
58778
58806
  @click="${(x, c) => x.clickHandler(c.event)}"
58779
- @change="${x => x.changeValueHandler()}"
58780
58807
  @contentchange="${x => x.updateDisplayValue()}"
58781
58808
  @focusin="${(x, c) => x.focusinHandler(c.event)}"
58782
58809
  @focusout="${(x, c) => x.focusoutHandler(c.event)}"
@@ -58795,6 +58822,17 @@ img.ProseMirror-separator {
58795
58822
  <div class="selected-value ${x => (x.displayPlaceholder ? 'placeholder' : '')}" part="selected-value" ${overflow('hasOverflow')} title=${x => (x.hasOverflow && x.displayValue ? x.displayValue : null)}>
58796
58823
  <slot name="selected-value">${x => x.displayValue}</slot>
58797
58824
  </div>
58825
+ ${when(x => !x.disabled && x.clearable && !x.displayPlaceholder && x.selectedIndex >= 0, html `
58826
+ <${buttonTag}
58827
+ class="clear-button"
58828
+ tabindex="-1"
58829
+ part="clear-button"
58830
+ content-hidden
58831
+ appearance="ghost"
58832
+ @click="${(x, c) => x.clearClickHandler(c.event)}">
58833
+ <${iconXmarkTag} slot="start"></${iconXmarkTag}>
58834
+ </${buttonTag}>
58835
+ `)}
58798
58836
  <div aria-hidden="true" class="indicator" part="indicator">
58799
58837
  <slot name="indicator">
58800
58838
  ${definition.indicator || ''}
@@ -58889,6 +58927,9 @@ img.ProseMirror-separator {
58889
58927
  const isOptionSelectable = (el) => {
58890
58928
  return !el.visuallyHidden && !el.disabled && !el.hidden;
58891
58929
  };
58930
+ const isOptionPlaceholder = (el) => {
58931
+ return el.disabled && el.hidden;
58932
+ };
58892
58933
  /**
58893
58934
  * A nimble-styled HTML select.
58894
58935
  */
@@ -58898,6 +58939,7 @@ img.ProseMirror-separator {
58898
58939
  this.appearance = DropdownAppearance.underline;
58899
58940
  this.errorVisible = false;
58900
58941
  this.filterMode = FilterMode.none;
58942
+ this.clearable = false;
58901
58943
  /**
58902
58944
  * @internal
58903
58945
  */
@@ -58970,13 +59012,8 @@ img.ProseMirror-separator {
58970
59012
  if (prev !== newValue && !(this.open && this.selectedIndex < 0)) {
58971
59013
  this._value = newValue;
58972
59014
  super.valueChanged(prev, newValue);
58973
- if (!this.open) {
58974
- this.committedSelectedOption = this.options.find(o => o.value === newValue);
58975
- }
58976
59015
  Observable.notify(this, 'value');
58977
- if (this.collapsible) {
58978
- Observable.notify(this, 'displayValue');
58979
- }
59016
+ this.updateDisplayValue();
58980
59017
  }
58981
59018
  }
58982
59019
  /**
@@ -58984,7 +59021,7 @@ img.ProseMirror-separator {
58984
59021
  */
58985
59022
  get displayValue() {
58986
59023
  Observable.track(this, 'displayValue');
58987
- return this.committedSelectedOption?.text ?? '';
59024
+ return this.firstSelectedOption?.text ?? '';
58988
59025
  }
58989
59026
  /**
58990
59027
  * @internal
@@ -59028,7 +59065,6 @@ img.ProseMirror-separator {
59028
59065
  if (value) {
59029
59066
  this.value = value;
59030
59067
  }
59031
- this.committedSelectedOption = this.options[this.selectedIndex];
59032
59068
  }
59033
59069
  /**
59034
59070
  * @internal
@@ -59073,11 +59109,13 @@ img.ProseMirror-separator {
59073
59109
  break;
59074
59110
  }
59075
59111
  case 'selected': {
59076
- if (isNimbleListOption(sourceElement)) {
59112
+ if (isNimbleListOption(sourceElement)
59113
+ && sourceElement.selected) {
59077
59114
  this.selectedIndex = this.options.indexOf(sourceElement);
59078
59115
  }
59079
- this.setSelectedOptions();
59080
- this.updateDisplayValue();
59116
+ else {
59117
+ this.clearSelect();
59118
+ }
59081
59119
  break;
59082
59120
  }
59083
59121
  case 'hidden': {
@@ -59134,24 +59172,25 @@ img.ProseMirror-separator {
59134
59172
  /**
59135
59173
  * @internal
59136
59174
  */
59137
- changeValueHandler() {
59138
- this.committedSelectedOption = this.options.find(option => option.selected);
59175
+ clearClickHandler(e) {
59176
+ this.open = false;
59177
+ this.clearSelect();
59178
+ this.updateValue(true);
59179
+ e.stopPropagation();
59139
59180
  }
59140
59181
  /**
59141
59182
  * @internal
59142
59183
  */
59143
59184
  updateDisplayValue() {
59144
- if (this.committedSelectedOption?.disabled
59145
- && this.committedSelectedOption?.hidden
59146
- && this.committedSelectedOption?.selected) {
59185
+ const placeholderOption = this.getPlaceholderOption();
59186
+ if (placeholderOption
59187
+ && this.firstSelectedOption === placeholderOption) {
59147
59188
  this.displayPlaceholder = true;
59148
59189
  }
59149
59190
  else {
59150
59191
  this.displayPlaceholder = false;
59151
59192
  }
59152
- if (this.collapsible) {
59153
- Observable.notify(this, 'displayValue');
59154
- }
59193
+ Observable.notify(this, 'displayValue');
59155
59194
  }
59156
59195
  /**
59157
59196
  * Handle content changes on the control input.
@@ -59241,6 +59280,11 @@ img.ProseMirror-separator {
59241
59280
  }
59242
59281
  case keyEscape: {
59243
59282
  if (!this.open) {
59283
+ if (this.clearable) {
59284
+ this.clearSelect();
59285
+ this.updateValue(true);
59286
+ return true;
59287
+ }
59244
59288
  break;
59245
59289
  }
59246
59290
  if (this.collapsible && this.open) {
@@ -59385,10 +59429,10 @@ img.ProseMirror-separator {
59385
59429
  // for more info.
59386
59430
  this.options.push(option);
59387
59431
  }
59388
- // Prevents parent classes from resetting selectedIndex to a positive
59389
- // value while filtering, which can result in a disabled option being
59390
- // selected.
59391
59432
  setSelectedOptions() {
59433
+ // Prevents parent classes from resetting selectedIndex to a positive
59434
+ // value while filtering, which can result in a disabled option being
59435
+ // selected.
59392
59436
  if (this.open && this.selectedIndex === -1) {
59393
59437
  return;
59394
59438
  }
@@ -59484,12 +59528,17 @@ img.ProseMirror-separator {
59484
59528
  };
59485
59529
  let selectedIndex = -1;
59486
59530
  let firstValidOptionIndex = -1;
59531
+ let placeholderIndex = -1;
59487
59532
  for (let i = 0; i < options?.length; i++) {
59488
59533
  const option = options[i];
59489
- if (optionIsSelected(option) || option?.value === this.value) {
59534
+ if (optionIsSelected(option) || option.value === this.value) {
59490
59535
  selectedIndex = i;
59536
+ break;
59491
59537
  }
59492
- if (firstValidOptionIndex === -1
59538
+ else if (placeholderIndex === -1 && isOptionPlaceholder(option)) {
59539
+ placeholderIndex = i;
59540
+ }
59541
+ else if (firstValidOptionIndex === -1
59493
59542
  && isOptionSelectable(option)) {
59494
59543
  firstValidOptionIndex = i;
59495
59544
  }
@@ -59497,13 +59546,15 @@ img.ProseMirror-separator {
59497
59546
  if (selectedIndex !== -1) {
59498
59547
  this.selectedIndex = selectedIndex;
59499
59548
  }
59549
+ else if (placeholderIndex !== -1) {
59550
+ this.selectedIndex = placeholderIndex;
59551
+ }
59500
59552
  else if (firstValidOptionIndex !== -1) {
59501
59553
  this.selectedIndex = firstValidOptionIndex;
59502
59554
  }
59503
59555
  else {
59504
59556
  this.selectedIndex = 0;
59505
59557
  }
59506
- this.committedSelectedOption = options[this.selectedIndex];
59507
59558
  }
59508
59559
  setActiveOption(newActiveIndex) {
59509
59560
  const activeOption = this.options[newActiveIndex];
@@ -59539,8 +59590,8 @@ img.ProseMirror-separator {
59539
59590
  });
59540
59591
  }
59541
59592
  }
59542
- committedSelectedOptionChanged() {
59543
- this.updateDisplayValue();
59593
+ getPlaceholderOption() {
59594
+ return this.options.find(o => o.hidden && o.disabled);
59544
59595
  }
59545
59596
  setPositioning() {
59546
59597
  if (!this.$fastController.isConnected) {
@@ -59615,6 +59666,12 @@ img.ProseMirror-separator {
59615
59666
  });
59616
59667
  }
59617
59668
  }
59669
+ clearSelect() {
59670
+ const placeholder = this.getPlaceholderOption();
59671
+ this.selectedIndex = placeholder
59672
+ ? this.options.indexOf(placeholder)
59673
+ : -1;
59674
+ }
59618
59675
  /**
59619
59676
  * Resets and fills the proxy to match the component's options.
59620
59677
  *
@@ -59641,7 +59698,6 @@ img.ProseMirror-separator {
59641
59698
  this.updateListboxMaxHeightCssVariable();
59642
59699
  }
59643
59700
  initializeOpenState() {
59644
- this.committedSelectedOption = this.options[this.selectedIndex];
59645
59701
  this.setActiveOption(this.selectedIndex);
59646
59702
  this.ariaControls = this.listboxId;
59647
59703
  this.ariaExpanded = 'true';
@@ -59669,6 +59725,9 @@ img.ProseMirror-separator {
59669
59725
  __decorate$1([
59670
59726
  attr({ attribute: 'filter-mode' })
59671
59727
  ], Select.prototype, "filterMode", void 0);
59728
+ __decorate$1([
59729
+ attr({ attribute: 'clearable', mode: 'boolean' })
59730
+ ], Select.prototype, "clearable", void 0);
59672
59731
  __decorate$1([
59673
59732
  observable
59674
59733
  ], Select.prototype, "displayPlaceholder", void 0);
@@ -59699,9 +59758,6 @@ img.ProseMirror-separator {
59699
59758
  __decorate$1([
59700
59759
  observable
59701
59760
  ], Select.prototype, "filter", void 0);
59702
- __decorate$1([
59703
- observable
59704
- ], Select.prototype, "committedSelectedOption", void 0);
59705
59761
  __decorate$1([
59706
59762
  observable
59707
59763
  ], Select.prototype, "maxHeight", void 0);
@@ -59715,7 +59771,7 @@ img.ProseMirror-separator {
59715
59771
  baseName: 'select',
59716
59772
  baseClass: Select$2,
59717
59773
  template: template$m,
59718
- styles: styles$q,
59774
+ styles: styles$r,
59719
59775
  indicator: arrowExpanderDown16X16.data,
59720
59776
  end: html `
59721
59777
  <${iconExclamationMarkTag}
@@ -59728,8 +59784,8 @@ img.ProseMirror-separator {
59728
59784
  applyMixins(Select, StartEnd, DelegatesARIASelect);
59729
59785
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleSelect());
59730
59786
 
59731
- const styles$p = css `
59732
- ${display('inline-grid')}
59787
+ const styles$q = css `
59788
+ ${display$1('inline-grid')}
59733
59789
 
59734
59790
  :host {
59735
59791
  height: ${spinnerSmallHeight};
@@ -59946,13 +60002,13 @@ img.ProseMirror-separator {
59946
60002
  const nimbleSpinner = Spinner.compose({
59947
60003
  baseName: 'spinner',
59948
60004
  template: template$l,
59949
- styles: styles$p
60005
+ styles: styles$q
59950
60006
  });
59951
60007
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleSpinner());
59952
60008
  const spinnerTag = 'nimble-spinner';
59953
60009
 
59954
- const styles$o = css `
59955
- ${display('inline-flex')}
60010
+ const styles$p = css `
60011
+ ${display$1('inline-flex')}
59956
60012
 
59957
60013
  :host {
59958
60014
  outline: none;
@@ -60160,12 +60216,12 @@ img.ProseMirror-separator {
60160
60216
  baseClass: Switch$1,
60161
60217
  baseName: 'switch',
60162
60218
  template: template$k,
60163
- styles: styles$o
60219
+ styles: styles$p
60164
60220
  });
60165
60221
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleSwitch());
60166
60222
 
60167
- const styles$n = css `
60168
- ${display('inline-flex')}
60223
+ const styles$o = css `
60224
+ ${display$1('inline-flex')}
60169
60225
 
60170
60226
  :host {
60171
60227
  position: relative;
@@ -60275,12 +60331,12 @@ img.ProseMirror-separator {
60275
60331
  baseName: 'tab',
60276
60332
  baseClass: Tab$1,
60277
60333
  template: tabTemplate,
60278
- styles: styles$n
60334
+ styles: styles$o
60279
60335
  });
60280
60336
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTab());
60281
60337
 
60282
- const styles$m = css `
60283
- ${display('block')}
60338
+ const styles$n = css `
60339
+ ${display$1('block')}
60284
60340
 
60285
60341
  :host {
60286
60342
  box-sizing: border-box;
@@ -60299,7 +60355,7 @@ img.ProseMirror-separator {
60299
60355
  baseName: 'tab-panel',
60300
60356
  baseClass: TabPanel$1,
60301
60357
  template: tabPanelTemplate,
60302
- styles: styles$m
60358
+ styles: styles$n
60303
60359
  });
60304
60360
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTabPanel());
60305
60361
 
@@ -63995,8 +64051,8 @@ img.ProseMirror-separator {
63995
64051
  }
63996
64052
  }
63997
64053
 
63998
- const styles$l = css `
63999
- ${display('flex')}
64054
+ const styles$m = css `
64055
+ ${display$1('flex')}
64000
64056
 
64001
64057
  :host {
64002
64058
  height: 480px;
@@ -64179,8 +64235,8 @@ img.ProseMirror-separator {
64179
64235
  }
64180
64236
  `));
64181
64237
 
64182
- const styles$k = css `
64183
- ${display('flex')}
64238
+ const styles$l = css `
64239
+ ${display$1('flex')}
64184
64240
 
64185
64241
  :host {
64186
64242
  height: ${controlHeight};
@@ -64283,12 +64339,12 @@ img.ProseMirror-separator {
64283
64339
  const nimbleTableHeader = TableHeader.compose({
64284
64340
  baseName: 'table-header',
64285
64341
  template: template$j,
64286
- styles: styles$k
64342
+ styles: styles$l
64287
64343
  });
64288
64344
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTableHeader());
64289
64345
  const tableHeaderTag = 'nimble-table-header';
64290
64346
 
64291
- const styles$j = css `
64347
+ const styles$k = css `
64292
64348
  :host .animating {
64293
64349
  transition: ${mediumDelay} ease-in;
64294
64350
  }
@@ -64313,9 +64369,9 @@ img.ProseMirror-separator {
64313
64369
  }
64314
64370
  `;
64315
64371
 
64316
- const styles$i = css `
64317
- ${styles$j}
64318
- ${display('flex')}
64372
+ const styles$j = css `
64373
+ ${display$1('flex')}
64374
+ ${styles$k}
64319
64375
 
64320
64376
  :host {
64321
64377
  width: fit-content;
@@ -64436,8 +64492,8 @@ img.ProseMirror-separator {
64436
64492
  }
64437
64493
  `));
64438
64494
 
64439
- const styles$h = css `
64440
- ${display('flex')}
64495
+ const styles$i = css `
64496
+ ${display$1('flex')}
64441
64497
 
64442
64498
  :host {
64443
64499
  --ni-private-table-cell-nesting-level: 0;
@@ -64454,8 +64510,6 @@ img.ProseMirror-separator {
64454
64510
 
64455
64511
  .cell-view {
64456
64512
  overflow: hidden;
64457
- display: flex;
64458
- align-items: center;
64459
64513
  }
64460
64514
 
64461
64515
  .action-menu {
@@ -64539,7 +64593,7 @@ img.ProseMirror-separator {
64539
64593
  const nimbleTableCell = TableCell.compose({
64540
64594
  baseName: 'table-cell',
64541
64595
  template: template$i,
64542
- styles: styles$h
64596
+ styles: styles$i
64543
64597
  });
64544
64598
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTableCell());
64545
64599
  const tableCellTag = 'nimble-table-cell';
@@ -64881,14 +64935,14 @@ img.ProseMirror-separator {
64881
64935
  const nimbleTableRow = TableRow.compose({
64882
64936
  baseName: 'table-row',
64883
64937
  template: template$h,
64884
- styles: styles$i
64938
+ styles: styles$j
64885
64939
  });
64886
64940
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTableRow());
64887
64941
  const tableRowTag = 'nimble-table-row';
64888
64942
 
64889
- const styles$g = css `
64890
- ${display('grid')}
64891
- ${styles$j}
64943
+ const styles$h = css `
64944
+ ${display$1('grid')}
64945
+ ${styles$k}
64892
64946
 
64893
64947
  :host {
64894
64948
  align-items: center;
@@ -64942,7 +64996,6 @@ img.ProseMirror-separator {
64942
64996
  padding-left: ${mediumPadding};
64943
64997
  ${userSelectNone}
64944
64998
  overflow: hidden;
64945
- display: flex;
64946
64999
  }
64947
65000
 
64948
65001
  .group-row-child-count {
@@ -65114,7 +65167,7 @@ img.ProseMirror-separator {
65114
65167
  const nimbleTableGroupRow = TableGroupRow.compose({
65115
65168
  baseName: 'table-group-row',
65116
65169
  template: template$g,
65117
- styles: styles$g
65170
+ styles: styles$h
65118
65171
  });
65119
65172
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTableGroupRow());
65120
65173
  const tableGroupRowTag = 'nimble-table-group-row';
@@ -67903,14 +67956,12 @@ img.ProseMirror-separator {
67903
67956
  const nimbleTable = Table.compose({
67904
67957
  baseName: 'table',
67905
67958
  template: template$f,
67906
- styles: styles$l
67959
+ styles: styles$m
67907
67960
  });
67908
67961
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTable());
67909
67962
 
67910
- const styles$f = css `
67911
- :host {
67912
- display: contents;
67913
- }
67963
+ const styles$g = css `
67964
+ ${display$1('contents')}
67914
67965
 
67915
67966
  .header-content {
67916
67967
  white-space: nowrap;
@@ -68013,12 +68064,15 @@ img.ProseMirror-separator {
68013
68064
  return ColumnWithPlaceholder;
68014
68065
  }
68015
68066
 
68016
- const styles$e = css `
68067
+ const styles$f = css `
68068
+ ${display$1('flex')}
68069
+
68017
68070
  :host {
68018
68071
  width: fit-content;
68019
68072
  max-width: 100%;
68020
68073
  height: fit-content;
68021
68074
  align-self: center;
68075
+ align-items: center;
68022
68076
  }
68023
68077
 
68024
68078
  nimble-anchor {
@@ -68124,7 +68178,7 @@ img.ProseMirror-separator {
68124
68178
  const anchorCellView = TableColumnAnchorCellView.compose({
68125
68179
  baseName: 'table-column-anchor-cell-view',
68126
68180
  template: template$d,
68127
- styles: styles$e
68181
+ styles: styles$f
68128
68182
  });
68129
68183
  DesignSystem.getOrCreate().withPrefix('nimble').register(anchorCellView());
68130
68184
  const tableColumnAnchorCellViewTag = 'nimble-table-column-anchor-cell-view';
@@ -68210,7 +68264,9 @@ img.ProseMirror-separator {
68210
68264
  </span>
68211
68265
  `;
68212
68266
 
68213
- const styles$d = css `
68267
+ const styles$e = css `
68268
+ ${display$1('flex')}
68269
+
68214
68270
  span {
68215
68271
  font: ${bodyFont};
68216
68272
  color: ${bodyFontColor};
@@ -68233,7 +68289,7 @@ img.ProseMirror-separator {
68233
68289
  const tableColumnTextGroupHeaderView = TableColumnTextGroupHeaderView.compose({
68234
68290
  baseName: 'table-column-text-group-header-view',
68235
68291
  template: template$c,
68236
- styles: styles$d
68292
+ styles: styles$e
68237
68293
  });
68238
68294
  DesignSystem.getOrCreate()
68239
68295
  .withPrefix('nimble')
@@ -68352,7 +68408,7 @@ img.ProseMirror-separator {
68352
68408
  const nimbleTableColumnAnchor = TableColumnAnchor.compose({
68353
68409
  baseName: 'table-column-anchor',
68354
68410
  template: template$e,
68355
- styles: styles$f
68411
+ styles: styles$g
68356
68412
  });
68357
68413
  DesignSystem.getOrCreate()
68358
68414
  .withPrefix('nimble')
@@ -68405,7 +68461,7 @@ img.ProseMirror-separator {
68405
68461
  const tableColumnDateTextGroupHeaderView = TableColumnDateTextGroupHeaderView.compose({
68406
68462
  baseName: 'table-column-date-text-group-header-view',
68407
68463
  template: template$c,
68408
- styles: styles$d
68464
+ styles: styles$e
68409
68465
  });
68410
68466
  DesignSystem.getOrCreate()
68411
68467
  .withPrefix('nimble')
@@ -68437,7 +68493,13 @@ img.ProseMirror-separator {
68437
68493
  </template>
68438
68494
  `;
68439
68495
 
68440
- const styles$c = css `
68496
+ const styles$d = css `
68497
+ ${display$1('flex')}
68498
+
68499
+ :host {
68500
+ align-items: center;
68501
+ }
68502
+
68441
68503
  :host(.right-align) {
68442
68504
  margin-left: auto;
68443
68505
  }
@@ -68534,7 +68596,7 @@ img.ProseMirror-separator {
68534
68596
  const dateTextCellView = TableColumnDateTextCellView.compose({
68535
68597
  baseName: 'table-column-date-text-cell-view',
68536
68598
  template: template$b,
68537
- styles: styles$c
68599
+ styles: styles$d
68538
68600
  });
68539
68601
  DesignSystem.getOrCreate().withPrefix('nimble').register(dateTextCellView());
68540
68602
  const tableColumnDateTextCellViewTag = 'nimble-table-column-date-text-cell-view';
@@ -68795,7 +68857,7 @@ img.ProseMirror-separator {
68795
68857
  const nimbleTableColumnDateText = TableColumnDateText.compose({
68796
68858
  baseName: 'table-column-date-text',
68797
68859
  template: template$e,
68798
- styles: styles$f
68860
+ styles: styles$g
68799
68861
  });
68800
68862
  DesignSystem.getOrCreate()
68801
68863
  .withPrefix('nimble')
@@ -68812,7 +68874,7 @@ img.ProseMirror-separator {
68812
68874
  const durationTextCellView = TableColumnDurationTextCellView.compose({
68813
68875
  baseName: 'table-column-duration-text-cell-view',
68814
68876
  template: template$b,
68815
- styles: styles$c
68877
+ styles: styles$d
68816
68878
  });
68817
68879
  DesignSystem.getOrCreate()
68818
68880
  .withPrefix('nimble')
@@ -68914,7 +68976,7 @@ img.ProseMirror-separator {
68914
68976
  const tableColumnDurationTextGroupHeaderView = TableColumnDurationTextGroupHeaderView.compose({
68915
68977
  baseName: 'table-column-duration-text-group-header-view',
68916
68978
  template: template$c,
68917
- styles: styles$d
68979
+ styles: styles$e
68918
68980
  });
68919
68981
  DesignSystem.getOrCreate()
68920
68982
  .withPrefix('nimble')
@@ -68967,7 +69029,7 @@ img.ProseMirror-separator {
68967
69029
  const nimbleTableColumnDurationText = TableColumnDurationText.compose({
68968
69030
  baseName: 'table-column-duration-text',
68969
69031
  template: template$e,
68970
- styles: styles$f
69032
+ styles: styles$g
68971
69033
  });
68972
69034
  DesignSystem.getOrCreate()
68973
69035
  .withPrefix('nimble')
@@ -69075,8 +69137,8 @@ img.ProseMirror-separator {
69075
69137
  attr({ attribute: 'key-type' })
69076
69138
  ], TableColumnEnumBase.prototype, "keyType", void 0);
69077
69139
 
69078
- const styles$b = css `
69079
- ${styles$f}
69140
+ const styles$c = css `
69141
+ ${styles$g}
69080
69142
 
69081
69143
  slot[name='mapping'] {
69082
69144
  display: none;
@@ -69169,8 +69231,8 @@ img.ProseMirror-separator {
69169
69231
  }
69170
69232
  }
69171
69233
 
69172
- const styles$a = css `
69173
- ${display('inline-flex')}
69234
+ const styles$b = css `
69235
+ ${display$1('inline-flex')}
69174
69236
 
69175
69237
  :host {
69176
69238
  gap: ${smallPadding};
@@ -69344,15 +69406,15 @@ img.ProseMirror-separator {
69344
69406
  const mappingGroupHeaderView = TableColumnMappingGroupHeaderView.compose({
69345
69407
  baseName: 'table-column-mapping-group-header-view',
69346
69408
  template: template$9,
69347
- styles: styles$a
69409
+ styles: styles$b
69348
69410
  });
69349
69411
  DesignSystem.getOrCreate()
69350
69412
  .withPrefix('nimble')
69351
69413
  .register(mappingGroupHeaderView());
69352
69414
  const tableColumnMappingGroupHeaderViewTag = 'nimble-table-column-mapping-group-header-view';
69353
69415
 
69354
- const styles$9 = css `
69355
- ${display('inline-flex')}
69416
+ const styles$a = css `
69417
+ ${display$1('inline-flex')}
69356
69418
 
69357
69419
  :host {
69358
69420
  gap: ${smallPadding};
@@ -69464,7 +69526,7 @@ img.ProseMirror-separator {
69464
69526
  const mappingCellView = TableColumnMappingCellView.compose({
69465
69527
  baseName: 'table-column-mapping-cell-view',
69466
69528
  template: template$8,
69467
- styles: styles$9
69529
+ styles: styles$a
69468
69530
  });
69469
69531
  DesignSystem.getOrCreate().withPrefix('nimble').register(mappingCellView());
69470
69532
  const tableColumnMappingCellViewTag = 'nimble-table-column-mapping-cell-view';
@@ -69549,7 +69611,7 @@ img.ProseMirror-separator {
69549
69611
  const nimbleTableColumnMapping = TableColumnMapping.compose({
69550
69612
  baseName: 'table-column-mapping',
69551
69613
  template: template$a,
69552
- styles: styles$b
69614
+ styles: styles$c
69553
69615
  });
69554
69616
  DesignSystem.getOrCreate()
69555
69617
  .withPrefix('nimble')
@@ -69578,7 +69640,7 @@ img.ProseMirror-separator {
69578
69640
  const tableColumnNumberTextGroupHeaderView = TableColumnNumberTextGroupHeaderView.compose({
69579
69641
  baseName: 'table-column-number-text-group-header-view',
69580
69642
  template: template$c,
69581
- styles: styles$d
69643
+ styles: styles$e
69582
69644
  });
69583
69645
  DesignSystem.getOrCreate()
69584
69646
  .withPrefix('nimble')
@@ -69600,7 +69662,7 @@ img.ProseMirror-separator {
69600
69662
  const numberTextCellView = TableColumnNumberTextCellView.compose({
69601
69663
  baseName: 'table-column-number-text-cell-view',
69602
69664
  template: template$b,
69603
- styles: styles$c
69665
+ styles: styles$d
69604
69666
  });
69605
69667
  DesignSystem.getOrCreate().withPrefix('nimble').register(numberTextCellView());
69606
69668
  const tableColumnNumberTextCellViewTag = 'nimble-table-column-number-text-cell-view';
@@ -70141,7 +70203,7 @@ img.ProseMirror-separator {
70141
70203
  const nimbleTableColumnNumberText = TableColumnNumberText.compose({
70142
70204
  baseName: 'table-column-number-text',
70143
70205
  template: template$7,
70144
- styles: styles$f
70206
+ styles: styles$g
70145
70207
  });
70146
70208
  DesignSystem.getOrCreate()
70147
70209
  .withPrefix('nimble')
@@ -70160,7 +70222,7 @@ img.ProseMirror-separator {
70160
70222
  const textCellView = TableColumnTextCellView.compose({
70161
70223
  baseName: 'table-column-text-cell-view',
70162
70224
  template: template$b,
70163
- styles: styles$c
70225
+ styles: styles$d
70164
70226
  });
70165
70227
  DesignSystem.getOrCreate().withPrefix('nimble').register(textCellView());
70166
70228
  const tableColumnTextCellViewTag = 'nimble-table-column-text-cell-view';
@@ -70188,14 +70250,14 @@ img.ProseMirror-separator {
70188
70250
  const nimbleTableColumnText = TableColumnText.compose({
70189
70251
  baseName: 'table-column-text',
70190
70252
  template: template$e,
70191
- styles: styles$f
70253
+ styles: styles$g
70192
70254
  });
70193
70255
  DesignSystem.getOrCreate()
70194
70256
  .withPrefix('nimble')
70195
70257
  .register(nimbleTableColumnText());
70196
70258
 
70197
- const styles$8 = css `
70198
- ${display('grid')}
70259
+ const styles$9 = css `
70260
+ ${display$1('grid')}
70199
70261
 
70200
70262
  :host {
70201
70263
  box-sizing: border-box;
@@ -70237,12 +70299,12 @@ img.ProseMirror-separator {
70237
70299
  baseName: 'tabs',
70238
70300
  baseClass: Tabs$1,
70239
70301
  template: tabsTemplate,
70240
- styles: styles$8
70302
+ styles: styles$9
70241
70303
  });
70242
70304
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTabs());
70243
70305
 
70244
- const styles$7 = css `
70245
- ${display('flex')}
70306
+ const styles$8 = css `
70307
+ ${display$1('flex')}
70246
70308
 
70247
70309
  :host {
70248
70310
  align-items: center;
@@ -70276,7 +70338,7 @@ img.ProseMirror-separator {
70276
70338
  const nimbleTabsToolbar = TabsToolbar.compose({
70277
70339
  baseName: 'tabs-toolbar',
70278
70340
  template: template$6,
70279
- styles: styles$7
70341
+ styles: styles$8
70280
70342
  });
70281
70343
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTabsToolbar());
70282
70344
 
@@ -70285,9 +70347,9 @@ img.ProseMirror-separator {
70285
70347
  block: 'block'
70286
70348
  };
70287
70349
 
70288
- const styles$6 = css `
70289
- ${display('inline-flex')}
70290
- ${styles$G}
70350
+ const styles$7 = css `
70351
+ ${display$1('inline-flex')}
70352
+ ${styles$J}
70291
70353
 
70292
70354
  :host {
70293
70355
  font: ${bodyFont};
@@ -70614,7 +70676,7 @@ img.ProseMirror-separator {
70614
70676
  baseName: 'text-area',
70615
70677
  baseClass: TextArea$1,
70616
70678
  template: template$5,
70617
- styles: styles$6,
70679
+ styles: styles$7,
70618
70680
  shadowOptions: {
70619
70681
  delegatesFocus: true
70620
70682
  }
@@ -70631,9 +70693,9 @@ img.ProseMirror-separator {
70631
70693
  frameless: 'frameless'
70632
70694
  };
70633
70695
 
70634
- const styles$5 = css `
70635
- ${display('inline-block')}
70636
- ${styles$G}
70696
+ const styles$6 = css `
70697
+ ${display$1('inline-block')}
70698
+ ${styles$J}
70637
70699
 
70638
70700
  :host {
70639
70701
  font: ${bodyFont};
@@ -70897,7 +70959,7 @@ img.ProseMirror-separator {
70897
70959
  baseName: 'text-field',
70898
70960
  baseClass: TextField$1,
70899
70961
  template: textFieldTemplate,
70900
- styles: styles$5,
70962
+ styles: styles$6,
70901
70963
  shadowOptions: {
70902
70964
  delegatesFocus: true
70903
70965
  },
@@ -70914,8 +70976,8 @@ img.ProseMirror-separator {
70914
70976
  });
70915
70977
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTextField());
70916
70978
 
70917
- const styles$4 = css `
70918
- ${display('inline-flex')}
70979
+ const styles$5 = css `
70980
+ ${display$1('inline-flex')}
70919
70981
 
70920
70982
  :host {
70921
70983
  font: ${tooltipCaptionFont};
@@ -71055,7 +71117,7 @@ img.ProseMirror-separator {
71055
71117
  baseName: 'tooltip',
71056
71118
  baseClass: Tooltip$1,
71057
71119
  template: template$4,
71058
- styles: styles$4
71120
+ styles: styles$5
71059
71121
  });
71060
71122
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTooltip());
71061
71123
 
@@ -71143,8 +71205,8 @@ img.ProseMirror-separator {
71143
71205
  }
71144
71206
  }
71145
71207
 
71146
- const styles$3 = css `
71147
- ${display('block')}
71208
+ const styles$4 = css `
71209
+ ${display$1('block')}
71148
71210
 
71149
71211
  :host {
71150
71212
  ${
@@ -71361,13 +71423,13 @@ img.ProseMirror-separator {
71361
71423
  baseName: 'tree-item',
71362
71424
  baseClass: TreeItem$1,
71363
71425
  template: treeItemTemplate,
71364
- styles: styles$3,
71426
+ styles: styles$4,
71365
71427
  expandCollapseGlyph: arrowExpanderUp16X16.data
71366
71428
  });
71367
71429
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTreeItem());
71368
71430
 
71369
- const styles$2 = css `
71370
- ${display('flex')}
71431
+ const styles$3 = css `
71432
+ ${display$1('flex')}
71371
71433
 
71372
71434
  :host {
71373
71435
  flex-direction: column;
@@ -71478,7 +71540,7 @@ img.ProseMirror-separator {
71478
71540
  baseName: 'tree-view',
71479
71541
  baseClass: TreeView$1,
71480
71542
  template: template$3,
71481
- styles: styles$2
71543
+ styles: styles$3
71482
71544
  });
71483
71545
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTreeView());
71484
71546
 
@@ -71595,6 +71657,10 @@ img.ProseMirror-separator {
71595
71657
  }
71596
71658
  const byteUnitScale = new ByteUnitScale();
71597
71659
 
71660
+ const styles$2 = css `
71661
+ ${display$1('none')}
71662
+ `;
71663
+
71598
71664
  /**
71599
71665
  * Element that provides a unit scale for conversion of bytes
71600
71666
  */
@@ -71619,7 +71685,8 @@ img.ProseMirror-separator {
71619
71685
  ], UnitByte.prototype, "binary", void 0);
71620
71686
  const nimbleUnitByte = UnitByte.compose({
71621
71687
  baseName: 'unit-byte',
71622
- template: template$2
71688
+ template: template$2,
71689
+ styles: styles$2
71623
71690
  });
71624
71691
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleUnitByte());
71625
71692
 
@@ -71671,7 +71738,8 @@ img.ProseMirror-separator {
71671
71738
  }
71672
71739
  const nimbleUnitVolt = UnitVolt.compose({
71673
71740
  baseName: 'unit-volt',
71674
- template: template$2
71741
+ template: template$2,
71742
+ styles: styles$2
71675
71743
  });
71676
71744
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleUnitVolt());
71677
71745
 
@@ -75053,8 +75121,9 @@ img.ProseMirror-separator {
75053
75121
  `;
75054
75122
 
75055
75123
  const styles$1 = css `
75124
+ ${display$1('inline-block')}
75125
+
75056
75126
  :host {
75057
- display: inline-block;
75058
75127
  width: 500px;
75059
75128
  height: 500px;
75060
75129
  }
@@ -78594,6 +78663,12 @@ img.ProseMirror-separator {
78594
78663
  });
78595
78664
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleWaferMap());
78596
78665
 
78666
+ /**
78667
+ * This utility will generate the appropriate display style, as well as a style rule
78668
+ * to hide the host element when its `hidden` attribute is set.
78669
+ */
78670
+ const display = (displayValue) => `${display$2(displayValue)}`;
78671
+
78597
78672
  const styles = css `
78598
78673
  ${display('inline-block')}
78599
78674