@ni/nimble-components 35.8.0 → 35.9.1

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.
@@ -1005,6 +1005,15 @@ null!==e&&t.setAttribute("nonce",e),document.head.appendChild(t)
1005
1005
  try{t.sheet.insertRule("foo:focus-visible {color:inherit}",0),Ke=!0}catch(t){Ke=!1}finally{document.head.removeChild(t)}return Ke}()?"focus-visible":"focus"
1006
1006
  class zo extends xn{}const Vo=t=>`${function(t){return`:host([hidden]){display:none}:host{display:${t}}`}(t)}:host{box-sizing:border-box;}*{box-sizing:border-box;}:host::before,:host::after,::before,::after{box-sizing:border-box;}`,Ho=`:${Po}`,Uo="light",qo="dark",jo="color",Wo="action-rgb-partial-color",Go="application-background-color",Zo="container-background-color",Ko="divider-background-color",Yo="divider-background-dynamic-color",Xo="header-background-color",Jo="section-background-color",Qo="section-background-image",tr="button-fill-primary-color",er="button-primary-font-color",nr="button-fill-accent-color",ir="button-accent-block-font-color",or="button-accent-outline-font-color",rr="button-border-accent-outline-color",sr="fill-selected-color",ar="fill-selected-rgb-partial-color",lr="fill-hover-selected-color",cr="fill-hover-color",dr="fill-hover-rgb-partial-color",hr="fill-down-color",ur="border-color",pr="border-rgb-partial-color",fr="fail-color",mr="warning-color",gr="warning-font-color",vr="pass-color",br="information-color",yr="border-hover-color",wr="icon-color",xr="modal-backdrop-color",Cr="popup-border-color",kr="card-border-color",Sr="tag-fill-color",_r="control-height",$r="control-slim-height",Mr="small-padding",Ir="medium-padding",Er="standard-padding",Ar="large-padding",Tr="label-height",Dr="border-width",Or="divider-width",Rr="icon-size",Fr="group-header-text-transform",Lr="drawer-width",Nr="dialog-small-width",Br="dialog-small-height",Pr="dialog-small-max-height",zr="dialog-large-width",Vr="dialog-large-height",Hr="dialog-large-max-height",Ur="menu-min-width",qr="banner-gap-size",jr="spinner-small-height",Wr="spinner-medium-height",Gr="spinner-large-height",Zr="table-fit-rows-height",Kr="small-delay",Yr="medium-delay",Xr="large-delay",Jr="headline-plus-1-font",Qr="headline-font",ts="table-header-font",es="title-plus-2-font",ns="title-plus-1-font",is="title-font",rs="subtitle-plus-1-font",ss="subtitle-font",as="link-font",ls="link-active-font",cs="link-prominent-font",ds="link-active-prominent-font",hs="placeholder-font",us="body-font",ps="body-emphasized-font",fs="body-plus-1-font",ms="body-plus-1-emphasized-font",gs="group-header-font",vs="control-label-font",bs="button-label-font",ys="tooltip-caption-font",ws="tooltip-background-color",xs="error-text-font",Cs="table-row-border-color",ks="elevation-1-box-shadow",Ss="elevation-2-box-shadow",_s="elevation-3-box-shadow",$s="graph-gridline-color",Ms="graph-trace-1-color",Is="graph-trace-2-color",Es="graph-trace-3-color",As="graph-trace-4-color",Ts="graph-trace-5-color",Ds="graph-trace-6-color",Os="graph-trace-7-color",Rs="graph-trace-8-color",Fs="mention-font",Ls="calendar-event-background-static-color",Ns="calendar-event-background-dynamic-color",Bs="calendar-event-background-transient-color",Ps="calendar-event-border-static-color",zs="calendar-event-border-transient-color",Vs="calendar-event-static-font-color",Hs="calendar-event-dynamic-font-color",Us="calendar-event-transient-font-color",qs="calendar-event-background-hover-static-color",js="calendar-event-background-hover-dynamic-color",Ws="calendar-event-background-hover-transient-color",Gs="calendar-event-outer-border-highlighted-color",Zs="calendar-row-background-selected-color",Ks="calendar-row-background-conflict-color",Ys="calendar-event-fill-blocked-color",Xs="calendar-grab-handle-background-color",Js="calendar-grid-border-color",Qs="calendar-group-header-background-color",ta="calendar-event-background-job-color",ea="calendar-event-background-hover-job-color",na="calendar-event-border-job-color",ia="calendar-event-job-font-color",oa="calendar-event-background-maintenance-color",ra="calendar-event-background-hover-maintenance-color",sa="calendar-event-border-maintenance-color",aa="calendar-event-background-calibration-color",la="calendar-event-background-hover-calibration-color",ca="calendar-event-border-calibration-color",da="calendar-event-background-reservation-color",ha="calendar-event-background-hover-reservation-color",ua="calendar-event-border-reservation-color",pa="calendar-event-background-transport-order-color",fa="calendar-event-background-hover-transport-order-color",ma="calendar-event-border-transport-order-color",ga="calendar-event-background-aggregate-availability-color",va="calendar-event-border-aggregate-availability-color",ba=t=>`ni-nimble-${t}`,ya=J`<slot></slot>`,wa=$t`
1007
1007
  ${Vo("contents")}
1008
+
1009
+ :host {
1010
+ color-scheme: light;
1011
+ }
1012
+
1013
+ :host([theme='dark']),
1014
+ :host([theme='color']) {
1015
+ color-scheme: dark;
1016
+ }
1008
1017
  `
1009
1018
  class xa{constructor(){this.lang=document.documentElement.lang
1010
1019
  new MutationObserver(t=>{for(const e of t)"attributes"===e.type&&"lang"===e.attributeName&&(this.lang=e.target.lang)}).observe(document.documentElement,{attributeFilter:["lang"]})}}t([C],xa.prototype,"lang",void 0)
@@ -3585,7 +3594,7 @@ const lv=$t`
3585
3594
  fill: ${Ql};
3586
3595
  }
3587
3596
 
3588
- :host(.checked:not(.indeterminate)) slot[name='checked-indicator'] {
3597
+ :host(.checked:not(.indeterminate):not([appearance-indeterminate])) slot[name='checked-indicator'] {
3589
3598
  display: contents;
3590
3599
  }
3591
3600
 
@@ -3599,7 +3608,8 @@ const lv=$t`
3599
3608
  overflow: visible;
3600
3609
  }
3601
3610
 
3602
- :host(.indeterminate) slot[name='indeterminate-indicator'] {
3611
+ :host(.indeterminate) slot[name='indeterminate-indicator'],
3612
+ :host([appearance-indeterminate]) slot[name='indeterminate-indicator'] {
3603
3613
  display: contents;
3604
3614
  }
3605
3615
 
@@ -3626,8 +3636,8 @@ const lv=$t`
3626
3636
  ${t=>t.errorText}
3627
3637
  </div>
3628
3638
  `
3629
- function hv(t){class e extends t{constructor(){super(...arguments),this.errorVisible=!1,this.errorHasOverflow=!1}}return pt({attribute:"error-text"})(e.prototype,"errorText"),pt({attribute:"error-visible",mode:"boolean"})(e.prototype,"errorVisible"),C(e.prototype,"errorHasOverflow"),e}class uv extends(hv(Vn)){get resolvedTabindex(){const t=this.tabIndex??0
3630
- return this.disabled?void 0:`${t}`}}t([pt({attribute:"tabindex",converter:ht})],uv.prototype,"tabIndex",void 0)
3639
+ function hv(t){class e extends t{constructor(){super(...arguments),this.errorVisible=!1,this.errorHasOverflow=!1}}return pt({attribute:"error-text"})(e.prototype,"errorText"),pt({attribute:"error-visible",mode:"boolean"})(e.prototype,"errorVisible"),C(e.prototype,"errorHasOverflow"),e}class uv extends(hv(Vn)){constructor(){super(...arguments),this.appearanceIndeterminate=!1}get resolvedTabindex(){const t=this.tabIndex??0
3640
+ return this.disabled?void 0:`${t}`}}t([pt({attribute:"tabindex",converter:ht})],uv.prototype,"tabIndex",void 0),t([pt({attribute:"appearance-indeterminate",mode:"boolean"})],uv.prototype,"appearanceIndeterminate",void 0)
3631
3641
  const pv=uv.compose({baseName:"checkbox",baseClass:Vn,template:(t,e)=>J`
3632
3642
  <template
3633
3643
  role="checkbox"