@ni/nimble-components 15.5.1 → 15.5.3
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 +86 -68
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +61 -56
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/all-components.d.ts +1 -0
- package/dist/esm/all-components.js +1 -0
- package/dist/esm/all-components.js.map +1 -1
- package/dist/esm/table/index.d.ts +11 -0
- package/dist/esm/table/index.js +15 -0
- package/dist/esm/table/index.js.map +1 -0
- package/dist/esm/table/styles.d.ts +1 -0
- package/dist/esm/table/styles.js +6 -0
- package/dist/esm/table/styles.js.map +1 -0
- package/dist/esm/table/template.d.ts +2 -0
- package/dist/esm/table/template.js +3 -0
- package/dist/esm/table/template.js.map +1 -0
- package/dist/esm/wafer-map/index.d.ts +2 -1
- package/dist/esm/wafer-map/index.js.map +1 -1
- package/dist/esm/wafer-map/modules/data-manager.d.ts +22 -0
- package/dist/esm/wafer-map/modules/data-manager.js +42 -0
- package/dist/esm/wafer-map/modules/data-manager.js.map +1 -0
- package/dist/esm/wafer-map/modules/prerendering.d.ts +24 -0
- package/dist/esm/wafer-map/modules/prerendering.js +80 -0
- package/dist/esm/wafer-map/modules/prerendering.js.map +1 -0
- package/dist/esm/wafer-map/types.d.ts +9 -2
- package/package.json +1 -1
|
@@ -4070,6 +4070,11 @@ const $p=class extends Di{}.compose({baseName:"tab-panel",baseClass:Di,template:
|
|
|
4070
4070
|
`,styles:yp})
|
|
4071
4071
|
ii.getOrCreate().withPrefix("nimble").register($p())
|
|
4072
4072
|
const kp=vt`
|
|
4073
|
+
${mo("flex")}
|
|
4074
|
+
`,Cp=j` <template> Nimble table here </template> `
|
|
4075
|
+
const _p=class extends ke{}.compose({baseName:"table",template:Cp,styles:kp})
|
|
4076
|
+
ii.getOrCreate().withPrefix("nimble").register(_p())
|
|
4077
|
+
const zp=vt`
|
|
4073
4078
|
${mo("grid")}
|
|
4074
4079
|
|
|
4075
4080
|
:host {
|
|
@@ -4092,7 +4097,7 @@ const kp=vt`
|
|
|
4092
4097
|
grid-column-end: 4;
|
|
4093
4098
|
}
|
|
4094
4099
|
`
|
|
4095
|
-
const
|
|
4100
|
+
const Ip=class extends qi{constructor(){super(),this.activeindicator=!1}}.compose({baseName:"tabs",baseClass:qi,template:(t,e)=>j`
|
|
4096
4101
|
<template class="${t=>t.orientation}">
|
|
4097
4102
|
${Pt(0,e)}
|
|
4098
4103
|
<div class="tablist" part="tablist" role="tablist">
|
|
@@ -4111,9 +4116,9 @@ const Cp=class extends qi{constructor(){super(),this.activeindicator=!1}}.compos
|
|
|
4111
4116
|
<slot name="tabpanel" part="tabpanel" ${Et("tabpanels")}></slot>
|
|
4112
4117
|
</div>
|
|
4113
4118
|
</template>
|
|
4114
|
-
`,styles:
|
|
4115
|
-
ii.getOrCreate().withPrefix("nimble").register(
|
|
4116
|
-
const
|
|
4119
|
+
`,styles:zp})
|
|
4120
|
+
ii.getOrCreate().withPrefix("nimble").register(Ip())
|
|
4121
|
+
const Op=vt`
|
|
4117
4122
|
${mo("flex")}
|
|
4118
4123
|
|
|
4119
4124
|
:host {
|
|
@@ -4131,15 +4136,15 @@ const _p=vt`
|
|
|
4131
4136
|
rgba(${ar}, 0.3);
|
|
4132
4137
|
margin: calc(${fr} / 4) calc(${fr} / 2);
|
|
4133
4138
|
}
|
|
4134
|
-
`,
|
|
4139
|
+
`,Hp=j`
|
|
4135
4140
|
<template slot="end">
|
|
4136
4141
|
<div class="separator"></div>
|
|
4137
4142
|
<slot></slot>
|
|
4138
4143
|
</template>
|
|
4139
4144
|
`
|
|
4140
|
-
const
|
|
4141
|
-
ii.getOrCreate().withPrefix("nimble").register(
|
|
4142
|
-
const
|
|
4145
|
+
const Sp=class extends ke{}.compose({baseName:"tabs-toolbar",template:Hp,styles:Op})
|
|
4146
|
+
ii.getOrCreate().withPrefix("nimble").register(Sp())
|
|
4147
|
+
const Ap="outline",Vp="block",Rp=vt`
|
|
4143
4148
|
${mo("inline-flex")}
|
|
4144
4149
|
|
|
4145
4150
|
:host {
|
|
@@ -4231,12 +4236,12 @@ const Op="outline",Hp="block",Sp=vt`
|
|
|
4231
4236
|
:host([resize='vertical']) .control {
|
|
4232
4237
|
resize: vertical;
|
|
4233
4238
|
}
|
|
4234
|
-
`.withBehaviors(sh(
|
|
4239
|
+
`.withBehaviors(sh(Ap,vt`
|
|
4235
4240
|
.control {
|
|
4236
4241
|
border-color: rgba(${ar}, 0.3);
|
|
4237
4242
|
background-color: transparent;
|
|
4238
4243
|
}
|
|
4239
|
-
`),sh(
|
|
4244
|
+
`),sh(Vp,vt`
|
|
4240
4245
|
.control {
|
|
4241
4246
|
background-color: rgba(${ar}, 0.1);
|
|
4242
4247
|
}
|
|
@@ -4250,8 +4255,8 @@ const Op="outline",Hp="block",Sp=vt`
|
|
|
4250
4255
|
background-color: rgba(${ar}, 0.1);
|
|
4251
4256
|
}
|
|
4252
4257
|
`))
|
|
4253
|
-
class
|
|
4254
|
-
const
|
|
4258
|
+
class Ep extends Ki{constructor(){super(...arguments),this.appearance=Ap}}yo([st],Ep.prototype,"appearance",void 0)
|
|
4259
|
+
const Mp=Ep.compose({baseName:"text-area",baseClass:Ki,template:(t,e)=>j`
|
|
4255
4260
|
<template
|
|
4256
4261
|
class="
|
|
4257
4262
|
${t=>t.readOnly?"readonly":""}
|
|
@@ -4306,9 +4311,9 @@ const Vp=Ap.compose({baseName:"text-area",baseClass:Ki,template:(t,e)=>j`
|
|
|
4306
4311
|
${Ct("control")}
|
|
4307
4312
|
></textarea>
|
|
4308
4313
|
</template>
|
|
4309
|
-
`,styles:
|
|
4310
|
-
ii.getOrCreate().withPrefix("nimble").register(
|
|
4311
|
-
const
|
|
4314
|
+
`,styles:Rp,shadowOptions:{delegatesFocus:!0}})
|
|
4315
|
+
ii.getOrCreate().withPrefix("nimble").register(Mp())
|
|
4316
|
+
const Lp="underline",Tp="outline",Bp="block",Pp="frameless",Dp=vt`
|
|
4312
4317
|
${mo("inline-block")}
|
|
4313
4318
|
${Hh}
|
|
4314
4319
|
|
|
@@ -4480,12 +4485,12 @@ const Rp="underline",Ep="outline",Mp="block",Lp="frameless",Tp=vt`
|
|
|
4480
4485
|
slot[name='actions']::slotted(*) {
|
|
4481
4486
|
${mr.cssCustomProperty}: 24px;
|
|
4482
4487
|
}
|
|
4483
|
-
`.withBehaviors(sh(
|
|
4488
|
+
`.withBehaviors(sh(Lp,vt`
|
|
4484
4489
|
.root {
|
|
4485
4490
|
border-bottom-width: ${xr};
|
|
4486
4491
|
padding-bottom: 0;
|
|
4487
4492
|
}
|
|
4488
|
-
`),sh(
|
|
4493
|
+
`),sh(Bp,vt`
|
|
4489
4494
|
.root {
|
|
4490
4495
|
background-color: rgba(${ar}, 0.1);
|
|
4491
4496
|
}
|
|
@@ -4513,12 +4518,12 @@ const Rp="underline",Ep="outline",Mp="block",Lp="frameless",Tp=vt`
|
|
|
4513
4518
|
:host([disabled]) .root {
|
|
4514
4519
|
background-color: rgba(${ar}, 0.07);
|
|
4515
4520
|
}
|
|
4516
|
-
`),sh(
|
|
4521
|
+
`),sh(Tp,vt`
|
|
4517
4522
|
.root {
|
|
4518
4523
|
border-width: ${xr};
|
|
4519
4524
|
padding: 0;
|
|
4520
4525
|
}
|
|
4521
|
-
`),sh(
|
|
4526
|
+
`),sh(Pp,vt`
|
|
4522
4527
|
.control {
|
|
4523
4528
|
padding-left: ${xr};
|
|
4524
4529
|
padding-right: ${xr};
|
|
@@ -4536,8 +4541,8 @@ const Rp="underline",Ep="outline",Mp="block",Lp="frameless",Tp=vt`
|
|
|
4536
4541
|
filter: invert(100%);
|
|
4537
4542
|
}
|
|
4538
4543
|
`))
|
|
4539
|
-
class
|
|
4540
|
-
const
|
|
4544
|
+
class Fp extends ki{constructor(){super(...arguments),this.appearance=Lp,this.errorVisible=!1,this.fullBleed=!1}}yo([st],Fp.prototype,"appearance",void 0),yo([st({attribute:"error-text"})],Fp.prototype,"errorText",void 0),yo([st({attribute:"error-visible",mode:"boolean"})],Fp.prototype,"errorVisible",void 0),yo([st({attribute:"full-bleed",mode:"boolean"})],Fp.prototype,"fullBleed",void 0)
|
|
4545
|
+
const Np=Fp.compose({baseName:"text-field",baseClass:ki,template:(t,e)=>j`
|
|
4541
4546
|
<template
|
|
4542
4547
|
class="
|
|
4543
4548
|
${t=>t.readOnly?"readonly":""}
|
|
@@ -4597,7 +4602,7 @@ const Pp=Bp.compose({baseName:"text-field",baseClass:ki,template:(t,e)=>j`
|
|
|
4597
4602
|
${Bt(0,e)}
|
|
4598
4603
|
</div>
|
|
4599
4604
|
</template>
|
|
4600
|
-
`,styles:
|
|
4605
|
+
`,styles:Dp,shadowOptions:{delegatesFocus:!0},end:j`
|
|
4601
4606
|
<${ii.tagFor(Ch)}
|
|
4602
4607
|
severity="error"
|
|
4603
4608
|
class="error-icon"
|
|
@@ -4607,8 +4612,8 @@ const Pp=Bp.compose({baseName:"text-field",baseClass:ki,template:(t,e)=>j`
|
|
|
4607
4612
|
</span>
|
|
4608
4613
|
${fh}
|
|
4609
4614
|
`})
|
|
4610
|
-
ii.getOrCreate().withPrefix("nimble").register(
|
|
4611
|
-
const
|
|
4615
|
+
ii.getOrCreate().withPrefix("nimble").register(Np())
|
|
4616
|
+
const qp=vt`
|
|
4612
4617
|
.positioning-region {
|
|
4613
4618
|
display: flex;
|
|
4614
4619
|
padding: ${br} ${fr};
|
|
@@ -4633,7 +4638,7 @@ const Dp=vt`
|
|
|
4633
4638
|
margin-left: auto;
|
|
4634
4639
|
}
|
|
4635
4640
|
`
|
|
4636
|
-
const
|
|
4641
|
+
const Up=class extends Gi{}.compose({baseName:"toolbar",baseClass:Gi,template:(t,e)=>j`
|
|
4637
4642
|
<template
|
|
4638
4643
|
aria-label="${t=>t.ariaLabel}"
|
|
4639
4644
|
aria-labelledby="${t=>t.ariaLabelledby}"
|
|
@@ -4654,9 +4659,9 @@ const Fp=class extends Gi{}.compose({baseName:"toolbar",baseClass:Gi,template:(t
|
|
|
4654
4659
|
${Bt(0,e)}
|
|
4655
4660
|
</div>
|
|
4656
4661
|
</template>
|
|
4657
|
-
`,styles:
|
|
4658
|
-
ii.getOrCreate().withPrefix("nimble").register(
|
|
4659
|
-
const
|
|
4662
|
+
`,styles:qp,shadowOptions:{delegatesFocus:!0}})
|
|
4663
|
+
ii.getOrCreate().withPrefix("nimble").register(Up())
|
|
4664
|
+
const jp=vt`
|
|
4660
4665
|
${mo("inline-flex")}
|
|
4661
4666
|
|
|
4662
4667
|
:host {
|
|
@@ -4741,7 +4746,7 @@ const Np=vt`
|
|
|
4741
4746
|
.status-icon {
|
|
4742
4747
|
opacity: 0.6;
|
|
4743
4748
|
}
|
|
4744
|
-
`)),
|
|
4749
|
+
`)),Wp=j`
|
|
4745
4750
|
${_t((t=>t.tooltipVisible),j`
|
|
4746
4751
|
<${ii.tagFor(xo)}
|
|
4747
4752
|
class="anchored-region"
|
|
@@ -4774,11 +4779,11 @@ const Np=vt`
|
|
|
4774
4779
|
</${ii.tagFor(xo)}>
|
|
4775
4780
|
`)}
|
|
4776
4781
|
`
|
|
4777
|
-
class
|
|
4778
|
-
const
|
|
4779
|
-
ii.getOrCreate().withPrefix("nimble").register(
|
|
4780
|
-
const
|
|
4781
|
-
class
|
|
4782
|
+
class Kp extends po{constructor(){super(...arguments),this.iconVisible=!1}}yo([st],Kp.prototype,"severity",void 0),yo([st({attribute:"icon-visible",mode:"boolean"})],Kp.prototype,"iconVisible",void 0)
|
|
4783
|
+
const Xp=Kp.compose({baseName:"tooltip",baseClass:po,template:Wp,styles:jp})
|
|
4784
|
+
ii.getOrCreate().withPrefix("nimble").register(Xp())
|
|
4785
|
+
const Gp="group-selected",Yp="all",Qp="leaves-only",Jp="none"
|
|
4786
|
+
class Zp{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 tu=vt`
|
|
4782
4787
|
${mo("block")}
|
|
4783
4788
|
|
|
4784
4789
|
:host {
|
|
@@ -4794,7 +4799,7 @@ class Yp{constructor(t,e,s){this.ltr=t,this.rtl=e,this.source=s,this.attached=nu
|
|
|
4794
4799
|
}
|
|
4795
4800
|
|
|
4796
4801
|
${""}
|
|
4797
|
-
:host([${
|
|
4802
|
+
:host([${Gp}])::after {
|
|
4798
4803
|
background: ${pr};
|
|
4799
4804
|
border-radius: 0px;
|
|
4800
4805
|
content: '';
|
|
@@ -4816,7 +4821,7 @@ class Yp{constructor(t,e,s){this.ltr=t,this.rtl=e,this.source=s,this.attached=nu
|
|
|
4816
4821
|
background: ${nr};
|
|
4817
4822
|
}
|
|
4818
4823
|
|
|
4819
|
-
:host([${
|
|
4824
|
+
:host([${Gp}]) .positioning-region:hover {
|
|
4820
4825
|
background: ${or};
|
|
4821
4826
|
}
|
|
4822
4827
|
|
|
@@ -4928,7 +4933,7 @@ class Yp{constructor(t,e,s){this.ltr=t,this.rtl=e,this.source=s,this.attached=nu
|
|
|
4928
4933
|
display: block;
|
|
4929
4934
|
}
|
|
4930
4935
|
`.withBehaviors(new class{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)
|
|
4931
|
-
e&&Qn.unsubscribe(e)}attach(t){const e=this.cache.get(t)||new
|
|
4936
|
+
e&&Qn.unsubscribe(e)}attach(t){const e=this.cache.get(t)||new Zp(this.ltr,this.rtl,t),s=Qn.getValueFor(t)
|
|
4932
4937
|
Qn.subscribe(e),e.attach(s),this.cache.set(t,e)}}(vt`
|
|
4933
4938
|
.expand-collapse-button {
|
|
4934
4939
|
left: var(
|
|
@@ -4960,11 +4965,11 @@ Qn.subscribe(e),e.attach(s),this.cache.set(t,e)}}(vt`
|
|
|
4960
4965
|
transform: rotate(135deg);
|
|
4961
4966
|
}
|
|
4962
4967
|
`))
|
|
4963
|
-
const
|
|
4964
|
-
t?.forEach((t=>t.removeAttribute(
|
|
4968
|
+
const eu=class extends vo{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]")
|
|
4969
|
+
t?.forEach((t=>t.removeAttribute(Gp)))}setGroupSelectionOnRootParentTreeItem(t){this.clearTreeGroupSelection()
|
|
4965
4970
|
let e=t
|
|
4966
4971
|
for(;e?.parentElement!==this.treeView;)e=e?.parentElement
|
|
4967
|
-
e&&e.setAttribute(
|
|
4972
|
+
e&&e.setAttribute(Gp,"true")}getParentTreeView(){return this.parentElement.closest("[role='tree']")}}.compose({baseName:"tree-item",baseClass:vo,template:(t,e)=>j`
|
|
4968
4973
|
<template
|
|
4969
4974
|
role="treeitem"
|
|
4970
4975
|
slot="${t=>t.isNestedItem()?"item":void 0}"
|
|
@@ -5004,9 +5009,9 @@ e&&e.setAttribute(Wp,"true")}getParentTreeView(){return this.parentElement.close
|
|
|
5004
5009
|
</div>
|
|
5005
5010
|
`)}
|
|
5006
5011
|
</template>
|
|
5007
|
-
`,styles:
|
|
5008
|
-
ii.getOrCreate().withPrefix("nimble").register(
|
|
5009
|
-
const
|
|
5012
|
+
`,styles:tu,expandCollapseGlyph:gl.data})
|
|
5013
|
+
ii.getOrCreate().withPrefix("nimble").register(eu())
|
|
5014
|
+
const su=vt`
|
|
5010
5015
|
${mo("flex")}
|
|
5011
5016
|
|
|
5012
5017
|
:host {
|
|
@@ -5019,14 +5024,14 @@ const Zp=vt`
|
|
|
5019
5024
|
outline: none;
|
|
5020
5025
|
}
|
|
5021
5026
|
`
|
|
5022
|
-
class
|
|
5027
|
+
class iu extends go{constructor(){super(...arguments),this.selectionMode=Yp}handleClick(t){if(t.defaultPrevented)return!1
|
|
5023
5028
|
if(!(t.target instanceof Element&&uo(t.target)))return!0
|
|
5024
5029
|
const e=t.target
|
|
5025
|
-
return!e.disabled&&(this.canSelect(e)?e.selected=!0:this.itemHasChildren(e)&&(e.expanded=!e.expanded),!0)}canSelect(t){switch(this.selectionMode){case
|
|
5026
|
-
case
|
|
5027
|
-
case
|
|
5028
|
-
default:return!0}}itemHasChildren(t){return null!==t.querySelector('[role="treeitem"]')}}yo([st({attribute:"selection-mode"})],
|
|
5029
|
-
const
|
|
5030
|
+
return!e.disabled&&(this.canSelect(e)?e.selected=!0:this.itemHasChildren(e)&&(e.expanded=!e.expanded),!0)}canSelect(t){switch(this.selectionMode){case Yp:return!0
|
|
5031
|
+
case Jp:return!1
|
|
5032
|
+
case Qp:return!this.itemHasChildren(t)
|
|
5033
|
+
default:return!0}}itemHasChildren(t){return null!==t.querySelector('[role="treeitem"]')}}yo([st({attribute:"selection-mode"})],iu.prototype,"selectionMode",void 0)
|
|
5034
|
+
const ou=iu.compose({baseName:"tree-view",baseClass:go,template:(t,e)=>j`
|
|
5030
5035
|
<template
|
|
5031
5036
|
role="tree"
|
|
5032
5037
|
${Ct("treeView")}
|
|
@@ -5038,9 +5043,9 @@ const eu=tu.compose({baseName:"tree-view",baseClass:go,template:(t,e)=>j`
|
|
|
5038
5043
|
>
|
|
5039
5044
|
<slot ${Et("slottedTreeItems")}></slot>
|
|
5040
5045
|
</template>
|
|
5041
|
-
`,styles:
|
|
5042
|
-
ii.getOrCreate().withPrefix("nimble").register(
|
|
5043
|
-
const
|
|
5046
|
+
`,styles:su})
|
|
5047
|
+
ii.getOrCreate().withPrefix("nimble").register(ou())
|
|
5048
|
+
const nu=j`
|
|
5044
5049
|
<div>
|
|
5045
5050
|
<ul>
|
|
5046
5051
|
${function(t,e,s=zt){return new St(t,"function"==typeof e?e:()=>e,Object.assign(Object.assign({},zt),s))}((t=>t.dies),j` <li>
|
|
@@ -5049,8 +5054,8 @@ const su=j`
|
|
|
5049
5054
|
</li>`)}
|
|
5050
5055
|
</ul>
|
|
5051
5056
|
</div>
|
|
5052
|
-
`,
|
|
5053
|
-
class
|
|
5054
|
-
const
|
|
5055
|
-
ii.getOrCreate().withPrefix("nimble").register(
|
|
5057
|
+
`,ru=vt``,au="top-left",lu="top",cu="linear"
|
|
5058
|
+
class du extends ke{constructor(){super(...arguments),this.quadrant=au,this.orientation=lu,this.maxCharacters=4,this.dieLabelsHidden=!1,this.dieLabelsSuffix="",this.colorsScaleMode=cu,this.highlightedValues=[],this.dies=[],this.colorScale={colors:[],values:[]}}}yo([st],du.prototype,"quadrant",void 0),yo([st],du.prototype,"orientation",void 0),yo([st({attribute:"max-characters",converter:tt})],du.prototype,"maxCharacters",void 0),yo([st({attribute:"die-labels-hidden",mode:"boolean"})],du.prototype,"dieLabelsHidden",void 0),yo([st({attribute:"die-labels-suffix"})],du.prototype,"dieLabelsSuffix",void 0),yo([st({attribute:"colors-scale-mode"})],du.prototype,"colorsScaleMode",void 0),yo([g],du.prototype,"highlightedValues",void 0),yo([g],du.prototype,"dies",void 0),yo([g],du.prototype,"colorScale",void 0)
|
|
5059
|
+
const hu=du.compose({baseName:"wafer-map",template:nu,styles:ru})
|
|
5060
|
+
ii.getOrCreate().withPrefix("nimble").register(hu())}()
|
|
5056
5061
|
//# sourceMappingURL=all-components-bundle.min.js.map
|