@trintel/zooy 1.0.2 → 1.0.7
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--cIzwEQA.js → button-DXiFxUx8.js} +1 -1
- package/dist/chunks/{button-i6QyRwAM.js → button-TQ5Z_213.js} +4 -4
- package/dist/chunks/{button-skeleton-D2TeTVpP.js → button-skeleton-BXdxtWxx.js} +4 -4
- package/dist/chunks/{button-skeleton-Bk2Vw5Mq.js → button-skeleton-CQt93l0e.js} +1 -1
- package/dist/chunks/{checkbox-atdz21pu.js → checkbox-BLqSgzPl.js} +1 -1
- package/dist/chunks/{checkbox-Dyh34VfG.js → checkbox-Ce4iv245.js} +5 -5
- package/dist/chunks/{class-map-CziJvhVR.js → class-map-B8BVmL9r.js} +1 -1
- package/dist/chunks/{class-map-hWNVHb09.js → class-map-DRKcPEMq.js} +1 -1
- package/dist/chunks/{content-switcher-item-88PWpM2j.js → content-switcher-item-BNzxXCQj.js} +1 -1
- package/dist/chunks/{content-switcher-item-CpNfKVu-.js → content-switcher-item-C4poRBhP.js} +4 -4
- package/dist/chunks/dropdown-item-3hXddUyA.js +69 -0
- package/dist/chunks/{dropdown-item-CDbnp5_k.js → dropdown-item-B1PbWipg.js} +171 -160
- package/dist/chunks/{icon-loader-C3acLKRm.js → icon-loader-HxMZmG1S.js} +1 -1
- package/dist/chunks/{icon-loader-CsKt-G8D.js → icon-loader-l936Y1Y2.js} +1 -1
- package/dist/chunks/{icon-loader-utils-DXGGCFfD.js → icon-loader-utils-D2_soUEJ.js} +1 -1
- package/dist/chunks/{icon-loader-utils-DKbXKLDh.js → icon-loader-utils-xTU_7Gkv.js} +1 -1
- package/dist/chunks/{if-defined-uehgcl8e.js → if-defined-Cg6S0WRd.js} +1 -1
- package/dist/chunks/{if-defined-D2rCHx2p.js → if-defined-CyKOTQoD.js} +1 -1
- package/dist/chunks/{if-non-empty-CcwduEjT.js → if-non-empty-DZ7mMVRO.js} +1 -1
- package/dist/chunks/if-non-empty-Dx4pitmj.js +1 -0
- package/dist/chunks/{index-DwCXQC7X.js → index-0Lh4HDpB.js} +2 -2
- package/dist/chunks/{index-t9TINCcm.js → index-0q2seZ_8.js} +7 -7
- package/dist/chunks/{index-Bgo3KCFI.js → index-7EHleExF.js} +7 -7
- package/dist/chunks/{index-BlAm81hv.js → index-8gFTsVpU.js} +1 -1
- package/dist/chunks/{index-DNkLJEg1.js → index-B4Cub9lZ.js} +11 -11
- package/dist/chunks/{index-DdkIREYU.js → index-B8pBsLur.js} +3 -3
- package/dist/chunks/{index-Byf_K1x1.js → index-BBtImtqf.js} +8 -8
- package/dist/chunks/{index-BPRteboN.js → index-BDFyGWAo.js} +5 -5
- package/dist/chunks/{index-Bu6R2tix.js → index-BE10kyvs.js} +7 -7
- package/dist/chunks/{index-ByNfpHAO.js → index-BI2UKnaQ.js} +5 -5
- package/dist/chunks/{index-CUI3NPWg.js → index-BI7Rc11b.js} +1 -1
- package/dist/chunks/{index-BTUYIkmg.js → index-BKKlb0J7.js} +5 -5
- package/dist/chunks/{index-BMzAaQhy.js → index-BOjkgfX5.js} +39 -39
- package/dist/chunks/{index-C5s9Z5Ou.js → index-BRj3l6eo.js} +3 -3
- package/dist/chunks/{index-B16kSrMy.js → index-BSGMH-5J.js} +4 -4
- package/dist/chunks/{index-C_NhQPDA.js → index-BbN7FHHT.js} +7 -7
- package/dist/chunks/{index-C1Eehpcx.js → index-Bbb3ajlK.js} +1 -1
- package/dist/chunks/{index-LtB-4-X9.js → index-BcwmUX5U.js} +1 -1
- package/dist/chunks/{index-Bh3jqbKV.js → index-BeW5et-a.js} +5 -5
- package/dist/chunks/{index-DTadLLRG.js → index-BjPbzP32.js} +1 -1
- package/dist/chunks/{index-BEDYiyp9.js → index-BlNNYi81.js} +1 -1
- package/dist/chunks/{index-C-P030e_.js → index-BliqP2AV.js} +3 -3
- package/dist/chunks/{index-tQGRhvw0.js → index-BmHPEq-x.js} +6 -6
- package/dist/chunks/{index-gfbRBI-d.js → index-BpOQerSE.js} +1 -1
- package/dist/chunks/{index-CyF5Kef-.js → index-BpXTO-26.js} +6 -6
- package/dist/chunks/{index-C4GpRDm7.js → index-Bq2MmIX9.js} +1 -1
- package/dist/chunks/{index-D9nVgUNo.js → index-BsLnUTt2.js} +1 -1
- package/dist/chunks/{index-DSMPUWJU.js → index-Burct9SW.js} +86 -68
- package/dist/chunks/{index-CbiknV4d.js → index-BvwBHGZ_.js} +1 -1
- package/dist/chunks/{index-WpBhhuED.js → index-ByGJtavW.js} +3 -3
- package/dist/chunks/{index-BYHXKkvf.js → index-Bzbuw3yc.js} +7 -7
- package/dist/chunks/{index-DEtGo4Q7.js → index-C3bqrUco.js} +4 -4
- package/dist/chunks/{index-DPCfOgTU.js → index-C5BoQgTc.js} +1 -1
- package/dist/chunks/{index-DGvLgX2O.js → index-C5DktJE6.js} +1 -1
- package/dist/chunks/{index-C_JOABLw.js → index-C7X38aQp.js} +1 -1
- package/dist/chunks/{index-F2zwTZm1.js → index-CA51gBqW.js} +1 -1
- package/dist/chunks/{index-wgp15jn2.js → index-CH_UJgBt.js} +4 -4
- package/dist/chunks/{index-Chyr-DU2.js → index-CL9hiht6.js} +2 -2
- package/dist/chunks/{index-CHIQ4wsM.js → index-CP3IQOrv.js} +1 -1
- package/dist/chunks/{index-hhX-bWEv.js → index-CUY1VtLr.js} +5 -5
- package/dist/chunks/{index-DQ4Y-fiZ.js → index-C_raMAyX.js} +4 -4
- package/dist/chunks/{index-BEyCs2cc.js → index-CdOow-p_.js} +219 -218
- package/dist/chunks/{index-CPLpCt6z.js → index-CftYyZu7.js} +3 -3
- package/dist/chunks/{index-CsKII5mz.js → index-ChNYD8Dd.js} +1 -1
- package/dist/chunks/{index-BUcMLg1n.js → index-ChiL5ZcD.js} +1 -1
- package/dist/chunks/{index-DGvVa-5J.js → index-Ci2eq45L.js} +1 -1
- package/dist/chunks/{index-BIJ3miZu.js → index-Cih_eNJk.js} +1 -1
- package/dist/chunks/{index-C5b2680a.js → index-CjwO7zvd.js} +1 -1
- package/dist/chunks/{index-CTEnXoVq.js → index-ClrFW2rW.js} +1 -1
- package/dist/chunks/{index-BMNv7Afr.js → index-Cm4XjDTR.js} +1 -1
- package/dist/chunks/{index-CjVvmbL6.js → index-Cm71ZZ2p.js} +1 -1
- package/dist/chunks/{index-DX2JlRat.js → index-CmSIemMe.js} +1 -1
- package/dist/chunks/{index-BMNd2Qad.js → index-CmX7hAxw.js} +4 -4
- package/dist/chunks/{index-DTtMSAgV.js → index-Cp9vq51a.js} +1 -1
- package/dist/chunks/{index-nfJ9ioGW.js → index-CuftEO4n.js} +6 -6
- package/dist/chunks/{index-HbS1lUW6.js → index-CukkZSZU.js} +1 -1
- package/dist/chunks/{index-BVpkxHll.js → index-CvE8pMER.js} +1 -1
- package/dist/chunks/{index-CP_zaIyv.js → index-CvY-7pXV.js} +1 -1
- package/dist/chunks/{index-BrqEja9V.js → index-Cveej1JO.js} +9 -9
- package/dist/chunks/{index-el9l-ZQy.js → index-CxH5pDYR.js} +5 -5
- package/dist/chunks/{index-BwhAoVy-.js → index-CxHVh1p1.js} +105 -75
- package/dist/chunks/{index-d0CqW2Cm.js → index-D0-FP58R.js} +5 -5
- package/dist/chunks/{index-CyR413wv.js → index-D14WfIVq.js} +5 -5
- package/dist/chunks/{index-CO_QGXLN.js → index-D1Thmc8o.js} +5 -5
- package/dist/chunks/{index-BWBjCDwY.js → index-D23kSFT_.js} +1 -1
- package/dist/chunks/{index-Cd1j7Qp1.js → index-D64SgGEt.js} +168 -152
- package/dist/chunks/{index-CcK76f0I.js → index-DAjx5ZMD.js} +3 -3
- package/dist/chunks/{index-Bp5LwA_m.js → index-DB-v93tm.js} +1 -1
- package/dist/chunks/{index-DkphY0sd.js → index-DDZQVOSB.js} +1 -1
- package/dist/chunks/{index-Do9f8Pwe.js → index-DFGqcn1K.js} +2 -2
- package/dist/chunks/{index-B6vimuhF.js → index-DGzE2hxO.js} +1 -1
- package/dist/chunks/index-DMMym9Yx.js +1 -0
- package/dist/chunks/{index-BtPiuBUm.js → index-DMh9lcW4.js} +1 -1
- package/dist/chunks/{index-BxGUZ-qP.js → index-DOg7jdf1.js} +1 -1
- package/dist/chunks/{index-w027CjA0.js → index-DctJ73IF.js} +18 -18
- package/dist/chunks/{index--Q3NhIVC.js → index-Dh5yT9_B.js} +1 -1
- package/dist/chunks/{index-CPzh43Kr.js → index-DiIjZO0F.js} +1 -1
- package/dist/chunks/{index-BIvyXnIe.js → index-Dl5FFbv7.js} +7 -7
- package/dist/chunks/{index-BODxU-Mu.js → index-DnJkSee7.js} +10 -10
- package/dist/chunks/index-Dp_RyMLM.js +2 -0
- package/dist/chunks/{index-DDUqY4Rl.js → index-Dqq-jEHd.js} +2 -2
- package/dist/chunks/index-DuozJDSN.js +4 -0
- package/dist/chunks/index-DxXhIc-b.js +25 -0
- package/dist/chunks/{index-C9HJjC2j.js → index-DzX6ELl7.js} +1 -1
- package/dist/chunks/{index-Bug3BjgA.js → index-O55HRlOa.js} +3 -3
- package/dist/chunks/{index-BqExj5O7.js → index-O65Gc9nS.js} +1 -1
- package/dist/chunks/{index-BMJjuXme.js → index-O_mx3px1.js} +1 -1
- package/dist/chunks/{index-CFG5exAl.js → index-PMtj9tz1.js} +1 -1
- package/dist/chunks/{index-Czs-UAWh.js → index-PONQKFP4.js} +4 -4
- package/dist/chunks/{index-DZrmJ7Ll.js → index-QH_p6nSd.js} +5 -5
- package/dist/chunks/{index-Dr4evLL7.js → index-_Sa5BYRO.js} +130 -120
- package/dist/chunks/{index-BeKAg3cB.js → index-cy4Z2pfI.js} +1 -1
- package/dist/chunks/{index-Bk2MEnMu.js → index-gdF6Bio7.js} +7 -7
- package/dist/chunks/{index-jdx-M5Y-.js → index-hqRCDkdq.js} +1 -1
- package/dist/chunks/{index-DEdeVoZn.js → index-iDpB9zzg.js} +26 -24
- package/dist/chunks/{index-DIg4fP-p.js → index-iN8x96sv.js} +6 -6
- package/dist/chunks/{index-CxJCioQg.js → index-ibm_789V.js} +1 -1
- package/dist/chunks/{index-B8fGrrzJ.js → index-iyY99q2y.js} +8 -8
- package/dist/chunks/{index-CyvZ9jxn.js → index-j7S_4l8J.js} +5 -5
- package/dist/chunks/{index-QuyEX50y.js → index-kFuNICSc.js} +34 -26
- package/dist/chunks/{index-oS8XvY4G.js → index-r12okTDD.js} +3 -3
- package/dist/chunks/{index-DwDG_y9_.js → index-v8Mej-zS.js} +1 -1
- package/dist/chunks/{index-tdmIA8Xp.js → index-xTZMbzwZ.js} +143 -139
- package/dist/chunks/{index-CwpgmKTP.js → index-xg2SMEcO.js} +7 -7
- package/dist/chunks/{loading-icon-q__8yLZw.js → loading-icon-0rgLngL8.js} +1 -1
- package/dist/chunks/{loading-icon-CN-iehcR.js → loading-icon-Bc7ZUsBX.js} +1 -1
- package/dist/chunks/{main-BywCEBtD.js → main-jVeZRB91.js} +2 -2
- package/dist/chunks/{main-BPWCMI5R.js → main-riBD0E5n.js} +1 -1
- package/dist/chunks/{property-DzfJpYmn.js → property-1hLlCJhn.js} +1 -1
- package/dist/chunks/{property-DCTz3KPt.js → property-CaIoT4YE.js} +1 -1
- package/dist/chunks/{register-C3XDWad0.js → register-BZGWnDHd.js} +220 -216
- package/dist/chunks/register-DSUjA_iL.js +1 -0
- package/dist/chunks/{register-B4yRiHm6.js → register-Dhwzu75D.js} +1 -1
- package/dist/chunks/{register-CyNp_638.js → register-EjYAUKbP.js} +1 -1
- package/dist/chunks/{search-CzmoEHwa.js → search-BNcImhhb.js} +2 -1
- package/dist/chunks/{search-BCJx6Xft.js → search-CHy8KUEr.js} +8 -7
- package/dist/chunks/{select-0jyl720Y.js → select-CE-WFB8J.js} +105 -98
- package/dist/chunks/{select-DC0T8Fw_.js → select-Dnt9tUQJ.js} +41 -37
- package/dist/chunks/{state-BiEAGUqO.js → state-DqznQRLe.js} +1 -1
- package/dist/chunks/{state-DJQLwKiU.js → state-IflcMO5o.js} +1 -1
- package/dist/chunks/{text-input-BPvBDzky.js → text-input-CLVbLjFT.js} +1 -1
- package/dist/chunks/{text-input-BGuFqOdN.js → text-input-DQKK3f2L.js} +5 -5
- package/dist/chunks/{tooltip-content-BOefn0hU.js → tooltip-content-CEgi8B6v.js} +1 -1
- package/dist/chunks/{tooltip-content-CWdOnBaw.js → tooltip-content-CQHg7T5-.js} +3 -3
- package/dist/chunks/{unsafe-html-xqClX-6M.js → unsafe-html-bHNwXACd.js} +1 -1
- package/dist/chunks/{unsafe-html-Bi2pB4Lb.js → unsafe-html-paXBFqeo.js} +1 -1
- package/dist/zooy.cjs.js +1 -1
- package/dist/zooy.es.js +1 -1
- package/package.json +2 -2
- package/dist/chunks/dropdown-item-CRyAm4Ku.js +0 -69
- package/dist/chunks/if-non-empty-BEpfFFDX.js +0 -1
- package/dist/chunks/index-D-iqTNbL.js +0 -25
- package/dist/chunks/index-DPnGRDRl.js +0 -1
- package/dist/chunks/index-DSgb2u7b.js +0 -4
- package/dist/chunks/index-xipeWGGU.js +0 -2
- package/dist/chunks/register-DpOrINOx.js +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
var
|
|
1
|
+
import { _ as $, 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-jVeZRB91.js";
|
|
2
|
+
var bt = /* @__PURE__ */ $(function(e, n) {
|
|
3
3
|
return n == null || n !== n ? e : n;
|
|
4
|
-
}),
|
|
5
|
-
return
|
|
6
|
-
}),
|
|
4
|
+
}), Ct = /* @__PURE__ */ pt(function(e, n, o) {
|
|
5
|
+
return bt(e, mt(n, o));
|
|
6
|
+
}), St = /* @__PURE__ */ $(function(e, n) {
|
|
7
7
|
for (var o = {}, s = 0; s < e.length; )
|
|
8
8
|
e[s] in n && (o[e[s]] = n[e[s]]), s += 1;
|
|
9
9
|
return o;
|
|
10
10
|
}), B = {}, U;
|
|
11
|
-
function
|
|
11
|
+
function It() {
|
|
12
12
|
return U || (U = 1, (function(t) {
|
|
13
13
|
t.TABLE_SIZE = void 0, (function(n) {
|
|
14
14
|
n.XS = "xs", n.SM = "sm", n.MD = "md", n.LG = "lg", n.XL = "xl";
|
|
@@ -40,10 +40,10 @@ function At() {
|
|
|
40
40
|
t.TABLE_SORT_CYCLES = e;
|
|
41
41
|
})(B)), B;
|
|
42
42
|
}
|
|
43
|
-
var
|
|
44
|
-
const
|
|
43
|
+
var At = It();
|
|
44
|
+
const Dt = () => import("./index-B4Cub9lZ.js"), W = () => import("./index-7EHleExF.js"), Nt = () => import("./index-D0-FP58R.js"), Pt = {
|
|
45
45
|
"cds-pagination": {
|
|
46
|
-
import:
|
|
46
|
+
import: W,
|
|
47
47
|
/**
|
|
48
48
|
* Initialize a standalone pagination component.
|
|
49
49
|
*
|
|
@@ -84,57 +84,57 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
84
84
|
}, V = (t, e, n) => {
|
|
85
85
|
const o = customElements.get("cds-table"), s = customElements.get("cds-pagination"), i = customElements.get(o.selectorTableBatchActions);
|
|
86
86
|
customElements.get("cds-popover");
|
|
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.
|
|
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
88
|
t.listen(e, "click", (p) => {
|
|
89
89
|
const m = p.target.closest(o.selectorTableRow);
|
|
90
|
-
if (!m || p.composedPath().some((h) => h.matches && h.matches(
|
|
90
|
+
if (!m || p.composedPath().some((h) => h.matches && h.matches(O))) return;
|
|
91
91
|
p.stopPropagation();
|
|
92
|
-
const u =
|
|
93
|
-
t.dispatchPanelEvent(
|
|
92
|
+
const u = l(m);
|
|
93
|
+
t.dispatchPanelEvent(r, {
|
|
94
94
|
...u
|
|
95
95
|
});
|
|
96
96
|
});
|
|
97
|
-
},
|
|
97
|
+
}, K = (r) => {
|
|
98
98
|
t.listen(e, o.eventExpandoToggle, (p) => {
|
|
99
|
-
const m = p.target, u = m.tagName === "CDS-TABLE-HEADER-ROW", h = p.detail.expanded, f =
|
|
99
|
+
const m = p.target, u = m.tagName === "CDS-TABLE-HEADER-ROW", h = p.detail.expanded, f = l(m), C = {
|
|
100
100
|
tableAttrs: n,
|
|
101
101
|
...f,
|
|
102
102
|
target: m,
|
|
103
103
|
allRows: u,
|
|
104
104
|
didExpand: h
|
|
105
105
|
};
|
|
106
|
-
t.dispatchPanelEvent(
|
|
106
|
+
t.dispatchPanelEvent(r, C);
|
|
107
107
|
});
|
|
108
|
-
},
|
|
108
|
+
}, Q = (r) => {
|
|
109
109
|
_.set(R, (p) => {
|
|
110
|
-
t.dispatchPanelEvent(
|
|
110
|
+
t.dispatchPanelEvent(r, p);
|
|
111
111
|
});
|
|
112
|
-
},
|
|
112
|
+
}, tt = (r) => {
|
|
113
113
|
_.set(M, (p) => {
|
|
114
|
-
const m = p.detail.selectedRows, u = Math.min(m.length, S.totalRowsCount), h = p.target, f =
|
|
114
|
+
const m = p.detail.selectedRows, u = Math.min(m.length, S.totalRowsCount), h = p.target, f = l(h), C = m.map(l), I = {
|
|
115
115
|
tableAttrs: n,
|
|
116
116
|
...f,
|
|
117
117
|
target: h,
|
|
118
118
|
selectCount: u,
|
|
119
119
|
selection: C
|
|
120
120
|
};
|
|
121
|
-
t.dispatchPanelEvent(
|
|
121
|
+
t.dispatchPanelEvent(r, I);
|
|
122
122
|
});
|
|
123
|
-
},
|
|
123
|
+
}, et = (r) => {
|
|
124
124
|
t.listen(e, o.eventTableRowSelect, (p) => {
|
|
125
|
-
const m = p.target, u = p.detail.selectedRows || [], h = u.length, f = u.map(
|
|
125
|
+
const m = p.target, u = p.detail.selectedRows || [], h = u.length, f = u.map(l), C = l(m), I = {
|
|
126
126
|
tableAttrs: n,
|
|
127
127
|
...C,
|
|
128
128
|
selectCount: h,
|
|
129
129
|
selection: f,
|
|
130
130
|
target: m
|
|
131
131
|
};
|
|
132
|
-
t.dispatchPanelEvent(
|
|
132
|
+
t.dispatchPanelEvent(r, I);
|
|
133
133
|
});
|
|
134
|
-
},
|
|
135
|
-
t.listen(e, o.eventBeforeSort, (
|
|
136
|
-
const p =
|
|
137
|
-
|
|
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
138
|
D === p ? (D.setAttribute("sort-active", "true"), D.setAttribute("sort-direction", u)) : (D.removeAttribute("sort-active"), D.setAttribute("sort-direction", "none"));
|
|
139
139
|
});
|
|
140
140
|
const I = { ordering: C };
|
|
@@ -150,19 +150,19 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
150
150
|
target: p
|
|
151
151
|
});
|
|
152
152
|
});
|
|
153
|
-
},
|
|
154
|
-
t.listen(e, o.eventTableRowSelectAll, (
|
|
155
|
-
|
|
153
|
+
}, ot = () => {
|
|
154
|
+
t.listen(e, o.eventTableRowSelectAll, (r) => {
|
|
155
|
+
r.detail.selectedRows.length === 0 && e.querySelectorAll(o.selectorTableRow).forEach((p) => {
|
|
156
156
|
p.disabled = !1, p.selected = !1;
|
|
157
|
-
}), _.has(M) && _.get(M)(
|
|
157
|
+
}), _.has(M) && _.get(M)(r);
|
|
158
158
|
});
|
|
159
|
-
},
|
|
160
|
-
t.listen(e, o.eventBeforeChangeSelectionAll, (
|
|
161
|
-
|
|
159
|
+
}, st = () => {
|
|
160
|
+
t.listen(e, o.eventBeforeChangeSelectionAll, (r) => {
|
|
161
|
+
r.stopPropagation(), r.detail.callback && r.detail.callback();
|
|
162
162
|
});
|
|
163
|
-
},
|
|
163
|
+
}, it = (r) => {
|
|
164
164
|
const p = e.querySelector("cds-table-header-row");
|
|
165
|
-
t.listen(
|
|
165
|
+
t.listen(r, i.eventClickSelectAll, (m) => {
|
|
166
166
|
m.stopPropagation(), p.dispatchEvent(new CustomEvent(o.eventBeforeChangeSelectionAll, {
|
|
167
167
|
bubbles: !0,
|
|
168
168
|
cancelable: !0,
|
|
@@ -170,25 +170,25 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
170
170
|
detail: {
|
|
171
171
|
selected: !0,
|
|
172
172
|
callback: () => {
|
|
173
|
-
|
|
173
|
+
r.selectedRowsCount = r.totalRowsCount, e.querySelectorAll(o.selectorTableRow).forEach((u) => {
|
|
174
174
|
u.disabled = !0;
|
|
175
175
|
});
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
178
|
}));
|
|
179
179
|
});
|
|
180
|
-
},
|
|
181
|
-
t.listen(
|
|
180
|
+
}, ct = (r) => {
|
|
181
|
+
t.listen(r, "keydown", (p) => {
|
|
182
182
|
if (p.key === "Enter") {
|
|
183
183
|
d && d.show(), a.totalItems = 0, e.querySelector("cds-table-body").replaceChildren();
|
|
184
|
-
const u = { search:
|
|
184
|
+
const u = { search: r.value || "", offset: 0 };
|
|
185
185
|
c.fetchData(u).then(() => {
|
|
186
186
|
a.setData(c), d && d.hide();
|
|
187
187
|
});
|
|
188
188
|
}
|
|
189
189
|
});
|
|
190
|
-
},
|
|
191
|
-
t.listen(
|
|
190
|
+
}, at = (r) => {
|
|
191
|
+
t.listen(r, o.eventSearchInput, (p) => {
|
|
192
192
|
if ((p.detail.value || "") === "") {
|
|
193
193
|
const u = { search: "", offset: 0 };
|
|
194
194
|
d && d.show(), c.fetchData(u).then(() => {
|
|
@@ -196,9 +196,9 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
196
196
|
});
|
|
197
197
|
}
|
|
198
198
|
});
|
|
199
|
-
},
|
|
200
|
-
|
|
201
|
-
const p =
|
|
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
202
|
(v, g) => (v[g] = null, v),
|
|
203
203
|
{ offset: 0 }
|
|
204
204
|
);
|
|
@@ -207,8 +207,8 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
207
207
|
return;
|
|
208
208
|
}
|
|
209
209
|
new MutationObserver(() => {
|
|
210
|
-
|
|
211
|
-
}).observe(
|
|
210
|
+
r.classList.toggle("cds--overflow-menu--open", r.open);
|
|
211
|
+
}).observe(r, {
|
|
212
212
|
attributes: !0,
|
|
213
213
|
attributeFilter: ["open"]
|
|
214
214
|
});
|
|
@@ -225,7 +225,7 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
225
225
|
const v = (g) => g.checked = !1;
|
|
226
226
|
t.listen(I.get(f), "click", (g) => {
|
|
227
227
|
g.stopPropagation(), m.forEach(v), d && d.show(), c.fetchData(h).then(() => {
|
|
228
|
-
a && a.setData(c), d && d.hide(),
|
|
228
|
+
a && a.setData(c), d && d.hide(), r.open = !1;
|
|
229
229
|
});
|
|
230
230
|
});
|
|
231
231
|
}
|
|
@@ -233,13 +233,13 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
233
233
|
v.stopPropagation();
|
|
234
234
|
const g = [...D()].reduce((N, [k, T]) => (N[k] = T === [] ? null : T, N), { offset: 0 });
|
|
235
235
|
d && d.show(), c.fetchData(g).then(() => {
|
|
236
|
-
a && a.setData(c), d && d.hide(),
|
|
236
|
+
a && a.setData(c), d && d.hide(), r.open = !1;
|
|
237
237
|
});
|
|
238
238
|
}), t.listen(p, "click", (v) => {
|
|
239
|
-
v.stopPropagation(),
|
|
239
|
+
v.stopPropagation(), r.open = !r.open, r.classList.toggle("cds--overflow-menu--open", r.open);
|
|
240
240
|
});
|
|
241
|
-
},
|
|
242
|
-
t.listen(a, s.eventPageSizeChanged, (
|
|
241
|
+
}, lt = () => {
|
|
242
|
+
t.listen(a, s.eventPageSizeChanged, (r) => {
|
|
243
243
|
const m = {
|
|
244
244
|
limit: a.pageSize,
|
|
245
245
|
offset: 0
|
|
@@ -248,12 +248,12 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
248
248
|
a.setData(c);
|
|
249
249
|
});
|
|
250
250
|
});
|
|
251
|
-
},
|
|
252
|
-
let
|
|
251
|
+
}, dt = () => {
|
|
252
|
+
let r = null;
|
|
253
253
|
t.listen(a, s.eventChangeCurrent, (p) => {
|
|
254
254
|
const { page: m } = p.detail, u = a.pageSize, h = (m - 1) * u;
|
|
255
|
-
if (h !==
|
|
256
|
-
|
|
255
|
+
if (h !== r) {
|
|
256
|
+
r = h;
|
|
257
257
|
const f = { limit: u, offset: h };
|
|
258
258
|
c.fetchData(f).then(() => {
|
|
259
259
|
a.setData(c), d && d.hide();
|
|
@@ -261,28 +261,32 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
261
261
|
}
|
|
262
262
|
});
|
|
263
263
|
};
|
|
264
|
-
c && a && (
|
|
265
|
-
const F =
|
|
266
|
-
|
|
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();
|
|
267
271
|
const G = {
|
|
268
272
|
zoo: {
|
|
269
273
|
event: {
|
|
270
274
|
row: {
|
|
271
|
-
click:
|
|
272
|
-
expand:
|
|
275
|
+
click: J,
|
|
276
|
+
expand: K,
|
|
273
277
|
check: {
|
|
274
|
-
one:
|
|
275
|
-
all:
|
|
278
|
+
one: et,
|
|
279
|
+
all: tt
|
|
276
280
|
}
|
|
277
281
|
},
|
|
278
282
|
column: {
|
|
279
|
-
sort:
|
|
283
|
+
sort: Q
|
|
280
284
|
}
|
|
281
285
|
}
|
|
282
286
|
}
|
|
283
287
|
};
|
|
284
|
-
|
|
285
|
-
|
|
288
|
+
vt(n).forEach(([r, p]) => {
|
|
289
|
+
ft(r, G) && gt(r, G)(p);
|
|
286
290
|
});
|
|
287
291
|
}, _t = (t) => {
|
|
288
292
|
const e = document.createElement("cds-pagination");
|
|
@@ -291,7 +295,7 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
291
295
|
o.value = n.toString(), o.textContent = n.toString(), e.appendChild(o);
|
|
292
296
|
}), e.setData = (n) => {
|
|
293
297
|
if (n.isPaginated) {
|
|
294
|
-
const { count: o } =
|
|
298
|
+
const { count: o } = St(["count"], n.data), s = Math.ceil(o / n.limit), i = 100;
|
|
295
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;
|
|
296
300
|
}
|
|
297
301
|
}, e;
|
|
@@ -307,12 +311,12 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
307
311
|
}, yt = (t, e) => {
|
|
308
312
|
const n = e.getAttribute("zoo-url-api"), o = parseInt(e.getAttribute("data-page-size") || 25, 10);
|
|
309
313
|
if (n)
|
|
310
|
-
return new
|
|
314
|
+
return new ht(t, n, e, {
|
|
311
315
|
urlParams: { limit: o }
|
|
312
316
|
});
|
|
313
317
|
}, Tt = {
|
|
314
318
|
selector: "cds-table",
|
|
315
|
-
import: [Nt,
|
|
319
|
+
import: [Nt, Dt, W],
|
|
316
320
|
/**
|
|
317
321
|
* Initialize a Carbon data table component.
|
|
318
322
|
*
|
|
@@ -343,8 +347,8 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
343
347
|
* @this {Panel} The panel instance
|
|
344
348
|
*/
|
|
345
349
|
init: function(t) {
|
|
346
|
-
const e =
|
|
347
|
-
if (
|
|
350
|
+
const e = l(t), n = this, o = yt(n, t);
|
|
351
|
+
if (ut(o)) {
|
|
348
352
|
t.dataBinder = o;
|
|
349
353
|
const s = kt(t);
|
|
350
354
|
t.skeleton = s;
|
|
@@ -355,7 +359,7 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
355
359
|
} else
|
|
356
360
|
V(n, t, e);
|
|
357
361
|
}
|
|
358
|
-
}, A = () => import("./index-
|
|
362
|
+
}, A = () => import("./index-Bzbuw3yc.js"), wt = {
|
|
359
363
|
selector: "cds-modal",
|
|
360
364
|
import: A,
|
|
361
365
|
/**
|
|
@@ -363,7 +367,7 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
363
367
|
* @this {Panel} The panel instance
|
|
364
368
|
*/
|
|
365
369
|
init: function(t) {
|
|
366
|
-
const e = customElements.get("cds-modal"), n =
|
|
370
|
+
const e = customElements.get("cds-modal"), n = l(t), o = E(t, "open-event", "event");
|
|
367
371
|
o && this.listen(t, "cds-modal-beingopened", (c) => {
|
|
368
372
|
this.dispatchPanelEvent(o, {
|
|
369
373
|
...n,
|
|
@@ -424,7 +428,7 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
424
428
|
"cds-modal-footer-button": {
|
|
425
429
|
import: A,
|
|
426
430
|
init: function(t) {
|
|
427
|
-
const e =
|
|
431
|
+
const e = l(t);
|
|
428
432
|
if (t.getAttribute("type") === "submit") {
|
|
429
433
|
this.listen(t, "click", (s) => {
|
|
430
434
|
let i = t.closest("form");
|
|
@@ -442,15 +446,15 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
442
446
|
});
|
|
443
447
|
}
|
|
444
448
|
}
|
|
445
|
-
},
|
|
449
|
+
}, Y = () => import("./index-CdOow-p_.js"), Rt = {
|
|
446
450
|
selector: "cds-menu",
|
|
447
|
-
import:
|
|
451
|
+
import: Y,
|
|
448
452
|
/**
|
|
449
453
|
* @param {CDSMenu} menu - The CDSMenu custom element instance
|
|
450
454
|
* @this {Panel} The panel instance
|
|
451
455
|
*/
|
|
452
456
|
init: function(t) {
|
|
453
|
-
const e =
|
|
457
|
+
const e = l(t), n = E(t, "open-event");
|
|
454
458
|
n && this.listen(t, "cds-menu-opened", (s) => {
|
|
455
459
|
this.dispatchPanelEvent(n, {
|
|
456
460
|
...e,
|
|
@@ -465,14 +469,14 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
465
469
|
});
|
|
466
470
|
}), this.listen(t, "click", (s) => {
|
|
467
471
|
if (s.target.tagName === "CDS-MENU-ITEM") {
|
|
468
|
-
const i =
|
|
472
|
+
const i = l(s.target), c = i.event || e.event;
|
|
469
473
|
c && (s.stopPropagation(), this.dispatchPanelEvent(c, {
|
|
470
474
|
...e,
|
|
471
475
|
...i
|
|
472
476
|
}));
|
|
473
477
|
}
|
|
474
478
|
}), this.listen(t, "cds-item-changed", (s) => {
|
|
475
|
-
const i = s.detail.triggeredBy, c =
|
|
479
|
+
const i = s.detail.triggeredBy, c = l(i), a = c.event || e.event;
|
|
476
480
|
a && this.dispatchPanelEvent(a, {
|
|
477
481
|
...e,
|
|
478
482
|
...c,
|
|
@@ -482,16 +486,16 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
482
486
|
}
|
|
483
487
|
}, Mt = {
|
|
484
488
|
"cds-menu-button": {
|
|
485
|
-
import:
|
|
489
|
+
import: Y,
|
|
486
490
|
/**
|
|
487
491
|
* @param {CDSMenuButton} menuButton - The CDSMenuButton custom element instance
|
|
488
492
|
* @this {Panel} The panel instance
|
|
489
493
|
*/
|
|
490
494
|
init: function(t) {
|
|
491
|
-
const e =
|
|
495
|
+
const e = l(t), n = t.querySelector("cds-menu");
|
|
492
496
|
n && this.listen(n, "click", (o) => {
|
|
493
497
|
if (o.target.tagName === "CDS-MENU-ITEM") {
|
|
494
|
-
const s =
|
|
498
|
+
const s = l(o.target), i = s.event || e.event;
|
|
495
499
|
i && (o.stopPropagation(), this.dispatchPanelEvent(i, {
|
|
496
500
|
...e,
|
|
497
501
|
...s
|
|
@@ -500,7 +504,7 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
500
504
|
});
|
|
501
505
|
}
|
|
502
506
|
}
|
|
503
|
-
}, X = () => import("./index-
|
|
507
|
+
}, X = () => import("./index-BeW5et-a.js"), j = () => import("./index-xg2SMEcO.js").then((t) => t.i), Bt = () => import("./index-BBtImtqf.js"), zt = () => import("./index-PONQKFP4.js"), Lt = {
|
|
504
508
|
selector: "cds-button",
|
|
505
509
|
import: X,
|
|
506
510
|
/**
|
|
@@ -508,7 +512,7 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
508
512
|
* @this {Panel} The panel instance
|
|
509
513
|
*/
|
|
510
514
|
init: function(t) {
|
|
511
|
-
const e =
|
|
515
|
+
const e = l(t);
|
|
512
516
|
if (t.getAttribute("type") === "submit") {
|
|
513
517
|
this.listen(t, "click", (s) => {
|
|
514
518
|
let i = t.closest("form");
|
|
@@ -522,7 +526,7 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
522
526
|
}
|
|
523
527
|
const o = e.event;
|
|
524
528
|
o && this.listen(t, "click", (s) => {
|
|
525
|
-
s.stopPropagation(), this.dispatchPanelEvent(o,
|
|
529
|
+
s.stopPropagation(), this.dispatchPanelEvent(o, l(t));
|
|
526
530
|
});
|
|
527
531
|
}
|
|
528
532
|
}, qt = {
|
|
@@ -537,7 +541,7 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
537
541
|
"cds-icon-button[data-toggle]": {
|
|
538
542
|
import: j,
|
|
539
543
|
init: function(t) {
|
|
540
|
-
const e =
|
|
544
|
+
const e = l(t);
|
|
541
545
|
e.event && this.listen(t, "click", (n) => {
|
|
542
546
|
n.stopPropagation(), t.isSelected = !t.isSelected, this.dispatchPanelEvent(e.event, {
|
|
543
547
|
...e,
|
|
@@ -556,7 +560,7 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
556
560
|
"cds-copy-button": {
|
|
557
561
|
import: zt,
|
|
558
562
|
init: function(t) {
|
|
559
|
-
const e =
|
|
563
|
+
const e = l(t), n = e.event;
|
|
560
564
|
n && this.listen(t, "click", (s) => {
|
|
561
565
|
s.stopPropagation(), this.dispatchPanelEvent(n, {
|
|
562
566
|
...e,
|
|
@@ -582,7 +586,7 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
582
586
|
"cds-combo-button": {
|
|
583
587
|
import: Bt,
|
|
584
588
|
init: function(t) {
|
|
585
|
-
const e =
|
|
589
|
+
const e = l(t);
|
|
586
590
|
e.event && this.listen(t, "click", (o) => {
|
|
587
591
|
const s = o.composedPath(), i = s.some((a) => a.tagName === "CDS-MENU-ITEM"), c = s.some((a) => a.tagName === "CDS-ICON-BUTTON");
|
|
588
592
|
!i && !c && (o.stopPropagation(), this.dispatchPanelEvent(e.event, {
|
|
@@ -593,7 +597,7 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
593
597
|
const n = t.querySelector("cds-menu");
|
|
594
598
|
n && this.listen(n, "click", (o) => {
|
|
595
599
|
if (o.target.tagName === "CDS-MENU-ITEM") {
|
|
596
|
-
const s =
|
|
600
|
+
const s = l(o.target), i = s.event || E(t, "menu-event", "event");
|
|
597
601
|
i && this.dispatchPanelEvent(i, {
|
|
598
602
|
...e,
|
|
599
603
|
...s,
|
|
@@ -603,7 +607,7 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
603
607
|
});
|
|
604
608
|
}
|
|
605
609
|
}
|
|
606
|
-
}, xt = () => import("./index-
|
|
610
|
+
}, xt = () => import("./index-Dqq-jEHd.js"), Ft = () => import("./index-CxHVh1p1.js"), Gt = () => import("./index-Cveej1JO.js"), Ut = {
|
|
607
611
|
selector: "cds-dropdown",
|
|
608
612
|
import: xt,
|
|
609
613
|
/**
|
|
@@ -611,7 +615,7 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
611
615
|
* @this {Panel} The panel instance
|
|
612
616
|
*/
|
|
613
617
|
init: function(t) {
|
|
614
|
-
const e = customElements.get("cds-dropdown"), n =
|
|
618
|
+
const e = customElements.get("cds-dropdown"), n = l(t), o = n.event;
|
|
615
619
|
o && this.listen(t, e.eventSelect, (i) => {
|
|
616
620
|
this.dispatchPanelEvent(o, {
|
|
617
621
|
...n,
|
|
@@ -637,7 +641,7 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
637
641
|
* @this {Panel} The panel instance
|
|
638
642
|
*/
|
|
639
643
|
init: function(t) {
|
|
640
|
-
const e = customElements.get("cds-combo-box"), n =
|
|
644
|
+
const e = customElements.get("cds-combo-box"), n = l(t), o = n.event;
|
|
641
645
|
o && this.listen(t, e.eventSelect, (i) => {
|
|
642
646
|
const c = i.detail?.item;
|
|
643
647
|
this.dispatchPanelEvent(o, {
|
|
@@ -664,7 +668,7 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
664
668
|
* @this {Panel} The panel instance
|
|
665
669
|
*/
|
|
666
670
|
init: function(t) {
|
|
667
|
-
const e = customElements.get("cds-multi-select"), n =
|
|
671
|
+
const e = customElements.get("cds-multi-select"), n = l(t), o = n.event;
|
|
668
672
|
o && this.listen(t, e.eventSelect, (i) => {
|
|
669
673
|
const c = t.value ? t.value.split(",") : [];
|
|
670
674
|
this.dispatchPanelEvent(o, {
|
|
@@ -681,7 +685,7 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
681
685
|
});
|
|
682
686
|
}
|
|
683
687
|
}
|
|
684
|
-
}, jt = () => import("./index-
|
|
688
|
+
}, jt = () => import("./index-gdF6Bio7.js"), Ht = () => import("./index-xTZMbzwZ.js"), $t = {
|
|
685
689
|
selector: "cds-date-picker",
|
|
686
690
|
import: jt,
|
|
687
691
|
/**
|
|
@@ -689,7 +693,7 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
689
693
|
* @this {Panel} The panel instance
|
|
690
694
|
*/
|
|
691
695
|
init: function(t) {
|
|
692
|
-
const e = customElements.get("cds-date-picker"), n =
|
|
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;
|
|
693
697
|
c && this.listen(t, e.eventChange, (d) => {
|
|
694
698
|
let b;
|
|
695
699
|
i ? b = {
|
|
@@ -708,7 +712,7 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
708
712
|
});
|
|
709
713
|
});
|
|
710
714
|
}
|
|
711
|
-
},
|
|
715
|
+
}, Wt = {
|
|
712
716
|
"cds-time-picker": {
|
|
713
717
|
import: Ht,
|
|
714
718
|
event: "cds-time-picker-changed",
|
|
@@ -717,15 +721,15 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
717
721
|
value: n.value
|
|
718
722
|
})
|
|
719
723
|
}
|
|
720
|
-
},
|
|
724
|
+
}, Yt = () => import("./index-DnJkSee7.js"), Xt = {
|
|
721
725
|
selector: "cds-file-uploader",
|
|
722
|
-
import:
|
|
726
|
+
import: Yt,
|
|
723
727
|
/**
|
|
724
728
|
* @param {CDSFileUploader} uploader - The CDSFileUploader custom element instance
|
|
725
729
|
* @this {Panel} The panel instance
|
|
726
730
|
*/
|
|
727
731
|
init: function(t) {
|
|
728
|
-
const e =
|
|
732
|
+
const e = l(t), n = e.event;
|
|
729
733
|
if (n) {
|
|
730
734
|
const s = t.querySelector('input[type="file"]');
|
|
731
735
|
s && this.listen(s, "change", (i) => {
|
|
@@ -744,7 +748,7 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
744
748
|
});
|
|
745
749
|
});
|
|
746
750
|
}
|
|
747
|
-
}, Zt = () => import("./index-
|
|
751
|
+
}, Zt = () => import("./index-CuftEO4n.js"), Jt = () => import("./index-BKKlb0J7.js"), Kt = () => import("./index-Dp_RyMLM.js"), Qt = {
|
|
748
752
|
selector: "cds-tabs",
|
|
749
753
|
import: Zt,
|
|
750
754
|
/**
|
|
@@ -752,7 +756,7 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
752
756
|
* @this {Panel} The panel instance
|
|
753
757
|
*/
|
|
754
758
|
init: function(t) {
|
|
755
|
-
const e = customElements.get("cds-tabs"), n =
|
|
759
|
+
const e = customElements.get("cds-tabs"), n = l(t), o = t.getAttribute("before-select-event");
|
|
756
760
|
o && this.listen(t, e.eventBeforeSelect, (i) => {
|
|
757
761
|
this.dispatchPanelEvent(o, {
|
|
758
762
|
...n,
|
|
@@ -762,7 +766,7 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
762
766
|
});
|
|
763
767
|
const s = n.event;
|
|
764
768
|
s && this.listen(t, e.eventSelect, (i) => {
|
|
765
|
-
const c = i.detail.item, a =
|
|
769
|
+
const c = i.detail.item, a = l(c);
|
|
766
770
|
this.dispatchPanelEvent(s, {
|
|
767
771
|
...n,
|
|
768
772
|
...a,
|
|
@@ -779,9 +783,9 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
779
783
|
* @this {Panel} The panel instance
|
|
780
784
|
*/
|
|
781
785
|
init: function(t) {
|
|
782
|
-
const e = customElements.get("cds-accordion-item"), n =
|
|
786
|
+
const e = customElements.get("cds-accordion-item"), n = l(t);
|
|
783
787
|
[...t.querySelectorAll("cds-accordion-item")].forEach((s) => {
|
|
784
|
-
const i =
|
|
788
|
+
const i = l(s), c = i.event || n.event;
|
|
785
789
|
c && this.listen(s, e.eventToggle, (a) => {
|
|
786
790
|
this.dispatchPanelEvent(c, {
|
|
787
791
|
...n,
|
|
@@ -800,7 +804,7 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
800
804
|
* @this {Panel} The panel instance
|
|
801
805
|
*/
|
|
802
806
|
init: function(t) {
|
|
803
|
-
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");
|
|
804
808
|
o && this.listen(t, e.eventBeforeSelect, (i) => {
|
|
805
809
|
this.dispatchPanelEvent(o, {
|
|
806
810
|
...n,
|
|
@@ -810,7 +814,7 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
810
814
|
});
|
|
811
815
|
const s = n.event;
|
|
812
816
|
s && this.listen(t, e.eventSelect, (i) => {
|
|
813
|
-
const c = i.detail.item, a =
|
|
817
|
+
const c = i.detail.item, a = l(c);
|
|
814
818
|
this.dispatchPanelEvent(s, {
|
|
815
819
|
...n,
|
|
816
820
|
...a,
|
|
@@ -819,7 +823,7 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
819
823
|
});
|
|
820
824
|
}
|
|
821
825
|
}
|
|
822
|
-
}, z = () => import("./index-
|
|
826
|
+
}, z = () => import("./index-C_raMAyX.js"), ee = {
|
|
823
827
|
selector: "cds-breadcrumb",
|
|
824
828
|
import: z,
|
|
825
829
|
/**
|
|
@@ -827,7 +831,7 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
827
831
|
* @this {Panel} The panel instance
|
|
828
832
|
*/
|
|
829
833
|
init: function(t) {
|
|
830
|
-
const e = this, n =
|
|
834
|
+
const e = this, n = l(t), o = n.event;
|
|
831
835
|
if (o) {
|
|
832
836
|
const s = (c) => {
|
|
833
837
|
e.dispatchPanelEvent(o, {
|
|
@@ -839,14 +843,14 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
839
843
|
const a = c.target.closest("cds-breadcrumb-link");
|
|
840
844
|
if (a) {
|
|
841
845
|
c.preventDefault(), c.stopPropagation();
|
|
842
|
-
const d =
|
|
846
|
+
const d = l(a);
|
|
843
847
|
s(d);
|
|
844
848
|
}
|
|
845
849
|
});
|
|
846
850
|
const i = t.querySelector("cds-overflow-menu-body");
|
|
847
851
|
i && e.listen(i, "cds-overflow-menu-item-clicked", (c) => {
|
|
848
852
|
c.stopPropagation();
|
|
849
|
-
const a =
|
|
853
|
+
const a = l(c.target);
|
|
850
854
|
s(a);
|
|
851
855
|
});
|
|
852
856
|
}
|
|
@@ -866,9 +870,9 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
866
870
|
href: n.getAttribute("href")
|
|
867
871
|
})
|
|
868
872
|
}
|
|
869
|
-
}, oe = () => import("./index-
|
|
873
|
+
}, oe = () => import("./index-D0-FP58R.js"), se = () => import("./index-DAjx5ZMD.js"), ie = () => import("./index-Burct9SW.js"), ce = () => import("./index-BmHPEq-x.js"), ae = () => import("./index-iyY99q2y.js"), re = () => import("./index-DxXhIc-b.js"), le = {
|
|
870
874
|
selector: "cds-text-input",
|
|
871
|
-
import:
|
|
875
|
+
import: se,
|
|
872
876
|
multiEvent: !0,
|
|
873
877
|
events: [
|
|
874
878
|
{
|
|
@@ -888,10 +892,10 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
888
892
|
})
|
|
889
893
|
}
|
|
890
894
|
]
|
|
891
|
-
},
|
|
895
|
+
}, de = {
|
|
892
896
|
// Text Area
|
|
893
897
|
"cds-textarea": {
|
|
894
|
-
import:
|
|
898
|
+
import: ie,
|
|
895
899
|
multiEvent: !0,
|
|
896
900
|
events: [
|
|
897
901
|
{
|
|
@@ -914,7 +918,7 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
914
918
|
},
|
|
915
919
|
// Number Input
|
|
916
920
|
"cds-number-input": {
|
|
917
|
-
import:
|
|
921
|
+
import: ce,
|
|
918
922
|
event: "cds-number-input",
|
|
919
923
|
getData: (t, e, n) => ({
|
|
920
924
|
...e,
|
|
@@ -925,7 +929,7 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
925
929
|
},
|
|
926
930
|
// Password Input
|
|
927
931
|
"cds-password-input": {
|
|
928
|
-
import:
|
|
932
|
+
import: [oe, ae],
|
|
929
933
|
multiEvent: !0,
|
|
930
934
|
events: [
|
|
931
935
|
{
|
|
@@ -948,26 +952,26 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
948
952
|
},
|
|
949
953
|
// Search
|
|
950
954
|
"cds-search": {
|
|
951
|
-
import:
|
|
955
|
+
import: re,
|
|
952
956
|
event: "cds-search-input",
|
|
953
957
|
getData: (t, e, n) => ({
|
|
954
958
|
...e,
|
|
955
959
|
value: n.value
|
|
956
960
|
})
|
|
957
961
|
}
|
|
958
|
-
},
|
|
962
|
+
}, pe = () => import("./index-BDFyGWAo.js"), me = () => import("./index-D64SgGEt.js"), ue = () => import("./index-j7S_4l8J.js"), he = () => import("./index-BRj3l6eo.js"), ve = () => import("./index-D1Thmc8o.js"), fe = {
|
|
959
963
|
selector: "cds-checkbox",
|
|
960
|
-
import:
|
|
964
|
+
import: pe,
|
|
961
965
|
event: "cds-checkbox-changed",
|
|
962
966
|
getData: (t, e, n) => ({
|
|
963
967
|
...e,
|
|
964
968
|
checked: t.detail.checked,
|
|
965
969
|
value: n.value
|
|
966
970
|
})
|
|
967
|
-
},
|
|
971
|
+
}, ge = {
|
|
968
972
|
// Radio Button Group - only listen to the group, not individual buttons
|
|
969
973
|
"cds-radio-button-group": {
|
|
970
|
-
import:
|
|
974
|
+
import: me,
|
|
971
975
|
event: "cds-radio-button-group-changed",
|
|
972
976
|
getData: (t, e) => ({
|
|
973
977
|
...e,
|
|
@@ -976,7 +980,7 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
976
980
|
},
|
|
977
981
|
// Toggle
|
|
978
982
|
"cds-toggle": {
|
|
979
|
-
import:
|
|
983
|
+
import: ue,
|
|
980
984
|
event: "cds-toggle-changed",
|
|
981
985
|
getData: (t, e) => ({
|
|
982
986
|
...e,
|
|
@@ -986,7 +990,7 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
986
990
|
},
|
|
987
991
|
// Select
|
|
988
992
|
"cds-select": {
|
|
989
|
-
import:
|
|
993
|
+
import: he,
|
|
990
994
|
event: "cds-select-selected",
|
|
991
995
|
getData: (t, e) => ({
|
|
992
996
|
...e,
|
|
@@ -995,13 +999,13 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
995
999
|
},
|
|
996
1000
|
// Slider
|
|
997
1001
|
"cds-slider": {
|
|
998
|
-
import:
|
|
1002
|
+
import: ve,
|
|
999
1003
|
/**
|
|
1000
1004
|
* @param {CDSSlider} slider - The CDSSlider custom element instance
|
|
1001
1005
|
* @this {Panel} The panel instance
|
|
1002
1006
|
*/
|
|
1003
1007
|
init: function(t) {
|
|
1004
|
-
const e =
|
|
1008
|
+
const e = l(t), n = e.event;
|
|
1005
1009
|
n && this.listen(t, "cds-slider-changed", (s) => {
|
|
1006
1010
|
this.dispatchPanelEvent(n, {
|
|
1007
1011
|
...e,
|
|
@@ -1017,12 +1021,12 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
1017
1021
|
});
|
|
1018
1022
|
}
|
|
1019
1023
|
}
|
|
1020
|
-
}, L = () => import("./index-
|
|
1024
|
+
}, L = () => import("./index-0q2seZ_8.js"), Ee = {
|
|
1021
1025
|
selector: "cds-tag",
|
|
1022
1026
|
import: L,
|
|
1023
1027
|
event: "click",
|
|
1024
1028
|
getData: (t, e) => e
|
|
1025
|
-
},
|
|
1029
|
+
}, be = {
|
|
1026
1030
|
// Dismissible tags (closeable tags with X button)
|
|
1027
1031
|
"cds-dismissible-tag": {
|
|
1028
1032
|
import: L,
|
|
@@ -1031,7 +1035,7 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
1031
1035
|
* @this {Panel} The panel instance
|
|
1032
1036
|
*/
|
|
1033
1037
|
init: function(t) {
|
|
1034
|
-
const e =
|
|
1038
|
+
const e = l(t), n = t.getAttribute("click-event");
|
|
1035
1039
|
n && this.listen(t, "click", (s) => {
|
|
1036
1040
|
s.target.closest("button") || this.dispatchPanelEvent(n, {
|
|
1037
1041
|
...e
|
|
@@ -1055,9 +1059,9 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
1055
1059
|
action: "remove"
|
|
1056
1060
|
})
|
|
1057
1061
|
}
|
|
1058
|
-
},
|
|
1062
|
+
}, Ce = () => import("./index-_Sa5BYRO.js"), Se = () => import("./index-CUY1VtLr.js"), Ie = () => import("./index-BI2UKnaQ.js"), Ae = {
|
|
1059
1063
|
selector: "cds-overflow-menu",
|
|
1060
|
-
import:
|
|
1064
|
+
import: Ce,
|
|
1061
1065
|
// We collect the menu attributes from the menu, but we listen for the
|
|
1062
1066
|
// events on the menu body.
|
|
1063
1067
|
/**
|
|
@@ -1065,28 +1069,28 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
1065
1069
|
* @this {Panel} The panel instance
|
|
1066
1070
|
*/
|
|
1067
1071
|
init: function(t) {
|
|
1068
|
-
const e =
|
|
1072
|
+
const e = l(t), n = e.event, o = t.querySelector("cds-overflow-menu-body");
|
|
1069
1073
|
n && o && this.listen(o, "cds-overflow-menu-item-clicked", (s) => {
|
|
1070
1074
|
s.stopPropagation();
|
|
1071
|
-
const i =
|
|
1075
|
+
const i = l(s.target);
|
|
1072
1076
|
this.dispatchPanelEvent(n, {
|
|
1073
1077
|
...e,
|
|
1074
1078
|
...i
|
|
1075
1079
|
});
|
|
1076
1080
|
});
|
|
1077
1081
|
}
|
|
1078
|
-
},
|
|
1082
|
+
}, De = {
|
|
1079
1083
|
// Structured List
|
|
1080
1084
|
"cds-structured-list": {
|
|
1081
|
-
import:
|
|
1085
|
+
import: Se,
|
|
1082
1086
|
/**
|
|
1083
1087
|
* @param {CDSStructuredList} list - The CDSStructuredList custom element instance
|
|
1084
1088
|
* @this {Panel} The panel instance
|
|
1085
1089
|
*/
|
|
1086
1090
|
init: function(t) {
|
|
1087
|
-
const e =
|
|
1091
|
+
const e = l(t);
|
|
1088
1092
|
[...t.querySelectorAll("cds-structured-list-row")].forEach((o) => {
|
|
1089
|
-
const s =
|
|
1093
|
+
const s = l(o), i = s.event || e.event;
|
|
1090
1094
|
i && this.listen(o, "click", (c) => {
|
|
1091
1095
|
c.stopPropagation(), this.dispatchPanelEvent(i, {
|
|
1092
1096
|
...e,
|
|
@@ -1094,7 +1098,7 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
1094
1098
|
});
|
|
1095
1099
|
});
|
|
1096
1100
|
}), t.hasAttribute("selection") && this.listen(t, "cds-structured-list-selected", (o) => {
|
|
1097
|
-
const s = o.detail.row, i =
|
|
1101
|
+
const s = o.detail.row, i = l(s), c = e.event;
|
|
1098
1102
|
c && this.dispatchPanelEvent(c, {
|
|
1099
1103
|
...e,
|
|
1100
1104
|
...i
|
|
@@ -1104,15 +1108,15 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
1104
1108
|
},
|
|
1105
1109
|
// Tree View
|
|
1106
1110
|
"cds-tree-view": {
|
|
1107
|
-
import:
|
|
1111
|
+
import: Ie,
|
|
1108
1112
|
/**
|
|
1109
1113
|
* @param {CDSTreeView} tree - The CDSTreeView custom element instance
|
|
1110
1114
|
* @this {Panel} The panel instance
|
|
1111
1115
|
*/
|
|
1112
1116
|
init: function(t) {
|
|
1113
|
-
const e =
|
|
1117
|
+
const e = l(t);
|
|
1114
1118
|
this.listen(t, "cds-tree-node-selected", (o) => {
|
|
1115
|
-
const s = o.detail.node, i =
|
|
1119
|
+
const s = o.detail.node, i = l(s), c = i.event || e.event;
|
|
1116
1120
|
c && this.dispatchPanelEvent(c, {
|
|
1117
1121
|
...e,
|
|
1118
1122
|
...i,
|
|
@@ -1130,7 +1134,7 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
1130
1134
|
});
|
|
1131
1135
|
}
|
|
1132
1136
|
}
|
|
1133
|
-
}, q = () => import("./index-
|
|
1137
|
+
}, q = () => import("./index-D14WfIVq.js"), Ne = {
|
|
1134
1138
|
selector: "cds-toast-notification",
|
|
1135
1139
|
import: q,
|
|
1136
1140
|
event: "cds-notification-closed",
|
|
@@ -1138,7 +1142,7 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
1138
1142
|
...e,
|
|
1139
1143
|
action: "closed"
|
|
1140
1144
|
})
|
|
1141
|
-
},
|
|
1145
|
+
}, Pe = {
|
|
1142
1146
|
// Inline Notification
|
|
1143
1147
|
"cds-inline-notification": {
|
|
1144
1148
|
import: q,
|
|
@@ -1156,7 +1160,7 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
1156
1160
|
* @this {Panel} The panel instance
|
|
1157
1161
|
*/
|
|
1158
1162
|
init: function(t) {
|
|
1159
|
-
const e =
|
|
1163
|
+
const e = l(t), n = E(t, "close-event", "event");
|
|
1160
1164
|
n && this.listen(t, "cds-notification-closed", (s) => {
|
|
1161
1165
|
this.dispatchPanelEvent(n, {
|
|
1162
1166
|
...e,
|
|
@@ -1172,7 +1176,7 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
1172
1176
|
});
|
|
1173
1177
|
}
|
|
1174
1178
|
}
|
|
1175
|
-
}, w = () => import("./index-
|
|
1179
|
+
}, w = () => import("./index-iN8x96sv.js"), _e = {
|
|
1176
1180
|
selector: "cds-clickable-tile",
|
|
1177
1181
|
import: w,
|
|
1178
1182
|
event: "click",
|
|
@@ -1180,7 +1184,7 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
1180
1184
|
...e,
|
|
1181
1185
|
href: t.currentTarget.getAttribute("href")
|
|
1182
1186
|
})
|
|
1183
|
-
},
|
|
1187
|
+
}, ke = {
|
|
1184
1188
|
// Expandable Tile
|
|
1185
1189
|
"cds-expandable-tile": {
|
|
1186
1190
|
import: w,
|
|
@@ -1189,7 +1193,7 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
1189
1193
|
* @this {Panel} The panel instance
|
|
1190
1194
|
*/
|
|
1191
1195
|
init: function(t) {
|
|
1192
|
-
const e =
|
|
1196
|
+
const e = l(t), n = t.getAttribute("before-toggle-event");
|
|
1193
1197
|
n && this.listen(t, "cds-expandable-tile-beingtoggled", (s) => {
|
|
1194
1198
|
this.dispatchPanelEvent(n, {
|
|
1195
1199
|
...e,
|
|
@@ -1226,15 +1230,15 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
1226
1230
|
value: n.value
|
|
1227
1231
|
})
|
|
1228
1232
|
}
|
|
1229
|
-
},
|
|
1233
|
+
}, ye = () => import("./index-CmX7hAxw.js"), Te = () => import("./index-BSGMH-5J.js"), we = () => import("./index-BpXTO-26.js"), Oe = {
|
|
1230
1234
|
selector: "cds-progress-bar",
|
|
1231
|
-
import:
|
|
1235
|
+
import: ye,
|
|
1232
1236
|
/**
|
|
1233
1237
|
* @param {CDSProgressBar} progressBar - The CDSProgressBar custom element instance
|
|
1234
1238
|
* @this {Panel} The panel instance
|
|
1235
1239
|
*/
|
|
1236
1240
|
init: function(t) {
|
|
1237
|
-
const e =
|
|
1241
|
+
const e = l(t);
|
|
1238
1242
|
if (e.event) {
|
|
1239
1243
|
const n = new MutationObserver(() => {
|
|
1240
1244
|
const o = parseFloat(t.getAttribute("value") || "0"), s = parseFloat(t.getAttribute("max") || "100");
|
|
@@ -1250,18 +1254,18 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
1250
1254
|
}), t._progressObserver = n;
|
|
1251
1255
|
}
|
|
1252
1256
|
}
|
|
1253
|
-
},
|
|
1257
|
+
}, Re = {
|
|
1254
1258
|
// Progress Indicator
|
|
1255
1259
|
"cds-progress-indicator": {
|
|
1256
|
-
import:
|
|
1260
|
+
import: Te,
|
|
1257
1261
|
/**
|
|
1258
1262
|
* @param {CDSProgressIndicator} indicator - The CDSProgressIndicator custom element instance
|
|
1259
1263
|
* @this {Panel} The panel instance
|
|
1260
1264
|
*/
|
|
1261
1265
|
init: function(t) {
|
|
1262
|
-
const e =
|
|
1266
|
+
const e = l(t);
|
|
1263
1267
|
this.listen(t, "cds-progress-step-click", (n) => {
|
|
1264
|
-
const o = n.target, s =
|
|
1268
|
+
const o = n.target, s = l(o), i = s.event || e.event;
|
|
1265
1269
|
i && this.dispatchPanelEvent(i, {
|
|
1266
1270
|
...e,
|
|
1267
1271
|
...s,
|
|
@@ -1273,13 +1277,13 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
1273
1277
|
},
|
|
1274
1278
|
// Inline Loading - Loading indicator for inline actions (e.g., form submit)
|
|
1275
1279
|
"cds-inline-loading": {
|
|
1276
|
-
import:
|
|
1280
|
+
import: we,
|
|
1277
1281
|
/**
|
|
1278
1282
|
* @param {CDSInlineLoading} inlineLoading - The CDSInlineLoading custom element instance
|
|
1279
1283
|
* @this {Panel} The panel instance
|
|
1280
1284
|
*/
|
|
1281
1285
|
init: function(t) {
|
|
1282
|
-
const e =
|
|
1286
|
+
const e = l(t), n = e.event;
|
|
1283
1287
|
n && this.listen(t, "cds-inline-loading-onsuccess", (s) => {
|
|
1284
1288
|
this.dispatchPanelEvent(n, {
|
|
1285
1289
|
...e,
|
|
@@ -1306,15 +1310,15 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
1306
1310
|
}
|
|
1307
1311
|
}
|
|
1308
1312
|
}
|
|
1309
|
-
},
|
|
1313
|
+
}, Me = () => import("./index-D0-FP58R.js"), Be = () => import("./index-BliqP2AV.js").then((t) => t.i), ze = () => import("./index-CH_UJgBt.js"), Le = {
|
|
1310
1314
|
selector: "cds-tooltip",
|
|
1311
|
-
import:
|
|
1315
|
+
import: Me,
|
|
1312
1316
|
/**
|
|
1313
1317
|
* @param {CDSTooltip} tooltip - The CDSTooltip custom element instance
|
|
1314
1318
|
* @this {Panel} The panel instance
|
|
1315
1319
|
*/
|
|
1316
1320
|
init: function(t) {
|
|
1317
|
-
const e =
|
|
1321
|
+
const e = l(t), n = E(t, "open-event");
|
|
1318
1322
|
n && this.listen(t, "cds-tooltip-beingopened", (s) => {
|
|
1319
1323
|
this.dispatchPanelEvent(n, {
|
|
1320
1324
|
...e,
|
|
@@ -1329,16 +1333,16 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
1329
1333
|
});
|
|
1330
1334
|
});
|
|
1331
1335
|
}
|
|
1332
|
-
},
|
|
1336
|
+
}, qe = {
|
|
1333
1337
|
// Popover
|
|
1334
1338
|
"cds-popover": {
|
|
1335
|
-
import:
|
|
1339
|
+
import: Be,
|
|
1336
1340
|
/**
|
|
1337
1341
|
* @param {CDSPopover} popover - The CDSPopover custom element instance
|
|
1338
1342
|
* @this {Panel} The panel instance
|
|
1339
1343
|
*/
|
|
1340
1344
|
init: function(t) {
|
|
1341
|
-
const e =
|
|
1345
|
+
const e = l(t), n = E(t, "open-event");
|
|
1342
1346
|
n && this.listen(t, "cds-popover-beingopened", (s) => {
|
|
1343
1347
|
this.dispatchPanelEvent(n, {
|
|
1344
1348
|
...e,
|
|
@@ -1356,13 +1360,13 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
1356
1360
|
},
|
|
1357
1361
|
// Toggletip - tooltip that stays open until dismissed
|
|
1358
1362
|
"cds-toggletip": {
|
|
1359
|
-
import:
|
|
1363
|
+
import: ze,
|
|
1360
1364
|
/**
|
|
1361
1365
|
* @param {CDSToggletip} toggletip - The CDSToggletip custom element instance
|
|
1362
1366
|
* @this {Panel} The panel instance
|
|
1363
1367
|
*/
|
|
1364
1368
|
init: function(t) {
|
|
1365
|
-
const e =
|
|
1369
|
+
const e = l(t);
|
|
1366
1370
|
if (e.event) {
|
|
1367
1371
|
const n = new MutationObserver((o) => {
|
|
1368
1372
|
o.forEach((s) => {
|
|
@@ -1383,25 +1387,25 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
1383
1387
|
}
|
|
1384
1388
|
}
|
|
1385
1389
|
}
|
|
1386
|
-
},
|
|
1390
|
+
}, xe = () => import("./index-C3bqrUco.js").then((t) => t.i), Fe = () => import("./index-QH_p6nSd.js"), Ge = {
|
|
1387
1391
|
selector: "cds-link",
|
|
1388
|
-
import:
|
|
1392
|
+
import: xe,
|
|
1389
1393
|
event: "click",
|
|
1390
1394
|
getData: (t, e, n) => ({
|
|
1391
1395
|
...e,
|
|
1392
1396
|
href: n.getAttribute("href")
|
|
1393
1397
|
})
|
|
1394
|
-
},
|
|
1398
|
+
}, Ue = {
|
|
1395
1399
|
// Code Snippet
|
|
1396
1400
|
"cds-code-snippet": {
|
|
1397
|
-
import:
|
|
1401
|
+
import: Fe,
|
|
1398
1402
|
event: "cds-copy-button-clicked",
|
|
1399
1403
|
getData: (t, e) => ({
|
|
1400
1404
|
...e,
|
|
1401
1405
|
action: "copied"
|
|
1402
1406
|
})
|
|
1403
1407
|
}
|
|
1404
|
-
}, H = () => import("./index
|
|
1408
|
+
}, H = () => import("./index-Dh5yT9_B.js"), Ve = () => import("./index-DFGqcn1K.js"), je = () => import("./index-0Lh4HDpB.js"), He = () => import("./index-ByGJtavW.js"), $e = () => import("./index-B8pBsLur.js"), We = () => import("./index-r12okTDD.js"), Ye = () => import("./index-CxH5pDYR.js").then((t) => t.i), Xe = () => import("./index-O55HRlOa.js").then((t) => t.i), Ze = () => import("./index-CftYyZu7.js"), Je = () => import("./index-CL9hiht6.js"), Ke = {
|
|
1405
1409
|
// Form structure components (presentational only - no event handling needed)
|
|
1406
1410
|
"cds-form": {
|
|
1407
1411
|
import: H
|
|
@@ -1412,20 +1416,20 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
1412
1416
|
// No event handling - presentational wrapper for form fields
|
|
1413
1417
|
},
|
|
1414
1418
|
"cds-form-group": {
|
|
1415
|
-
import:
|
|
1419
|
+
import: Ve
|
|
1416
1420
|
// No event handling - presentational fieldset wrapper
|
|
1417
1421
|
},
|
|
1418
1422
|
"cds-stack": {
|
|
1419
|
-
import:
|
|
1423
|
+
import: je
|
|
1420
1424
|
// No event handling - layout utility for spacing items vertically or horizontally
|
|
1421
1425
|
},
|
|
1422
1426
|
// Typography & Icons (Presentational)
|
|
1423
1427
|
"cds-heading": {
|
|
1424
|
-
import:
|
|
1428
|
+
import: He
|
|
1425
1429
|
// No event handling - semantic heading component
|
|
1426
1430
|
},
|
|
1427
1431
|
"cds-icon": {
|
|
1428
|
-
import:
|
|
1432
|
+
import: $e
|
|
1429
1433
|
// No event handling - icon display component
|
|
1430
1434
|
},
|
|
1431
1435
|
"cds-icon-indicator": {
|
|
@@ -1434,7 +1438,7 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
1434
1438
|
},
|
|
1435
1439
|
// Badge Indicator - Status badge component (typically used in tabs/icons)
|
|
1436
1440
|
"cds-badge-indicator": {
|
|
1437
|
-
import:
|
|
1441
|
+
import: Je
|
|
1438
1442
|
// No event handling - presentational status indicator
|
|
1439
1443
|
// Typically appears as a dot on tabs or icons to show notifications/status
|
|
1440
1444
|
},
|
|
@@ -1445,63 +1449,63 @@ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KC
|
|
|
1445
1449
|
},
|
|
1446
1450
|
// Skeleton components - Loading placeholders
|
|
1447
1451
|
"cds-skeleton-text": {
|
|
1448
|
-
import:
|
|
1452
|
+
import: Xe
|
|
1449
1453
|
// No event handling - presentational loading placeholder
|
|
1450
1454
|
},
|
|
1451
1455
|
"cds-skeleton-placeholder": {
|
|
1452
|
-
import:
|
|
1456
|
+
import: Ze
|
|
1453
1457
|
// No event handling - presentational loading placeholder
|
|
1454
1458
|
}
|
|
1455
|
-
},
|
|
1459
|
+
}, Qe = [
|
|
1456
1460
|
Tt,
|
|
1457
1461
|
wt,
|
|
1458
1462
|
Rt,
|
|
1459
1463
|
Lt,
|
|
1460
1464
|
Ut,
|
|
1461
|
-
|
|
1465
|
+
$t,
|
|
1462
1466
|
Xt,
|
|
1463
1467
|
Qt,
|
|
1464
1468
|
ee,
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1469
|
+
le,
|
|
1470
|
+
fe,
|
|
1471
|
+
Ee,
|
|
1472
|
+
Ae,
|
|
1473
|
+
Ne,
|
|
1474
|
+
_e,
|
|
1475
|
+
Oe,
|
|
1476
|
+
Le,
|
|
1477
|
+
Ge
|
|
1474
1478
|
];
|
|
1475
|
-
function
|
|
1479
|
+
function tn() {
|
|
1476
1480
|
const t = /* @__PURE__ */ new Map();
|
|
1477
|
-
return
|
|
1481
|
+
return Qe.forEach((n) => {
|
|
1478
1482
|
t.set(n.selector, n);
|
|
1479
1483
|
}), [
|
|
1480
1484
|
Ot,
|
|
1481
1485
|
Mt,
|
|
1482
1486
|
qt,
|
|
1483
1487
|
Vt,
|
|
1484
|
-
|
|
1488
|
+
Wt,
|
|
1485
1489
|
te,
|
|
1486
1490
|
ne,
|
|
1487
1491
|
Pt,
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1492
|
+
de,
|
|
1493
|
+
ge,
|
|
1494
|
+
be,
|
|
1495
|
+
De,
|
|
1496
|
+
Pe,
|
|
1497
|
+
ke,
|
|
1498
|
+
Re,
|
|
1499
|
+
qe,
|
|
1500
|
+
Ue,
|
|
1501
|
+
Ke
|
|
1498
1502
|
].forEach((n) => {
|
|
1499
1503
|
Object.entries(n).forEach(([o, s]) => {
|
|
1500
1504
|
t.set(o, s);
|
|
1501
1505
|
});
|
|
1502
1506
|
}), t;
|
|
1503
1507
|
}
|
|
1504
|
-
function
|
|
1508
|
+
function en(t) {
|
|
1505
1509
|
const e = /* @__PURE__ */ new Map();
|
|
1506
1510
|
if (!t || !(t instanceof Element))
|
|
1507
1511
|
return e;
|
|
@@ -1517,7 +1521,7 @@ function tn(t) {
|
|
|
1517
1521
|
s.length === 0 && e.delete(o);
|
|
1518
1522
|
return e;
|
|
1519
1523
|
}
|
|
1520
|
-
function
|
|
1524
|
+
function nn(t) {
|
|
1521
1525
|
const e = /* @__PURE__ */ new Set();
|
|
1522
1526
|
for (const [n, o] of t.entries()) {
|
|
1523
1527
|
const s = y[n];
|
|
@@ -1525,13 +1529,13 @@ function en(t) {
|
|
|
1525
1529
|
}
|
|
1526
1530
|
return e;
|
|
1527
1531
|
}
|
|
1528
|
-
async function
|
|
1532
|
+
async function on(t, e) {
|
|
1529
1533
|
if (t.size === 0)
|
|
1530
1534
|
return;
|
|
1531
1535
|
const n = Array.from(t).map(async (o) => (e.has(o) || e.set(o, o()), e.get(o)));
|
|
1532
1536
|
await Promise.all(n);
|
|
1533
1537
|
}
|
|
1534
|
-
function
|
|
1538
|
+
function sn(t, e) {
|
|
1535
1539
|
let n = 0;
|
|
1536
1540
|
for (const [o, s] of t.entries()) {
|
|
1537
1541
|
const i = y[o];
|
|
@@ -1541,7 +1545,7 @@ function on(t, e) {
|
|
|
1541
1545
|
return;
|
|
1542
1546
|
}
|
|
1543
1547
|
if (i.multiEvent) {
|
|
1544
|
-
const b =
|
|
1548
|
+
const b = l(c);
|
|
1545
1549
|
i.events.forEach((S) => {
|
|
1546
1550
|
const P = E(c, S.attrName, "event");
|
|
1547
1551
|
P && e.listen(c, S.type, (O) => {
|
|
@@ -1550,7 +1554,7 @@ function on(t, e) {
|
|
|
1550
1554
|
});
|
|
1551
1555
|
return;
|
|
1552
1556
|
}
|
|
1553
|
-
const a =
|
|
1557
|
+
const a = l(c), d = a.event;
|
|
1554
1558
|
d && e.listen(c, i.event, (b) => {
|
|
1555
1559
|
b.stopPropagation();
|
|
1556
1560
|
const S = i.getData(b, a, c), P = S._eventOverride || d;
|
|
@@ -1561,9 +1565,9 @@ function on(t, e) {
|
|
|
1561
1565
|
return n;
|
|
1562
1566
|
}
|
|
1563
1567
|
const y = {
|
|
1564
|
-
...Object.fromEntries(
|
|
1565
|
-
},
|
|
1566
|
-
const n =
|
|
1568
|
+
...Object.fromEntries(tn())
|
|
1569
|
+
}, cn = async function(t, e) {
|
|
1570
|
+
const n = en(t);
|
|
1567
1571
|
if (n.size === 0) {
|
|
1568
1572
|
this.debugMe("[Carbon] No Carbon components found in panel");
|
|
1569
1573
|
return;
|
|
@@ -1571,17 +1575,17 @@ const y = {
|
|
|
1571
1575
|
this.carbonComponents || (this.carbonComponents = /* @__PURE__ */ new Map());
|
|
1572
1576
|
for (const [i, c] of n.entries())
|
|
1573
1577
|
this.carbonComponents.set(i, c);
|
|
1574
|
-
const o =
|
|
1578
|
+
const o = nn(n);
|
|
1575
1579
|
if (o.size > 0)
|
|
1576
1580
|
try {
|
|
1577
|
-
await
|
|
1581
|
+
await on(o, e);
|
|
1578
1582
|
} catch (i) {
|
|
1579
1583
|
console.error("[Carbon] Failed to load some component modules:", i);
|
|
1580
1584
|
}
|
|
1581
|
-
const s =
|
|
1585
|
+
const s = sn(n, this);
|
|
1582
1586
|
s > 0 && this.debugMe(`[Carbon] Total components initialized: ${s}`);
|
|
1583
|
-
},
|
|
1584
|
-
|
|
1587
|
+
}, rn = () => {
|
|
1588
|
+
Et.register("carbon", {
|
|
1585
1589
|
/**
|
|
1586
1590
|
* Main render function that orchestrates Carbon component initialization.
|
|
1587
1591
|
* Called by Panel.parseContent() for each panel that enters the document.
|
|
@@ -1592,7 +1596,7 @@ const y = {
|
|
|
1592
1596
|
*/
|
|
1593
1597
|
render: async function(t, e) {
|
|
1594
1598
|
try {
|
|
1595
|
-
await
|
|
1599
|
+
await cn.call(this, t, e);
|
|
1596
1600
|
} catch (n) {
|
|
1597
1601
|
console.error("[Carbon] Initialization error:", n);
|
|
1598
1602
|
}
|
|
@@ -1614,5 +1618,5 @@ const y = {
|
|
|
1614
1618
|
}), console.debug("[Zooy] Carbon Design System library registered");
|
|
1615
1619
|
};
|
|
1616
1620
|
export {
|
|
1617
|
-
|
|
1621
|
+
rn as registerCarbonLibrary
|
|
1618
1622
|
};
|