@trintel/zooy 1.5.0 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { n as h, t as
|
|
2
|
-
import { i as
|
|
3
|
-
import { isDefAndNotNull as
|
|
1
|
+
import { n as h, t as bt } from "./component-library-registry-DB5UeqC2.js";
|
|
2
|
+
import { i as Et, n as W, r } from "./zoo-DsyOHBKi.js";
|
|
3
|
+
import { isDefAndNotNull as Wt, objToPaths as St } from "badu";
|
|
4
4
|
import * as _ from "ramda";
|
|
5
5
|
import { TABLE_SORT_DIRECTION as It } from "@carbon/web-components/lib/components/data-table/defs.js";
|
|
6
|
-
var
|
|
6
|
+
var Pt = /* @__PURE__ */ h({ cdsTableWrap: () => At }), K = (t, e, n) => {
|
|
7
7
|
const s = customElements.get("cds-table"), o = customElements.get("cds-pagination"), a = customElements.get(s.selectorTableBatchActions);
|
|
8
8
|
customElements.get("cds-popover");
|
|
9
|
-
const c = e.dataBinder, l = e.pagination, p = e.skeleton,
|
|
9
|
+
const c = e.dataBinder, l = e.pagination, p = e.skeleton, S = e.querySelector(s.selectorTableToolbarSearch), I = e.querySelector(s.selectorTableBatchActions), D = e.querySelector(s.selectorTableBody), F = [
|
|
10
10
|
"button",
|
|
11
11
|
"a",
|
|
12
12
|
"input",
|
|
@@ -15,55 +15,55 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
15
15
|
'[role="button"]',
|
|
16
16
|
".cds--table-expand",
|
|
17
17
|
".cds--table-column-checkbox"
|
|
18
|
-
].join(","), V = e.querySelectorAll(s.selectorHeaderCell + "[is-sortable]"),
|
|
18
|
+
].join(","), V = e.querySelectorAll(s.selectorHeaderCell + "[is-sortable]"), nt = e.isSortable || V.length > 0, R = /* @__PURE__ */ Symbol(), z = /* @__PURE__ */ Symbol(), x = /* @__PURE__ */ new Map(), ot = (i) => {
|
|
19
19
|
t.listen(e, "click", (d) => {
|
|
20
20
|
const v = d.target.closest(s.selectorTableRow);
|
|
21
21
|
if (!v || d.composedPath().some((g) => g.matches && g.matches(F))) return;
|
|
22
22
|
d.stopPropagation();
|
|
23
|
-
const u =
|
|
24
|
-
t.dispatchPanelEvent(
|
|
23
|
+
const u = r(v);
|
|
24
|
+
t.dispatchPanelEvent(i, { ...u });
|
|
25
25
|
});
|
|
26
|
-
},
|
|
26
|
+
}, at = (i) => {
|
|
27
27
|
t.listen(e, s.eventExpandoToggle, (d) => {
|
|
28
28
|
const v = d.target, u = v.tagName === "CDS-TABLE-HEADER-ROW", g = d.detail.expanded, b = {
|
|
29
29
|
tableAttrs: n,
|
|
30
|
-
...
|
|
30
|
+
...r(v),
|
|
31
31
|
target: v,
|
|
32
32
|
allRows: u,
|
|
33
33
|
didExpand: g
|
|
34
34
|
};
|
|
35
|
-
t.dispatchPanelEvent(
|
|
35
|
+
t.dispatchPanelEvent(i, b);
|
|
36
36
|
});
|
|
37
|
-
},
|
|
37
|
+
}, ct = (i) => {
|
|
38
38
|
x.set(R, (d) => {
|
|
39
|
-
t.dispatchPanelEvent(
|
|
39
|
+
t.dispatchPanelEvent(i, d);
|
|
40
40
|
});
|
|
41
|
-
},
|
|
41
|
+
}, rt = (i) => {
|
|
42
42
|
x.set(z, (d) => {
|
|
43
|
-
const v = d.detail.selectedRows, u = Math.min(v.length,
|
|
43
|
+
const v = d.detail.selectedRows, u = Math.min(v.length, I.totalRowsCount), g = d.target, b = r(g), P = v.map(r), y = {
|
|
44
44
|
tableAttrs: n,
|
|
45
45
|
...b,
|
|
46
46
|
target: g,
|
|
47
47
|
selectCount: u,
|
|
48
48
|
selection: P
|
|
49
49
|
};
|
|
50
|
-
t.dispatchPanelEvent(
|
|
50
|
+
t.dispatchPanelEvent(i, y);
|
|
51
51
|
});
|
|
52
|
-
},
|
|
52
|
+
}, it = (i) => {
|
|
53
53
|
t.listen(e, s.eventTableRowSelect, (d) => {
|
|
54
|
-
const v = d.target, u = d.detail.selectedRows || [], g = u.length, b = u.map(
|
|
54
|
+
const v = d.target, u = d.detail.selectedRows || [], g = u.length, b = u.map(r), P = {
|
|
55
55
|
tableAttrs: n,
|
|
56
|
-
...
|
|
56
|
+
...r(v),
|
|
57
57
|
selectCount: g,
|
|
58
58
|
selection: b,
|
|
59
59
|
target: v
|
|
60
60
|
};
|
|
61
|
-
t.dispatchPanelEvent(
|
|
61
|
+
t.dispatchPanelEvent(i, P);
|
|
62
62
|
});
|
|
63
|
-
},
|
|
64
|
-
t.listen(e, s.eventBeforeSort, (
|
|
65
|
-
const d =
|
|
66
|
-
|
|
63
|
+
}, lt = () => {
|
|
64
|
+
t.listen(e, s.eventBeforeSort, (i) => {
|
|
65
|
+
const d = i.target, v = i.detail.oldSortDirection, u = i.detail.sortDirection, g = r(d), b = g.sortField, P = u === It.DESCENDING ? `-${b}` : b;
|
|
66
|
+
i.cancelBubble = !0, i.stopPropagation(), i.preventDefault(), D.innerHTML = "", p && p.show(), V.forEach((A, f) => {
|
|
67
67
|
A === d ? (A.setAttribute("sort-active", "true"), A.setAttribute("sort-direction", u)) : (A.removeAttribute("sort-active"), A.setAttribute("sort-direction", "none"));
|
|
68
68
|
});
|
|
69
69
|
const y = { ordering: P };
|
|
@@ -79,19 +79,19 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
79
79
|
target: d
|
|
80
80
|
});
|
|
81
81
|
});
|
|
82
|
-
},
|
|
83
|
-
t.listen(e, s.eventTableRowSelectAll, (
|
|
84
|
-
|
|
82
|
+
}, dt = () => {
|
|
83
|
+
t.listen(e, s.eventTableRowSelectAll, (i) => {
|
|
84
|
+
i.detail.selectedRows.length === 0 && e.querySelectorAll(s.selectorTableRow).forEach((d) => {
|
|
85
85
|
d.disabled = !1, d.selected = !1;
|
|
86
|
-
}), x.has(z) && x.get(z)(
|
|
86
|
+
}), x.has(z) && x.get(z)(i);
|
|
87
87
|
});
|
|
88
|
-
},
|
|
89
|
-
t.listen(e, s.eventBeforeChangeSelectionAll, (
|
|
90
|
-
|
|
88
|
+
}, pt = () => {
|
|
89
|
+
t.listen(e, s.eventBeforeChangeSelectionAll, (i) => {
|
|
90
|
+
i.stopPropagation(), i.detail.callback && i.detail.callback();
|
|
91
91
|
});
|
|
92
|
-
},
|
|
92
|
+
}, vt = (i) => {
|
|
93
93
|
const d = e.querySelector("cds-table-header-row");
|
|
94
|
-
t.listen(
|
|
94
|
+
t.listen(i, a.eventClickSelectAll, (v) => {
|
|
95
95
|
v.stopPropagation(), d.dispatchEvent(new CustomEvent(s.eventBeforeChangeSelectionAll, {
|
|
96
96
|
bubbles: !0,
|
|
97
97
|
cancelable: !0,
|
|
@@ -99,19 +99,19 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
99
99
|
detail: {
|
|
100
100
|
selected: !0,
|
|
101
101
|
callback: () => {
|
|
102
|
-
|
|
102
|
+
i.selectedRowsCount = i.totalRowsCount, e.querySelectorAll(s.selectorTableRow).forEach((u) => {
|
|
103
103
|
u.disabled = !0;
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
}));
|
|
108
108
|
});
|
|
109
|
-
},
|
|
110
|
-
t.listen(
|
|
109
|
+
}, ut = (i) => {
|
|
110
|
+
t.listen(i, "keydown", (d) => {
|
|
111
111
|
if (d.key === "Enter") {
|
|
112
112
|
p && p.show(), l.totalItems = 0, e.querySelector("cds-table-body").replaceChildren();
|
|
113
113
|
const v = {
|
|
114
|
-
search:
|
|
114
|
+
search: i.value || "",
|
|
115
115
|
offset: 0
|
|
116
116
|
};
|
|
117
117
|
c.fetchData(v).then(() => {
|
|
@@ -119,8 +119,8 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
119
119
|
});
|
|
120
120
|
}
|
|
121
121
|
});
|
|
122
|
-
},
|
|
123
|
-
t.listen(
|
|
122
|
+
}, mt = (i) => {
|
|
123
|
+
t.listen(i, s.eventSearchInput, (d) => {
|
|
124
124
|
if ((d.detail.value || "") === "") {
|
|
125
125
|
const v = {
|
|
126
126
|
search: "",
|
|
@@ -131,9 +131,9 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
133
|
});
|
|
134
|
-
},
|
|
135
|
-
|
|
136
|
-
const d =
|
|
134
|
+
}, ht = (i) => {
|
|
135
|
+
i.caret = !1;
|
|
136
|
+
const d = i.querySelector("cds-icon-button, button:not([slot])"), v = i.querySelectorAll("cds-checkbox"), u = i.querySelectorAll("cds-modal-footer-button"), g = [...i.querySelectorAll("cds-checkbox-group")].map(r).map(_.pathOr("noop", [
|
|
137
137
|
"zoo",
|
|
138
138
|
"filter",
|
|
139
139
|
"field"
|
|
@@ -143,8 +143,8 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
143
143
|
return;
|
|
144
144
|
}
|
|
145
145
|
new MutationObserver(() => {
|
|
146
|
-
|
|
147
|
-
}).observe(
|
|
146
|
+
i.classList.toggle("cds--overflow-menu--open", i.open);
|
|
147
|
+
}).observe(i, {
|
|
148
148
|
attributes: !0,
|
|
149
149
|
attributeFilter: ["open"]
|
|
150
150
|
});
|
|
@@ -153,29 +153,29 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
153
153
|
return v.forEach((E) => {
|
|
154
154
|
const w = E.getAttribute("id");
|
|
155
155
|
if (!w || !w.includes(":")) return;
|
|
156
|
-
const [
|
|
157
|
-
f.has(
|
|
156
|
+
const [N, M] = w.split(":");
|
|
157
|
+
f.has(N) || f.set(N, []), E.checked && f.get(N).push(M);
|
|
158
158
|
}), f;
|
|
159
159
|
};
|
|
160
160
|
if (y.has(b)) {
|
|
161
161
|
const f = (E) => E.checked = !1;
|
|
162
162
|
t.listen(y.get(b), "click", (E) => {
|
|
163
163
|
E.stopPropagation(), v.forEach(f), p && p.show(), c.fetchData(g).then(() => {
|
|
164
|
-
l && l.setData(c), p && p.hide(),
|
|
164
|
+
l && l.setData(c), p && p.hide(), i.open = !1;
|
|
165
165
|
});
|
|
166
166
|
});
|
|
167
167
|
}
|
|
168
168
|
y.has(P) && t.listen(y.get(P), "click", (f) => {
|
|
169
169
|
f.stopPropagation();
|
|
170
|
-
const E = [...A()].reduce((w, [
|
|
170
|
+
const E = [...A()].reduce((w, [N, M]) => (w[N] = Array.isArray(M) && M.length === 0 ? null : M, w), { offset: 0 });
|
|
171
171
|
p && p.show(), c.fetchData(E).then(() => {
|
|
172
|
-
l && l.setData(c), p && p.hide(),
|
|
172
|
+
l && l.setData(c), p && p.hide(), i.open = !1;
|
|
173
173
|
});
|
|
174
174
|
}), t.listen(d, "click", (f) => {
|
|
175
|
-
f.stopPropagation(),
|
|
175
|
+
f.stopPropagation(), i.open = !i.open, i.classList.toggle("cds--overflow-menu--open", i.open);
|
|
176
176
|
});
|
|
177
|
-
},
|
|
178
|
-
t.listen(l, o.eventPageSizeChanged, (
|
|
177
|
+
}, gt = () => {
|
|
178
|
+
t.listen(l, o.eventPageSizeChanged, (i) => {
|
|
179
179
|
const d = {
|
|
180
180
|
limit: l.pageSize,
|
|
181
181
|
offset: 0
|
|
@@ -184,12 +184,12 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
184
184
|
l.setData(c);
|
|
185
185
|
});
|
|
186
186
|
});
|
|
187
|
-
},
|
|
188
|
-
let
|
|
187
|
+
}, ft = () => {
|
|
188
|
+
let i = null;
|
|
189
189
|
t.listen(l, o.eventChangeCurrent, (d) => {
|
|
190
190
|
const { page: v } = d.detail, u = l.pageSize, g = (v - 1) * u;
|
|
191
|
-
if (g !==
|
|
192
|
-
|
|
191
|
+
if (g !== i) {
|
|
192
|
+
i = g;
|
|
193
193
|
const b = {
|
|
194
194
|
limit: u,
|
|
195
195
|
offset: g
|
|
@@ -200,28 +200,28 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
200
200
|
}
|
|
201
201
|
});
|
|
202
202
|
};
|
|
203
|
-
c && l && (
|
|
203
|
+
c && l && (gt(), ft()), c && S && (ut(S), mt(S));
|
|
204
204
|
const Z = e.querySelector(s.selectorTableToolbarContent);
|
|
205
205
|
if (Z) {
|
|
206
|
-
const
|
|
207
|
-
c &&
|
|
206
|
+
const i = Z.querySelectorAll("cds-popover[data-batch-filter]");
|
|
207
|
+
c && i && i.forEach(ht);
|
|
208
208
|
}
|
|
209
|
-
e.isSelectable && (
|
|
209
|
+
e.isSelectable && (dt(), pt(), I && vt(I)), c && nt && lt();
|
|
210
210
|
const J = { zoo: { event: {
|
|
211
211
|
row: {
|
|
212
|
-
click:
|
|
213
|
-
expand:
|
|
212
|
+
click: ot,
|
|
213
|
+
expand: at,
|
|
214
214
|
check: {
|
|
215
|
-
one:
|
|
216
|
-
all:
|
|
215
|
+
one: it,
|
|
216
|
+
all: rt
|
|
217
217
|
}
|
|
218
218
|
},
|
|
219
|
-
column: { sort:
|
|
219
|
+
column: { sort: ct }
|
|
220
220
|
} } };
|
|
221
|
-
|
|
222
|
-
_.hasPath(
|
|
221
|
+
St(n).forEach(([i, d]) => {
|
|
222
|
+
_.hasPath(i, J) && _.path(i, J)(d);
|
|
223
223
|
});
|
|
224
|
-
},
|
|
224
|
+
}, kt = (t) => {
|
|
225
225
|
const e = document.createElement("cds-pagination");
|
|
226
226
|
return e.backwardText = "Previous page", e.forwardText = "Next page", e.itemsPerPageText = "Items per page:", e.pageSize = t.limit, e.size = "lg", [
|
|
227
227
|
10,
|
|
@@ -238,7 +238,7 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
238
238
|
e.pagesUnknown = Math.ceil(s / n.limit) > 100, e.totalItems = s, e.pagesUnknown ? e.formatStatusWithIndeterminateTotal = ({ start: o, end: a }) => `${o}–${a} of ${s} item${s <= 1 ? "" : "s"}` : delete e.formatStatusWithIndeterminateTotal;
|
|
239
239
|
}
|
|
240
240
|
}, e;
|
|
241
|
-
},
|
|
241
|
+
}, Ct = (t) => {
|
|
242
242
|
if (!t.parentNode) {
|
|
243
243
|
console.error("[Carbon Table] Cannot create skeleton: table has no parent node");
|
|
244
244
|
return;
|
|
@@ -247,24 +247,24 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
247
247
|
l.showHeader = e || n, l.showToolbar = s, l.zebra = a, l.columnCount = o, l.size = c, l.show = () => l.classList.remove("hidden"), l.hide = () => l.classList.add("hidden");
|
|
248
248
|
const p = document.createElement("div");
|
|
249
249
|
return p.classList.add("zoo-datatable-skeleton-wrapper"), t.parentNode.insertBefore(p, t), p.appendChild(l), p.appendChild(t), l;
|
|
250
|
-
},
|
|
250
|
+
}, yt = (t, e) => {
|
|
251
251
|
const n = e.getAttribute("zoo-url-api"), s = parseInt(e.getAttribute("data-page-size") || 25, 10);
|
|
252
|
-
if (n) return new
|
|
253
|
-
},
|
|
252
|
+
if (n) return new Et(t, n, e, { urlParams: { limit: s } });
|
|
253
|
+
}, At = {
|
|
254
254
|
selector: "cds-table",
|
|
255
255
|
init: function(t) {
|
|
256
|
-
const e =
|
|
257
|
-
if (
|
|
256
|
+
const e = r(t), n = this, s = yt(n, t);
|
|
257
|
+
if (Wt(s)) {
|
|
258
258
|
t.dataBinder = s;
|
|
259
|
-
const o =
|
|
259
|
+
const o = Ct(t);
|
|
260
260
|
t.skeleton = o;
|
|
261
|
-
const a =
|
|
261
|
+
const a = kt(s);
|
|
262
262
|
t.pagination = a, t.after(a), s.fetchData().then((c) => {
|
|
263
263
|
o.hide(), a.setData(s), K(n, t, e);
|
|
264
264
|
});
|
|
265
265
|
} else K(n, t, e);
|
|
266
266
|
}
|
|
267
|
-
},
|
|
267
|
+
}, wt = /* @__PURE__ */ h({ cdsPaginationWrap: () => Dt }), Dt = {
|
|
268
268
|
selector: "cds-pagination",
|
|
269
269
|
init: function(t) {
|
|
270
270
|
const e = this, n = customElements.get("cds-pagination");
|
|
@@ -285,20 +285,20 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
285
285
|
} });
|
|
286
286
|
});
|
|
287
287
|
}
|
|
288
|
-
},
|
|
289
|
-
cdsModalBodyContentWrap: () =>
|
|
290
|
-
cdsModalBodyWrap: () =>
|
|
291
|
-
cdsModalCloseButWrap: () =>
|
|
292
|
-
cdsModalFooterButWrap: () =>
|
|
293
|
-
cdsModalFooterWrap: () =>
|
|
294
|
-
cdsModalHeaderWrap: () =>
|
|
295
|
-
cdsModalHeadingWrap: () =>
|
|
296
|
-
cdsModalLabelWrap: () =>
|
|
297
|
-
cdsModalWrap: () =>
|
|
298
|
-
}),
|
|
288
|
+
}, xt = /* @__PURE__ */ h({
|
|
289
|
+
cdsModalBodyContentWrap: () => Ft,
|
|
290
|
+
cdsModalBodyWrap: () => Ot,
|
|
291
|
+
cdsModalCloseButWrap: () => Tt,
|
|
292
|
+
cdsModalFooterButWrap: () => zt,
|
|
293
|
+
cdsModalFooterWrap: () => Rt,
|
|
294
|
+
cdsModalHeaderWrap: () => Nt,
|
|
295
|
+
cdsModalHeadingWrap: () => Mt,
|
|
296
|
+
cdsModalLabelWrap: () => _t,
|
|
297
|
+
cdsModalWrap: () => Bt
|
|
298
|
+
}), Bt = {
|
|
299
299
|
selector: "cds-modal",
|
|
300
300
|
init: function(t) {
|
|
301
|
-
const e = customElements.get("cds-modal"), n =
|
|
301
|
+
const e = customElements.get("cds-modal"), n = r(t), s = W(t, "open-event", "event");
|
|
302
302
|
s && this.listen(t, "cds-modal-beingopened", (c) => {
|
|
303
303
|
this.dispatchPanelEvent(s, {
|
|
304
304
|
...n,
|
|
@@ -327,10 +327,10 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
327
327
|
});
|
|
328
328
|
});
|
|
329
329
|
}
|
|
330
|
-
},
|
|
330
|
+
}, Nt = { selector: "cds-modal-header" }, Mt = { selector: "cds-modal-heading" }, _t = { selector: "cds-modal-label" }, Tt = { selector: "cds-modal-close-button" }, Ot = { selector: "cds-modal-body" }, Ft = { selector: "cds-modal-body-content" }, Rt = { selector: "cds-modal-footer" }, zt = {
|
|
331
331
|
selector: "cds-modal-footer-button",
|
|
332
332
|
init: function(t) {
|
|
333
|
-
const e =
|
|
333
|
+
const e = r(t);
|
|
334
334
|
if (t.getAttribute("type") === "submit") {
|
|
335
335
|
this.listen(t, "click", (s) => {
|
|
336
336
|
let o = t.closest("form");
|
|
@@ -347,13 +347,13 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
347
347
|
s.stopPropagation(), this.dispatchPanelEvent(n, e);
|
|
348
348
|
});
|
|
349
349
|
}
|
|
350
|
-
},
|
|
351
|
-
cdsMenuButtonWrap: () =>
|
|
352
|
-
cdsMenuWrap: () =>
|
|
353
|
-
}),
|
|
350
|
+
}, qt = /* @__PURE__ */ h({
|
|
351
|
+
cdsMenuButtonWrap: () => Ht,
|
|
352
|
+
cdsMenuWrap: () => Lt
|
|
353
|
+
}), Lt = {
|
|
354
354
|
selector: "cds-menu",
|
|
355
355
|
init: function(t) {
|
|
356
|
-
const e =
|
|
356
|
+
const e = r(t), n = W(t, "open-event");
|
|
357
357
|
n && this.listen(t, "cds-menu-opened", (o) => {
|
|
358
358
|
this.dispatchPanelEvent(n, {
|
|
359
359
|
...e,
|
|
@@ -368,14 +368,14 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
368
368
|
});
|
|
369
369
|
}), this.listen(t, "click", (o) => {
|
|
370
370
|
if (o.target.tagName === "CDS-MENU-ITEM") {
|
|
371
|
-
const a =
|
|
371
|
+
const a = r(o.target), c = a.event || e.event;
|
|
372
372
|
c && (o.stopPropagation(), this.dispatchPanelEvent(c, {
|
|
373
373
|
...e,
|
|
374
374
|
...a
|
|
375
375
|
}));
|
|
376
376
|
}
|
|
377
377
|
}), this.listen(t, "cds-item-changed", (o) => {
|
|
378
|
-
const a = o.detail.triggeredBy, c =
|
|
378
|
+
const a = o.detail.triggeredBy, c = r(a), l = c.event || e.event;
|
|
379
379
|
l && this.dispatchPanelEvent(l, {
|
|
380
380
|
...e,
|
|
381
381
|
...c,
|
|
@@ -383,13 +383,13 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
383
383
|
});
|
|
384
384
|
});
|
|
385
385
|
}
|
|
386
|
-
},
|
|
386
|
+
}, Ht = {
|
|
387
387
|
selector: "cds-menu-button",
|
|
388
388
|
init: function(t) {
|
|
389
|
-
const e =
|
|
389
|
+
const e = r(t), n = t.querySelector("cds-menu");
|
|
390
390
|
n && this.listen(n, "click", (s) => {
|
|
391
391
|
if (s.target.tagName === "CDS-MENU-ITEM") {
|
|
392
|
-
const o =
|
|
392
|
+
const o = r(s.target), a = o.event || e.event;
|
|
393
393
|
a && (s.stopPropagation(), this.dispatchPanelEvent(a, {
|
|
394
394
|
...e,
|
|
395
395
|
...o
|
|
@@ -397,17 +397,17 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
397
397
|
}
|
|
398
398
|
});
|
|
399
399
|
}
|
|
400
|
-
},
|
|
401
|
-
cdsButFabWrap: () =>
|
|
402
|
-
cdsButtonWrap: () =>
|
|
403
|
-
cdsComboButWrap: () =>
|
|
404
|
-
cdsCopyButWrap: () =>
|
|
400
|
+
}, Ut = /* @__PURE__ */ h({
|
|
401
|
+
cdsButFabWrap: () => Vt,
|
|
402
|
+
cdsButtonWrap: () => jt,
|
|
403
|
+
cdsComboButWrap: () => Jt,
|
|
404
|
+
cdsCopyButWrap: () => Zt,
|
|
405
405
|
cdsIconButToggleWrap: () => $t,
|
|
406
|
-
cdsIconButWrap: () =>
|
|
407
|
-
}),
|
|
406
|
+
cdsIconButWrap: () => Gt
|
|
407
|
+
}), jt = {
|
|
408
408
|
selector: "cds-button",
|
|
409
409
|
init: function(t) {
|
|
410
|
-
const e =
|
|
410
|
+
const e = r(t);
|
|
411
411
|
if (t.getAttribute("type") === "submit") {
|
|
412
412
|
this.listen(t, "click", (s) => {
|
|
413
413
|
let o = t.closest("form");
|
|
@@ -421,17 +421,17 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
421
421
|
}
|
|
422
422
|
const n = e.event;
|
|
423
423
|
n && this.listen(t, "click", (s) => {
|
|
424
|
-
s.stopPropagation(), this.dispatchPanelEvent(n,
|
|
424
|
+
s.stopPropagation(), this.dispatchPanelEvent(n, r(t));
|
|
425
425
|
});
|
|
426
426
|
}
|
|
427
|
-
},
|
|
427
|
+
}, Gt = {
|
|
428
428
|
selector: "cds-icon-button:not([data-toggle])",
|
|
429
429
|
event: "click",
|
|
430
430
|
getData: (t, e) => e
|
|
431
431
|
}, $t = {
|
|
432
432
|
selector: "cds-icon-button[data-toggle]",
|
|
433
433
|
init: function(t) {
|
|
434
|
-
const e =
|
|
434
|
+
const e = r(t);
|
|
435
435
|
e.event && this.listen(t, "click", (n) => {
|
|
436
436
|
n.stopPropagation(), t.isSelected = !t.isSelected, this.dispatchPanelEvent(e.event, {
|
|
437
437
|
...e,
|
|
@@ -439,14 +439,14 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
439
439
|
});
|
|
440
440
|
});
|
|
441
441
|
}
|
|
442
|
-
},
|
|
442
|
+
}, Vt = {
|
|
443
443
|
selector: "cds-button[data-fab]",
|
|
444
444
|
event: "click",
|
|
445
445
|
getData: (t, e) => e
|
|
446
|
-
},
|
|
446
|
+
}, Zt = {
|
|
447
447
|
selector: "cds-copy-button",
|
|
448
448
|
init: function(t) {
|
|
449
|
-
const e =
|
|
449
|
+
const e = r(t), n = e.event;
|
|
450
450
|
n && this.listen(t, "click", (o) => {
|
|
451
451
|
o.stopPropagation(), this.dispatchPanelEvent(n, {
|
|
452
452
|
...e,
|
|
@@ -467,10 +467,10 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
467
467
|
}), t._copyObserver = o;
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
|
-
},
|
|
470
|
+
}, Jt = {
|
|
471
471
|
selector: "cds-combo-button",
|
|
472
472
|
init: function(t) {
|
|
473
|
-
const e =
|
|
473
|
+
const e = r(t);
|
|
474
474
|
e.event && this.listen(t, "click", (s) => {
|
|
475
475
|
const o = s.composedPath(), a = o.some((l) => l.tagName === "CDS-MENU-ITEM"), c = o.some((l) => l.tagName === "CDS-ICON-BUTTON");
|
|
476
476
|
!a && !c && (s.stopPropagation(), this.dispatchPanelEvent(e.event, {
|
|
@@ -481,7 +481,7 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
481
481
|
const n = t.querySelector("cds-menu");
|
|
482
482
|
n && this.listen(n, "click", (s) => {
|
|
483
483
|
if (s.target.tagName === "CDS-MENU-ITEM") {
|
|
484
|
-
const o =
|
|
484
|
+
const o = r(s.target), a = o.event || W(t, "menu-event", "event");
|
|
485
485
|
a && this.dispatchPanelEvent(a, {
|
|
486
486
|
...e,
|
|
487
487
|
...o,
|
|
@@ -490,14 +490,14 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
490
490
|
}
|
|
491
491
|
});
|
|
492
492
|
}
|
|
493
|
-
},
|
|
494
|
-
cdsComboBoxWrap: () =>
|
|
495
|
-
cdsDropdownWrap: () =>
|
|
496
|
-
cdsMultiSelectWrap: () =>
|
|
497
|
-
}),
|
|
493
|
+
}, Kt = /* @__PURE__ */ h({
|
|
494
|
+
cdsComboBoxWrap: () => Xt,
|
|
495
|
+
cdsDropdownWrap: () => Qt,
|
|
496
|
+
cdsMultiSelectWrap: () => Yt
|
|
497
|
+
}), Qt = {
|
|
498
498
|
selector: "cds-dropdown",
|
|
499
499
|
init: function(t) {
|
|
500
|
-
const e = customElements.get("cds-dropdown"), n =
|
|
500
|
+
const e = customElements.get("cds-dropdown"), n = r(t), s = n.event;
|
|
501
501
|
s && this.listen(t, e.eventSelect, (a) => {
|
|
502
502
|
this.dispatchPanelEvent(s, {
|
|
503
503
|
...n,
|
|
@@ -514,10 +514,10 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
514
514
|
});
|
|
515
515
|
});
|
|
516
516
|
}
|
|
517
|
-
},
|
|
517
|
+
}, Xt = {
|
|
518
518
|
selector: "cds-combo-box",
|
|
519
519
|
init: function(t) {
|
|
520
|
-
const e = customElements.get("cds-combo-box"), n =
|
|
520
|
+
const e = customElements.get("cds-combo-box"), n = r(t), s = n.event;
|
|
521
521
|
s && this.listen(t, e.eventSelect, (a) => {
|
|
522
522
|
const c = a.detail?.item;
|
|
523
523
|
this.dispatchPanelEvent(s, {
|
|
@@ -535,10 +535,10 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
535
535
|
});
|
|
536
536
|
});
|
|
537
537
|
}
|
|
538
|
-
},
|
|
538
|
+
}, Yt = {
|
|
539
539
|
selector: "cds-multi-select",
|
|
540
540
|
init: function(t) {
|
|
541
|
-
const e = customElements.get("cds-multi-select"), n =
|
|
541
|
+
const e = customElements.get("cds-multi-select"), n = r(t), s = n.event;
|
|
542
542
|
s && this.listen(t, e.eventSelect, (a) => {
|
|
543
543
|
const c = t.value ? t.value.split(",") : [];
|
|
544
544
|
this.dispatchPanelEvent(s, {
|
|
@@ -554,21 +554,21 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
554
554
|
});
|
|
555
555
|
});
|
|
556
556
|
}
|
|
557
|
-
},
|
|
558
|
-
cdsDatePickerWrap: () =>
|
|
559
|
-
cdsTimePickerWrap: () =>
|
|
560
|
-
}),
|
|
557
|
+
}, te = /* @__PURE__ */ h({
|
|
558
|
+
cdsDatePickerWrap: () => ee,
|
|
559
|
+
cdsTimePickerWrap: () => se
|
|
560
|
+
}), ee = {
|
|
561
561
|
selector: "cds-date-picker",
|
|
562
562
|
init: function(t) {
|
|
563
|
-
const e = customElements.get("cds-date-picker"), n =
|
|
563
|
+
const e = customElements.get("cds-date-picker"), n = r(t), s = t.querySelector('cds-date-picker-input[kind="from"]'), o = t.querySelector('cds-date-picker-input[kind="to"]'), a = s && o, c = n.event;
|
|
564
564
|
c && this.listen(t, e.eventChange, (p) => {
|
|
565
|
-
let
|
|
566
|
-
a ?
|
|
565
|
+
let S;
|
|
566
|
+
a ? S = {
|
|
567
567
|
from: s.value || "",
|
|
568
568
|
to: o.value || ""
|
|
569
|
-
} :
|
|
569
|
+
} : S = t.value, this.dispatchPanelEvent(c, {
|
|
570
570
|
...n,
|
|
571
|
-
value:
|
|
571
|
+
value: S
|
|
572
572
|
});
|
|
573
573
|
});
|
|
574
574
|
const l = t.getAttribute("error-event");
|
|
@@ -579,17 +579,17 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
579
579
|
});
|
|
580
580
|
});
|
|
581
581
|
}
|
|
582
|
-
},
|
|
582
|
+
}, se = {
|
|
583
583
|
selector: "cds-time-picker",
|
|
584
584
|
event: "cds-time-picker-changed",
|
|
585
585
|
getData: (t, e, n) => ({
|
|
586
586
|
...e,
|
|
587
587
|
value: n.value
|
|
588
588
|
})
|
|
589
|
-
},
|
|
589
|
+
}, ne = /* @__PURE__ */ h({ cdsFileUploaderWrap: () => oe }), oe = {
|
|
590
590
|
selector: "cds-file-uploader",
|
|
591
591
|
init: function(t) {
|
|
592
|
-
const e =
|
|
592
|
+
const e = r(t), n = e.event;
|
|
593
593
|
if (n) {
|
|
594
594
|
const o = t.querySelector('input[type="file"]');
|
|
595
595
|
o && this.listen(o, "change", (a) => {
|
|
@@ -608,14 +608,14 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
608
608
|
});
|
|
609
609
|
});
|
|
610
610
|
}
|
|
611
|
-
},
|
|
612
|
-
cdsAccordionWrap: () =>
|
|
613
|
-
cdsContentSwitcherWrap: () =>
|
|
614
|
-
cdsTabsWrap: () =>
|
|
615
|
-
}),
|
|
611
|
+
}, ae = /* @__PURE__ */ h({
|
|
612
|
+
cdsAccordionWrap: () => re,
|
|
613
|
+
cdsContentSwitcherWrap: () => ie,
|
|
614
|
+
cdsTabsWrap: () => ce
|
|
615
|
+
}), ce = {
|
|
616
616
|
selector: "cds-tabs",
|
|
617
617
|
init: function(t) {
|
|
618
|
-
const e = customElements.get("cds-tabs"), n =
|
|
618
|
+
const e = customElements.get("cds-tabs"), n = r(t), s = t.getAttribute("before-select-event");
|
|
619
619
|
s && this.listen(t, e.eventBeforeSelect, (a) => {
|
|
620
620
|
this.dispatchPanelEvent(s, {
|
|
621
621
|
...n,
|
|
@@ -625,7 +625,7 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
625
625
|
});
|
|
626
626
|
const o = n.event;
|
|
627
627
|
o && this.listen(t, e.eventSelect, (a) => {
|
|
628
|
-
const c = a.detail.item, l =
|
|
628
|
+
const c = a.detail.item, l = r(c);
|
|
629
629
|
this.dispatchPanelEvent(o, {
|
|
630
630
|
...n,
|
|
631
631
|
...l,
|
|
@@ -633,12 +633,12 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
633
633
|
});
|
|
634
634
|
});
|
|
635
635
|
}
|
|
636
|
-
},
|
|
636
|
+
}, re = {
|
|
637
637
|
selector: "cds-accordion",
|
|
638
638
|
init: function(t) {
|
|
639
|
-
const e = customElements.get("cds-accordion-item"), n =
|
|
639
|
+
const e = customElements.get("cds-accordion-item"), n = r(t);
|
|
640
640
|
[...t.querySelectorAll("cds-accordion-item")].forEach((s) => {
|
|
641
|
-
const o =
|
|
641
|
+
const o = r(s), a = o.event || n.event;
|
|
642
642
|
a && this.listen(s, e.eventToggle, (c) => {
|
|
643
643
|
this.dispatchPanelEvent(a, {
|
|
644
644
|
...n,
|
|
@@ -648,10 +648,10 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
648
648
|
});
|
|
649
649
|
});
|
|
650
650
|
}
|
|
651
|
-
},
|
|
651
|
+
}, ie = {
|
|
652
652
|
selector: "cds-content-switcher",
|
|
653
653
|
init: function(t) {
|
|
654
|
-
const e = customElements.get("cds-content-switcher"), n =
|
|
654
|
+
const e = customElements.get("cds-content-switcher"), n = r(t), s = t.getAttribute("before-select-event");
|
|
655
655
|
s && this.listen(t, e.eventBeforeSelect, (a) => {
|
|
656
656
|
this.dispatchPanelEvent(s, {
|
|
657
657
|
...n,
|
|
@@ -661,7 +661,7 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
661
661
|
});
|
|
662
662
|
const o = n.event;
|
|
663
663
|
o && this.listen(t, e.eventSelect, (a) => {
|
|
664
|
-
const c = a.detail.item, l =
|
|
664
|
+
const c = a.detail.item, l = r(c);
|
|
665
665
|
this.dispatchPanelEvent(o, {
|
|
666
666
|
...n,
|
|
667
667
|
...l,
|
|
@@ -669,21 +669,21 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
669
669
|
});
|
|
670
670
|
});
|
|
671
671
|
}
|
|
672
|
-
},
|
|
673
|
-
cdsBreadCrumbWrap: () =>
|
|
674
|
-
cdsBreadcrumbItemWrap: () =>
|
|
675
|
-
cdsBreadcrumbLinkWrap: () =>
|
|
676
|
-
}),
|
|
672
|
+
}, le = /* @__PURE__ */ h({
|
|
673
|
+
cdsBreadCrumbWrap: () => ve,
|
|
674
|
+
cdsBreadcrumbItemWrap: () => de,
|
|
675
|
+
cdsBreadcrumbLinkWrap: () => pe
|
|
676
|
+
}), de = { selector: "cds-breadcrumb-item" }, pe = {
|
|
677
677
|
selector: "cds-breadcrumb-link",
|
|
678
678
|
event: "click",
|
|
679
679
|
getData: (t, e, n) => (t.preventDefault(), {
|
|
680
680
|
...e,
|
|
681
681
|
href: n.getAttribute("href")
|
|
682
682
|
})
|
|
683
|
-
},
|
|
683
|
+
}, ve = {
|
|
684
684
|
selector: "cds-breadcrumb",
|
|
685
685
|
init: function(t) {
|
|
686
|
-
const e = this, n =
|
|
686
|
+
const e = this, n = r(t), s = n.event;
|
|
687
687
|
if (s) {
|
|
688
688
|
const o = (c) => {
|
|
689
689
|
e.dispatchPanelEvent(s, {
|
|
@@ -693,21 +693,21 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
693
693
|
};
|
|
694
694
|
e.listen(t, "click", (c) => {
|
|
695
695
|
const l = c.target.closest("cds-breadcrumb-link");
|
|
696
|
-
l && (c.preventDefault(), c.stopPropagation(), o(
|
|
696
|
+
l && (c.preventDefault(), c.stopPropagation(), o(r(l)));
|
|
697
697
|
});
|
|
698
698
|
const a = t.querySelector("cds-overflow-menu-body");
|
|
699
699
|
a && e.listen(a, "cds-overflow-menu-item-clicked", (c) => {
|
|
700
|
-
c.stopPropagation(), o(
|
|
700
|
+
c.stopPropagation(), o(r(c.target));
|
|
701
701
|
});
|
|
702
702
|
}
|
|
703
703
|
}
|
|
704
|
-
},
|
|
705
|
-
cdsNumberInputWrap: () =>
|
|
706
|
-
cdsPasswordInputWrap: () =>
|
|
707
|
-
cdsSearchWrap: () =>
|
|
708
|
-
cdsTextAreaWrap: () =>
|
|
709
|
-
cdsTextInputWrap: () =>
|
|
710
|
-
}),
|
|
704
|
+
}, ue = /* @__PURE__ */ h({
|
|
705
|
+
cdsNumberInputWrap: () => ge,
|
|
706
|
+
cdsPasswordInputWrap: () => fe,
|
|
707
|
+
cdsSearchWrap: () => be,
|
|
708
|
+
cdsTextAreaWrap: () => he,
|
|
709
|
+
cdsTextInputWrap: () => me
|
|
710
|
+
}), me = {
|
|
711
711
|
selector: "cds-text-input",
|
|
712
712
|
multiEvent: !0,
|
|
713
713
|
events: [{
|
|
@@ -725,7 +725,7 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
725
725
|
value: t.currentTarget.value
|
|
726
726
|
})
|
|
727
727
|
}]
|
|
728
|
-
},
|
|
728
|
+
}, he = {
|
|
729
729
|
selector: "cds-textarea",
|
|
730
730
|
multiEvent: !0,
|
|
731
731
|
events: [{
|
|
@@ -743,7 +743,7 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
743
743
|
value: t.currentTarget.value
|
|
744
744
|
})
|
|
745
745
|
}]
|
|
746
|
-
},
|
|
746
|
+
}, ge = {
|
|
747
747
|
selector: "cds-number-input",
|
|
748
748
|
event: "cds-number-input",
|
|
749
749
|
getData: (t, e, n) => ({
|
|
@@ -751,7 +751,7 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
751
751
|
value: t.detail.value,
|
|
752
752
|
direction: t.detail.direction
|
|
753
753
|
})
|
|
754
|
-
},
|
|
754
|
+
}, fe = {
|
|
755
755
|
selector: "cds-password-input",
|
|
756
756
|
multiEvent: !0,
|
|
757
757
|
events: [{
|
|
@@ -769,20 +769,20 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
769
769
|
value: t.currentTarget.value
|
|
770
770
|
})
|
|
771
771
|
}]
|
|
772
|
-
},
|
|
772
|
+
}, be = {
|
|
773
773
|
selector: "cds-search",
|
|
774
774
|
event: "cds-search-input",
|
|
775
775
|
getData: (t, e, n) => ({
|
|
776
776
|
...e,
|
|
777
777
|
value: n.value
|
|
778
778
|
})
|
|
779
|
-
},
|
|
780
|
-
cdsCheckboxWrap: () =>
|
|
781
|
-
cdsRadioButGroupWrap: () =>
|
|
782
|
-
cdsSelectWrap: () =>
|
|
783
|
-
cdsSliderWrap: () =>
|
|
779
|
+
}, Ee = /* @__PURE__ */ h({
|
|
780
|
+
cdsCheckboxWrap: () => We,
|
|
781
|
+
cdsRadioButGroupWrap: () => Se,
|
|
782
|
+
cdsSelectWrap: () => Pe,
|
|
783
|
+
cdsSliderWrap: () => ke,
|
|
784
784
|
cdsToggleWrap: () => Ie
|
|
785
|
-
}),
|
|
785
|
+
}), We = {
|
|
786
786
|
selector: "cds-checkbox",
|
|
787
787
|
event: "cds-checkbox-changed",
|
|
788
788
|
getData: (t, e, n) => ({
|
|
@@ -790,7 +790,7 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
790
790
|
checked: t.detail.checked,
|
|
791
791
|
value: n.value
|
|
792
792
|
})
|
|
793
|
-
},
|
|
793
|
+
}, Se = {
|
|
794
794
|
selector: "cds-radio-button-group",
|
|
795
795
|
event: "cds-radio-button-group-changed",
|
|
796
796
|
getData: (t, e) => ({
|
|
@@ -805,17 +805,17 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
805
805
|
isOn: t.detail.checked,
|
|
806
806
|
value: t.detail.checked
|
|
807
807
|
})
|
|
808
|
-
},
|
|
808
|
+
}, Pe = {
|
|
809
809
|
selector: "cds-select",
|
|
810
810
|
event: "cds-select-selected",
|
|
811
811
|
getData: (t, e) => ({
|
|
812
812
|
...e,
|
|
813
813
|
value: t.detail.value
|
|
814
814
|
})
|
|
815
|
-
},
|
|
815
|
+
}, ke = {
|
|
816
816
|
selector: "cds-slider",
|
|
817
817
|
init: function(t) {
|
|
818
|
-
const e =
|
|
818
|
+
const e = r(t), n = e.event;
|
|
819
819
|
n && this.listen(t, "cds-slider-changed", (o) => {
|
|
820
820
|
this.dispatchPanelEvent(n, {
|
|
821
821
|
...e,
|
|
@@ -830,18 +830,18 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
830
830
|
});
|
|
831
831
|
});
|
|
832
832
|
}
|
|
833
|
-
},
|
|
834
|
-
cdsFilterTagWrap: () =>
|
|
835
|
-
cdsSDismissibleTagWrap: () =>
|
|
836
|
-
cdsTagsWrap: () =>
|
|
837
|
-
}),
|
|
833
|
+
}, Ce = /* @__PURE__ */ h({
|
|
834
|
+
cdsFilterTagWrap: () => we,
|
|
835
|
+
cdsSDismissibleTagWrap: () => Ae,
|
|
836
|
+
cdsTagsWrap: () => ye
|
|
837
|
+
}), ye = {
|
|
838
838
|
selector: "cds-tag",
|
|
839
839
|
event: "click",
|
|
840
840
|
getData: (t, e) => e
|
|
841
|
-
},
|
|
841
|
+
}, Ae = {
|
|
842
842
|
selector: "cds-dismissible-tag",
|
|
843
843
|
init: function(t) {
|
|
844
|
-
const e =
|
|
844
|
+
const e = r(t), n = t.getAttribute("click-event");
|
|
845
845
|
n && this.listen(t, "click", (o) => {
|
|
846
846
|
o.target.closest("button") || this.dispatchPanelEvent(n, { ...e });
|
|
847
847
|
});
|
|
@@ -853,39 +853,39 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
853
853
|
});
|
|
854
854
|
});
|
|
855
855
|
}
|
|
856
|
-
},
|
|
856
|
+
}, we = {
|
|
857
857
|
selector: "cds-filter-tag",
|
|
858
858
|
event: "cds-filter-tag-closed",
|
|
859
859
|
getData: (t, e) => ({
|
|
860
860
|
...e,
|
|
861
861
|
action: "remove"
|
|
862
862
|
})
|
|
863
|
-
},
|
|
864
|
-
cdsContainedListDescriptionWrap: () =>
|
|
865
|
-
cdsContainedListItemWrap: () =>
|
|
866
|
-
cdsContainedListWrap: () =>
|
|
867
|
-
cdsOverflowMenuWrap: () =>
|
|
868
|
-
cdsStructuredListWrap: () =>
|
|
869
|
-
cdsTreeViewWrap: () =>
|
|
870
|
-
}),
|
|
863
|
+
}, De = /* @__PURE__ */ h({
|
|
864
|
+
cdsContainedListDescriptionWrap: () => Me,
|
|
865
|
+
cdsContainedListItemWrap: () => _e,
|
|
866
|
+
cdsContainedListWrap: () => Ne,
|
|
867
|
+
cdsOverflowMenuWrap: () => xe,
|
|
868
|
+
cdsStructuredListWrap: () => Be,
|
|
869
|
+
cdsTreeViewWrap: () => Te
|
|
870
|
+
}), xe = {
|
|
871
871
|
selector: "cds-overflow-menu",
|
|
872
872
|
init: function(t) {
|
|
873
|
-
const e =
|
|
873
|
+
const e = r(t), n = e.event, s = t.querySelector("cds-overflow-menu-body");
|
|
874
874
|
n && s && this.listen(s, "cds-overflow-menu-item-clicked", (o) => {
|
|
875
875
|
o.stopPropagation();
|
|
876
|
-
const a =
|
|
876
|
+
const a = r(o.target);
|
|
877
877
|
this.dispatchPanelEvent(n, {
|
|
878
878
|
...e,
|
|
879
879
|
...a
|
|
880
880
|
});
|
|
881
881
|
});
|
|
882
882
|
}
|
|
883
|
-
},
|
|
883
|
+
}, Be = {
|
|
884
884
|
selector: "cds-structured-list",
|
|
885
885
|
init: function(t) {
|
|
886
|
-
const e =
|
|
886
|
+
const e = r(t);
|
|
887
887
|
[...t.querySelectorAll("cds-structured-list-row")].forEach((n) => {
|
|
888
|
-
const s =
|
|
888
|
+
const s = r(n), o = s.event || e.event;
|
|
889
889
|
o && this.listen(n, "click", (a) => {
|
|
890
890
|
a.stopPropagation(), this.dispatchPanelEvent(o, {
|
|
891
891
|
...e,
|
|
@@ -893,23 +893,23 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
893
893
|
});
|
|
894
894
|
});
|
|
895
895
|
}), t.hasAttribute("selection") && this.listen(t, "cds-structured-list-selected", (n) => {
|
|
896
|
-
const s = n.detail.row, o =
|
|
896
|
+
const s = n.detail.row, o = r(s), a = e.event;
|
|
897
897
|
a && this.dispatchPanelEvent(a, {
|
|
898
898
|
...e,
|
|
899
899
|
...o
|
|
900
900
|
});
|
|
901
901
|
});
|
|
902
902
|
}
|
|
903
|
-
},
|
|
903
|
+
}, Ne = { selector: "cds-contained-list" }, Me = { selector: "cds-contained-list-description" }, _e = {
|
|
904
904
|
selector: "cds-contained-list-item",
|
|
905
905
|
event: "cds-contained-list-item-click",
|
|
906
906
|
getData: (t, e) => e
|
|
907
|
-
},
|
|
907
|
+
}, Te = {
|
|
908
908
|
selector: "cds-tree-view",
|
|
909
909
|
init: function(t) {
|
|
910
|
-
const e =
|
|
910
|
+
const e = r(t);
|
|
911
911
|
this.listen(t, "cds-tree-node-selected", (s) => {
|
|
912
|
-
const o = s.detail.node, a =
|
|
912
|
+
const o = s.detail.node, a = r(o), c = a.event || e.event;
|
|
913
913
|
c && this.dispatchPanelEvent(c, {
|
|
914
914
|
...e,
|
|
915
915
|
...a,
|
|
@@ -926,28 +926,28 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
926
926
|
});
|
|
927
927
|
});
|
|
928
928
|
}
|
|
929
|
-
},
|
|
930
|
-
cdsActionableNotificationWrap: () =>
|
|
931
|
-
cdsInlineNotificationWrap: () =>
|
|
932
|
-
cdsToastNotificationWrap: () =>
|
|
933
|
-
}),
|
|
929
|
+
}, Oe = /* @__PURE__ */ h({
|
|
930
|
+
cdsActionableNotificationWrap: () => ze,
|
|
931
|
+
cdsInlineNotificationWrap: () => Re,
|
|
932
|
+
cdsToastNotificationWrap: () => Fe
|
|
933
|
+
}), Fe = {
|
|
934
934
|
selector: "cds-toast-notification",
|
|
935
935
|
event: "cds-notification-closed",
|
|
936
936
|
getData: (t, e) => ({
|
|
937
937
|
...e,
|
|
938
938
|
action: "closed"
|
|
939
939
|
})
|
|
940
|
-
},
|
|
940
|
+
}, Re = {
|
|
941
941
|
selector: "cds-inline-notification",
|
|
942
942
|
event: "cds-notification-closed",
|
|
943
943
|
getData: (t, e) => ({
|
|
944
944
|
...e,
|
|
945
945
|
action: "closed"
|
|
946
946
|
})
|
|
947
|
-
},
|
|
947
|
+
}, ze = {
|
|
948
948
|
selector: "cds-actionable-notification",
|
|
949
949
|
init: function(t) {
|
|
950
|
-
const e =
|
|
950
|
+
const e = r(t), n = W(t, "close-event", "event");
|
|
951
951
|
n && this.listen(t, "cds-notification-closed", (o) => {
|
|
952
952
|
this.dispatchPanelEvent(n, {
|
|
953
953
|
...e,
|
|
@@ -962,15 +962,17 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
962
962
|
});
|
|
963
963
|
});
|
|
964
964
|
}
|
|
965
|
-
},
|
|
966
|
-
cdsClickableTileWrap: () =>
|
|
967
|
-
cdsExpandableTileWrap: () =>
|
|
968
|
-
cdsRadioTileWrap: () =>
|
|
969
|
-
cdsSelectableTileWrap: () =>
|
|
970
|
-
|
|
965
|
+
}, qe = /* @__PURE__ */ h({
|
|
966
|
+
cdsClickableTileWrap: () => He,
|
|
967
|
+
cdsExpandableTileWrap: () => Ue,
|
|
968
|
+
cdsRadioTileWrap: () => Ge,
|
|
969
|
+
cdsSelectableTileWrap: () => je,
|
|
970
|
+
cdsTileGroupWrap: () => $e,
|
|
971
|
+
cdsTileWrap: () => Le
|
|
972
|
+
}), Le = { selector: "cds-tile" }, He = {
|
|
971
973
|
selector: "cds-clickable-tile",
|
|
972
974
|
init: function(t) {
|
|
973
|
-
const e =
|
|
975
|
+
const e = r(t), n = e.event;
|
|
974
976
|
if (n) {
|
|
975
977
|
const s = e.href || t.getAttribute("href") || "";
|
|
976
978
|
t.removeAttribute("href"), t.addEventListener("click", (o) => {
|
|
@@ -981,10 +983,10 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
981
983
|
}, !0);
|
|
982
984
|
}
|
|
983
985
|
}
|
|
984
|
-
},
|
|
986
|
+
}, Ue = {
|
|
985
987
|
selector: "cds-expandable-tile",
|
|
986
988
|
init: function(t) {
|
|
987
|
-
const e =
|
|
989
|
+
const e = r(t), n = t.getAttribute("before-toggle-event");
|
|
988
990
|
n && this.listen(t, "cds-expandable-tile-beingtoggled", (o) => {
|
|
989
991
|
this.dispatchPanelEvent(n, {
|
|
990
992
|
...e,
|
|
@@ -1000,7 +1002,7 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
1000
1002
|
});
|
|
1001
1003
|
});
|
|
1002
1004
|
}
|
|
1003
|
-
},
|
|
1005
|
+
}, je = {
|
|
1004
1006
|
selector: "cds-selectable-tile",
|
|
1005
1007
|
event: "cds-selectable-tile-changed",
|
|
1006
1008
|
getData: (t, e, n) => ({
|
|
@@ -1008,22 +1010,45 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
1008
1010
|
selected: t.detail.selected,
|
|
1009
1011
|
value: n.value
|
|
1010
1012
|
})
|
|
1011
|
-
},
|
|
1013
|
+
}, Ge = {
|
|
1012
1014
|
selector: "cds-radio-tile",
|
|
1013
|
-
event: "cds-
|
|
1015
|
+
event: "cds-radio-tile-selected",
|
|
1014
1016
|
getData: (t, e, n) => ({
|
|
1015
1017
|
...e,
|
|
1016
1018
|
selected: t.detail.selected,
|
|
1019
|
+
name: t.detail.name,
|
|
1017
1020
|
value: n.value
|
|
1018
1021
|
})
|
|
1019
|
-
},
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1022
|
+
}, $e = {
|
|
1023
|
+
selector: "cds-tile-group",
|
|
1024
|
+
init: function(t) {
|
|
1025
|
+
const e = r(t), n = e.event;
|
|
1026
|
+
n && (this.listen(t, "cds-current-radio-tile-selection", (s) => {
|
|
1027
|
+
const o = s.detail.target;
|
|
1028
|
+
this.dispatchPanelEvent(n, {
|
|
1029
|
+
...e,
|
|
1030
|
+
value: o?.value,
|
|
1031
|
+
name: o?.name,
|
|
1032
|
+
selected: o?.selected
|
|
1033
|
+
});
|
|
1034
|
+
}), this.listen(t, "cds-current-selectable-tile-selections", (s) => {
|
|
1035
|
+
const o = s.detail.currentSelections || [];
|
|
1036
|
+
this.dispatchPanelEvent(n, {
|
|
1037
|
+
...e,
|
|
1038
|
+
values: o.map((a) => a.value),
|
|
1039
|
+
names: o.map((a) => a.name),
|
|
1040
|
+
count: o.length
|
|
1041
|
+
});
|
|
1042
|
+
}));
|
|
1043
|
+
}
|
|
1044
|
+
}, Ve = /* @__PURE__ */ h({
|
|
1045
|
+
cdsInlineLoadingWrap: () => Ke,
|
|
1046
|
+
cdsProgressBarWrap: () => Ze,
|
|
1047
|
+
cdsProgressIndicatorWrap: () => Je
|
|
1048
|
+
}), Ze = {
|
|
1024
1049
|
selector: "cds-progress-bar",
|
|
1025
1050
|
init: function(t) {
|
|
1026
|
-
const e =
|
|
1051
|
+
const e = r(t);
|
|
1027
1052
|
if (e.event) {
|
|
1028
1053
|
const n = new MutationObserver(() => {
|
|
1029
1054
|
const s = parseFloat(t.getAttribute("value") || "0");
|
|
@@ -1039,12 +1064,12 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
1039
1064
|
}), t._progressObserver = n;
|
|
1040
1065
|
}
|
|
1041
1066
|
}
|
|
1042
|
-
},
|
|
1067
|
+
}, Je = {
|
|
1043
1068
|
selector: "cds-progress-indicator",
|
|
1044
1069
|
init: function(t) {
|
|
1045
|
-
const e =
|
|
1070
|
+
const e = r(t);
|
|
1046
1071
|
this.listen(t, "cds-progress-step-click", (n) => {
|
|
1047
|
-
const s = n.target, o =
|
|
1072
|
+
const s = n.target, o = r(s), a = o.event || e.event;
|
|
1048
1073
|
a && this.dispatchPanelEvent(a, {
|
|
1049
1074
|
...e,
|
|
1050
1075
|
...o,
|
|
@@ -1053,10 +1078,10 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
1053
1078
|
});
|
|
1054
1079
|
});
|
|
1055
1080
|
}
|
|
1056
|
-
},
|
|
1081
|
+
}, Ke = {
|
|
1057
1082
|
selector: "cds-inline-loading",
|
|
1058
1083
|
init: function(t) {
|
|
1059
|
-
const e =
|
|
1084
|
+
const e = r(t), n = e.event;
|
|
1060
1085
|
n && this.listen(t, "cds-inline-loading-onsuccess", (o) => {
|
|
1061
1086
|
this.dispatchPanelEvent(n, {
|
|
1062
1087
|
...e,
|
|
@@ -1082,14 +1107,14 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
1082
1107
|
}), t._statusObserver = o;
|
|
1083
1108
|
}
|
|
1084
1109
|
}
|
|
1085
|
-
},
|
|
1086
|
-
cdsPopoverWrap: () =>
|
|
1087
|
-
cdsToggletipWrap: () =>
|
|
1088
|
-
cdsTooltipWrap: () =>
|
|
1089
|
-
}),
|
|
1110
|
+
}, Qe = /* @__PURE__ */ h({
|
|
1111
|
+
cdsPopoverWrap: () => Ye,
|
|
1112
|
+
cdsToggletipWrap: () => ts,
|
|
1113
|
+
cdsTooltipWrap: () => Xe
|
|
1114
|
+
}), Xe = {
|
|
1090
1115
|
selector: "cds-tooltip",
|
|
1091
1116
|
init: function(t) {
|
|
1092
|
-
const e =
|
|
1117
|
+
const e = r(t), n = W(t, "open-event");
|
|
1093
1118
|
n && this.listen(t, "cds-tooltip-beingopened", (o) => {
|
|
1094
1119
|
this.dispatchPanelEvent(n, {
|
|
1095
1120
|
...e,
|
|
@@ -1104,10 +1129,10 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
1104
1129
|
});
|
|
1105
1130
|
});
|
|
1106
1131
|
}
|
|
1107
|
-
},
|
|
1132
|
+
}, Ye = {
|
|
1108
1133
|
selector: "cds-popover",
|
|
1109
1134
|
init: function(t) {
|
|
1110
|
-
const e =
|
|
1135
|
+
const e = r(t), n = W(t, "open-event");
|
|
1111
1136
|
n && this.listen(t, "cds-popover-beingopened", (o) => {
|
|
1112
1137
|
this.dispatchPanelEvent(n, {
|
|
1113
1138
|
...e,
|
|
@@ -1122,10 +1147,10 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
1122
1147
|
});
|
|
1123
1148
|
});
|
|
1124
1149
|
}
|
|
1125
|
-
},
|
|
1150
|
+
}, ts = {
|
|
1126
1151
|
selector: "cds-toggletip",
|
|
1127
1152
|
init: function(t) {
|
|
1128
|
-
const e =
|
|
1153
|
+
const e = r(t);
|
|
1129
1154
|
if (e.event) {
|
|
1130
1155
|
const n = new MutationObserver((s) => {
|
|
1131
1156
|
s.forEach((o) => {
|
|
@@ -1145,68 +1170,69 @@ var St = /* @__PURE__ */ h({ cdsTableWrap: () => yt }), K = (t, e, n) => {
|
|
|
1145
1170
|
}), t._toggletipObserver = n;
|
|
1146
1171
|
}
|
|
1147
1172
|
}
|
|
1148
|
-
},
|
|
1149
|
-
cdsCodeSnipWrap: () =>
|
|
1150
|
-
cdsLinkWrap: () =>
|
|
1151
|
-
}),
|
|
1173
|
+
}, es = /* @__PURE__ */ h({
|
|
1174
|
+
cdsCodeSnipWrap: () => ns,
|
|
1175
|
+
cdsLinkWrap: () => ss
|
|
1176
|
+
}), ss = {
|
|
1152
1177
|
selector: "cds-link",
|
|
1153
1178
|
event: "click",
|
|
1154
1179
|
getData: (t, e, n) => ({
|
|
1155
1180
|
...e,
|
|
1156
1181
|
href: n.getAttribute("href")
|
|
1157
1182
|
})
|
|
1158
|
-
},
|
|
1183
|
+
}, ns = {
|
|
1159
1184
|
selector: "cds-code-snippet",
|
|
1160
1185
|
event: "cds-copy-button-clicked",
|
|
1161
1186
|
getData: (t, e) => ({
|
|
1162
1187
|
...e,
|
|
1163
1188
|
action: "copied"
|
|
1164
1189
|
})
|
|
1165
|
-
},
|
|
1166
|
-
cdsBadgeIndicatorWrap: () =>
|
|
1167
|
-
cdsFormGroupWrap: () =>
|
|
1168
|
-
cdsFormItemWrap: () =>
|
|
1169
|
-
cdsFormWrap: () =>
|
|
1170
|
-
cdsHeadingWrap: () =>
|
|
1171
|
-
cdsIconIndicatorWrap: () =>
|
|
1172
|
-
cdsIconWrap: () =>
|
|
1173
|
-
cdsLoadingWrap: () =>
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1190
|
+
}, os = /* @__PURE__ */ h({
|
|
1191
|
+
cdsBadgeIndicatorWrap: () => us,
|
|
1192
|
+
cdsFormGroupWrap: () => rs,
|
|
1193
|
+
cdsFormItemWrap: () => cs,
|
|
1194
|
+
cdsFormWrap: () => as,
|
|
1195
|
+
cdsHeadingWrap: () => ls,
|
|
1196
|
+
cdsIconIndicatorWrap: () => vs,
|
|
1197
|
+
cdsIconWrap: () => ps,
|
|
1198
|
+
cdsLoadingWrap: () => ms,
|
|
1199
|
+
cdsSectionWrap: () => ds,
|
|
1200
|
+
cdsSkeletonPlaceholderWrap: () => gs,
|
|
1201
|
+
cdsSkeletonTextWrap: () => hs,
|
|
1202
|
+
cdsStackWrap: () => is
|
|
1203
|
+
}), as = { selector: "cds-form" }, cs = { selector: "cds-form-item" }, rs = { selector: "cds-form-group" }, is = { selector: "cds-stack" }, ls = { selector: "cds-heading" }, ds = { selector: "cds-section" }, ps = { selector: "cds-icon" }, vs = { selector: "cds-icon-indicator" }, us = { selector: "cds-badge-indicator" }, ms = { selector: "cds-loading" }, hs = { selector: "cds-skeleton-text" }, gs = { selector: "cds-skeleton-placeholder" };
|
|
1178
1204
|
function m(t) {
|
|
1179
1205
|
return Object.values(t).filter((e) => typeof e == "object" && e !== null && e.selector);
|
|
1180
1206
|
}
|
|
1181
|
-
var
|
|
1182
|
-
...m(
|
|
1183
|
-
...m(
|
|
1184
|
-
...m(
|
|
1185
|
-
...m(
|
|
1186
|
-
...m(
|
|
1187
|
-
...m(
|
|
1188
|
-
...m(
|
|
1189
|
-
...m(
|
|
1190
|
-
...m(
|
|
1191
|
-
...m(
|
|
1192
|
-
...m(
|
|
1193
|
-
...m(
|
|
1194
|
-
...m(
|
|
1195
|
-
...m(
|
|
1196
|
-
...m(
|
|
1197
|
-
...m(
|
|
1198
|
-
...m(
|
|
1199
|
-
...m(
|
|
1200
|
-
...m(
|
|
1201
|
-
...m(
|
|
1207
|
+
var fs = [
|
|
1208
|
+
...m(wt),
|
|
1209
|
+
...m(Pt),
|
|
1210
|
+
...m(xt),
|
|
1211
|
+
...m(qt),
|
|
1212
|
+
...m(Ut),
|
|
1213
|
+
...m(Kt),
|
|
1214
|
+
...m(te),
|
|
1215
|
+
...m(ne),
|
|
1216
|
+
...m(ae),
|
|
1217
|
+
...m(le),
|
|
1218
|
+
...m(ue),
|
|
1219
|
+
...m(Ee),
|
|
1220
|
+
...m(Ce),
|
|
1221
|
+
...m(De),
|
|
1222
|
+
...m(Oe),
|
|
1223
|
+
...m(qe),
|
|
1224
|
+
...m(Ve),
|
|
1225
|
+
...m(Qe),
|
|
1226
|
+
...m(es),
|
|
1227
|
+
...m(os)
|
|
1202
1228
|
];
|
|
1203
|
-
function
|
|
1229
|
+
function bs() {
|
|
1204
1230
|
const t = /* @__PURE__ */ new Map();
|
|
1205
|
-
return
|
|
1231
|
+
return fs.forEach((e) => {
|
|
1206
1232
|
t.set(e.selector, e);
|
|
1207
1233
|
}), t;
|
|
1208
1234
|
}
|
|
1209
|
-
var
|
|
1235
|
+
var Es = () => import("@carbon/web-components/es/components/accordion/index.js"), q = () => import("@carbon/web-components/es/components/breadcrumb/index.js"), Ws = () => import("@carbon/web-components/es/components/stack/index.js"), Ss = () => import("@carbon/web-components/es/components/structured-list/index.js"), L = () => import("@carbon/web-components/es/components/contained-list/index.js"), B = () => import("@carbon/web-components/es/components/tile/index.js"), Is = () => import("@carbon/web-components/es/components/tree-view/index.js"), Ps = () => import("@carbon/web-components/es/components/link/index.js"), ks = () => import("@carbon/web-components/es/components/tabs/index.js"), Cs = () => import("@carbon/web-components/es/components/content-switcher/index.js"), Q = () => import("@carbon/web-components/es/components/menu/index.js"), ys = () => import("@carbon/web-components/es/components/overflow-menu/index.js"), H = () => import("@carbon/web-components/es/components/button/index.js"), X = () => import("@carbon/web-components/es/components/icon-button/index.js"), As = () => import("@carbon/web-components/es/components/combo-button/index.js"), ws = () => import("@carbon/web-components/es/components/copy-button/index.js"), Ds = () => import("@carbon/web-components/es/components/checkbox/index.js"), xs = () => import("@carbon/web-components/es/components/radio-button/index.js"), Bs = () => import("@carbon/web-components/es/components/toggle/index.js"), U = () => import("@carbon/web-components/es/components/select/index.js"), Ns = () => import("@carbon/web-components/es/components/slider/index.js"), j = () => import("@carbon/web-components/es/components/text-input/index.js"), Ms = () => import("@carbon/web-components/es/components/textarea/index.js"), _s = () => import("@carbon/web-components/es/components/number-input/index.js"), Ts = () => import("@carbon/web-components/es/components/password-input/index.js"), Y = () => import("@carbon/web-components/es/components/search/index.js"), Os = () => import("@carbon/web-components/es/components/combo-box/index.js"), Fs = () => import("@carbon/web-components/es/components/dropdown/index.js"), Rs = () => import("@carbon/web-components/es/components/multi-select/index.js"), zs = () => import("@carbon/web-components/es/components/date-picker/index.js"), qs = () => import("@carbon/web-components/es/components/time-picker/index.js"), Ls = () => import("@carbon/web-components/es/components/file-uploader/index.js"), tt = () => import("@carbon/web-components/es/components/form/index.js"), Hs = () => import("@carbon/web-components/es/components/form-group/index.js"), Us = () => import("@carbon/web-components/es/components/data-table/index.js"), et = () => import("@carbon/web-components/es/components/pagination/index.js"), js = () => import("@carbon/web-components/es/components/code-snippet/index.js"), G = () => import("@carbon/web-components/es/components/tag/index.js"), Gs = () => import("@carbon/web-components/es/components/badge-indicator/index.js"), $ = () => import("@carbon/web-components/es/components/notification/index.js"), $s = () => import("@carbon/web-components/es/components/loading/index.js"), Vs = () => import("@carbon/web-components/es/components/inline-loading/index.js"), Zs = () => import("@carbon/web-components/es/components/progress-bar/index.js"), Js = () => import("@carbon/web-components/es/components/progress-indicator/index.js"), Ks = () => import("@carbon/web-components/es/components/skeleton-placeholder/index.js"), Qs = () => import("@carbon/web-components/es/components/skeleton-text/index.js"), k = () => import("@carbon/web-components/es/components/modal/index.js"), C = () => import("@carbon/web-components/es/components/tooltip/index.js"), Xs = () => import("@carbon/web-components/es/components/popover/index.js"), Ys = () => import("@carbon/web-components/es/components/toggle-tip/index.js"), st = () => import("@carbon/web-components/es/components/heading/index.js"), tn = () => import("@carbon/web-components/es/components/icon/index.js"), en = () => import("@carbon/web-components/es/components/icon-indicator/index.js"), O = {
|
|
1210
1236
|
"cds-table": [
|
|
1211
1237
|
C,
|
|
1212
1238
|
H,
|
|
@@ -1214,7 +1240,7 @@ var hs = () => import("@carbon/web-components/es/components/accordion/index.js")
|
|
|
1214
1240
|
Y,
|
|
1215
1241
|
U,
|
|
1216
1242
|
et,
|
|
1217
|
-
|
|
1243
|
+
Us
|
|
1218
1244
|
],
|
|
1219
1245
|
"cds-pagination": [
|
|
1220
1246
|
U,
|
|
@@ -1225,38 +1251,38 @@ var hs = () => import("@carbon/web-components/es/components/accordion/index.js")
|
|
|
1225
1251
|
"cds-icon-button:not([data-toggle])": [C, X],
|
|
1226
1252
|
"cds-icon-button[data-toggle]": [C, X],
|
|
1227
1253
|
"cds-button[data-fab]": [C, H],
|
|
1228
|
-
"cds-copy-button": [C,
|
|
1229
|
-
"cds-combo-button": [C,
|
|
1230
|
-
"cds-checkbox": [
|
|
1231
|
-
"cds-radio-button-group": [
|
|
1232
|
-
"cds-toggle": [
|
|
1254
|
+
"cds-copy-button": [C, ws],
|
|
1255
|
+
"cds-combo-button": [C, As],
|
|
1256
|
+
"cds-checkbox": [Ds],
|
|
1257
|
+
"cds-radio-button-group": [xs],
|
|
1258
|
+
"cds-toggle": [Bs],
|
|
1233
1259
|
"cds-select": [U],
|
|
1234
|
-
"cds-slider": [
|
|
1260
|
+
"cds-slider": [Ns],
|
|
1235
1261
|
"cds-text-input": [j],
|
|
1236
|
-
"cds-textarea": [
|
|
1237
|
-
"cds-number-input": [
|
|
1238
|
-
"cds-password-input": [C,
|
|
1262
|
+
"cds-textarea": [Ms],
|
|
1263
|
+
"cds-number-input": [_s],
|
|
1264
|
+
"cds-password-input": [C, Ts],
|
|
1239
1265
|
"cds-search": [Y],
|
|
1240
|
-
"cds-dropdown": [
|
|
1241
|
-
"cds-combo-box": [
|
|
1242
|
-
"cds-multi-select": [
|
|
1243
|
-
"cds-date-picker": [
|
|
1244
|
-
"cds-time-picker": [
|
|
1245
|
-
"cds-file-uploader": [
|
|
1246
|
-
"cds-tabs": [
|
|
1247
|
-
"cds-accordion": [
|
|
1248
|
-
"cds-content-switcher": [
|
|
1266
|
+
"cds-dropdown": [Fs],
|
|
1267
|
+
"cds-combo-box": [Os],
|
|
1268
|
+
"cds-multi-select": [Rs],
|
|
1269
|
+
"cds-date-picker": [zs],
|
|
1270
|
+
"cds-time-picker": [qs],
|
|
1271
|
+
"cds-file-uploader": [Ls],
|
|
1272
|
+
"cds-tabs": [ks],
|
|
1273
|
+
"cds-accordion": [Es],
|
|
1274
|
+
"cds-content-switcher": [Cs],
|
|
1249
1275
|
"cds-breadcrumb": [q],
|
|
1250
1276
|
"cds-breadcrumb-item": [q],
|
|
1251
1277
|
"cds-breadcrumb-link": [q],
|
|
1252
1278
|
"cds-menu": [Q],
|
|
1253
1279
|
"cds-menu-button": [Q],
|
|
1254
|
-
"cds-overflow-menu": [
|
|
1255
|
-
"cds-structured-list": [
|
|
1280
|
+
"cds-overflow-menu": [ys],
|
|
1281
|
+
"cds-structured-list": [Ss],
|
|
1256
1282
|
"cds-contained-list": [L],
|
|
1257
1283
|
"cds-contained-list-item": [L],
|
|
1258
1284
|
"cds-contained-list-description": [L],
|
|
1259
|
-
"cds-tree-view": [
|
|
1285
|
+
"cds-tree-view": [Is],
|
|
1260
1286
|
"cds-modal": [k],
|
|
1261
1287
|
"cds-modal-header": [k],
|
|
1262
1288
|
"cds-modal-heading": [k],
|
|
@@ -1266,37 +1292,40 @@ var hs = () => import("@carbon/web-components/es/components/accordion/index.js")
|
|
|
1266
1292
|
"cds-modal-body-content": [k],
|
|
1267
1293
|
"cds-modal-footer": [k],
|
|
1268
1294
|
"cds-modal-footer-button": [k],
|
|
1269
|
-
"cds-toast-notification": [
|
|
1270
|
-
"cds-inline-notification": [
|
|
1271
|
-
"cds-actionable-notification": [
|
|
1272
|
-
"cds-
|
|
1273
|
-
"cds-
|
|
1274
|
-
"cds-
|
|
1275
|
-
"cds-
|
|
1276
|
-
"cds-
|
|
1277
|
-
"cds-
|
|
1278
|
-
"cds-
|
|
1295
|
+
"cds-toast-notification": [$],
|
|
1296
|
+
"cds-inline-notification": [$],
|
|
1297
|
+
"cds-actionable-notification": [$],
|
|
1298
|
+
"cds-tile": [B],
|
|
1299
|
+
"cds-tile-group": [B],
|
|
1300
|
+
"cds-clickable-tile": [B],
|
|
1301
|
+
"cds-expandable-tile": [B],
|
|
1302
|
+
"cds-selectable-tile": [B],
|
|
1303
|
+
"cds-radio-tile": [B],
|
|
1304
|
+
"cds-progress-bar": [Zs],
|
|
1305
|
+
"cds-progress-indicator": [Js],
|
|
1306
|
+
"cds-inline-loading": [Vs],
|
|
1279
1307
|
"cds-tooltip": [C],
|
|
1280
|
-
"cds-popover": [
|
|
1281
|
-
"cds-toggletip": [
|
|
1282
|
-
"cds-tag": [
|
|
1283
|
-
"cds-dismissible-tag": [
|
|
1284
|
-
"cds-filter-tag": [
|
|
1285
|
-
"cds-link": [
|
|
1286
|
-
"cds-code-snippet": [
|
|
1308
|
+
"cds-popover": [Xs],
|
|
1309
|
+
"cds-toggletip": [Ys],
|
|
1310
|
+
"cds-tag": [G],
|
|
1311
|
+
"cds-dismissible-tag": [G],
|
|
1312
|
+
"cds-filter-tag": [G],
|
|
1313
|
+
"cds-link": [Ps],
|
|
1314
|
+
"cds-code-snippet": [js],
|
|
1287
1315
|
"cds-form": [tt],
|
|
1288
1316
|
"cds-form-item": [tt],
|
|
1289
|
-
"cds-form-group": [
|
|
1290
|
-
"cds-stack": [
|
|
1291
|
-
"cds-heading": [
|
|
1292
|
-
"cds-
|
|
1293
|
-
"cds-icon
|
|
1294
|
-
"cds-
|
|
1295
|
-
"cds-
|
|
1296
|
-
"cds-
|
|
1297
|
-
"cds-skeleton-
|
|
1317
|
+
"cds-form-group": [Hs],
|
|
1318
|
+
"cds-stack": [Ws],
|
|
1319
|
+
"cds-heading": [st],
|
|
1320
|
+
"cds-section": [st],
|
|
1321
|
+
"cds-icon": [tn],
|
|
1322
|
+
"cds-icon-indicator": [en],
|
|
1323
|
+
"cds-badge-indicator": [Gs],
|
|
1324
|
+
"cds-loading": [$s],
|
|
1325
|
+
"cds-skeleton-text": [Qs],
|
|
1326
|
+
"cds-skeleton-placeholder": [Ks]
|
|
1298
1327
|
};
|
|
1299
|
-
function
|
|
1328
|
+
function sn(t) {
|
|
1300
1329
|
const e = /* @__PURE__ */ new Map();
|
|
1301
1330
|
if (!t || !(t instanceof Element)) return e;
|
|
1302
1331
|
for (const s of Object.keys(T)) e.set(s, []);
|
|
@@ -1306,17 +1335,17 @@ function Ys(t) {
|
|
|
1306
1335
|
for (const [s, o] of e.entries()) o.length === 0 && e.delete(s);
|
|
1307
1336
|
return e;
|
|
1308
1337
|
}
|
|
1309
|
-
function
|
|
1338
|
+
function nn(t) {
|
|
1310
1339
|
const e = /* @__PURE__ */ new Set();
|
|
1311
1340
|
for (const [n, s] of t.entries()) s.length > 0 && O[n] && O[n].forEach((o) => e.add(o));
|
|
1312
1341
|
return e;
|
|
1313
1342
|
}
|
|
1314
|
-
async function
|
|
1343
|
+
async function on(t, e) {
|
|
1315
1344
|
if (t.size === 0) return;
|
|
1316
1345
|
const n = Array.from(t).map(async (s) => (e.has(s) || e.set(s, s()), e.get(s)));
|
|
1317
1346
|
await Promise.all(n);
|
|
1318
1347
|
}
|
|
1319
|
-
function
|
|
1348
|
+
function an(t, e) {
|
|
1320
1349
|
let n = 0;
|
|
1321
1350
|
for (const [s, o] of t.entries()) {
|
|
1322
1351
|
const a = T[s];
|
|
@@ -1326,52 +1355,52 @@ function sn(t, e) {
|
|
|
1326
1355
|
return;
|
|
1327
1356
|
}
|
|
1328
1357
|
if (a.multiEvent) {
|
|
1329
|
-
const
|
|
1330
|
-
a.events.forEach((
|
|
1331
|
-
const D = W(c,
|
|
1332
|
-
D && e.listen(c,
|
|
1333
|
-
e.dispatchPanelEvent(D,
|
|
1358
|
+
const S = r(c);
|
|
1359
|
+
a.events.forEach((I) => {
|
|
1360
|
+
const D = W(c, I.attrName, "event");
|
|
1361
|
+
D && e.listen(c, I.type, (F) => {
|
|
1362
|
+
e.dispatchPanelEvent(D, I.getData(F, S, c));
|
|
1334
1363
|
});
|
|
1335
1364
|
});
|
|
1336
1365
|
return;
|
|
1337
1366
|
}
|
|
1338
|
-
const l =
|
|
1339
|
-
p && e.listen(c, a.event, (
|
|
1340
|
-
|
|
1341
|
-
const
|
|
1342
|
-
delete
|
|
1367
|
+
const l = r(c), p = l.event;
|
|
1368
|
+
p && e.listen(c, a.event, (S) => {
|
|
1369
|
+
S.stopPropagation();
|
|
1370
|
+
const I = a.getData(S, l, c), D = I._eventOverride || p;
|
|
1371
|
+
delete I._eventOverride, e.dispatchPanelEvent(D, I);
|
|
1343
1372
|
});
|
|
1344
1373
|
}), n += o.length;
|
|
1345
1374
|
}
|
|
1346
1375
|
return n;
|
|
1347
1376
|
}
|
|
1348
|
-
var T = Object.fromEntries(
|
|
1349
|
-
const n =
|
|
1377
|
+
var T = Object.fromEntries(bs()), cn = async function(t, e) {
|
|
1378
|
+
const n = sn(t);
|
|
1350
1379
|
if (n.size === 0) {
|
|
1351
1380
|
this.debugMe("[Carbon] No Carbon components found in panel");
|
|
1352
1381
|
return;
|
|
1353
1382
|
}
|
|
1354
1383
|
this.carbonComponents || (this.carbonComponents = /* @__PURE__ */ new Map());
|
|
1355
1384
|
for (const [a, c] of n.entries()) this.carbonComponents.set(a, c);
|
|
1356
|
-
const s =
|
|
1385
|
+
const s = nn(n);
|
|
1357
1386
|
if (s.size > 0) try {
|
|
1358
|
-
await
|
|
1387
|
+
await on(s, e);
|
|
1359
1388
|
} catch (a) {
|
|
1360
1389
|
console.error("[Carbon] Failed to load some component modules:", a);
|
|
1361
1390
|
}
|
|
1362
|
-
const o =
|
|
1391
|
+
const o = an(n, this);
|
|
1363
1392
|
o > 0 && this.debugMe(`[Carbon] Total components initialized: ${o}`);
|
|
1364
|
-
},
|
|
1393
|
+
}, vn = (t = {}) => {
|
|
1365
1394
|
const { preload: e = [] } = t, n = /* @__PURE__ */ new Map();
|
|
1366
1395
|
if (e.length > 0) {
|
|
1367
1396
|
const s = e.filter((a) => O[a] ? !0 : (console.warn(`[Carbon] No import found for selector: ${a}`), !1)), o = s.flatMap((a) => O[a].map((c) => (n.has(c) || n.set(c, c()), n.get(c))));
|
|
1368
1397
|
Promise.all(o).then(() => console.debug(`[Carbon] Preloaded: ${s.join(", ")}`)).catch((a) => console.warn("[Carbon] Preload error:", a));
|
|
1369
1398
|
}
|
|
1370
|
-
|
|
1399
|
+
bt.register("carbon", {
|
|
1371
1400
|
cache: n,
|
|
1372
1401
|
render: async function(s, o) {
|
|
1373
1402
|
try {
|
|
1374
|
-
await
|
|
1403
|
+
await cn.call(this, s, o);
|
|
1375
1404
|
} catch (a) {
|
|
1376
1405
|
console.error("[Carbon] Initialization error:", a);
|
|
1377
1406
|
}
|
|
@@ -1385,5 +1414,5 @@ var T = Object.fromEntries(ms()), nn = async function(t, e) {
|
|
|
1385
1414
|
}), console.debug("[Zooy] Carbon Design System library registered");
|
|
1386
1415
|
};
|
|
1387
1416
|
export {
|
|
1388
|
-
|
|
1417
|
+
vn as registerCarbonLibrary
|
|
1389
1418
|
};
|