@trintel/zooy 1.0.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/dist/chunks/{button-C-oX8EmF.js → button--cIzwEQA.js} +1 -1
- package/dist/chunks/{button-B1jzfT-Z.js → button-i6QyRwAM.js} +4 -4
- package/dist/chunks/{button-skeleton-CK3BHdja.js → button-skeleton-Bk2Vw5Mq.js} +1 -1
- package/dist/chunks/{button-skeleton-DoCp6sBb.js → button-skeleton-D2TeTVpP.js} +4 -4
- package/dist/chunks/{checkbox-CgFjYxQ_.js → checkbox-Dyh34VfG.js} +5 -5
- package/dist/chunks/{checkbox-t3G-H1NN.js → checkbox-atdz21pu.js} +1 -1
- package/dist/chunks/{class-map-D6tjF27Y.js → class-map-CziJvhVR.js} +1 -1
- package/dist/chunks/{class-map-FWQBIzSx.js → class-map-hWNVHb09.js} +1 -1
- package/dist/chunks/{content-switcher-item-c4WBWz31.js → content-switcher-item-88PWpM2j.js} +1 -1
- package/dist/chunks/{content-switcher-item-CedjjtvP.js → content-switcher-item-CpNfKVu-.js} +4 -4
- package/dist/chunks/{dropdown-item-Dh5IEXDr.js → dropdown-item-CDbnp5_k.js} +6 -6
- package/dist/chunks/{dropdown-item-C0SHr4st.js → dropdown-item-CRyAm4Ku.js} +1 -1
- package/dist/chunks/{icon-loader-CJxyg-lp.js → icon-loader-C3acLKRm.js} +1 -1
- package/dist/chunks/{icon-loader-ChKeNR4s.js → icon-loader-CsKt-G8D.js} +1 -1
- package/dist/chunks/{icon-loader-utils-DK8DViXt.js → icon-loader-utils-DKbXKLDh.js} +1 -1
- package/dist/chunks/{icon-loader-utils-BwViqIXz.js → icon-loader-utils-DXGGCFfD.js} +1 -1
- package/dist/chunks/{if-defined-eJcDYClo.js → if-defined-D2rCHx2p.js} +1 -1
- package/dist/chunks/{if-defined-DYWhlnlE.js → if-defined-uehgcl8e.js} +1 -1
- package/dist/chunks/if-non-empty-BEpfFFDX.js +1 -0
- package/dist/chunks/{if-non-empty-COTeEFkK.js → if-non-empty-CcwduEjT.js} +1 -1
- package/dist/chunks/{index-Dc51G1mo.js → index--Q3NhIVC.js} +1 -1
- package/dist/chunks/{index-Z4ar01y-.js → index-B16kSrMy.js} +4 -4
- package/dist/chunks/{index-pS6-humH.js → index-B6vimuhF.js} +1 -1
- package/dist/chunks/{index-CR3DrmQi.js → index-B8fGrrzJ.js} +8 -8
- package/dist/chunks/{index-DBsASlZI.js → index-BEDYiyp9.js} +1 -1
- package/dist/chunks/{index-CBICHiFD.js → index-BEyCs2cc.js} +5 -5
- package/dist/chunks/{index-C3n83pM3.js → index-BIJ3miZu.js} +1 -1
- package/dist/chunks/{index-du3RQU31.js → index-BIvyXnIe.js} +1 -1
- package/dist/chunks/{index-C2oV5vU3.js → index-BMJjuXme.js} +1 -1
- package/dist/chunks/{index-Ctna95NT.js → index-BMNd2Qad.js} +4 -4
- package/dist/chunks/{index-_xRytR0j.js → index-BMNv7Afr.js} +1 -1
- package/dist/chunks/{index-qgl9W8eF.js → index-BMzAaQhy.js} +1 -1
- package/dist/chunks/{index-DUtoSCTU.js → index-BODxU-Mu.js} +9 -9
- package/dist/chunks/{index-hH_m653R.js → index-BPRteboN.js} +5 -5
- package/dist/chunks/{index-D9sRIKMQ.js → index-BTUYIkmg.js} +5 -5
- package/dist/chunks/{index-MgWriQfr.js → index-BUcMLg1n.js} +1 -1
- package/dist/chunks/{index-CJdEJ8pY.js → index-BVpkxHll.js} +1 -1
- package/dist/chunks/{index-CKYRBtLC.js → index-BWBjCDwY.js} +1 -1
- package/dist/chunks/{index-BMquNDkd.js → index-BYHXKkvf.js} +6 -6
- package/dist/chunks/{index-CQl4NaPS.js → index-BeKAg3cB.js} +1 -1
- package/dist/chunks/{index-CTsGb3mD.js → index-Bgo3KCFI.js} +7 -7
- package/dist/chunks/{index-Bls8zdHV.js → index-Bh3jqbKV.js} +5 -5
- package/dist/chunks/{index-CkxGsCJy.js → index-Bk2MEnMu.js} +7 -7
- package/dist/chunks/{index-CEy6bu7P.js → index-BlAm81hv.js} +1 -1
- package/dist/chunks/{index-BseD7Jzt.js → index-Bp5LwA_m.js} +1 -1
- package/dist/chunks/{index-BwRxBdeg.js → index-BqExj5O7.js} +1 -1
- package/dist/chunks/{index-BbJQIwkY.js → index-BrqEja9V.js} +8 -8
- package/dist/chunks/{index-CIZ3Gnmm.js → index-BtPiuBUm.js} +1 -1
- package/dist/chunks/{index-yzFU-E6F.js → index-Bu6R2tix.js} +1 -1
- package/dist/chunks/{index-i4heE-wx.js → index-Bug3BjgA.js} +3 -3
- package/dist/chunks/{index-Bff6B9vY.js → index-BwhAoVy-.js} +7 -7
- package/dist/chunks/{index-B8Ze9ISK.js → index-BxGUZ-qP.js} +1 -1
- package/dist/chunks/{index-BGGDxbLL.js → index-ByNfpHAO.js} +5 -5
- package/dist/chunks/{index-BeMnerDj.js → index-Byf_K1x1.js} +8 -8
- package/dist/chunks/{index-Dd9iSSXa.js → index-C-P030e_.js} +3 -3
- package/dist/chunks/{index-DbAeG1nY.js → index-C1Eehpcx.js} +1 -1
- package/dist/chunks/{index-Dk3tlz8Q.js → index-C4GpRDm7.js} +1 -1
- package/dist/chunks/{index-hn76Yo-L.js → index-C5b2680a.js} +1 -1
- package/dist/chunks/{index-CYIcfuAW.js → index-C5s9Z5Ou.js} +3 -3
- package/dist/chunks/{index-CqQZpHti.js → index-C9HJjC2j.js} +1 -1
- package/dist/chunks/{index-i9jyrFc9.js → index-CFG5exAl.js} +1 -1
- package/dist/chunks/{index-pc36PiDY.js → index-CHIQ4wsM.js} +1 -1
- package/dist/chunks/{index-7cXLLw89.js → index-CO_QGXLN.js} +5 -5
- package/dist/chunks/{index-BwFE4R87.js → index-CPLpCt6z.js} +3 -3
- package/dist/chunks/{index-Cv6qE9qP.js → index-CP_zaIyv.js} +1 -1
- package/dist/chunks/{index-Cp3P3KaW.js → index-CPzh43Kr.js} +1 -1
- package/dist/chunks/{index-CsjJntyD.js → index-CTEnXoVq.js} +1 -1
- package/dist/chunks/{index-DyO3Wdy_.js → index-CUI3NPWg.js} +1 -1
- package/dist/chunks/{index-C-pfDP7B.js → index-C_JOABLw.js} +1 -1
- package/dist/chunks/{index-ClE0uX_c.js → index-C_NhQPDA.js} +1 -1
- package/dist/chunks/{index-DYvD9xjl.js → index-CbiknV4d.js} +1 -1
- package/dist/chunks/{index-4WNeLsiw.js → index-CcK76f0I.js} +3 -3
- package/dist/chunks/{index-B5GB0rQW.js → index-Cd1j7Qp1.js} +5 -5
- package/dist/chunks/{index-DGw1TVFB.js → index-Chyr-DU2.js} +2 -2
- package/dist/chunks/{index-C572_UKV.js → index-CjVvmbL6.js} +1 -1
- package/dist/chunks/{index-BBap1uCI.js → index-CsKII5mz.js} +1 -1
- package/dist/chunks/{index-B4SxU_Hu.js → index-CwpgmKTP.js} +7 -7
- package/dist/chunks/{index-Bt7v-zqV.js → index-CxJCioQg.js} +1 -1
- package/dist/chunks/{index-uwN33H1P.js → index-CyF5Kef-.js} +5 -5
- package/dist/chunks/{index-Cnsy7Qk3.js → index-CyR413wv.js} +5 -5
- package/dist/chunks/{index-4XJJobHw.js → index-CyvZ9jxn.js} +5 -5
- package/dist/chunks/{index-C6bOvXSf.js → index-Czs-UAWh.js} +4 -4
- package/dist/chunks/{index-B0nToMRj.js → index-D-iqTNbL.js} +4 -4
- package/dist/chunks/{index-9fmHblh5.js → index-D9nVgUNo.js} +1 -1
- package/dist/chunks/{index-DNWjc2SJ.js → index-DDUqY4Rl.js} +2 -2
- package/dist/chunks/{index-OgL1A9Rm.js → index-DEdeVoZn.js} +1 -1
- package/dist/chunks/{index-Cu1u3Mjn.js → index-DEtGo4Q7.js} +4 -4
- package/dist/chunks/{index-BQnyeVHX.js → index-DGvLgX2O.js} +1 -1
- package/dist/chunks/{index-Bymsj9gH.js → index-DGvVa-5J.js} +1 -1
- package/dist/chunks/{index-Bi9WliCA.js → index-DIg4fP-p.js} +6 -6
- package/dist/chunks/{index-Dh4LYLg5.js → index-DNkLJEg1.js} +10 -10
- package/dist/chunks/{index-JWULDURW.js → index-DPCfOgTU.js} +1 -1
- package/dist/chunks/index-DPnGRDRl.js +1 -0
- package/dist/chunks/{index-CWlg_Hu2.js → index-DQ4Y-fiZ.js} +4 -4
- package/dist/chunks/{index-GDVDUQtg.js → index-DSMPUWJU.js} +7 -7
- package/dist/chunks/{index-DIsXKJDH.js → index-DSgb2u7b.js} +1 -1
- package/dist/chunks/{index-BBWp83R-.js → index-DTadLLRG.js} +1 -1
- package/dist/chunks/{index-BRnzFxjk.js → index-DTtMSAgV.js} +1 -1
- package/dist/chunks/{index-0AElqkkj.js → index-DX2JlRat.js} +1 -1
- package/dist/chunks/{index-GbWz6fuF.js → index-DZrmJ7Ll.js} +5 -5
- package/dist/chunks/{index-DZabSr3s.js → index-DdkIREYU.js} +3 -3
- package/dist/chunks/{index-lFqOe0IJ.js → index-DkphY0sd.js} +1 -1
- package/dist/chunks/{index-BAAA4wkE.js → index-Do9f8Pwe.js} +2 -2
- package/dist/chunks/{index-CIiIAqrQ.js → index-Dr4evLL7.js} +3 -3
- package/dist/chunks/{index-QzojJs5M.js → index-DwCXQC7X.js} +2 -2
- package/dist/chunks/{index-DrDKdYFJ.js → index-DwDG_y9_.js} +1 -1
- package/dist/chunks/{index-BvdNKhJw.js → index-F2zwTZm1.js} +1 -1
- package/dist/chunks/{index-CoAT1iC6.js → index-HbS1lUW6.js} +1 -1
- package/dist/chunks/{index-Bo2QmpPO.js → index-LtB-4-X9.js} +1 -1
- package/dist/chunks/{index-DWjrCygZ.js → index-QuyEX50y.js} +1 -1
- package/dist/chunks/{index-CzAwJhyQ.js → index-WpBhhuED.js} +3 -3
- package/dist/chunks/{index-Bb_1S0pr.js → index-d0CqW2Cm.js} +5 -5
- package/dist/chunks/{index-CV7TVQ4T.js → index-el9l-ZQy.js} +4 -4
- package/dist/chunks/{index-cuMoh7qn.js → index-gfbRBI-d.js} +1 -1
- package/dist/chunks/{index-Cwb1pbm9.js → index-hhX-bWEv.js} +5 -5
- package/dist/chunks/{index-CFqKkC5Z.js → index-jdx-M5Y-.js} +1 -1
- package/dist/chunks/{index-uxZPrL2m.js → index-nfJ9ioGW.js} +6 -6
- package/dist/chunks/{index-DfFx1Jz3.js → index-oS8XvY4G.js} +3 -3
- package/dist/chunks/{index-DSOPjl5x.js → index-t9TINCcm.js} +7 -7
- package/dist/chunks/{index-Bunat0DP.js → index-tQGRhvw0.js} +6 -6
- package/dist/chunks/{index-TJL02uup.js → index-tdmIA8Xp.js} +6 -6
- package/dist/chunks/{index-D8LE8G2j.js → index-w027CjA0.js} +1 -1
- package/dist/chunks/{index-DyyLrVDY.js → index-wgp15jn2.js} +4 -4
- package/dist/chunks/index-xipeWGGU.js +2 -0
- package/dist/chunks/{loading-icon-DdwpAk8-.js → loading-icon-CN-iehcR.js} +1 -1
- package/dist/chunks/{loading-icon-CPvmJvpZ.js → loading-icon-q__8yLZw.js} +1 -1
- package/dist/chunks/{main-Bx21zlkN.js → main-BPWCMI5R.js} +7 -7
- package/dist/chunks/{main-BGOPab-5.js → main-BywCEBtD.js} +214 -168
- package/dist/chunks/{property-DAFv3PCb.js → property-DCTz3KPt.js} +1 -1
- package/dist/chunks/{property-BkjBVRuu.js → property-DzfJpYmn.js} +1 -1
- package/dist/chunks/{register-DTXmg-gw.js → register-B4yRiHm6.js} +1 -1
- package/dist/chunks/{register-BCEOkbXG.js → register-C3XDWad0.js} +393 -358
- package/dist/chunks/{register-Bkr1UKav.js → register-CyNp_638.js} +1 -1
- package/dist/chunks/register-DpOrINOx.js +1 -0
- package/dist/chunks/{search-npG8ywjx.js → search-BCJx6Xft.js} +6 -6
- package/dist/chunks/{search-DDFN8-Mz.js → search-CzmoEHwa.js} +1 -1
- package/dist/chunks/{select-DkCpQORs.js → select-0jyl720Y.js} +7 -7
- package/dist/chunks/{select-CFy3MvH6.js → select-DC0T8Fw_.js} +1 -1
- package/dist/chunks/{state-BdgD82MZ.js → state-BiEAGUqO.js} +1 -1
- package/dist/chunks/{state-uF7CZaP5.js → state-DJQLwKiU.js} +1 -1
- package/dist/chunks/{text-input-DVdkm07X.js → text-input-BGuFqOdN.js} +5 -5
- package/dist/chunks/{text-input-BUdM-ojg.js → text-input-BPvBDzky.js} +1 -1
- package/dist/chunks/{tooltip-content-BXcBmMsV.js → tooltip-content-BOefn0hU.js} +1 -1
- package/dist/chunks/{tooltip-content-CWRE_NqH.js → tooltip-content-CWdOnBaw.js} +3 -3
- package/dist/chunks/{unsafe-html-CpAqmPyx.js → unsafe-html-Bi2pB4Lb.js} +1 -1
- package/dist/chunks/{unsafe-html-Bg0eM3hS.js → unsafe-html-xqClX-6M.js} +1 -1
- package/dist/zooy.cjs.js +1 -1
- package/dist/zooy.es.js +3 -3
- package/package.json +1 -1
- package/src/sass/carbon.scss +46 -13
- package/dist/chunks/if-non-empty-CxMysAQW.js +0 -1
- package/dist/chunks/index-B5DpS-cb.js +0 -2
- package/dist/chunks/index-Do1DszoZ.js +0 -1
- package/dist/chunks/register-D_CXtGy1.js +0 -1
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
var
|
|
1
|
+
import { _ as W, c as mt, d as ut, g as r, e as ht, B as vt, o as ft, h as gt, p as Et, j as E, C as bt } from "./main-BywCEBtD.js";
|
|
2
|
+
var Ct = /* @__PURE__ */ W(function(e, n) {
|
|
3
|
+
return n == null || n !== n ? e : n;
|
|
4
|
+
}), St = /* @__PURE__ */ mt(function(e, n, o) {
|
|
5
|
+
return Ct(e, ut(n, o));
|
|
6
|
+
}), It = /* @__PURE__ */ W(function(e, n) {
|
|
3
7
|
for (var o = {}, s = 0; s < e.length; )
|
|
4
8
|
e[s] in n && (o[e[s]] = n[e[s]]), s += 1;
|
|
5
9
|
return o;
|
|
6
|
-
}),
|
|
7
|
-
function
|
|
8
|
-
return
|
|
10
|
+
}), B = {}, U;
|
|
11
|
+
function At() {
|
|
12
|
+
return U || (U = 1, (function(t) {
|
|
9
13
|
t.TABLE_SIZE = void 0, (function(n) {
|
|
10
14
|
n.XS = "xs", n.SM = "sm", n.MD = "md", n.LG = "lg", n.XL = "xl";
|
|
11
15
|
})(t.TABLE_SIZE || (t.TABLE_SIZE = {})), t.TABLE_SORT_DIRECTION = void 0, (function(n) {
|
|
@@ -34,12 +38,12 @@ function vt() {
|
|
|
34
38
|
]
|
|
35
39
|
};
|
|
36
40
|
t.TABLE_SORT_CYCLES = e;
|
|
37
|
-
})(
|
|
41
|
+
})(B)), B;
|
|
38
42
|
}
|
|
39
|
-
var
|
|
40
|
-
const
|
|
43
|
+
var Dt = At();
|
|
44
|
+
const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KCFI.js"), Pt = {
|
|
41
45
|
"cds-pagination": {
|
|
42
|
-
import:
|
|
46
|
+
import: Y,
|
|
43
47
|
/**
|
|
44
48
|
* Initialize a standalone pagination component.
|
|
45
49
|
*
|
|
@@ -56,8 +60,8 @@ const gt = () => import("./index-Dh4LYLg5.js"), G = () => import("./index-CTsGb3
|
|
|
56
60
|
const e = this, n = customElements.get("cds-pagination");
|
|
57
61
|
let o = null;
|
|
58
62
|
e.listen(t, n.eventChangeCurrent, (s) => {
|
|
59
|
-
const i = s.detail.page, c = t.pageSize,
|
|
60
|
-
|
|
63
|
+
const i = s.detail.page, c = t.pageSize, a = (i - 1) * c;
|
|
64
|
+
a !== o && (o = a, e.dispatchPanelEvent("pagination-changed-current", {
|
|
61
65
|
detail: {
|
|
62
66
|
page: i,
|
|
63
67
|
pageSize: c,
|
|
@@ -77,89 +81,89 @@ const gt = () => import("./index-Dh4LYLg5.js"), G = () => import("./index-CTsGb3
|
|
|
77
81
|
});
|
|
78
82
|
}
|
|
79
83
|
}
|
|
80
|
-
},
|
|
84
|
+
}, V = (t, e, n) => {
|
|
81
85
|
const o = customElements.get("cds-table"), s = customElements.get("cds-pagination"), i = customElements.get(o.selectorTableBatchActions);
|
|
82
86
|
customElements.get("cds-popover");
|
|
83
|
-
const c = e.dataBinder,
|
|
84
|
-
t.listen(e, "click", (
|
|
85
|
-
const m =
|
|
86
|
-
if (!m ||
|
|
87
|
-
|
|
88
|
-
const u =
|
|
87
|
+
const c = e.dataBinder, a = e.pagination, d = e.skeleton, b = e.querySelector(o.selectorTableToolbarSearch), S = e.querySelector(o.selectorTableBatchActions), P = e.querySelector(o.selectorTableToolbarContent), O = e.querySelector(o.selectorTableBody), Z = ["button", "a", "input", "select", "textarea", '[role="button"]', ".cds--table-expand", ".cds--table-column-checkbox"].join(","), x = e.querySelectorAll(o.selectorHeaderCell + "[is-sortable]"), J = e.isSortable || x.length > 0, R = Symbol(), M = Symbol(), _ = /* @__PURE__ */ new Map(), K = (l) => {
|
|
88
|
+
t.listen(e, "click", (p) => {
|
|
89
|
+
const m = p.target.closest(o.selectorTableRow);
|
|
90
|
+
if (!m || p.composedPath().some((h) => h.matches && h.matches(Z))) return;
|
|
91
|
+
p.stopPropagation();
|
|
92
|
+
const u = r(m);
|
|
89
93
|
t.dispatchPanelEvent(l, {
|
|
90
94
|
...u
|
|
91
95
|
});
|
|
92
96
|
});
|
|
93
|
-
},
|
|
94
|
-
t.listen(e, o.eventExpandoToggle, (
|
|
95
|
-
const m =
|
|
97
|
+
}, Q = (l) => {
|
|
98
|
+
t.listen(e, o.eventExpandoToggle, (p) => {
|
|
99
|
+
const m = p.target, u = m.tagName === "CDS-TABLE-HEADER-ROW", h = p.detail.expanded, f = r(m), C = {
|
|
96
100
|
tableAttrs: n,
|
|
97
|
-
...
|
|
101
|
+
...f,
|
|
98
102
|
target: m,
|
|
99
103
|
allRows: u,
|
|
100
|
-
didExpand:
|
|
104
|
+
didExpand: h
|
|
101
105
|
};
|
|
102
106
|
t.dispatchPanelEvent(l, C);
|
|
103
107
|
});
|
|
104
|
-
},
|
|
105
|
-
|
|
106
|
-
t.dispatchPanelEvent(l,
|
|
108
|
+
}, tt = (l) => {
|
|
109
|
+
_.set(R, (p) => {
|
|
110
|
+
t.dispatchPanelEvent(l, p);
|
|
107
111
|
});
|
|
108
|
-
},
|
|
109
|
-
|
|
110
|
-
const m =
|
|
112
|
+
}, et = (l) => {
|
|
113
|
+
_.set(M, (p) => {
|
|
114
|
+
const m = p.detail.selectedRows, u = Math.min(m.length, S.totalRowsCount), h = p.target, f = r(h), C = m.map(r), I = {
|
|
111
115
|
tableAttrs: n,
|
|
112
|
-
...
|
|
113
|
-
target:
|
|
116
|
+
...f,
|
|
117
|
+
target: h,
|
|
114
118
|
selectCount: u,
|
|
115
119
|
selection: C
|
|
116
120
|
};
|
|
117
|
-
t.dispatchPanelEvent(l,
|
|
121
|
+
t.dispatchPanelEvent(l, I);
|
|
118
122
|
});
|
|
119
|
-
},
|
|
120
|
-
t.listen(e, o.eventTableRowSelect, (
|
|
121
|
-
const m =
|
|
123
|
+
}, nt = (l) => {
|
|
124
|
+
t.listen(e, o.eventTableRowSelect, (p) => {
|
|
125
|
+
const m = p.target, u = p.detail.selectedRows || [], h = u.length, f = u.map(r), C = r(m), I = {
|
|
122
126
|
tableAttrs: n,
|
|
123
127
|
...C,
|
|
124
|
-
selectCount:
|
|
125
|
-
selection:
|
|
128
|
+
selectCount: h,
|
|
129
|
+
selection: f,
|
|
126
130
|
target: m
|
|
127
131
|
};
|
|
128
|
-
t.dispatchPanelEvent(l,
|
|
132
|
+
t.dispatchPanelEvent(l, I);
|
|
129
133
|
});
|
|
130
|
-
},
|
|
134
|
+
}, ot = () => {
|
|
131
135
|
t.listen(e, o.eventBeforeSort, (l) => {
|
|
132
|
-
const
|
|
133
|
-
l.cancelBubble = !0, l.stopPropagation(), l.preventDefault(),
|
|
134
|
-
D ===
|
|
136
|
+
const p = l.target, m = l.detail.oldSortDirection, u = l.detail.sortDirection, h = r(p), f = h.sortField, C = u === Dt.TABLE_SORT_DIRECTION.DESCENDING ? `-${f}` : f;
|
|
137
|
+
l.cancelBubble = !0, l.stopPropagation(), l.preventDefault(), O.innerHTML = "", d && d.show(), x.forEach((D, v) => {
|
|
138
|
+
D === p ? (D.setAttribute("sort-active", "true"), D.setAttribute("sort-direction", u)) : (D.removeAttribute("sort-active"), D.setAttribute("sort-direction", "none"));
|
|
135
139
|
});
|
|
136
|
-
const
|
|
137
|
-
c.fetchData(
|
|
138
|
-
|
|
139
|
-
}),
|
|
140
|
+
const I = { ordering: C };
|
|
141
|
+
c.fetchData(I).then(() => {
|
|
142
|
+
a.setData(c), d && d.hide();
|
|
143
|
+
}), _.has(R) && _.get(R)({
|
|
140
144
|
tableAttrs: n,
|
|
141
|
-
...
|
|
145
|
+
...h,
|
|
142
146
|
sortNow: u,
|
|
143
147
|
sortWas: m,
|
|
144
|
-
sortField:
|
|
148
|
+
sortField: f,
|
|
145
149
|
ordering: C,
|
|
146
|
-
target:
|
|
150
|
+
target: p
|
|
147
151
|
});
|
|
148
152
|
});
|
|
149
|
-
},
|
|
153
|
+
}, st = () => {
|
|
150
154
|
t.listen(e, o.eventTableRowSelectAll, (l) => {
|
|
151
|
-
l.detail.selectedRows.length === 0 && e.querySelectorAll(o.selectorTableRow).forEach((
|
|
152
|
-
|
|
153
|
-
}),
|
|
155
|
+
l.detail.selectedRows.length === 0 && e.querySelectorAll(o.selectorTableRow).forEach((p) => {
|
|
156
|
+
p.disabled = !1, p.selected = !1;
|
|
157
|
+
}), _.has(M) && _.get(M)(l);
|
|
154
158
|
});
|
|
155
|
-
},
|
|
159
|
+
}, it = () => {
|
|
156
160
|
t.listen(e, o.eventBeforeChangeSelectionAll, (l) => {
|
|
157
161
|
l.stopPropagation(), l.detail.callback && l.detail.callback();
|
|
158
162
|
});
|
|
159
|
-
},
|
|
160
|
-
const
|
|
163
|
+
}, ct = (l) => {
|
|
164
|
+
const p = e.querySelector("cds-table-header-row");
|
|
161
165
|
t.listen(l, i.eventClickSelectAll, (m) => {
|
|
162
|
-
m.stopPropagation(),
|
|
166
|
+
m.stopPropagation(), p.dispatchEvent(new CustomEvent(o.eventBeforeChangeSelectionAll, {
|
|
163
167
|
bubbles: !0,
|
|
164
168
|
cancelable: !0,
|
|
165
169
|
composed: !0,
|
|
@@ -173,111 +177,142 @@ const gt = () => import("./index-Dh4LYLg5.js"), G = () => import("./index-CTsGb3
|
|
|
173
177
|
}
|
|
174
178
|
}));
|
|
175
179
|
});
|
|
176
|
-
},
|
|
177
|
-
t.listen(l, "keydown", (
|
|
178
|
-
if (
|
|
179
|
-
|
|
180
|
+
}, at = (l) => {
|
|
181
|
+
t.listen(l, "keydown", (p) => {
|
|
182
|
+
if (p.key === "Enter") {
|
|
183
|
+
d && d.show(), a.totalItems = 0, e.querySelector("cds-table-body").replaceChildren();
|
|
180
184
|
const u = { search: l.value || "", offset: 0 };
|
|
181
185
|
c.fetchData(u).then(() => {
|
|
182
|
-
|
|
186
|
+
a.setData(c), d && d.hide();
|
|
183
187
|
});
|
|
184
188
|
}
|
|
185
189
|
});
|
|
186
|
-
},
|
|
187
|
-
t.listen(l, o.eventSearchInput, (
|
|
188
|
-
if ((
|
|
190
|
+
}, rt = (l) => {
|
|
191
|
+
t.listen(l, o.eventSearchInput, (p) => {
|
|
192
|
+
if ((p.detail.value || "") === "") {
|
|
189
193
|
const u = { search: "", offset: 0 };
|
|
190
|
-
|
|
191
|
-
|
|
194
|
+
d && d.show(), c.fetchData(u).then(() => {
|
|
195
|
+
d && d.hide(), a.setData(c);
|
|
192
196
|
});
|
|
193
197
|
}
|
|
194
198
|
});
|
|
195
|
-
},
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
199
|
+
}, lt = (l) => {
|
|
200
|
+
l.caret = !1;
|
|
201
|
+
const p = l.querySelector("cds-icon-button, button:not([slot])"), m = l.querySelectorAll("cds-checkbox"), u = l.querySelectorAll("cds-modal-footer-button"), h = [...l.querySelectorAll("cds-checkbox-group")].map(r).map(St("noop", ["zoo", "filter", "field"])).reduce(
|
|
202
|
+
(v, g) => (v[g] = null, v),
|
|
203
|
+
{ offset: 0 }
|
|
204
|
+
);
|
|
205
|
+
if (!p || !u) {
|
|
206
|
+
console.error("Improperly configured Batch Filter popover");
|
|
207
|
+
return;
|
|
208
|
+
}
|
|
209
|
+
new MutationObserver(() => {
|
|
201
210
|
l.classList.toggle("cds--overflow-menu--open", l.open);
|
|
202
211
|
}).observe(l, {
|
|
203
212
|
attributes: !0,
|
|
204
213
|
attributeFilter: ["open"]
|
|
205
214
|
});
|
|
206
|
-
|
|
207
|
-
|
|
215
|
+
const f = Symbol(), C = Symbol(), I = [...u].reduce((v, g, N) => (g.hasAttribute("reset-filter") && v.set(f, g), g.hasAttribute("apply-filter") && v.set(C, g), v), /* @__PURE__ */ new Map()), D = () => {
|
|
216
|
+
const v = /* @__PURE__ */ new Map();
|
|
217
|
+
return m.forEach((g) => {
|
|
218
|
+
const N = g.getAttribute("id");
|
|
219
|
+
if (!N || !N.includes(":")) return;
|
|
220
|
+
const [k, T] = N.split(":");
|
|
221
|
+
v.has(k) || v.set(k, []), g.checked && v.get(k).push(T);
|
|
222
|
+
}), v;
|
|
223
|
+
};
|
|
224
|
+
if (I.has(f)) {
|
|
225
|
+
const v = (g) => g.checked = !1;
|
|
226
|
+
t.listen(I.get(f), "click", (g) => {
|
|
227
|
+
g.stopPropagation(), m.forEach(v), d && d.show(), c.fetchData(h).then(() => {
|
|
228
|
+
a && a.setData(c), d && d.hide(), l.open = !1;
|
|
229
|
+
});
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
I.has(C) && t.listen(I.get(C), "click", (v) => {
|
|
233
|
+
v.stopPropagation();
|
|
234
|
+
const g = [...D()].reduce((N, [k, T]) => (N[k] = T === [] ? null : T, N), { offset: 0 });
|
|
235
|
+
d && d.show(), c.fetchData(g).then(() => {
|
|
236
|
+
a && a.setData(c), d && d.hide(), l.open = !1;
|
|
237
|
+
});
|
|
238
|
+
}), t.listen(p, "click", (v) => {
|
|
239
|
+
v.stopPropagation(), l.open = !l.open, l.classList.toggle("cds--overflow-menu--open", l.open);
|
|
240
|
+
});
|
|
241
|
+
}, dt = () => {
|
|
242
|
+
t.listen(a, s.eventPageSizeChanged, (l) => {
|
|
208
243
|
const m = {
|
|
209
|
-
limit:
|
|
244
|
+
limit: a.pageSize,
|
|
210
245
|
offset: 0
|
|
211
246
|
};
|
|
212
247
|
c.fetchData(m).then(() => {
|
|
213
|
-
|
|
248
|
+
a.setData(c);
|
|
214
249
|
});
|
|
215
250
|
});
|
|
216
|
-
},
|
|
251
|
+
}, pt = () => {
|
|
217
252
|
let l = null;
|
|
218
|
-
t.listen(
|
|
219
|
-
const { page: m } =
|
|
220
|
-
if (
|
|
221
|
-
l =
|
|
222
|
-
const
|
|
223
|
-
c.fetchData(
|
|
224
|
-
|
|
253
|
+
t.listen(a, s.eventChangeCurrent, (p) => {
|
|
254
|
+
const { page: m } = p.detail, u = a.pageSize, h = (m - 1) * u;
|
|
255
|
+
if (h !== l) {
|
|
256
|
+
l = h;
|
|
257
|
+
const f = { limit: u, offset: h };
|
|
258
|
+
c.fetchData(f).then(() => {
|
|
259
|
+
a.setData(c), d && d.hide();
|
|
225
260
|
});
|
|
226
261
|
}
|
|
227
262
|
});
|
|
228
263
|
};
|
|
229
|
-
c &&
|
|
230
|
-
const
|
|
231
|
-
|
|
232
|
-
const
|
|
264
|
+
c && a && (dt(), pt()), c && b && (at(b), rt(b));
|
|
265
|
+
const F = P.querySelectorAll("cds-popover[data-batch-filter]");
|
|
266
|
+
c && F && F.forEach(lt), e.isSelectable && (st(), it(), S && ct(S)), c && J && ot();
|
|
267
|
+
const G = {
|
|
233
268
|
zoo: {
|
|
234
269
|
event: {
|
|
235
270
|
row: {
|
|
236
|
-
click:
|
|
237
|
-
expand:
|
|
271
|
+
click: K,
|
|
272
|
+
expand: Q,
|
|
238
273
|
check: {
|
|
239
|
-
one:
|
|
240
|
-
all:
|
|
274
|
+
one: nt,
|
|
275
|
+
all: et
|
|
241
276
|
}
|
|
242
277
|
},
|
|
243
278
|
column: {
|
|
244
|
-
sort:
|
|
279
|
+
sort: tt
|
|
245
280
|
}
|
|
246
281
|
}
|
|
247
282
|
}
|
|
248
283
|
};
|
|
249
|
-
|
|
250
|
-
|
|
284
|
+
ft(n).forEach(([l, p]) => {
|
|
285
|
+
gt(l, G) && Et(l, G)(p);
|
|
251
286
|
});
|
|
252
|
-
},
|
|
287
|
+
}, _t = (t) => {
|
|
253
288
|
const e = document.createElement("cds-pagination");
|
|
254
289
|
return e.backwardText = "Previous page", e.forwardText = "Next page", e.itemsPerPageText = "Items per page:", e.pageSize = t.limit, e.size = "lg", [10, 25, 50, 100, 500].forEach((n) => {
|
|
255
290
|
const o = document.createElement("cds-select-item");
|
|
256
291
|
o.value = n.toString(), o.textContent = n.toString(), e.appendChild(o);
|
|
257
292
|
}), e.setData = (n) => {
|
|
258
293
|
if (n.isPaginated) {
|
|
259
|
-
const { count: o } =
|
|
260
|
-
e.pagesUnknown = s > i, e.totalItems = o;
|
|
294
|
+
const { count: o } = It(["count"], n.data), s = Math.ceil(o / n.limit), i = 100;
|
|
295
|
+
e.pagesUnknown = s > i, e.totalItems = o, e.pagesUnknown ? e.formatStatusWithIndeterminateTotal = ({ start: c, end: a }) => `${c}–${a} of ${o} item${o <= 1 ? "" : "s"}` : delete e.formatStatusWithIndeterminateTotal;
|
|
261
296
|
}
|
|
262
297
|
}, e;
|
|
263
|
-
},
|
|
298
|
+
}, kt = (t) => {
|
|
264
299
|
if (!t.parentNode) {
|
|
265
300
|
console.error("[Carbon Table] Cannot create skeleton: table has no parent node");
|
|
266
301
|
return;
|
|
267
302
|
}
|
|
268
|
-
const e = !!t.querySelector("cds-table-header-title"), n = !!t.querySelector("cds-table-header-description"), o = !!t.querySelector("cds-table-toolbar"), s = [...t.querySelectorAll("cds-table-header-cell")].length, i = t.hasAttribute("zebra"), c = t.getAttribute("size"),
|
|
269
|
-
|
|
270
|
-
const
|
|
271
|
-
return
|
|
272
|
-
},
|
|
303
|
+
const e = !!t.querySelector("cds-table-header-title"), n = !!t.querySelector("cds-table-header-description"), o = !!t.querySelector("cds-table-toolbar"), s = [...t.querySelectorAll("cds-table-header-cell")].length, i = t.hasAttribute("zebra"), c = t.getAttribute("size"), a = document.createElement("cds-table-skeleton");
|
|
304
|
+
a.showHeader = e || n, a.showToolbar = o, a.zebra = i, a.columnCount = s, a.size = c, a.show = () => a.classList.remove("hidden"), a.hide = () => a.classList.add("hidden");
|
|
305
|
+
const d = document.createElement("div");
|
|
306
|
+
return d.classList.add("zoo-datatable-skeleton-wrapper"), t.parentNode.insertBefore(d, t), d.appendChild(a), d.appendChild(t), a;
|
|
307
|
+
}, yt = (t, e) => {
|
|
273
308
|
const n = e.getAttribute("zoo-url-api"), o = parseInt(e.getAttribute("data-page-size") || 25, 10);
|
|
274
309
|
if (n)
|
|
275
|
-
return new
|
|
310
|
+
return new vt(t, n, e, {
|
|
276
311
|
urlParams: { limit: o }
|
|
277
312
|
});
|
|
278
|
-
},
|
|
313
|
+
}, Tt = {
|
|
279
314
|
selector: "cds-table",
|
|
280
|
-
import: [
|
|
315
|
+
import: [Nt, Y],
|
|
281
316
|
/**
|
|
282
317
|
* Initialize a Carbon data table component.
|
|
283
318
|
*
|
|
@@ -308,27 +343,27 @@ const gt = () => import("./index-Dh4LYLg5.js"), G = () => import("./index-CTsGb3
|
|
|
308
343
|
* @this {Panel} The panel instance
|
|
309
344
|
*/
|
|
310
345
|
init: function(t) {
|
|
311
|
-
const e =
|
|
312
|
-
if (
|
|
346
|
+
const e = r(t), n = this, o = yt(n, t);
|
|
347
|
+
if (ht(o)) {
|
|
313
348
|
t.dataBinder = o;
|
|
314
|
-
const s =
|
|
349
|
+
const s = kt(t);
|
|
315
350
|
t.skeleton = s;
|
|
316
|
-
const i =
|
|
351
|
+
const i = _t(o);
|
|
317
352
|
t.pagination = i, t.after(i), o.fetchData().then((c) => {
|
|
318
|
-
s.hide(), i.setData(o),
|
|
353
|
+
s.hide(), i.setData(o), V(n, t, e);
|
|
319
354
|
});
|
|
320
355
|
} else
|
|
321
|
-
|
|
356
|
+
V(n, t, e);
|
|
322
357
|
}
|
|
323
|
-
},
|
|
358
|
+
}, A = () => import("./index-BYHXKkvf.js"), wt = {
|
|
324
359
|
selector: "cds-modal",
|
|
325
|
-
import:
|
|
360
|
+
import: A,
|
|
326
361
|
/**
|
|
327
362
|
* @param {CDSModal} modal - The CDSModal custom element instance
|
|
328
363
|
* @this {Panel} The panel instance
|
|
329
364
|
*/
|
|
330
365
|
init: function(t) {
|
|
331
|
-
const e = customElements.get("cds-modal"), n =
|
|
366
|
+
const e = customElements.get("cds-modal"), n = r(t), o = E(t, "open-event", "event");
|
|
332
367
|
o && this.listen(t, "cds-modal-beingopened", (c) => {
|
|
333
368
|
this.dispatchPanelEvent(o, {
|
|
334
369
|
...n,
|
|
@@ -349,7 +384,7 @@ const gt = () => import("./index-Dh4LYLg5.js"), G = () => import("./index-CTsGb3
|
|
|
349
384
|
triggeredBy: c.detail?.triggeredBy
|
|
350
385
|
});
|
|
351
386
|
});
|
|
352
|
-
const i =
|
|
387
|
+
const i = E(t, "primary-event", "event");
|
|
353
388
|
i && this.listen(t, "cds-modal-primary-focus", (c) => {
|
|
354
389
|
this.dispatchPanelEvent(i, {
|
|
355
390
|
...n,
|
|
@@ -357,39 +392,39 @@ const gt = () => import("./index-Dh4LYLg5.js"), G = () => import("./index-CTsGb3
|
|
|
357
392
|
});
|
|
358
393
|
});
|
|
359
394
|
}
|
|
360
|
-
},
|
|
395
|
+
}, Ot = {
|
|
361
396
|
"cds-modal-header": {
|
|
362
|
-
import:
|
|
397
|
+
import: A
|
|
363
398
|
// No event handling - presentational header wrapper
|
|
364
399
|
},
|
|
365
400
|
"cds-modal-heading": {
|
|
366
|
-
import:
|
|
401
|
+
import: A
|
|
367
402
|
// No event handling - presentational heading element
|
|
368
403
|
},
|
|
369
404
|
"cds-modal-label": {
|
|
370
|
-
import:
|
|
405
|
+
import: A
|
|
371
406
|
// No event handling - presentational label element
|
|
372
407
|
},
|
|
373
408
|
"cds-modal-close-button": {
|
|
374
|
-
import:
|
|
409
|
+
import: A
|
|
375
410
|
// No event handling - close button handled by modal itself via data-modal-close
|
|
376
411
|
},
|
|
377
412
|
"cds-modal-body": {
|
|
378
|
-
import:
|
|
413
|
+
import: A
|
|
379
414
|
// No event handling - presentational body wrapper
|
|
380
415
|
},
|
|
381
416
|
"cds-modal-body-content": {
|
|
382
|
-
import:
|
|
417
|
+
import: A
|
|
383
418
|
// No event handling - presentational content wrapper
|
|
384
419
|
},
|
|
385
420
|
"cds-modal-footer": {
|
|
386
|
-
import:
|
|
421
|
+
import: A
|
|
387
422
|
// No event handling - presentational footer wrapper
|
|
388
423
|
},
|
|
389
424
|
"cds-modal-footer-button": {
|
|
390
|
-
import:
|
|
425
|
+
import: A,
|
|
391
426
|
init: function(t) {
|
|
392
|
-
const e =
|
|
427
|
+
const e = r(t);
|
|
393
428
|
if (t.getAttribute("type") === "submit") {
|
|
394
429
|
this.listen(t, "click", (s) => {
|
|
395
430
|
let i = t.closest("form");
|
|
@@ -407,22 +442,22 @@ const gt = () => import("./index-Dh4LYLg5.js"), G = () => import("./index-CTsGb3
|
|
|
407
442
|
});
|
|
408
443
|
}
|
|
409
444
|
}
|
|
410
|
-
},
|
|
445
|
+
}, $ = () => import("./index-BEyCs2cc.js"), Rt = {
|
|
411
446
|
selector: "cds-menu",
|
|
412
|
-
import:
|
|
447
|
+
import: $,
|
|
413
448
|
/**
|
|
414
449
|
* @param {CDSMenu} menu - The CDSMenu custom element instance
|
|
415
450
|
* @this {Panel} The panel instance
|
|
416
451
|
*/
|
|
417
452
|
init: function(t) {
|
|
418
|
-
const e =
|
|
453
|
+
const e = r(t), n = E(t, "open-event");
|
|
419
454
|
n && this.listen(t, "cds-menu-opened", (s) => {
|
|
420
455
|
this.dispatchPanelEvent(n, {
|
|
421
456
|
...e,
|
|
422
457
|
action: "opened"
|
|
423
458
|
});
|
|
424
459
|
});
|
|
425
|
-
const o =
|
|
460
|
+
const o = E(t, "close-event");
|
|
426
461
|
o && this.listen(t, "cds-menu-closed", (s) => {
|
|
427
462
|
this.dispatchPanelEvent(o, {
|
|
428
463
|
...e,
|
|
@@ -430,33 +465,33 @@ const gt = () => import("./index-Dh4LYLg5.js"), G = () => import("./index-CTsGb3
|
|
|
430
465
|
});
|
|
431
466
|
}), this.listen(t, "click", (s) => {
|
|
432
467
|
if (s.target.tagName === "CDS-MENU-ITEM") {
|
|
433
|
-
const i =
|
|
468
|
+
const i = r(s.target), c = i.event || e.event;
|
|
434
469
|
c && (s.stopPropagation(), this.dispatchPanelEvent(c, {
|
|
435
470
|
...e,
|
|
436
471
|
...i
|
|
437
472
|
}));
|
|
438
473
|
}
|
|
439
474
|
}), this.listen(t, "cds-item-changed", (s) => {
|
|
440
|
-
const i = s.detail.triggeredBy, c =
|
|
441
|
-
|
|
475
|
+
const i = s.detail.triggeredBy, c = r(i), a = c.event || e.event;
|
|
476
|
+
a && this.dispatchPanelEvent(a, {
|
|
442
477
|
...e,
|
|
443
478
|
...c,
|
|
444
479
|
action: "selection-changed"
|
|
445
480
|
});
|
|
446
481
|
});
|
|
447
482
|
}
|
|
448
|
-
},
|
|
483
|
+
}, Mt = {
|
|
449
484
|
"cds-menu-button": {
|
|
450
|
-
import:
|
|
485
|
+
import: $,
|
|
451
486
|
/**
|
|
452
487
|
* @param {CDSMenuButton} menuButton - The CDSMenuButton custom element instance
|
|
453
488
|
* @this {Panel} The panel instance
|
|
454
489
|
*/
|
|
455
490
|
init: function(t) {
|
|
456
|
-
const e =
|
|
491
|
+
const e = r(t), n = t.querySelector("cds-menu");
|
|
457
492
|
n && this.listen(n, "click", (o) => {
|
|
458
493
|
if (o.target.tagName === "CDS-MENU-ITEM") {
|
|
459
|
-
const s =
|
|
494
|
+
const s = r(o.target), i = s.event || e.event;
|
|
460
495
|
i && (o.stopPropagation(), this.dispatchPanelEvent(i, {
|
|
461
496
|
...e,
|
|
462
497
|
...s
|
|
@@ -465,15 +500,15 @@ const gt = () => import("./index-Dh4LYLg5.js"), G = () => import("./index-CTsGb3
|
|
|
465
500
|
});
|
|
466
501
|
}
|
|
467
502
|
}
|
|
468
|
-
},
|
|
503
|
+
}, X = () => import("./index-Bh3jqbKV.js"), j = () => import("./index-CwpgmKTP.js").then((t) => t.i), Bt = () => import("./index-Byf_K1x1.js"), zt = () => import("./index-Czs-UAWh.js"), Lt = {
|
|
469
504
|
selector: "cds-button",
|
|
470
|
-
import:
|
|
505
|
+
import: X,
|
|
471
506
|
/**
|
|
472
507
|
* @param {CDSButton} button - The CDSButton custom element instance
|
|
473
508
|
* @this {Panel} The panel instance
|
|
474
509
|
*/
|
|
475
510
|
init: function(t) {
|
|
476
|
-
const e =
|
|
511
|
+
const e = r(t);
|
|
477
512
|
if (t.getAttribute("type") === "submit") {
|
|
478
513
|
this.listen(t, "click", (s) => {
|
|
479
514
|
let i = t.closest("form");
|
|
@@ -487,22 +522,22 @@ const gt = () => import("./index-Dh4LYLg5.js"), G = () => import("./index-CTsGb3
|
|
|
487
522
|
}
|
|
488
523
|
const o = e.event;
|
|
489
524
|
o && this.listen(t, "click", (s) => {
|
|
490
|
-
s.stopPropagation(), this.dispatchPanelEvent(o,
|
|
525
|
+
s.stopPropagation(), this.dispatchPanelEvent(o, r(t));
|
|
491
526
|
});
|
|
492
527
|
}
|
|
493
|
-
},
|
|
528
|
+
}, qt = {
|
|
494
529
|
// Icon Button (non-toggle)
|
|
495
530
|
"cds-icon-button:not([data-toggle])": {
|
|
496
|
-
import:
|
|
531
|
+
import: j,
|
|
497
532
|
event: "click",
|
|
498
533
|
getData: (t, e) => e
|
|
499
534
|
},
|
|
500
535
|
// Icon Toggle - Toggles Carbon's built-in isSelected state for ghost icon buttons
|
|
501
536
|
// Visual styling (subtle background change) is handled by Carbon's CSS
|
|
502
537
|
"cds-icon-button[data-toggle]": {
|
|
503
|
-
import:
|
|
538
|
+
import: j,
|
|
504
539
|
init: function(t) {
|
|
505
|
-
const e =
|
|
540
|
+
const e = r(t);
|
|
506
541
|
e.event && this.listen(t, "click", (n) => {
|
|
507
542
|
n.stopPropagation(), t.isSelected = !t.isSelected, this.dispatchPanelEvent(e.event, {
|
|
508
543
|
...e,
|
|
@@ -513,15 +548,15 @@ const gt = () => import("./index-Dh4LYLg5.js"), G = () => import("./index-CTsGb3
|
|
|
513
548
|
},
|
|
514
549
|
// FAB (Floating Action Button) - just a styled button
|
|
515
550
|
"cds-button[data-fab]": {
|
|
516
|
-
import:
|
|
551
|
+
import: X,
|
|
517
552
|
event: "click",
|
|
518
553
|
getData: (t, e) => e
|
|
519
554
|
},
|
|
520
555
|
// Copy Button - Button that copies text to clipboard
|
|
521
556
|
"cds-copy-button": {
|
|
522
|
-
import:
|
|
557
|
+
import: zt,
|
|
523
558
|
init: function(t) {
|
|
524
|
-
const e =
|
|
559
|
+
const e = r(t), n = e.event;
|
|
525
560
|
n && this.listen(t, "click", (s) => {
|
|
526
561
|
s.stopPropagation(), this.dispatchPanelEvent(n, {
|
|
527
562
|
...e,
|
|
@@ -545,11 +580,11 @@ const gt = () => import("./index-Dh4LYLg5.js"), G = () => import("./index-CTsGb3
|
|
|
545
580
|
},
|
|
546
581
|
// Combo Button - composed of button + menu
|
|
547
582
|
"cds-combo-button": {
|
|
548
|
-
import:
|
|
583
|
+
import: Bt,
|
|
549
584
|
init: function(t) {
|
|
550
|
-
const e =
|
|
585
|
+
const e = r(t);
|
|
551
586
|
e.event && this.listen(t, "click", (o) => {
|
|
552
|
-
const s = o.composedPath(), i = s.some((
|
|
587
|
+
const s = o.composedPath(), i = s.some((a) => a.tagName === "CDS-MENU-ITEM"), c = s.some((a) => a.tagName === "CDS-ICON-BUTTON");
|
|
553
588
|
!i && !c && (o.stopPropagation(), this.dispatchPanelEvent(e.event, {
|
|
554
589
|
...e,
|
|
555
590
|
action: "primary"
|
|
@@ -558,7 +593,7 @@ const gt = () => import("./index-Dh4LYLg5.js"), G = () => import("./index-CTsGb3
|
|
|
558
593
|
const n = t.querySelector("cds-menu");
|
|
559
594
|
n && this.listen(n, "click", (o) => {
|
|
560
595
|
if (o.target.tagName === "CDS-MENU-ITEM") {
|
|
561
|
-
const s =
|
|
596
|
+
const s = r(o.target), i = s.event || E(t, "menu-event", "event");
|
|
562
597
|
i && this.dispatchPanelEvent(i, {
|
|
563
598
|
...e,
|
|
564
599
|
...s,
|
|
@@ -568,15 +603,15 @@ const gt = () => import("./index-Dh4LYLg5.js"), G = () => import("./index-CTsGb3
|
|
|
568
603
|
});
|
|
569
604
|
}
|
|
570
605
|
}
|
|
571
|
-
},
|
|
606
|
+
}, xt = () => import("./index-DDUqY4Rl.js"), Ft = () => import("./index-BwhAoVy-.js"), Gt = () => import("./index-BrqEja9V.js"), Ut = {
|
|
572
607
|
selector: "cds-dropdown",
|
|
573
|
-
import:
|
|
608
|
+
import: xt,
|
|
574
609
|
/**
|
|
575
610
|
* @param {CDSDropdown} dropdown - The CDSDropdown custom element instance
|
|
576
611
|
* @this {Panel} The panel instance
|
|
577
612
|
*/
|
|
578
613
|
init: function(t) {
|
|
579
|
-
const e = customElements.get("cds-dropdown"), n =
|
|
614
|
+
const e = customElements.get("cds-dropdown"), n = r(t), o = n.event;
|
|
580
615
|
o && this.listen(t, e.eventSelect, (i) => {
|
|
581
616
|
this.dispatchPanelEvent(o, {
|
|
582
617
|
...n,
|
|
@@ -593,16 +628,16 @@ const gt = () => import("./index-Dh4LYLg5.js"), G = () => import("./index-CTsGb3
|
|
|
593
628
|
});
|
|
594
629
|
});
|
|
595
630
|
}
|
|
596
|
-
},
|
|
631
|
+
}, Vt = {
|
|
597
632
|
// Combo Box
|
|
598
633
|
"cds-combo-box": {
|
|
599
|
-
import:
|
|
634
|
+
import: Ft,
|
|
600
635
|
/**
|
|
601
636
|
* @param {CDSComboBox} comboBox - The CDSComboBox custom element instance
|
|
602
637
|
* @this {Panel} The panel instance
|
|
603
638
|
*/
|
|
604
639
|
init: function(t) {
|
|
605
|
-
const e = customElements.get("cds-combo-box"), n =
|
|
640
|
+
const e = customElements.get("cds-combo-box"), n = r(t), o = n.event;
|
|
606
641
|
o && this.listen(t, e.eventSelect, (i) => {
|
|
607
642
|
const c = i.detail?.item;
|
|
608
643
|
this.dispatchPanelEvent(o, {
|
|
@@ -623,13 +658,13 @@ const gt = () => import("./index-Dh4LYLg5.js"), G = () => import("./index-CTsGb3
|
|
|
623
658
|
},
|
|
624
659
|
// Multi Select
|
|
625
660
|
"cds-multi-select": {
|
|
626
|
-
import:
|
|
661
|
+
import: Gt,
|
|
627
662
|
/**
|
|
628
663
|
* @param {CDSMultiSelect} multiSelect - The CDSMultiSelect custom element instance
|
|
629
664
|
* @this {Panel} The panel instance
|
|
630
665
|
*/
|
|
631
666
|
init: function(t) {
|
|
632
|
-
const e = customElements.get("cds-multi-select"), n =
|
|
667
|
+
const e = customElements.get("cds-multi-select"), n = r(t), o = n.event;
|
|
633
668
|
o && this.listen(t, e.eventSelect, (i) => {
|
|
634
669
|
const c = t.value ? t.value.split(",") : [];
|
|
635
670
|
this.dispatchPanelEvent(o, {
|
|
@@ -646,51 +681,51 @@ const gt = () => import("./index-Dh4LYLg5.js"), G = () => import("./index-CTsGb3
|
|
|
646
681
|
});
|
|
647
682
|
}
|
|
648
683
|
}
|
|
649
|
-
},
|
|
684
|
+
}, jt = () => import("./index-Bk2MEnMu.js"), Ht = () => import("./index-tdmIA8Xp.js"), Wt = {
|
|
650
685
|
selector: "cds-date-picker",
|
|
651
|
-
import:
|
|
686
|
+
import: jt,
|
|
652
687
|
/**
|
|
653
688
|
* @param {CDSDatePicker} datePicker - The CDSDatePicker custom element instance
|
|
654
689
|
* @this {Panel} The panel instance
|
|
655
690
|
*/
|
|
656
691
|
init: function(t) {
|
|
657
|
-
const e = customElements.get("cds-date-picker"), n =
|
|
658
|
-
c && this.listen(t, e.eventChange, (
|
|
659
|
-
let
|
|
660
|
-
i ?
|
|
692
|
+
const e = customElements.get("cds-date-picker"), n = r(t), o = t.querySelector('cds-date-picker-input[kind="from"]'), s = t.querySelector('cds-date-picker-input[kind="to"]'), i = o && s, c = n.event;
|
|
693
|
+
c && this.listen(t, e.eventChange, (d) => {
|
|
694
|
+
let b;
|
|
695
|
+
i ? b = {
|
|
661
696
|
from: o.value || "",
|
|
662
697
|
to: s.value || ""
|
|
663
|
-
} :
|
|
698
|
+
} : b = t.value, this.dispatchPanelEvent(c, {
|
|
664
699
|
...n,
|
|
665
|
-
value:
|
|
700
|
+
value: b
|
|
666
701
|
});
|
|
667
702
|
});
|
|
668
|
-
const
|
|
669
|
-
|
|
670
|
-
this.dispatchPanelEvent(
|
|
703
|
+
const a = t.getAttribute("error-event");
|
|
704
|
+
a && this.listen(t, e.eventFlatpickrError, (d) => {
|
|
705
|
+
this.dispatchPanelEvent(a, {
|
|
671
706
|
...n,
|
|
672
|
-
error:
|
|
707
|
+
error: d.detail
|
|
673
708
|
});
|
|
674
709
|
});
|
|
675
710
|
}
|
|
676
|
-
},
|
|
711
|
+
}, Yt = {
|
|
677
712
|
"cds-time-picker": {
|
|
678
|
-
import:
|
|
713
|
+
import: Ht,
|
|
679
714
|
event: "cds-time-picker-changed",
|
|
680
715
|
getData: (t, e, n) => ({
|
|
681
716
|
...e,
|
|
682
717
|
value: n.value
|
|
683
718
|
})
|
|
684
719
|
}
|
|
685
|
-
},
|
|
720
|
+
}, $t = () => import("./index-BODxU-Mu.js"), Xt = {
|
|
686
721
|
selector: "cds-file-uploader",
|
|
687
|
-
import:
|
|
722
|
+
import: $t,
|
|
688
723
|
/**
|
|
689
724
|
* @param {CDSFileUploader} uploader - The CDSFileUploader custom element instance
|
|
690
725
|
* @this {Panel} The panel instance
|
|
691
726
|
*/
|
|
692
727
|
init: function(t) {
|
|
693
|
-
const e =
|
|
728
|
+
const e = r(t), n = e.event;
|
|
694
729
|
if (n) {
|
|
695
730
|
const s = t.querySelector('input[type="file"]');
|
|
696
731
|
s && this.listen(s, "change", (i) => {
|
|
@@ -709,15 +744,15 @@ const gt = () => import("./index-Dh4LYLg5.js"), G = () => import("./index-CTsGb3
|
|
|
709
744
|
});
|
|
710
745
|
});
|
|
711
746
|
}
|
|
712
|
-
},
|
|
747
|
+
}, Zt = () => import("./index-nfJ9ioGW.js"), Jt = () => import("./index-BTUYIkmg.js"), Kt = () => import("./index-xipeWGGU.js"), Qt = {
|
|
713
748
|
selector: "cds-tabs",
|
|
714
|
-
import:
|
|
749
|
+
import: Zt,
|
|
715
750
|
/**
|
|
716
751
|
* @param {CDSTabs} tabs - The CDSTabs custom element instance
|
|
717
752
|
* @this {Panel} The panel instance
|
|
718
753
|
*/
|
|
719
754
|
init: function(t) {
|
|
720
|
-
const e = customElements.get("cds-tabs"), n =
|
|
755
|
+
const e = customElements.get("cds-tabs"), n = r(t), o = t.getAttribute("before-select-event");
|
|
721
756
|
o && this.listen(t, e.eventBeforeSelect, (i) => {
|
|
722
757
|
this.dispatchPanelEvent(o, {
|
|
723
758
|
...n,
|
|
@@ -727,31 +762,31 @@ const gt = () => import("./index-Dh4LYLg5.js"), G = () => import("./index-CTsGb3
|
|
|
727
762
|
});
|
|
728
763
|
const s = n.event;
|
|
729
764
|
s && this.listen(t, e.eventSelect, (i) => {
|
|
730
|
-
const c = i.detail.item,
|
|
765
|
+
const c = i.detail.item, a = r(c);
|
|
731
766
|
this.dispatchPanelEvent(s, {
|
|
732
767
|
...n,
|
|
733
|
-
...
|
|
768
|
+
...a,
|
|
734
769
|
tabValue: i.detail.value
|
|
735
770
|
});
|
|
736
771
|
});
|
|
737
772
|
}
|
|
738
|
-
},
|
|
773
|
+
}, te = {
|
|
739
774
|
// Accordion
|
|
740
775
|
"cds-accordion": {
|
|
741
|
-
import:
|
|
776
|
+
import: Jt,
|
|
742
777
|
/**
|
|
743
778
|
* @param {CDSAccordion} accordion - The CDSAccordion custom element instance
|
|
744
779
|
* @this {Panel} The panel instance
|
|
745
780
|
*/
|
|
746
781
|
init: function(t) {
|
|
747
|
-
const e = customElements.get("cds-accordion-item"), n =
|
|
782
|
+
const e = customElements.get("cds-accordion-item"), n = r(t);
|
|
748
783
|
[...t.querySelectorAll("cds-accordion-item")].forEach((s) => {
|
|
749
|
-
const i =
|
|
750
|
-
c && this.listen(s, e.eventToggle, (
|
|
784
|
+
const i = r(s), c = i.event || n.event;
|
|
785
|
+
c && this.listen(s, e.eventToggle, (a) => {
|
|
751
786
|
this.dispatchPanelEvent(c, {
|
|
752
787
|
...n,
|
|
753
788
|
...i,
|
|
754
|
-
open:
|
|
789
|
+
open: a.detail.open
|
|
755
790
|
});
|
|
756
791
|
});
|
|
757
792
|
});
|
|
@@ -759,13 +794,13 @@ const gt = () => import("./index-Dh4LYLg5.js"), G = () => import("./index-CTsGb3
|
|
|
759
794
|
},
|
|
760
795
|
// Content Switcher
|
|
761
796
|
"cds-content-switcher": {
|
|
762
|
-
import:
|
|
797
|
+
import: Kt,
|
|
763
798
|
/**
|
|
764
799
|
* @param {CDSContentSwitcher} switcher - The CDSContentSwitcher custom element instance
|
|
765
800
|
* @this {Panel} The panel instance
|
|
766
801
|
*/
|
|
767
802
|
init: function(t) {
|
|
768
|
-
const e = customElements.get("cds-content-switcher"), n =
|
|
803
|
+
const e = customElements.get("cds-content-switcher"), n = r(t), o = t.getAttribute("before-select-event");
|
|
769
804
|
o && this.listen(t, e.eventBeforeSelect, (i) => {
|
|
770
805
|
this.dispatchPanelEvent(o, {
|
|
771
806
|
...n,
|
|
@@ -775,65 +810,65 @@ const gt = () => import("./index-Dh4LYLg5.js"), G = () => import("./index-CTsGb3
|
|
|
775
810
|
});
|
|
776
811
|
const s = n.event;
|
|
777
812
|
s && this.listen(t, e.eventSelect, (i) => {
|
|
778
|
-
const c = i.detail.item,
|
|
813
|
+
const c = i.detail.item, a = r(c);
|
|
779
814
|
this.dispatchPanelEvent(s, {
|
|
780
815
|
...n,
|
|
781
|
-
...
|
|
816
|
+
...a,
|
|
782
817
|
value: c.getAttribute("value")
|
|
783
818
|
});
|
|
784
819
|
});
|
|
785
820
|
}
|
|
786
821
|
}
|
|
787
|
-
},
|
|
822
|
+
}, z = () => import("./index-DQ4Y-fiZ.js"), ee = {
|
|
788
823
|
selector: "cds-breadcrumb",
|
|
789
|
-
import:
|
|
824
|
+
import: z,
|
|
790
825
|
/**
|
|
791
826
|
* @param {CDSBreadcrumb} breadcrumb - The CDSBreadcrumb custom element instance
|
|
792
827
|
* @this {Panel} The panel instance
|
|
793
828
|
*/
|
|
794
829
|
init: function(t) {
|
|
795
|
-
const e =
|
|
796
|
-
if (
|
|
797
|
-
const
|
|
798
|
-
|
|
799
|
-
...
|
|
800
|
-
...
|
|
830
|
+
const e = this, n = r(t), o = n.event;
|
|
831
|
+
if (o) {
|
|
832
|
+
const s = (c) => {
|
|
833
|
+
e.dispatchPanelEvent(o, {
|
|
834
|
+
...n,
|
|
835
|
+
...c
|
|
801
836
|
});
|
|
802
837
|
};
|
|
803
|
-
|
|
804
|
-
const
|
|
805
|
-
if (
|
|
806
|
-
|
|
807
|
-
const
|
|
808
|
-
|
|
838
|
+
e.listen(t, "click", (c) => {
|
|
839
|
+
const a = c.target.closest("cds-breadcrumb-link");
|
|
840
|
+
if (a) {
|
|
841
|
+
c.preventDefault(), c.stopPropagation();
|
|
842
|
+
const d = r(a);
|
|
843
|
+
s(d);
|
|
809
844
|
}
|
|
810
845
|
});
|
|
811
|
-
const
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
const
|
|
815
|
-
|
|
846
|
+
const i = t.querySelector("cds-overflow-menu-body");
|
|
847
|
+
i && e.listen(i, "cds-overflow-menu-item-clicked", (c) => {
|
|
848
|
+
c.stopPropagation();
|
|
849
|
+
const a = r(c.target);
|
|
850
|
+
s(a);
|
|
816
851
|
});
|
|
817
852
|
}
|
|
818
853
|
}
|
|
819
|
-
},
|
|
854
|
+
}, ne = {
|
|
820
855
|
// Breadcrumb Item - Wrapper for breadcrumb links
|
|
821
856
|
"cds-breadcrumb-item": {
|
|
822
|
-
import:
|
|
857
|
+
import: z
|
|
823
858
|
// No event handling - presentational wrapper
|
|
824
859
|
},
|
|
825
860
|
// Breadcrumb Link - Individual breadcrumb link
|
|
826
861
|
"cds-breadcrumb-link": {
|
|
827
|
-
import:
|
|
862
|
+
import: z,
|
|
828
863
|
event: "click",
|
|
829
864
|
getData: (t, e, n) => (t.preventDefault(), {
|
|
830
865
|
...e,
|
|
831
866
|
href: n.getAttribute("href")
|
|
832
867
|
})
|
|
833
868
|
}
|
|
834
|
-
},
|
|
869
|
+
}, oe = () => import("./index-CcK76f0I.js"), se = () => import("./index-DSMPUWJU.js"), ie = () => import("./index-tQGRhvw0.js"), ce = () => import("./index-B8fGrrzJ.js"), ae = () => import("./index-D-iqTNbL.js"), re = {
|
|
835
870
|
selector: "cds-text-input",
|
|
836
|
-
import:
|
|
871
|
+
import: oe,
|
|
837
872
|
multiEvent: !0,
|
|
838
873
|
events: [
|
|
839
874
|
{
|
|
@@ -853,10 +888,10 @@ const gt = () => import("./index-Dh4LYLg5.js"), G = () => import("./index-CTsGb3
|
|
|
853
888
|
})
|
|
854
889
|
}
|
|
855
890
|
]
|
|
856
|
-
},
|
|
891
|
+
}, le = {
|
|
857
892
|
// Text Area
|
|
858
893
|
"cds-textarea": {
|
|
859
|
-
import:
|
|
894
|
+
import: se,
|
|
860
895
|
multiEvent: !0,
|
|
861
896
|
events: [
|
|
862
897
|
{
|
|
@@ -879,7 +914,7 @@ const gt = () => import("./index-Dh4LYLg5.js"), G = () => import("./index-CTsGb3
|
|
|
879
914
|
},
|
|
880
915
|
// Number Input
|
|
881
916
|
"cds-number-input": {
|
|
882
|
-
import:
|
|
917
|
+
import: ie,
|
|
883
918
|
event: "cds-number-input",
|
|
884
919
|
getData: (t, e, n) => ({
|
|
885
920
|
...e,
|
|
@@ -890,7 +925,7 @@ const gt = () => import("./index-Dh4LYLg5.js"), G = () => import("./index-CTsGb3
|
|
|
890
925
|
},
|
|
891
926
|
// Password Input
|
|
892
927
|
"cds-password-input": {
|
|
893
|
-
import:
|
|
928
|
+
import: ce,
|
|
894
929
|
multiEvent: !0,
|
|
895
930
|
events: [
|
|
896
931
|
{
|
|
@@ -913,26 +948,26 @@ const gt = () => import("./index-Dh4LYLg5.js"), G = () => import("./index-CTsGb3
|
|
|
913
948
|
},
|
|
914
949
|
// Search
|
|
915
950
|
"cds-search": {
|
|
916
|
-
import:
|
|
951
|
+
import: ae,
|
|
917
952
|
event: "cds-search-input",
|
|
918
953
|
getData: (t, e, n) => ({
|
|
919
954
|
...e,
|
|
920
955
|
value: n.value
|
|
921
956
|
})
|
|
922
957
|
}
|
|
923
|
-
},
|
|
958
|
+
}, de = () => import("./index-BPRteboN.js"), pe = () => import("./index-Cd1j7Qp1.js"), me = () => import("./index-CyvZ9jxn.js"), ue = () => import("./index-C5s9Z5Ou.js"), he = () => import("./index-CO_QGXLN.js"), ve = {
|
|
924
959
|
selector: "cds-checkbox",
|
|
925
|
-
import:
|
|
960
|
+
import: de,
|
|
926
961
|
event: "cds-checkbox-changed",
|
|
927
962
|
getData: (t, e, n) => ({
|
|
928
963
|
...e,
|
|
929
964
|
checked: t.detail.checked,
|
|
930
965
|
value: n.value
|
|
931
966
|
})
|
|
932
|
-
},
|
|
967
|
+
}, fe = {
|
|
933
968
|
// Radio Button Group - only listen to the group, not individual buttons
|
|
934
969
|
"cds-radio-button-group": {
|
|
935
|
-
import:
|
|
970
|
+
import: pe,
|
|
936
971
|
event: "cds-radio-button-group-changed",
|
|
937
972
|
getData: (t, e) => ({
|
|
938
973
|
...e,
|
|
@@ -941,7 +976,7 @@ const gt = () => import("./index-Dh4LYLg5.js"), G = () => import("./index-CTsGb3
|
|
|
941
976
|
},
|
|
942
977
|
// Toggle
|
|
943
978
|
"cds-toggle": {
|
|
944
|
-
import:
|
|
979
|
+
import: me,
|
|
945
980
|
event: "cds-toggle-changed",
|
|
946
981
|
getData: (t, e) => ({
|
|
947
982
|
...e,
|
|
@@ -951,7 +986,7 @@ const gt = () => import("./index-Dh4LYLg5.js"), G = () => import("./index-CTsGb3
|
|
|
951
986
|
},
|
|
952
987
|
// Select
|
|
953
988
|
"cds-select": {
|
|
954
|
-
import:
|
|
989
|
+
import: ue,
|
|
955
990
|
event: "cds-select-selected",
|
|
956
991
|
getData: (t, e) => ({
|
|
957
992
|
...e,
|
|
@@ -960,13 +995,13 @@ const gt = () => import("./index-Dh4LYLg5.js"), G = () => import("./index-CTsGb3
|
|
|
960
995
|
},
|
|
961
996
|
// Slider
|
|
962
997
|
"cds-slider": {
|
|
963
|
-
import:
|
|
998
|
+
import: he,
|
|
964
999
|
/**
|
|
965
1000
|
* @param {CDSSlider} slider - The CDSSlider custom element instance
|
|
966
1001
|
* @this {Panel} The panel instance
|
|
967
1002
|
*/
|
|
968
1003
|
init: function(t) {
|
|
969
|
-
const e =
|
|
1004
|
+
const e = r(t), n = e.event;
|
|
970
1005
|
n && this.listen(t, "cds-slider-changed", (s) => {
|
|
971
1006
|
this.dispatchPanelEvent(n, {
|
|
972
1007
|
...e,
|
|
@@ -982,21 +1017,21 @@ const gt = () => import("./index-Dh4LYLg5.js"), G = () => import("./index-CTsGb3
|
|
|
982
1017
|
});
|
|
983
1018
|
}
|
|
984
1019
|
}
|
|
985
|
-
},
|
|
1020
|
+
}, L = () => import("./index-t9TINCcm.js"), ge = {
|
|
986
1021
|
selector: "cds-tag",
|
|
987
|
-
import:
|
|
1022
|
+
import: L,
|
|
988
1023
|
event: "click",
|
|
989
1024
|
getData: (t, e) => e
|
|
990
|
-
},
|
|
1025
|
+
}, Ee = {
|
|
991
1026
|
// Dismissible tags (closeable tags with X button)
|
|
992
1027
|
"cds-dismissible-tag": {
|
|
993
|
-
import:
|
|
1028
|
+
import: L,
|
|
994
1029
|
/**
|
|
995
1030
|
* @param {CDSDismissibleTag} tag - The CDSDismissibleTag custom element instance
|
|
996
1031
|
* @this {Panel} The panel instance
|
|
997
1032
|
*/
|
|
998
1033
|
init: function(t) {
|
|
999
|
-
const e =
|
|
1034
|
+
const e = r(t), n = t.getAttribute("click-event");
|
|
1000
1035
|
n && this.listen(t, "click", (s) => {
|
|
1001
1036
|
s.target.closest("button") || this.dispatchPanelEvent(n, {
|
|
1002
1037
|
...e
|
|
@@ -1013,16 +1048,16 @@ const gt = () => import("./index-Dh4LYLg5.js"), G = () => import("./index-CTsGb3
|
|
|
1013
1048
|
},
|
|
1014
1049
|
// Filter tags (closeable tags used for filters)
|
|
1015
1050
|
"cds-filter-tag": {
|
|
1016
|
-
import:
|
|
1051
|
+
import: L,
|
|
1017
1052
|
event: "cds-filter-tag-closed",
|
|
1018
1053
|
getData: (t, e) => ({
|
|
1019
1054
|
...e,
|
|
1020
1055
|
action: "remove"
|
|
1021
1056
|
})
|
|
1022
1057
|
}
|
|
1023
|
-
},
|
|
1058
|
+
}, be = () => import("./index-Dr4evLL7.js"), Ce = () => import("./index-hhX-bWEv.js"), Se = () => import("./index-ByNfpHAO.js"), Ie = {
|
|
1024
1059
|
selector: "cds-overflow-menu",
|
|
1025
|
-
import:
|
|
1060
|
+
import: be,
|
|
1026
1061
|
// We collect the menu attributes from the menu, but we listen for the
|
|
1027
1062
|
// events on the menu body.
|
|
1028
1063
|
/**
|
|
@@ -1030,28 +1065,28 @@ const gt = () => import("./index-Dh4LYLg5.js"), G = () => import("./index-CTsGb3
|
|
|
1030
1065
|
* @this {Panel} The panel instance
|
|
1031
1066
|
*/
|
|
1032
1067
|
init: function(t) {
|
|
1033
|
-
const e =
|
|
1068
|
+
const e = r(t), n = e.event, o = t.querySelector("cds-overflow-menu-body");
|
|
1034
1069
|
n && o && this.listen(o, "cds-overflow-menu-item-clicked", (s) => {
|
|
1035
1070
|
s.stopPropagation();
|
|
1036
|
-
const i =
|
|
1071
|
+
const i = r(s.target);
|
|
1037
1072
|
this.dispatchPanelEvent(n, {
|
|
1038
1073
|
...e,
|
|
1039
1074
|
...i
|
|
1040
1075
|
});
|
|
1041
1076
|
});
|
|
1042
1077
|
}
|
|
1043
|
-
},
|
|
1078
|
+
}, Ae = {
|
|
1044
1079
|
// Structured List
|
|
1045
1080
|
"cds-structured-list": {
|
|
1046
|
-
import:
|
|
1081
|
+
import: Ce,
|
|
1047
1082
|
/**
|
|
1048
1083
|
* @param {CDSStructuredList} list - The CDSStructuredList custom element instance
|
|
1049
1084
|
* @this {Panel} The panel instance
|
|
1050
1085
|
*/
|
|
1051
1086
|
init: function(t) {
|
|
1052
|
-
const e =
|
|
1087
|
+
const e = r(t);
|
|
1053
1088
|
[...t.querySelectorAll("cds-structured-list-row")].forEach((o) => {
|
|
1054
|
-
const s =
|
|
1089
|
+
const s = r(o), i = s.event || e.event;
|
|
1055
1090
|
i && this.listen(o, "click", (c) => {
|
|
1056
1091
|
c.stopPropagation(), this.dispatchPanelEvent(i, {
|
|
1057
1092
|
...e,
|
|
@@ -1059,7 +1094,7 @@ const gt = () => import("./index-Dh4LYLg5.js"), G = () => import("./index-CTsGb3
|
|
|
1059
1094
|
});
|
|
1060
1095
|
});
|
|
1061
1096
|
}), t.hasAttribute("selection") && this.listen(t, "cds-structured-list-selected", (o) => {
|
|
1062
|
-
const s = o.detail.row, i =
|
|
1097
|
+
const s = o.detail.row, i = r(s), c = e.event;
|
|
1063
1098
|
c && this.dispatchPanelEvent(c, {
|
|
1064
1099
|
...e,
|
|
1065
1100
|
...i
|
|
@@ -1069,15 +1104,15 @@ const gt = () => import("./index-Dh4LYLg5.js"), G = () => import("./index-CTsGb3
|
|
|
1069
1104
|
},
|
|
1070
1105
|
// Tree View
|
|
1071
1106
|
"cds-tree-view": {
|
|
1072
|
-
import:
|
|
1107
|
+
import: Se,
|
|
1073
1108
|
/**
|
|
1074
1109
|
* @param {CDSTreeView} tree - The CDSTreeView custom element instance
|
|
1075
1110
|
* @this {Panel} The panel instance
|
|
1076
1111
|
*/
|
|
1077
1112
|
init: function(t) {
|
|
1078
|
-
const e =
|
|
1113
|
+
const e = r(t);
|
|
1079
1114
|
this.listen(t, "cds-tree-node-selected", (o) => {
|
|
1080
|
-
const s = o.detail.node, i =
|
|
1115
|
+
const s = o.detail.node, i = r(s), c = i.event || e.event;
|
|
1081
1116
|
c && this.dispatchPanelEvent(c, {
|
|
1082
1117
|
...e,
|
|
1083
1118
|
...i,
|
|
@@ -1085,7 +1120,7 @@ const gt = () => import("./index-Dh4LYLg5.js"), G = () => import("./index-CTsGb3
|
|
|
1085
1120
|
label: s.getAttribute("label")
|
|
1086
1121
|
});
|
|
1087
1122
|
});
|
|
1088
|
-
const n =
|
|
1123
|
+
const n = E(t, "expand-event");
|
|
1089
1124
|
n && this.listen(t, "cds-tree-node-expanded", (o) => {
|
|
1090
1125
|
this.dispatchPanelEvent(n, {
|
|
1091
1126
|
...e,
|
|
@@ -1095,18 +1130,18 @@ const gt = () => import("./index-Dh4LYLg5.js"), G = () => import("./index-CTsGb3
|
|
|
1095
1130
|
});
|
|
1096
1131
|
}
|
|
1097
1132
|
}
|
|
1098
|
-
},
|
|
1133
|
+
}, q = () => import("./index-CyR413wv.js"), De = {
|
|
1099
1134
|
selector: "cds-toast-notification",
|
|
1100
|
-
import:
|
|
1135
|
+
import: q,
|
|
1101
1136
|
event: "cds-notification-closed",
|
|
1102
1137
|
getData: (t, e) => ({
|
|
1103
1138
|
...e,
|
|
1104
1139
|
action: "closed"
|
|
1105
1140
|
})
|
|
1106
|
-
},
|
|
1141
|
+
}, Ne = {
|
|
1107
1142
|
// Inline Notification
|
|
1108
1143
|
"cds-inline-notification": {
|
|
1109
|
-
import:
|
|
1144
|
+
import: q,
|
|
1110
1145
|
event: "cds-notification-closed",
|
|
1111
1146
|
getData: (t, e) => ({
|
|
1112
1147
|
...e,
|
|
@@ -1115,20 +1150,20 @@ const gt = () => import("./index-Dh4LYLg5.js"), G = () => import("./index-CTsGb3
|
|
|
1115
1150
|
},
|
|
1116
1151
|
// Actionable Notification
|
|
1117
1152
|
"cds-actionable-notification": {
|
|
1118
|
-
import:
|
|
1153
|
+
import: q,
|
|
1119
1154
|
/**
|
|
1120
1155
|
* @param {CDSActionableNotification} notification - The CDSActionableNotification custom element instance
|
|
1121
1156
|
* @this {Panel} The panel instance
|
|
1122
1157
|
*/
|
|
1123
1158
|
init: function(t) {
|
|
1124
|
-
const e =
|
|
1159
|
+
const e = r(t), n = E(t, "close-event", "event");
|
|
1125
1160
|
n && this.listen(t, "cds-notification-closed", (s) => {
|
|
1126
1161
|
this.dispatchPanelEvent(n, {
|
|
1127
1162
|
...e,
|
|
1128
1163
|
action: "closed"
|
|
1129
1164
|
});
|
|
1130
1165
|
});
|
|
1131
|
-
const o =
|
|
1166
|
+
const o = E(t, "action-event");
|
|
1132
1167
|
o && this.listen(t, "cds-notification-actioned", (s) => {
|
|
1133
1168
|
this.dispatchPanelEvent(o, {
|
|
1134
1169
|
...e,
|
|
@@ -1137,24 +1172,24 @@ const gt = () => import("./index-Dh4LYLg5.js"), G = () => import("./index-CTsGb3
|
|
|
1137
1172
|
});
|
|
1138
1173
|
}
|
|
1139
1174
|
}
|
|
1140
|
-
},
|
|
1175
|
+
}, w = () => import("./index-DIg4fP-p.js"), Pe = {
|
|
1141
1176
|
selector: "cds-clickable-tile",
|
|
1142
|
-
import:
|
|
1177
|
+
import: w,
|
|
1143
1178
|
event: "click",
|
|
1144
1179
|
getData: (t, e) => ({
|
|
1145
1180
|
...e,
|
|
1146
1181
|
href: t.currentTarget.getAttribute("href")
|
|
1147
1182
|
})
|
|
1148
|
-
},
|
|
1183
|
+
}, _e = {
|
|
1149
1184
|
// Expandable Tile
|
|
1150
1185
|
"cds-expandable-tile": {
|
|
1151
|
-
import:
|
|
1186
|
+
import: w,
|
|
1152
1187
|
/**
|
|
1153
1188
|
* @param {CDSExpandableTile} tile - The CDSExpandableTile custom element instance
|
|
1154
1189
|
* @this {Panel} The panel instance
|
|
1155
1190
|
*/
|
|
1156
1191
|
init: function(t) {
|
|
1157
|
-
const e =
|
|
1192
|
+
const e = r(t), n = t.getAttribute("before-toggle-event");
|
|
1158
1193
|
n && this.listen(t, "cds-expandable-tile-beingtoggled", (s) => {
|
|
1159
1194
|
this.dispatchPanelEvent(n, {
|
|
1160
1195
|
...e,
|
|
@@ -1173,7 +1208,7 @@ const gt = () => import("./index-Dh4LYLg5.js"), G = () => import("./index-CTsGb3
|
|
|
1173
1208
|
},
|
|
1174
1209
|
// Selectable Tile
|
|
1175
1210
|
"cds-selectable-tile": {
|
|
1176
|
-
import:
|
|
1211
|
+
import: w,
|
|
1177
1212
|
event: "cds-selectable-tile-changed",
|
|
1178
1213
|
getData: (t, e, n) => ({
|
|
1179
1214
|
...e,
|
|
@@ -1183,7 +1218,7 @@ const gt = () => import("./index-Dh4LYLg5.js"), G = () => import("./index-CTsGb3
|
|
|
1183
1218
|
},
|
|
1184
1219
|
// Radio Tile
|
|
1185
1220
|
"cds-radio-tile": {
|
|
1186
|
-
import:
|
|
1221
|
+
import: w,
|
|
1187
1222
|
event: "cds-selectable-tile-changed",
|
|
1188
1223
|
getData: (t, e, n) => ({
|
|
1189
1224
|
...e,
|
|
@@ -1191,15 +1226,15 @@ const gt = () => import("./index-Dh4LYLg5.js"), G = () => import("./index-CTsGb3
|
|
|
1191
1226
|
value: n.value
|
|
1192
1227
|
})
|
|
1193
1228
|
}
|
|
1194
|
-
},
|
|
1229
|
+
}, ke = () => import("./index-BMNd2Qad.js"), ye = () => import("./index-B16kSrMy.js"), Te = () => import("./index-CyF5Kef-.js"), we = {
|
|
1195
1230
|
selector: "cds-progress-bar",
|
|
1196
|
-
import:
|
|
1231
|
+
import: ke,
|
|
1197
1232
|
/**
|
|
1198
1233
|
* @param {CDSProgressBar} progressBar - The CDSProgressBar custom element instance
|
|
1199
1234
|
* @this {Panel} The panel instance
|
|
1200
1235
|
*/
|
|
1201
1236
|
init: function(t) {
|
|
1202
|
-
const e =
|
|
1237
|
+
const e = r(t);
|
|
1203
1238
|
if (e.event) {
|
|
1204
1239
|
const n = new MutationObserver(() => {
|
|
1205
1240
|
const o = parseFloat(t.getAttribute("value") || "0"), s = parseFloat(t.getAttribute("max") || "100");
|
|
@@ -1215,18 +1250,18 @@ const gt = () => import("./index-Dh4LYLg5.js"), G = () => import("./index-CTsGb3
|
|
|
1215
1250
|
}), t._progressObserver = n;
|
|
1216
1251
|
}
|
|
1217
1252
|
}
|
|
1218
|
-
},
|
|
1253
|
+
}, Oe = {
|
|
1219
1254
|
// Progress Indicator
|
|
1220
1255
|
"cds-progress-indicator": {
|
|
1221
|
-
import:
|
|
1256
|
+
import: ye,
|
|
1222
1257
|
/**
|
|
1223
1258
|
* @param {CDSProgressIndicator} indicator - The CDSProgressIndicator custom element instance
|
|
1224
1259
|
* @this {Panel} The panel instance
|
|
1225
1260
|
*/
|
|
1226
1261
|
init: function(t) {
|
|
1227
|
-
const e =
|
|
1262
|
+
const e = r(t);
|
|
1228
1263
|
this.listen(t, "cds-progress-step-click", (n) => {
|
|
1229
|
-
const o = n.target, s =
|
|
1264
|
+
const o = n.target, s = r(o), i = s.event || e.event;
|
|
1230
1265
|
i && this.dispatchPanelEvent(i, {
|
|
1231
1266
|
...e,
|
|
1232
1267
|
...s,
|
|
@@ -1238,13 +1273,13 @@ const gt = () => import("./index-Dh4LYLg5.js"), G = () => import("./index-CTsGb3
|
|
|
1238
1273
|
},
|
|
1239
1274
|
// Inline Loading - Loading indicator for inline actions (e.g., form submit)
|
|
1240
1275
|
"cds-inline-loading": {
|
|
1241
|
-
import:
|
|
1276
|
+
import: Te,
|
|
1242
1277
|
/**
|
|
1243
1278
|
* @param {CDSInlineLoading} inlineLoading - The CDSInlineLoading custom element instance
|
|
1244
1279
|
* @this {Panel} The panel instance
|
|
1245
1280
|
*/
|
|
1246
1281
|
init: function(t) {
|
|
1247
|
-
const e =
|
|
1282
|
+
const e = r(t), n = e.event;
|
|
1248
1283
|
n && this.listen(t, "cds-inline-loading-onsuccess", (s) => {
|
|
1249
1284
|
this.dispatchPanelEvent(n, {
|
|
1250
1285
|
...e,
|
|
@@ -1256,10 +1291,10 @@ const gt = () => import("./index-Dh4LYLg5.js"), G = () => import("./index-CTsGb3
|
|
|
1256
1291
|
const s = new MutationObserver((i) => {
|
|
1257
1292
|
i.forEach((c) => {
|
|
1258
1293
|
if (c.attributeName === "status") {
|
|
1259
|
-
const
|
|
1294
|
+
const a = t.getAttribute("status");
|
|
1260
1295
|
this.dispatchPanelEvent(o, {
|
|
1261
1296
|
...e,
|
|
1262
|
-
status:
|
|
1297
|
+
status: a
|
|
1263
1298
|
});
|
|
1264
1299
|
}
|
|
1265
1300
|
});
|
|
@@ -1271,22 +1306,22 @@ const gt = () => import("./index-Dh4LYLg5.js"), G = () => import("./index-CTsGb3
|
|
|
1271
1306
|
}
|
|
1272
1307
|
}
|
|
1273
1308
|
}
|
|
1274
|
-
},
|
|
1309
|
+
}, Re = () => import("./index-d0CqW2Cm.js"), Me = () => import("./index-C-P030e_.js").then((t) => t.i), Be = () => import("./index-wgp15jn2.js"), ze = {
|
|
1275
1310
|
selector: "cds-tooltip",
|
|
1276
|
-
import:
|
|
1311
|
+
import: Re,
|
|
1277
1312
|
/**
|
|
1278
1313
|
* @param {CDSTooltip} tooltip - The CDSTooltip custom element instance
|
|
1279
1314
|
* @this {Panel} The panel instance
|
|
1280
1315
|
*/
|
|
1281
1316
|
init: function(t) {
|
|
1282
|
-
const e =
|
|
1317
|
+
const e = r(t), n = E(t, "open-event");
|
|
1283
1318
|
n && this.listen(t, "cds-tooltip-beingopened", (s) => {
|
|
1284
1319
|
this.dispatchPanelEvent(n, {
|
|
1285
1320
|
...e,
|
|
1286
1321
|
action: "opened"
|
|
1287
1322
|
});
|
|
1288
1323
|
});
|
|
1289
|
-
const o =
|
|
1324
|
+
const o = E(t, "close-event");
|
|
1290
1325
|
o && this.listen(t, "cds-tooltip-closed", (s) => {
|
|
1291
1326
|
this.dispatchPanelEvent(o, {
|
|
1292
1327
|
...e,
|
|
@@ -1294,23 +1329,23 @@ const gt = () => import("./index-Dh4LYLg5.js"), G = () => import("./index-CTsGb3
|
|
|
1294
1329
|
});
|
|
1295
1330
|
});
|
|
1296
1331
|
}
|
|
1297
|
-
},
|
|
1332
|
+
}, Le = {
|
|
1298
1333
|
// Popover
|
|
1299
1334
|
"cds-popover": {
|
|
1300
|
-
import:
|
|
1335
|
+
import: Me,
|
|
1301
1336
|
/**
|
|
1302
1337
|
* @param {CDSPopover} popover - The CDSPopover custom element instance
|
|
1303
1338
|
* @this {Panel} The panel instance
|
|
1304
1339
|
*/
|
|
1305
1340
|
init: function(t) {
|
|
1306
|
-
const e =
|
|
1341
|
+
const e = r(t), n = E(t, "open-event");
|
|
1307
1342
|
n && this.listen(t, "cds-popover-beingopened", (s) => {
|
|
1308
1343
|
this.dispatchPanelEvent(n, {
|
|
1309
1344
|
...e,
|
|
1310
1345
|
action: "opened"
|
|
1311
1346
|
});
|
|
1312
1347
|
});
|
|
1313
|
-
const o =
|
|
1348
|
+
const o = E(t, "close-event");
|
|
1314
1349
|
o && this.listen(t, "cds-popover-closed", (s) => {
|
|
1315
1350
|
this.dispatchPanelEvent(o, {
|
|
1316
1351
|
...e,
|
|
@@ -1321,13 +1356,13 @@ const gt = () => import("./index-Dh4LYLg5.js"), G = () => import("./index-CTsGb3
|
|
|
1321
1356
|
},
|
|
1322
1357
|
// Toggletip - tooltip that stays open until dismissed
|
|
1323
1358
|
"cds-toggletip": {
|
|
1324
|
-
import:
|
|
1359
|
+
import: Be,
|
|
1325
1360
|
/**
|
|
1326
1361
|
* @param {CDSToggletip} toggletip - The CDSToggletip custom element instance
|
|
1327
1362
|
* @this {Panel} The panel instance
|
|
1328
1363
|
*/
|
|
1329
1364
|
init: function(t) {
|
|
1330
|
-
const e =
|
|
1365
|
+
const e = r(t);
|
|
1331
1366
|
if (e.event) {
|
|
1332
1367
|
const n = new MutationObserver((o) => {
|
|
1333
1368
|
o.forEach((s) => {
|
|
@@ -1348,187 +1383,187 @@ const gt = () => import("./index-Dh4LYLg5.js"), G = () => import("./index-CTsGb3
|
|
|
1348
1383
|
}
|
|
1349
1384
|
}
|
|
1350
1385
|
}
|
|
1351
|
-
},
|
|
1386
|
+
}, qe = () => import("./index-DEtGo4Q7.js").then((t) => t.i), xe = () => import("./index-DZrmJ7Ll.js"), Fe = {
|
|
1352
1387
|
selector: "cds-link",
|
|
1353
|
-
import:
|
|
1388
|
+
import: qe,
|
|
1354
1389
|
event: "click",
|
|
1355
1390
|
getData: (t, e, n) => ({
|
|
1356
1391
|
...e,
|
|
1357
1392
|
href: n.getAttribute("href")
|
|
1358
1393
|
})
|
|
1359
|
-
},
|
|
1394
|
+
}, Ge = {
|
|
1360
1395
|
// Code Snippet
|
|
1361
1396
|
"cds-code-snippet": {
|
|
1362
|
-
import:
|
|
1397
|
+
import: xe,
|
|
1363
1398
|
event: "cds-copy-button-clicked",
|
|
1364
1399
|
getData: (t, e) => ({
|
|
1365
1400
|
...e,
|
|
1366
1401
|
action: "copied"
|
|
1367
1402
|
})
|
|
1368
1403
|
}
|
|
1369
|
-
},
|
|
1404
|
+
}, H = () => import("./index--Q3NhIVC.js"), Ue = () => import("./index-Do9f8Pwe.js"), Ve = () => import("./index-DwCXQC7X.js"), je = () => import("./index-WpBhhuED.js"), He = () => import("./index-DdkIREYU.js"), We = () => import("./index-oS8XvY4G.js"), Ye = () => import("./index-el9l-ZQy.js").then((t) => t.i), $e = () => import("./index-Bug3BjgA.js").then((t) => t.i), Xe = () => import("./index-CPLpCt6z.js"), Ze = () => import("./index-Chyr-DU2.js"), Je = {
|
|
1370
1405
|
// Form structure components (presentational only - no event handling needed)
|
|
1371
1406
|
"cds-form": {
|
|
1372
|
-
import:
|
|
1407
|
+
import: H
|
|
1373
1408
|
// No event handling - wraps native <form> which works naturally
|
|
1374
1409
|
},
|
|
1375
1410
|
"cds-form-item": {
|
|
1376
|
-
import:
|
|
1411
|
+
import: H
|
|
1377
1412
|
// No event handling - presentational wrapper for form fields
|
|
1378
1413
|
},
|
|
1379
1414
|
"cds-form-group": {
|
|
1380
|
-
import:
|
|
1415
|
+
import: Ue
|
|
1381
1416
|
// No event handling - presentational fieldset wrapper
|
|
1382
1417
|
},
|
|
1383
1418
|
"cds-stack": {
|
|
1384
|
-
import:
|
|
1419
|
+
import: Ve
|
|
1385
1420
|
// No event handling - layout utility for spacing items vertically or horizontally
|
|
1386
1421
|
},
|
|
1387
1422
|
// Typography & Icons (Presentational)
|
|
1388
1423
|
"cds-heading": {
|
|
1389
|
-
import:
|
|
1424
|
+
import: je
|
|
1390
1425
|
// No event handling - semantic heading component
|
|
1391
1426
|
},
|
|
1392
1427
|
"cds-icon": {
|
|
1393
|
-
import:
|
|
1428
|
+
import: He
|
|
1394
1429
|
// No event handling - icon display component
|
|
1395
1430
|
},
|
|
1396
1431
|
"cds-icon-indicator": {
|
|
1397
|
-
import:
|
|
1432
|
+
import: We
|
|
1398
1433
|
// No event handling - status indicator icon
|
|
1399
1434
|
},
|
|
1400
1435
|
// Badge Indicator - Status badge component (typically used in tabs/icons)
|
|
1401
1436
|
"cds-badge-indicator": {
|
|
1402
|
-
import:
|
|
1437
|
+
import: Ze
|
|
1403
1438
|
// No event handling - presentational status indicator
|
|
1404
1439
|
// Typically appears as a dot on tabs or icons to show notifications/status
|
|
1405
1440
|
},
|
|
1406
1441
|
// Loading - Full-page or section loading spinner
|
|
1407
1442
|
"cds-loading": {
|
|
1408
|
-
import:
|
|
1443
|
+
import: Ye
|
|
1409
1444
|
// No event handling - presentational loading spinner
|
|
1410
1445
|
},
|
|
1411
1446
|
// Skeleton components - Loading placeholders
|
|
1412
1447
|
"cds-skeleton-text": {
|
|
1413
|
-
import:
|
|
1448
|
+
import: $e
|
|
1414
1449
|
// No event handling - presentational loading placeholder
|
|
1415
1450
|
},
|
|
1416
1451
|
"cds-skeleton-placeholder": {
|
|
1417
|
-
import:
|
|
1452
|
+
import: Xe
|
|
1418
1453
|
// No event handling - presentational loading placeholder
|
|
1419
1454
|
}
|
|
1420
|
-
},
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
Dt,
|
|
1424
|
-
kt,
|
|
1455
|
+
}, Ke = [
|
|
1456
|
+
Tt,
|
|
1457
|
+
wt,
|
|
1425
1458
|
Rt,
|
|
1426
1459
|
Lt,
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1460
|
+
Ut,
|
|
1461
|
+
Wt,
|
|
1462
|
+
Xt,
|
|
1430
1463
|
Qt,
|
|
1431
|
-
|
|
1464
|
+
ee,
|
|
1432
1465
|
re,
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
fe,
|
|
1466
|
+
ve,
|
|
1467
|
+
ge,
|
|
1436
1468
|
Ie,
|
|
1437
|
-
|
|
1438
|
-
|
|
1469
|
+
De,
|
|
1470
|
+
Pe,
|
|
1471
|
+
we,
|
|
1472
|
+
ze,
|
|
1473
|
+
Fe
|
|
1439
1474
|
];
|
|
1440
|
-
function
|
|
1475
|
+
function Qe() {
|
|
1441
1476
|
const t = /* @__PURE__ */ new Map();
|
|
1442
|
-
return
|
|
1477
|
+
return Ke.forEach((n) => {
|
|
1443
1478
|
t.set(n.selector, n);
|
|
1444
1479
|
}), [
|
|
1445
|
-
|
|
1446
|
-
Nt,
|
|
1447
|
-
yt,
|
|
1480
|
+
Ot,
|
|
1448
1481
|
Mt,
|
|
1449
1482
|
qt,
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
ft,
|
|
1483
|
+
Vt,
|
|
1484
|
+
Yt,
|
|
1453
1485
|
te,
|
|
1454
|
-
|
|
1486
|
+
ne,
|
|
1487
|
+
Pt,
|
|
1455
1488
|
le,
|
|
1456
|
-
|
|
1457
|
-
ge,
|
|
1489
|
+
fe,
|
|
1458
1490
|
Ee,
|
|
1459
1491
|
Ae,
|
|
1460
|
-
|
|
1492
|
+
Ne,
|
|
1493
|
+
_e,
|
|
1461
1494
|
Oe,
|
|
1462
|
-
|
|
1495
|
+
Le,
|
|
1496
|
+
Ge,
|
|
1497
|
+
Je
|
|
1463
1498
|
].forEach((n) => {
|
|
1464
1499
|
Object.entries(n).forEach(([o, s]) => {
|
|
1465
1500
|
t.set(o, s);
|
|
1466
1501
|
});
|
|
1467
1502
|
}), t;
|
|
1468
1503
|
}
|
|
1469
|
-
function
|
|
1504
|
+
function tn(t) {
|
|
1470
1505
|
const e = /* @__PURE__ */ new Map();
|
|
1471
1506
|
if (!t || !(t instanceof Element))
|
|
1472
1507
|
return e;
|
|
1473
|
-
for (const o of Object.keys(
|
|
1508
|
+
for (const o of Object.keys(y))
|
|
1474
1509
|
e.set(o, []);
|
|
1475
|
-
for (const [o, s] of Object.entries(
|
|
1510
|
+
for (const [o, s] of Object.entries(y))
|
|
1476
1511
|
t.matches(o) && e.get(o).push(t);
|
|
1477
1512
|
const n = t.querySelectorAll("*");
|
|
1478
1513
|
for (const o of n)
|
|
1479
|
-
for (const [s, i] of Object.entries(
|
|
1514
|
+
for (const [s, i] of Object.entries(y))
|
|
1480
1515
|
o.matches(s) && e.get(s).push(o);
|
|
1481
1516
|
for (const [o, s] of e.entries())
|
|
1482
1517
|
s.length === 0 && e.delete(o);
|
|
1483
1518
|
return e;
|
|
1484
1519
|
}
|
|
1485
|
-
function
|
|
1520
|
+
function en(t) {
|
|
1486
1521
|
const e = /* @__PURE__ */ new Set();
|
|
1487
1522
|
for (const [n, o] of t.entries()) {
|
|
1488
|
-
const s =
|
|
1523
|
+
const s = y[n];
|
|
1489
1524
|
s && s.import && o.length > 0 && (Array.isArray(s.import) ? s.import : [s.import]).forEach((c) => e.add(c));
|
|
1490
1525
|
}
|
|
1491
1526
|
return e;
|
|
1492
1527
|
}
|
|
1493
|
-
async function
|
|
1528
|
+
async function nn(t, e) {
|
|
1494
1529
|
if (t.size === 0)
|
|
1495
1530
|
return;
|
|
1496
1531
|
const n = Array.from(t).map(async (o) => (e.has(o) || e.set(o, o()), e.get(o)));
|
|
1497
1532
|
await Promise.all(n);
|
|
1498
1533
|
}
|
|
1499
|
-
function
|
|
1534
|
+
function on(t, e) {
|
|
1500
1535
|
let n = 0;
|
|
1501
1536
|
for (const [o, s] of t.entries()) {
|
|
1502
|
-
const i =
|
|
1537
|
+
const i = y[o];
|
|
1503
1538
|
s.forEach((c) => {
|
|
1504
1539
|
if (i.init) {
|
|
1505
1540
|
i.init.call(e, c);
|
|
1506
1541
|
return;
|
|
1507
1542
|
}
|
|
1508
1543
|
if (i.multiEvent) {
|
|
1509
|
-
const
|
|
1510
|
-
i.events.forEach((
|
|
1511
|
-
const
|
|
1512
|
-
|
|
1513
|
-
e.dispatchPanelEvent(
|
|
1544
|
+
const b = r(c);
|
|
1545
|
+
i.events.forEach((S) => {
|
|
1546
|
+
const P = E(c, S.attrName, "event");
|
|
1547
|
+
P && e.listen(c, S.type, (O) => {
|
|
1548
|
+
e.dispatchPanelEvent(P, S.getData(O, b, c));
|
|
1514
1549
|
});
|
|
1515
1550
|
});
|
|
1516
1551
|
return;
|
|
1517
1552
|
}
|
|
1518
|
-
const
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
const
|
|
1522
|
-
delete
|
|
1553
|
+
const a = r(c), d = a.event;
|
|
1554
|
+
d && e.listen(c, i.event, (b) => {
|
|
1555
|
+
b.stopPropagation();
|
|
1556
|
+
const S = i.getData(b, a, c), P = S._eventOverride || d;
|
|
1557
|
+
delete S._eventOverride, e.dispatchPanelEvent(P, S);
|
|
1523
1558
|
});
|
|
1524
1559
|
}), n += s.length;
|
|
1525
1560
|
}
|
|
1526
1561
|
return n;
|
|
1527
1562
|
}
|
|
1528
|
-
const
|
|
1529
|
-
...Object.fromEntries(
|
|
1530
|
-
},
|
|
1531
|
-
const n =
|
|
1563
|
+
const y = {
|
|
1564
|
+
...Object.fromEntries(Qe())
|
|
1565
|
+
}, sn = async function(t, e) {
|
|
1566
|
+
const n = tn(t);
|
|
1532
1567
|
if (n.size === 0) {
|
|
1533
1568
|
this.debugMe("[Carbon] No Carbon components found in panel");
|
|
1534
1569
|
return;
|
|
@@ -1536,17 +1571,17 @@ const N = {
|
|
|
1536
1571
|
this.carbonComponents || (this.carbonComponents = /* @__PURE__ */ new Map());
|
|
1537
1572
|
for (const [i, c] of n.entries())
|
|
1538
1573
|
this.carbonComponents.set(i, c);
|
|
1539
|
-
const o =
|
|
1574
|
+
const o = en(n);
|
|
1540
1575
|
if (o.size > 0)
|
|
1541
1576
|
try {
|
|
1542
|
-
await
|
|
1577
|
+
await nn(o, e);
|
|
1543
1578
|
} catch (i) {
|
|
1544
1579
|
console.error("[Carbon] Failed to load some component modules:", i);
|
|
1545
1580
|
}
|
|
1546
|
-
const s =
|
|
1581
|
+
const s = on(n, this);
|
|
1547
1582
|
s > 0 && this.debugMe(`[Carbon] Total components initialized: ${s}`);
|
|
1548
|
-
},
|
|
1549
|
-
|
|
1583
|
+
}, an = () => {
|
|
1584
|
+
bt.register("carbon", {
|
|
1550
1585
|
/**
|
|
1551
1586
|
* Main render function that orchestrates Carbon component initialization.
|
|
1552
1587
|
* Called by Panel.parseContent() for each panel that enters the document.
|
|
@@ -1557,7 +1592,7 @@ const N = {
|
|
|
1557
1592
|
*/
|
|
1558
1593
|
render: async function(t, e) {
|
|
1559
1594
|
try {
|
|
1560
|
-
await
|
|
1595
|
+
await sn.call(this, t, e);
|
|
1561
1596
|
} catch (n) {
|
|
1562
1597
|
console.error("[Carbon] Initialization error:", n);
|
|
1563
1598
|
}
|
|
@@ -1579,5 +1614,5 @@ const N = {
|
|
|
1579
1614
|
}), console.debug("[Zooy] Carbon Design System library registered");
|
|
1580
1615
|
};
|
|
1581
1616
|
export {
|
|
1582
|
-
|
|
1617
|
+
an as registerCarbonLibrary
|
|
1583
1618
|
};
|