@ni/nimble-components 33.3.0 → 33.4.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.
@@ -12466,6 +12466,10 @@ const KB="outline",YB="block",XB=Mt`
12466
12466
  color: ${Gc};
12467
12467
  }
12468
12468
 
12469
+ :host([disabled][appearance-readonly]) {
12470
+ color: ${Wc};
12471
+ }
12472
+
12469
12473
  .label {
12470
12474
  display: block;
12471
12475
  color: ${pd};
@@ -12476,6 +12480,10 @@ const KB="outline",YB="block",XB=Mt`
12476
12480
  color: ${fd};
12477
12481
  }
12478
12482
 
12483
+ :host([disabled][appearance-readonly]) .label {
12484
+ color: ${pd};
12485
+ }
12486
+
12479
12487
  .container {
12480
12488
  display: flex;
12481
12489
  justify-content: center;
@@ -12551,6 +12559,10 @@ const KB="outline",YB="block",XB=Mt`
12551
12559
  border-color: rgba(${cl}, 0.1);
12552
12560
  }
12553
12561
 
12562
+ :host([disabled][appearance-readonly]) .control {
12563
+ cursor: text;
12564
+ }
12565
+
12554
12566
  :host([error-visible]) .control {
12555
12567
  border-bottom-color: ${dl};
12556
12568
  }
@@ -12563,10 +12575,14 @@ const KB="outline",YB="block",XB=Mt`
12563
12575
  color: ${pd};
12564
12576
  }
12565
12577
 
12566
- .control[disabled]::placeholder {
12578
+ :host([disabled]) .control::placeholder {
12567
12579
  color: ${fd};
12568
12580
  }
12569
12581
 
12582
+ :host([disabled][appearance-readonly]) .control::placeholder {
12583
+ color: ${pd};
12584
+ }
12585
+
12570
12586
  :host([resize='both']) .control {
12571
12587
  resize: both;
12572
12588
  }
@@ -12606,6 +12622,11 @@ const KB="outline",YB="block",XB=Mt`
12606
12622
  background-color: rgba(${cl}, 0.1);
12607
12623
  }
12608
12624
 
12625
+ :host([disabled][appearance-readonly]) .control {
12626
+ border-color: rgba(${cl}, 0.1);
12627
+ background-color: transparent;
12628
+ }
12629
+
12609
12630
  :host([error-visible][disabled]) .control {
12610
12631
  border-bottom-color: ${dl};
12611
12632
  }
@@ -12618,7 +12639,7 @@ const KB="outline",YB="block",XB=Mt`
12618
12639
  <slot ${ie("defaultSlottedNodes")}></slot>
12619
12640
  </label>
12620
12641
  `)
12621
- class QB extends(Ug(hv(ws))){constructor(){super(...arguments),this.appearance=KB,this.scrollbarWidth=-1,this.updateScrollbarWidthQueued=!1}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>this.onResize())),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect()}onTextAreaInput(){this.handleTextInput(),this.queueUpdateScrollbarWidth()}placeholderChanged(){this.queueUpdateScrollbarWidth()}valueChanged(t,e){super.valueChanged(t,e),this.queueUpdateScrollbarWidth()}onResize(){this.scrollbarWidth=this.control.offsetWidth-this.control.clientWidth}queueUpdateScrollbarWidth(){this.$fastController.isConnected&&(this.updateScrollbarWidthQueued||(this.updateScrollbarWidthQueued=!0,b.queueUpdate((()=>this.updateScrollbarWidth()))))}updateScrollbarWidth(){this.updateScrollbarWidthQueued=!1,this.scrollbarWidth=this.control.offsetWidth-this.control.clientWidth}}t([ft],QB.prototype,"appearance",void 0),t([C],QB.prototype,"scrollbarWidth",void 0)
12642
+ class QB extends(Ug(hv(ws))){constructor(){super(...arguments),this.appearance=KB,this.appearanceReadOnly=!1,this.scrollbarWidth=-1,this.updateScrollbarWidthQueued=!1}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>this.onResize())),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect()}onTextAreaInput(){this.handleTextInput(),this.queueUpdateScrollbarWidth()}placeholderChanged(){this.queueUpdateScrollbarWidth()}valueChanged(t,e){super.valueChanged(t,e),this.queueUpdateScrollbarWidth()}onResize(){this.scrollbarWidth=this.control.offsetWidth-this.control.clientWidth}queueUpdateScrollbarWidth(){this.$fastController.isConnected&&(this.updateScrollbarWidthQueued||(this.updateScrollbarWidthQueued=!0,b.queueUpdate((()=>this.updateScrollbarWidth()))))}updateScrollbarWidth(){this.updateScrollbarWidthQueued=!1,this.scrollbarWidth=this.control.offsetWidth-this.control.clientWidth}}t([ft],QB.prototype,"appearance",void 0),t([ft({attribute:"appearance-readonly",mode:"boolean"})],QB.prototype,"appearanceReadOnly",void 0),t([C],QB.prototype,"scrollbarWidth",void 0)
12622
12643
  const tP=QB.compose({baseName:"text-area",baseClass:ws,template:()=>Q`
12623
12644
  ${JB}
12624
12645
  <div class="container">