@ni/spright-components 5.2.1 → 5.2.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.
@@ -4700,7 +4700,10 @@ const ny="underline",iy="outline",sy="block",oy=Mt`
4700
4700
 
4701
4701
  :host([disabled]) {
4702
4702
  color: ${Zc};
4703
- cursor: default;
4703
+ }
4704
+
4705
+ :host([disabled][appearance-readonly]) {
4706
+ color: ${Gc};
4704
4707
  }
4705
4708
 
4706
4709
  .label {
@@ -4713,6 +4716,10 @@ const ny="underline",iy="outline",sy="block",oy=Mt`
4713
4716
  color: ${md};
4714
4717
  }
4715
4718
 
4719
+ :host([disabled][appearance-readonly]) .label {
4720
+ color: ${fd};
4721
+ }
4722
+
4716
4723
  .root {
4717
4724
  position: relative;
4718
4725
  display: flex;
@@ -4798,14 +4805,22 @@ const ny="underline",iy="outline",sy="block",oy=Mt`
4798
4805
  outline: none;
4799
4806
  }
4800
4807
 
4808
+ :host([disabled][appearance-readonly]) .control {
4809
+ cursor: text;
4810
+ }
4811
+
4801
4812
  .control::placeholder {
4802
4813
  color: ${fd};
4803
4814
  }
4804
4815
 
4805
- .control[disabled]::placeholder {
4816
+ :host([disabled]) .control::placeholder {
4806
4817
  color: ${Zc};
4807
4818
  }
4808
4819
 
4820
+ :host([disabled][appearance-readonly]) .control::placeholder {
4821
+ color: ${fd};
4822
+ }
4823
+
4809
4824
  .controls {
4810
4825
  display: contents;
4811
4826
  }
@@ -4876,7 +4891,7 @@ const ny="underline",iy="outline",sy="block",oy=Mt`
4876
4891
  >
4877
4892
  <slot ${ie("defaultSlottedNodes")}></slot>
4878
4893
  </label>`)
4879
- class ay extends(jg(pv(ts))){constructor(){super(...arguments),this.appearance=ny}connectedCallback(){super.connectedCallback(),this.control.setAttribute("role","spinbutton")}}t([ft],ay.prototype,"appearance",void 0)
4894
+ class ay extends(jg(pv(ts))){constructor(){super(...arguments),this.appearance=ny,this.appearanceReadOnly=!1}connectedCallback(){super.connectedCallback(),this.control.setAttribute("role","spinbutton")}}t([ft],ay.prototype,"appearance",void 0),t([ft({attribute:"appearance-readonly",mode:"boolean"})],ay.prototype,"appearanceReadOnly",void 0)
4880
4895
  const ly=ay.compose({baseName:"number-field",baseClass:ts,template:(t,e)=>Q`
4881
4896
  <template class="${t=>t.readOnly?"readonly":""}">
4882
4897
  ${ry}
@@ -12800,6 +12815,10 @@ const iP="underline",sP="outline",oP="block",rP="frameless",aP=Mt`
12800
12815
  text-overflow: clip;
12801
12816
  }
12802
12817
 
12818
+ :host([disabled][appearance-readonly]) .control {
12819
+ cursor: text;
12820
+ }
12821
+
12803
12822
  .control::placeholder {
12804
12823
  color: ${fd};
12805
12824
  }