@ni/nimble-components 11.5.0 → 11.6.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.
- package/dist/all-components-bundle.js +56 -6
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +107 -73
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/combobox/styles.js +5 -1
- package/dist/esm/combobox/styles.js.map +1 -1
- package/dist/esm/list-option/styles.js +2 -1
- package/dist/esm/list-option/styles.js.map +1 -1
- package/dist/esm/patterns/dropdown/styles.js +1 -4
- package/dist/esm/patterns/dropdown/styles.js.map +1 -1
- package/dist/esm/patterns/dropdown/types.d.ts +6 -0
- package/dist/esm/patterns/dropdown/types.js +5 -0
- package/dist/esm/patterns/dropdown/types.js.map +1 -1
- package/dist/esm/select/index.d.ts +3 -1
- package/dist/esm/select/index.js +11 -1
- package/dist/esm/select/index.js.map +1 -1
- package/dist/esm/select/styles.js +35 -1
- package/dist/esm/select/styles.js.map +1 -1
- package/dist/esm/select/types.d.ts +5 -0
- package/dist/esm/select/types.js +6 -0
- package/dist/esm/select/types.js.map +1 -0
- package/package.json +1 -1
|
@@ -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
|
}
|
|
@@ -2495,6 +2496,7 @@ const Td=mt`
|
|
|
2495
2496
|
font: ${_r};
|
|
2496
2497
|
cursor: pointer;
|
|
2497
2498
|
justify-content: left;
|
|
2499
|
+
height: ${Xn};
|
|
2498
2500
|
}
|
|
2499
2501
|
|
|
2500
2502
|
.content {
|
|
@@ -3178,11 +3180,43 @@ const tu=Zd.compose({baseName:"number-field",baseClass:fi,template:(t,e)=>X`
|
|
|
3178
3180
|
${Ih}
|
|
3179
3181
|
`})
|
|
3180
3182
|
js.getOrCreate().withPrefix("nimble").register(tu())
|
|
3181
|
-
const eu=mt`
|
|
3183
|
+
const eu="underline",su="outline",iu="block",ou=mt`
|
|
3182
3184
|
${Hh}
|
|
3183
|
-
`
|
|
3184
|
-
|
|
3185
|
-
|
|
3185
|
+
`.withBehaviors(fh(eu,mt`
|
|
3186
|
+
.control {
|
|
3187
|
+
padding-top: ${Jn};
|
|
3188
|
+
padding-left: calc(${Jn} + ${Gn} / 2);
|
|
3189
|
+
padding-right: ${Jn};
|
|
3190
|
+
}
|
|
3191
|
+
|
|
3192
|
+
:host([disabled]) .control {
|
|
3193
|
+
border-color: rgba(${Dn}, 0.1);
|
|
3194
|
+
}
|
|
3195
|
+
`),fh(su,mt`
|
|
3196
|
+
.control {
|
|
3197
|
+
border: ${Jn} solid rgba(${Dn}, 0.3);
|
|
3198
|
+
}
|
|
3199
|
+
|
|
3200
|
+
:host(.invalid) .errortext {
|
|
3201
|
+
top: calc(${Xn} - ${Jn});
|
|
3202
|
+
}
|
|
3203
|
+
`),fh(iu,mt`
|
|
3204
|
+
.control {
|
|
3205
|
+
background-color: rgba(${Dn}, 0.1);
|
|
3206
|
+
padding-left: calc(${Jn} + ${Gn} / 2);
|
|
3207
|
+
padding-right: ${Jn};
|
|
3208
|
+
padding-bottom: calc(${Jn});
|
|
3209
|
+
border-bottom: ${Jn}
|
|
3210
|
+
rgba(${Dn}, 0.07);
|
|
3211
|
+
}
|
|
3212
|
+
|
|
3213
|
+
:host([disabled]) .control {
|
|
3214
|
+
background-color: rgba(${Dn}, 0.07);
|
|
3215
|
+
}
|
|
3216
|
+
`))
|
|
3217
|
+
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
|
|
3218
|
+
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)
|
|
3219
|
+
const ru=nu.compose({baseName:"select",baseClass:yi,template:(t,e)=>X`
|
|
3186
3220
|
<template
|
|
3187
3221
|
class="${t=>[t.collapsible&&"collapsible",t.collapsible&&t.open&&"open",t.disabled&&"disabled",t.collapsible&&t.position].filter(Boolean).join(" ")}"
|
|
3188
3222
|
aria-activedescendant="${t=>t.ariaActiveDescendant}"
|
|
@@ -3235,9 +3269,9 @@ super.slottedOptionsChanged(t,e),s&&(this.value=s)}maxHeightChanged(){this.updat
|
|
|
3235
3269
|
></slot>
|
|
3236
3270
|
</div>
|
|
3237
3271
|
</template>
|
|
3238
|
-
`,styles:
|
|
3239
|
-
js.getOrCreate().withPrefix("nimble").register(
|
|
3240
|
-
const
|
|
3272
|
+
`,styles:ou,indicator:Ta.data})
|
|
3273
|
+
js.getOrCreate().withPrefix("nimble").register(ru())
|
|
3274
|
+
const au=mt`
|
|
3241
3275
|
${so("inline-flex")}
|
|
3242
3276
|
|
|
3243
3277
|
:host {
|
|
@@ -3402,7 +3436,7 @@ const iu=mt`
|
|
|
3402
3436
|
--ni-private-switch-indicator-border-color: ${po};
|
|
3403
3437
|
--ni-private-switch-indicator-border-disabled-color: ${En(po,.3)};
|
|
3404
3438
|
}
|
|
3405
|
-
`)),
|
|
3439
|
+
`)),lu=X`
|
|
3406
3440
|
<template
|
|
3407
3441
|
role="switch"
|
|
3408
3442
|
aria-checked="${t=>t.checked}"
|
|
@@ -3437,9 +3471,9 @@ const iu=mt`
|
|
|
3437
3471
|
</div>
|
|
3438
3472
|
</template>
|
|
3439
3473
|
`
|
|
3440
|
-
const
|
|
3441
|
-
js.getOrCreate().withPrefix("nimble").register(
|
|
3442
|
-
const
|
|
3474
|
+
const cu=class extends _i{}.compose({baseClass:_i,baseName:"switch",template:lu,styles:au})
|
|
3475
|
+
js.getOrCreate().withPrefix("nimble").register(cu())
|
|
3476
|
+
const hu=mt`
|
|
3443
3477
|
${so("inline-flex")}
|
|
3444
3478
|
|
|
3445
3479
|
:host {
|
|
@@ -3533,13 +3567,13 @@ const ru=mt`
|
|
|
3533
3567
|
width: 100%;
|
|
3534
3568
|
}
|
|
3535
3569
|
`
|
|
3536
|
-
const
|
|
3570
|
+
const du=class extends Ii{}.compose({baseName:"tab",baseClass:Ii,template:(t,e)=>X`
|
|
3537
3571
|
<template slot="tab" role="tab" aria-disabled="${t=>t.disabled}">
|
|
3538
3572
|
<slot></slot>
|
|
3539
3573
|
</template>
|
|
3540
|
-
`,styles:
|
|
3541
|
-
js.getOrCreate().withPrefix("nimble").register(
|
|
3542
|
-
const
|
|
3574
|
+
`,styles:hu})
|
|
3575
|
+
js.getOrCreate().withPrefix("nimble").register(du())
|
|
3576
|
+
const uu=mt`
|
|
3543
3577
|
${so("block")}
|
|
3544
3578
|
|
|
3545
3579
|
:host {
|
|
@@ -3549,13 +3583,13 @@ const lu=mt`
|
|
|
3549
3583
|
padding-top: ${Gn};
|
|
3550
3584
|
}
|
|
3551
3585
|
`
|
|
3552
|
-
const
|
|
3586
|
+
const pu=class extends zi{}.compose({baseName:"tab-panel",baseClass:zi,template:(t,e)=>X`
|
|
3553
3587
|
<template slot="tabpanel" role="tabpanel">
|
|
3554
3588
|
<slot></slot>
|
|
3555
3589
|
</template>
|
|
3556
|
-
`,styles:
|
|
3557
|
-
js.getOrCreate().withPrefix("nimble").register(
|
|
3558
|
-
const
|
|
3590
|
+
`,styles:uu})
|
|
3591
|
+
js.getOrCreate().withPrefix("nimble").register(pu())
|
|
3592
|
+
const vu=mt`
|
|
3559
3593
|
${so("grid")}
|
|
3560
3594
|
|
|
3561
3595
|
:host {
|
|
@@ -3578,7 +3612,7 @@ const hu=mt`
|
|
|
3578
3612
|
grid-column-end: 4;
|
|
3579
3613
|
}
|
|
3580
3614
|
`
|
|
3581
|
-
const
|
|
3615
|
+
const gu=class extends Si{constructor(){super(),this.activeindicator=!1}}.compose({baseName:"tabs",baseClass:Si,template:(t,e)=>X`
|
|
3582
3616
|
<template class="${t=>t.orientation}">
|
|
3583
3617
|
${It(0,e)}
|
|
3584
3618
|
<div class="tablist" part="tablist" role="tablist">
|
|
@@ -3597,9 +3631,9 @@ const du=class extends Si{constructor(){super(),this.activeindicator=!1}}.compos
|
|
|
3597
3631
|
<slot name="tabpanel" part="tabpanel" ${Ct("tabpanels")}></slot>
|
|
3598
3632
|
</div>
|
|
3599
3633
|
</template>
|
|
3600
|
-
`,styles:
|
|
3601
|
-
js.getOrCreate().withPrefix("nimble").register(
|
|
3602
|
-
const
|
|
3634
|
+
`,styles:vu})
|
|
3635
|
+
js.getOrCreate().withPrefix("nimble").register(gu())
|
|
3636
|
+
const mu=mt`
|
|
3603
3637
|
${so("flex")}
|
|
3604
3638
|
|
|
3605
3639
|
:host {
|
|
@@ -3617,15 +3651,15 @@ const uu=mt`
|
|
|
3617
3651
|
rgba(${Dn}, 0.3);
|
|
3618
3652
|
margin: calc(${Gn} / 4) calc(${Gn} / 2);
|
|
3619
3653
|
}
|
|
3620
|
-
`,
|
|
3654
|
+
`,fu=X`
|
|
3621
3655
|
<template slot="end">
|
|
3622
3656
|
<div class="separator"></div>
|
|
3623
3657
|
<slot></slot>
|
|
3624
3658
|
</template>
|
|
3625
3659
|
`
|
|
3626
|
-
const
|
|
3627
|
-
js.getOrCreate().withPrefix("nimble").register(
|
|
3628
|
-
const
|
|
3660
|
+
const bu=class extends de{}.compose({baseName:"tabs-toolbar",template:fu,styles:mu})
|
|
3661
|
+
js.getOrCreate().withPrefix("nimble").register(bu())
|
|
3662
|
+
const wu="outline",xu="block",yu=mt`
|
|
3629
3663
|
${so("inline-flex")}
|
|
3630
3664
|
|
|
3631
3665
|
:host {
|
|
@@ -3722,12 +3756,12 @@ const gu="outline",mu="block",fu=mt`
|
|
|
3722
3756
|
:host([resize='vertical']) .control {
|
|
3723
3757
|
resize: vertical;
|
|
3724
3758
|
}
|
|
3725
|
-
`.withBehaviors(fh(
|
|
3759
|
+
`.withBehaviors(fh(wu,mt`
|
|
3726
3760
|
.control {
|
|
3727
3761
|
border-color: rgba(${Dn}, 0.3);
|
|
3728
3762
|
background-color: transparent;
|
|
3729
3763
|
}
|
|
3730
|
-
`),fh(
|
|
3764
|
+
`),fh(xu,mt`
|
|
3731
3765
|
.control {
|
|
3732
3766
|
background-color: rgba(${Dn}, 0.1);
|
|
3733
3767
|
}
|
|
@@ -3741,8 +3775,8 @@ const gu="outline",mu="block",fu=mt`
|
|
|
3741
3775
|
background-color: rgba(${Dn}, 0.1);
|
|
3742
3776
|
}
|
|
3743
3777
|
`))
|
|
3744
|
-
class
|
|
3745
|
-
const
|
|
3778
|
+
class $u extends Mi{constructor(){super(...arguments),this.appearance=wu}}kn([ot],$u.prototype,"appearance",void 0)
|
|
3779
|
+
const Cu=$u.compose({baseName:"text-area",baseClass:Mi,template:(t,e)=>X`
|
|
3746
3780
|
<template
|
|
3747
3781
|
class="
|
|
3748
3782
|
${t=>t.readOnly?"readonly":""}
|
|
@@ -3797,9 +3831,9 @@ const wu=bu.compose({baseName:"text-area",baseClass:Mi,template:(t,e)=>X`
|
|
|
3797
3831
|
${bt("control")}
|
|
3798
3832
|
></textarea>
|
|
3799
3833
|
</template>
|
|
3800
|
-
`,styles:
|
|
3801
|
-
js.getOrCreate().withPrefix("nimble").register(
|
|
3802
|
-
const
|
|
3834
|
+
`,styles:yu,shadowOptions:{delegatesFocus:!0}})
|
|
3835
|
+
js.getOrCreate().withPrefix("nimble").register(Cu())
|
|
3836
|
+
const ku="underline",_u="outline",zu="block",Iu="frameless",Ou=mt`
|
|
3803
3837
|
${so("inline-block")}
|
|
3804
3838
|
${Mh}
|
|
3805
3839
|
|
|
@@ -3977,12 +4011,12 @@ const xu="underline",yu="outline",$u="block",Cu="frameless",ku=mt`
|
|
|
3977
4011
|
slot[name='actions']::slotted(*) {
|
|
3978
4012
|
${Xn.cssCustomProperty}: 24px;
|
|
3979
4013
|
}
|
|
3980
|
-
`.withBehaviors(fh(
|
|
4014
|
+
`.withBehaviors(fh(ku,mt`
|
|
3981
4015
|
.root {
|
|
3982
4016
|
border-bottom-width: ${Jn};
|
|
3983
4017
|
padding-bottom: 0;
|
|
3984
4018
|
}
|
|
3985
|
-
`),fh(
|
|
4019
|
+
`),fh(zu,mt`
|
|
3986
4020
|
.root {
|
|
3987
4021
|
background-color: rgba(${Dn}, 0.1);
|
|
3988
4022
|
}
|
|
@@ -4010,12 +4044,12 @@ const xu="underline",yu="outline",$u="block",Cu="frameless",ku=mt`
|
|
|
4010
4044
|
:host([disabled]) .root {
|
|
4011
4045
|
background-color: rgba(${Dn}, 0.07);
|
|
4012
4046
|
}
|
|
4013
|
-
`),fh(
|
|
4047
|
+
`),fh(_u,mt`
|
|
4014
4048
|
.root {
|
|
4015
4049
|
border-width: ${Jn};
|
|
4016
4050
|
padding: 0;
|
|
4017
4051
|
}
|
|
4018
|
-
`),fh(
|
|
4052
|
+
`),fh(Iu,mt`
|
|
4019
4053
|
.control {
|
|
4020
4054
|
padding-left: ${Jn};
|
|
4021
4055
|
padding-right: ${Jn};
|
|
@@ -4035,8 +4069,8 @@ const xu="underline",yu="outline",$u="block",Cu="frameless",ku=mt`
|
|
|
4035
4069
|
filter: invert(100%);
|
|
4036
4070
|
}
|
|
4037
4071
|
`,Io))
|
|
4038
|
-
class
|
|
4039
|
-
const
|
|
4072
|
+
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)
|
|
4073
|
+
const Au=Su.compose({baseName:"text-field",baseClass:pi,template:(t,e)=>X`
|
|
4040
4074
|
<template
|
|
4041
4075
|
class="
|
|
4042
4076
|
${t=>t.readOnly?"readonly":""}
|
|
@@ -4096,7 +4130,7 @@ const zu=_u.compose({baseName:"text-field",baseClass:pi,template:(t,e)=>X`
|
|
|
4096
4130
|
${zt(0,e)}
|
|
4097
4131
|
</div>
|
|
4098
4132
|
</template>
|
|
4099
|
-
`,styles:
|
|
4133
|
+
`,styles:Ou,shadowOptions:{delegatesFocus:!0},end:X`
|
|
4100
4134
|
<nimble-icon-exclamation-mark
|
|
4101
4135
|
class="error-icon fail"
|
|
4102
4136
|
></nimble-icon-exclamation-mark>
|
|
@@ -4105,8 +4139,8 @@ const zu=_u.compose({baseName:"text-field",baseClass:pi,template:(t,e)=>X`
|
|
|
4105
4139
|
</span>
|
|
4106
4140
|
${Ih}
|
|
4107
4141
|
`})
|
|
4108
|
-
js.getOrCreate().withPrefix("nimble").register(
|
|
4109
|
-
const
|
|
4142
|
+
js.getOrCreate().withPrefix("nimble").register(Au())
|
|
4143
|
+
const Eu=mt`
|
|
4110
4144
|
.positioning-region {
|
|
4111
4145
|
display: flex;
|
|
4112
4146
|
padding: ${Yn} ${Gn};
|
|
@@ -4131,7 +4165,7 @@ const Iu=mt`
|
|
|
4131
4165
|
margin-left: auto;
|
|
4132
4166
|
}
|
|
4133
4167
|
`
|
|
4134
|
-
const
|
|
4168
|
+
const Hu=class extends Li{}.compose({baseName:"toolbar",baseClass:Li,template:(t,e)=>X`
|
|
4135
4169
|
<template
|
|
4136
4170
|
aria-label="${t=>t.ariaLabel}"
|
|
4137
4171
|
aria-labelledby="${t=>t.ariaLabelledby}"
|
|
@@ -4151,9 +4185,9 @@ const Ou=class extends Li{}.compose({baseName:"toolbar",baseClass:Li,template:(t
|
|
|
4151
4185
|
${zt(0,e)}
|
|
4152
4186
|
</div>
|
|
4153
4187
|
</template>
|
|
4154
|
-
`,styles:
|
|
4155
|
-
js.getOrCreate().withPrefix("nimble").register(
|
|
4156
|
-
const
|
|
4188
|
+
`,styles:Eu,shadowOptions:{delegatesFocus:!0}})
|
|
4189
|
+
js.getOrCreate().withPrefix("nimble").register(Hu())
|
|
4190
|
+
const Mu=mt`
|
|
4157
4191
|
${so("inline-flex")}
|
|
4158
4192
|
|
|
4159
4193
|
:host {
|
|
@@ -4176,7 +4210,7 @@ const Su=mt`
|
|
|
4176
4210
|
display: inline-flex;
|
|
4177
4211
|
}
|
|
4178
4212
|
`
|
|
4179
|
-
const
|
|
4213
|
+
const Vu=class extends Qi{}.compose({baseName:"tooltip",baseClass:Qi,template:(t,e)=>X`
|
|
4180
4214
|
${wt((t=>t.tooltipVisible),X`
|
|
4181
4215
|
<${t.tagFor(je)}
|
|
4182
4216
|
fixed-placement="true"
|
|
@@ -4199,16 +4233,16 @@ const Au=class extends Qi{}.compose({baseName:"tooltip",baseClass:Qi,template:(t
|
|
|
4199
4233
|
</div>
|
|
4200
4234
|
</${t.tagFor(je)}>
|
|
4201
4235
|
`)}
|
|
4202
|
-
`,styles:
|
|
4203
|
-
js.getOrCreate().withPrefix("nimble").register(
|
|
4204
|
-
const
|
|
4205
|
-
class
|
|
4206
|
-
e&&In.unsubscribe(e)}attach(t){const e=this.cache.get(t)||new
|
|
4207
|
-
In.subscribe(e),e.attach(s),this.cache.set(t,e)}}class
|
|
4208
|
-
t?.forEach((t=>t.removeAttribute(
|
|
4236
|
+
`,styles:Mu})
|
|
4237
|
+
js.getOrCreate().withPrefix("nimble").register(Vu())
|
|
4238
|
+
const Lu="group-selected",Tu="all",Pu="leaves-only",Ru="none"
|
|
4239
|
+
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)
|
|
4240
|
+
e&&In.unsubscribe(e)}attach(t){const e=this.cache.get(t)||new Fu(this.ltr,this.rtl,t),s=In.getValueFor(t)
|
|
4241
|
+
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]")
|
|
4242
|
+
t?.forEach((t=>t.removeAttribute(Lu)))}setGroupSelectionOnRootParentTreeItem(t){this.clearTreeGroupSelection()
|
|
4209
4243
|
let e=t
|
|
4210
4244
|
for(;e?.parentElement!==this.treeView;)e=e?.parentElement
|
|
4211
|
-
e&&e.setAttribute(
|
|
4245
|
+
e&&e.setAttribute(Lu,"true")}getParentTreeView(){return this.parentElement.closest("[role='tree']")}}.compose({baseName:"tree-item",baseClass:Zi,template:(t,e)=>{return X`
|
|
4212
4246
|
<template
|
|
4213
4247
|
role="treeitem"
|
|
4214
4248
|
slot="${t=>t.isNestedItem()?"item":void 0}"
|
|
@@ -4265,7 +4299,7 @@ var s},styles:(t,e)=>mt`
|
|
|
4265
4299
|
}
|
|
4266
4300
|
|
|
4267
4301
|
${""}
|
|
4268
|
-
:host([${
|
|
4302
|
+
:host([${Lu}])::after {
|
|
4269
4303
|
background: ${jn};
|
|
4270
4304
|
border-radius: 0px;
|
|
4271
4305
|
content: '';
|
|
@@ -4287,7 +4321,7 @@ var s},styles:(t,e)=>mt`
|
|
|
4287
4321
|
background: ${Pn};
|
|
4288
4322
|
}
|
|
4289
4323
|
|
|
4290
|
-
:host([${
|
|
4324
|
+
:host([${Lu}]) .positioning-region:hover {
|
|
4291
4325
|
background: ${Tn};
|
|
4292
4326
|
}
|
|
4293
4327
|
|
|
@@ -4397,7 +4431,7 @@ var s},styles:(t,e)=>mt`
|
|
|
4397
4431
|
:host([expanded]) .items {
|
|
4398
4432
|
display: block;
|
|
4399
4433
|
}
|
|
4400
|
-
`.withBehaviors(new
|
|
4434
|
+
`.withBehaviors(new Du(mt`
|
|
4401
4435
|
${""}
|
|
4402
4436
|
.expand-collapse-button {
|
|
4403
4437
|
left: var(
|
|
@@ -4430,8 +4464,8 @@ var s},styles:(t,e)=>mt`
|
|
|
4430
4464
|
transform: rotate(135deg);
|
|
4431
4465
|
}
|
|
4432
4466
|
`)),expandCollapseGlyph:Da.data})
|
|
4433
|
-
js.getOrCreate().withPrefix("nimble").register(
|
|
4434
|
-
const
|
|
4467
|
+
js.getOrCreate().withPrefix("nimble").register(Bu())
|
|
4468
|
+
const Nu=mt`
|
|
4435
4469
|
${so("flex")}
|
|
4436
4470
|
|
|
4437
4471
|
:host {
|
|
@@ -4444,14 +4478,14 @@ const Ru=mt`
|
|
|
4444
4478
|
outline: none;
|
|
4445
4479
|
}
|
|
4446
4480
|
`
|
|
4447
|
-
class
|
|
4481
|
+
class ju extends to{constructor(){super(...arguments),this.selectionMode=Tu}handleClick(t){if(t.defaultPrevented)return!1
|
|
4448
4482
|
if(!(t.target instanceof Element&&Ji(t.target)))return!0
|
|
4449
4483
|
const e=t.target
|
|
4450
|
-
return!e.disabled&&(this.canSelect(e)?e.selected=!0:this.itemHasChildren(e)&&(e.expanded=!e.expanded),!0)}canSelect(t){switch(this.selectionMode){case
|
|
4451
|
-
case
|
|
4452
|
-
case
|
|
4453
|
-
default:return!0}}itemHasChildren(t){return null!==t.querySelector('[role="treeitem"]')}}kn([ot({attribute:"selection-mode"})],
|
|
4454
|
-
const
|
|
4484
|
+
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
|
|
4485
|
+
case Ru:return!1
|
|
4486
|
+
case Pu:return!this.itemHasChildren(t)
|
|
4487
|
+
default:return!0}}itemHasChildren(t){return null!==t.querySelector('[role="treeitem"]')}}kn([ot({attribute:"selection-mode"})],ju.prototype,"selectionMode",void 0)
|
|
4488
|
+
const qu=ju.compose({baseName:"tree-view",baseClass:to,template:(t,e)=>X`
|
|
4455
4489
|
<template
|
|
4456
4490
|
role="tree"
|
|
4457
4491
|
${bt("treeView")}
|
|
@@ -4463,6 +4497,6 @@ const Fu=Du.compose({baseName:"tree-view",baseClass:to,template:(t,e)=>X`
|
|
|
4463
4497
|
>
|
|
4464
4498
|
<slot ${Ct("slottedTreeItems")}></slot>
|
|
4465
4499
|
</template>
|
|
4466
|
-
`,styles:
|
|
4467
|
-
js.getOrCreate().withPrefix("nimble").register(
|
|
4500
|
+
`,styles:Nu})
|
|
4501
|
+
js.getOrCreate().withPrefix("nimble").register(qu())}()
|
|
4468
4502
|
//# sourceMappingURL=all-components-bundle.min.js.map
|