@ni/nimble-components 11.4.1 → 11.6.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.
@@ -1696,10 +1696,7 @@ const Hh=mt`
1696
1696
  :host::before {
1697
1697
  content: '';
1698
1698
  position: absolute;
1699
- bottom: calc(
1700
- var(--ni-private-hover-indicator-width) +
1701
- var(--ni-private-indicator-lines-gap)
1702
- );
1699
+ bottom: calc(${Jn} + var(--ni-private-indicator-lines-gap));
1703
1700
  width: 0px;
1704
1701
  height: 0px;
1705
1702
  justify-self: center;
@@ -1916,6 +1913,10 @@ const Hh=mt`
1916
1913
  bottom-border-width: var(--ni-private-bottom-border-width);
1917
1914
  }
1918
1915
 
1916
+ .control:focus-within {
1917
+ border-bottom-color: ${jn};
1918
+ }
1919
+
1919
1920
  :host(.invalid) .control {
1920
1921
  border-bottom: var(--ni-private-bottom-border-width) solid ${Fn};
1921
1922
  }
@@ -2894,6 +2895,7 @@ const Xd=class extends li{}.compose({baseName:"menu-item",baseClass:li,template:
2894
2895
  js.getOrCreate().withPrefix("nimble").register(Xd())
2895
2896
  const Yd="underline",Gd="outline",Qd="block",Jd=mt`
2896
2897
  ${so("inline-block")}
2898
+ ${Mh}
2897
2899
 
2898
2900
  :host {
2899
2901
  font: ${_r};
@@ -2902,6 +2904,9 @@ const Yd="underline",Gd="outline",Qd="block",Jd=mt`
2902
2904
  color: ${zr};
2903
2905
  height: calc(${Qn} + ${Xn});
2904
2906
  --ni-private-hover-indicator-width: calc(${Jn} + 1px);
2907
+ --ni-private-height-within-border: calc(
2908
+ ${Xn} - 2 * ${Jn}
2909
+ );
2905
2910
  }
2906
2911
 
2907
2912
  :host([disabled]) {
@@ -2925,9 +2930,10 @@ const Yd="underline",Gd="outline",Qd="block",Jd=mt`
2925
2930
  display: flex;
2926
2931
  flex-direction: row;
2927
2932
  justify-content: center;
2933
+ align-items: center;
2928
2934
  border-radius: 0px;
2929
2935
  border: 0px solid rgba(${Dn}, 0.3);
2930
- gap: calc(${Gn} / 2);
2936
+ padding: ${Jn};
2931
2937
  }
2932
2938
 
2933
2939
  .root:focus-within {
@@ -2938,6 +2944,10 @@ const Yd="underline",Gd="outline",Qd="block",Jd=mt`
2938
2944
  border-color: rgba(${Dn}, 0.1);
2939
2945
  }
2940
2946
 
2947
+ :host(.invalid) .root {
2948
+ border-bottom-color: ${Fn};
2949
+ }
2950
+
2941
2951
  .root::before {
2942
2952
  ${""}
2943
2953
  content: ' ';
@@ -2984,10 +2994,11 @@ const Yd="underline",Gd="outline",Qd="block",Jd=mt`
2984
2994
  font: inherit;
2985
2995
  background: transparent;
2986
2996
  color: inherit;
2987
- height: ${Xn};
2997
+ height: var(--ni-private-height-within-border);
2988
2998
  width: 100%;
2989
2999
  border: none;
2990
3000
  padding: 0px;
3001
+ padding-left: calc(${Gn} / 2);
2991
3002
  }
2992
3003
 
2993
3004
  .control:hover,
@@ -3006,45 +3017,54 @@ const Yd="underline",Gd="outline",Qd="block",Jd=mt`
3006
3017
  color: ${Nr};
3007
3018
  }
3008
3019
 
3009
- .control:focus-within::placeholder {
3010
- opacity: 1;
3011
- }
3012
-
3013
3020
  .control[disabled]::placeholder {
3014
3021
  color: ${Ir};
3015
3022
  }
3016
3023
 
3017
3024
  .controls {
3018
- display: flex;
3019
- flex-direction: row-reverse;
3020
- justify-content: center;
3021
- align-items: center;
3025
+ display: contents;
3026
+ }
3027
+
3028
+ ${""}
3029
+ .step-up {
3030
+ order: 3;
3031
+ padding-right: calc(${Gn} / 4);
3032
+ }
3033
+
3034
+ .step-down {
3035
+ order: 2;
3022
3036
  }
3023
3037
 
3024
3038
  .step-up-down-button {
3025
3039
  ${Xn.cssCustomProperty}: 24px;
3026
3040
  }
3041
+
3042
+ [part='end'] {
3043
+ display: contents;
3044
+ }
3045
+
3046
+ .error-icon {
3047
+ order: 1;
3048
+ padding-right: calc(${Gn} / 4);
3049
+ }
3027
3050
  `.withBehaviors(fh(Yd,mt`
3028
3051
  .root {
3029
3052
  border-bottom-width: ${Jn};
3030
- padding-top: ${Jn};
3031
- padding-left: ${Jn};
3032
- padding-right: ${Jn};
3033
- }
3034
-
3035
- .control {
3036
- height: calc(${Xn} - 2 * ${Jn});
3053
+ padding-bottom: 0;
3037
3054
  }
3038
3055
  `),fh(Qd,mt`
3039
3056
  .root {
3040
3057
  background-color: rgba(${Dn}, 0.1);
3041
- padding-left: ${Jn};
3042
- padding-right: ${Jn};
3043
3058
  }
3044
3059
 
3045
3060
  .root:focus-within,
3046
3061
  :host(.invalid) .root {
3047
3062
  border-bottom-width: ${Jn};
3063
+ padding-bottom: 0;
3064
+ }
3065
+
3066
+ :host(:hover) .root {
3067
+ padding-bottom: 0;
3048
3068
  }
3049
3069
 
3050
3070
  :host([disabled]) .root {
@@ -3053,13 +3073,10 @@ const Yd="underline",Gd="outline",Qd="block",Jd=mt`
3053
3073
  `),fh(Gd,mt`
3054
3074
  .root {
3055
3075
  border-width: ${Jn};
3056
- }
3057
-
3058
- .control {
3059
- height: calc(${Xn} - 2 * ${Jn});
3076
+ padding: 0;
3060
3077
  }
3061
3078
  `))
3062
- class Zd extends fi{constructor(){super(...arguments),this.appearance=Yd}connectedCallback(){super.connectedCallback(),this.control.setAttribute("role","spinbutton")}}kn([ot],Zd.prototype,"appearance",void 0)
3079
+ class Zd extends fi{constructor(){super(...arguments),this.appearance=Yd}connectedCallback(){super.connectedCallback(),this.control.setAttribute("role","spinbutton")}}kn([ot],Zd.prototype,"appearance",void 0),kn([ot({attribute:"error-text"})],Zd.prototype,"errorText",void 0)
3063
3080
  const tu=Zd.compose({baseName:"number-field",baseClass:fi,template:(t,e)=>X`
3064
3081
  <template class="${t=>t.readOnly?"readonly":""}">
3065
3082
  <label
@@ -3155,13 +3172,50 @@ const tu=Zd.compose({baseName:"number-field",baseClass:fi,template:(t,e)=>X`
3155
3172
  "Increment"
3156
3173
  <nimble-icon-add slot="start"></nimble-icon-add>
3157
3174
  </nimble-button>
3175
+ `,end:X`
3176
+ <nimble-icon-exclamation-mark
3177
+ class="error-icon fail"
3178
+ ></nimble-icon-exclamation-mark>
3179
+ ${Ih}
3158
3180
  `})
3159
3181
  js.getOrCreate().withPrefix("nimble").register(tu())
3160
- const eu=mt`
3182
+ const eu="underline",su="outline",iu="block",ou=mt`
3161
3183
  ${Hh}
3162
- `
3163
- const su=class extends yi{setPositioning(){this.$fastController.isConnected&&(super.setPositioning(),this.updateListboxMaxHeightCssVariable())}slottedOptionsChanged(t,e){const s=this.value
3164
- super.slottedOptionsChanged(t,e),s&&(this.value=s)}maxHeightChanged(){this.updateListboxMaxHeightCssVariable()}updateListboxMaxHeightCssVariable(){this.listbox&&this.listbox.style.setProperty("--ni-private-select-max-height",`${this.maxHeight}px`)}}.compose({baseName:"select",baseClass:yi,template:(t,e)=>X`
3184
+ `.withBehaviors(fh(eu,mt`
3185
+ .control {
3186
+ padding-top: ${Jn};
3187
+ padding-left: calc(${Jn} + ${Gn} / 2);
3188
+ padding-right: ${Jn};
3189
+ }
3190
+
3191
+ :host([disabled]) .control {
3192
+ border-color: rgba(${Dn}, 0.1);
3193
+ }
3194
+ `),fh(su,mt`
3195
+ .control {
3196
+ border: ${Jn} solid rgba(${Dn}, 0.3);
3197
+ }
3198
+
3199
+ :host(.invalid) .errortext {
3200
+ top: calc(${Xn} - ${Jn});
3201
+ }
3202
+ `),fh(iu,mt`
3203
+ .control {
3204
+ background-color: rgba(${Dn}, 0.1);
3205
+ padding-left: calc(${Jn} + ${Gn} / 2);
3206
+ padding-right: ${Jn};
3207
+ padding-bottom: calc(${Jn});
3208
+ border-bottom: ${Jn}
3209
+ rgba(${Dn}, 0.07);
3210
+ }
3211
+
3212
+ :host([disabled]) .control {
3213
+ background-color: rgba(${Dn}, 0.07);
3214
+ }
3215
+ `))
3216
+ class nu extends yi{constructor(){super(...arguments),this.appearance=eu}setPositioning(){this.$fastController.isConnected&&(super.setPositioning(),this.updateListboxMaxHeightCssVariable())}slottedOptionsChanged(t,e){const s=this.value
3217
+ super.slottedOptionsChanged(t,e),s&&(this.value=s)}maxHeightChanged(){this.updateListboxMaxHeightCssVariable()}updateListboxMaxHeightCssVariable(){this.listbox&&this.listbox.style.setProperty("--ni-private-select-max-height",`${this.maxHeight}px`)}}kn([ot],nu.prototype,"appearance",void 0)
3218
+ const ru=nu.compose({baseName:"select",baseClass:yi,template:(t,e)=>X`
3165
3219
  <template
3166
3220
  class="${t=>[t.collapsible&&"collapsible",t.collapsible&&t.open&&"open",t.disabled&&"disabled",t.collapsible&&t.position].filter(Boolean).join(" ")}"
3167
3221
  aria-activedescendant="${t=>t.ariaActiveDescendant}"
@@ -3214,9 +3268,9 @@ super.slottedOptionsChanged(t,e),s&&(this.value=s)}maxHeightChanged(){this.updat
3214
3268
  ></slot>
3215
3269
  </div>
3216
3270
  </template>
3217
- `,styles:eu,indicator:Ta.data})
3218
- js.getOrCreate().withPrefix("nimble").register(su())
3219
- const iu=mt`
3271
+ `,styles:ou,indicator:Ta.data})
3272
+ js.getOrCreate().withPrefix("nimble").register(ru())
3273
+ const au=mt`
3220
3274
  ${so("inline-flex")}
3221
3275
 
3222
3276
  :host {
@@ -3381,7 +3435,7 @@ const iu=mt`
3381
3435
  --ni-private-switch-indicator-border-color: ${po};
3382
3436
  --ni-private-switch-indicator-border-disabled-color: ${En(po,.3)};
3383
3437
  }
3384
- `)),ou=X`
3438
+ `)),lu=X`
3385
3439
  <template
3386
3440
  role="switch"
3387
3441
  aria-checked="${t=>t.checked}"
@@ -3416,9 +3470,9 @@ const iu=mt`
3416
3470
  </div>
3417
3471
  </template>
3418
3472
  `
3419
- const nu=class extends _i{}.compose({baseClass:_i,baseName:"switch",template:ou,styles:iu})
3420
- js.getOrCreate().withPrefix("nimble").register(nu())
3421
- const ru=mt`
3473
+ const cu=class extends _i{}.compose({baseClass:_i,baseName:"switch",template:lu,styles:au})
3474
+ js.getOrCreate().withPrefix("nimble").register(cu())
3475
+ const hu=mt`
3422
3476
  ${so("inline-flex")}
3423
3477
 
3424
3478
  :host {
@@ -3512,13 +3566,13 @@ const ru=mt`
3512
3566
  width: 100%;
3513
3567
  }
3514
3568
  `
3515
- const au=class extends Ii{}.compose({baseName:"tab",baseClass:Ii,template:(t,e)=>X`
3569
+ const du=class extends Ii{}.compose({baseName:"tab",baseClass:Ii,template:(t,e)=>X`
3516
3570
  <template slot="tab" role="tab" aria-disabled="${t=>t.disabled}">
3517
3571
  <slot></slot>
3518
3572
  </template>
3519
- `,styles:ru})
3520
- js.getOrCreate().withPrefix("nimble").register(au())
3521
- const lu=mt`
3573
+ `,styles:hu})
3574
+ js.getOrCreate().withPrefix("nimble").register(du())
3575
+ const uu=mt`
3522
3576
  ${so("block")}
3523
3577
 
3524
3578
  :host {
@@ -3528,13 +3582,13 @@ const lu=mt`
3528
3582
  padding-top: ${Gn};
3529
3583
  }
3530
3584
  `
3531
- const cu=class extends zi{}.compose({baseName:"tab-panel",baseClass:zi,template:(t,e)=>X`
3585
+ const pu=class extends zi{}.compose({baseName:"tab-panel",baseClass:zi,template:(t,e)=>X`
3532
3586
  <template slot="tabpanel" role="tabpanel">
3533
3587
  <slot></slot>
3534
3588
  </template>
3535
- `,styles:lu})
3536
- js.getOrCreate().withPrefix("nimble").register(cu())
3537
- const hu=mt`
3589
+ `,styles:uu})
3590
+ js.getOrCreate().withPrefix("nimble").register(pu())
3591
+ const vu=mt`
3538
3592
  ${so("grid")}
3539
3593
 
3540
3594
  :host {
@@ -3557,7 +3611,7 @@ const hu=mt`
3557
3611
  grid-column-end: 4;
3558
3612
  }
3559
3613
  `
3560
- const du=class extends Si{constructor(){super(),this.activeindicator=!1}}.compose({baseName:"tabs",baseClass:Si,template:(t,e)=>X`
3614
+ const gu=class extends Si{constructor(){super(),this.activeindicator=!1}}.compose({baseName:"tabs",baseClass:Si,template:(t,e)=>X`
3561
3615
  <template class="${t=>t.orientation}">
3562
3616
  ${It(0,e)}
3563
3617
  <div class="tablist" part="tablist" role="tablist">
@@ -3576,9 +3630,9 @@ const du=class extends Si{constructor(){super(),this.activeindicator=!1}}.compos
3576
3630
  <slot name="tabpanel" part="tabpanel" ${Ct("tabpanels")}></slot>
3577
3631
  </div>
3578
3632
  </template>
3579
- `,styles:hu})
3580
- js.getOrCreate().withPrefix("nimble").register(du())
3581
- const uu=mt`
3633
+ `,styles:vu})
3634
+ js.getOrCreate().withPrefix("nimble").register(gu())
3635
+ const mu=mt`
3582
3636
  ${so("flex")}
3583
3637
 
3584
3638
  :host {
@@ -3596,15 +3650,15 @@ const uu=mt`
3596
3650
  rgba(${Dn}, 0.3);
3597
3651
  margin: calc(${Gn} / 4) calc(${Gn} / 2);
3598
3652
  }
3599
- `,pu=X`
3653
+ `,fu=X`
3600
3654
  <template slot="end">
3601
3655
  <div class="separator"></div>
3602
3656
  <slot></slot>
3603
3657
  </template>
3604
3658
  `
3605
- const vu=class extends de{}.compose({baseName:"tabs-toolbar",template:pu,styles:uu})
3606
- js.getOrCreate().withPrefix("nimble").register(vu())
3607
- const gu="outline",mu="block",fu=mt`
3659
+ const bu=class extends de{}.compose({baseName:"tabs-toolbar",template:fu,styles:mu})
3660
+ js.getOrCreate().withPrefix("nimble").register(bu())
3661
+ const wu="outline",xu="block",yu=mt`
3608
3662
  ${so("inline-flex")}
3609
3663
 
3610
3664
  :host {
@@ -3701,12 +3755,12 @@ const gu="outline",mu="block",fu=mt`
3701
3755
  :host([resize='vertical']) .control {
3702
3756
  resize: vertical;
3703
3757
  }
3704
- `.withBehaviors(fh(gu,mt`
3758
+ `.withBehaviors(fh(wu,mt`
3705
3759
  .control {
3706
3760
  border-color: rgba(${Dn}, 0.3);
3707
3761
  background-color: transparent;
3708
3762
  }
3709
- `),fh(mu,mt`
3763
+ `),fh(xu,mt`
3710
3764
  .control {
3711
3765
  background-color: rgba(${Dn}, 0.1);
3712
3766
  }
@@ -3720,8 +3774,8 @@ const gu="outline",mu="block",fu=mt`
3720
3774
  background-color: rgba(${Dn}, 0.1);
3721
3775
  }
3722
3776
  `))
3723
- class bu extends Mi{constructor(){super(...arguments),this.appearance=gu}}kn([ot],bu.prototype,"appearance",void 0)
3724
- const wu=bu.compose({baseName:"text-area",baseClass:Mi,template:(t,e)=>X`
3777
+ class $u extends Mi{constructor(){super(...arguments),this.appearance=wu}}kn([ot],$u.prototype,"appearance",void 0)
3778
+ const Cu=$u.compose({baseName:"text-area",baseClass:Mi,template:(t,e)=>X`
3725
3779
  <template
3726
3780
  class="
3727
3781
  ${t=>t.readOnly?"readonly":""}
@@ -3776,9 +3830,9 @@ const wu=bu.compose({baseName:"text-area",baseClass:Mi,template:(t,e)=>X`
3776
3830
  ${bt("control")}
3777
3831
  ></textarea>
3778
3832
  </template>
3779
- `,styles:fu,shadowOptions:{delegatesFocus:!0}})
3780
- js.getOrCreate().withPrefix("nimble").register(wu())
3781
- const xu="underline",yu="outline",$u="block",Cu="frameless",ku=mt`
3833
+ `,styles:yu,shadowOptions:{delegatesFocus:!0}})
3834
+ js.getOrCreate().withPrefix("nimble").register(Cu())
3835
+ const ku="underline",_u="outline",zu="block",Iu="frameless",Ou=mt`
3782
3836
  ${so("inline-block")}
3783
3837
  ${Mh}
3784
3838
 
@@ -3820,6 +3874,7 @@ const xu="underline",yu="outline",$u="block",Cu="frameless",ku=mt`
3820
3874
  justify-content: center;
3821
3875
  border: 0px solid rgba(${Dn}, 0.3);
3822
3876
  gap: calc(${Gn} / 2);
3877
+ padding: ${Jn};
3823
3878
  }
3824
3879
 
3825
3880
  :host([readonly]) .root {
@@ -3881,7 +3936,7 @@ const xu="underline",yu="outline",$u="block",Cu="frameless",ku=mt`
3881
3936
  background: transparent;
3882
3937
  color: inherit;
3883
3938
  padding: 0px;
3884
- height: ${Xn};
3939
+ height: var(--ni-private-height-within-border);
3885
3940
  width: 100%;
3886
3941
  margin-top: auto;
3887
3942
  margin-bottom: auto;
@@ -3910,10 +3965,6 @@ const xu="underline",yu="outline",$u="block",Cu="frameless",ku=mt`
3910
3965
  color: ${Nr};
3911
3966
  }
3912
3967
 
3913
- .control:not([readonly]):focus-within::placeholder {
3914
- opacity: 1;
3915
- }
3916
-
3917
3968
  .control[disabled]::placeholder {
3918
3969
  color: ${Ir};
3919
3970
  }
@@ -3959,18 +4010,12 @@ const xu="underline",yu="outline",$u="block",Cu="frameless",ku=mt`
3959
4010
  slot[name='actions']::slotted(*) {
3960
4011
  ${Xn.cssCustomProperty}: 24px;
3961
4012
  }
3962
- `.withBehaviors(fh(xu,mt`
4013
+ `.withBehaviors(fh(ku,mt`
3963
4014
  .root {
3964
4015
  border-bottom-width: ${Jn};
4016
+ padding-bottom: 0;
3965
4017
  }
3966
-
3967
- .control {
3968
- height: var(--ni-private-height-within-border);
3969
- padding-top: ${Jn};
3970
- padding-left: ${Jn};
3971
- padding-right: ${Jn};
3972
- }
3973
- `),fh($u,mt`
4018
+ `),fh(zu,mt`
3974
4019
  .root {
3975
4020
  background-color: rgba(${Dn}, 0.1);
3976
4021
  }
@@ -3983,11 +4028,11 @@ const xu="underline",yu="outline",$u="block",Cu="frameless",ku=mt`
3983
4028
  .root:focus-within,
3984
4029
  :host(.invalid) .root {
3985
4030
  border-bottom-width: ${Jn};
4031
+ padding-bottom: 0;
3986
4032
  }
3987
4033
 
3988
- .root:focus-within .control,
3989
- :host(.invalid) .control {
3990
- height: calc(${Xn} - ${Jn});
4034
+ :host(:hover) .root {
4035
+ padding-bottom: 0;
3991
4036
  }
3992
4037
 
3993
4038
  :host([readonly]) .root {
@@ -3998,15 +4043,12 @@ const xu="underline",yu="outline",$u="block",Cu="frameless",ku=mt`
3998
4043
  :host([disabled]) .root {
3999
4044
  background-color: rgba(${Dn}, 0.07);
4000
4045
  }
4001
- `),fh(yu,mt`
4046
+ `),fh(_u,mt`
4002
4047
  .root {
4003
4048
  border-width: ${Jn};
4049
+ padding: 0;
4004
4050
  }
4005
-
4006
- .control {
4007
- height: var(--ni-private-height-within-border);
4008
- }
4009
- `),fh(Cu,mt`
4051
+ `),fh(Iu,mt`
4010
4052
  .control {
4011
4053
  padding-left: ${Jn};
4012
4054
  padding-right: ${Jn};
@@ -4026,8 +4068,8 @@ const xu="underline",yu="outline",$u="block",Cu="frameless",ku=mt`
4026
4068
  filter: invert(100%);
4027
4069
  }
4028
4070
  `,Io))
4029
- class _u extends pi{constructor(){super(...arguments),this.appearance=xu}connectedCallback(){super.connectedCallback(),this.control.setAttribute("aria-errormessage","errortext")}}kn([ot],_u.prototype,"appearance",void 0),kn([ot({attribute:"error-text"})],_u.prototype,"errorText",void 0)
4030
- const zu=_u.compose({baseName:"text-field",baseClass:pi,template:(t,e)=>X`
4071
+ class Su extends pi{constructor(){super(...arguments),this.appearance=ku}connectedCallback(){super.connectedCallback(),this.control.setAttribute("aria-errormessage","errortext")}}kn([ot],Su.prototype,"appearance",void 0),kn([ot({attribute:"error-text"})],Su.prototype,"errorText",void 0)
4072
+ const Au=Su.compose({baseName:"text-field",baseClass:pi,template:(t,e)=>X`
4031
4073
  <template
4032
4074
  class="
4033
4075
  ${t=>t.readOnly?"readonly":""}
@@ -4087,7 +4129,7 @@ const zu=_u.compose({baseName:"text-field",baseClass:pi,template:(t,e)=>X`
4087
4129
  ${zt(0,e)}
4088
4130
  </div>
4089
4131
  </template>
4090
- `,styles:ku,shadowOptions:{delegatesFocus:!0},end:X`
4132
+ `,styles:Ou,shadowOptions:{delegatesFocus:!0},end:X`
4091
4133
  <nimble-icon-exclamation-mark
4092
4134
  class="error-icon fail"
4093
4135
  ></nimble-icon-exclamation-mark>
@@ -4096,8 +4138,8 @@ const zu=_u.compose({baseName:"text-field",baseClass:pi,template:(t,e)=>X`
4096
4138
  </span>
4097
4139
  ${Ih}
4098
4140
  `})
4099
- js.getOrCreate().withPrefix("nimble").register(zu())
4100
- const Iu=mt`
4141
+ js.getOrCreate().withPrefix("nimble").register(Au())
4142
+ const Eu=mt`
4101
4143
  .positioning-region {
4102
4144
  display: flex;
4103
4145
  padding: ${Yn} ${Gn};
@@ -4122,7 +4164,7 @@ const Iu=mt`
4122
4164
  margin-left: auto;
4123
4165
  }
4124
4166
  `
4125
- const Ou=class extends Li{}.compose({baseName:"toolbar",baseClass:Li,template:(t,e)=>X`
4167
+ const Hu=class extends Li{}.compose({baseName:"toolbar",baseClass:Li,template:(t,e)=>X`
4126
4168
  <template
4127
4169
  aria-label="${t=>t.ariaLabel}"
4128
4170
  aria-labelledby="${t=>t.ariaLabelledby}"
@@ -4142,9 +4184,9 @@ const Ou=class extends Li{}.compose({baseName:"toolbar",baseClass:Li,template:(t
4142
4184
  ${zt(0,e)}
4143
4185
  </div>
4144
4186
  </template>
4145
- `,styles:Iu,shadowOptions:{delegatesFocus:!0}})
4146
- js.getOrCreate().withPrefix("nimble").register(Ou())
4147
- const Su=mt`
4187
+ `,styles:Eu,shadowOptions:{delegatesFocus:!0}})
4188
+ js.getOrCreate().withPrefix("nimble").register(Hu())
4189
+ const Mu=mt`
4148
4190
  ${so("inline-flex")}
4149
4191
 
4150
4192
  :host {
@@ -4167,7 +4209,7 @@ const Su=mt`
4167
4209
  display: inline-flex;
4168
4210
  }
4169
4211
  `
4170
- const Au=class extends Qi{}.compose({baseName:"tooltip",baseClass:Qi,template:(t,e)=>X`
4212
+ const Vu=class extends Qi{}.compose({baseName:"tooltip",baseClass:Qi,template:(t,e)=>X`
4171
4213
  ${wt((t=>t.tooltipVisible),X`
4172
4214
  <${t.tagFor(je)}
4173
4215
  fixed-placement="true"
@@ -4190,16 +4232,16 @@ const Au=class extends Qi{}.compose({baseName:"tooltip",baseClass:Qi,template:(t
4190
4232
  </div>
4191
4233
  </${t.tagFor(je)}>
4192
4234
  `)}
4193
- `,styles:Su})
4194
- js.getOrCreate().withPrefix("nimble").register(Au())
4195
- const Eu="group-selected",Hu="all",Mu="leaves-only",Vu="none"
4196
- class Lu{constructor(t,e){this.cache=new WeakMap,this.ltr=t,this.rtl=e}bind(t){this.attach(t)}unbind(t){const e=this.cache.get(t)
4197
- e&&In.unsubscribe(e)}attach(t){const e=this.cache.get(t)||new Tu(this.ltr,this.rtl,t),s=In.getValueFor(t)
4198
- In.subscribe(e),e.attach(s),this.cache.set(t,e)}}class Tu{constructor(t,e,s){this.ltr=t,this.rtl=e,this.source=s,this.attached=null}handleChange({target:t,token:e}){this.attach(e.getValueFor(t))}attach(t){this.attached!==this[t]&&(null!==this.attached&&this.source.$fastController.removeStyles(this.attached),this.attached=this[t],null!==this.attached&&this.source.$fastController.addStyles(this.attached))}}const Pu=class extends Zi{constructor(){super(...arguments),this.treeView=null,this.handleSelectedChange=t=>{t.target===this&&this.selected&&this.setGroupSelectionOnRootParentTreeItem(this)}}connectedCallback(){super.connectedCallback(),this.addEventListener("selected-change",this.handleSelectedChange),this.treeView=this.getParentTreeView(),this.treeView&&this.selected&&this.setGroupSelectionOnRootParentTreeItem(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("selected-change",this.handleSelectedChange),this.treeView=null}clearTreeGroupSelection(){const t=this.treeView?.querySelectorAll("[group-selected]")
4199
- t?.forEach((t=>t.removeAttribute(Eu)))}setGroupSelectionOnRootParentTreeItem(t){this.clearTreeGroupSelection()
4235
+ `,styles:Mu})
4236
+ js.getOrCreate().withPrefix("nimble").register(Vu())
4237
+ const Lu="group-selected",Tu="all",Pu="leaves-only",Ru="none"
4238
+ class Du{constructor(t,e){this.cache=new WeakMap,this.ltr=t,this.rtl=e}bind(t){this.attach(t)}unbind(t){const e=this.cache.get(t)
4239
+ e&&In.unsubscribe(e)}attach(t){const e=this.cache.get(t)||new Fu(this.ltr,this.rtl,t),s=In.getValueFor(t)
4240
+ In.subscribe(e),e.attach(s),this.cache.set(t,e)}}class Fu{constructor(t,e,s){this.ltr=t,this.rtl=e,this.source=s,this.attached=null}handleChange({target:t,token:e}){this.attach(e.getValueFor(t))}attach(t){this.attached!==this[t]&&(null!==this.attached&&this.source.$fastController.removeStyles(this.attached),this.attached=this[t],null!==this.attached&&this.source.$fastController.addStyles(this.attached))}}const Bu=class extends Zi{constructor(){super(...arguments),this.treeView=null,this.handleSelectedChange=t=>{t.target===this&&this.selected&&this.setGroupSelectionOnRootParentTreeItem(this)}}connectedCallback(){super.connectedCallback(),this.addEventListener("selected-change",this.handleSelectedChange),this.treeView=this.getParentTreeView(),this.treeView&&this.selected&&this.setGroupSelectionOnRootParentTreeItem(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("selected-change",this.handleSelectedChange),this.treeView=null}clearTreeGroupSelection(){const t=this.treeView?.querySelectorAll("[group-selected]")
4241
+ t?.forEach((t=>t.removeAttribute(Lu)))}setGroupSelectionOnRootParentTreeItem(t){this.clearTreeGroupSelection()
4200
4242
  let e=t
4201
4243
  for(;e?.parentElement!==this.treeView;)e=e?.parentElement
4202
- e&&e.setAttribute(Eu,"true")}getParentTreeView(){return this.parentElement.closest("[role='tree']")}}.compose({baseName:"tree-item",baseClass:Zi,template:(t,e)=>{return X`
4244
+ e&&e.setAttribute(Lu,"true")}getParentTreeView(){return this.parentElement.closest("[role='tree']")}}.compose({baseName:"tree-item",baseClass:Zi,template:(t,e)=>{return X`
4203
4245
  <template
4204
4246
  role="treeitem"
4205
4247
  slot="${t=>t.isNestedItem()?"item":void 0}"
@@ -4256,7 +4298,7 @@ var s},styles:(t,e)=>mt`
4256
4298
  }
4257
4299
 
4258
4300
  ${""}
4259
- :host([${Eu}])::after {
4301
+ :host([${Lu}])::after {
4260
4302
  background: ${jn};
4261
4303
  border-radius: 0px;
4262
4304
  content: '';
@@ -4278,7 +4320,7 @@ var s},styles:(t,e)=>mt`
4278
4320
  background: ${Pn};
4279
4321
  }
4280
4322
 
4281
- :host([${Eu}]) .positioning-region:hover {
4323
+ :host([${Lu}]) .positioning-region:hover {
4282
4324
  background: ${Tn};
4283
4325
  }
4284
4326
 
@@ -4388,7 +4430,7 @@ var s},styles:(t,e)=>mt`
4388
4430
  :host([expanded]) .items {
4389
4431
  display: block;
4390
4432
  }
4391
- `.withBehaviors(new Lu(mt`
4433
+ `.withBehaviors(new Du(mt`
4392
4434
  ${""}
4393
4435
  .expand-collapse-button {
4394
4436
  left: var(
@@ -4421,8 +4463,8 @@ var s},styles:(t,e)=>mt`
4421
4463
  transform: rotate(135deg);
4422
4464
  }
4423
4465
  `)),expandCollapseGlyph:Da.data})
4424
- js.getOrCreate().withPrefix("nimble").register(Pu())
4425
- const Ru=mt`
4466
+ js.getOrCreate().withPrefix("nimble").register(Bu())
4467
+ const Nu=mt`
4426
4468
  ${so("flex")}
4427
4469
 
4428
4470
  :host {
@@ -4435,14 +4477,14 @@ const Ru=mt`
4435
4477
  outline: none;
4436
4478
  }
4437
4479
  `
4438
- class Du extends to{constructor(){super(...arguments),this.selectionMode=Hu}handleClick(t){if(t.defaultPrevented)return!1
4480
+ class ju extends to{constructor(){super(...arguments),this.selectionMode=Tu}handleClick(t){if(t.defaultPrevented)return!1
4439
4481
  if(!(t.target instanceof Element&&Ji(t.target)))return!0
4440
4482
  const e=t.target
4441
- return!e.disabled&&(this.canSelect(e)?e.selected=!0:this.itemHasChildren(e)&&(e.expanded=!e.expanded),!0)}canSelect(t){switch(this.selectionMode){case Hu:return!0
4442
- case Vu:return!1
4443
- case Mu:return!this.itemHasChildren(t)
4444
- default:return!0}}itemHasChildren(t){return null!==t.querySelector('[role="treeitem"]')}}kn([ot({attribute:"selection-mode"})],Du.prototype,"selectionMode",void 0)
4445
- const Fu=Du.compose({baseName:"tree-view",baseClass:to,template:(t,e)=>X`
4483
+ return!e.disabled&&(this.canSelect(e)?e.selected=!0:this.itemHasChildren(e)&&(e.expanded=!e.expanded),!0)}canSelect(t){switch(this.selectionMode){case Tu:return!0
4484
+ case Ru:return!1
4485
+ case Pu:return!this.itemHasChildren(t)
4486
+ default:return!0}}itemHasChildren(t){return null!==t.querySelector('[role="treeitem"]')}}kn([ot({attribute:"selection-mode"})],ju.prototype,"selectionMode",void 0)
4487
+ const qu=ju.compose({baseName:"tree-view",baseClass:to,template:(t,e)=>X`
4446
4488
  <template
4447
4489
  role="tree"
4448
4490
  ${bt("treeView")}
@@ -4454,6 +4496,6 @@ const Fu=Du.compose({baseName:"tree-view",baseClass:to,template:(t,e)=>X`
4454
4496
  >
4455
4497
  <slot ${Ct("slottedTreeItems")}></slot>
4456
4498
  </template>
4457
- `,styles:Ru})
4458
- js.getOrCreate().withPrefix("nimble").register(Fu())}()
4499
+ `,styles:Nu})
4500
+ js.getOrCreate().withPrefix("nimble").register(qu())}()
4459
4501
  //# sourceMappingURL=all-components-bundle.min.js.map