@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,1383 +0,0 @@
|
|
|
1
|
-
import { g as r, D as S, c as p, C as D } from "./main-DTOZMPON.js";
|
|
2
|
-
const T = () => import("./index-BwOJ4JFm.js"), N = (t, e, s) => {
|
|
3
|
-
const n = e.getAttribute("selection-event") || s.event;
|
|
4
|
-
n && t.listen(e, "cds-table-row-change-selection", (a) => {
|
|
5
|
-
t.dispatchPanelEvent(n, {
|
|
6
|
-
...s,
|
|
7
|
-
selected: a.detail.selected,
|
|
8
|
-
rowId: a.target.id
|
|
9
|
-
});
|
|
10
|
-
});
|
|
11
|
-
const o = e.getAttribute("select-all-event");
|
|
12
|
-
o && t.listen(e, "cds-table-change-selection-all", (a) => {
|
|
13
|
-
t.dispatchPanelEvent(o, {
|
|
14
|
-
...s,
|
|
15
|
-
selected: a.detail.selected
|
|
16
|
-
});
|
|
17
|
-
});
|
|
18
|
-
const i = e.getAttribute("row-selected-event");
|
|
19
|
-
i && t.listen(e, "cds-table-row-selected", (a) => {
|
|
20
|
-
t.dispatchPanelEvent(i, {
|
|
21
|
-
...s,
|
|
22
|
-
selectedRows: a.detail.selectedRows || []
|
|
23
|
-
});
|
|
24
|
-
});
|
|
25
|
-
const c = e.getAttribute("all-selected-event");
|
|
26
|
-
c && t.listen(e, "cds-table-row-all-selected", (a) => {
|
|
27
|
-
t.dispatchPanelEvent(c, {
|
|
28
|
-
...s,
|
|
29
|
-
selected: a.detail.selected
|
|
30
|
-
});
|
|
31
|
-
});
|
|
32
|
-
}, x = (t, e, s) => {
|
|
33
|
-
const n = e.getAttribute("row-click-event");
|
|
34
|
-
n && t.listen(e, "click", (i) => {
|
|
35
|
-
const c = i.target.closest("cds-table-row");
|
|
36
|
-
if (!c || i.target.matches("cds-table-header-cell-checkbox, cds-table-cell-checkbox"))
|
|
37
|
-
return;
|
|
38
|
-
i.stopPropagation();
|
|
39
|
-
const a = r(c);
|
|
40
|
-
t.dispatchPanelEvent(n, {
|
|
41
|
-
...s,
|
|
42
|
-
...a,
|
|
43
|
-
rowId: c.id
|
|
44
|
-
});
|
|
45
|
-
});
|
|
46
|
-
const o = e.getAttribute("expand-event");
|
|
47
|
-
o && t.listen(e, "cds-table-row-expando-toggled", (i) => {
|
|
48
|
-
t.dispatchPanelEvent(o, {
|
|
49
|
-
...s,
|
|
50
|
-
rowId: i.target.id,
|
|
51
|
-
expanded: i.detail.expanded
|
|
52
|
-
});
|
|
53
|
-
});
|
|
54
|
-
}, z = (t, e, s) => {
|
|
55
|
-
const n = e.getAttribute("sort-event");
|
|
56
|
-
n && t.listen(e, "cds-table-header-cell-sort", (i) => {
|
|
57
|
-
t.dispatchPanelEvent(n, {
|
|
58
|
-
...s,
|
|
59
|
-
sortColumn: i.detail.columnId,
|
|
60
|
-
sortDirection: i.detail.sortDirection
|
|
61
|
-
});
|
|
62
|
-
});
|
|
63
|
-
const o = e.getAttribute("sorted-event");
|
|
64
|
-
o && t.listen(e, "cds-table-sorted", (i) => {
|
|
65
|
-
t.dispatchPanelEvent(o, {
|
|
66
|
-
...s,
|
|
67
|
-
sortColumn: i.detail.columnId,
|
|
68
|
-
sortDirection: i.detail.sortDirection
|
|
69
|
-
});
|
|
70
|
-
});
|
|
71
|
-
}, _ = (t, e, s) => {
|
|
72
|
-
const n = e.querySelector("cds-table-batch-actions");
|
|
73
|
-
if (!n)
|
|
74
|
-
return;
|
|
75
|
-
const o = e.getAttribute("batch-cancel-event");
|
|
76
|
-
o && t.listen(n, "cds-table-batch-actions-cancel-clicked", (c) => {
|
|
77
|
-
t.dispatchPanelEvent(o, {
|
|
78
|
-
...s,
|
|
79
|
-
action: "cancel"
|
|
80
|
-
});
|
|
81
|
-
});
|
|
82
|
-
const i = e.getAttribute("batch-select-all-event");
|
|
83
|
-
i && t.listen(n, "cds-table-batch-actions-select-all-clicked", (c) => {
|
|
84
|
-
t.dispatchPanelEvent(i, {
|
|
85
|
-
...s,
|
|
86
|
-
action: "select-all"
|
|
87
|
-
});
|
|
88
|
-
});
|
|
89
|
-
}, M = (t, e, s) => {
|
|
90
|
-
const n = e.querySelector("cds-search");
|
|
91
|
-
if (!n)
|
|
92
|
-
return;
|
|
93
|
-
const o = e.getAttribute("search-event");
|
|
94
|
-
o && t.listen(n, "cds-search-input", (c) => {
|
|
95
|
-
t.dispatchPanelEvent(o, {
|
|
96
|
-
...s,
|
|
97
|
-
searchTerm: c.target.value
|
|
98
|
-
});
|
|
99
|
-
});
|
|
100
|
-
const i = e.getAttribute("filtered-event");
|
|
101
|
-
i && t.listen(e, "cds-table-filtered", (c) => {
|
|
102
|
-
t.dispatchPanelEvent(i, {
|
|
103
|
-
...s,
|
|
104
|
-
searchTerm: c.detail.searchTerm
|
|
105
|
-
});
|
|
106
|
-
});
|
|
107
|
-
}, y = (t) => {
|
|
108
|
-
const e = t.querySelector("cds-table-header-row");
|
|
109
|
-
if (!e) return;
|
|
110
|
-
[...e.children].forEach((n) => {
|
|
111
|
-
n.isSortable && (n.isSortable = !1, n.setAttribute("data-was-sortable", "true"));
|
|
112
|
-
});
|
|
113
|
-
}, g = (t) => {
|
|
114
|
-
const e = t.querySelector("cds-table-header-row");
|
|
115
|
-
if (!e) return;
|
|
116
|
-
[...e.children].forEach((n) => {
|
|
117
|
-
n.getAttribute("data-was-sortable") === "true" && (n.isSortable = !0, n.removeAttribute("data-was-sortable"));
|
|
118
|
-
});
|
|
119
|
-
}, O = (t, e) => {
|
|
120
|
-
if (!e.parentNode) {
|
|
121
|
-
console.error("[Carbon Table] Cannot create skeleton: table has no parent node");
|
|
122
|
-
return;
|
|
123
|
-
}
|
|
124
|
-
const s = document.createElement("cds-table-skeleton");
|
|
125
|
-
s.classList.add("fade-in");
|
|
126
|
-
const n = !!e.querySelector('[slot="title"]'), o = !!e.querySelector('[slot="description"]'), i = !!e.querySelector('cds-table-toolbar, [slot="toolbar"]'), c = e.querySelector("cds-table-header-row");
|
|
127
|
-
s.showHeader = n || o, s.showToolbar = i, s.zebra = e.hasAttribute("zebra"), c && (s.columnCount = c.children.length);
|
|
128
|
-
const a = e.getAttribute("size");
|
|
129
|
-
a && ["xs", "sm", "md", "lg", "xl"].includes(a) && (s.size = a), t.debugMe(
|
|
130
|
-
`[Carbon Table] Skeleton created: columns=${s.columnCount}, showHeader=${s.showHeader}, showToolbar=${s.showToolbar}, size=${s.size || "default"}, zebra=${s.zebra}`
|
|
131
|
-
);
|
|
132
|
-
const l = document.createElement("div");
|
|
133
|
-
return l.style.position = "relative", e.parentNode.insertBefore(l, e), l.appendChild(s), l.appendChild(e), Object.assign(s.style, {
|
|
134
|
-
position: "absolute",
|
|
135
|
-
top: "0",
|
|
136
|
-
left: "0",
|
|
137
|
-
width: "100%",
|
|
138
|
-
zIndex: "0"
|
|
139
|
-
}), Object.assign(e.style, {
|
|
140
|
-
position: "relative",
|
|
141
|
-
zIndex: "1",
|
|
142
|
-
backgroundColor: "transparent"
|
|
143
|
-
}), y(e), console.log("[Carbon Table] Skeleton element:", s), console.log("[Carbon Table] Skeleton in DOM:", document.body.contains(s)), s;
|
|
144
|
-
}, q = (t, e, s) => {
|
|
145
|
-
e.addEventListener("cds-table-header-cell-sort", (n) => {
|
|
146
|
-
n.stopPropagation(), n.preventDefault();
|
|
147
|
-
const i = [...e.querySelector("cds-table-header-row").children], c = i.indexOf(n.target), a = n.target.getAttribute("data-sort-field") || n.target.textContent.trim();
|
|
148
|
-
i.forEach((m, b) => {
|
|
149
|
-
b === c ? (m.setAttribute("sort-active", "true"), m.setAttribute("sort-direction", n.detail.sortDirection)) : (m.removeAttribute("sort-active"), m.setAttribute("sort-direction", "none"));
|
|
150
|
-
}), y(e);
|
|
151
|
-
const u = { ordering: n.detail.sortDirection === "descending" ? `-${a}` : a }, d = e.getAttribute("data-page-size");
|
|
152
|
-
d && (u.limit = parseInt(d, 10)), s.load(u).then(() => {
|
|
153
|
-
g(e);
|
|
154
|
-
}).catch((m) => {
|
|
155
|
-
console.error("[Carbon Table] Sort load failed:", m), g(e);
|
|
156
|
-
});
|
|
157
|
-
}, { capture: !0 });
|
|
158
|
-
}, R = (t, e, s) => {
|
|
159
|
-
const n = e.querySelector("cds-search");
|
|
160
|
-
n && t.listen(n, "cds-search-input", (o) => {
|
|
161
|
-
const i = { q: o.target.value }, c = e.getAttribute("data-page-size");
|
|
162
|
-
c && (i.limit = parseInt(c, 10)), s.load(i).catch((a) => {
|
|
163
|
-
console.error("[Carbon Table] Search load failed:", a);
|
|
164
|
-
});
|
|
165
|
-
});
|
|
166
|
-
}, B = (t, e, s) => {
|
|
167
|
-
const n = e.getAttribute("data-api-url"), o = e.getAttribute("data-template");
|
|
168
|
-
if (!n || !o)
|
|
169
|
-
return;
|
|
170
|
-
const i = e.querySelector("cds-table-body");
|
|
171
|
-
if (!i) {
|
|
172
|
-
console.warn("[Carbon Table] DataBinder table missing cds-table-body");
|
|
173
|
-
return;
|
|
174
|
-
}
|
|
175
|
-
try {
|
|
176
|
-
const c = O(t, e), a = new S({
|
|
177
|
-
url: n,
|
|
178
|
-
template: o,
|
|
179
|
-
container: i,
|
|
180
|
-
dataPath: e.getAttribute("data-path"),
|
|
181
|
-
fetchFn: (d) => t.user.fetchJson(d, t.abortController.signal)
|
|
182
|
-
});
|
|
183
|
-
q(t, e, a), R(t, e, a);
|
|
184
|
-
const l = e.getAttribute("data-page-size"), u = l ? { limit: parseInt(l, 10) } : {};
|
|
185
|
-
a.load(u).then(() => {
|
|
186
|
-
c && (c.style.display = "none"), g(e);
|
|
187
|
-
}).catch((d) => {
|
|
188
|
-
console.error("[Carbon Table] Initial load failed:", d), c && (c.style.display = "none"), g(e);
|
|
189
|
-
}), e.dataBinder = a, t.debugMe(`[Carbon Table] DataBinder initialized for table: ${e.id || "(no id)"}`);
|
|
190
|
-
} catch (c) {
|
|
191
|
-
console.error("[Carbon Table] Failed to initialize DataBinder:", c);
|
|
192
|
-
}
|
|
193
|
-
}, F = {
|
|
194
|
-
selector: "cds-table",
|
|
195
|
-
import: T,
|
|
196
|
-
/**
|
|
197
|
-
* Initialize the table component with event handlers and optional DataBinder.
|
|
198
|
-
* @param {HTMLElement} table - The cds-table element
|
|
199
|
-
*/
|
|
200
|
-
init: function(t) {
|
|
201
|
-
const e = r(t);
|
|
202
|
-
N(this, t, e), x(this, t, e), z(this, t, e), _(this, t, e), M(this, t, e), B(this, t);
|
|
203
|
-
}
|
|
204
|
-
}, v = () => import("./index-GRYR4d36.js"), U = {
|
|
205
|
-
selector: "cds-modal",
|
|
206
|
-
import: v,
|
|
207
|
-
init: function(t) {
|
|
208
|
-
const e = r(t), s = p(t, "open-event", "event");
|
|
209
|
-
s && this.listen(t, "cds-modal-beingopened", (i) => {
|
|
210
|
-
this.dispatchPanelEvent(s, {
|
|
211
|
-
...e,
|
|
212
|
-
action: "opened"
|
|
213
|
-
});
|
|
214
|
-
});
|
|
215
|
-
const n = t.getAttribute("before-close-event");
|
|
216
|
-
n && this.listen(t, "cds-modal-beingclosed", (i) => {
|
|
217
|
-
this.dispatchPanelEvent(n, {
|
|
218
|
-
...e,
|
|
219
|
-
action: "closing",
|
|
220
|
-
cancelable: !0
|
|
221
|
-
});
|
|
222
|
-
}), this.listen(t, "cds-modal-closed", (i) => {
|
|
223
|
-
this.dispatchPanelEvent("destroy_me", {
|
|
224
|
-
...e,
|
|
225
|
-
action: "closed",
|
|
226
|
-
triggeredBy: i.detail?.triggeredBy
|
|
227
|
-
});
|
|
228
|
-
});
|
|
229
|
-
const o = p(t, "primary-event", "event");
|
|
230
|
-
o && this.listen(t, "cds-modal-primary-focus", (i) => {
|
|
231
|
-
this.dispatchPanelEvent(o, {
|
|
232
|
-
...e,
|
|
233
|
-
action: "primary"
|
|
234
|
-
});
|
|
235
|
-
});
|
|
236
|
-
}
|
|
237
|
-
}, $ = {
|
|
238
|
-
"cds-modal-header": {
|
|
239
|
-
import: v
|
|
240
|
-
// No event handling - presentational header wrapper
|
|
241
|
-
},
|
|
242
|
-
"cds-modal-heading": {
|
|
243
|
-
import: v
|
|
244
|
-
// No event handling - presentational heading element
|
|
245
|
-
},
|
|
246
|
-
"cds-modal-label": {
|
|
247
|
-
import: v
|
|
248
|
-
// No event handling - presentational label element
|
|
249
|
-
},
|
|
250
|
-
"cds-modal-close-button": {
|
|
251
|
-
import: v
|
|
252
|
-
// No event handling - close button handled by modal itself via data-modal-close
|
|
253
|
-
},
|
|
254
|
-
"cds-modal-body": {
|
|
255
|
-
import: v
|
|
256
|
-
// No event handling - presentational body wrapper
|
|
257
|
-
},
|
|
258
|
-
"cds-modal-body-content": {
|
|
259
|
-
import: v
|
|
260
|
-
// No event handling - presentational content wrapper
|
|
261
|
-
},
|
|
262
|
-
"cds-modal-footer": {
|
|
263
|
-
import: v
|
|
264
|
-
// No event handling - presentational footer wrapper
|
|
265
|
-
},
|
|
266
|
-
"cds-modal-footer-button": {
|
|
267
|
-
import: v,
|
|
268
|
-
init: function(t) {
|
|
269
|
-
const e = r(t);
|
|
270
|
-
if (t.getAttribute("type") === "submit") {
|
|
271
|
-
this.listen(t, "click", (o) => {
|
|
272
|
-
let i = t.closest("form");
|
|
273
|
-
if (!i) {
|
|
274
|
-
const c = t.getAttribute("form");
|
|
275
|
-
c && (i = document.getElementById(c));
|
|
276
|
-
}
|
|
277
|
-
i && i.requestSubmit();
|
|
278
|
-
});
|
|
279
|
-
return;
|
|
280
|
-
}
|
|
281
|
-
const n = e.event;
|
|
282
|
-
n && this.listen(t, "click", (o) => {
|
|
283
|
-
o.stopPropagation(), this.dispatchPanelEvent(n, e);
|
|
284
|
-
});
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
}, k = () => import("./index-BKsBoGOO.js"), j = {
|
|
288
|
-
selector: "cds-menu",
|
|
289
|
-
import: k,
|
|
290
|
-
init: function(t) {
|
|
291
|
-
const e = r(t), s = p(t, "open-event");
|
|
292
|
-
s && this.listen(t, "cds-menu-opened", (o) => {
|
|
293
|
-
this.dispatchPanelEvent(s, {
|
|
294
|
-
...e,
|
|
295
|
-
action: "opened"
|
|
296
|
-
});
|
|
297
|
-
});
|
|
298
|
-
const n = p(t, "close-event");
|
|
299
|
-
n && this.listen(t, "cds-menu-closed", (o) => {
|
|
300
|
-
this.dispatchPanelEvent(n, {
|
|
301
|
-
...e,
|
|
302
|
-
action: "closed"
|
|
303
|
-
});
|
|
304
|
-
}), this.listen(t, "click", (o) => {
|
|
305
|
-
if (o.target.tagName === "CDS-MENU-ITEM") {
|
|
306
|
-
const i = r(o.target), c = i.event || e.event;
|
|
307
|
-
c && (o.stopPropagation(), this.dispatchPanelEvent(c, {
|
|
308
|
-
...e,
|
|
309
|
-
...i
|
|
310
|
-
}));
|
|
311
|
-
}
|
|
312
|
-
}), this.listen(t, "cds-item-changed", (o) => {
|
|
313
|
-
const i = o.detail.triggeredBy, c = r(i), a = c.event || e.event;
|
|
314
|
-
a && this.dispatchPanelEvent(a, {
|
|
315
|
-
...e,
|
|
316
|
-
...c,
|
|
317
|
-
action: "selection-changed"
|
|
318
|
-
});
|
|
319
|
-
});
|
|
320
|
-
}
|
|
321
|
-
}, H = {
|
|
322
|
-
"cds-menu-button": {
|
|
323
|
-
import: k,
|
|
324
|
-
init: function(t) {
|
|
325
|
-
const e = r(t), s = t.querySelector("cds-menu");
|
|
326
|
-
s && this.listen(s, "click", (n) => {
|
|
327
|
-
if (n.target.tagName === "CDS-MENU-ITEM") {
|
|
328
|
-
const o = r(n.target), i = o.event || e.event;
|
|
329
|
-
i && (n.stopPropagation(), this.dispatchPanelEvent(i, {
|
|
330
|
-
...e,
|
|
331
|
-
...o
|
|
332
|
-
}));
|
|
333
|
-
}
|
|
334
|
-
});
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
}, w = () => import("./index-DXoeeipa.js"), A = () => import("./index-COcNpxlj.js").then((t) => t.i), V = () => import("./index-y_a1ZQAA.js"), L = () => import("./index-C8YWVLB0.js"), G = {
|
|
338
|
-
selector: "cds-button",
|
|
339
|
-
import: w,
|
|
340
|
-
init: function(t) {
|
|
341
|
-
const e = r(t);
|
|
342
|
-
if (t.getAttribute("type") === "submit") {
|
|
343
|
-
this.listen(t, "click", (o) => {
|
|
344
|
-
let i = t.closest("form");
|
|
345
|
-
if (!i) {
|
|
346
|
-
const c = t.getAttribute("form");
|
|
347
|
-
c && (i = document.getElementById(c));
|
|
348
|
-
}
|
|
349
|
-
i && i.requestSubmit();
|
|
350
|
-
});
|
|
351
|
-
return;
|
|
352
|
-
}
|
|
353
|
-
const n = e.event;
|
|
354
|
-
n && this.listen(t, "click", (o) => {
|
|
355
|
-
o.stopPropagation(), this.dispatchPanelEvent(n, e);
|
|
356
|
-
});
|
|
357
|
-
}
|
|
358
|
-
}, J = {
|
|
359
|
-
// Icon Button (non-toggle)
|
|
360
|
-
"cds-icon-button:not([data-toggle])": {
|
|
361
|
-
import: A,
|
|
362
|
-
event: "click",
|
|
363
|
-
getData: (t, e) => e
|
|
364
|
-
},
|
|
365
|
-
// Icon Toggle - Toggles Carbon's built-in isSelected state for ghost icon buttons
|
|
366
|
-
// Visual styling (subtle background change) is handled by Carbon's CSS
|
|
367
|
-
"cds-icon-button[data-toggle]": {
|
|
368
|
-
import: A,
|
|
369
|
-
init: function(t) {
|
|
370
|
-
const e = r(t);
|
|
371
|
-
e.event && this.listen(t, "click", (s) => {
|
|
372
|
-
s.stopPropagation(), t.isSelected = !t.isSelected, this.dispatchPanelEvent(e.event, {
|
|
373
|
-
...e,
|
|
374
|
-
isOn: t.isSelected
|
|
375
|
-
});
|
|
376
|
-
});
|
|
377
|
-
}
|
|
378
|
-
},
|
|
379
|
-
// FAB (Floating Action Button) - just a styled button
|
|
380
|
-
"cds-button[data-fab]": {
|
|
381
|
-
import: w,
|
|
382
|
-
event: "click",
|
|
383
|
-
getData: (t, e) => e
|
|
384
|
-
},
|
|
385
|
-
// Copy Button - Button that copies text to clipboard
|
|
386
|
-
"cds-copy-button": {
|
|
387
|
-
import: L,
|
|
388
|
-
init: function(t) {
|
|
389
|
-
const e = r(t), s = e.event;
|
|
390
|
-
s && this.listen(t, "click", (o) => {
|
|
391
|
-
o.stopPropagation(), this.dispatchPanelEvent(s, {
|
|
392
|
-
...e,
|
|
393
|
-
action: "copy"
|
|
394
|
-
});
|
|
395
|
-
});
|
|
396
|
-
const n = t.getAttribute("success-event");
|
|
397
|
-
if (n) {
|
|
398
|
-
const o = new MutationObserver(() => {
|
|
399
|
-
t.hasAttribute("feedback-shown") && this.dispatchPanelEvent(n, {
|
|
400
|
-
...e,
|
|
401
|
-
action: "copied"
|
|
402
|
-
});
|
|
403
|
-
});
|
|
404
|
-
o.observe(t, {
|
|
405
|
-
attributes: !0,
|
|
406
|
-
attributeFilter: ["feedback-shown"]
|
|
407
|
-
}), t._copyObserver = o;
|
|
408
|
-
}
|
|
409
|
-
}
|
|
410
|
-
},
|
|
411
|
-
// Combo Button - composed of button + menu
|
|
412
|
-
"cds-combo-button": {
|
|
413
|
-
import: V,
|
|
414
|
-
init: function(t) {
|
|
415
|
-
const e = r(t);
|
|
416
|
-
e.event && this.listen(t, "click", (n) => {
|
|
417
|
-
const o = n.composedPath(), i = o.some((a) => a.tagName === "CDS-MENU-ITEM"), c = o.some((a) => a.tagName === "CDS-ICON-BUTTON");
|
|
418
|
-
!i && !c && (n.stopPropagation(), this.dispatchPanelEvent(e.event, {
|
|
419
|
-
...e,
|
|
420
|
-
action: "primary"
|
|
421
|
-
}));
|
|
422
|
-
});
|
|
423
|
-
const s = t.querySelector("cds-menu");
|
|
424
|
-
s && this.listen(s, "click", (n) => {
|
|
425
|
-
if (n.target.tagName === "CDS-MENU-ITEM") {
|
|
426
|
-
const o = r(n.target), i = o.event || p(t, "menu-event", "event");
|
|
427
|
-
i && this.dispatchPanelEvent(i, {
|
|
428
|
-
...e,
|
|
429
|
-
...o,
|
|
430
|
-
action: "menu-item"
|
|
431
|
-
});
|
|
432
|
-
}
|
|
433
|
-
});
|
|
434
|
-
}
|
|
435
|
-
}
|
|
436
|
-
}, W = () => import("./index-BJHILyIN.js"), Z = () => import("./index-BAMMtRO9.js"), K = () => import("./index-ZyhwV5v-.js"), Q = {
|
|
437
|
-
selector: "cds-dropdown",
|
|
438
|
-
import: W,
|
|
439
|
-
init: function(t) {
|
|
440
|
-
const e = r(t), s = e.event;
|
|
441
|
-
s && this.listen(t, "cds-dropdown-selected", (o) => {
|
|
442
|
-
this.dispatchPanelEvent(s, {
|
|
443
|
-
...e,
|
|
444
|
-
value: t.value,
|
|
445
|
-
selectedValue: o.detail?.item?.value,
|
|
446
|
-
selectedText: o.detail?.item?.textContent?.trim()
|
|
447
|
-
});
|
|
448
|
-
});
|
|
449
|
-
const n = t.getAttribute("toggle-event");
|
|
450
|
-
n && this.listen(t, "cds-dropdown-toggled", (o) => {
|
|
451
|
-
this.dispatchPanelEvent(n, {
|
|
452
|
-
...e,
|
|
453
|
-
open: t.hasAttribute("open")
|
|
454
|
-
});
|
|
455
|
-
});
|
|
456
|
-
}
|
|
457
|
-
}, X = {
|
|
458
|
-
// Combo Box
|
|
459
|
-
"cds-combo-box": {
|
|
460
|
-
import: Z,
|
|
461
|
-
init: function(t) {
|
|
462
|
-
const e = r(t), s = e.event;
|
|
463
|
-
s && this.listen(t, "cds-combo-box-selected", (o) => {
|
|
464
|
-
const i = o.detail?.item;
|
|
465
|
-
this.dispatchPanelEvent(s, {
|
|
466
|
-
...e,
|
|
467
|
-
value: t.value,
|
|
468
|
-
selectedValue: i?.value,
|
|
469
|
-
selectedText: i?.textContent?.trim()
|
|
470
|
-
});
|
|
471
|
-
});
|
|
472
|
-
const n = t.getAttribute("toggle-event");
|
|
473
|
-
n && this.listen(t, "cds-combo-box-toggled", (o) => {
|
|
474
|
-
this.dispatchPanelEvent(n, {
|
|
475
|
-
...e,
|
|
476
|
-
open: t.hasAttribute("open")
|
|
477
|
-
});
|
|
478
|
-
});
|
|
479
|
-
}
|
|
480
|
-
},
|
|
481
|
-
// Multi Select
|
|
482
|
-
"cds-multi-select": {
|
|
483
|
-
import: K,
|
|
484
|
-
init: function(t) {
|
|
485
|
-
const e = r(t), s = e.event;
|
|
486
|
-
s && this.listen(t, "cds-multi-select-selected", (o) => {
|
|
487
|
-
const i = t.value ? t.value.split(",") : [];
|
|
488
|
-
this.dispatchPanelEvent(s, {
|
|
489
|
-
...e,
|
|
490
|
-
selectedItems: i
|
|
491
|
-
});
|
|
492
|
-
});
|
|
493
|
-
const n = t.getAttribute("toggle-event");
|
|
494
|
-
n && this.listen(t, "cds-multi-select-toggled", (o) => {
|
|
495
|
-
this.dispatchPanelEvent(n, {
|
|
496
|
-
...e,
|
|
497
|
-
open: t.hasAttribute("open")
|
|
498
|
-
});
|
|
499
|
-
});
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
}, Y = () => import("./index-Ci2M9li9.js"), tt = () => import("./index-HvLIPR2y.js"), et = {
|
|
503
|
-
selector: "cds-date-picker",
|
|
504
|
-
import: Y,
|
|
505
|
-
init: function(t) {
|
|
506
|
-
const e = r(t), s = t.querySelector('cds-date-picker-input[kind="from"]'), n = t.querySelector('cds-date-picker-input[kind="to"]'), o = s && n, i = e.event;
|
|
507
|
-
i && this.listen(t, "cds-date-picker-changed", (a) => {
|
|
508
|
-
let l;
|
|
509
|
-
o ? l = {
|
|
510
|
-
from: s.value || "",
|
|
511
|
-
to: n.value || ""
|
|
512
|
-
} : l = t.value, this.dispatchPanelEvent(i, {
|
|
513
|
-
...e,
|
|
514
|
-
value: l
|
|
515
|
-
});
|
|
516
|
-
});
|
|
517
|
-
const c = t.getAttribute("error-event");
|
|
518
|
-
c && this.listen(t, "cds-date-picker-flatpickr-error", (a) => {
|
|
519
|
-
this.dispatchPanelEvent(c, {
|
|
520
|
-
...e,
|
|
521
|
-
error: a.detail
|
|
522
|
-
});
|
|
523
|
-
});
|
|
524
|
-
}
|
|
525
|
-
}, nt = {
|
|
526
|
-
"cds-time-picker": {
|
|
527
|
-
import: tt,
|
|
528
|
-
event: "cds-time-picker-changed",
|
|
529
|
-
getData: (t, e, s) => ({
|
|
530
|
-
...e,
|
|
531
|
-
value: s.value
|
|
532
|
-
})
|
|
533
|
-
}
|
|
534
|
-
}, st = () => import("./index-82K_ozYZ.js"), ot = {
|
|
535
|
-
selector: "cds-file-uploader",
|
|
536
|
-
import: st,
|
|
537
|
-
init: function(t) {
|
|
538
|
-
const e = r(t), s = e.event;
|
|
539
|
-
if (s) {
|
|
540
|
-
const o = t.querySelector('input[type="file"]');
|
|
541
|
-
o && this.listen(o, "change", (i) => {
|
|
542
|
-
this.dispatchPanelEvent(s, {
|
|
543
|
-
...e,
|
|
544
|
-
files: Array.from(i.target.files || [])
|
|
545
|
-
});
|
|
546
|
-
});
|
|
547
|
-
}
|
|
548
|
-
const n = t.getAttribute("delete-event");
|
|
549
|
-
n && this.listen(t, "cds-file-uploader-item-deleted", (o) => {
|
|
550
|
-
this.dispatchPanelEvent(n, {
|
|
551
|
-
...e,
|
|
552
|
-
fileName: o.detail?.fileName,
|
|
553
|
-
fileId: o.detail?.fileId
|
|
554
|
-
});
|
|
555
|
-
});
|
|
556
|
-
}
|
|
557
|
-
}, it = () => import("./index-C06cFvgb.js"), ct = () => import("./index-1G2UuijG.js"), rt = () => import("./index-BwMEAhRr.js"), at = {
|
|
558
|
-
selector: "cds-tabs",
|
|
559
|
-
import: it,
|
|
560
|
-
init: function(t) {
|
|
561
|
-
const e = r(t), s = t.getAttribute("before-select-event");
|
|
562
|
-
s && this.listen(t, "cds-tabs-beingselected", (o) => {
|
|
563
|
-
this.dispatchPanelEvent(s, {
|
|
564
|
-
...e,
|
|
565
|
-
tabValue: o.detail.value,
|
|
566
|
-
cancelable: !0
|
|
567
|
-
});
|
|
568
|
-
});
|
|
569
|
-
const n = e.event;
|
|
570
|
-
n && this.listen(t, "cds-tabs-selected", (o) => {
|
|
571
|
-
const i = o.detail.item, c = r(i);
|
|
572
|
-
this.dispatchPanelEvent(n, {
|
|
573
|
-
...e,
|
|
574
|
-
...c,
|
|
575
|
-
tabValue: o.detail.value
|
|
576
|
-
});
|
|
577
|
-
});
|
|
578
|
-
}
|
|
579
|
-
}, lt = {
|
|
580
|
-
// Accordion
|
|
581
|
-
"cds-accordion": {
|
|
582
|
-
import: ct,
|
|
583
|
-
init: function(t) {
|
|
584
|
-
const e = r(t);
|
|
585
|
-
[...t.querySelectorAll("cds-accordion-item")].forEach((n) => {
|
|
586
|
-
const o = r(n), i = o.event || e.event;
|
|
587
|
-
i && this.listen(n, "cds-accordion-item-toggled", (c) => {
|
|
588
|
-
this.dispatchPanelEvent(i, {
|
|
589
|
-
...e,
|
|
590
|
-
...o,
|
|
591
|
-
open: c.detail.open
|
|
592
|
-
});
|
|
593
|
-
});
|
|
594
|
-
});
|
|
595
|
-
}
|
|
596
|
-
},
|
|
597
|
-
// Content Switcher
|
|
598
|
-
"cds-content-switcher": {
|
|
599
|
-
import: rt,
|
|
600
|
-
init: function(t) {
|
|
601
|
-
const e = r(t), s = t.getAttribute("before-select-event");
|
|
602
|
-
s && this.listen(t, "cds-content-switcher-beingselected", (o) => {
|
|
603
|
-
this.dispatchPanelEvent(s, {
|
|
604
|
-
...e,
|
|
605
|
-
value: o.detail.value,
|
|
606
|
-
cancelable: !0
|
|
607
|
-
});
|
|
608
|
-
});
|
|
609
|
-
const n = e.event;
|
|
610
|
-
n && this.listen(t, "cds-content-switcher-selected", (o) => {
|
|
611
|
-
const i = o.detail.item, c = r(i);
|
|
612
|
-
this.dispatchPanelEvent(n, {
|
|
613
|
-
...e,
|
|
614
|
-
...c,
|
|
615
|
-
value: i.getAttribute("value")
|
|
616
|
-
});
|
|
617
|
-
});
|
|
618
|
-
}
|
|
619
|
-
}
|
|
620
|
-
}, E = () => import("./index-D3ldTviC.js"), dt = () => import("./index-C8miW4lw.js"), pt = {
|
|
621
|
-
selector: "cds-breadcrumb",
|
|
622
|
-
import: E,
|
|
623
|
-
init: function(t) {
|
|
624
|
-
const e = r(t), s = e.event;
|
|
625
|
-
if (s) {
|
|
626
|
-
const n = (i) => {
|
|
627
|
-
this.dispatchPanelEvent(s, {
|
|
628
|
-
...e,
|
|
629
|
-
...i
|
|
630
|
-
});
|
|
631
|
-
};
|
|
632
|
-
this.listen(t, "click", (i) => {
|
|
633
|
-
const c = i.target.closest("cds-breadcrumb-link");
|
|
634
|
-
if (c) {
|
|
635
|
-
i.preventDefault(), i.stopPropagation();
|
|
636
|
-
const a = r(c);
|
|
637
|
-
n(a);
|
|
638
|
-
}
|
|
639
|
-
});
|
|
640
|
-
const o = t.querySelector("cds-overflow-menu-body");
|
|
641
|
-
o && this.listen(o, "cds-overflow-menu-item-clicked", (i) => {
|
|
642
|
-
i.stopPropagation();
|
|
643
|
-
const c = r(i.target);
|
|
644
|
-
n(c);
|
|
645
|
-
});
|
|
646
|
-
}
|
|
647
|
-
}
|
|
648
|
-
}, mt = {
|
|
649
|
-
// Breadcrumb Item - Wrapper for breadcrumb links
|
|
650
|
-
"cds-breadcrumb-item": {
|
|
651
|
-
import: E
|
|
652
|
-
// No event handling - presentational wrapper
|
|
653
|
-
},
|
|
654
|
-
// Breadcrumb Link - Individual breadcrumb link
|
|
655
|
-
"cds-breadcrumb-link": {
|
|
656
|
-
import: E,
|
|
657
|
-
event: "click",
|
|
658
|
-
getData: (t, e, s) => (t.preventDefault(), {
|
|
659
|
-
...e,
|
|
660
|
-
href: s.getAttribute("href")
|
|
661
|
-
})
|
|
662
|
-
}
|
|
663
|
-
}, ut = {
|
|
664
|
-
"cds-pagination": {
|
|
665
|
-
import: dt,
|
|
666
|
-
init: function(t) {
|
|
667
|
-
const e = r(t), s = e.event;
|
|
668
|
-
s && this.listen(t, "cds-pagination-changed-current", (o) => {
|
|
669
|
-
this.dispatchPanelEvent(s, {
|
|
670
|
-
...e,
|
|
671
|
-
page: o.detail.page,
|
|
672
|
-
pageSize: o.detail.pageSize,
|
|
673
|
-
action: "page-change"
|
|
674
|
-
});
|
|
675
|
-
});
|
|
676
|
-
const n = t.getAttribute("page-size-event");
|
|
677
|
-
n && this.listen(t, "cds-page-sizes-select-changed", (o) => {
|
|
678
|
-
this.dispatchPanelEvent(n, {
|
|
679
|
-
...e,
|
|
680
|
-
page: o.detail.page,
|
|
681
|
-
pageSize: o.detail.pageSize,
|
|
682
|
-
action: "page-size-change"
|
|
683
|
-
});
|
|
684
|
-
});
|
|
685
|
-
}
|
|
686
|
-
}
|
|
687
|
-
}, vt = () => import("./index-DEcgB0oH.js"), ht = () => import("./index-DkUS58Ay.js"), ft = () => import("./index-BC-p6lrw.js"), gt = () => import("./index-CFYfFa1Z.js"), bt = () => import("./index-DocEKbBo.js"), Et = {
|
|
688
|
-
selector: "cds-text-input",
|
|
689
|
-
import: vt,
|
|
690
|
-
multiEvent: !0,
|
|
691
|
-
events: [
|
|
692
|
-
{
|
|
693
|
-
type: "input",
|
|
694
|
-
attrName: "event",
|
|
695
|
-
getData: (t, e) => ({
|
|
696
|
-
...e,
|
|
697
|
-
value: t.currentTarget.value
|
|
698
|
-
})
|
|
699
|
-
},
|
|
700
|
-
{
|
|
701
|
-
type: "change",
|
|
702
|
-
attrName: "change-event",
|
|
703
|
-
getData: (t, e) => ({
|
|
704
|
-
...e,
|
|
705
|
-
value: t.currentTarget.value
|
|
706
|
-
})
|
|
707
|
-
}
|
|
708
|
-
]
|
|
709
|
-
}, It = {
|
|
710
|
-
// Text Area
|
|
711
|
-
"cds-textarea": {
|
|
712
|
-
import: ht,
|
|
713
|
-
multiEvent: !0,
|
|
714
|
-
events: [
|
|
715
|
-
{
|
|
716
|
-
type: "input",
|
|
717
|
-
attrName: "event",
|
|
718
|
-
getData: (t, e) => ({
|
|
719
|
-
...e,
|
|
720
|
-
value: t.currentTarget.value
|
|
721
|
-
})
|
|
722
|
-
},
|
|
723
|
-
{
|
|
724
|
-
type: "change",
|
|
725
|
-
attrName: "change-event",
|
|
726
|
-
getData: (t, e) => ({
|
|
727
|
-
...e,
|
|
728
|
-
value: t.currentTarget.value
|
|
729
|
-
})
|
|
730
|
-
}
|
|
731
|
-
]
|
|
732
|
-
},
|
|
733
|
-
// Number Input
|
|
734
|
-
"cds-number-input": {
|
|
735
|
-
import: ft,
|
|
736
|
-
event: "cds-number-input",
|
|
737
|
-
getData: (t, e, s) => ({
|
|
738
|
-
...e,
|
|
739
|
-
value: t.detail.value,
|
|
740
|
-
direction: t.detail.direction
|
|
741
|
-
// 'up' or 'down' when using steppers
|
|
742
|
-
})
|
|
743
|
-
},
|
|
744
|
-
// Password Input
|
|
745
|
-
"cds-password-input": {
|
|
746
|
-
import: gt,
|
|
747
|
-
multiEvent: !0,
|
|
748
|
-
events: [
|
|
749
|
-
{
|
|
750
|
-
type: "input",
|
|
751
|
-
attrName: "event",
|
|
752
|
-
getData: (t, e) => ({
|
|
753
|
-
...e,
|
|
754
|
-
value: t.currentTarget.value
|
|
755
|
-
})
|
|
756
|
-
},
|
|
757
|
-
{
|
|
758
|
-
type: "change",
|
|
759
|
-
attrName: "change-event",
|
|
760
|
-
getData: (t, e) => ({
|
|
761
|
-
...e,
|
|
762
|
-
value: t.currentTarget.value
|
|
763
|
-
})
|
|
764
|
-
}
|
|
765
|
-
]
|
|
766
|
-
},
|
|
767
|
-
// Search
|
|
768
|
-
"cds-search": {
|
|
769
|
-
import: bt,
|
|
770
|
-
event: "cds-search-input",
|
|
771
|
-
getData: (t, e, s) => ({
|
|
772
|
-
...e,
|
|
773
|
-
value: s.value
|
|
774
|
-
})
|
|
775
|
-
}
|
|
776
|
-
}, Ct = () => import("./index-CZ2kGMvF.js"), At = () => import("./index-D1PpRn2p.js"), Pt = () => import("./index-C3LD0iwa.js"), yt = () => import("./index-Df3VILTD.js"), kt = () => import("./index-C5nYdcCH.js"), wt = {
|
|
777
|
-
selector: "cds-checkbox",
|
|
778
|
-
import: Ct,
|
|
779
|
-
event: "cds-checkbox-changed",
|
|
780
|
-
getData: (t, e, s) => ({
|
|
781
|
-
...e,
|
|
782
|
-
checked: t.detail.checked,
|
|
783
|
-
value: s.value
|
|
784
|
-
})
|
|
785
|
-
}, St = {
|
|
786
|
-
// Radio Button Group - only listen to the group, not individual buttons
|
|
787
|
-
"cds-radio-button-group": {
|
|
788
|
-
import: At,
|
|
789
|
-
event: "cds-radio-button-group-changed",
|
|
790
|
-
getData: (t, e) => ({
|
|
791
|
-
...e,
|
|
792
|
-
value: t.detail?.value
|
|
793
|
-
})
|
|
794
|
-
},
|
|
795
|
-
// Toggle
|
|
796
|
-
"cds-toggle": {
|
|
797
|
-
import: Pt,
|
|
798
|
-
event: "cds-toggle-changed",
|
|
799
|
-
getData: (t, e) => ({
|
|
800
|
-
...e,
|
|
801
|
-
isOn: t.detail.checked,
|
|
802
|
-
value: t.detail.checked
|
|
803
|
-
})
|
|
804
|
-
},
|
|
805
|
-
// Select
|
|
806
|
-
"cds-select": {
|
|
807
|
-
import: yt,
|
|
808
|
-
event: "cds-select-selected",
|
|
809
|
-
getData: (t, e) => ({
|
|
810
|
-
...e,
|
|
811
|
-
value: t.detail.value
|
|
812
|
-
})
|
|
813
|
-
},
|
|
814
|
-
// Slider
|
|
815
|
-
"cds-slider": {
|
|
816
|
-
import: kt,
|
|
817
|
-
init: function(t) {
|
|
818
|
-
const e = r(t), s = e.event;
|
|
819
|
-
s && this.listen(t, "cds-slider-changed", (o) => {
|
|
820
|
-
this.dispatchPanelEvent(s, {
|
|
821
|
-
...e,
|
|
822
|
-
value: o.detail.value
|
|
823
|
-
});
|
|
824
|
-
});
|
|
825
|
-
const n = t.getAttribute("input-event");
|
|
826
|
-
n && this.listen(t, "cds-slider-input-changed", (o) => {
|
|
827
|
-
this.dispatchPanelEvent(n, {
|
|
828
|
-
...e,
|
|
829
|
-
value: o.detail.value
|
|
830
|
-
});
|
|
831
|
-
});
|
|
832
|
-
}
|
|
833
|
-
}
|
|
834
|
-
}, I = () => import("./index-DktSeVhc.js"), Dt = {
|
|
835
|
-
selector: "cds-tag",
|
|
836
|
-
import: I,
|
|
837
|
-
event: "click",
|
|
838
|
-
getData: (t, e) => e
|
|
839
|
-
}, Tt = {
|
|
840
|
-
// Dismissible tags (closeable tags with X button)
|
|
841
|
-
"cds-dismissible-tag": {
|
|
842
|
-
import: I,
|
|
843
|
-
init: function(t) {
|
|
844
|
-
const e = r(t), s = t.getAttribute("click-event");
|
|
845
|
-
s && this.listen(t, "click", (o) => {
|
|
846
|
-
o.target.closest("button") || this.dispatchPanelEvent(s, {
|
|
847
|
-
...e
|
|
848
|
-
});
|
|
849
|
-
});
|
|
850
|
-
const n = e.event;
|
|
851
|
-
n && this.listen(t, "cds-dismissible-tag-closed", (o) => {
|
|
852
|
-
this.dispatchPanelEvent(n, {
|
|
853
|
-
...e,
|
|
854
|
-
action: "closed"
|
|
855
|
-
});
|
|
856
|
-
});
|
|
857
|
-
}
|
|
858
|
-
},
|
|
859
|
-
// Filter tags (closeable tags used for filters)
|
|
860
|
-
"cds-filter-tag": {
|
|
861
|
-
import: I,
|
|
862
|
-
event: "cds-filter-tag-closed",
|
|
863
|
-
getData: (t, e) => ({
|
|
864
|
-
...e,
|
|
865
|
-
action: "remove"
|
|
866
|
-
})
|
|
867
|
-
}
|
|
868
|
-
}, Nt = () => import("./index-CUd_43Fv.js"), xt = () => import("./index-CXgbBzE5.js"), zt = () => import("./index-CUTw26ex.js"), _t = {
|
|
869
|
-
selector: "cds-overflow-menu",
|
|
870
|
-
import: Nt,
|
|
871
|
-
// We collect the menu attributes from the menu, but we listen for the
|
|
872
|
-
// events on the menu body.
|
|
873
|
-
init: function(t) {
|
|
874
|
-
const e = r(t), s = e.event, n = t.querySelector("cds-overflow-menu-body");
|
|
875
|
-
s && n && this.listen(n, "cds-overflow-menu-item-clicked", (o) => {
|
|
876
|
-
o.stopPropagation();
|
|
877
|
-
const i = r(o.target);
|
|
878
|
-
this.dispatchPanelEvent(s, {
|
|
879
|
-
...e,
|
|
880
|
-
...i
|
|
881
|
-
});
|
|
882
|
-
});
|
|
883
|
-
}
|
|
884
|
-
}, Mt = {
|
|
885
|
-
// Structured List
|
|
886
|
-
"cds-structured-list": {
|
|
887
|
-
import: xt,
|
|
888
|
-
init: function(t) {
|
|
889
|
-
const e = r(t);
|
|
890
|
-
[...t.querySelectorAll("cds-structured-list-row")].forEach((n) => {
|
|
891
|
-
const o = r(n), i = o.event || e.event;
|
|
892
|
-
i && this.listen(n, "click", (c) => {
|
|
893
|
-
c.stopPropagation(), this.dispatchPanelEvent(i, {
|
|
894
|
-
...e,
|
|
895
|
-
...o
|
|
896
|
-
});
|
|
897
|
-
});
|
|
898
|
-
}), t.hasAttribute("selection") && this.listen(t, "cds-structured-list-selected", (n) => {
|
|
899
|
-
const o = n.detail.row, i = r(o), c = e.event;
|
|
900
|
-
c && this.dispatchPanelEvent(c, {
|
|
901
|
-
...e,
|
|
902
|
-
...i
|
|
903
|
-
});
|
|
904
|
-
});
|
|
905
|
-
}
|
|
906
|
-
},
|
|
907
|
-
// Tree View
|
|
908
|
-
"cds-tree-view": {
|
|
909
|
-
import: zt,
|
|
910
|
-
init: function(t) {
|
|
911
|
-
const e = r(t);
|
|
912
|
-
this.listen(t, "cds-tree-node-selected", (n) => {
|
|
913
|
-
const o = n.detail.node, i = r(o), c = i.event || e.event;
|
|
914
|
-
c && this.dispatchPanelEvent(c, {
|
|
915
|
-
...e,
|
|
916
|
-
...i,
|
|
917
|
-
nodeId: o.id,
|
|
918
|
-
label: o.getAttribute("label")
|
|
919
|
-
});
|
|
920
|
-
});
|
|
921
|
-
const s = p(t, "expand-event");
|
|
922
|
-
s && this.listen(t, "cds-tree-node-expanded", (n) => {
|
|
923
|
-
this.dispatchPanelEvent(s, {
|
|
924
|
-
...e,
|
|
925
|
-
nodeId: n.detail.node.id,
|
|
926
|
-
expanded: n.detail.expanded
|
|
927
|
-
});
|
|
928
|
-
});
|
|
929
|
-
}
|
|
930
|
-
}
|
|
931
|
-
}, C = () => import("./index-CoPuejcu.js"), Ot = {
|
|
932
|
-
selector: "cds-toast-notification",
|
|
933
|
-
import: C,
|
|
934
|
-
event: "cds-notification-closed",
|
|
935
|
-
getData: (t, e) => ({
|
|
936
|
-
...e,
|
|
937
|
-
action: "closed"
|
|
938
|
-
})
|
|
939
|
-
}, qt = {
|
|
940
|
-
// Inline Notification
|
|
941
|
-
"cds-inline-notification": {
|
|
942
|
-
import: C,
|
|
943
|
-
event: "cds-notification-closed",
|
|
944
|
-
getData: (t, e) => ({
|
|
945
|
-
...e,
|
|
946
|
-
action: "closed"
|
|
947
|
-
})
|
|
948
|
-
},
|
|
949
|
-
// Actionable Notification
|
|
950
|
-
"cds-actionable-notification": {
|
|
951
|
-
import: C,
|
|
952
|
-
init: function(t) {
|
|
953
|
-
const e = r(t), s = p(t, "close-event", "event");
|
|
954
|
-
s && this.listen(t, "cds-notification-closed", (o) => {
|
|
955
|
-
this.dispatchPanelEvent(s, {
|
|
956
|
-
...e,
|
|
957
|
-
action: "closed"
|
|
958
|
-
});
|
|
959
|
-
});
|
|
960
|
-
const n = p(t, "action-event");
|
|
961
|
-
n && this.listen(t, "cds-notification-actioned", (o) => {
|
|
962
|
-
this.dispatchPanelEvent(n, {
|
|
963
|
-
...e,
|
|
964
|
-
action: "actioned"
|
|
965
|
-
});
|
|
966
|
-
});
|
|
967
|
-
}
|
|
968
|
-
}
|
|
969
|
-
}, f = () => import("./index-B4JPT-gj.js"), Rt = {
|
|
970
|
-
selector: "cds-clickable-tile",
|
|
971
|
-
import: f,
|
|
972
|
-
event: "click",
|
|
973
|
-
getData: (t, e) => ({
|
|
974
|
-
...e,
|
|
975
|
-
href: t.currentTarget.getAttribute("href")
|
|
976
|
-
})
|
|
977
|
-
}, Bt = {
|
|
978
|
-
// Expandable Tile
|
|
979
|
-
"cds-expandable-tile": {
|
|
980
|
-
import: f,
|
|
981
|
-
init: function(t) {
|
|
982
|
-
const e = r(t), s = t.getAttribute("before-toggle-event");
|
|
983
|
-
s && this.listen(t, "cds-expandable-tile-beingtoggled", (o) => {
|
|
984
|
-
this.dispatchPanelEvent(s, {
|
|
985
|
-
...e,
|
|
986
|
-
expanded: o.detail.expanded,
|
|
987
|
-
cancelable: !0
|
|
988
|
-
});
|
|
989
|
-
});
|
|
990
|
-
const n = e.event;
|
|
991
|
-
n && this.listen(t, "cds-expandable-tile-toggled", (o) => {
|
|
992
|
-
this.dispatchPanelEvent(n, {
|
|
993
|
-
...e,
|
|
994
|
-
expanded: o.detail.expanded
|
|
995
|
-
});
|
|
996
|
-
});
|
|
997
|
-
}
|
|
998
|
-
},
|
|
999
|
-
// Selectable Tile
|
|
1000
|
-
"cds-selectable-tile": {
|
|
1001
|
-
import: f,
|
|
1002
|
-
event: "cds-selectable-tile-changed",
|
|
1003
|
-
getData: (t, e, s) => ({
|
|
1004
|
-
...e,
|
|
1005
|
-
selected: t.detail.selected,
|
|
1006
|
-
value: s.value
|
|
1007
|
-
})
|
|
1008
|
-
},
|
|
1009
|
-
// Radio Tile
|
|
1010
|
-
"cds-radio-tile": {
|
|
1011
|
-
import: f,
|
|
1012
|
-
event: "cds-selectable-tile-changed",
|
|
1013
|
-
getData: (t, e, s) => ({
|
|
1014
|
-
...e,
|
|
1015
|
-
selected: t.detail.selected,
|
|
1016
|
-
value: s.value
|
|
1017
|
-
})
|
|
1018
|
-
}
|
|
1019
|
-
}, Ft = () => import("./index-B3EmHaO7.js"), Ut = () => import("./index-BHWaezgU.js"), $t = () => import("./index-CKBFfWOV.js"), jt = {
|
|
1020
|
-
selector: "cds-progress-bar",
|
|
1021
|
-
import: Ft,
|
|
1022
|
-
init: function(t) {
|
|
1023
|
-
const e = r(t);
|
|
1024
|
-
if (e.event) {
|
|
1025
|
-
const s = new MutationObserver(() => {
|
|
1026
|
-
const n = parseFloat(t.getAttribute("value") || "0"), o = parseFloat(t.getAttribute("max") || "100");
|
|
1027
|
-
n >= o && this.dispatchPanelEvent(e.event, {
|
|
1028
|
-
...e,
|
|
1029
|
-
value: n,
|
|
1030
|
-
status: "complete"
|
|
1031
|
-
});
|
|
1032
|
-
});
|
|
1033
|
-
s.observe(t, {
|
|
1034
|
-
attributes: !0,
|
|
1035
|
-
attributeFilter: ["value"]
|
|
1036
|
-
}), t._progressObserver = s;
|
|
1037
|
-
}
|
|
1038
|
-
}
|
|
1039
|
-
}, Ht = {
|
|
1040
|
-
// Progress Indicator
|
|
1041
|
-
"cds-progress-indicator": {
|
|
1042
|
-
import: Ut,
|
|
1043
|
-
init: function(t) {
|
|
1044
|
-
const e = r(t);
|
|
1045
|
-
this.listen(t, "cds-progress-step-click", (s) => {
|
|
1046
|
-
const n = s.target, o = r(n), i = o.event || e.event;
|
|
1047
|
-
i && this.dispatchPanelEvent(i, {
|
|
1048
|
-
...e,
|
|
1049
|
-
...o,
|
|
1050
|
-
stepIndex: n.getAttribute("data-index"),
|
|
1051
|
-
stepLabel: n.getAttribute("label")
|
|
1052
|
-
});
|
|
1053
|
-
});
|
|
1054
|
-
}
|
|
1055
|
-
},
|
|
1056
|
-
// Inline Loading - Loading indicator for inline actions (e.g., form submit)
|
|
1057
|
-
"cds-inline-loading": {
|
|
1058
|
-
import: $t,
|
|
1059
|
-
init: function(t) {
|
|
1060
|
-
const e = r(t), s = e.event;
|
|
1061
|
-
s && this.listen(t, "cds-inline-loading-onsuccess", (o) => {
|
|
1062
|
-
this.dispatchPanelEvent(s, {
|
|
1063
|
-
...e,
|
|
1064
|
-
status: "finished"
|
|
1065
|
-
});
|
|
1066
|
-
});
|
|
1067
|
-
const n = t.getAttribute("status-event");
|
|
1068
|
-
if (n) {
|
|
1069
|
-
const o = new MutationObserver((i) => {
|
|
1070
|
-
i.forEach((c) => {
|
|
1071
|
-
if (c.attributeName === "status") {
|
|
1072
|
-
const a = t.getAttribute("status");
|
|
1073
|
-
this.dispatchPanelEvent(n, {
|
|
1074
|
-
...e,
|
|
1075
|
-
status: a
|
|
1076
|
-
});
|
|
1077
|
-
}
|
|
1078
|
-
});
|
|
1079
|
-
});
|
|
1080
|
-
o.observe(t, {
|
|
1081
|
-
attributes: !0,
|
|
1082
|
-
attributeFilter: ["status"]
|
|
1083
|
-
}), t._statusObserver = o;
|
|
1084
|
-
}
|
|
1085
|
-
}
|
|
1086
|
-
}
|
|
1087
|
-
}, Vt = () => import("./index-DQZqjZ8k.js"), Lt = () => import("./index-Cq6Vdh__.js").then((t) => t.i), Gt = () => import("./index-B_JMGygD.js"), Jt = {
|
|
1088
|
-
selector: "cds-tooltip",
|
|
1089
|
-
import: Vt,
|
|
1090
|
-
init: function(t) {
|
|
1091
|
-
const e = r(t), s = p(t, "open-event");
|
|
1092
|
-
s && this.listen(t, "cds-tooltip-beingopened", (o) => {
|
|
1093
|
-
this.dispatchPanelEvent(s, {
|
|
1094
|
-
...e,
|
|
1095
|
-
action: "opened"
|
|
1096
|
-
});
|
|
1097
|
-
});
|
|
1098
|
-
const n = p(t, "close-event");
|
|
1099
|
-
n && this.listen(t, "cds-tooltip-closed", (o) => {
|
|
1100
|
-
this.dispatchPanelEvent(n, {
|
|
1101
|
-
...e,
|
|
1102
|
-
action: "closed"
|
|
1103
|
-
});
|
|
1104
|
-
});
|
|
1105
|
-
}
|
|
1106
|
-
}, Wt = {
|
|
1107
|
-
// Popover
|
|
1108
|
-
"cds-popover": {
|
|
1109
|
-
import: Lt,
|
|
1110
|
-
init: function(t) {
|
|
1111
|
-
const e = r(t), s = p(t, "open-event");
|
|
1112
|
-
s && this.listen(t, "cds-popover-beingopened", (o) => {
|
|
1113
|
-
this.dispatchPanelEvent(s, {
|
|
1114
|
-
...e,
|
|
1115
|
-
action: "opened"
|
|
1116
|
-
});
|
|
1117
|
-
});
|
|
1118
|
-
const n = p(t, "close-event");
|
|
1119
|
-
n && this.listen(t, "cds-popover-closed", (o) => {
|
|
1120
|
-
this.dispatchPanelEvent(n, {
|
|
1121
|
-
...e,
|
|
1122
|
-
action: "closed"
|
|
1123
|
-
});
|
|
1124
|
-
});
|
|
1125
|
-
}
|
|
1126
|
-
},
|
|
1127
|
-
// Toggletip - tooltip that stays open until dismissed
|
|
1128
|
-
"cds-toggletip": {
|
|
1129
|
-
import: Gt,
|
|
1130
|
-
init: function(t) {
|
|
1131
|
-
const e = r(t);
|
|
1132
|
-
if (e.event) {
|
|
1133
|
-
const s = new MutationObserver((n) => {
|
|
1134
|
-
n.forEach((o) => {
|
|
1135
|
-
if (o.attributeName === "open") {
|
|
1136
|
-
const i = t.hasAttribute("open");
|
|
1137
|
-
this.dispatchPanelEvent(e.event, {
|
|
1138
|
-
...e,
|
|
1139
|
-
action: i ? "opened" : "closed",
|
|
1140
|
-
open: i
|
|
1141
|
-
});
|
|
1142
|
-
}
|
|
1143
|
-
});
|
|
1144
|
-
});
|
|
1145
|
-
s.observe(t, {
|
|
1146
|
-
attributes: !0,
|
|
1147
|
-
attributeFilter: ["open"]
|
|
1148
|
-
}), t._toggletipObserver = s;
|
|
1149
|
-
}
|
|
1150
|
-
}
|
|
1151
|
-
}
|
|
1152
|
-
}, Zt = () => import("./index-CcxiTkam.js").then((t) => t.i), Kt = () => import("./index-DuGskRLI.js"), Qt = {
|
|
1153
|
-
selector: "cds-link",
|
|
1154
|
-
import: Zt,
|
|
1155
|
-
event: "click",
|
|
1156
|
-
getData: (t, e, s) => ({
|
|
1157
|
-
...e,
|
|
1158
|
-
href: s.getAttribute("href")
|
|
1159
|
-
})
|
|
1160
|
-
}, Xt = {
|
|
1161
|
-
// Code Snippet
|
|
1162
|
-
"cds-code-snippet": {
|
|
1163
|
-
import: Kt,
|
|
1164
|
-
event: "cds-copy-button-clicked",
|
|
1165
|
-
getData: (t, e) => ({
|
|
1166
|
-
...e,
|
|
1167
|
-
action: "copied"
|
|
1168
|
-
})
|
|
1169
|
-
}
|
|
1170
|
-
}, P = () => import("./index-DBvXH68A.js"), Yt = () => import("./index-wTRaGtNG.js"), te = () => import("./index-BG3BMHhy.js"), ee = () => import("./index-CYpHcMws.js"), ne = () => import("./index-CYg05Ph9.js"), se = () => import("./index-BQNhvN2i.js"), oe = () => import("./index-C_Xg4nHN.js").then((t) => t.i), ie = () => import("./index-DLUPGsWM.js").then((t) => t.i), ce = () => import("./index-B_C9vt_w.js"), re = () => import("./index-LR7m5odx.js"), ae = {
|
|
1171
|
-
// Form structure components (presentational only - no event handling needed)
|
|
1172
|
-
"cds-form": {
|
|
1173
|
-
import: P
|
|
1174
|
-
// No event handling - wraps native <form> which works naturally
|
|
1175
|
-
},
|
|
1176
|
-
"cds-form-item": {
|
|
1177
|
-
import: P
|
|
1178
|
-
// No event handling - presentational wrapper for form fields
|
|
1179
|
-
},
|
|
1180
|
-
"cds-form-group": {
|
|
1181
|
-
import: Yt
|
|
1182
|
-
// No event handling - presentational fieldset wrapper
|
|
1183
|
-
},
|
|
1184
|
-
"cds-stack": {
|
|
1185
|
-
import: te
|
|
1186
|
-
// No event handling - layout utility for spacing items vertically or horizontally
|
|
1187
|
-
},
|
|
1188
|
-
// Typography & Icons (Presentational)
|
|
1189
|
-
"cds-heading": {
|
|
1190
|
-
import: ee
|
|
1191
|
-
// No event handling - semantic heading component
|
|
1192
|
-
},
|
|
1193
|
-
"cds-icon": {
|
|
1194
|
-
import: ne
|
|
1195
|
-
// No event handling - icon display component
|
|
1196
|
-
},
|
|
1197
|
-
"cds-icon-indicator": {
|
|
1198
|
-
import: se
|
|
1199
|
-
// No event handling - status indicator icon
|
|
1200
|
-
},
|
|
1201
|
-
// Badge Indicator - Status badge component (typically used in tabs/icons)
|
|
1202
|
-
"cds-badge-indicator": {
|
|
1203
|
-
import: re
|
|
1204
|
-
// No event handling - presentational status indicator
|
|
1205
|
-
// Typically appears as a dot on tabs or icons to show notifications/status
|
|
1206
|
-
},
|
|
1207
|
-
// Loading - Full-page or section loading spinner
|
|
1208
|
-
"cds-loading": {
|
|
1209
|
-
import: oe
|
|
1210
|
-
// No event handling - presentational loading spinner
|
|
1211
|
-
},
|
|
1212
|
-
// Skeleton components - Loading placeholders
|
|
1213
|
-
"cds-skeleton-text": {
|
|
1214
|
-
import: ie
|
|
1215
|
-
// No event handling - presentational loading placeholder
|
|
1216
|
-
},
|
|
1217
|
-
"cds-skeleton-placeholder": {
|
|
1218
|
-
import: ce
|
|
1219
|
-
// No event handling - presentational loading placeholder
|
|
1220
|
-
}
|
|
1221
|
-
}, le = [
|
|
1222
|
-
F,
|
|
1223
|
-
U,
|
|
1224
|
-
j,
|
|
1225
|
-
G,
|
|
1226
|
-
Q,
|
|
1227
|
-
et,
|
|
1228
|
-
ot,
|
|
1229
|
-
at,
|
|
1230
|
-
pt,
|
|
1231
|
-
Et,
|
|
1232
|
-
wt,
|
|
1233
|
-
Dt,
|
|
1234
|
-
_t,
|
|
1235
|
-
Ot,
|
|
1236
|
-
Rt,
|
|
1237
|
-
jt,
|
|
1238
|
-
Jt,
|
|
1239
|
-
Qt
|
|
1240
|
-
];
|
|
1241
|
-
function de() {
|
|
1242
|
-
const t = /* @__PURE__ */ new Map();
|
|
1243
|
-
return le.forEach((s) => {
|
|
1244
|
-
t.set(s.selector, s);
|
|
1245
|
-
}), [
|
|
1246
|
-
$,
|
|
1247
|
-
H,
|
|
1248
|
-
J,
|
|
1249
|
-
X,
|
|
1250
|
-
nt,
|
|
1251
|
-
lt,
|
|
1252
|
-
mt,
|
|
1253
|
-
ut,
|
|
1254
|
-
It,
|
|
1255
|
-
St,
|
|
1256
|
-
Tt,
|
|
1257
|
-
Mt,
|
|
1258
|
-
qt,
|
|
1259
|
-
Bt,
|
|
1260
|
-
Ht,
|
|
1261
|
-
Wt,
|
|
1262
|
-
Xt,
|
|
1263
|
-
ae
|
|
1264
|
-
].forEach((s) => {
|
|
1265
|
-
Object.entries(s).forEach(([n, o]) => {
|
|
1266
|
-
t.set(n, o);
|
|
1267
|
-
});
|
|
1268
|
-
}), t;
|
|
1269
|
-
}
|
|
1270
|
-
function pe(t) {
|
|
1271
|
-
const e = /* @__PURE__ */ new Map();
|
|
1272
|
-
for (const n of Object.keys(h))
|
|
1273
|
-
e.set(n, []);
|
|
1274
|
-
for (const [n, o] of Object.entries(h))
|
|
1275
|
-
t.matches(n) && e.get(n).push(t);
|
|
1276
|
-
const s = t.querySelectorAll("*");
|
|
1277
|
-
for (const n of s)
|
|
1278
|
-
for (const [o, i] of Object.entries(h))
|
|
1279
|
-
n.matches(o) && e.get(o).push(n);
|
|
1280
|
-
for (const [n, o] of e.entries())
|
|
1281
|
-
o.length === 0 && e.delete(n);
|
|
1282
|
-
return e;
|
|
1283
|
-
}
|
|
1284
|
-
function me(t) {
|
|
1285
|
-
const e = /* @__PURE__ */ new Set();
|
|
1286
|
-
for (const [s, n] of t.entries()) {
|
|
1287
|
-
const o = h[s];
|
|
1288
|
-
o && o.import && n.length > 0 && e.add(o.import);
|
|
1289
|
-
}
|
|
1290
|
-
return e;
|
|
1291
|
-
}
|
|
1292
|
-
async function ue(t, e) {
|
|
1293
|
-
if (t.size === 0)
|
|
1294
|
-
return;
|
|
1295
|
-
const s = Array.from(t).map(async (n) => (e.has(n) || e.set(n, n()), e.get(n)));
|
|
1296
|
-
await Promise.all(s);
|
|
1297
|
-
}
|
|
1298
|
-
function ve(t, e) {
|
|
1299
|
-
let s = 0;
|
|
1300
|
-
for (const [n, o] of t.entries()) {
|
|
1301
|
-
const i = h[n];
|
|
1302
|
-
o.forEach((c) => {
|
|
1303
|
-
if (i.init) {
|
|
1304
|
-
i.init.call(e, c);
|
|
1305
|
-
return;
|
|
1306
|
-
}
|
|
1307
|
-
if (i.multiEvent) {
|
|
1308
|
-
const u = r(c);
|
|
1309
|
-
i.events.forEach((d) => {
|
|
1310
|
-
const m = p(c, d.attrName, "event");
|
|
1311
|
-
m && e.listen(c, d.type, (b) => {
|
|
1312
|
-
e.dispatchPanelEvent(m, d.getData(b, u, c));
|
|
1313
|
-
});
|
|
1314
|
-
});
|
|
1315
|
-
return;
|
|
1316
|
-
}
|
|
1317
|
-
const a = r(c), l = a.event;
|
|
1318
|
-
l && e.listen(c, i.event, (u) => {
|
|
1319
|
-
u.stopPropagation();
|
|
1320
|
-
const d = i.getData(u, a, c), m = d._eventOverride || l;
|
|
1321
|
-
delete d._eventOverride, e.dispatchPanelEvent(m, d);
|
|
1322
|
-
});
|
|
1323
|
-
}), s += o.length;
|
|
1324
|
-
}
|
|
1325
|
-
return s;
|
|
1326
|
-
}
|
|
1327
|
-
const h = {
|
|
1328
|
-
...Object.fromEntries(de())
|
|
1329
|
-
}, he = async function(t, e) {
|
|
1330
|
-
const s = pe(t);
|
|
1331
|
-
if (s.size === 0) {
|
|
1332
|
-
this.debugMe("[Carbon] No Carbon components found in panel");
|
|
1333
|
-
return;
|
|
1334
|
-
}
|
|
1335
|
-
this.carbonComponents || (this.carbonComponents = /* @__PURE__ */ new Map());
|
|
1336
|
-
for (const [i, c] of s.entries())
|
|
1337
|
-
this.carbonComponents.set(i, c);
|
|
1338
|
-
const n = me(s);
|
|
1339
|
-
if (n.size > 0)
|
|
1340
|
-
try {
|
|
1341
|
-
await ue(n, e);
|
|
1342
|
-
} catch (i) {
|
|
1343
|
-
console.error("[Carbon] Failed to load some component modules:", i);
|
|
1344
|
-
}
|
|
1345
|
-
const o = ve(s, this);
|
|
1346
|
-
o > 0 && this.debugMe(`[Carbon] Total components initialized: ${o}`);
|
|
1347
|
-
};
|
|
1348
|
-
function ge() {
|
|
1349
|
-
D.register("carbon", {
|
|
1350
|
-
/**
|
|
1351
|
-
* Main render function that orchestrates Carbon component initialization.
|
|
1352
|
-
* Called by Panel.parseContent() for each panel that enters the document.
|
|
1353
|
-
*
|
|
1354
|
-
* @param {Element} panel - The panel DOM element to scan and initialize
|
|
1355
|
-
* @param {Map} cache - Import cache to prevent duplicate module loads
|
|
1356
|
-
* @returns {Promise<void>}
|
|
1357
|
-
*/
|
|
1358
|
-
render: async function(t, e) {
|
|
1359
|
-
try {
|
|
1360
|
-
await he.call(this, t, e);
|
|
1361
|
-
} catch (s) {
|
|
1362
|
-
console.error("[Carbon] Initialization error:", s);
|
|
1363
|
-
}
|
|
1364
|
-
},
|
|
1365
|
-
/**
|
|
1366
|
-
* Cleans up Carbon components when a component is disposed.
|
|
1367
|
-
* Carbon Web Components (native web components) automatically cleanup when
|
|
1368
|
-
* removed from the DOM, so this is primarily here for completeness and
|
|
1369
|
-
* future extensibility.
|
|
1370
|
-
*
|
|
1371
|
-
* @param {Element} _element - The element being disposed
|
|
1372
|
-
*/
|
|
1373
|
-
dispose: function(t) {
|
|
1374
|
-
},
|
|
1375
|
-
config: {
|
|
1376
|
-
version: "2.0",
|
|
1377
|
-
description: "IBM Carbon Design System Web Components"
|
|
1378
|
-
}
|
|
1379
|
-
}), console.debug("[Zooy] Carbon Design System library registered");
|
|
1380
|
-
}
|
|
1381
|
-
export {
|
|
1382
|
-
ge as registerCarbonLibrary
|
|
1383
|
-
};
|