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