@trintel/zooy 1.0.16 → 1.1.1
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/component-library-registry-BBQV6Kpv.js +1 -0
- package/dist/chunks/component-library-registry-DB5UeqC2.js +58 -0
- package/dist/chunks/register-D3pWAXhm.js +266 -0
- package/dist/chunks/register-D7SMu1Gy.js +1372 -0
- package/dist/chunks/register-HYODt48Q.js +1 -0
- package/dist/chunks/register-g5KUNRdI.js +1 -0
- package/dist/chunks/tree-utils-B2JEGXHR.js +267 -0
- package/dist/chunks/tree-utils-BYnipT-p.js +1 -0
- package/dist/chunks/zoo-CY2QpG41.js +52 -0
- package/dist/chunks/zoo-DgdxBjlN.js +390 -0
- package/dist/zooy.cjs.js +19 -1
- package/dist/zooy.es.js +1298 -20
- package/package.json +8 -6
- package/dist/chunks/16-30f5E9no.js +0 -1
- package/dist/chunks/16-4Ffg4DOO.js +0 -1
- package/dist/chunks/16-8pr5mbIO.js +0 -28
- package/dist/chunks/16-B56B50XT.js +0 -1
- package/dist/chunks/16-BFJN6B6d.js +0 -39
- package/dist/chunks/16-BTonF5Je.js +0 -29
- package/dist/chunks/16-BXti8Tu-.js +0 -62
- package/dist/chunks/16-BiShwKPX.js +0 -28
- package/dist/chunks/16-BwDdccyH.js +0 -33
- package/dist/chunks/16-C7Xs-wKv.js +0 -1
- package/dist/chunks/16-CDRTWf-C.js +0 -21
- package/dist/chunks/16-CMCRqVYz.js +0 -1
- package/dist/chunks/16-CSWwhDUY.js +0 -21
- package/dist/chunks/16-CpNRIuiB.js +0 -1
- package/dist/chunks/16-CqC9427V.js +0 -21
- package/dist/chunks/16-Cubm18Em.js +0 -1
- package/dist/chunks/16-D3Ol0pdg.js +0 -21
- package/dist/chunks/16-DH311Of_.js +0 -1
- package/dist/chunks/16-Dlq3qxDh.js +0 -1
- package/dist/chunks/16-Drl9-5Gn.js +0 -21
- package/dist/chunks/16-Dt4v0bcc.js +0 -1
- package/dist/chunks/16-DylBiJnm.js +0 -1
- package/dist/chunks/20-CQLnFcRb.js +0 -84
- package/dist/chunks/20-Df0dXwyx.js +0 -1
- package/dist/chunks/button-D3QMXGP6.js +0 -66
- package/dist/chunks/button-cEVHuDC9.js +0 -272
- package/dist/chunks/button-skeleton-BuDQrAgi.js +0 -21
- package/dist/chunks/button-skeleton-CxKOKEQr.js +0 -49
- package/dist/chunks/carbon-element-CbfPUYRT.js +0 -1
- package/dist/chunks/carbon-element-DzDuXiyl.js +0 -25
- package/dist/chunks/checkbox-B_b_oOJ5.js +0 -40
- package/dist/chunks/checkbox-CsuLOYIT.js +0 -201
- package/dist/chunks/class-map-BwrbvkxB.js +0 -5
- package/dist/chunks/class-map-CgGieoOz.js +0 -32
- package/dist/chunks/collection-helpers-Bk68Vaau.js +0 -7
- package/dist/chunks/collection-helpers-afBvMQaC.js +0 -1
- package/dist/chunks/content-switcher-item-C1gdd6k4.js +0 -351
- package/dist/chunks/content-switcher-item-c0sXBGJ-.js +0 -27
- package/dist/chunks/defs-C88lSWuJ.js +0 -1
- package/dist/chunks/defs-Do0OvCKd.js +0 -1165
- package/dist/chunks/directive-Dp4ZTz-F.js +0 -5
- package/dist/chunks/directive-kLG6oqUu.js +0 -27
- package/dist/chunks/dropdown-item-T1jCm1fo.js +0 -69
- package/dist/chunks/dropdown-item-Wc8Nj3w-.js +0 -632
- package/dist/chunks/focus-B3iymVyL.js +0 -1
- package/dist/chunks/focus-WnKGH_xB.js +0 -20
- package/dist/chunks/form-D6Tce4-W.js +0 -1
- package/dist/chunks/form-DpI-v6DA.js +0 -20
- package/dist/chunks/host-listener-CN245INl.js +0 -37
- package/dist/chunks/host-listener-DD3oGxvg.js +0 -16
- package/dist/chunks/host-listener-gxrTpxgv.js +0 -1
- package/dist/chunks/host-listener-rUcT_LUW.js +0 -1
- package/dist/chunks/icon-loader-CTCoE5GC.js +0 -7
- package/dist/chunks/icon-loader-C_ze306U.js +0 -1
- package/dist/chunks/icon-loader-utils-DSajrZop.js +0 -117
- package/dist/chunks/icon-loader-utils-DxaQOvJB.js +0 -5
- package/dist/chunks/if-defined-7syLabv-.js +0 -10
- package/dist/chunks/if-defined-CfI-rREy.js +0 -5
- package/dist/chunks/if-non-empty-CsjL_4Ck.js +0 -5
- package/dist/chunks/if-non-empty-Dp8CFMva.js +0 -1
- package/dist/chunks/index-24ucriY6.js +0 -4
- package/dist/chunks/index-5uuGFlSc.js +0 -1
- package/dist/chunks/index-ACUVets3.js +0 -188
- package/dist/chunks/index-B-VOos8Q.js +0 -108
- package/dist/chunks/index-B-qA_3dy.js +0 -52
- package/dist/chunks/index-B0PkuE0I.js +0 -188
- package/dist/chunks/index-B1QlHHpn.js +0 -381
- package/dist/chunks/index-B2dVOGmx.js +0 -458
- package/dist/chunks/index-BEAD73rD.js +0 -17
- package/dist/chunks/index-BEyeMcZh.js +0 -25
- package/dist/chunks/index-BJ3okuBC.js +0 -78
- package/dist/chunks/index-BJNdKx6x.js +0 -23
- package/dist/chunks/index-BL8xz2V4.js +0 -161
- package/dist/chunks/index-BL_Y57_H.js +0 -57
- package/dist/chunks/index-BLxE94Et.js +0 -3
- package/dist/chunks/index-BP0bDhTG.js +0 -2340
- package/dist/chunks/index-BUXzbqzT.js +0 -364
- package/dist/chunks/index-BVDZj6Fh.js +0 -76
- package/dist/chunks/index-BWqDKfds.js +0 -62
- package/dist/chunks/index-BaVSzIan.js +0 -79
- package/dist/chunks/index-BatQ1Mfz.js +0 -25
- package/dist/chunks/index-BefBe_sK.js +0 -19
- package/dist/chunks/index-BekoThXC.js +0 -49
- package/dist/chunks/index-BnOH6_4r.js +0 -103
- package/dist/chunks/index-Bnfa6YBY.js +0 -71
- package/dist/chunks/index-BrtdLKIG.js +0 -455
- package/dist/chunks/index-BtFYirUg.js +0 -44
- package/dist/chunks/index-BtHVJn7K.js +0 -75
- package/dist/chunks/index-Bu7ZAHDG.js +0 -12
- package/dist/chunks/index-BxRbUwdY.js +0 -30
- package/dist/chunks/index-ByQl0Dwz.js +0 -9
- package/dist/chunks/index-C-PAoN2Y.js +0 -25
- package/dist/chunks/index-C2-pFkgT.js +0 -406
- package/dist/chunks/index-C2r3MkpB.js +0 -252
- package/dist/chunks/index-C5DwYOee.js +0 -89
- package/dist/chunks/index-C5euLddc.js +0 -46
- package/dist/chunks/index-C89rc2i5.js +0 -35
- package/dist/chunks/index-C8IUL9KS.js +0 -22
- package/dist/chunks/index-C99Nf_aK.js +0 -15
- package/dist/chunks/index-CDaECc1q.js +0 -12
- package/dist/chunks/index-CIeU44CB.js +0 -97
- package/dist/chunks/index-CL8Un64Y.js +0 -150
- package/dist/chunks/index-CQ1zfW-Z.js +0 -22
- package/dist/chunks/index-CR6HxSEn.js +0 -15
- package/dist/chunks/index-CSH8oUIN.js +0 -36
- package/dist/chunks/index-CTB8Esah.js +0 -1
- package/dist/chunks/index-CX6f-3xD.js +0 -563
- package/dist/chunks/index-CXSCYGFC.js +0 -452
- package/dist/chunks/index-CZQ45Dj9.js +0 -1
- package/dist/chunks/index-Cc-HBEN2.js +0 -150
- package/dist/chunks/index-Cf3ALdZ-.js +0 -4
- package/dist/chunks/index-Cid77wr3.js +0 -45
- package/dist/chunks/index-ClBPGpC0.js +0 -129
- package/dist/chunks/index-CmXHpydu.js +0 -121
- package/dist/chunks/index-CsaKV6jI.js +0 -511
- package/dist/chunks/index-CvxrJ8vE.js +0 -39
- package/dist/chunks/index-Cy6EogCp.js +0 -429
- package/dist/chunks/index-CyTN35KA.js +0 -424
- package/dist/chunks/index-D3hwHwSn.js +0 -243
- package/dist/chunks/index-D6Eg6Zh4.js +0 -22
- package/dist/chunks/index-D7GY2E-B.js +0 -8
- package/dist/chunks/index-DCqxl0e0.js +0 -26
- package/dist/chunks/index-DDKqKtU4.js +0 -15
- package/dist/chunks/index-DHksIe-y.js +0 -1
- package/dist/chunks/index-DI-PunST.js +0 -224
- package/dist/chunks/index-DIWoAC3Z.js +0 -74
- package/dist/chunks/index-DLWyvZrE.js +0 -21
- package/dist/chunks/index-DLa-KLg_.js +0 -881
- package/dist/chunks/index-DLwGUJd2.js +0 -25
- package/dist/chunks/index-DMIKb9St.js +0 -2
- package/dist/chunks/index-DOfvb1f6.js +0 -79
- package/dist/chunks/index-DQoGlgyI.js +0 -1
- package/dist/chunks/index-DR8UmItB.js +0 -1
- package/dist/chunks/index-DUiT0Yz_.js +0 -57
- package/dist/chunks/index-DW1p-hc-.js +0 -1604
- package/dist/chunks/index-DbPU3mfX.js +0 -368
- package/dist/chunks/index-DgI4_4yz.js +0 -37
- package/dist/chunks/index-DhPg7DCD.js +0 -1
- package/dist/chunks/index-Dj-7w7wt.js +0 -65
- package/dist/chunks/index-DjSdHUmw.js +0 -284
- package/dist/chunks/index-DpCo2duE.js +0 -87
- package/dist/chunks/index-DqLDehu6.js +0 -111
- package/dist/chunks/index-Ds3e0NlH.js +0 -285
- package/dist/chunks/index-DsKNYemW.js +0 -295
- package/dist/chunks/index-DwGKd66A.js +0 -259
- package/dist/chunks/index-FAwjNd-C.js +0 -4
- package/dist/chunks/index-HTZtnvAV.js +0 -81
- package/dist/chunks/index-JUJu4Jsu.js +0 -235
- package/dist/chunks/index-JmiGhJR9.js +0 -1
- package/dist/chunks/index-K3aE8_a_.js +0 -45
- package/dist/chunks/index-LVNWqV95.js +0 -683
- package/dist/chunks/index-NduNWecG.js +0 -88
- package/dist/chunks/index-QOHPo0v8.js +0 -19
- package/dist/chunks/index-TnoTOPwm.js +0 -158
- package/dist/chunks/index-UIEjSWhu.js +0 -58
- package/dist/chunks/index-WQ40q6Fp.js +0 -77
- package/dist/chunks/index-a_56_OA-.js +0 -776
- package/dist/chunks/index-azaqRvif.js +0 -27
- package/dist/chunks/index-dT_yGOFJ.js +0 -1
- package/dist/chunks/index-kjtnf5Y1.js +0 -66
- package/dist/chunks/index-lOiJBnZe.js +0 -160
- package/dist/chunks/index-sl9jQQX-.js +0 -36
- package/dist/chunks/index-vkfOeAd5.js +0 -260
- package/dist/chunks/index-z2pAR1iR.js +0 -337
- package/dist/chunks/loading-icon-9-L_8sVv.js +0 -16
- package/dist/chunks/loading-icon-CMPQny72.js +0 -24
- package/dist/chunks/main-CXPn-jnk.js +0 -4260
- package/dist/chunks/main-CZIPBRMI.js +0 -88
- package/dist/chunks/on-BPhwbVf3.js +0 -10
- package/dist/chunks/on-XRofyGQh.js +0 -1
- package/dist/chunks/property-BIgIlh0E.js +0 -5
- package/dist/chunks/property-CTp3Zz2M.js +0 -36
- package/dist/chunks/query-CbRg6ZGy.js +0 -23
- package/dist/chunks/query-Dh8joWcT.js +0 -9
- package/dist/chunks/radio-group-manager-DBAEmhDM.js +0 -1
- package/dist/chunks/radio-group-manager-Du5wSOS1.js +0 -102
- package/dist/chunks/register-BgvWUC9m.js +0 -11035
- package/dist/chunks/register-CFDNay1l.js +0 -1
- package/dist/chunks/register-DyYwnhHb.js +0 -2157
- package/dist/chunks/register-HH_4Uw0Q.js +0 -1678
- package/dist/chunks/search-CC47funo.js +0 -241
- package/dist/chunks/search-DB4cjN-w.js +0 -31
- package/dist/chunks/select-item-D6rKfA9z.js +0 -80
- package/dist/chunks/select-item-Dj2fYOn6.js +0 -364
- package/dist/chunks/settings-Bgpv8zuU.js +0 -62
- package/dist/chunks/settings-jvP7vP60.js +0 -66
- package/dist/chunks/shared-enums-BJDDuJr7.js +0 -1
- package/dist/chunks/shared-enums-DALKjQ7e.js +0 -7
- package/dist/chunks/state-4XYw1ZN5.js +0 -12
- package/dist/chunks/state-BoZ0xvIn.js +0 -5
- package/dist/chunks/text-input-BUBwT5gK.js +0 -68
- package/dist/chunks/text-input-Dpl3TIYz.js +0 -372
- package/dist/chunks/tooltip-content-BV1N7BVi.js +0 -3
- package/dist/chunks/tooltip-content-UQcG3dlT.js +0 -135
- package/dist/chunks/tslib.es6-B07k2eac.js +0 -1
- package/dist/chunks/tslib.es6-C5gLNDSD.js +0 -160
- package/dist/chunks/unsafe-html-CCJqBESk.js +0 -5
- package/dist/chunks/unsafe-html-KUWR4Xn7.js +0 -27
- package/dist/chunks/validity-BMLNCMmP.js +0 -1
- package/dist/chunks/validity-CTz7ivUd.js +0 -59
|
@@ -1,1678 +0,0 @@
|
|
|
1
|
-
import { _ as et, c as vt, d as bt, g as l, e as Et, h as St, o as _t, j as It, p as yt, k as E, C as Pt } from "./main-CXPn-jnk.js";
|
|
2
|
-
var Ct = /* @__PURE__ */ et(function(e, n) {
|
|
3
|
-
return n == null || n !== n ? e : n;
|
|
4
|
-
}), At = /* @__PURE__ */ vt(function(e, n, o) {
|
|
5
|
-
return Ct(e, bt(n, o));
|
|
6
|
-
}), Tt = /* @__PURE__ */ et(function(e, n) {
|
|
7
|
-
for (var o = {}, s = 0; s < e.length; )
|
|
8
|
-
e[s] in n && (o[e[s]] = n[e[s]]), s += 1;
|
|
9
|
-
return o;
|
|
10
|
-
}), j = {}, Y;
|
|
11
|
-
function Dt() {
|
|
12
|
-
return Y || (Y = 1, (function(t) {
|
|
13
|
-
t.TABLE_SIZE = void 0, (function(n) {
|
|
14
|
-
n.XS = "xs", n.SM = "sm", n.MD = "md", n.LG = "lg", n.XL = "xl";
|
|
15
|
-
})(t.TABLE_SIZE || (t.TABLE_SIZE = {})), t.TABLE_SORT_DIRECTION = void 0, (function(n) {
|
|
16
|
-
n.NONE = "none", n.ASCENDING = "ascending", n.DESCENDING = "descending";
|
|
17
|
-
})(t.TABLE_SORT_DIRECTION || (t.TABLE_SORT_DIRECTION = {})), t.TABLE_SORT_CYCLE = void 0, (function(n) {
|
|
18
|
-
n.BI_STATES_FROM_ASCENDING = "bi-states-from-ascending", n.BI_STATES_FROM_DESCENDING = "bi-states-from-descending", n.TRI_STATES_FROM_ASCENDING = "tri-states-from-ascending", n.TRI_STATES_FROM_DESCENDING = "tri-states-from-descending";
|
|
19
|
-
})(t.TABLE_SORT_CYCLE || (t.TABLE_SORT_CYCLE = {}));
|
|
20
|
-
const e = {
|
|
21
|
-
[t.TABLE_SORT_CYCLE.BI_STATES_FROM_ASCENDING]: [
|
|
22
|
-
t.TABLE_SORT_DIRECTION.ASCENDING,
|
|
23
|
-
t.TABLE_SORT_DIRECTION.DESCENDING
|
|
24
|
-
],
|
|
25
|
-
[t.TABLE_SORT_CYCLE.BI_STATES_FROM_DESCENDING]: [
|
|
26
|
-
t.TABLE_SORT_DIRECTION.DESCENDING,
|
|
27
|
-
t.TABLE_SORT_DIRECTION.ASCENDING
|
|
28
|
-
],
|
|
29
|
-
[t.TABLE_SORT_CYCLE.TRI_STATES_FROM_ASCENDING]: [
|
|
30
|
-
t.TABLE_SORT_DIRECTION.NONE,
|
|
31
|
-
t.TABLE_SORT_DIRECTION.ASCENDING,
|
|
32
|
-
t.TABLE_SORT_DIRECTION.DESCENDING
|
|
33
|
-
],
|
|
34
|
-
[t.TABLE_SORT_CYCLE.TRI_STATES_FROM_DESCENDING]: [
|
|
35
|
-
t.TABLE_SORT_DIRECTION.NONE,
|
|
36
|
-
t.TABLE_SORT_DIRECTION.DESCENDING,
|
|
37
|
-
t.TABLE_SORT_DIRECTION.ASCENDING
|
|
38
|
-
]
|
|
39
|
-
};
|
|
40
|
-
t.TABLE_SORT_CYCLES = e;
|
|
41
|
-
})(j)), j;
|
|
42
|
-
}
|
|
43
|
-
var kt = Dt();
|
|
44
|
-
const X = (t, e, n) => {
|
|
45
|
-
const o = customElements.get("cds-table"), s = customElements.get("cds-pagination"), c = customElements.get(o.selectorTableBatchActions);
|
|
46
|
-
customElements.get("cds-popover");
|
|
47
|
-
const i = e.dataBinder, a = e.pagination, d = e.skeleton, S = e.querySelector(o.selectorTableToolbarSearch), I = e.querySelector(o.selectorTableBatchActions), D = e.querySelector(o.selectorTableBody), R = ["button", "a", "input", "select", "textarea", '[role="button"]', ".cds--table-expand", ".cds--table-column-checkbox"].join(","), H = e.querySelectorAll(o.selectorHeaderCell + "[is-sortable]"), nt = e.isSortable || H.length > 0, B = Symbol(), z = Symbol(), k = /* @__PURE__ */ new Map(), ot = (r) => {
|
|
48
|
-
t.listen(e, "click", (p) => {
|
|
49
|
-
const u = p.target.closest(o.selectorTableRow);
|
|
50
|
-
if (!u || p.composedPath().some((g) => g.matches && g.matches(R))) return;
|
|
51
|
-
p.stopPropagation();
|
|
52
|
-
const m = l(u);
|
|
53
|
-
t.dispatchPanelEvent(r, {
|
|
54
|
-
...m
|
|
55
|
-
});
|
|
56
|
-
});
|
|
57
|
-
}, st = (r) => {
|
|
58
|
-
t.listen(e, o.eventExpandoToggle, (p) => {
|
|
59
|
-
const u = p.target, m = u.tagName === "CDS-TABLE-HEADER-ROW", g = p.detail.expanded, v = l(u), _ = {
|
|
60
|
-
tableAttrs: n,
|
|
61
|
-
...v,
|
|
62
|
-
target: u,
|
|
63
|
-
allRows: m,
|
|
64
|
-
didExpand: g
|
|
65
|
-
};
|
|
66
|
-
t.dispatchPanelEvent(r, _);
|
|
67
|
-
});
|
|
68
|
-
}, ct = (r) => {
|
|
69
|
-
k.set(B, (p) => {
|
|
70
|
-
t.dispatchPanelEvent(r, p);
|
|
71
|
-
});
|
|
72
|
-
}, it = (r) => {
|
|
73
|
-
k.set(z, (p) => {
|
|
74
|
-
const u = p.detail.selectedRows, m = Math.min(u.length, I.totalRowsCount), g = p.target, v = l(g), _ = u.map(l), y = {
|
|
75
|
-
tableAttrs: n,
|
|
76
|
-
...v,
|
|
77
|
-
target: g,
|
|
78
|
-
selectCount: m,
|
|
79
|
-
selection: _
|
|
80
|
-
};
|
|
81
|
-
t.dispatchPanelEvent(r, y);
|
|
82
|
-
});
|
|
83
|
-
}, at = (r) => {
|
|
84
|
-
t.listen(e, o.eventTableRowSelect, (p) => {
|
|
85
|
-
const u = p.target, m = p.detail.selectedRows || [], g = m.length, v = m.map(l), _ = l(u), y = {
|
|
86
|
-
tableAttrs: n,
|
|
87
|
-
..._,
|
|
88
|
-
selectCount: g,
|
|
89
|
-
selection: v,
|
|
90
|
-
target: u
|
|
91
|
-
};
|
|
92
|
-
t.dispatchPanelEvent(r, y);
|
|
93
|
-
});
|
|
94
|
-
}, rt = () => {
|
|
95
|
-
t.listen(e, o.eventBeforeSort, (r) => {
|
|
96
|
-
const p = r.target, u = r.detail.oldSortDirection, m = r.detail.sortDirection, g = l(p), v = g.sortField, _ = m === kt.TABLE_SORT_DIRECTION.DESCENDING ? `-${v}` : v;
|
|
97
|
-
r.cancelBubble = !0, r.stopPropagation(), r.preventDefault(), D.innerHTML = "", d && d.show(), H.forEach((A, h) => {
|
|
98
|
-
A === p ? (A.setAttribute("sort-active", "true"), A.setAttribute("sort-direction", m)) : (A.removeAttribute("sort-active"), A.setAttribute("sort-direction", "none"));
|
|
99
|
-
});
|
|
100
|
-
const y = { ordering: _ };
|
|
101
|
-
i.fetchData(y).then(() => {
|
|
102
|
-
a.setData(i), d && d.hide();
|
|
103
|
-
}), k.has(B) && k.get(B)({
|
|
104
|
-
tableAttrs: n,
|
|
105
|
-
...g,
|
|
106
|
-
sortNow: m,
|
|
107
|
-
sortWas: u,
|
|
108
|
-
sortField: v,
|
|
109
|
-
ordering: _,
|
|
110
|
-
target: p
|
|
111
|
-
});
|
|
112
|
-
});
|
|
113
|
-
}, lt = () => {
|
|
114
|
-
t.listen(e, o.eventTableRowSelectAll, (r) => {
|
|
115
|
-
r.detail.selectedRows.length === 0 && e.querySelectorAll(o.selectorTableRow).forEach((p) => {
|
|
116
|
-
p.disabled = !1, p.selected = !1;
|
|
117
|
-
}), k.has(z) && k.get(z)(r);
|
|
118
|
-
});
|
|
119
|
-
}, dt = () => {
|
|
120
|
-
t.listen(e, o.eventBeforeChangeSelectionAll, (r) => {
|
|
121
|
-
r.stopPropagation(), r.detail.callback && r.detail.callback();
|
|
122
|
-
});
|
|
123
|
-
}, pt = (r) => {
|
|
124
|
-
const p = e.querySelector("cds-table-header-row");
|
|
125
|
-
t.listen(r, c.eventClickSelectAll, (u) => {
|
|
126
|
-
u.stopPropagation(), p.dispatchEvent(new CustomEvent(o.eventBeforeChangeSelectionAll, {
|
|
127
|
-
bubbles: !0,
|
|
128
|
-
cancelable: !0,
|
|
129
|
-
composed: !0,
|
|
130
|
-
detail: {
|
|
131
|
-
selected: !0,
|
|
132
|
-
callback: () => {
|
|
133
|
-
r.selectedRowsCount = r.totalRowsCount, e.querySelectorAll(o.selectorTableRow).forEach((m) => {
|
|
134
|
-
m.disabled = !0;
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}));
|
|
139
|
-
});
|
|
140
|
-
}, ut = (r) => {
|
|
141
|
-
t.listen(r, "keydown", (p) => {
|
|
142
|
-
if (p.key === "Enter") {
|
|
143
|
-
d && d.show(), a.totalItems = 0, e.querySelector("cds-table-body").replaceChildren();
|
|
144
|
-
const m = { search: r.value || "", offset: 0 };
|
|
145
|
-
i.fetchData(m).then(() => {
|
|
146
|
-
a.setData(i), d && d.hide();
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
|
-
});
|
|
150
|
-
}, mt = (r) => {
|
|
151
|
-
t.listen(r, o.eventSearchInput, (p) => {
|
|
152
|
-
if ((p.detail.value || "") === "") {
|
|
153
|
-
const m = { search: "", offset: 0 };
|
|
154
|
-
d && d.show(), i.fetchData(m).then(() => {
|
|
155
|
-
d && d.hide(), a.setData(i);
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
});
|
|
159
|
-
}, ft = (r) => {
|
|
160
|
-
r.caret = !1;
|
|
161
|
-
const p = r.querySelector("cds-icon-button, button:not([slot])"), u = r.querySelectorAll("cds-checkbox"), m = r.querySelectorAll("cds-modal-footer-button"), g = [...r.querySelectorAll("cds-checkbox-group")].map(l).map(At("noop", ["zoo", "filter", "field"])).reduce(
|
|
162
|
-
(h, b) => (h[b] = null, h),
|
|
163
|
-
{ offset: 0 }
|
|
164
|
-
);
|
|
165
|
-
if (!p || !m) {
|
|
166
|
-
console.error("Improperly configured Batch Filter popover");
|
|
167
|
-
return;
|
|
168
|
-
}
|
|
169
|
-
new MutationObserver(() => {
|
|
170
|
-
r.classList.toggle("cds--overflow-menu--open", r.open);
|
|
171
|
-
}).observe(r, {
|
|
172
|
-
attributes: !0,
|
|
173
|
-
attributeFilter: ["open"]
|
|
174
|
-
});
|
|
175
|
-
const v = Symbol(), _ = Symbol(), y = [...m].reduce((h, b, T) => (b.hasAttribute("reset-filter") && h.set(v, b), b.hasAttribute("apply-filter") && h.set(_, b), h), /* @__PURE__ */ new Map()), A = () => {
|
|
176
|
-
const h = /* @__PURE__ */ new Map();
|
|
177
|
-
return u.forEach((b) => {
|
|
178
|
-
const T = b.getAttribute("id");
|
|
179
|
-
if (!T || !T.includes(":")) return;
|
|
180
|
-
const [N, O] = T.split(":");
|
|
181
|
-
h.has(N) || h.set(N, []), b.checked && h.get(N).push(O);
|
|
182
|
-
}), h;
|
|
183
|
-
};
|
|
184
|
-
if (y.has(v)) {
|
|
185
|
-
const h = (b) => b.checked = !1;
|
|
186
|
-
t.listen(y.get(v), "click", (b) => {
|
|
187
|
-
b.stopPropagation(), u.forEach(h), d && d.show(), i.fetchData(g).then(() => {
|
|
188
|
-
a && a.setData(i), d && d.hide(), r.open = !1;
|
|
189
|
-
});
|
|
190
|
-
});
|
|
191
|
-
}
|
|
192
|
-
y.has(_) && t.listen(y.get(_), "click", (h) => {
|
|
193
|
-
h.stopPropagation();
|
|
194
|
-
const b = [...A()].reduce((T, [N, O]) => (T[N] = O === [] ? null : O, T), { offset: 0 });
|
|
195
|
-
d && d.show(), i.fetchData(b).then(() => {
|
|
196
|
-
a && a.setData(i), d && d.hide(), r.open = !1;
|
|
197
|
-
});
|
|
198
|
-
}), t.listen(p, "click", (h) => {
|
|
199
|
-
h.stopPropagation(), r.open = !r.open, r.classList.toggle("cds--overflow-menu--open", r.open);
|
|
200
|
-
});
|
|
201
|
-
}, gt = () => {
|
|
202
|
-
t.listen(a, s.eventPageSizeChanged, (r) => {
|
|
203
|
-
const u = {
|
|
204
|
-
limit: a.pageSize,
|
|
205
|
-
offset: 0
|
|
206
|
-
};
|
|
207
|
-
i.fetchData(u).then(() => {
|
|
208
|
-
a.setData(i);
|
|
209
|
-
});
|
|
210
|
-
});
|
|
211
|
-
}, ht = () => {
|
|
212
|
-
let r = null;
|
|
213
|
-
t.listen(a, s.eventChangeCurrent, (p) => {
|
|
214
|
-
const { page: u } = p.detail, m = a.pageSize, g = (u - 1) * m;
|
|
215
|
-
if (g !== r) {
|
|
216
|
-
r = g;
|
|
217
|
-
const v = { limit: m, offset: g };
|
|
218
|
-
i.fetchData(v).then(() => {
|
|
219
|
-
a.setData(i), d && d.hide();
|
|
220
|
-
});
|
|
221
|
-
}
|
|
222
|
-
});
|
|
223
|
-
};
|
|
224
|
-
i && a && (gt(), ht()), i && S && (ut(S), mt(S));
|
|
225
|
-
const V = e.querySelector(o.selectorTableToolbarContent);
|
|
226
|
-
if (V) {
|
|
227
|
-
const r = V.querySelectorAll("cds-popover[data-batch-filter]");
|
|
228
|
-
i && r && r.forEach(ft);
|
|
229
|
-
}
|
|
230
|
-
e.isSelectable && (lt(), dt(), I && pt(I)), i && nt && rt();
|
|
231
|
-
const $ = {
|
|
232
|
-
zoo: {
|
|
233
|
-
event: {
|
|
234
|
-
row: {
|
|
235
|
-
click: ot,
|
|
236
|
-
expand: st,
|
|
237
|
-
check: {
|
|
238
|
-
one: at,
|
|
239
|
-
all: it
|
|
240
|
-
}
|
|
241
|
-
},
|
|
242
|
-
column: {
|
|
243
|
-
sort: ct
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
};
|
|
248
|
-
_t(n).forEach(([r, p]) => {
|
|
249
|
-
It(r, $) && yt(r, $)(p);
|
|
250
|
-
});
|
|
251
|
-
}, Nt = (t) => {
|
|
252
|
-
const e = document.createElement("cds-pagination");
|
|
253
|
-
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) => {
|
|
254
|
-
const o = document.createElement("cds-select-item");
|
|
255
|
-
o.value = n.toString(), o.textContent = n.toString(), e.appendChild(o);
|
|
256
|
-
}), e.setData = (n) => {
|
|
257
|
-
if (n.isPaginated) {
|
|
258
|
-
const { count: o } = Tt(["count"], n.data), s = Math.ceil(o / n.limit), c = 100;
|
|
259
|
-
e.pagesUnknown = s > c, e.totalItems = o, e.pagesUnknown ? e.formatStatusWithIndeterminateTotal = ({ start: i, end: a }) => `${i}–${a} of ${o} item${o <= 1 ? "" : "s"}` : delete e.formatStatusWithIndeterminateTotal;
|
|
260
|
-
}
|
|
261
|
-
}, e;
|
|
262
|
-
}, Ot = (t) => {
|
|
263
|
-
if (!t.parentNode) {
|
|
264
|
-
console.error("[Carbon Table] Cannot create skeleton: table has no parent node");
|
|
265
|
-
return;
|
|
266
|
-
}
|
|
267
|
-
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, c = t.hasAttribute("zebra"), i = t.getAttribute("size"), a = document.createElement("cds-table-skeleton");
|
|
268
|
-
a.showHeader = e || n, a.showToolbar = o, a.zebra = c, a.columnCount = s, a.size = i, a.show = () => a.classList.remove("hidden"), a.hide = () => a.classList.add("hidden");
|
|
269
|
-
const d = document.createElement("div");
|
|
270
|
-
return d.classList.add("zoo-datatable-skeleton-wrapper"), t.parentNode.insertBefore(d, t), d.appendChild(a), d.appendChild(t), a;
|
|
271
|
-
}, wt = (t, e) => {
|
|
272
|
-
const n = e.getAttribute("zoo-url-api"), o = parseInt(e.getAttribute("data-page-size") || 25, 10);
|
|
273
|
-
if (n)
|
|
274
|
-
return new St(t, n, e, {
|
|
275
|
-
urlParams: { limit: o }
|
|
276
|
-
});
|
|
277
|
-
}, Mt = {
|
|
278
|
-
selector: "cds-table",
|
|
279
|
-
/**
|
|
280
|
-
* Initialize a Carbon data table component.
|
|
281
|
-
*
|
|
282
|
-
* Note: The cdsTable parameter is a CDSTable instance from @carbon/web-components.
|
|
283
|
-
* To access the CDSTable class and its static properties/methods, use:
|
|
284
|
-
* const CDSTable = customElements.get('cds-table');
|
|
285
|
-
* // or
|
|
286
|
-
* const CDSTable = cdsTable.constructor;
|
|
287
|
-
*
|
|
288
|
-
* Example - Using static event names:
|
|
289
|
-
* const CDSTable = customElements.get('cds-table');
|
|
290
|
-
* panel.listen(cdsTable, CDSTable.eventBeforeChangeSelection, e => {...});
|
|
291
|
-
*
|
|
292
|
-
* Initialization flow:
|
|
293
|
-
* 1. Extract semantic attributes from table element
|
|
294
|
-
* 2. Check for zoo-url-api attribute to determine if Binder is needed
|
|
295
|
-
* 3. If Binder:
|
|
296
|
-
* - Create Binder instance with configured page size
|
|
297
|
-
* - Create and show skeleton loader
|
|
298
|
-
* - Create pagination component
|
|
299
|
-
* - Fetch initial data
|
|
300
|
-
* - Remove skeleton and configure pagination when data arrives
|
|
301
|
-
* - Set up event handlers after data is loaded (prevents duplicate initial fetch)
|
|
302
|
-
* 4. If no Binder:
|
|
303
|
-
* - Set up event handlers immediately for client-side behavior
|
|
304
|
-
*
|
|
305
|
-
* @param {CDSTable} cdsTable - The CDSTable custom element instance (from @carbon/web-components)
|
|
306
|
-
* @this {Panel} The panel instance
|
|
307
|
-
*/
|
|
308
|
-
init: function(t) {
|
|
309
|
-
const e = l(t), n = this, o = wt(n, t);
|
|
310
|
-
if (Et(o)) {
|
|
311
|
-
t.dataBinder = o;
|
|
312
|
-
const s = Ot(t);
|
|
313
|
-
t.skeleton = s;
|
|
314
|
-
const c = Nt(o);
|
|
315
|
-
t.pagination = c, t.after(c), o.fetchData().then((i) => {
|
|
316
|
-
s.hide(), c.setData(o), X(n, t, e);
|
|
317
|
-
});
|
|
318
|
-
} else
|
|
319
|
-
X(n, t, e);
|
|
320
|
-
}
|
|
321
|
-
}, Wt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
322
|
-
__proto__: null,
|
|
323
|
-
cdsTableWrap: Mt
|
|
324
|
-
}, Symbol.toStringTag, { value: "Module" })), Rt = {
|
|
325
|
-
selector: "cds-pagination",
|
|
326
|
-
/**
|
|
327
|
-
* Initialize a standalone pagination component.
|
|
328
|
-
*
|
|
329
|
-
* @param {CDSPagination} pagination - The CDSPagination custom element instance
|
|
330
|
-
* @this {Panel} The panel instance
|
|
331
|
-
*/
|
|
332
|
-
init: function(t) {
|
|
333
|
-
const e = this, n = customElements.get("cds-pagination");
|
|
334
|
-
let o = null;
|
|
335
|
-
e.listen(t, n.eventChangeCurrent, (s) => {
|
|
336
|
-
const c = s.detail.page, i = t.pageSize, a = (c - 1) * i;
|
|
337
|
-
a !== o && (o = a, e.dispatchPanelEvent("pagination-changed-current", {
|
|
338
|
-
detail: {
|
|
339
|
-
page: c,
|
|
340
|
-
pageSize: i,
|
|
341
|
-
action: "page-change"
|
|
342
|
-
}
|
|
343
|
-
}));
|
|
344
|
-
}), e.listen(t, n.eventPageSizeChanged, (s) => {
|
|
345
|
-
const c = t.pageSize;
|
|
346
|
-
o = null, e.dispatchPanelEvent("pagination-changed-page-size", {
|
|
347
|
-
detail: {
|
|
348
|
-
page: 1,
|
|
349
|
-
// Reset to page 1 when changing size
|
|
350
|
-
pageSize: c,
|
|
351
|
-
action: "page-size-change"
|
|
352
|
-
}
|
|
353
|
-
});
|
|
354
|
-
});
|
|
355
|
-
}
|
|
356
|
-
}, Bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
357
|
-
__proto__: null,
|
|
358
|
-
cdsPaginationWrap: Rt
|
|
359
|
-
}, Symbol.toStringTag, { value: "Module" })), zt = {
|
|
360
|
-
selector: "cds-modal",
|
|
361
|
-
/**
|
|
362
|
-
* @param {CDSModal} modal - The CDSModal custom element instance
|
|
363
|
-
* @this {Panel} The panel instance
|
|
364
|
-
*/
|
|
365
|
-
init: function(t) {
|
|
366
|
-
const e = customElements.get("cds-modal"), n = l(t), o = E(t, "open-event", "event");
|
|
367
|
-
o && this.listen(t, "cds-modal-beingopened", (i) => {
|
|
368
|
-
this.dispatchPanelEvent(o, {
|
|
369
|
-
...n,
|
|
370
|
-
action: "opened"
|
|
371
|
-
});
|
|
372
|
-
});
|
|
373
|
-
const s = t.getAttribute("before-close-event");
|
|
374
|
-
s && this.listen(t, e.eventBeforeClose, (i) => {
|
|
375
|
-
this.dispatchPanelEvent(s, {
|
|
376
|
-
...n,
|
|
377
|
-
action: "closing",
|
|
378
|
-
cancelable: !0
|
|
379
|
-
});
|
|
380
|
-
}), this.listen(t, e.eventClose, (i) => {
|
|
381
|
-
this.dispatchPanelEvent("destroy_me", {
|
|
382
|
-
...n,
|
|
383
|
-
action: "closed",
|
|
384
|
-
triggeredBy: i.detail?.triggeredBy
|
|
385
|
-
});
|
|
386
|
-
});
|
|
387
|
-
const c = E(t, "primary-event", "event");
|
|
388
|
-
c && this.listen(t, "cds-modal-primary-focus", (i) => {
|
|
389
|
-
this.dispatchPanelEvent(c, {
|
|
390
|
-
...n,
|
|
391
|
-
action: "primary"
|
|
392
|
-
});
|
|
393
|
-
});
|
|
394
|
-
}
|
|
395
|
-
}, jt = {
|
|
396
|
-
selector: "cds-modal-header"
|
|
397
|
-
}, xt = {
|
|
398
|
-
selector: "cds-modal-heading"
|
|
399
|
-
}, Lt = {
|
|
400
|
-
selector: "cds-modal-label"
|
|
401
|
-
}, Ft = {
|
|
402
|
-
selector: "cds-modal-close-button"
|
|
403
|
-
}, qt = {
|
|
404
|
-
selector: "cds-modal-body"
|
|
405
|
-
}, Gt = {
|
|
406
|
-
selector: "cds-modal-body-content"
|
|
407
|
-
}, Ut = {
|
|
408
|
-
selector: "cds-modal-footer"
|
|
409
|
-
}, Ht = {
|
|
410
|
-
selector: "cds-modal-footer-button",
|
|
411
|
-
/**
|
|
412
|
-
* @param {CDSModalFooterButton} button - The CDSModal custom element instance
|
|
413
|
-
* @this {Panel} The panel instance
|
|
414
|
-
*/
|
|
415
|
-
init: function(t) {
|
|
416
|
-
const e = l(t);
|
|
417
|
-
if (t.getAttribute("type") === "submit") {
|
|
418
|
-
this.listen(t, "click", (s) => {
|
|
419
|
-
let c = t.closest("form");
|
|
420
|
-
if (!c) {
|
|
421
|
-
const i = t.getAttribute("form");
|
|
422
|
-
i && (c = document.getElementById(i));
|
|
423
|
-
}
|
|
424
|
-
c && c.requestSubmit();
|
|
425
|
-
});
|
|
426
|
-
return;
|
|
427
|
-
}
|
|
428
|
-
const o = e.event;
|
|
429
|
-
o && this.listen(t, "click", (s) => {
|
|
430
|
-
s.stopPropagation(), this.dispatchPanelEvent(o, e);
|
|
431
|
-
});
|
|
432
|
-
}
|
|
433
|
-
}, Vt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
434
|
-
__proto__: null,
|
|
435
|
-
cdsModalBodyContentWrap: Gt,
|
|
436
|
-
cdsModalBodyWrap: qt,
|
|
437
|
-
cdsModalCloseButWrap: Ft,
|
|
438
|
-
cdsModalFooterButWrap: Ht,
|
|
439
|
-
cdsModalFooterWrap: Ut,
|
|
440
|
-
cdsModalHeaderWrap: jt,
|
|
441
|
-
cdsModalHeadingWrap: xt,
|
|
442
|
-
cdsModalLabelWrap: Lt,
|
|
443
|
-
cdsModalWrap: zt
|
|
444
|
-
}, Symbol.toStringTag, { value: "Module" })), $t = {
|
|
445
|
-
selector: "cds-menu",
|
|
446
|
-
/**
|
|
447
|
-
* @param {CDSMenu} menu - The CDSMenu custom element instance
|
|
448
|
-
* @this {Panel} The panel instance
|
|
449
|
-
*/
|
|
450
|
-
init: function(t) {
|
|
451
|
-
const e = l(t), n = E(t, "open-event");
|
|
452
|
-
n && this.listen(t, "cds-menu-opened", (s) => {
|
|
453
|
-
this.dispatchPanelEvent(n, {
|
|
454
|
-
...e,
|
|
455
|
-
action: "opened"
|
|
456
|
-
});
|
|
457
|
-
});
|
|
458
|
-
const o = E(t, "close-event");
|
|
459
|
-
o && this.listen(t, "cds-menu-closed", (s) => {
|
|
460
|
-
this.dispatchPanelEvent(o, {
|
|
461
|
-
...e,
|
|
462
|
-
action: "closed"
|
|
463
|
-
});
|
|
464
|
-
}), this.listen(t, "click", (s) => {
|
|
465
|
-
if (s.target.tagName === "CDS-MENU-ITEM") {
|
|
466
|
-
const c = l(s.target), i = c.event || e.event;
|
|
467
|
-
i && (s.stopPropagation(), this.dispatchPanelEvent(i, {
|
|
468
|
-
...e,
|
|
469
|
-
...c
|
|
470
|
-
}));
|
|
471
|
-
}
|
|
472
|
-
}), this.listen(t, "cds-item-changed", (s) => {
|
|
473
|
-
const c = s.detail.triggeredBy, i = l(c), a = i.event || e.event;
|
|
474
|
-
a && this.dispatchPanelEvent(a, {
|
|
475
|
-
...e,
|
|
476
|
-
...i,
|
|
477
|
-
action: "selection-changed"
|
|
478
|
-
});
|
|
479
|
-
});
|
|
480
|
-
}
|
|
481
|
-
}, Yt = {
|
|
482
|
-
selector: "cds-menu-button",
|
|
483
|
-
/**
|
|
484
|
-
* @param {CDSMenuButton} menuButton - The CDSMenuButton custom element instance
|
|
485
|
-
* @this {Panel} The panel instance
|
|
486
|
-
*/
|
|
487
|
-
init: function(t) {
|
|
488
|
-
const e = l(t), n = t.querySelector("cds-menu");
|
|
489
|
-
n && this.listen(n, "click", (o) => {
|
|
490
|
-
if (o.target.tagName === "CDS-MENU-ITEM") {
|
|
491
|
-
const s = l(o.target), c = s.event || e.event;
|
|
492
|
-
c && (o.stopPropagation(), this.dispatchPanelEvent(c, {
|
|
493
|
-
...e,
|
|
494
|
-
...s
|
|
495
|
-
}));
|
|
496
|
-
}
|
|
497
|
-
});
|
|
498
|
-
}
|
|
499
|
-
}, Xt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
500
|
-
__proto__: null,
|
|
501
|
-
cdsMenuButtonWrap: Yt,
|
|
502
|
-
cdsMenuWrap: $t
|
|
503
|
-
}, Symbol.toStringTag, { value: "Module" })), Zt = {
|
|
504
|
-
selector: "cds-button",
|
|
505
|
-
/**
|
|
506
|
-
* @param {CDSButton} button - The CDSButton custom element instance
|
|
507
|
-
* @this {Panel} The panel instance
|
|
508
|
-
*/
|
|
509
|
-
init: function(t) {
|
|
510
|
-
const e = l(t);
|
|
511
|
-
if (t.getAttribute("type") === "submit") {
|
|
512
|
-
this.listen(t, "click", (s) => {
|
|
513
|
-
let c = t.closest("form");
|
|
514
|
-
if (!c) {
|
|
515
|
-
const i = t.getAttribute("form");
|
|
516
|
-
i && (c = document.getElementById(i));
|
|
517
|
-
}
|
|
518
|
-
c && c.requestSubmit();
|
|
519
|
-
});
|
|
520
|
-
return;
|
|
521
|
-
}
|
|
522
|
-
const o = e.event;
|
|
523
|
-
o && this.listen(t, "click", (s) => {
|
|
524
|
-
s.stopPropagation(), this.dispatchPanelEvent(o, l(t));
|
|
525
|
-
});
|
|
526
|
-
}
|
|
527
|
-
}, Jt = {
|
|
528
|
-
selector: "cds-icon-button:not([data-toggle])",
|
|
529
|
-
event: "click",
|
|
530
|
-
getData: (t, e) => e
|
|
531
|
-
}, Kt = {
|
|
532
|
-
selector: "cds-icon-button[data-toggle]",
|
|
533
|
-
/**
|
|
534
|
-
* @param {CDSIconButton} button - The CDSButton custom element instance
|
|
535
|
-
* @this {Panel} The panel instance
|
|
536
|
-
*/
|
|
537
|
-
init: function(t) {
|
|
538
|
-
const e = l(t);
|
|
539
|
-
e.event && this.listen(t, "click", (n) => {
|
|
540
|
-
n.stopPropagation(), t.isSelected = !t.isSelected, this.dispatchPanelEvent(e.event, {
|
|
541
|
-
...e,
|
|
542
|
-
isOn: t.isSelected
|
|
543
|
-
});
|
|
544
|
-
});
|
|
545
|
-
}
|
|
546
|
-
}, Qt = {
|
|
547
|
-
selector: "cds-button[data-fab]",
|
|
548
|
-
event: "click",
|
|
549
|
-
getData: (t, e) => e
|
|
550
|
-
}, te = {
|
|
551
|
-
selector: "cds-copy-button",
|
|
552
|
-
/**
|
|
553
|
-
* @param {CDSCopyButton} button - The CDSCopyButton custom element instance
|
|
554
|
-
* @this {Panel} The panel instance
|
|
555
|
-
*/
|
|
556
|
-
init: function(t) {
|
|
557
|
-
const e = l(t), n = e.event;
|
|
558
|
-
n && this.listen(t, "click", (s) => {
|
|
559
|
-
s.stopPropagation(), this.dispatchPanelEvent(n, {
|
|
560
|
-
...e,
|
|
561
|
-
action: "copy"
|
|
562
|
-
});
|
|
563
|
-
});
|
|
564
|
-
const o = t.getAttribute("success-event");
|
|
565
|
-
if (o) {
|
|
566
|
-
const s = new MutationObserver(() => {
|
|
567
|
-
t.hasAttribute("feedback-shown") && this.dispatchPanelEvent(o, {
|
|
568
|
-
...e,
|
|
569
|
-
action: "copied"
|
|
570
|
-
});
|
|
571
|
-
});
|
|
572
|
-
s.observe(t, {
|
|
573
|
-
attributes: !0,
|
|
574
|
-
attributeFilter: ["feedback-shown"]
|
|
575
|
-
}), t._copyObserver = s;
|
|
576
|
-
}
|
|
577
|
-
}
|
|
578
|
-
}, ee = {
|
|
579
|
-
selector: "cds-combo-button",
|
|
580
|
-
/**
|
|
581
|
-
* @param {CDSComboButton} button - The CDSComboButton custom element instance
|
|
582
|
-
* @this {Panel} The panel instance
|
|
583
|
-
*/
|
|
584
|
-
init: function(t) {
|
|
585
|
-
const e = l(t);
|
|
586
|
-
e.event && this.listen(t, "click", (o) => {
|
|
587
|
-
const s = o.composedPath(), c = s.some((a) => a.tagName === "CDS-MENU-ITEM"), i = s.some((a) => a.tagName === "CDS-ICON-BUTTON");
|
|
588
|
-
!c && !i && (o.stopPropagation(), this.dispatchPanelEvent(e.event, {
|
|
589
|
-
...e,
|
|
590
|
-
action: "primary"
|
|
591
|
-
}));
|
|
592
|
-
});
|
|
593
|
-
const n = t.querySelector("cds-menu");
|
|
594
|
-
n && this.listen(n, "click", (o) => {
|
|
595
|
-
if (o.target.tagName === "CDS-MENU-ITEM") {
|
|
596
|
-
const s = l(o.target), c = s.event || E(t, "menu-event", "event");
|
|
597
|
-
c && this.dispatchPanelEvent(c, {
|
|
598
|
-
...e,
|
|
599
|
-
...s,
|
|
600
|
-
action: "menu-item"
|
|
601
|
-
});
|
|
602
|
-
}
|
|
603
|
-
});
|
|
604
|
-
}
|
|
605
|
-
}, ne = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
606
|
-
__proto__: null,
|
|
607
|
-
cdsButFabWrap: Qt,
|
|
608
|
-
cdsButtonWrap: Zt,
|
|
609
|
-
cdsComboButWrap: ee,
|
|
610
|
-
cdsCopyButWrap: te,
|
|
611
|
-
cdsIconButToggleWrap: Kt,
|
|
612
|
-
cdsIconButWrap: Jt
|
|
613
|
-
}, Symbol.toStringTag, { value: "Module" })), oe = {
|
|
614
|
-
selector: "cds-dropdown",
|
|
615
|
-
/**
|
|
616
|
-
* @param {CDSDropdown} dropdown - The CDSDropdown custom element instance
|
|
617
|
-
* @this {Panel} The panel instance
|
|
618
|
-
*/
|
|
619
|
-
init: function(t) {
|
|
620
|
-
const e = customElements.get("cds-dropdown"), n = l(t), o = n.event;
|
|
621
|
-
o && this.listen(t, e.eventSelect, (c) => {
|
|
622
|
-
this.dispatchPanelEvent(o, {
|
|
623
|
-
...n,
|
|
624
|
-
value: t.value,
|
|
625
|
-
selectedValue: c.detail?.item?.value,
|
|
626
|
-
selectedText: c.detail?.item?.textContent?.trim()
|
|
627
|
-
});
|
|
628
|
-
});
|
|
629
|
-
const s = t.getAttribute("toggle-event");
|
|
630
|
-
s && this.listen(t, e.eventToggle, (c) => {
|
|
631
|
-
this.dispatchPanelEvent(s, {
|
|
632
|
-
...n,
|
|
633
|
-
open: t.hasAttribute("open")
|
|
634
|
-
});
|
|
635
|
-
});
|
|
636
|
-
}
|
|
637
|
-
}, se = {
|
|
638
|
-
selector: "cds-combo-box",
|
|
639
|
-
/**
|
|
640
|
-
* @param {CDSComboBox} comboBox - The CDSComboBox custom element instance
|
|
641
|
-
* @this {Panel} The panel instance
|
|
642
|
-
*/
|
|
643
|
-
init: function(t) {
|
|
644
|
-
const e = customElements.get("cds-combo-box"), n = l(t), o = n.event;
|
|
645
|
-
o && this.listen(t, e.eventSelect, (c) => {
|
|
646
|
-
const i = c.detail?.item;
|
|
647
|
-
this.dispatchPanelEvent(o, {
|
|
648
|
-
...n,
|
|
649
|
-
value: t.value,
|
|
650
|
-
selectedValue: i?.value,
|
|
651
|
-
selectedText: i?.textContent?.trim()
|
|
652
|
-
});
|
|
653
|
-
});
|
|
654
|
-
const s = t.getAttribute("toggle-event");
|
|
655
|
-
s && this.listen(t, e.eventToggle, (c) => {
|
|
656
|
-
this.dispatchPanelEvent(s, {
|
|
657
|
-
...n,
|
|
658
|
-
open: t.hasAttribute("open")
|
|
659
|
-
});
|
|
660
|
-
});
|
|
661
|
-
}
|
|
662
|
-
}, ce = {
|
|
663
|
-
selector: "cds-multi-select",
|
|
664
|
-
/**
|
|
665
|
-
* @param {CDSMultiSelect} multiSelect - The CDSMultiSelect custom element instance
|
|
666
|
-
* @this {Panel} The panel instance
|
|
667
|
-
*/
|
|
668
|
-
init: function(t) {
|
|
669
|
-
const e = customElements.get("cds-multi-select"), n = l(t), o = n.event;
|
|
670
|
-
o && this.listen(t, e.eventSelect, (c) => {
|
|
671
|
-
const i = t.value ? t.value.split(",") : [];
|
|
672
|
-
this.dispatchPanelEvent(o, {
|
|
673
|
-
...n,
|
|
674
|
-
selectedItems: i
|
|
675
|
-
});
|
|
676
|
-
});
|
|
677
|
-
const s = t.getAttribute("toggle-event");
|
|
678
|
-
s && this.listen(t, e.eventToggle, (c) => {
|
|
679
|
-
this.dispatchPanelEvent(s, {
|
|
680
|
-
...n,
|
|
681
|
-
open: t.hasAttribute("open")
|
|
682
|
-
});
|
|
683
|
-
});
|
|
684
|
-
}
|
|
685
|
-
}, ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
686
|
-
__proto__: null,
|
|
687
|
-
cdsComboBoxWrap: se,
|
|
688
|
-
cdsDropdownWrap: oe,
|
|
689
|
-
cdsMultiSelectWrap: ce
|
|
690
|
-
}, Symbol.toStringTag, { value: "Module" })), ae = {
|
|
691
|
-
selector: "cds-date-picker",
|
|
692
|
-
/**
|
|
693
|
-
* @param {CDSDatePicker} datePicker - The CDSDatePicker custom element instance
|
|
694
|
-
* @this {Panel} The panel instance
|
|
695
|
-
*/
|
|
696
|
-
init: function(t) {
|
|
697
|
-
const e = customElements.get("cds-date-picker"), n = l(t), o = t.querySelector('cds-date-picker-input[kind="from"]'), s = t.querySelector('cds-date-picker-input[kind="to"]'), c = o && s, i = n.event;
|
|
698
|
-
i && this.listen(t, e.eventChange, (d) => {
|
|
699
|
-
let S;
|
|
700
|
-
c ? S = {
|
|
701
|
-
from: o.value || "",
|
|
702
|
-
to: s.value || ""
|
|
703
|
-
} : S = t.value, this.dispatchPanelEvent(i, {
|
|
704
|
-
...n,
|
|
705
|
-
value: S
|
|
706
|
-
});
|
|
707
|
-
});
|
|
708
|
-
const a = t.getAttribute("error-event");
|
|
709
|
-
a && this.listen(t, e.eventFlatpickrError, (d) => {
|
|
710
|
-
this.dispatchPanelEvent(a, {
|
|
711
|
-
...n,
|
|
712
|
-
error: d.detail
|
|
713
|
-
});
|
|
714
|
-
});
|
|
715
|
-
}
|
|
716
|
-
}, re = {
|
|
717
|
-
selector: "cds-time-picker",
|
|
718
|
-
event: "cds-time-picker-changed",
|
|
719
|
-
getData: (t, e, n) => ({
|
|
720
|
-
...e,
|
|
721
|
-
value: n.value
|
|
722
|
-
})
|
|
723
|
-
}, le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
724
|
-
__proto__: null,
|
|
725
|
-
cdsDatePickerWrap: ae,
|
|
726
|
-
cdsTimePickerWrap: re
|
|
727
|
-
}, Symbol.toStringTag, { value: "Module" })), de = {
|
|
728
|
-
selector: "cds-file-uploader",
|
|
729
|
-
/**
|
|
730
|
-
* @param {CDSFileUploader} uploader - The CDSFileUploader custom element instance
|
|
731
|
-
* @this {Panel} The panel instance
|
|
732
|
-
*/
|
|
733
|
-
init: function(t) {
|
|
734
|
-
const e = l(t), n = e.event;
|
|
735
|
-
if (n) {
|
|
736
|
-
const s = t.querySelector('input[type="file"]');
|
|
737
|
-
s && this.listen(s, "change", (c) => {
|
|
738
|
-
this.dispatchPanelEvent(n, {
|
|
739
|
-
...e,
|
|
740
|
-
files: Array.from(c.target.files || [])
|
|
741
|
-
});
|
|
742
|
-
});
|
|
743
|
-
}
|
|
744
|
-
const o = t.getAttribute("delete-event");
|
|
745
|
-
o && this.listen(t, "cds-file-uploader-item-deleted", (s) => {
|
|
746
|
-
this.dispatchPanelEvent(o, {
|
|
747
|
-
...e,
|
|
748
|
-
fileName: s.detail?.fileName,
|
|
749
|
-
fileId: s.detail?.fileId
|
|
750
|
-
});
|
|
751
|
-
});
|
|
752
|
-
}
|
|
753
|
-
}, pe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
754
|
-
__proto__: null,
|
|
755
|
-
cdsFileUploaderWrap: de
|
|
756
|
-
}, Symbol.toStringTag, { value: "Module" })), ue = {
|
|
757
|
-
selector: "cds-tabs",
|
|
758
|
-
/**
|
|
759
|
-
* @param {CDSTabs} tabs - The CDSTabs custom element instance
|
|
760
|
-
* @this {Panel} The panel instance
|
|
761
|
-
*/
|
|
762
|
-
init: function(t) {
|
|
763
|
-
const e = customElements.get("cds-tabs"), n = l(t), o = t.getAttribute("before-select-event");
|
|
764
|
-
o && this.listen(t, e.eventBeforeSelect, (c) => {
|
|
765
|
-
this.dispatchPanelEvent(o, {
|
|
766
|
-
...n,
|
|
767
|
-
tabValue: c.detail.value,
|
|
768
|
-
cancelable: !0
|
|
769
|
-
});
|
|
770
|
-
});
|
|
771
|
-
const s = n.event;
|
|
772
|
-
s && this.listen(t, e.eventSelect, (c) => {
|
|
773
|
-
const i = c.detail.item, a = l(i);
|
|
774
|
-
this.dispatchPanelEvent(s, {
|
|
775
|
-
...n,
|
|
776
|
-
...a,
|
|
777
|
-
tabValue: c.detail.value
|
|
778
|
-
});
|
|
779
|
-
});
|
|
780
|
-
}
|
|
781
|
-
}, me = {
|
|
782
|
-
selector: "cds-accordion",
|
|
783
|
-
/**
|
|
784
|
-
* @param {CDSAccordion} accordion - The CDSAccordion custom element instance
|
|
785
|
-
* @this {Panel} The panel instance
|
|
786
|
-
*/
|
|
787
|
-
init: function(t) {
|
|
788
|
-
const e = customElements.get("cds-accordion-item"), n = l(t);
|
|
789
|
-
[...t.querySelectorAll("cds-accordion-item")].forEach((s) => {
|
|
790
|
-
const c = l(s), i = c.event || n.event;
|
|
791
|
-
i && this.listen(s, e.eventToggle, (a) => {
|
|
792
|
-
this.dispatchPanelEvent(i, {
|
|
793
|
-
...n,
|
|
794
|
-
...c,
|
|
795
|
-
open: a.detail.open
|
|
796
|
-
});
|
|
797
|
-
});
|
|
798
|
-
});
|
|
799
|
-
}
|
|
800
|
-
}, fe = {
|
|
801
|
-
selector: "cds-content-switcher",
|
|
802
|
-
/**
|
|
803
|
-
* @param {CDSContentSwitcher} switcher - The CDSContentSwitcher custom element instance
|
|
804
|
-
* @this {Panel} The panel instance
|
|
805
|
-
*/
|
|
806
|
-
init: function(t) {
|
|
807
|
-
const e = customElements.get("cds-content-switcher"), n = l(t), o = t.getAttribute("before-select-event");
|
|
808
|
-
o && this.listen(t, e.eventBeforeSelect, (c) => {
|
|
809
|
-
this.dispatchPanelEvent(o, {
|
|
810
|
-
...n,
|
|
811
|
-
value: c.detail.value,
|
|
812
|
-
cancelable: !0
|
|
813
|
-
});
|
|
814
|
-
});
|
|
815
|
-
const s = n.event;
|
|
816
|
-
s && this.listen(t, e.eventSelect, (c) => {
|
|
817
|
-
const i = c.detail.item, a = l(i);
|
|
818
|
-
this.dispatchPanelEvent(s, {
|
|
819
|
-
...n,
|
|
820
|
-
...a,
|
|
821
|
-
value: i.getAttribute("value")
|
|
822
|
-
});
|
|
823
|
-
});
|
|
824
|
-
}
|
|
825
|
-
}, ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
826
|
-
__proto__: null,
|
|
827
|
-
cdsAccordionWrap: me,
|
|
828
|
-
cdsContentSwitcherWrap: fe,
|
|
829
|
-
cdsTabsWrap: ue
|
|
830
|
-
}, Symbol.toStringTag, { value: "Module" })), he = {
|
|
831
|
-
selector: "cds-breadcrumb-item"
|
|
832
|
-
}, ve = {
|
|
833
|
-
selector: "cds-breadcrumb-link",
|
|
834
|
-
event: "click",
|
|
835
|
-
getData: (t, e, n) => (t.preventDefault(), {
|
|
836
|
-
...e,
|
|
837
|
-
href: n.getAttribute("href")
|
|
838
|
-
})
|
|
839
|
-
}, be = {
|
|
840
|
-
selector: "cds-breadcrumb",
|
|
841
|
-
/**
|
|
842
|
-
* @param {CDSBreadcrumb} breadcrumb - The CDSBreadcrumb custom element instance
|
|
843
|
-
* @this {Panel} The panel instance
|
|
844
|
-
*/
|
|
845
|
-
init: function(t) {
|
|
846
|
-
const e = this, n = l(t), o = n.event;
|
|
847
|
-
if (o) {
|
|
848
|
-
const s = (i) => {
|
|
849
|
-
e.dispatchPanelEvent(o, {
|
|
850
|
-
...n,
|
|
851
|
-
...i
|
|
852
|
-
});
|
|
853
|
-
};
|
|
854
|
-
e.listen(t, "click", (i) => {
|
|
855
|
-
const a = i.target.closest("cds-breadcrumb-link");
|
|
856
|
-
if (a) {
|
|
857
|
-
i.preventDefault(), i.stopPropagation();
|
|
858
|
-
const d = l(a);
|
|
859
|
-
s(d);
|
|
860
|
-
}
|
|
861
|
-
});
|
|
862
|
-
const c = t.querySelector("cds-overflow-menu-body");
|
|
863
|
-
c && e.listen(c, "cds-overflow-menu-item-clicked", (i) => {
|
|
864
|
-
i.stopPropagation();
|
|
865
|
-
const a = l(i.target);
|
|
866
|
-
s(a);
|
|
867
|
-
});
|
|
868
|
-
}
|
|
869
|
-
}
|
|
870
|
-
}, Ee = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
871
|
-
__proto__: null,
|
|
872
|
-
cdsBreadCrumbWrap: be,
|
|
873
|
-
cdsBreadcrumbItemWrap: he,
|
|
874
|
-
cdsBreadcrumbLinkWrap: ve
|
|
875
|
-
}, Symbol.toStringTag, { value: "Module" })), Se = {
|
|
876
|
-
selector: "cds-text-input",
|
|
877
|
-
multiEvent: !0,
|
|
878
|
-
events: [
|
|
879
|
-
{
|
|
880
|
-
type: "input",
|
|
881
|
-
attrName: "event",
|
|
882
|
-
getData: (t, e) => ({
|
|
883
|
-
...e,
|
|
884
|
-
value: t.currentTarget.value
|
|
885
|
-
})
|
|
886
|
-
},
|
|
887
|
-
{
|
|
888
|
-
type: "change",
|
|
889
|
-
attrName: "change-event",
|
|
890
|
-
getData: (t, e) => ({
|
|
891
|
-
...e,
|
|
892
|
-
value: t.currentTarget.value
|
|
893
|
-
})
|
|
894
|
-
}
|
|
895
|
-
]
|
|
896
|
-
}, _e = {
|
|
897
|
-
selector: "cds-textarea",
|
|
898
|
-
multiEvent: !0,
|
|
899
|
-
events: [
|
|
900
|
-
{
|
|
901
|
-
type: "input",
|
|
902
|
-
attrName: "event",
|
|
903
|
-
getData: (t, e) => ({
|
|
904
|
-
...e,
|
|
905
|
-
value: t.currentTarget.value
|
|
906
|
-
})
|
|
907
|
-
},
|
|
908
|
-
{
|
|
909
|
-
type: "change",
|
|
910
|
-
attrName: "change-event",
|
|
911
|
-
getData: (t, e) => ({
|
|
912
|
-
...e,
|
|
913
|
-
value: t.currentTarget.value
|
|
914
|
-
})
|
|
915
|
-
}
|
|
916
|
-
]
|
|
917
|
-
}, Ie = {
|
|
918
|
-
selector: "cds-number-input",
|
|
919
|
-
event: "cds-number-input",
|
|
920
|
-
getData: (t, e, n) => ({
|
|
921
|
-
...e,
|
|
922
|
-
value: t.detail.value,
|
|
923
|
-
direction: t.detail.direction
|
|
924
|
-
// 'up' or 'down' when using steppers
|
|
925
|
-
})
|
|
926
|
-
}, ye = {
|
|
927
|
-
selector: "cds-password-input",
|
|
928
|
-
multiEvent: !0,
|
|
929
|
-
events: [
|
|
930
|
-
{
|
|
931
|
-
type: "input",
|
|
932
|
-
attrName: "event",
|
|
933
|
-
getData: (t, e) => ({
|
|
934
|
-
...e,
|
|
935
|
-
value: t.currentTarget.value
|
|
936
|
-
})
|
|
937
|
-
},
|
|
938
|
-
{
|
|
939
|
-
type: "change",
|
|
940
|
-
attrName: "change-event",
|
|
941
|
-
getData: (t, e) => ({
|
|
942
|
-
...e,
|
|
943
|
-
value: t.currentTarget.value
|
|
944
|
-
})
|
|
945
|
-
}
|
|
946
|
-
]
|
|
947
|
-
}, Pe = {
|
|
948
|
-
selector: "cds-search",
|
|
949
|
-
event: "cds-search-input",
|
|
950
|
-
getData: (t, e, n) => ({
|
|
951
|
-
...e,
|
|
952
|
-
value: n.value
|
|
953
|
-
})
|
|
954
|
-
}, Ce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
955
|
-
__proto__: null,
|
|
956
|
-
cdsNumberInputWrap: Ie,
|
|
957
|
-
cdsPasswordInputWrap: ye,
|
|
958
|
-
cdsSearchWrap: Pe,
|
|
959
|
-
cdsTextAreaWrap: _e,
|
|
960
|
-
cdsTextInputWrap: Se
|
|
961
|
-
}, Symbol.toStringTag, { value: "Module" })), Ae = {
|
|
962
|
-
selector: "cds-checkbox",
|
|
963
|
-
event: "cds-checkbox-changed",
|
|
964
|
-
getData: (t, e, n) => ({
|
|
965
|
-
...e,
|
|
966
|
-
checked: t.detail.checked,
|
|
967
|
-
value: n.value
|
|
968
|
-
})
|
|
969
|
-
}, Te = {
|
|
970
|
-
selector: "cds-radio-button-group",
|
|
971
|
-
event: "cds-radio-button-group-changed",
|
|
972
|
-
getData: (t, e) => ({
|
|
973
|
-
...e,
|
|
974
|
-
value: t.detail?.value
|
|
975
|
-
})
|
|
976
|
-
}, De = {
|
|
977
|
-
selector: "cds-toggle",
|
|
978
|
-
event: "cds-toggle-changed",
|
|
979
|
-
getData: (t, e) => ({
|
|
980
|
-
...e,
|
|
981
|
-
isOn: t.detail.checked,
|
|
982
|
-
value: t.detail.checked
|
|
983
|
-
})
|
|
984
|
-
}, ke = {
|
|
985
|
-
selector: "cds-select",
|
|
986
|
-
event: "cds-select-selected",
|
|
987
|
-
getData: (t, e) => ({
|
|
988
|
-
...e,
|
|
989
|
-
value: t.detail.value
|
|
990
|
-
})
|
|
991
|
-
}, Ne = {
|
|
992
|
-
selector: "cds-slider",
|
|
993
|
-
/**
|
|
994
|
-
* @param {CDSSlider} slider - The CDSSlider custom element instance
|
|
995
|
-
* @this {Panel} The panel instance
|
|
996
|
-
*/
|
|
997
|
-
init: function(t) {
|
|
998
|
-
const e = l(t), n = e.event;
|
|
999
|
-
n && this.listen(t, "cds-slider-changed", (s) => {
|
|
1000
|
-
this.dispatchPanelEvent(n, {
|
|
1001
|
-
...e,
|
|
1002
|
-
value: s.detail.value
|
|
1003
|
-
});
|
|
1004
|
-
});
|
|
1005
|
-
const o = t.getAttribute("input-event");
|
|
1006
|
-
o && this.listen(t, "cds-slider-input-changed", (s) => {
|
|
1007
|
-
this.dispatchPanelEvent(o, {
|
|
1008
|
-
...e,
|
|
1009
|
-
value: s.detail.value
|
|
1010
|
-
});
|
|
1011
|
-
});
|
|
1012
|
-
}
|
|
1013
|
-
}, Oe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1014
|
-
__proto__: null,
|
|
1015
|
-
cdsCheckboxWrap: Ae,
|
|
1016
|
-
cdsRadioButGroupWrap: Te,
|
|
1017
|
-
cdsSelectWrap: ke,
|
|
1018
|
-
cdsSliderWrap: Ne,
|
|
1019
|
-
cdsToggleWrap: De
|
|
1020
|
-
}, Symbol.toStringTag, { value: "Module" })), we = {
|
|
1021
|
-
selector: "cds-tag",
|
|
1022
|
-
event: "click",
|
|
1023
|
-
getData: (t, e) => e
|
|
1024
|
-
}, Me = {
|
|
1025
|
-
selector: "cds-dismissible-tag",
|
|
1026
|
-
/**
|
|
1027
|
-
* @param {CDSDismissibleTag} tag - The CDSDismissibleTag custom element instance
|
|
1028
|
-
* @this {Panel} The panel instance
|
|
1029
|
-
*/
|
|
1030
|
-
init: function(t) {
|
|
1031
|
-
const e = l(t), n = t.getAttribute("click-event");
|
|
1032
|
-
n && this.listen(t, "click", (s) => {
|
|
1033
|
-
s.target.closest("button") || this.dispatchPanelEvent(n, {
|
|
1034
|
-
...e
|
|
1035
|
-
});
|
|
1036
|
-
});
|
|
1037
|
-
const o = e.event;
|
|
1038
|
-
o && this.listen(t, "cds-dismissible-tag-closed", (s) => {
|
|
1039
|
-
this.dispatchPanelEvent(o, {
|
|
1040
|
-
...e,
|
|
1041
|
-
action: "closed"
|
|
1042
|
-
});
|
|
1043
|
-
});
|
|
1044
|
-
}
|
|
1045
|
-
}, We = {
|
|
1046
|
-
selector: "cds-filter-tag",
|
|
1047
|
-
event: "cds-filter-tag-closed",
|
|
1048
|
-
getData: (t, e) => ({
|
|
1049
|
-
...e,
|
|
1050
|
-
action: "remove"
|
|
1051
|
-
})
|
|
1052
|
-
}, Re = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1053
|
-
__proto__: null,
|
|
1054
|
-
cdsFilterTagWrap: We,
|
|
1055
|
-
cdsSDismissibleTagWrap: Me,
|
|
1056
|
-
cdsTagsWrap: we
|
|
1057
|
-
}, Symbol.toStringTag, { value: "Module" })), Be = {
|
|
1058
|
-
selector: "cds-overflow-menu",
|
|
1059
|
-
/**
|
|
1060
|
-
* @param {CDSOverflowMenu} overflowMenu - The CDSOverflowMenu custom element instance
|
|
1061
|
-
* @this {Panel} The panel instance
|
|
1062
|
-
*/
|
|
1063
|
-
init: function(t) {
|
|
1064
|
-
const e = l(t), n = e.event, o = t.querySelector("cds-overflow-menu-body");
|
|
1065
|
-
n && o && this.listen(o, "cds-overflow-menu-item-clicked", (s) => {
|
|
1066
|
-
s.stopPropagation();
|
|
1067
|
-
const c = l(s.target);
|
|
1068
|
-
this.dispatchPanelEvent(n, {
|
|
1069
|
-
...e,
|
|
1070
|
-
...c
|
|
1071
|
-
});
|
|
1072
|
-
});
|
|
1073
|
-
}
|
|
1074
|
-
}, ze = {
|
|
1075
|
-
selector: "cds-structured-list",
|
|
1076
|
-
/**
|
|
1077
|
-
* @param {CDSStructuredList} list - The CDSStructuredList custom element instance
|
|
1078
|
-
* @this {Panel} The panel instance
|
|
1079
|
-
*/
|
|
1080
|
-
init: function(t) {
|
|
1081
|
-
const e = l(t);
|
|
1082
|
-
[...t.querySelectorAll("cds-structured-list-row")].forEach((o) => {
|
|
1083
|
-
const s = l(o), c = s.event || e.event;
|
|
1084
|
-
c && this.listen(o, "click", (i) => {
|
|
1085
|
-
i.stopPropagation(), this.dispatchPanelEvent(c, {
|
|
1086
|
-
...e,
|
|
1087
|
-
...s
|
|
1088
|
-
});
|
|
1089
|
-
});
|
|
1090
|
-
}), t.hasAttribute("selection") && this.listen(t, "cds-structured-list-selected", (o) => {
|
|
1091
|
-
const s = o.detail.row, c = l(s), i = e.event;
|
|
1092
|
-
i && this.dispatchPanelEvent(i, {
|
|
1093
|
-
...e,
|
|
1094
|
-
...c
|
|
1095
|
-
});
|
|
1096
|
-
});
|
|
1097
|
-
}
|
|
1098
|
-
}, je = {
|
|
1099
|
-
selector: "cds-tree-view",
|
|
1100
|
-
/**
|
|
1101
|
-
* @param {CDSTreeView} tree - The CDSTreeView custom element instance
|
|
1102
|
-
* @this {Panel} The panel instance
|
|
1103
|
-
*/
|
|
1104
|
-
init: function(t) {
|
|
1105
|
-
const e = l(t);
|
|
1106
|
-
this.listen(t, "cds-tree-node-selected", (o) => {
|
|
1107
|
-
const s = o.detail.node, c = l(s), i = c.event || e.event;
|
|
1108
|
-
i && this.dispatchPanelEvent(i, {
|
|
1109
|
-
...e,
|
|
1110
|
-
...c,
|
|
1111
|
-
nodeId: s.id,
|
|
1112
|
-
label: s.getAttribute("label")
|
|
1113
|
-
});
|
|
1114
|
-
});
|
|
1115
|
-
const n = E(t, "expand-event");
|
|
1116
|
-
n && this.listen(t, "cds-tree-node-expanded", (o) => {
|
|
1117
|
-
this.dispatchPanelEvent(n, {
|
|
1118
|
-
...e,
|
|
1119
|
-
nodeId: o.detail.node.id,
|
|
1120
|
-
expanded: o.detail.expanded
|
|
1121
|
-
});
|
|
1122
|
-
});
|
|
1123
|
-
}
|
|
1124
|
-
}, xe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1125
|
-
__proto__: null,
|
|
1126
|
-
cdsOverflowMenuWrap: Be,
|
|
1127
|
-
cdsStructuredListWrap: ze,
|
|
1128
|
-
cdsTreeViewWrap: je
|
|
1129
|
-
}, Symbol.toStringTag, { value: "Module" })), Le = {
|
|
1130
|
-
selector: "cds-toast-notification",
|
|
1131
|
-
event: "cds-notification-closed",
|
|
1132
|
-
getData: (t, e) => ({
|
|
1133
|
-
...e,
|
|
1134
|
-
action: "closed"
|
|
1135
|
-
})
|
|
1136
|
-
}, Fe = {
|
|
1137
|
-
selector: "cds-inline-notification",
|
|
1138
|
-
event: "cds-notification-closed",
|
|
1139
|
-
getData: (t, e) => ({
|
|
1140
|
-
...e,
|
|
1141
|
-
action: "closed"
|
|
1142
|
-
})
|
|
1143
|
-
}, qe = {
|
|
1144
|
-
selector: "cds-actionable-notification",
|
|
1145
|
-
/**
|
|
1146
|
-
* @param {CDSActionableNotification} notification - The CDSActionableNotification custom element instance
|
|
1147
|
-
* @this {Panel} The panel instance
|
|
1148
|
-
*/
|
|
1149
|
-
init: function(t) {
|
|
1150
|
-
const e = l(t), n = E(t, "close-event", "event");
|
|
1151
|
-
n && this.listen(t, "cds-notification-closed", (s) => {
|
|
1152
|
-
this.dispatchPanelEvent(n, {
|
|
1153
|
-
...e,
|
|
1154
|
-
action: "closed"
|
|
1155
|
-
});
|
|
1156
|
-
});
|
|
1157
|
-
const o = E(t, "action-event");
|
|
1158
|
-
o && this.listen(t, "cds-notification-actioned", (s) => {
|
|
1159
|
-
this.dispatchPanelEvent(o, {
|
|
1160
|
-
...e,
|
|
1161
|
-
action: "actioned"
|
|
1162
|
-
});
|
|
1163
|
-
});
|
|
1164
|
-
}
|
|
1165
|
-
}, Ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1166
|
-
__proto__: null,
|
|
1167
|
-
cdsActionableNotificationWrap: qe,
|
|
1168
|
-
cdsInlineNotificationWrap: Fe,
|
|
1169
|
-
cdsToastNotificationWrap: Le
|
|
1170
|
-
}, Symbol.toStringTag, { value: "Module" })), Ue = {
|
|
1171
|
-
selector: "cds-clickable-tile",
|
|
1172
|
-
event: "click",
|
|
1173
|
-
getData: (t, e) => ({
|
|
1174
|
-
...e,
|
|
1175
|
-
href: t.currentTarget.getAttribute("href")
|
|
1176
|
-
})
|
|
1177
|
-
}, He = {
|
|
1178
|
-
selector: "cds-expandable-tile",
|
|
1179
|
-
/**
|
|
1180
|
-
* @param {CDSExpandableTile} tile - The CDSExpandableTile custom element instance
|
|
1181
|
-
* @this {Panel} The panel instance
|
|
1182
|
-
*/
|
|
1183
|
-
init: function(t) {
|
|
1184
|
-
const e = l(t), n = t.getAttribute("before-toggle-event");
|
|
1185
|
-
n && this.listen(t, "cds-expandable-tile-beingtoggled", (s) => {
|
|
1186
|
-
this.dispatchPanelEvent(n, {
|
|
1187
|
-
...e,
|
|
1188
|
-
expanded: s.detail.expanded,
|
|
1189
|
-
cancelable: !0
|
|
1190
|
-
});
|
|
1191
|
-
});
|
|
1192
|
-
const o = e.event;
|
|
1193
|
-
o && this.listen(t, "cds-expandable-tile-toggled", (s) => {
|
|
1194
|
-
this.dispatchPanelEvent(o, {
|
|
1195
|
-
...e,
|
|
1196
|
-
expanded: s.detail.expanded
|
|
1197
|
-
});
|
|
1198
|
-
});
|
|
1199
|
-
}
|
|
1200
|
-
}, Ve = {
|
|
1201
|
-
selector: "cds-selectable-tile",
|
|
1202
|
-
event: "cds-selectable-tile-changed",
|
|
1203
|
-
getData: (t, e, n) => ({
|
|
1204
|
-
...e,
|
|
1205
|
-
selected: t.detail.selected,
|
|
1206
|
-
value: n.value
|
|
1207
|
-
})
|
|
1208
|
-
}, $e = {
|
|
1209
|
-
selector: "cds-radio-tile",
|
|
1210
|
-
event: "cds-selectable-tile-changed",
|
|
1211
|
-
getData: (t, e, n) => ({
|
|
1212
|
-
...e,
|
|
1213
|
-
selected: t.detail.selected,
|
|
1214
|
-
value: n.value
|
|
1215
|
-
})
|
|
1216
|
-
}, Ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1217
|
-
__proto__: null,
|
|
1218
|
-
cdsClickableTileWrap: Ue,
|
|
1219
|
-
cdsExpandableTileWrap: He,
|
|
1220
|
-
cdsRadioTileWrap: $e,
|
|
1221
|
-
cdsSelectableTileWrap: Ve
|
|
1222
|
-
}, Symbol.toStringTag, { value: "Module" })), Xe = {
|
|
1223
|
-
selector: "cds-progress-bar",
|
|
1224
|
-
/**
|
|
1225
|
-
* @param {CDSProgressBar} progressBar - The CDSProgressBar custom element instance
|
|
1226
|
-
* @this {Panel} The panel instance
|
|
1227
|
-
*/
|
|
1228
|
-
init: function(t) {
|
|
1229
|
-
const e = l(t);
|
|
1230
|
-
if (e.event) {
|
|
1231
|
-
const n = new MutationObserver(() => {
|
|
1232
|
-
const o = parseFloat(t.getAttribute("value") || "0"), s = parseFloat(t.getAttribute("max") || "100");
|
|
1233
|
-
o >= s && this.dispatchPanelEvent(e.event, {
|
|
1234
|
-
...e,
|
|
1235
|
-
value: o,
|
|
1236
|
-
status: "complete"
|
|
1237
|
-
});
|
|
1238
|
-
});
|
|
1239
|
-
n.observe(t, {
|
|
1240
|
-
attributes: !0,
|
|
1241
|
-
attributeFilter: ["value"]
|
|
1242
|
-
}), t._progressObserver = n;
|
|
1243
|
-
}
|
|
1244
|
-
}
|
|
1245
|
-
}, Ze = {
|
|
1246
|
-
selector: "cds-progress-indicator",
|
|
1247
|
-
/**
|
|
1248
|
-
* @param {CDSProgressIndicator} indicator - The CDSProgressIndicator custom element instance
|
|
1249
|
-
* @this {Panel} The panel instance
|
|
1250
|
-
*/
|
|
1251
|
-
init: function(t) {
|
|
1252
|
-
const e = l(t);
|
|
1253
|
-
this.listen(t, "cds-progress-step-click", (n) => {
|
|
1254
|
-
const o = n.target, s = l(o), c = s.event || e.event;
|
|
1255
|
-
c && this.dispatchPanelEvent(c, {
|
|
1256
|
-
...e,
|
|
1257
|
-
...s,
|
|
1258
|
-
stepIndex: o.getAttribute("data-index"),
|
|
1259
|
-
stepLabel: o.getAttribute("label")
|
|
1260
|
-
});
|
|
1261
|
-
});
|
|
1262
|
-
}
|
|
1263
|
-
}, Je = {
|
|
1264
|
-
selector: "cds-inline-loading",
|
|
1265
|
-
/**
|
|
1266
|
-
* @param {CDSInlineLoading} inlineLoading - The CDSInlineLoading custom element instance
|
|
1267
|
-
* @this {Panel} The panel instance
|
|
1268
|
-
*/
|
|
1269
|
-
init: function(t) {
|
|
1270
|
-
const e = l(t), n = e.event;
|
|
1271
|
-
n && this.listen(t, "cds-inline-loading-onsuccess", (s) => {
|
|
1272
|
-
this.dispatchPanelEvent(n, {
|
|
1273
|
-
...e,
|
|
1274
|
-
status: "finished"
|
|
1275
|
-
});
|
|
1276
|
-
});
|
|
1277
|
-
const o = t.getAttribute("status-event");
|
|
1278
|
-
if (o) {
|
|
1279
|
-
const s = new MutationObserver((c) => {
|
|
1280
|
-
c.forEach((i) => {
|
|
1281
|
-
if (i.attributeName === "status") {
|
|
1282
|
-
const a = t.getAttribute("status");
|
|
1283
|
-
this.dispatchPanelEvent(o, {
|
|
1284
|
-
...e,
|
|
1285
|
-
status: a
|
|
1286
|
-
});
|
|
1287
|
-
}
|
|
1288
|
-
});
|
|
1289
|
-
});
|
|
1290
|
-
s.observe(t, {
|
|
1291
|
-
attributes: !0,
|
|
1292
|
-
attributeFilter: ["status"]
|
|
1293
|
-
}), t._statusObserver = s;
|
|
1294
|
-
}
|
|
1295
|
-
}
|
|
1296
|
-
}, Ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1297
|
-
__proto__: null,
|
|
1298
|
-
cdsInlineLoadingWrap: Je,
|
|
1299
|
-
cdsProgressBarWrap: Xe,
|
|
1300
|
-
cdsProgressIndicatorWrap: Ze
|
|
1301
|
-
}, Symbol.toStringTag, { value: "Module" })), Qe = {
|
|
1302
|
-
selector: "cds-tooltip",
|
|
1303
|
-
/**
|
|
1304
|
-
* @param {CDSTooltip} tooltip - The CDSTooltip custom element instance
|
|
1305
|
-
* @this {Panel} The panel instance
|
|
1306
|
-
*/
|
|
1307
|
-
init: function(t) {
|
|
1308
|
-
const e = l(t), n = E(t, "open-event");
|
|
1309
|
-
n && this.listen(t, "cds-tooltip-beingopened", (s) => {
|
|
1310
|
-
this.dispatchPanelEvent(n, {
|
|
1311
|
-
...e,
|
|
1312
|
-
action: "opened"
|
|
1313
|
-
});
|
|
1314
|
-
});
|
|
1315
|
-
const o = E(t, "close-event");
|
|
1316
|
-
o && this.listen(t, "cds-tooltip-closed", (s) => {
|
|
1317
|
-
this.dispatchPanelEvent(o, {
|
|
1318
|
-
...e,
|
|
1319
|
-
action: "closed"
|
|
1320
|
-
});
|
|
1321
|
-
});
|
|
1322
|
-
}
|
|
1323
|
-
}, tn = {
|
|
1324
|
-
selector: "cds-popover",
|
|
1325
|
-
/**
|
|
1326
|
-
* @param {CDSPopover} popover - The CDSPopover custom element instance
|
|
1327
|
-
* @this {Panel} The panel instance
|
|
1328
|
-
*/
|
|
1329
|
-
init: function(t) {
|
|
1330
|
-
const e = l(t), n = E(t, "open-event");
|
|
1331
|
-
n && this.listen(t, "cds-popover-beingopened", (s) => {
|
|
1332
|
-
this.dispatchPanelEvent(n, {
|
|
1333
|
-
...e,
|
|
1334
|
-
action: "opened"
|
|
1335
|
-
});
|
|
1336
|
-
});
|
|
1337
|
-
const o = E(t, "close-event");
|
|
1338
|
-
o && this.listen(t, "cds-popover-closed", (s) => {
|
|
1339
|
-
this.dispatchPanelEvent(o, {
|
|
1340
|
-
...e,
|
|
1341
|
-
action: "closed"
|
|
1342
|
-
});
|
|
1343
|
-
});
|
|
1344
|
-
}
|
|
1345
|
-
}, en = {
|
|
1346
|
-
selector: "cds-toggletip",
|
|
1347
|
-
/**
|
|
1348
|
-
* @param {CDSToggletip} toggletip - The CDSToggletip custom element instance
|
|
1349
|
-
* @this {Panel} The panel instance
|
|
1350
|
-
*/
|
|
1351
|
-
init: function(t) {
|
|
1352
|
-
const e = l(t);
|
|
1353
|
-
if (e.event) {
|
|
1354
|
-
const n = new MutationObserver((o) => {
|
|
1355
|
-
o.forEach((s) => {
|
|
1356
|
-
if (s.attributeName === "open") {
|
|
1357
|
-
const c = t.hasAttribute("open");
|
|
1358
|
-
this.dispatchPanelEvent(e.event, {
|
|
1359
|
-
...e,
|
|
1360
|
-
action: c ? "opened" : "closed",
|
|
1361
|
-
open: c
|
|
1362
|
-
});
|
|
1363
|
-
}
|
|
1364
|
-
});
|
|
1365
|
-
});
|
|
1366
|
-
n.observe(t, {
|
|
1367
|
-
attributes: !0,
|
|
1368
|
-
attributeFilter: ["open"]
|
|
1369
|
-
}), t._toggletipObserver = n;
|
|
1370
|
-
}
|
|
1371
|
-
}
|
|
1372
|
-
}, nn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1373
|
-
__proto__: null,
|
|
1374
|
-
cdsPopoverWrap: tn,
|
|
1375
|
-
cdsToggletipWrap: en,
|
|
1376
|
-
cdsTooltipWrap: Qe
|
|
1377
|
-
}, Symbol.toStringTag, { value: "Module" })), on = {
|
|
1378
|
-
selector: "cds-link",
|
|
1379
|
-
event: "click",
|
|
1380
|
-
getData: (t, e, n) => ({
|
|
1381
|
-
...e,
|
|
1382
|
-
href: n.getAttribute("href")
|
|
1383
|
-
})
|
|
1384
|
-
}, sn = {
|
|
1385
|
-
selector: "cds-code-snippet",
|
|
1386
|
-
event: "cds-copy-button-clicked",
|
|
1387
|
-
getData: (t, e) => ({
|
|
1388
|
-
...e,
|
|
1389
|
-
action: "copied"
|
|
1390
|
-
})
|
|
1391
|
-
}, cn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1392
|
-
__proto__: null,
|
|
1393
|
-
cdsCodeSnipWrap: sn,
|
|
1394
|
-
cdsLinkWrap: on
|
|
1395
|
-
}, Symbol.toStringTag, { value: "Module" })), an = {
|
|
1396
|
-
selector: "cds-form"
|
|
1397
|
-
}, rn = {
|
|
1398
|
-
selector: "cds-form-item"
|
|
1399
|
-
}, ln = {
|
|
1400
|
-
selector: "cds-form-group"
|
|
1401
|
-
}, dn = {
|
|
1402
|
-
selector: "cds-stack"
|
|
1403
|
-
}, pn = {
|
|
1404
|
-
selector: "cds-heading"
|
|
1405
|
-
}, un = {
|
|
1406
|
-
selector: "cds-icon"
|
|
1407
|
-
}, mn = {
|
|
1408
|
-
selector: "cds-icon-indicator"
|
|
1409
|
-
}, fn = {
|
|
1410
|
-
selector: "cds-badge-indicator"
|
|
1411
|
-
}, gn = {
|
|
1412
|
-
selector: "cds-loading"
|
|
1413
|
-
}, hn = {
|
|
1414
|
-
selector: "cds-skeleton-text"
|
|
1415
|
-
}, vn = {
|
|
1416
|
-
selector: "cds-skeleton-placeholder"
|
|
1417
|
-
}, bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1418
|
-
__proto__: null,
|
|
1419
|
-
cdsBadgeIndicatorWrap: fn,
|
|
1420
|
-
cdsFormGroupWrap: ln,
|
|
1421
|
-
cdsFormItemWrap: rn,
|
|
1422
|
-
cdsFormWrap: an,
|
|
1423
|
-
cdsHeadingWrap: pn,
|
|
1424
|
-
cdsIconIndicatorWrap: mn,
|
|
1425
|
-
cdsIconWrap: un,
|
|
1426
|
-
cdsLoadingWrap: gn,
|
|
1427
|
-
cdsSkeletonPlaceholderWrap: vn,
|
|
1428
|
-
cdsSkeletonTextWrap: hn,
|
|
1429
|
-
cdsStackWrap: dn
|
|
1430
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
1431
|
-
function f(t) {
|
|
1432
|
-
return Object.values(t).filter(
|
|
1433
|
-
(e) => typeof e == "object" && e !== null && e.selector
|
|
1434
|
-
);
|
|
1435
|
-
}
|
|
1436
|
-
const En = [
|
|
1437
|
-
...f(Bt),
|
|
1438
|
-
...f(Wt),
|
|
1439
|
-
...f(Vt),
|
|
1440
|
-
...f(Xt),
|
|
1441
|
-
...f(ne),
|
|
1442
|
-
...f(ie),
|
|
1443
|
-
...f(le),
|
|
1444
|
-
...f(pe),
|
|
1445
|
-
...f(ge),
|
|
1446
|
-
...f(Ee),
|
|
1447
|
-
...f(Ce),
|
|
1448
|
-
...f(Oe),
|
|
1449
|
-
...f(Re),
|
|
1450
|
-
...f(xe),
|
|
1451
|
-
...f(Ge),
|
|
1452
|
-
...f(Ye),
|
|
1453
|
-
...f(Ke),
|
|
1454
|
-
...f(nn),
|
|
1455
|
-
...f(cn),
|
|
1456
|
-
...f(bn)
|
|
1457
|
-
];
|
|
1458
|
-
function Sn() {
|
|
1459
|
-
const t = /* @__PURE__ */ new Map();
|
|
1460
|
-
return En.forEach((e) => {
|
|
1461
|
-
t.set(e.selector, e);
|
|
1462
|
-
}), t;
|
|
1463
|
-
}
|
|
1464
|
-
const _n = () => import("./index-Ds3e0NlH.js"), x = () => import("./index-CL8Un64Y.js"), In = () => import("./index-BekoThXC.js"), yn = () => import("./index-C2r3MkpB.js"), w = () => import("./index-LVNWqV95.js"), Pn = () => import("./index-DbPU3mfX.js"), Cn = () => import("./index-Cc-HBEN2.js").then((t) => t.i), An = () => import("./index-C2-pFkgT.js"), Tn = () => import("./index-DMIKb9St.js"), Z = () => import("./index-a_56_OA-.js"), Dn = () => import("./index-CyTN35KA.js"), L = () => import("./index-BVDZj6Fh.js"), J = () => import("./index-DpCo2duE.js").then((t) => t.i), kn = () => import("./index-DqLDehu6.js"), Nn = () => import("./index-ClBPGpC0.js"), On = () => import("./index-BL8xz2V4.js"), wn = () => import("./index-B2dVOGmx.js"), Mn = () => import("./index-B0PkuE0I.js"), F = () => import("./index-CvxrJ8vE.js"), Wn = () => import("./index-DLa-KLg_.js"), q = () => import("./index-BatQ1Mfz.js"), Rn = () => import("./index-DI-PunST.js"), Bn = () => import("./index-z2pAR1iR.js"), zn = () => import("./index-JUJu4Jsu.js"), K = () => import("./index-BEyeMcZh.js"), jn = () => import("./index-DjSdHUmw.js"), xn = () => import("./index-DLWyvZrE.js"), Ln = () => import("./index-CXSCYGFC.js"), Fn = () => import("./index-BP0bDhTG.js"), qn = () => import("./index-DsKNYemW.js"), Gn = () => import("./index-BrtdLKIG.js"), Q = () => import("./index-DCqxl0e0.js"), Un = () => import("./index-K3aE8_a_.js"), Hn = () => import("./index-DW1p-hc-.js"), tt = () => import("./index-BUXzbqzT.js"), Vn = () => import("./index-D3hwHwSn.js"), G = () => import("./index-CX6f-3xD.js"), $n = () => import("./index-C-PAoN2Y.js"), U = () => import("./index-CsaKV6jI.js"), Yn = () => import("./index-NduNWecG.js").then((t) => t.i), Xn = () => import("./index-CIeU44CB.js"), Zn = () => import("./index-B-VOos8Q.js"), Jn = () => import("./index-DwGKd66A.js"), Kn = () => import("./index-BxRbUwdY.js"), Qn = () => import("./index-Bnfa6YBY.js").then((t) => t.i), P = () => import("./index-B1QlHHpn.js"), C = () => import("./index-BJ3okuBC.js"), to = () => import("./index-vkfOeAd5.js").then((t) => t.i), eo = () => import("./index-ACUVets3.js"), no = () => import("./index-kjtnf5Y1.js"), oo = () => import("./index-sl9jQQX-.js"), so = () => import("./index-Cy6EogCp.js"), W = {
|
|
1465
|
-
// Tables & Pagination
|
|
1466
|
-
"cds-table": [C, L, q, K, F, tt, Hn],
|
|
1467
|
-
"cds-pagination": [F, q, tt],
|
|
1468
|
-
// Buttons
|
|
1469
|
-
"cds-button": [C, L],
|
|
1470
|
-
"cds-icon-button:not([data-toggle])": [C, J],
|
|
1471
|
-
"cds-icon-button[data-toggle]": [C, J],
|
|
1472
|
-
"cds-button[data-fab]": [C, L],
|
|
1473
|
-
"cds-copy-button": [C, Nn],
|
|
1474
|
-
"cds-combo-button": [C, kn],
|
|
1475
|
-
// Form Controls
|
|
1476
|
-
"cds-checkbox": [On],
|
|
1477
|
-
"cds-radio-button-group": [wn],
|
|
1478
|
-
"cds-toggle": [Mn],
|
|
1479
|
-
"cds-select": [F],
|
|
1480
|
-
"cds-slider": [Wn],
|
|
1481
|
-
// Form Inputs
|
|
1482
|
-
"cds-text-input": [q],
|
|
1483
|
-
"cds-textarea": [Rn],
|
|
1484
|
-
"cds-number-input": [Bn],
|
|
1485
|
-
"cds-password-input": [C, zn],
|
|
1486
|
-
"cds-search": [K],
|
|
1487
|
-
// Dropdown Components
|
|
1488
|
-
"cds-dropdown": [xn],
|
|
1489
|
-
"cds-combo-box": [jn],
|
|
1490
|
-
"cds-multi-select": [Ln],
|
|
1491
|
-
// Date & Time
|
|
1492
|
-
"cds-date-picker": [Fn],
|
|
1493
|
-
"cds-time-picker": [qn],
|
|
1494
|
-
// File Upload
|
|
1495
|
-
"cds-file-uploader": [Gn],
|
|
1496
|
-
// Navigation - Tabs
|
|
1497
|
-
"cds-tabs": [An],
|
|
1498
|
-
"cds-accordion": [_n],
|
|
1499
|
-
"cds-content-switcher": [Tn],
|
|
1500
|
-
// Navigation - Breadcrumbs
|
|
1501
|
-
"cds-breadcrumb": [x],
|
|
1502
|
-
"cds-breadcrumb-item": [x],
|
|
1503
|
-
"cds-breadcrumb-link": [x],
|
|
1504
|
-
// Navigation - Menus
|
|
1505
|
-
"cds-menu": [Z],
|
|
1506
|
-
"cds-menu-button": [Z],
|
|
1507
|
-
// Lists
|
|
1508
|
-
"cds-overflow-menu": [Dn],
|
|
1509
|
-
"cds-structured-list": [yn],
|
|
1510
|
-
"cds-tree-view": [Pn],
|
|
1511
|
-
// Modals
|
|
1512
|
-
"cds-modal": [P],
|
|
1513
|
-
"cds-modal-header": [P],
|
|
1514
|
-
"cds-modal-heading": [P],
|
|
1515
|
-
"cds-modal-label": [P],
|
|
1516
|
-
"cds-modal-close-button": [P],
|
|
1517
|
-
"cds-modal-body": [P],
|
|
1518
|
-
"cds-modal-body-content": [P],
|
|
1519
|
-
"cds-modal-footer": [P],
|
|
1520
|
-
"cds-modal-footer-button": [P],
|
|
1521
|
-
// Notifications
|
|
1522
|
-
"cds-toast-notification": [U],
|
|
1523
|
-
"cds-inline-notification": [U],
|
|
1524
|
-
"cds-actionable-notification": [U],
|
|
1525
|
-
// Tiles
|
|
1526
|
-
"cds-clickable-tile": [w],
|
|
1527
|
-
"cds-expandable-tile": [w],
|
|
1528
|
-
"cds-selectable-tile": [w],
|
|
1529
|
-
"cds-radio-tile": [w],
|
|
1530
|
-
// Progress
|
|
1531
|
-
"cds-progress-bar": [Zn],
|
|
1532
|
-
"cds-progress-indicator": [Jn],
|
|
1533
|
-
"cds-inline-loading": [Xn],
|
|
1534
|
-
// Tooltips & Popovers
|
|
1535
|
-
"cds-tooltip": [C],
|
|
1536
|
-
"cds-popover": [to],
|
|
1537
|
-
"cds-toggletip": [eo],
|
|
1538
|
-
// Tags
|
|
1539
|
-
"cds-tag": [G],
|
|
1540
|
-
"cds-dismissible-tag": [G],
|
|
1541
|
-
"cds-filter-tag": [G],
|
|
1542
|
-
// Miscellaneous
|
|
1543
|
-
"cds-link": [Cn],
|
|
1544
|
-
"cds-code-snippet": [Vn],
|
|
1545
|
-
// Presentational - Form Structure
|
|
1546
|
-
"cds-form": [Q],
|
|
1547
|
-
"cds-form-item": [Q],
|
|
1548
|
-
"cds-form-group": [Un],
|
|
1549
|
-
// Presentational - Layout
|
|
1550
|
-
"cds-stack": [In],
|
|
1551
|
-
// Presentational - Typography & Icons
|
|
1552
|
-
"cds-heading": [no],
|
|
1553
|
-
"cds-icon": [oo],
|
|
1554
|
-
"cds-icon-indicator": [so],
|
|
1555
|
-
"cds-badge-indicator": [$n],
|
|
1556
|
-
// Presentational - Loading States
|
|
1557
|
-
"cds-loading": [Yn],
|
|
1558
|
-
"cds-skeleton-text": [Qn],
|
|
1559
|
-
"cds-skeleton-placeholder": [Kn]
|
|
1560
|
-
};
|
|
1561
|
-
function co(t) {
|
|
1562
|
-
const e = /* @__PURE__ */ new Map();
|
|
1563
|
-
if (!t || !(t instanceof Element))
|
|
1564
|
-
return e;
|
|
1565
|
-
for (const o of Object.keys(M))
|
|
1566
|
-
e.set(o, []);
|
|
1567
|
-
for (const [o, s] of Object.entries(M))
|
|
1568
|
-
t.matches(o) && e.get(o).push(t);
|
|
1569
|
-
const n = t.querySelectorAll("*");
|
|
1570
|
-
for (const o of n)
|
|
1571
|
-
for (const [s, c] of Object.entries(M))
|
|
1572
|
-
o.matches(s) && e.get(s).push(o);
|
|
1573
|
-
for (const [o, s] of e.entries())
|
|
1574
|
-
s.length === 0 && e.delete(o);
|
|
1575
|
-
return e;
|
|
1576
|
-
}
|
|
1577
|
-
function io(t) {
|
|
1578
|
-
const e = /* @__PURE__ */ new Set();
|
|
1579
|
-
for (const [n, o] of t.entries())
|
|
1580
|
-
o.length > 0 && W[n] && W[n].forEach((c) => e.add(c));
|
|
1581
|
-
return e;
|
|
1582
|
-
}
|
|
1583
|
-
async function ao(t, e) {
|
|
1584
|
-
if (t.size === 0)
|
|
1585
|
-
return;
|
|
1586
|
-
const n = Array.from(t).map(async (o) => (e.has(o) || e.set(o, o()), e.get(o)));
|
|
1587
|
-
await Promise.all(n);
|
|
1588
|
-
}
|
|
1589
|
-
function ro(t, e) {
|
|
1590
|
-
let n = 0;
|
|
1591
|
-
for (const [o, s] of t.entries()) {
|
|
1592
|
-
const c = M[o];
|
|
1593
|
-
s.forEach((i) => {
|
|
1594
|
-
if (c.init) {
|
|
1595
|
-
c.init.call(e, i);
|
|
1596
|
-
return;
|
|
1597
|
-
}
|
|
1598
|
-
if (c.multiEvent) {
|
|
1599
|
-
const S = l(i);
|
|
1600
|
-
c.events.forEach((I) => {
|
|
1601
|
-
const D = E(i, I.attrName, "event");
|
|
1602
|
-
D && e.listen(i, I.type, (R) => {
|
|
1603
|
-
e.dispatchPanelEvent(D, I.getData(R, S, i));
|
|
1604
|
-
});
|
|
1605
|
-
});
|
|
1606
|
-
return;
|
|
1607
|
-
}
|
|
1608
|
-
const a = l(i), d = a.event;
|
|
1609
|
-
d && e.listen(i, c.event, (S) => {
|
|
1610
|
-
S.stopPropagation();
|
|
1611
|
-
const I = c.getData(S, a, i), D = I._eventOverride || d;
|
|
1612
|
-
delete I._eventOverride, e.dispatchPanelEvent(D, I);
|
|
1613
|
-
});
|
|
1614
|
-
}), n += s.length;
|
|
1615
|
-
}
|
|
1616
|
-
return n;
|
|
1617
|
-
}
|
|
1618
|
-
const M = {
|
|
1619
|
-
...Object.fromEntries(Sn())
|
|
1620
|
-
}, lo = async function(t, e) {
|
|
1621
|
-
const n = co(t);
|
|
1622
|
-
if (n.size === 0) {
|
|
1623
|
-
this.debugMe("[Carbon] No Carbon components found in panel");
|
|
1624
|
-
return;
|
|
1625
|
-
}
|
|
1626
|
-
this.carbonComponents || (this.carbonComponents = /* @__PURE__ */ new Map());
|
|
1627
|
-
for (const [c, i] of n.entries())
|
|
1628
|
-
this.carbonComponents.set(c, i);
|
|
1629
|
-
const o = io(n);
|
|
1630
|
-
if (o.size > 0)
|
|
1631
|
-
try {
|
|
1632
|
-
await ao(o, e);
|
|
1633
|
-
} catch (c) {
|
|
1634
|
-
console.error("[Carbon] Failed to load some component modules:", c);
|
|
1635
|
-
}
|
|
1636
|
-
const s = ro(n, this);
|
|
1637
|
-
s > 0 && this.debugMe(`[Carbon] Total components initialized: ${s}`);
|
|
1638
|
-
}, uo = (t = {}) => {
|
|
1639
|
-
const { preload: e = [] } = t;
|
|
1640
|
-
if (e.length > 0) {
|
|
1641
|
-
const n = e.filter((s) => W[s] ? !0 : (console.warn(`[Carbon] No import found for selector: ${s}`), !1)), o = n.flatMap((s) => W[s].map((c) => c()));
|
|
1642
|
-
Promise.all(o).then(() => console.debug(`[Carbon] Preloaded: ${n.join(", ")}`)).catch((s) => console.warn("[Carbon] Preload error:", s));
|
|
1643
|
-
}
|
|
1644
|
-
Pt.register("carbon", {
|
|
1645
|
-
/**
|
|
1646
|
-
* Main render function that orchestrates Carbon component initialization.
|
|
1647
|
-
* Called by Panel.parseContent() for each panel that enters the document.
|
|
1648
|
-
*
|
|
1649
|
-
* @param {Element} panel - The panel DOM element to scan and initialize
|
|
1650
|
-
* @param {Map} cache - Import cache to prevent duplicate module loads
|
|
1651
|
-
* @returns {Promise<void>}
|
|
1652
|
-
*/
|
|
1653
|
-
render: async function(n, o) {
|
|
1654
|
-
try {
|
|
1655
|
-
await lo.call(this, n, o);
|
|
1656
|
-
} catch (s) {
|
|
1657
|
-
console.error("[Carbon] Initialization error:", s);
|
|
1658
|
-
}
|
|
1659
|
-
},
|
|
1660
|
-
/**
|
|
1661
|
-
* Cleans up Carbon components when a component is disposed.
|
|
1662
|
-
* Carbon Web Components (native web components) automatically cleanup when
|
|
1663
|
-
* removed from the DOM, so this is primarily here for completeness and
|
|
1664
|
-
* future extensibility.
|
|
1665
|
-
*
|
|
1666
|
-
* @param {Element} _element - The element being disposed
|
|
1667
|
-
*/
|
|
1668
|
-
dispose: function(n) {
|
|
1669
|
-
},
|
|
1670
|
-
config: {
|
|
1671
|
-
version: "2.0",
|
|
1672
|
-
description: "IBM Carbon Design System Web Components"
|
|
1673
|
-
}
|
|
1674
|
-
}), console.debug("[Zooy] Carbon Design System library registered");
|
|
1675
|
-
};
|
|
1676
|
-
export {
|
|
1677
|
-
uo as registerCarbonLibrary
|
|
1678
|
-
};
|