@trintel/zooy 1.0.1-beta.1 → 1.0.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/README.md +4 -4
- package/dist/chunks/button--cIzwEQA.js +66 -0
- package/dist/chunks/button-i6QyRwAM.js +272 -0
- package/dist/chunks/{button-skeleton-BcyctpC3.js → button-skeleton-Bk2Vw5Mq.js} +1 -1
- package/dist/chunks/{button-skeleton-DEmHtnd8.js → button-skeleton-D2TeTVpP.js} +5 -5
- package/dist/chunks/checkbox-Dyh34VfG.js +201 -0
- package/dist/chunks/checkbox-atdz21pu.js +40 -0
- package/dist/chunks/{class-map-Dt10N9TS.js → class-map-CziJvhVR.js} +1 -1
- package/dist/chunks/{class-map-emHvptF6.js → class-map-hWNVHb09.js} +1 -1
- package/dist/chunks/collection-helpers-Bk68Vaau.js +7 -0
- package/dist/chunks/collection-helpers-afBvMQaC.js +1 -0
- package/dist/chunks/content-switcher-item-88PWpM2j.js +27 -0
- package/dist/chunks/content-switcher-item-CpNfKVu-.js +351 -0
- package/dist/chunks/defs-C88lSWuJ.js +1 -0
- package/dist/chunks/defs-Do0OvCKd.js +1165 -0
- package/dist/chunks/dropdown-item-CDbnp5_k.js +621 -0
- package/dist/chunks/dropdown-item-CRyAm4Ku.js +69 -0
- package/dist/chunks/{focus-Dty12qxz.js → focus-B3iymVyL.js} +1 -1
- package/dist/chunks/{focus-Cyj1QfBL.js → focus-WnKGH_xB.js} +1 -1
- package/dist/chunks/{icon-loader-C2EqV5wJ.js → icon-loader-C3acLKRm.js} +1 -1
- package/dist/chunks/{icon-loader-DS-X84Yz.js → icon-loader-CsKt-G8D.js} +1 -1
- package/dist/chunks/{icon-loader-utils-B6kq3DHp.js → icon-loader-utils-DKbXKLDh.js} +1 -1
- package/dist/chunks/{icon-loader-utils-BIiU-zGK.js → icon-loader-utils-DXGGCFfD.js} +1 -1
- package/dist/chunks/{if-defined--xXVpdta.js → if-defined-D2rCHx2p.js} +1 -1
- package/dist/chunks/{if-defined-CFTJFEK6.js → if-defined-uehgcl8e.js} +1 -1
- package/dist/chunks/if-non-empty-BEpfFFDX.js +1 -0
- package/dist/chunks/{if-non-empty-0zvrDGPr.js → if-non-empty-CcwduEjT.js} +1 -1
- package/dist/chunks/index--Q3NhIVC.js +26 -0
- package/dist/chunks/index-B16kSrMy.js +259 -0
- package/dist/chunks/index-B6vimuhF.js +74 -0
- package/dist/chunks/index-B8fGrrzJ.js +235 -0
- package/dist/chunks/index-BEDYiyp9.js +15 -0
- package/dist/chunks/{index-BKsBoGOO.js → index-BEyCs2cc.js} +147 -135
- package/dist/chunks/index-BIJ3miZu.js +103 -0
- package/dist/chunks/index-BIvyXnIe.js +62 -0
- package/dist/chunks/{index-C6SudlSp.js → index-BMJjuXme.js} +1 -1
- package/dist/chunks/{index-B3EmHaO7.js → index-BMNd2Qad.js} +5 -5
- package/dist/chunks/{index-TCPPpE9b.js → index-BMNv7Afr.js} +1 -1
- package/dist/chunks/index-BMzAaQhy.js +52 -0
- package/dist/chunks/index-BODxU-Mu.js +455 -0
- package/dist/chunks/{index-CZ2kGMvF.js → index-BPRteboN.js} +6 -6
- package/dist/chunks/{index-1G2UuijG.js → index-BTUYIkmg.js} +9 -9
- package/dist/chunks/index-BUcMLg1n.js +35 -0
- package/dist/chunks/index-BVpkxHll.js +15 -0
- package/dist/chunks/index-BWBjCDwY.js +79 -0
- package/dist/chunks/index-BYHXKkvf.js +381 -0
- package/dist/chunks/index-BeKAg3cB.js +65 -0
- package/dist/chunks/index-Bgo3KCFI.js +364 -0
- package/dist/chunks/{index-DXoeeipa.js → index-Bh3jqbKV.js} +6 -6
- package/dist/chunks/{index-Ci2M9li9.js → index-Bk2MEnMu.js} +181 -182
- package/dist/chunks/index-BlAm81hv.js +79 -0
- package/dist/chunks/index-Bp5LwA_m.js +75 -0
- package/dist/chunks/index-BqExj5O7.js +158 -0
- package/dist/chunks/index-BrqEja9V.js +452 -0
- package/dist/chunks/{index-h66Bp4Cx.js → index-BtPiuBUm.js} +1 -1
- package/dist/chunks/index-Bu6R2tix.js +22 -0
- package/dist/chunks/index-Bug3BjgA.js +71 -0
- package/dist/chunks/index-BwhAoVy-.js +254 -0
- package/dist/chunks/index-BxGUZ-qP.js +17 -0
- package/dist/chunks/index-ByNfpHAO.js +368 -0
- package/dist/chunks/index-Byf_K1x1.js +111 -0
- package/dist/chunks/index-C-P030e_.js +260 -0
- package/dist/chunks/{index-BhJiw5Wx.js → index-C1Eehpcx.js} +1 -1
- package/dist/chunks/index-C4GpRDm7.js +15 -0
- package/dist/chunks/{index-Bd60xpxv.js → index-C5b2680a.js} +1 -1
- package/dist/chunks/{index-Df3VILTD.js → index-C5s9Z5Ou.js} +4 -4
- package/dist/chunks/index-C9HJjC2j.js +3 -0
- package/dist/chunks/index-CFG5exAl.js +19 -0
- package/dist/chunks/index-CHIQ4wsM.js +57 -0
- package/dist/chunks/index-CO_QGXLN.js +881 -0
- package/dist/chunks/index-CPLpCt6z.js +30 -0
- package/dist/chunks/{index-CArtDXbg.js → index-CP_zaIyv.js} +1 -1
- package/dist/chunks/index-CPzh43Kr.js +45 -0
- package/dist/chunks/{index-B1YLd9rD.js → index-CTEnXoVq.js} +1 -1
- package/dist/chunks/{index-CmA3uuMd.js → index-CUI3NPWg.js} +1 -1
- package/dist/chunks/{index-CZwmnbDv.js → index-C_JOABLw.js} +1 -1
- package/dist/chunks/index-C_NhQPDA.js +27 -0
- package/dist/chunks/{index-Cl1_9l1N.js → index-CbiknV4d.js} +1 -1
- package/dist/chunks/{index-DEcgB0oH.js → index-CcK76f0I.js} +4 -4
- package/dist/chunks/{index-D1PpRn2p.js → index-Cd1j7Qp1.js} +40 -31
- package/dist/chunks/{index-LR7m5odx.js → index-Chyr-DU2.js} +3 -3
- package/dist/chunks/index-CjVvmbL6.js +22 -0
- package/dist/chunks/index-CsKII5mz.js +1 -0
- package/dist/chunks/index-CwpgmKTP.js +87 -0
- package/dist/chunks/index-CxJCioQg.js +77 -0
- package/dist/chunks/{index-CKBFfWOV.js → index-CyF5Kef-.js} +7 -7
- package/dist/chunks/index-CyR413wv.js +511 -0
- package/dist/chunks/{index-C3LD0iwa.js → index-CyvZ9jxn.js} +12 -12
- package/dist/chunks/index-Czs-UAWh.js +129 -0
- package/dist/chunks/{index-DocEKbBo.js → index-D-iqTNbL.js} +5 -5
- package/dist/chunks/index-D9nVgUNo.js +121 -0
- package/dist/chunks/{index-BJHILyIN.js → index-DDUqY4Rl.js} +3 -3
- package/dist/chunks/index-DEdeVoZn.js +42 -0
- package/dist/chunks/index-DEtGo4Q7.js +150 -0
- package/dist/chunks/{index-RlFlo7pl.js → index-DGvLgX2O.js} +1 -1
- package/dist/chunks/{index-cMdyiXPa.js → index-DGvVa-5J.js} +1 -1
- package/dist/chunks/index-DIg4fP-p.js +683 -0
- package/dist/chunks/index-DNkLJEg1.js +1604 -0
- package/dist/chunks/index-DPCfOgTU.js +89 -0
- package/dist/chunks/index-DPnGRDRl.js +1 -0
- package/dist/chunks/index-DQ4Y-fiZ.js +150 -0
- package/dist/chunks/{index-DkUS58Ay.js → index-DSMPUWJU.js} +14 -14
- package/dist/chunks/{index-Clei4V9i.js → index-DSgb2u7b.js} +1 -1
- package/dist/chunks/index-DTadLLRG.js +160 -0
- package/dist/chunks/index-DTtMSAgV.js +25 -0
- package/dist/chunks/index-DX2JlRat.js +12 -0
- package/dist/chunks/index-DZrmJ7Ll.js +243 -0
- package/dist/chunks/{index-CYg05Ph9.js → index-DdkIREYU.js} +4 -4
- package/dist/chunks/index-DkphY0sd.js +46 -0
- package/dist/chunks/index-Do9f8Pwe.js +45 -0
- package/dist/chunks/index-Dr4evLL7.js +414 -0
- package/dist/chunks/{index-BG3BMHhy.js → index-DwCXQC7X.js} +3 -3
- package/dist/chunks/index-DwDG_y9_.js +58 -0
- package/dist/chunks/index-F2zwTZm1.js +19 -0
- package/dist/chunks/index-HbS1lUW6.js +12 -0
- package/dist/chunks/index-LtB-4-X9.js +1 -0
- package/dist/chunks/index-QuyEX50y.js +49 -0
- package/dist/chunks/{index-CYpHcMws.js → index-WpBhhuED.js} +4 -4
- package/dist/chunks/{index-DQZqjZ8k.js → index-d0CqW2Cm.js} +7 -7
- package/dist/chunks/{index-C_Xg4nHN.js → index-el9l-ZQy.js} +7 -7
- package/dist/chunks/index-gfbRBI-d.js +1 -0
- package/dist/chunks/index-hhX-bWEv.js +252 -0
- package/dist/chunks/{index-Dl6HFhg1.js → index-jdx-M5Y-.js} +1 -1
- package/dist/chunks/index-nfJ9ioGW.js +406 -0
- package/dist/chunks/{index-BQNhvN2i.js → index-oS8XvY4G.js} +4 -4
- package/dist/chunks/index-t9TINCcm.js +563 -0
- package/dist/chunks/index-tQGRhvw0.js +337 -0
- package/dist/chunks/index-tdmIA8Xp.js +291 -0
- package/dist/chunks/index-w027CjA0.js +81 -0
- package/dist/chunks/index-wgp15jn2.js +188 -0
- package/dist/chunks/index-xipeWGGU.js +2 -0
- package/dist/chunks/{loading-icon-D7mJr3sa.js → loading-icon-CN-iehcR.js} +2 -2
- package/dist/chunks/{loading-icon-Bw73Z2Lq.js → loading-icon-q__8yLZw.js} +1 -1
- package/dist/chunks/main-BPWCMI5R.js +65 -0
- package/dist/chunks/{main-DTOZMPON.js → main-BywCEBtD.js} +1437 -1031
- package/dist/chunks/{property-C5teVlku.js → property-DCTz3KPt.js} +1 -1
- package/dist/chunks/{property-Coy6Dag6.js → property-DzfJpYmn.js} +1 -1
- package/dist/chunks/{register-BO2Fr57T.js → register-B4yRiHm6.js} +1 -1
- package/dist/chunks/register-C3XDWad0.js +1618 -0
- package/dist/chunks/{register-CHuMnx--.js → register-CyNp_638.js} +1 -1
- package/dist/chunks/register-DpOrINOx.js +1 -0
- package/dist/chunks/search-BCJx6Xft.js +240 -0
- package/dist/chunks/search-CzmoEHwa.js +30 -0
- package/dist/chunks/select-0jyl720Y.js +357 -0
- package/dist/chunks/select-DC0T8Fw_.js +76 -0
- package/dist/chunks/{settings-NO9fjW0P.js → settings-Bgpv8zuU.js} +2 -0
- package/dist/chunks/{settings-Dy9UPb4i.js → settings-jvP7vP60.js} +2 -0
- package/dist/chunks/{state-BFc9dfyj.js → state-BiEAGUqO.js} +1 -1
- package/dist/chunks/{state-C2XTwLOv.js → state-DJQLwKiU.js} +1 -1
- package/dist/chunks/text-input-BGuFqOdN.js +372 -0
- package/dist/chunks/text-input-BPvBDzky.js +68 -0
- package/dist/chunks/tooltip-content-BOefn0hU.js +3 -0
- package/dist/chunks/tooltip-content-CWdOnBaw.js +135 -0
- package/dist/chunks/{unsafe-html-H7RRvoR7.js → unsafe-html-Bi2pB4Lb.js} +1 -1
- package/dist/chunks/{unsafe-html-9YCxB3h1.js → unsafe-html-xqClX-6M.js} +1 -1
- package/dist/zooy.cjs.js +1 -1
- package/dist/zooy.es.js +11 -11
- package/package.json +2 -2
- package/src/sass/carbon.scss +78 -4
- package/src/sass/panels.scss +263 -377
- package/src/sass/split.scss +0 -13
- package/dist/chunks/button-CgQW6Alg.js +0 -272
- package/dist/chunks/button-CnwdjMNF.js +0 -66
- package/dist/chunks/checkbox-Bt024Adv.js +0 -40
- package/dist/chunks/checkbox-D2LeqAn8.js +0 -201
- package/dist/chunks/collection-helpers-BwUB2CEz.js +0 -8
- package/dist/chunks/collection-helpers-CYLIiyii.js +0 -1
- package/dist/chunks/content-switcher-item-D6gOZCuS.js +0 -351
- package/dist/chunks/content-switcher-item-Dtv8UD1x.js +0 -27
- package/dist/chunks/defs-DMmigODC.js +0 -1077
- package/dist/chunks/defs-DPD20sPK.js +0 -1
- package/dist/chunks/dropdown-item-BDRUe-IF.js +0 -621
- package/dist/chunks/dropdown-item-DNLmqxnr.js +0 -69
- package/dist/chunks/if-non-empty-BIwvmklX.js +0 -1
- package/dist/chunks/index-21j_5emj.js +0 -35
- package/dist/chunks/index-82K_ozYZ.js +0 -455
- package/dist/chunks/index-B4JPT-gj.js +0 -683
- package/dist/chunks/index-B5-56fkV.js +0 -62
- package/dist/chunks/index-B612bWya.js +0 -58
- package/dist/chunks/index-B8nOkbPA.js +0 -77
- package/dist/chunks/index-BAEdnwkZ.js +0 -25
- package/dist/chunks/index-BAMMtRO9.js +0 -214
- package/dist/chunks/index-BC-p6lrw.js +0 -337
- package/dist/chunks/index-BEOc7JG-.js +0 -16
- package/dist/chunks/index-BHWaezgU.js +0 -259
- package/dist/chunks/index-BNjgzCq_.js +0 -1
- package/dist/chunks/index-BTND2b3S.js +0 -19
- package/dist/chunks/index-BZmOT6Xm.js +0 -89
- package/dist/chunks/index-B_C9vt_w.js +0 -30
- package/dist/chunks/index-B_JMGygD.js +0 -188
- package/dist/chunks/index-Bl6sE0-K.js +0 -1
- package/dist/chunks/index-BmvLxuoI.js +0 -16
- package/dist/chunks/index-BwMEAhRr.js +0 -2
- package/dist/chunks/index-BwOJ4JFm.js +0 -1604
- package/dist/chunks/index-BzmpjZ1o.js +0 -26
- package/dist/chunks/index-C06cFvgb.js +0 -406
- package/dist/chunks/index-C4JzGVcF.js +0 -49
- package/dist/chunks/index-C5nYdcCH.js +0 -875
- package/dist/chunks/index-C6WHuZdF.js +0 -79
- package/dist/chunks/index-C8YWVLB0.js +0 -128
- package/dist/chunks/index-C8miW4lw.js +0 -364
- package/dist/chunks/index-CDNshf0_.js +0 -57
- package/dist/chunks/index-CFYfFa1Z.js +0 -235
- package/dist/chunks/index-CJZtiqY-.js +0 -22
- package/dist/chunks/index-CMD0FIe-.js +0 -41
- package/dist/chunks/index-COcNpxlj.js +0 -87
- package/dist/chunks/index-CUTw26ex.js +0 -368
- package/dist/chunks/index-CUd_43Fv.js +0 -414
- package/dist/chunks/index-CXgbBzE5.js +0 -252
- package/dist/chunks/index-C_S3O2rJ.js +0 -79
- package/dist/chunks/index-CbuopDOc.js +0 -1
- package/dist/chunks/index-CcxiTkam.js +0 -150
- package/dist/chunks/index-Ce9jg1n7.js +0 -15
- package/dist/chunks/index-CfLbYyk0.js +0 -3
- package/dist/chunks/index-CkMd-UJg.js +0 -52
- package/dist/chunks/index-Co5m8M3y.js +0 -12
- package/dist/chunks/index-CoPuejcu.js +0 -511
- package/dist/chunks/index-Cq6Vdh__.js +0 -215
- package/dist/chunks/index-Cwe1NunF.js +0 -46
- package/dist/chunks/index-D1OTs_P5.js +0 -1
- package/dist/chunks/index-D3ldTviC.js +0 -150
- package/dist/chunks/index-DBvXH68A.js +0 -26
- package/dist/chunks/index-DC7qmnoW.js +0 -74
- package/dist/chunks/index-DDRkmmQp.js +0 -156
- package/dist/chunks/index-DH9eR0DH.js +0 -32
- package/dist/chunks/index-DLUPGsWM.js +0 -71
- package/dist/chunks/index-D_pgjOiX.js +0 -81
- package/dist/chunks/index-DktSeVhc.js +0 -563
- package/dist/chunks/index-Dqe5xXlT.js +0 -160
- package/dist/chunks/index-DuGskRLI.js +0 -243
- package/dist/chunks/index-DyoG-yF-.js +0 -75
- package/dist/chunks/index-E_bjKqnf.js +0 -15
- package/dist/chunks/index-GRYR4d36.js +0 -394
- package/dist/chunks/index-H-w5fBQG.js +0 -65
- package/dist/chunks/index-HvLIPR2y.js +0 -291
- package/dist/chunks/index-OhwD9m-A.js +0 -12
- package/dist/chunks/index-XTPnXw_W.js +0 -45
- package/dist/chunks/index-ZyhwV5v-.js +0 -452
- package/dist/chunks/index-cFX6zBu4.js +0 -19
- package/dist/chunks/index-fghrBFfu.js +0 -103
- package/dist/chunks/index-wTRaGtNG.js +0 -45
- package/dist/chunks/index-wigDmvr8.js +0 -121
- package/dist/chunks/index-y_a1ZQAA.js +0 -111
- package/dist/chunks/main-A63e59aD.js +0 -67
- package/dist/chunks/register-B533U9U9.js +0 -1
- package/dist/chunks/register-ClkXTZwT.js +0 -1383
- package/dist/chunks/search-CsRC23Cp.js +0 -240
- package/dist/chunks/search-DsyFfaxl.js +0 -30
- package/dist/chunks/select-BoaR85ix.js +0 -76
- package/dist/chunks/select-CKe8zwIo.js +0 -357
- package/dist/chunks/text-input-BuK8MjZG.js +0 -68
- package/dist/chunks/text-input-D2BsjPTx.js +0 -372
- package/dist/chunks/tooltip-content-B6aAm7Zu.js +0 -3
- package/dist/chunks/tooltip-content-DXrPA6JW.js +0 -135
|
@@ -1,368 +0,0 @@
|
|
|
1
|
-
import { _ as a } from "./tslib.es6-C5gLNDSD.js";
|
|
2
|
-
import { e as v } from "./class-map-emHvptF6.js";
|
|
3
|
-
import { a as C, i as $, x as b } from "./main-DTOZMPON.js";
|
|
4
|
-
import { n as f } from "./property-Coy6Dag6.js";
|
|
5
|
-
import { r as E } from "./state-C2XTwLOv.js";
|
|
6
|
-
import { p as r } from "./settings-Dy9UPb4i.js";
|
|
7
|
-
import { i as k } from "./icon-loader-C2EqV5wJ.js";
|
|
8
|
-
import { c as S } from "./carbon-element-DzDuXiyl.js";
|
|
9
|
-
import { H as A } from "./host-listener-DD3oGxvg.js";
|
|
10
|
-
import { H as T } from "./host-listener-CN245INl.js";
|
|
11
|
-
var z = {
|
|
12
|
-
elem: "svg",
|
|
13
|
-
attrs: {
|
|
14
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
15
|
-
viewBox: "0 0 32 32",
|
|
16
|
-
fill: "currentColor",
|
|
17
|
-
width: 16,
|
|
18
|
-
height: 16
|
|
19
|
-
},
|
|
20
|
-
content: [{
|
|
21
|
-
elem: "path",
|
|
22
|
-
attrs: {
|
|
23
|
-
d: "M24 12L16 22 8 12z"
|
|
24
|
-
}
|
|
25
|
-
}],
|
|
26
|
-
name: "caret--down",
|
|
27
|
-
size: 16
|
|
28
|
-
}, q = C(['.cds--layer-one,:root{--cds-layer:var(--cds-layer-01,#f4f4f4);--cds-layer-active:var(--cds-layer-active-01,#c6c6c6);--cds-layer-background:var(--cds-layer-background-01,#fff);--cds-layer-hover:var(--cds-layer-hover-01,#e8e8e8);--cds-layer-selected:var(--cds-layer-selected-01,#e0e0e0);--cds-layer-selected-hover:var(--cds-layer-selected-hover-01,#d1d1d1);--cds-layer-accent:var(--cds-layer-accent-01,#e0e0e0);--cds-layer-accent-hover:var(--cds-layer-accent-hover-01,#d1d1d1);--cds-layer-accent-active:var(--cds-layer-accent-active-01,#a8a8a8);--cds-field:var(--cds-field-01,#f4f4f4);--cds-field-hover:var(--cds-field-hover-01,#e8e8e8);--cds-border-subtle:var(--cds-border-subtle-00,#e0e0e0);--cds-border-subtle-selected:var(--cds-border-subtle-selected-01,#c6c6c6);--cds-border-strong:var(--cds-border-strong-01,#8d8d8d);--cds-border-tile:var(--cds-border-tile-01,#c6c6c6)}.cds--layer-two{--cds-layer:var(--cds-layer-02,#fff);--cds-layer-active:var(--cds-layer-active-02,#c6c6c6);--cds-layer-background:var(--cds-layer-background-02,#f4f4f4);--cds-layer-hover:var(--cds-layer-hover-02,#e8e8e8);--cds-layer-selected:var(--cds-layer-selected-02,#e0e0e0);--cds-layer-selected-hover:var(--cds-layer-selected-hover-02,#d1d1d1);--cds-layer-accent:var(--cds-layer-accent-02,#e0e0e0);--cds-layer-accent-hover:var(--cds-layer-accent-hover-02,#d1d1d1);--cds-layer-accent-active:var(--cds-layer-accent-active-02,#a8a8a8);--cds-field:var(--cds-field-02,#fff);--cds-field-hover:var(--cds-field-hover-02,#e8e8e8);--cds-border-subtle:var(--cds-border-subtle-01,#c6c6c6);--cds-border-subtle-selected:var(--cds-border-subtle-selected-02,#c6c6c6);--cds-border-strong:var(--cds-border-strong-02,#8d8d8d);--cds-border-tile:var(--cds-border-tile-02,#a8a8a8)}.cds--layer-three{--cds-layer:var(--cds-layer-03,#f4f4f4);--cds-layer-active:var(--cds-layer-active-03,#c6c6c6);--cds-layer-background:var(--cds-layer-background-03,#fff);--cds-layer-hover:var(--cds-layer-hover-03,#e8e8e8);--cds-layer-selected:var(--cds-layer-selected-03,#e0e0e0);--cds-layer-selected-hover:var(--cds-layer-selected-hover-03,#d1d1d1);--cds-layer-accent:var(--cds-layer-accent-03,#e0e0e0);--cds-layer-accent-hover:var(--cds-layer-accent-hover-03,#d1d1d1);--cds-layer-accent-active:var(--cds-layer-accent-active-03,#a8a8a8);--cds-field:var(--cds-field-03,#f4f4f4);--cds-field-hover:var(--cds-field-hover-03,#e8e8e8);--cds-border-subtle:var(--cds-border-subtle-02,#e0e0e0);--cds-border-subtle-selected:var(--cds-border-subtle-selected-03,#c6c6c6);--cds-border-strong:var(--cds-border-strong-03,#8d8d8d);--cds-border-tile:var(--cds-border-tile-03,#c6c6c6)}.cds--layer-one.cds--layer__with-background,.cds--layer-three.cds--layer__with-background,.cds--layer-two.cds--layer__with-background{background-color:var(--cds-layer-background)}@keyframes cds--hide-feedback{0%{opacity:1;visibility:inherit}to{opacity:0;visibility:hidden}}@keyframes cds--show-feedback{0%{opacity:0;visibility:hidden}to{opacity:1;visibility:inherit}}@keyframes cds--skeleton{0%{opacity:.3;transform:scaleX(0);transform-origin:left}20%{opacity:1;transform:scaleX(1);transform-origin:left}28%{transform:scaleX(1);transform-origin:right}51%{transform:scaleX(0);transform-origin:right}58%{transform:scaleX(0);transform-origin:right}82%{transform:scaleX(1);transform-origin:right}83%{transform:scaleX(1);transform-origin:left}96%{transform:scaleX(0);transform-origin:left}to{opacity:.3;transform:scaleX(0);transform-origin:left}}input:-webkit-autofill,input:-webkit-autofill:focus,input:-webkit-autofill:hover,textarea:-webkit-autofill,textarea:-webkit-autofill:focus,textarea:-webkit-autofill:hover{box-shadow:0 0 0 1000px var(--cds-field) inset;-webkit-text-fill-color:var(--cds-text-primary,#161616)}.cds--fieldset{border:0;box-sizing:border-box;font-family:inherit;font-size:100%;margin:0;padding:0;vertical-align:baseline}.cds--fieldset *,.cds--fieldset :after,.cds--fieldset :before{box-sizing:inherit}.cds--form-item{align-items:flex-start;display:flex;flex:1 1 auto;flex-direction:column;font-size:var(--cds-body-compact-01-font-size,.875rem);font-weight:var(--cds-body-compact-01-font-weight,400);letter-spacing:var(--cds-body-compact-01-letter-spacing,.16px);line-height:var(--cds-body-compact-01-line-height,1.28572)}.cds--label{color:var(--cds-text-secondary,#525252);display:inline-block;font-size:var(--cds-label-01-font-size,.75rem);font-weight:var(--cds-label-01-font-weight,400);font-weight:400;letter-spacing:var(--cds-label-01-letter-spacing,.32px);line-height:var(--cds-label-01-line-height,1.33333);line-height:1rem;margin-block-end:.5rem;vertical-align:baseline}.cds--label html{font-size:100%}.cds--label body{font-family:IBM Plex Sans,system-ui,-apple-system,BlinkMacSystemFont,\\.SFNSText-Regular,sans-serif;font-weight:400;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}.cds--label code{font-family:IBM Plex Mono,system-ui,-apple-system,BlinkMacSystemFont,\\.SFNSText-Regular,monospace}.cds--label strong{font-weight:600}.cds--label .cds--toggletip-label{font-size:var(--cds-label-01-font-size,.75rem);font-weight:var(--cds-label-01-font-weight,400);letter-spacing:var(--cds-label-01-letter-spacing,.32px);line-height:var(--cds-label-01-line-height,1.33333)}.cds--label--no-margin{margin-block-end:0}.cds--label+.cds--tooltip{inset-block-start:.2rem;inset-inline-start:.5rem;position:relative}.cds--label+.cds--tooltip .cds--tooltip__trigger{align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;box-sizing:border-box;cursor:pointer;display:inline-block;display:flex;font-family:inherit;font-size:100%;font-size:var(--cds-label-01-font-size,.75rem);font-weight:var(--cds-label-01-font-weight,400);inline-size:100%;justify-content:center;letter-spacing:var(--cds-label-01-letter-spacing,.32px);line-height:var(--cds-label-01-line-height,1.33333);margin:0;padding:0;text-align:start;vertical-align:baseline}.cds--label+.cds--tooltip .cds--tooltip__trigger *,.cds--label+.cds--tooltip .cds--tooltip__trigger :after,.cds--label+.cds--tooltip .cds--tooltip__trigger :before{box-sizing:inherit}.cds--label+.cds--tooltip .cds--tooltip__trigger::-moz-focus-inner{border:0}.cds--label+.cds--tooltip .cds--tooltip__trigger:focus{outline:1px solid var(--cds-focus,#0f62fe)}.cds--label+.cds--tooltip .cds--tooltip__trigger svg{fill:var(--cds-icon-secondary,#525252)}.cds--label+.cds--tooltip .cds--tooltip__trigger svg :hover{fill:var(--cds-icon-primary,#161616)}.cds--label+.cds--toggletip{inset-block-start:.2rem;inset-inline-start:.5rem}.cds--label.cds--skeleton{background:var(--cds-skeleton-background,#e8e8e8);block-size:.875rem;border:none;box-shadow:none;inline-size:4.6875rem;padding:0;pointer-events:none;position:relative}.cds--label.cds--skeleton:active,.cds--label.cds--skeleton:focus,.cds--label.cds--skeleton:hover{border:none;cursor:default;outline:none}.cds--label.cds--skeleton:before{animation:cds--skeleton 3s ease-in-out infinite;background:var(--cds-skeleton-element,#c6c6c6);block-size:100%;content:"";inline-size:100%;inset-inline-start:0;position:absolute;will-change:transform-origin,transform,opacity}@media (prefers-reduced-motion:reduce){.cds--label.cds--skeleton:before{animation:none}}@media (forced-colors:active),screen and (-ms-high-contrast:active){.cds--label.cds--skeleton{background:CanvasText}.cds--label.cds--skeleton:before{background:Canvas;forced-color-adjust:none}}input[type=number],input[type=text].cds--number{font-family:IBM Plex Sans,system-ui,-apple-system,BlinkMacSystemFont,\\.SFNSText-Regular,sans-serif}.cds--combo-box[data-invalid]:not(.cds--multi-select--selected) .cds--text-input:not(:focus),.cds--list-box[data-invalid]:not(.cds--multi-select--invalid--focused,.cds--combo-box--invalid--focused),.cds--number[data-invalid] input[type=number]:not(:focus),.cds--number[data-invalid] input[type=text]:not(:focus),.cds--select-input__wrapper[data-invalid] .cds--select-input:not(:focus),.cds--text-area__wrapper[data-invalid]>.cds--text-area--invalid:not(:focus),.cds--text-input__field-wrapper[data-invalid]>.cds--text-input--invalid:not(:focus),input[data-invalid]:not(:focus){outline:2px solid var(--cds-support-error,#da1e28);outline-offset:-2px}@media screen and (prefers-contrast){.cds--combo-box[data-invalid]:not(.cds--multi-select--selected) .cds--text-input:not(:focus),.cds--list-box[data-invalid]:not(.cds--multi-select--invalid--focused,.cds--combo-box--invalid--focused),.cds--number[data-invalid] input[type=number]:not(:focus),.cds--number[data-invalid] input[type=text]:not(:focus),.cds--select-input__wrapper[data-invalid] .cds--select-input:not(:focus),.cds--text-area__wrapper[data-invalid]>.cds--text-area--invalid:not(:focus),.cds--text-input__field-wrapper[data-invalid]>.cds--text-input--invalid:not(:focus),input[data-invalid]:not(:focus){outline-style:dotted}}.cds--date-picker-input__wrapper--invalid~.cds--form-requirement,.cds--date-picker-input__wrapper--warn~.cds--form-requirement,.cds--date-picker-input__wrapper~.cds--form-requirement,.cds--list-box--warning~.cds--form-requirement,.cds--list-box[data-invalid]~.cds--form-requirement,.cds--number[data-invalid] .cds--number__input-wrapper~.cds--form-requirement,.cds--number__input-wrapper--warning~.cds--form-requirement,.cds--select--warning .cds--select-input__wrapper~.cds--form-requirement,.cds--select-input__wrapper[data-invalid]~.cds--form-requirement,.cds--text-area__wrapper--warn~.cds--form-requirement,.cds--text-area__wrapper[data-invalid]~.cds--form-requirement,.cds--text-input__field-wrapper--warning>.cds--text-input~.cds--form-requirement,.cds--text-input__field-wrapper--warning~.cds--form-requirement,.cds--text-input__field-wrapper[data-invalid]~.cds--form-requirement,.cds--time-picker--invalid~.cds--form-requirement,.cds--time-picker--warning~.cds--form-requirement,.cds--time-picker[data-invalid]~.cds--form-requirement,input[data-invalid]~.cds--form-requirement{display:block;font-weight:400;max-block-size:12.5rem;overflow:visible}.cds--select--inline.cds--select--warning .cds--select-input--inline__wrapper~.cds--form-requirement,.cds--select-input--inline__wrapper[data-invalid]~.cds--form-requirement{display:inline-flex;inline-size:100%;margin:0;margin-block-end:0;max-block-size:100%;overflow:visible;padding-inline-start:.5rem}.cds--date-picker-input__wrapper--invalid~.cds--form-requirement,.cds--date-picker-input__wrapper~.cds--form-requirement,.cds--list-box[data-invalid]~.cds--form-requirement,.cds--number[data-invalid] .cds--number__input-wrapper~.cds--form-requirement,.cds--select-input--inline__wrapper[data-invalid]~.cds--form-requirement,.cds--select-input__wrapper[data-invalid]~.cds--form-requirement,.cds--text-area__wrapper[data-invalid]~.cds--form-requirement,.cds--text-input__field-wrapper[data-invalid]~.cds--form-requirement,.cds--time-picker--invalid~.cds--form-requirement,.cds--time-picker[data-invalid]~.cds--form-requirement,input[data-invalid]~.cds--form-requirement{color:var(--cds-text-error,#da1e28)}.cds--form--fluid .cds--text-input__field-wrapper--warning,.cds--form--fluid .cds--text-input__field-wrapper[data-invalid]{display:block}.cds--form--fluid input[data-invalid]{outline:none}.cds--form--fluid .cds--form-requirement{margin:0;padding:.5rem 2.5rem .5rem 1rem}input:not(output,[data-invalid]):-moz-ui-invalid{box-shadow:none}.cds--form-requirement{display:none;font-size:var(--cds-label-01-font-size,.75rem);font-weight:var(--cds-label-01-font-weight,400);letter-spacing:var(--cds-label-01-letter-spacing,.32px);line-height:var(--cds-label-01-line-height,1.33333);margin:.25rem 0 0;max-block-size:0;overflow:hidden}.cds--form-requirement html{font-size:100%}.cds--form-requirement body{font-family:IBM Plex Sans,system-ui,-apple-system,BlinkMacSystemFont,\\.SFNSText-Regular,sans-serif;font-weight:400;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}.cds--form-requirement code{font-family:IBM Plex Mono,system-ui,-apple-system,BlinkMacSystemFont,\\.SFNSText-Regular,monospace}.cds--form-requirement strong{font-weight:600}.cds--select--inline .cds--form__helper-text{margin-block-start:0}.cds--form__helper-text{color:var(--cds-text-helper,#6f6f6f);font-size:var(--cds-helper-text-01-font-size,.75rem);inline-size:100%;letter-spacing:var(--cds-helper-text-01-letter-spacing,.32px);line-height:var(--cds-helper-text-01-line-height,1.33333);margin-block-start:.25rem;opacity:1;z-index:0}.cds--form__helper-text--disabled,.cds--label--disabled,fieldset[disabled] .cds--form__helper-text,fieldset[disabled] .cds--label{color:var(--cds-text-disabled,hsla(0,0%,9%,.25))}.cds--tree{border:0;box-sizing:border-box;font-family:inherit;font-size:100%;margin:0;overflow:hidden;padding:0;vertical-align:baseline}.cds--tree *,.cds--tree :after,.cds--tree :before{box-sizing:inherit}.cds--tree-node,:host(cds-tree-node:not([href])){background-color:var(--cds-layer-01,#f4f4f4);color:var(--cds-text-secondary,#525252);padding-inline-start:1rem}.cds--tree-node:focus{outline:none}.cds--tree-node:hover{cursor:pointer}.cds--tree-node--hidden{display:none}.cds--tree-node__children{border:0;box-sizing:border-box;font-family:inherit;font-size:100%;list-style-type:none;margin:0;padding:0;vertical-align:baseline}.cds--tree-node__children *,.cds--tree-node__children :after,.cds--tree-node__children :before{box-sizing:inherit}.cds--tree-node--with-icon .cds--tree-node,.cds--tree-node--with-icon :host(cds-tree-node:not([href])){margin-inline-start:.5rem}.cds--tree-node:focus>.cds--tree-node__label{outline:2px solid var(--cds-focus,#0f62fe);outline-offset:-2px}@media screen and (prefers-contrast){.cds--tree-node:focus>.cds--tree-node__label{outline-style:dotted}}.cds--tree-node.cds--tree-parent-node>.cds--tree-node__label{inline-size:auto}.cds--tree-node--disabled:focus>.cds--tree-node__label{outline:none}.cds--tree-node--disabled,.cds--tree-node--disabled .cds--tree-node__label:hover,.cds--tree-node--disabled .cds--tree-node__label:hover .cds--tree-node__label__details,:host(cds-tree-node[disabled]:not([href])),:host(cds-tree-node[disabled]:not([href])) .cds--tree-node__label:hover,:host(cds-tree-node[disabled]:not([href])) .cds--tree-node__label:hover .cds--tree-node__label__details{background-color:var(--cds-field-01,#f4f4f4);color:var(--cds-text-disabled,hsla(0,0%,9%,.25))}.cds--tree-node--disabled .cds--tree-node__icon,.cds--tree-node--disabled .cds--tree-node__label:hover .cds--tree-node__icon,.cds--tree-node--disabled .cds--tree-node__label:hover .cds--tree-parent-node__toggle-icon,.cds--tree-node--disabled .cds--tree-parent-node__toggle-icon,:host(cds-tree-node:not([href])) .cds--tree-node--disabled ::slotted([slot=icon]),:host(cds-tree-node:not([href])):host(cds-tree-node[disabled]:not([href])) ::slotted([slot=icon]),:host(cds-tree-node[disabled]:not([href])) .cds--tree-node__icon,:host(cds-tree-node[disabled]:not([href])) .cds--tree-parent-node__toggle-icon{fill:var(--cds-icon-disabled,hsla(0,0%,9%,.25))}.cds--tree-node--disabled,.cds--tree-node--disabled .cds--tree-parent-node__toggle-icon:hover,:host(cds-tree-node[disabled]:not([href])),:host(cds-tree-node[disabled]:not([href])) .cds--tree-parent-node__toggle-icon:hover{cursor:not-allowed}:host(cds-tree-node[href][parent]) a.cds--tree-node,li a.cds--tree-node{text-decoration:none}:host(cds-tree-node[href][parent]) a.cds--tree-node:not(.cds--tree-node--disabled),li a.cds--tree-node:not(.cds--tree-node--disabled){color:var(--cds-text-secondary,#525252)}:host(cds-tree-node[href][parent]),li.cds--tree-node-link-parent{background-color:var(--cds-layer-01,#f4f4f4);display:flex;flex-direction:column}:host(cds-tree-node[href][parent])>.cds--tree-node__children,li.cds--tree-node-link-parent>.cds--tree-node__children{padding-inline-start:1rem}.cds--tree-node__label{align-items:center;box-sizing:border-box;display:flex;flex:1;font-size:var(--cds-body-compact-01-font-size,.875rem);font-weight:var(--cds-body-compact-01-font-weight,400);inline-size:100%;letter-spacing:var(--cds-body-compact-01-letter-spacing,.16px);line-height:var(--cds-body-compact-01-line-height,1.28572);min-block-size:2rem;padding-inline-end:1rem;position:relative}.cds--tree-node__label:hover{background-color:var(--cds-layer-hover-01,#e8e8e8);color:var(--cds-text-primary,#161616)}.cds--tree-node:not(.cds--tree-parent-node) .cds--tree-node__label,:not(.cds--tree-parent-node):host(cds-tree-node:not([href])) .cds--tree-node__label{padding-block:.4375rem .4375rem}.cds--tree-node__label:hover .cds--tree-node__label__details{color:var(--cds-text-primary,#161616)}.cds--tree-node__label:hover .cds--tree-node__icon,.cds--tree-node__label:hover .cds--tree-parent-node__toggle-icon,:host(cds-tree-node:not([href])) .cds--tree-node__label:hover ::slotted([slot=icon]){fill:var(--cds-icon-primary,#161616)}.cds--tree-leaf-node,:host(cds-tree-node:not([parent]):not([href])){display:flex;padding-inline-start:2.5rem}.cds--tree-leaf-node.cds--tree-node--with-icon{padding-inline-start:2rem}.cds--tree-leaf-node.cds--tree-node--with-icon .cds--tree-leaf-node,.cds--tree-leaf-node.cds--tree-node--with-icon :host(cds-tree-node:not([parent]):not([href])){padding-inline-start:1.5rem}.cds--tree-node__label__details{align-items:center;display:flex;min-inline-size:0}.cds--tree-node--with-icon .cds--tree-parent-node__toggle{margin-inline-end:0}.cds--tree-parent-node__toggle{align-items:center;block-size:1.5rem;border:0;display:flex;inline-size:1.5rem;margin-inline:-.25rem .25rem;padding-inline-start:.25rem}.cds--tree-parent-node__toggle:hover{cursor:pointer}.cds--tree-parent-node__toggle:focus{outline:none}.cds--tree-parent-node__toggle-icon{fill:var(--cds-icon-secondary,#525252);transform:rotate(-90deg);transition:all .11s cubic-bezier(.2,0,.38,.9)}.cds--tree-parent-node__toggle-icon--expanded{transform:rotate(0)}.cds--tree-node__icon,:host(cds-tree-node:not([href])) ::slotted([slot=icon]){fill:var(--cds-icon-secondary,#525252);margin-inline:.5rem .5rem;min-block-size:1rem;min-inline-size:1rem}.cds--tree-parent-node__toggle+.cds--tree-node__label__details .cds--tree-node__icon,:host(cds-tree-node:not([href])) .cds--tree-parent-node__toggle+.cds--tree-node__label__details ::slotted([slot=icon]){margin-inline-start:.25rem}.cds--tree-node--selected>.cds--tree-node__label,:host(cds-tree-node[selected]:not([href]))>.cds--tree-node__label{background-color:var(--cds-layer-selected-01,#e0e0e0);color:var(--cds-text-primary,#161616)}.cds--tree-node--selected>.cds--tree-node__label:hover,:host(cds-tree-node[selected]:not([href]))>.cds--tree-node__label:hover{background-color:var(--cds-layer-selected-hover-01,#d1d1d1)}.cds--tree-node--selected>.cds--tree-node__label .cds--tree-node__icon,.cds--tree-node--selected>.cds--tree-node__label .cds--tree-parent-node__toggle-icon,:host(cds-tree-node:not([href])) .cds--tree-node--selected>.cds--tree-node__label ::slotted([slot=icon]),:host(cds-tree-node:not([href])):host(cds-tree-node[selected]:not([href]))>.cds--tree-node__label ::slotted([slot=icon]),:host(cds-tree-node[selected]:not([href]))>.cds--tree-node__label .cds--tree-node__icon,:host(cds-tree-node[selected]:not([href]))>.cds--tree-node__label .cds--tree-parent-node__toggle-icon{fill:var(--cds-icon-primary,#161616)}.cds--tree-node--active>.cds--tree-node__label,:host(cds-tree-node[active]:not([href]))>.cds--tree-node__label{position:relative}.cds--tree-node--active>.cds--tree-node__label:before,:host(cds-tree-node[active]:not([href]))>.cds--tree-node__label:before{background-color:var(--cds-interactive,#0f62fe);block-size:100%;content:"";inline-size:.25rem;inset-block-start:0;inset-inline-start:0;position:absolute}.cds--tree--xs .cds--tree-node__label{min-block-size:1.5rem}.cds--tree--xs .cds--tree-node:not(.cds--tree-parent-node) .cds--tree-node__label,.cds--tree--xs :not(.cds--tree-parent-node):host(cds-tree-node:not([href])) .cds--tree-node__label{padding:0}.cds--tree--xs .cds--tree-parent-node__toggle{margin-block-start:0}.cds--tree-node__label__text{display:block;font-size:var(--cds-body-compact-01-font-size,.875rem);font-weight:var(--cds-body-compact-01-font-weight,400);letter-spacing:var(--cds-body-compact-01-letter-spacing,.16px);line-height:var(--cds-body-compact-01-line-height,1.28572);line-height:1.2;overflow:hidden;padding-inline-start:.25rem;text-overflow:ellipsis;white-space:nowrap}.cds--tree-node__label .cds--icon-tooltip{inline-size:100%}.cds--tree-node__label .cds--icon-tooltip .cds--btn--icon-only{background:transparent;block-size:auto;border:none;color:inherit;inline-size:100%;min-block-size:unset;padding:0;text-align:start}.cds--tree-node__label .cds--icon-tooltip .cds--btn--icon-only .cds--tree-node__label__text{color:inherit;inline-size:100%}.cds--tree-node__label .cds--tooltip-content{padding:1rem}.cds--tree-node__label .cds--popover-container{inline-size:100%}.cds--tooltip-trigger__wrapper .cds--btn--ghost:focus{box-shadow:none;outline:2px solid var(--cds-focus,#0f62fe)}:host(cds-tree-view){display:block}:host(cds-tree-node){box-sizing:border-box;display:list-item}:host(cds-tree-node) .cds--tree-node__label{box-sizing:inherit}:host(cds-tree-node) .cds--tree-node__hidden{display:none}:host(cds-tree-node) .cds--tree-parent-node__toggle{box-sizing:inherit}:host(cds-tree-node:focus-visible){outline:none}:host(cds-tree-node:focus-visible) .cds--tree-node__label{outline:2px solid var(--cds-focus,#0f62fe);outline-offset:-2px}@media screen and (prefers-contrast){:host(cds-tree-node:focus-visible) .cds--tree-node__label{outline-style:dotted}}:host(cds-tree-node:not([parent]):not([href])) .cds--tree-node__label{padding-block:.4375rem}:host(cds-tree-node[href]) .cds--tree-node,:host(cds-tree-node[href]) :host(cds-tree-node:not([href])){box-sizing:inherit}:host(cds-tree-node[href]) .cds--tree-node__label{padding-block:0}:host(cds-tree-node[has-icon]:not([parent]:not([href]))){padding-inline-start:2rem}:host(cds-tree-node[has-icon]:not([href])){padding-inline-start:.5rem}:host(cds-tree-node[has-icon]:not([href])) .cds--tree-parent-node__toggle{margin-inline-end:0}:host(cds-tree-node[has-icon][parent]:not([href])){padding-inline-start:1rem}:host(cds-tree-node[has-icon]:not([href])) ::slotted(cds-tree-node){margin-inline-start:.5rem}:host(cds-tree-node:not([href])[size=xs]) .cds--tree-node__label{min-block-size:1.5rem}:host(cds-tree-node:not([href])[size=xs]) .cds--tree-parent-node__toggle{margin-block-start:0}:host(cds-tree-node:not([href])[size=xs]:not([parent])) .cds--tree-node__label{padding:0}:host(cds-tree-node[href]) a{text-decoration:none}']);
|
|
29
|
-
/**
|
|
30
|
-
* @license
|
|
31
|
-
*
|
|
32
|
-
* Copyright IBM Corp. 2025, 2025
|
|
33
|
-
*
|
|
34
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
35
|
-
* LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/
|
|
37
|
-
let c = class extends $ {
|
|
38
|
-
constructor() {
|
|
39
|
-
super(...arguments), this._hasChildren = !1, this._hasIcon = !1, this._handleStyles = () => {
|
|
40
|
-
const { _depth: e, _hasChildren: s, _hasIcon: t } = this, o = () => s && t ? e + 1 + e * 0.5 : s ? e + 1 : t ? e + 2 + e * 0.5 : e + 2.5, d = this.shadowRoot.querySelector(`.${r}--tree-node__label`);
|
|
41
|
-
d && (d.style.marginInlineStart = `-${o()}rem`, d.style.paddingInlineStart = `${o()}rem`);
|
|
42
|
-
}, this._handleToggleClick = (e) => {
|
|
43
|
-
const { disabled: s, href: t } = this;
|
|
44
|
-
s || (e.stopPropagation(), t && e.preventDefault(), this.isExpanded = !this.isExpanded, this.hasAttribute("aria-expanded") && this.setAttribute("aria-expanded", String(this.isExpanded)));
|
|
45
|
-
}, this.active = !1, this.disabled = !1, this._depth = 0, this.isExpanded = !1, this.id = Math.random().toString(16).slice(2), this.selected = !1;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Handles `slotchange` event.
|
|
49
|
-
*/
|
|
50
|
-
_handleSlotChange({ target: e }) {
|
|
51
|
-
const { _depth: s, disabled: t } = this, o = e.assignedNodes().filter((d) => d.nodeType === Node.ELEMENT_NODE && d.tagName.toLowerCase() === `${r}-tree-node`);
|
|
52
|
-
o.forEach((d) => {
|
|
53
|
-
d._depth = s + 1, d.disabled = t;
|
|
54
|
-
}), this._hasChildren = o.length > 0, this._hasChildren && this.setAttribute("parent", ""), this.requestUpdate();
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Handles icon's `slotchange` event.
|
|
58
|
-
*/
|
|
59
|
-
_handleIconSlotChange({ target: e }) {
|
|
60
|
-
this._hasIcon = e.assignedNodes().length > 0, this._hasIcon && this.setAttribute("has-icon", ""), this.requestUpdate();
|
|
61
|
-
}
|
|
62
|
-
connectedCallback() {
|
|
63
|
-
super.connectedCallback(), this._hasChildren = Array.from(this.children).some((e) => e.tagName.toLowerCase() === `${r}-tree-node`), this._hasIcon = Array.from(this.children).some((e) => e.getAttribute("slot") === "icon"), !this.hasAttribute("role") && !this.href && this.setAttribute("role", "treeitem"), this._hasChildren && !this.href && this.setAttribute("aria-expanded", String(this.isExpanded)), this.hasAttribute("aria-label") || this.setAttribute("aria-label", this.label);
|
|
64
|
-
}
|
|
65
|
-
_dispatchSelectedEvent(e) {
|
|
66
|
-
const { eventSelected: s } = this.constructor;
|
|
67
|
-
this.dispatchEvent(new CustomEvent(s, {
|
|
68
|
-
bubbles: !0,
|
|
69
|
-
composed: !0,
|
|
70
|
-
detail: {
|
|
71
|
-
value: e
|
|
72
|
-
}
|
|
73
|
-
}));
|
|
74
|
-
}
|
|
75
|
-
_dispatchToggledEvent(e, s) {
|
|
76
|
-
const { eventToggled: t } = this.constructor;
|
|
77
|
-
this.dispatchEvent(new CustomEvent(t, {
|
|
78
|
-
bubbles: !0,
|
|
79
|
-
composed: !0,
|
|
80
|
-
detail: {
|
|
81
|
-
value: e,
|
|
82
|
-
expanded: s
|
|
83
|
-
}
|
|
84
|
-
}));
|
|
85
|
-
}
|
|
86
|
-
updated(e) {
|
|
87
|
-
e.has("_depth") && this._handleStyles(), e.has("selected") && (this.href || this.setAttribute("aria-selected", String(this.href || this.disabled ? void 0 : this.selected)), this.selected && this._dispatchSelectedEvent(this.label)), e.has("active") && !this.href && this.setAttribute("aria-current", String(this.href ? this.active ? "page" : void 0 : this.active || void 0)), e.has("disabled") && this.setAttribute("aria-disabled", String(this.disabled)), e.has("isExpanded") && this._dispatchToggledEvent(this.label, this.isExpanded);
|
|
88
|
-
}
|
|
89
|
-
render() {
|
|
90
|
-
const { disabled: e, isExpanded: s, href: t, id: o, label: d, onClick: n, _hasChildren: l, _handleIconSlotChange: i, _handleSlotChange: h, _handleToggleClick: _ } = this;
|
|
91
|
-
let g = `${r}--tree-parent-node__toggle-icon`;
|
|
92
|
-
s && (g += `${r}--tree-parent-node__toggle-icon--expanded`);
|
|
93
|
-
const x = v({
|
|
94
|
-
[`${r}--tree-node`]: !0,
|
|
95
|
-
[`${r}--tree-node--active`]: this.active,
|
|
96
|
-
[`${r}--tree-node--disabled`]: e,
|
|
97
|
-
[`${r}--tree-node--selected`]: this.selected,
|
|
98
|
-
[`${r}--tree-node--with-icon`]: this._hasIcon,
|
|
99
|
-
[`${r}--tree-leaf-node`]: !this._hasChildren,
|
|
100
|
-
[`${r}--tree-parent-node`]: this._hasChildren
|
|
101
|
-
}), w = v({
|
|
102
|
-
[`${r}--tree-node__children`]: !0,
|
|
103
|
-
[`${r}--tree-node__hidden`]: !s
|
|
104
|
-
});
|
|
105
|
-
return b`
|
|
106
|
-
${l ? b`
|
|
107
|
-
${t ? b` <a
|
|
108
|
-
role="treeitem"
|
|
109
|
-
class=${x}
|
|
110
|
-
aria-expanded=${!!s}
|
|
111
|
-
aria-owns="subtree-id-${o}"
|
|
112
|
-
href=${e ? void 0 : t}
|
|
113
|
-
tabindex=${e ? -1 : void 0}
|
|
114
|
-
@click=${n}>
|
|
115
|
-
<div id="label" class="${r}--tree-node__label">
|
|
116
|
-
<span
|
|
117
|
-
class="${r}--tree-parent-node__toggle"
|
|
118
|
-
?disabled=${e}
|
|
119
|
-
@click=${_}>
|
|
120
|
-
${k(z, { class: g })}
|
|
121
|
-
</span>
|
|
122
|
-
<span class="${r}--tree-node__label__details">
|
|
123
|
-
<slot
|
|
124
|
-
name="icon"
|
|
125
|
-
@slotchange=${i}></slot>
|
|
126
|
-
${d}
|
|
127
|
-
</span>
|
|
128
|
-
</div>
|
|
129
|
-
</a>
|
|
130
|
-
<ul
|
|
131
|
-
id="subtree-id-${o}"
|
|
132
|
-
role="group"
|
|
133
|
-
class="${w}">
|
|
134
|
-
<slot @slotchange=${h}></slot>
|
|
135
|
-
</ul>` : b`<div id="label" class="${r}--tree-node__label">
|
|
136
|
-
<span
|
|
137
|
-
class="${r}--tree-parent-node__toggle"
|
|
138
|
-
?disabled=${e}
|
|
139
|
-
@click=${_}>
|
|
140
|
-
${k(z, { class: g })}
|
|
141
|
-
</span>
|
|
142
|
-
<span class="${r}--tree-node__label__details">
|
|
143
|
-
<slot
|
|
144
|
-
name="icon"
|
|
145
|
-
@slotchange=${i}></slot>
|
|
146
|
-
${d}
|
|
147
|
-
</span>
|
|
148
|
-
</div>
|
|
149
|
-
<ul
|
|
150
|
-
id="subtree-id-${o}"
|
|
151
|
-
role="group"
|
|
152
|
-
class="${w}">
|
|
153
|
-
<slot @slotchange=${h}></slot>
|
|
154
|
-
</ul>`}
|
|
155
|
-
` : b`
|
|
156
|
-
${t ? b`<a
|
|
157
|
-
class=${x}
|
|
158
|
-
href=${e ? void 0 : t}
|
|
159
|
-
role="treeitem"
|
|
160
|
-
?aria-disabled=${e}
|
|
161
|
-
aria-current=${this.href ? this.active ? "page" : void 0 : this.active || void 0}
|
|
162
|
-
tabindex=${e ? -1 : void 0}
|
|
163
|
-
@click=${n}>
|
|
164
|
-
<div id="label" class="${r}--tree-node__label">
|
|
165
|
-
<slot
|
|
166
|
-
name="icon"
|
|
167
|
-
@slotchange=${i}></slot>
|
|
168
|
-
${d}
|
|
169
|
-
</div>
|
|
170
|
-
</a>` : b` <div id="label" class="${r}--tree-node__label">
|
|
171
|
-
<slot name="icon" @slotchange=${i}></slot>
|
|
172
|
-
${d}
|
|
173
|
-
</div>`}
|
|
174
|
-
`}
|
|
175
|
-
`;
|
|
176
|
-
}
|
|
177
|
-
/**
|
|
178
|
-
* The name of the custom event fired when node is selected.
|
|
179
|
-
*/
|
|
180
|
-
static get eventSelected() {
|
|
181
|
-
return `${r}-tree-node-selected`;
|
|
182
|
-
}
|
|
183
|
-
/**
|
|
184
|
-
* The name of the custom event fired when a node is toggled
|
|
185
|
-
*/
|
|
186
|
-
static get eventToggled() {
|
|
187
|
-
return `${r}-tree-node-toggled`;
|
|
188
|
-
}
|
|
189
|
-
};
|
|
190
|
-
c.styles = q;
|
|
191
|
-
a([
|
|
192
|
-
f({ type: Boolean, reflect: !0 })
|
|
193
|
-
], c.prototype, "active", void 0);
|
|
194
|
-
a([
|
|
195
|
-
f({ type: Boolean, reflect: !0 })
|
|
196
|
-
], c.prototype, "disabled", void 0);
|
|
197
|
-
a([
|
|
198
|
-
E()
|
|
199
|
-
], c.prototype, "_depth", void 0);
|
|
200
|
-
a([
|
|
201
|
-
f({ type: Boolean, attribute: "is-expanded" })
|
|
202
|
-
], c.prototype, "isExpanded", void 0);
|
|
203
|
-
a([
|
|
204
|
-
f({})
|
|
205
|
-
], c.prototype, "href", void 0);
|
|
206
|
-
a([
|
|
207
|
-
f({})
|
|
208
|
-
], c.prototype, "id", void 0);
|
|
209
|
-
a([
|
|
210
|
-
f({})
|
|
211
|
-
], c.prototype, "label", void 0);
|
|
212
|
-
a([
|
|
213
|
-
f({ type: Boolean, reflect: !0 })
|
|
214
|
-
], c.prototype, "selected", void 0);
|
|
215
|
-
a([
|
|
216
|
-
f({ type: Function })
|
|
217
|
-
], c.prototype, "onClick", void 0);
|
|
218
|
-
c = a([
|
|
219
|
-
S(`${r}-tree-node`)
|
|
220
|
-
], c);
|
|
221
|
-
/**
|
|
222
|
-
* @license
|
|
223
|
-
*
|
|
224
|
-
* Copyright IBM Corp. 2025, 2025
|
|
225
|
-
*
|
|
226
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
227
|
-
* LICENSE file in the root directory of this source tree.
|
|
228
|
-
*/
|
|
229
|
-
var y;
|
|
230
|
-
(function(m) {
|
|
231
|
-
m.SMALL = "sm", m.EXTRA_SMALL = "xs";
|
|
232
|
-
})(y || (y = {}));
|
|
233
|
-
/**
|
|
234
|
-
* @license
|
|
235
|
-
*
|
|
236
|
-
* Copyright IBM Corp. 2025, 2025
|
|
237
|
-
*
|
|
238
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
239
|
-
* LICENSE file in the root directory of this source tree.
|
|
240
|
-
*/
|
|
241
|
-
var u;
|
|
242
|
-
let p = u = class extends T($) {
|
|
243
|
-
constructor() {
|
|
244
|
-
super(...arguments), this.hideLabel = !1, this.size = y.SMALL, this._click = ({ target: e }) => {
|
|
245
|
-
if (e.disabled)
|
|
246
|
-
return;
|
|
247
|
-
this.querySelectorAll(u.selectorTreeNode).forEach((t) => {
|
|
248
|
-
var o;
|
|
249
|
-
const d = t === e, n = t.hasAttribute("href"), l = n ? (o = t.shadowRoot) === null || o === void 0 ? void 0 : o.querySelector("a") : t;
|
|
250
|
-
t.selected = d, t.active = d, d ? l.setAttribute("tabindex", "0") : n ? l.setAttribute("tabindex", "-1") : l.removeAttribute("tabindex");
|
|
251
|
-
});
|
|
252
|
-
}, this._handleKeyDown = (e) => {
|
|
253
|
-
const { key: s } = e, t = Array.from(this.querySelectorAll(u.selectorTreeNode)).filter((i) => i.checkVisibility() && !i.hasAttribute("disabled")), o = Array.from(this.querySelectorAll(u.selectorTreeNode)).filter((i) => !i.hasAttribute("disabled")), d = t[0].href, n = t.findIndex((i) => {
|
|
254
|
-
var h;
|
|
255
|
-
return d ? (
|
|
256
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- https://github.com/carbon-design-system/carbon/issues/20452
|
|
257
|
-
((h = i.shadowRoot) === null || h === void 0 ? void 0 : h.querySelector("a").getAttribute("tabindex")) === "0"
|
|
258
|
-
) : i.getAttribute("tabindex") === "0";
|
|
259
|
-
});
|
|
260
|
-
let l = n;
|
|
261
|
-
switch (s) {
|
|
262
|
-
case "ArrowDown":
|
|
263
|
-
l = Math.min(n + 1, t.length - 1);
|
|
264
|
-
break;
|
|
265
|
-
case "ArrowUp":
|
|
266
|
-
l = Math.max(n - 1, 0);
|
|
267
|
-
break;
|
|
268
|
-
case "Home":
|
|
269
|
-
l = 0;
|
|
270
|
-
break;
|
|
271
|
-
case "End":
|
|
272
|
-
l = t.length - 1;
|
|
273
|
-
break;
|
|
274
|
-
case "Enter":
|
|
275
|
-
case " ":
|
|
276
|
-
e.preventDefault(), o.forEach((i) => {
|
|
277
|
-
i.selected = !1, i.active = !1;
|
|
278
|
-
}), t[n].selected = !0, t[n].active = !0;
|
|
279
|
-
break;
|
|
280
|
-
case "ArrowRight":
|
|
281
|
-
t[n].hasAttribute("parent") && (t[n].isExpanded = !0, t[n].setAttribute("aria-expanded", "true"));
|
|
282
|
-
break;
|
|
283
|
-
case "ArrowLeft":
|
|
284
|
-
if (t[n].hasAttribute("parent"))
|
|
285
|
-
t[n].isExpanded = !1, t[n].setAttribute("aria-expanded", "false");
|
|
286
|
-
else {
|
|
287
|
-
const i = t.findIndex((h) => h === t[n].parentElement);
|
|
288
|
-
l = i === -1 ? n : i;
|
|
289
|
-
}
|
|
290
|
-
break;
|
|
291
|
-
}
|
|
292
|
-
if (l !== n) {
|
|
293
|
-
t.forEach((h) => {
|
|
294
|
-
var _;
|
|
295
|
-
d ? (_ = h.shadowRoot) === null || _ === void 0 || _.querySelector("a").setAttribute("tabindex", "-1") : h.removeAttribute("tabindex");
|
|
296
|
-
});
|
|
297
|
-
const i = d ? (
|
|
298
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- https://github.com/carbon-design-system/carbon/issues/20452
|
|
299
|
-
t[l].shadowRoot.querySelector("a")
|
|
300
|
-
) : t[l];
|
|
301
|
-
i.setAttribute("tabindex", "0"), i.focus(), e.preventDefault();
|
|
302
|
-
}
|
|
303
|
-
};
|
|
304
|
-
}
|
|
305
|
-
async _setInitialFocus() {
|
|
306
|
-
await this.updateComplete;
|
|
307
|
-
const e = this.querySelectorAll(u.selectorTreeNode);
|
|
308
|
-
if (e.length > 0) {
|
|
309
|
-
const s = Array.from(e).find((o) => o.selected) || e[0];
|
|
310
|
-
(s.href ? (
|
|
311
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- https://github.com/carbon-design-system/carbon/issues/20452
|
|
312
|
-
s.shadowRoot.querySelector("a")
|
|
313
|
-
) : s).setAttribute("tabindex", "0");
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
connectedCallback() {
|
|
317
|
-
super.connectedCallback(), this.hasAttribute("role") || this.setAttribute("role", "tree"), this.hasAttribute("aria-label") || this.setAttribute("aria-label", this.label);
|
|
318
|
-
}
|
|
319
|
-
updated(e) {
|
|
320
|
-
this._setInitialFocus(), e.has("size") && this.querySelectorAll(u.selectorTreeNode).forEach((t) => {
|
|
321
|
-
t.setAttribute("size", this.size);
|
|
322
|
-
});
|
|
323
|
-
}
|
|
324
|
-
render() {
|
|
325
|
-
const { hideLabel: e, label: s, size: t } = this, o = "tree-view__label", d = v({
|
|
326
|
-
[`${r}--tree`]: !0,
|
|
327
|
-
[`${r}--tree--${t}`]: t
|
|
328
|
-
});
|
|
329
|
-
return b`
|
|
330
|
-
${e ? null : b`<label id=${o} class=${`${r}--label`}
|
|
331
|
-
>${s}
|
|
332
|
-
</label>`}
|
|
333
|
-
<ul
|
|
334
|
-
aria-label=${e ? s : void 0}
|
|
335
|
-
aria-labelledby=${e ? void 0 : o}
|
|
336
|
-
class=${d}
|
|
337
|
-
role="tree">
|
|
338
|
-
<slot><slot>
|
|
339
|
-
</ul>
|
|
340
|
-
`;
|
|
341
|
-
}
|
|
342
|
-
static get selectorTreeNode() {
|
|
343
|
-
return `${r}-tree-node`;
|
|
344
|
-
}
|
|
345
|
-
};
|
|
346
|
-
p.styles = q;
|
|
347
|
-
a([
|
|
348
|
-
f({ type: Boolean, attribute: "hide-label" })
|
|
349
|
-
], p.prototype, "hideLabel", void 0);
|
|
350
|
-
a([
|
|
351
|
-
f()
|
|
352
|
-
], p.prototype, "label", void 0);
|
|
353
|
-
a([
|
|
354
|
-
f({ reflect: !0 })
|
|
355
|
-
], p.prototype, "size", void 0);
|
|
356
|
-
a([
|
|
357
|
-
A("click")
|
|
358
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- https://github.com/carbon-design-system/carbon/issues/20452
|
|
359
|
-
// @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to
|
|
360
|
-
], p.prototype, "_click", void 0);
|
|
361
|
-
a([
|
|
362
|
-
A("keydown")
|
|
363
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- https://github.com/carbon-design-system/carbon/issues/20452
|
|
364
|
-
// @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to
|
|
365
|
-
], p.prototype, "_handleKeyDown", void 0);
|
|
366
|
-
p = u = a([
|
|
367
|
-
S(`${r}-tree-view`)
|
|
368
|
-
], p);
|