@ni/nimble-components 33.3.0 → 33.5.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.
@@ -26360,7 +26360,8 @@ so this becomes the fallback color for the slot */ ''}
26360
26360
  const NumberFieldAppearance = {
26361
26361
  underline: 'underline',
26362
26362
  outline: 'outline',
26363
- block: 'block'
26363
+ block: 'block',
26364
+ frameless: 'frameless'
26364
26365
  };
26365
26366
 
26366
26367
  const styles$y = css `
@@ -26567,6 +26568,15 @@ so this becomes the fallback color for the slot */ ''}
26567
26568
  border-width: ${borderWidth};
26568
26569
  padding: 0;
26569
26570
  }
26571
+ `), appearanceBehavior(NumberFieldAppearance.frameless, css `
26572
+ .root {
26573
+ padding-left: ${borderWidth};
26574
+ padding-right: ${borderWidth};
26575
+ }
26576
+
26577
+ :host([full-bleed]) .control {
26578
+ padding-left: 0px;
26579
+ }
26570
26580
  `));
26571
26581
 
26572
26582
  const labelTemplate$4 = createRequiredVisibleLabelTemplate(html `<label
@@ -26663,6 +26673,7 @@ so this becomes the fallback color for the slot */ ''}
26663
26673
  constructor() {
26664
26674
  super(...arguments);
26665
26675
  this.appearance = NumberFieldAppearance.underline;
26676
+ this.fullBleed = false;
26666
26677
  this.appearanceReadOnly = false;
26667
26678
  }
26668
26679
  connectedCallback() {
@@ -26674,6 +26685,9 @@ so this becomes the fallback color for the slot */ ''}
26674
26685
  __decorate([
26675
26686
  attr
26676
26687
  ], NumberField.prototype, "appearance", void 0);
26688
+ __decorate([
26689
+ attr({ attribute: 'full-bleed', mode: 'boolean' })
26690
+ ], NumberField.prototype, "fullBleed", void 0);
26677
26691
  __decorate([
26678
26692
  attr({ attribute: 'appearance-readonly', mode: 'boolean' })
26679
26693
  ], NumberField.prototype, "appearanceReadOnly", void 0);
@@ -74573,6 +74587,10 @@ focus outline in that case.
74573
74587
  color: ${bodyDisabledFontColor};
74574
74588
  }
74575
74589
 
74590
+ :host([disabled][appearance-readonly]) {
74591
+ color: ${bodyFontColor};
74592
+ }
74593
+
74576
74594
  .label {
74577
74595
  display: block;
74578
74596
  color: ${controlLabelFontColor};
@@ -74583,6 +74601,10 @@ focus outline in that case.
74583
74601
  color: ${controlLabelDisabledFontColor};
74584
74602
  }
74585
74603
 
74604
+ :host([disabled][appearance-readonly]) .label {
74605
+ color: ${controlLabelFontColor};
74606
+ }
74607
+
74586
74608
  .container {
74587
74609
  display: flex;
74588
74610
  justify-content: center;
@@ -74659,6 +74681,10 @@ focus outline in that case.
74659
74681
  border-color: rgba(${borderRgbPartialColor}, 0.1);
74660
74682
  }
74661
74683
 
74684
+ :host([disabled][appearance-readonly]) .control {
74685
+ cursor: text;
74686
+ }
74687
+
74662
74688
  :host([error-visible]) .control {
74663
74689
  border-bottom-color: ${failColor};
74664
74690
  }
@@ -74671,10 +74697,14 @@ focus outline in that case.
74671
74697
  color: ${controlLabelFontColor};
74672
74698
  }
74673
74699
 
74674
- .control[disabled]::placeholder {
74700
+ :host([disabled]) .control::placeholder {
74675
74701
  color: ${controlLabelDisabledFontColor};
74676
74702
  }
74677
74703
 
74704
+ :host([disabled][appearance-readonly]) .control::placeholder {
74705
+ color: ${controlLabelFontColor};
74706
+ }
74707
+
74678
74708
  :host([resize='both']) .control {
74679
74709
  resize: both;
74680
74710
  }
@@ -74714,6 +74744,11 @@ focus outline in that case.
74714
74744
  background-color: rgba(${borderRgbPartialColor}, 0.1);
74715
74745
  }
74716
74746
 
74747
+ :host([disabled][appearance-readonly]) .control {
74748
+ border-color: rgba(${borderRgbPartialColor}, 0.1);
74749
+ background-color: transparent;
74750
+ }
74751
+
74717
74752
  :host([error-visible][disabled]) .control {
74718
74753
  border-bottom-color: ${failColor};
74719
74754
  }
@@ -74796,6 +74831,7 @@ focus outline in that case.
74796
74831
  * HTML Attribute: appearance
74797
74832
  */
74798
74833
  this.appearance = TextAreaAppearance.outline;
74834
+ this.appearanceReadOnly = false;
74799
74835
  /**
74800
74836
  * The width of the vertical scrollbar, if displayed.
74801
74837
  * @internal
@@ -74866,6 +74902,9 @@ focus outline in that case.
74866
74902
  __decorate([
74867
74903
  attr
74868
74904
  ], TextArea.prototype, "appearance", void 0);
74905
+ __decorate([
74906
+ attr({ attribute: 'appearance-readonly', mode: 'boolean' })
74907
+ ], TextArea.prototype, "appearanceReadOnly", void 0);
74869
74908
  __decorate([
74870
74909
  observable
74871
74910
  ], TextArea.prototype, "scrollbarWidth", void 0);