@ni/spright-components 5.2.3 → 5.2.5

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.
@@ -20581,6 +20581,10 @@ so this becomes the fallback color for the slot */ ''}
20581
20581
  color: ${controlLabelDisabledFontColor};
20582
20582
  }
20583
20583
 
20584
+ :host([disabled][appearance-readonly]) .label {
20585
+ color: ${controlLabelFontColor};
20586
+ }
20587
+
20584
20588
  .control {
20585
20589
  align-items: center;
20586
20590
  cursor: pointer;
@@ -20602,6 +20606,11 @@ so this becomes the fallback color for the slot */ ''}
20602
20606
  border-color: rgba(${borderRgbPartialColor}, 0.1);
20603
20607
  }
20604
20608
 
20609
+ :host([disabled][appearance-readonly]) .control {
20610
+ color: ${bodyFontColor};
20611
+ border-color: rgba(${borderRgbPartialColor}, 0.3);
20612
+ }
20613
+
20605
20614
  :host([error-visible]) .control,
20606
20615
  :host([error-visible][open]) .control,
20607
20616
  :host([error-visible][disabled]) .control {
@@ -20623,8 +20632,11 @@ so this becomes the fallback color for the slot */ ''}
20623
20632
  padding-left: ${mediumPadding};
20624
20633
  }
20625
20634
 
20626
- .selected-value[disabled]::placeholder {
20627
- color: ${bodyDisabledFontColor};
20635
+ :host([disabled][appearance-readonly]) .selected-value {
20636
+ cursor: text;
20637
+ user-select: text;
20638
+ -webkit-user-select: text;
20639
+ padding-right: ${smallPadding};
20628
20640
  }
20629
20641
 
20630
20642
  .indicator {
@@ -20636,6 +20648,10 @@ so this becomes the fallback color for the slot */ ''}
20636
20648
  align-items: center;
20637
20649
  }
20638
20650
 
20651
+ :host([disabled][appearance-readonly]) .indicator {
20652
+ display: none;
20653
+ }
20654
+
20639
20655
  .indicator slot[name='indicator'] svg {
20640
20656
  width: ${iconSize};
20641
20657
  height: ${iconSize};
@@ -20737,10 +20753,6 @@ so this becomes the fallback color for the slot */ ''}
20737
20753
  border-bottom-width: ${borderWidth};
20738
20754
  padding-bottom: 0;
20739
20755
  }
20740
-
20741
- :host([disabled]) .control {
20742
- border-color: rgba(${borderRgbPartialColor}, 0.1);
20743
- }
20744
20756
  `), appearanceBehavior(DropdownAppearance.outline, css `
20745
20757
  .control {
20746
20758
  border-width: ${borderWidth};
@@ -20805,12 +20817,6 @@ so this becomes the fallback color for the slot */ ''}
20805
20817
  );
20806
20818
  }
20807
20819
 
20808
- :host([disabled]) *,
20809
- :host([disabled]) {
20810
- ${userSelectNone}
20811
- color: ${bodyDisabledFontColor};
20812
- }
20813
-
20814
20820
  .control {
20815
20821
  bottom-border-width: var(--ni-private-bottom-border-width);
20816
20822
  }
@@ -20837,6 +20843,18 @@ so this becomes the fallback color for the slot */ ''}
20837
20843
  outline: none;
20838
20844
  }
20839
20845
 
20846
+ .selected-value::placeholder {
20847
+ color: ${placeholderFontColor};
20848
+ }
20849
+
20850
+ :host([disabled]) .selected-value::placeholder {
20851
+ color: ${bodyDisabledFontColor};
20852
+ }
20853
+
20854
+ :host([disabled][appearance-readonly]) .selected-value::placeholder {
20855
+ color: ${placeholderFontColor};
20856
+ }
20857
+
20840
20858
  [part='indicator'] {
20841
20859
  display: none;
20842
20860
  }
@@ -20847,6 +20865,10 @@ so this becomes the fallback color for the slot */ ''}
20847
20865
  padding-right: ${smallPadding};
20848
20866
  }
20849
20867
 
20868
+ :host([disabled][appearance-readonly]) .end-slot-container {
20869
+ display: none;
20870
+ }
20871
+
20850
20872
  .separator {
20851
20873
  display: inline;
20852
20874
  width: 2px;
@@ -21039,6 +21061,7 @@ so this becomes the fallback color for the slot */ ''}
21039
21061
  constructor() {
21040
21062
  super(...arguments);
21041
21063
  this.appearance = DropdownAppearance.underline;
21064
+ this.appearanceReadOnly = false;
21042
21065
  /**
21043
21066
  * The open attribute.
21044
21067
  */
@@ -21634,6 +21657,9 @@ so this becomes the fallback color for the slot */ ''}
21634
21657
  __decorate([
21635
21658
  attr
21636
21659
  ], Combobox.prototype, "appearance", void 0);
21660
+ __decorate([
21661
+ attr({ attribute: 'appearance-readonly', mode: 'boolean' })
21662
+ ], Combobox.prototype, "appearanceReadOnly", void 0);
21637
21663
  __decorate([
21638
21664
  attr({ attribute: 'autocomplete', mode: 'fromView' })
21639
21665
  ], Combobox.prototype, "autocomplete", void 0);
@@ -26360,7 +26386,8 @@ so this becomes the fallback color for the slot */ ''}
26360
26386
  const NumberFieldAppearance = {
26361
26387
  underline: 'underline',
26362
26388
  outline: 'outline',
26363
- block: 'block'
26389
+ block: 'block',
26390
+ frameless: 'frameless'
26364
26391
  };
26365
26392
 
26366
26393
  const styles$B = css `
@@ -26567,6 +26594,15 @@ so this becomes the fallback color for the slot */ ''}
26567
26594
  border-width: ${borderWidth};
26568
26595
  padding: 0;
26569
26596
  }
26597
+ `), appearanceBehavior(NumberFieldAppearance.frameless, css `
26598
+ .root {
26599
+ padding-left: ${borderWidth};
26600
+ padding-right: ${borderWidth};
26601
+ }
26602
+
26603
+ :host([full-bleed]) .control {
26604
+ padding-left: 0px;
26605
+ }
26570
26606
  `));
26571
26607
 
26572
26608
  const labelTemplate$4 = createRequiredVisibleLabelTemplate(html `<label
@@ -26663,6 +26699,7 @@ so this becomes the fallback color for the slot */ ''}
26663
26699
  constructor() {
26664
26700
  super(...arguments);
26665
26701
  this.appearance = NumberFieldAppearance.underline;
26702
+ this.fullBleed = false;
26666
26703
  this.appearanceReadOnly = false;
26667
26704
  }
26668
26705
  connectedCallback() {
@@ -26674,6 +26711,9 @@ so this becomes the fallback color for the slot */ ''}
26674
26711
  __decorate([
26675
26712
  attr
26676
26713
  ], NumberField.prototype, "appearance", void 0);
26714
+ __decorate([
26715
+ attr({ attribute: 'full-bleed', mode: 'boolean' })
26716
+ ], NumberField.prototype, "fullBleed", void 0);
26677
26717
  __decorate([
26678
26718
  attr({ attribute: 'appearance-readonly', mode: 'boolean' })
26679
26719
  ], NumberField.prototype, "appearanceReadOnly", void 0);
@@ -60672,6 +60712,10 @@ img.ProseMirror-separator {
60672
60712
  color: ${bodyDisabledFontColor};
60673
60713
  }
60674
60714
 
60715
+ :host([disabled][appearance-readonly]) .selected-value.placeholder {
60716
+ color: ${placeholderFontColor};
60717
+ }
60718
+
60675
60719
  .selected-value {
60676
60720
  order: 1;
60677
60721
  }
@@ -61223,6 +61267,7 @@ img.ProseMirror-separator {
61223
61267
  constructor() {
61224
61268
  super(...arguments);
61225
61269
  this.appearance = DropdownAppearance.underline;
61270
+ this.appearanceReadOnly = false;
61226
61271
  this.filterMode = FilterMode.none;
61227
61272
  this.clearable = false;
61228
61273
  this.loadingVisible = false;
@@ -62208,6 +62253,9 @@ img.ProseMirror-separator {
62208
62253
  __decorate([
62209
62254
  attr
62210
62255
  ], Select.prototype, "appearance", void 0);
62256
+ __decorate([
62257
+ attr({ attribute: 'appearance-readonly', mode: 'boolean' })
62258
+ ], Select.prototype, "appearanceReadOnly", void 0);
62211
62259
  __decorate([
62212
62260
  attr({ attribute: 'position' })
62213
62261
  ], Select.prototype, "positionAttribute", void 0);