@mgdis/stencil-helpers 1.0.4 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ide/index.d.ts +88 -0
- package/dist/ide/index.d.ts.map +1 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +379 -265
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +23 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/storybook/index.d.ts +1 -1
- package/dist/storybook/index.d.ts.map +1 -1
- package/package.json +11 -11
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,180 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
const
|
|
1
|
+
var ie = Object.defineProperty;
|
|
2
|
+
var ce = (t, e, n) => e in t ? ie(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
|
+
var p = (t, e, n) => (ce(t, typeof e != "symbol" ? e + "" : e, n), n);
|
|
4
|
+
const Re = (t = "", e = 10) => {
|
|
5
|
+
const n = new Uint8Array(e);
|
|
6
|
+
crypto.getRandomValues(n);
|
|
7
|
+
const s = Array.from(n).map((r) => r.toString(16).padStart(2, "0")).join("").slice(0, e);
|
|
8
|
+
return t !== "" ? `${t}-${s}` : s;
|
|
9
|
+
};
|
|
10
|
+
class Me {
|
|
11
|
+
constructor(e = []) {
|
|
12
|
+
/**
|
|
13
|
+
* Available classes
|
|
14
|
+
*/
|
|
15
|
+
p(this, "classes");
|
|
16
|
+
/**
|
|
17
|
+
* Add class
|
|
18
|
+
* @param className - class name to add
|
|
19
|
+
*/
|
|
20
|
+
p(this, "add", (e) => {
|
|
21
|
+
this.has(e) || this.classes.push(e);
|
|
22
|
+
});
|
|
23
|
+
/**
|
|
24
|
+
* Delete class
|
|
25
|
+
* @param className - class name to delete
|
|
26
|
+
*/
|
|
27
|
+
p(this, "delete", (e) => {
|
|
28
|
+
const n = this.classes.indexOf(e);
|
|
29
|
+
n > -1 && this.classes.splice(n, 1);
|
|
30
|
+
});
|
|
31
|
+
/**
|
|
32
|
+
* Check if class exist in list
|
|
33
|
+
* @param className - class name to check
|
|
34
|
+
* @returns class name is in the list
|
|
35
|
+
*/
|
|
36
|
+
p(this, "has", (e) => this.classes.includes(e));
|
|
37
|
+
/**
|
|
38
|
+
* Join classes seperated by spaces
|
|
39
|
+
* @returns joined values
|
|
40
|
+
*/
|
|
41
|
+
p(this, "join", () => this.classes.join(" "));
|
|
42
|
+
this.classes = e;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
const Oe = (t) => Array.isArray(t) && t.every((e) => typeof e == "string"), Fe = (t, e) => e.includes(t == null ? void 0 : t.tagName.toLowerCase()), De = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]), [identifier], mg-button', _e = (t) => {
|
|
46
|
+
const e = I(t), n = X(t);
|
|
47
|
+
return [t, ...e, ...n];
|
|
48
|
+
}, I = (t, e = []) => {
|
|
49
|
+
if (t.self !== t.top)
|
|
50
|
+
try {
|
|
51
|
+
const n = t.parent;
|
|
52
|
+
return n ? (e.push(n), I(n, e)) : e;
|
|
53
|
+
} catch (n) {
|
|
54
|
+
return console.error("Different hosts between iframes:", n), e;
|
|
55
|
+
}
|
|
56
|
+
return e;
|
|
57
|
+
}, X = (t, e = []) => {
|
|
58
|
+
if (t.frames.length > 0)
|
|
59
|
+
for (const n of Array.from(t.frames))
|
|
60
|
+
e.push(n), X(n, e);
|
|
61
|
+
return e;
|
|
62
|
+
}, Be = (t) => typeof t == "string" && t.trim() !== "", Ne = (t) => typeof t == "string" ? t.toLocaleLowerCase().normalize("NFD").replaceAll(/[\u0300-\u036f]/g, "") : t, Ue = async (t) => t(), K = (t, e) => {
|
|
63
|
+
if (!e)
|
|
64
|
+
return;
|
|
65
|
+
const n = e.split("/");
|
|
66
|
+
return `${t}${n.slice(2, n.length - 1).join("-")}--docs`;
|
|
67
|
+
}, ae = (t, e) => {
|
|
68
|
+
if (e)
|
|
69
|
+
return `${t}${e}`;
|
|
70
|
+
}, Q = (t) => {
|
|
71
|
+
let e = t.overview ? `${t.overview}
|
|
72
|
+
|
|
73
|
+
` : "";
|
|
74
|
+
const n = t.props.filter(({ attr: r }) => r !== void 0);
|
|
75
|
+
n.length && (e += `Attributes:
|
|
76
|
+
`, e += n.map(({ attr: r, docs: l }) => `- \`${r}\`: ${l}
|
|
77
|
+
`).join(""), e += `
|
|
78
|
+
`);
|
|
79
|
+
const s = t.props.filter(({ attr: r }) => r === void 0);
|
|
80
|
+
return s.length && (e += `Properties:
|
|
81
|
+
`, e += s.map(({ name: r, docs: l }) => `- \`${r}\`: ${l}
|
|
82
|
+
`).join(""), e += `
|
|
83
|
+
`), t.methods.length && (e += `Methods:
|
|
84
|
+
`, e += t.methods.map(({ name: r, docs: l }) => `- \`${r}\`: ${l}
|
|
85
|
+
`).join(""), e += `
|
|
86
|
+
`), t.events.length && (e += `Events:
|
|
87
|
+
`, e += t.events.map(({ event: r, docs: l }) => `- \`${r}\`: ${l}
|
|
88
|
+
`).join(""), e += `
|
|
89
|
+
`), t.listeners.length && (e += `Listeners:
|
|
90
|
+
`, e += t.listeners.map(({ event: r }) => `- \`${r}\`
|
|
91
|
+
`).join(""), e += `
|
|
92
|
+
`), t.slots.length && (e += `Slots:
|
|
93
|
+
`, e += t.slots.map(({ name: r, docs: l }) => `- \`${r}\`: ${l}
|
|
94
|
+
`).join(""), e += `
|
|
95
|
+
`), e;
|
|
96
|
+
}, F = (t) => `${t.docs}
|
|
97
|
+
|
|
98
|
+
Type: \`${t.type}\``, Ce = (t, e, n, s) => ({
|
|
99
|
+
$schema: "https://json.schemastore.org/web-types",
|
|
100
|
+
name: t,
|
|
101
|
+
version: e,
|
|
102
|
+
"description-markup": "markdown",
|
|
103
|
+
contributions: {
|
|
104
|
+
html: {
|
|
105
|
+
elements: n.components.map((r) => {
|
|
106
|
+
const l = K(s, r.filePath);
|
|
107
|
+
return {
|
|
108
|
+
name: r.tag,
|
|
109
|
+
description: Q(r),
|
|
110
|
+
"doc-url": l,
|
|
111
|
+
attributes: r.props.filter((o) => o.attr).map((o) => ({
|
|
112
|
+
name: o.attr,
|
|
113
|
+
description: F(o),
|
|
114
|
+
"doc-url": l,
|
|
115
|
+
value: {
|
|
116
|
+
type: o.type,
|
|
117
|
+
default: o.default,
|
|
118
|
+
required: o.required
|
|
119
|
+
}
|
|
120
|
+
})),
|
|
121
|
+
js: {
|
|
122
|
+
properties: r.props.map((o) => ({
|
|
123
|
+
name: o.name,
|
|
124
|
+
description: F(o),
|
|
125
|
+
"doc-url": l,
|
|
126
|
+
value: {
|
|
127
|
+
type: o.type,
|
|
128
|
+
default: o.default,
|
|
129
|
+
required: o.required
|
|
130
|
+
}
|
|
131
|
+
})),
|
|
132
|
+
events: r.events.map((o) => ({
|
|
133
|
+
name: o.event,
|
|
134
|
+
description: o.docs
|
|
135
|
+
}))
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
})
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}), fe = (t, e, n) => {
|
|
142
|
+
if (n)
|
|
143
|
+
return [
|
|
144
|
+
{ name: "Storybook", url: K(t, n) },
|
|
145
|
+
{ name: "Sources", url: ae(e, n) }
|
|
146
|
+
];
|
|
147
|
+
}, $e = (t) => {
|
|
148
|
+
if (!t.values.some(({ value: e }) => e === void 0))
|
|
149
|
+
return t.values.map(({ value: e }) => ({ name: e }));
|
|
150
|
+
}, He = (t, e, n, s) => ({
|
|
151
|
+
version: t,
|
|
152
|
+
tags: e.components.map((r) => {
|
|
153
|
+
const l = fe(n, s, r.filePath);
|
|
154
|
+
return {
|
|
155
|
+
name: r.tag,
|
|
156
|
+
description: Q(r),
|
|
157
|
+
attributes: r.props.map((o) => ({
|
|
158
|
+
name: o.attr || o.name,
|
|
159
|
+
description: F(o),
|
|
160
|
+
values: $e(o),
|
|
161
|
+
references: l
|
|
162
|
+
})),
|
|
163
|
+
references: l
|
|
164
|
+
};
|
|
165
|
+
}),
|
|
166
|
+
globalAttributes: [],
|
|
167
|
+
valueSets: []
|
|
168
|
+
}), Pe = (t) => {
|
|
169
|
+
const e = { value: "2023", pattern: "yyyy" }, n = { value: "12", pattern: "mm" }, s = { value: "24", pattern: "dd" };
|
|
170
|
+
return ge([e.value, n.value, s.value].join("-"), t).replace(e.value, e.pattern).replace(n.value, n.pattern).replace(s.value, s.pattern);
|
|
171
|
+
}, We = (t) => t.toISOString().split("T")[0], ue = (t, e, n) => {
|
|
172
|
+
const s = t.closest("[lang]"), r = Intl.NumberFormat.supportedLocalesOf(s == null ? void 0 : s.lang), l = r.length > 0 && typeof r[0] == "string" ? r[0] : navigator.language || n, o = l.split("-").shift();
|
|
173
|
+
return {
|
|
174
|
+
locale: l,
|
|
175
|
+
messages: e[o] || e[n]
|
|
176
|
+
};
|
|
177
|
+
}, ze = (t, e, n) => new Intl.NumberFormat(e, { style: "currency", currency: n }).format(t), qe = (t, e) => new Intl.NumberFormat(e).format(t), de = /^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/, ge = (t, e) => typeof t != "string" || t === "" || !de.test(t) ? "" : new Intl.DateTimeFormat(e).format(new Date(t)), we = (t, e) => (n) => ue(n, t, e), _ = {
|
|
5
178
|
allRenderFn: !1,
|
|
6
179
|
cmpDidLoad: !0,
|
|
7
180
|
cmpDidUnload: !1,
|
|
@@ -90,25 +263,25 @@ const X = {
|
|
|
90
263
|
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
91
264
|
experimentalSlotFixes: !1
|
|
92
265
|
};
|
|
93
|
-
let
|
|
94
|
-
const H = "http://www.w3.org/1999/xlink",
|
|
95
|
-
let s = null,
|
|
96
|
-
const i = [], d = (
|
|
97
|
-
for (let $ = 0; $ <
|
|
98
|
-
s =
|
|
266
|
+
let k, D, m, B = !1, R = !1, N = !1, h = !1;
|
|
267
|
+
const H = "http://www.w3.org/1999/xlink", P = {}, pe = "http://www.w3.org/2000/svg", he = "http://www.w3.org/1999/xhtml", ye = (t) => t != null, J = (t) => (t = typeof t, t === "object" || t === "function"), Y = (t, e, ...n) => {
|
|
268
|
+
let s = null, r = null, l = null, o = !1, c = !1;
|
|
269
|
+
const i = [], d = (a) => {
|
|
270
|
+
for (let $ = 0; $ < a.length; $++)
|
|
271
|
+
s = a[$], Array.isArray(s) ? d(s) : s != null && typeof s != "boolean" && ((o = typeof t != "function" && !J(s)) && (s = String(s)), o && c ? i[i.length - 1].$text$ += s : i.push(o ? M(null, s) : s), c = o);
|
|
99
272
|
};
|
|
100
273
|
if (d(n), e) {
|
|
101
|
-
e.key && (
|
|
274
|
+
e.key && (r = e.key), e.name && (l = e.name);
|
|
102
275
|
{
|
|
103
|
-
const
|
|
104
|
-
|
|
276
|
+
const a = e.className || e.class;
|
|
277
|
+
a && (e.class = typeof a != "object" ? a : Object.keys(a).filter(($) => a[$]).join(" "));
|
|
105
278
|
}
|
|
106
279
|
}
|
|
107
280
|
if (typeof t == "function")
|
|
108
|
-
return t(e === null ? {} : e, i,
|
|
109
|
-
const u =
|
|
110
|
-
return u.$attrs$ = e, i.length > 0 && (u.$children$ = i), u.$key$ =
|
|
111
|
-
},
|
|
281
|
+
return t(e === null ? {} : e, i, Se);
|
|
282
|
+
const u = M(t, null);
|
|
283
|
+
return u.$attrs$ = e, i.length > 0 && (u.$children$ = i), u.$key$ = r, u.$name$ = l, u;
|
|
284
|
+
}, M = (t, e) => {
|
|
112
285
|
const n = {
|
|
113
286
|
$flags$: 0,
|
|
114
287
|
$tag$: t,
|
|
@@ -117,29 +290,29 @@ const H = "http://www.w3.org/1999/xlink", C = {}, re = "http://www.w3.org/2000/s
|
|
|
117
290
|
$children$: null
|
|
118
291
|
};
|
|
119
292
|
return n.$attrs$ = null, n.$key$ = null, n.$name$ = null, n;
|
|
120
|
-
},
|
|
121
|
-
forEach: (t, e) => t.map(
|
|
122
|
-
map: (t, e) => t.map(
|
|
123
|
-
},
|
|
293
|
+
}, ve = {}, be = (t) => t && t.$tag$ === ve, Se = {
|
|
294
|
+
forEach: (t, e) => t.map(W).forEach(e),
|
|
295
|
+
map: (t, e) => t.map(W).map(e).map(ke)
|
|
296
|
+
}, W = (t) => ({
|
|
124
297
|
vattrs: t.$attrs$,
|
|
125
298
|
vchildren: t.$children$,
|
|
126
299
|
vkey: t.$key$,
|
|
127
300
|
vname: t.$name$,
|
|
128
301
|
vtag: t.$tag$,
|
|
129
302
|
vtext: t.$text$
|
|
130
|
-
}),
|
|
303
|
+
}), ke = (t) => {
|
|
131
304
|
if (typeof t.vtag == "function") {
|
|
132
305
|
const n = Object.assign({}, t.vattrs);
|
|
133
|
-
return t.vkey && (n.key = t.vkey), t.vname && (n.name = t.vname),
|
|
306
|
+
return t.vkey && (n.key = t.vkey), t.vname && (n.name = t.vname), Y(t.vtag, n, ...t.vchildren || []);
|
|
134
307
|
}
|
|
135
|
-
const e =
|
|
308
|
+
const e = M(t.vtag, t.vtext);
|
|
136
309
|
return e.$attrs$ = t.vattrs, e.$children$ = t.vchildren, e.$key$ = t.vkey, e.$name$ = t.vname, e;
|
|
137
|
-
},
|
|
310
|
+
}, z = (t, e, n, s, r, l) => {
|
|
138
311
|
if (n !== s) {
|
|
139
|
-
let o =
|
|
312
|
+
let o = G(t, e), c = e.toLowerCase();
|
|
140
313
|
if (e === "class") {
|
|
141
|
-
const i = t.classList, d =
|
|
142
|
-
i.remove(...d.filter((
|
|
314
|
+
const i = t.classList, d = q(n), u = q(s);
|
|
315
|
+
i.remove(...d.filter((a) => a && !u.includes(a))), i.add(...u.filter((a) => a && !d.includes(a)));
|
|
143
316
|
} else if (e === "style") {
|
|
144
317
|
for (const i in n)
|
|
145
318
|
(!s || s[i] == null) && (i.includes("-") ? t.style.removeProperty(i) : t.style[i] = "");
|
|
@@ -149,13 +322,13 @@ const H = "http://www.w3.org/1999/xlink", C = {}, re = "http://www.w3.org/2000/s
|
|
|
149
322
|
if (e === "ref")
|
|
150
323
|
s && s(t);
|
|
151
324
|
else if (!t.__lookupSetter__(e) && e[0] === "o" && e[1] === "n") {
|
|
152
|
-
if (e[2] === "-" ? e = e.slice(3) :
|
|
153
|
-
const i = e.endsWith(
|
|
154
|
-
e = e.replace(
|
|
325
|
+
if (e[2] === "-" ? e = e.slice(3) : G(C, c) ? e = c.slice(2) : e = c[2] + e.slice(3), n || s) {
|
|
326
|
+
const i = e.endsWith(Z);
|
|
327
|
+
e = e.replace(me, ""), n && x.rel(t, e, n, i), s && x.ael(t, e, s, i);
|
|
155
328
|
}
|
|
156
329
|
} else {
|
|
157
|
-
const i =
|
|
158
|
-
if ((o || i && s !== null) && !
|
|
330
|
+
const i = J(s);
|
|
331
|
+
if ((o || i && s !== null) && !r)
|
|
159
332
|
try {
|
|
160
333
|
if (t.tagName.includes("-"))
|
|
161
334
|
t[e] = s;
|
|
@@ -166,180 +339,186 @@ const H = "http://www.w3.org/1999/xlink", C = {}, re = "http://www.w3.org/2000/s
|
|
|
166
339
|
} catch {
|
|
167
340
|
}
|
|
168
341
|
let d = !1;
|
|
169
|
-
c !== (c = c.replace(/^xlink\:?/, "")) && (e = c, d = !0), s == null || s === !1 ? (s !== !1 || t.getAttribute(e) === "") && (d ? t.removeAttributeNS(H, e) : t.removeAttribute(e)) : (!o ||
|
|
342
|
+
c !== (c = c.replace(/^xlink\:?/, "")) && (e = c, d = !0), s == null || s === !1 ? (s !== !1 || t.getAttribute(e) === "") && (d ? t.removeAttributeNS(H, e) : t.removeAttribute(e)) : (!o || l & 4 || r) && !i && (s = s === !0 ? "" : s, d ? t.setAttributeNS(H, e, s) : t.setAttribute(e, s));
|
|
170
343
|
}
|
|
171
344
|
}
|
|
172
|
-
},
|
|
173
|
-
const
|
|
174
|
-
for (s in
|
|
175
|
-
s in o ||
|
|
345
|
+
}, Te = /\s/, q = (t) => t ? t.split(Te) : [], Z = "Capture", me = new RegExp(Z + "$"), V = (t, e, n, s) => {
|
|
346
|
+
const r = e.$elm$.nodeType === 11 && e.$elm$.host ? e.$elm$.host : e.$elm$, l = t && t.$attrs$ || P, o = e.$attrs$ || P;
|
|
347
|
+
for (s in l)
|
|
348
|
+
s in o || z(r, s, l[s], void 0, n, e.$flags$);
|
|
176
349
|
for (s in o)
|
|
177
|
-
|
|
178
|
-
},
|
|
350
|
+
z(r, s, l[s], o[s], n, e.$flags$);
|
|
351
|
+
}, O = (t, e, n, s) => {
|
|
352
|
+
var r;
|
|
179
353
|
const l = e.$children$[n];
|
|
180
|
-
let
|
|
181
|
-
if (
|
|
354
|
+
let o = 0, c, i, d;
|
|
355
|
+
if (B || (N = !0, l.$tag$ === "slot" && (k && s.classList.add(k + "-s"), l.$flags$ |= l.$children$ ? (
|
|
182
356
|
// slot element has fallback content
|
|
183
357
|
2
|
|
184
358
|
) : (
|
|
185
359
|
// slot element does not have fallback content
|
|
186
360
|
1
|
|
187
361
|
))), l.$text$ !== null)
|
|
188
|
-
|
|
362
|
+
c = l.$elm$ = j.createTextNode(l.$text$);
|
|
189
363
|
else if (l.$flags$ & 1)
|
|
190
|
-
|
|
364
|
+
c = l.$elm$ = j.createTextNode("");
|
|
191
365
|
else {
|
|
192
|
-
if (h || (h = l.$tag$ === "svg"),
|
|
193
|
-
for (
|
|
194
|
-
|
|
195
|
-
l.$tag$ === "svg" ? h = !1 :
|
|
366
|
+
if (h || (h = l.$tag$ === "svg"), c = l.$elm$ = j.createElementNS(h ? pe : he, l.$flags$ & 2 ? "slot-fb" : l.$tag$), h && l.$tag$ === "foreignObject" && (h = !1), V(null, l, h), ye(k) && c["s-si"] !== k && c.classList.add(c["s-si"] = k), l.$children$)
|
|
367
|
+
for (o = 0; o < l.$children$.length; ++o)
|
|
368
|
+
i = O(t, l, o, c), i && c.appendChild(i);
|
|
369
|
+
l.$tag$ === "svg" ? h = !1 : c.tagName === "foreignObject" && (h = !0);
|
|
196
370
|
}
|
|
197
|
-
return
|
|
371
|
+
return c["s-hn"] = m, l.$flags$ & 3 && (c["s-sr"] = !0, c["s-cr"] = D, c["s-sn"] = l.$name$ || "", c["s-rf"] = (r = l.$attrs$) === null || r === void 0 ? void 0 : r.ref, d = t && t.$children$ && t.$children$[n], d && d.$tag$ === l.$tag$ && t.$elm$ && L(t.$elm$, !1)), c;
|
|
198
372
|
}, L = (t, e) => {
|
|
199
373
|
x.$flags$ |= 1;
|
|
200
|
-
const n = t.childNodes;
|
|
374
|
+
const n = Array.from(t.childNodes);
|
|
375
|
+
if (t["s-sr"] && _.experimentalSlotFixes) {
|
|
376
|
+
let s = t;
|
|
377
|
+
for (; s = s.nextSibling; )
|
|
378
|
+
s && s["s-sn"] === t["s-sn"] && s["s-sh"] === m && n.push(s);
|
|
379
|
+
}
|
|
201
380
|
for (let s = n.length - 1; s >= 0; s--) {
|
|
202
|
-
const
|
|
203
|
-
|
|
381
|
+
const r = n[s];
|
|
382
|
+
r["s-hn"] !== m && r["s-ol"] && (se(r).insertBefore(r, U(r)), r["s-ol"].remove(), r["s-ol"] = void 0, r["s-sh"] = void 0, N = !0), e && L(r, e);
|
|
204
383
|
}
|
|
205
384
|
x.$flags$ &= -2;
|
|
206
|
-
},
|
|
385
|
+
}, ee = (t, e, n, s, r, l) => {
|
|
207
386
|
let o = t["s-cr"] && t["s-cr"].parentNode || t, c;
|
|
208
|
-
for (o.shadowRoot && o.tagName === m && (o = o.shadowRoot);
|
|
209
|
-
s[
|
|
210
|
-
},
|
|
387
|
+
for (o.shadowRoot && o.tagName === m && (o = o.shadowRoot); r <= l; ++r)
|
|
388
|
+
s[r] && (c = O(null, n, r, t), c && (s[r].$elm$ = c, o.insertBefore(c, U(e))));
|
|
389
|
+
}, te = (t, e, n) => {
|
|
211
390
|
for (let s = e; s <= n; ++s) {
|
|
212
|
-
const
|
|
213
|
-
if (
|
|
214
|
-
const
|
|
215
|
-
|
|
391
|
+
const r = t[s];
|
|
392
|
+
if (r) {
|
|
393
|
+
const l = r.$elm$;
|
|
394
|
+
le(r), l && (R = !0, l["s-ol"] ? l["s-ol"].remove() : L(l, !0), l.remove());
|
|
216
395
|
}
|
|
217
396
|
}
|
|
218
|
-
},
|
|
219
|
-
let
|
|
220
|
-
for (;
|
|
397
|
+
}, xe = (t, e, n, s, r = !1) => {
|
|
398
|
+
let l = 0, o = 0, c = 0, i = 0, d = e.length - 1, u = e[0], a = e[d], $ = s.length - 1, f = s[0], g = s[$], v, y;
|
|
399
|
+
for (; l <= d && o <= $; )
|
|
221
400
|
if (u == null)
|
|
222
|
-
u = e[++
|
|
223
|
-
else if (f == null)
|
|
224
|
-
f = e[--d];
|
|
401
|
+
u = e[++l];
|
|
225
402
|
else if (a == null)
|
|
226
|
-
a =
|
|
227
|
-
else if (
|
|
228
|
-
|
|
229
|
-
else if (
|
|
230
|
-
|
|
231
|
-
else if (
|
|
232
|
-
|
|
233
|
-
else if (
|
|
234
|
-
(
|
|
235
|
-
else if (
|
|
236
|
-
(u.$tag$ === "slot" ||
|
|
403
|
+
a = e[--d];
|
|
404
|
+
else if (f == null)
|
|
405
|
+
f = s[++o];
|
|
406
|
+
else if (g == null)
|
|
407
|
+
g = s[--$];
|
|
408
|
+
else if (E(u, f, r))
|
|
409
|
+
T(u, f, r), u = e[++l], f = s[++o];
|
|
410
|
+
else if (E(a, g, r))
|
|
411
|
+
T(a, g, r), a = e[--d], g = s[--$];
|
|
412
|
+
else if (E(u, g, r))
|
|
413
|
+
(u.$tag$ === "slot" || g.$tag$ === "slot") && L(u.$elm$.parentNode, !1), T(u, g, r), t.insertBefore(u.$elm$, a.$elm$.nextSibling), u = e[++l], g = s[--$];
|
|
414
|
+
else if (E(a, f, r))
|
|
415
|
+
(u.$tag$ === "slot" || g.$tag$ === "slot") && L(a.$elm$.parentNode, !1), T(a, f, r), t.insertBefore(a.$elm$, u.$elm$), a = e[--d], f = s[++o];
|
|
237
416
|
else {
|
|
238
|
-
for (c = -1, i =
|
|
239
|
-
if (e[i] && e[i].$key$ !== null && e[i].$key$ ===
|
|
417
|
+
for (c = -1, i = l; i <= d; ++i)
|
|
418
|
+
if (e[i] && e[i].$key$ !== null && e[i].$key$ === f.$key$) {
|
|
240
419
|
c = i;
|
|
241
420
|
break;
|
|
242
421
|
}
|
|
243
|
-
c >= 0 ? (y = e[c], y.$tag$ !==
|
|
422
|
+
c >= 0 ? (y = e[c], y.$tag$ !== f.$tag$ ? v = O(e && e[o], n, c, t) : (T(y, f, r), e[c] = void 0, v = y.$elm$), f = s[++o]) : (v = O(e && e[o], n, o, t), f = s[++o]), v && se(u.$elm$).insertBefore(v, U(u.$elm$));
|
|
244
423
|
}
|
|
245
|
-
|
|
246
|
-
},
|
|
247
|
-
const s = e.$elm$ = t.$elm$,
|
|
424
|
+
l > d ? ee(t, s[$ + 1] == null ? null : s[$ + 1].$elm$, n, s, o, $) : o > $ && te(e, l, d);
|
|
425
|
+
}, E = (t, e, n = !1) => t.$tag$ === e.$tag$ ? t.$tag$ === "slot" ? t.$name$ === e.$name$ : n ? !0 : t.$key$ === e.$key$ : !1, U = (t) => t && t["s-ol"] || t, se = (t) => (t["s-ol"] ? t["s-ol"] : t).parentNode, T = (t, e, n = !1) => {
|
|
426
|
+
const s = e.$elm$ = t.$elm$, r = t.$children$, l = e.$children$, o = e.$tag$, c = e.$text$;
|
|
248
427
|
let i;
|
|
249
|
-
c === null ? (h = o === "svg" ? !0 : o === "foreignObject" ? !1 : h, o === "slot" && !
|
|
250
|
-
},
|
|
428
|
+
c === null ? (h = o === "svg" ? !0 : o === "foreignObject" ? !1 : h, o === "slot" && !B || V(t, e, h), r !== null && l !== null ? xe(s, r, e, l, n) : l !== null ? (t.$text$ !== null && (s.textContent = ""), ee(s, null, e, l, 0, l.length - 1)) : r !== null && te(r, 0, r.length - 1), h && o === "svg" && (h = !1)) : (i = s["s-cr"]) ? i.parentNode.textContent = c : t.$text$ !== c && (s.data = c);
|
|
429
|
+
}, ne = (t) => {
|
|
251
430
|
const e = t.childNodes;
|
|
252
431
|
for (const n of e)
|
|
253
432
|
if (n.nodeType === 1) {
|
|
254
433
|
if (n["s-sr"]) {
|
|
255
434
|
const s = n["s-sn"];
|
|
256
435
|
n.hidden = !1;
|
|
257
|
-
for (const
|
|
258
|
-
if (
|
|
259
|
-
if (
|
|
260
|
-
if (
|
|
436
|
+
for (const r of e)
|
|
437
|
+
if (r !== n) {
|
|
438
|
+
if (r["s-hn"] !== n["s-hn"] || s !== "") {
|
|
439
|
+
if (r.nodeType === 1 && (s === r.getAttribute("slot") || s === r["s-sn"])) {
|
|
261
440
|
n.hidden = !0;
|
|
262
441
|
break;
|
|
263
442
|
}
|
|
264
|
-
} else if (
|
|
443
|
+
} else if (r.nodeType === 1 || r.nodeType === 3 && r.textContent.trim() !== "") {
|
|
265
444
|
n.hidden = !0;
|
|
266
445
|
break;
|
|
267
446
|
}
|
|
268
447
|
}
|
|
269
448
|
}
|
|
270
|
-
|
|
449
|
+
ne(n);
|
|
271
450
|
}
|
|
272
|
-
},
|
|
451
|
+
}, b = [], re = (t) => {
|
|
273
452
|
let e, n, s;
|
|
274
|
-
for (const
|
|
275
|
-
if (
|
|
453
|
+
for (const r of t.childNodes) {
|
|
454
|
+
if (r["s-sr"] && (e = r["s-cr"]) && e.parentNode) {
|
|
276
455
|
n = e.parentNode.childNodes;
|
|
277
|
-
const
|
|
456
|
+
const l = r["s-sn"];
|
|
278
457
|
for (s = n.length - 1; s >= 0; s--)
|
|
279
|
-
if (e = n[s], !e["s-cn"] && !e["s-nr"] && e["s-hn"] !==
|
|
280
|
-
if (
|
|
281
|
-
let o =
|
|
282
|
-
|
|
283
|
-
$slotRefNode$:
|
|
458
|
+
if (e = n[s], !e["s-cn"] && !e["s-nr"] && e["s-hn"] !== r["s-hn"] && !_.experimentalSlotFixes)
|
|
459
|
+
if (w(e, l)) {
|
|
460
|
+
let o = b.find((c) => c.$nodeToRelocate$ === e);
|
|
461
|
+
R = !0, e["s-sn"] = e["s-sn"] || l, o ? (o.$nodeToRelocate$["s-sh"] = r["s-hn"], o.$slotRefNode$ = r) : (e["s-sh"] = r["s-hn"], b.push({
|
|
462
|
+
$slotRefNode$: r,
|
|
284
463
|
$nodeToRelocate$: e
|
|
285
|
-
})), e["s-sr"] &&
|
|
286
|
-
|
|
464
|
+
})), e["s-sr"] && b.map((c) => {
|
|
465
|
+
w(c.$nodeToRelocate$, e["s-sn"]) && (o = b.find((i) => i.$nodeToRelocate$ === e), o && !c.$slotRefNode$ && (c.$slotRefNode$ = o.$slotRefNode$));
|
|
287
466
|
});
|
|
288
467
|
} else
|
|
289
|
-
|
|
468
|
+
b.some((o) => o.$nodeToRelocate$ === e) || b.push({
|
|
290
469
|
$nodeToRelocate$: e
|
|
291
470
|
});
|
|
292
471
|
}
|
|
293
|
-
|
|
472
|
+
r.nodeType === 1 && re(r);
|
|
294
473
|
}
|
|
295
|
-
},
|
|
296
|
-
t.$attrs$ && t.$attrs$.ref && t.$attrs$.ref(null), t.$children$ && t.$children$.map(
|
|
297
|
-
},
|
|
298
|
-
var s,
|
|
299
|
-
const i = t.$hostElement$, d = t.$cmpMeta$, u = t.$vnode$ ||
|
|
300
|
-
if (m = i.tagName, d.$attrsToReflect$ && (
|
|
301
|
-
for (const $ of Object.keys(
|
|
302
|
-
i.hasAttribute($) && !["key", "ref", "style", "class"].includes($) && (
|
|
303
|
-
|
|
474
|
+
}, w = (t, e) => t.nodeType === 1 ? t.getAttribute("slot") === null && e === "" || t.getAttribute("slot") === e : t["s-sn"] === e ? !0 : e === "", le = (t) => {
|
|
475
|
+
t.$attrs$ && t.$attrs$.ref && t.$attrs$.ref(null), t.$children$ && t.$children$.map(le);
|
|
476
|
+
}, Le = (t, e, n = !1) => {
|
|
477
|
+
var s, r, l, o, c;
|
|
478
|
+
const i = t.$hostElement$, d = t.$cmpMeta$, u = t.$vnode$ || M(null, null), a = be(e) ? e : Y(null, null, e);
|
|
479
|
+
if (m = i.tagName, d.$attrsToReflect$ && (a.$attrs$ = a.$attrs$ || {}, d.$attrsToReflect$.map(([$, f]) => a.$attrs$[f] = i[$])), n && a.$attrs$)
|
|
480
|
+
for (const $ of Object.keys(a.$attrs$))
|
|
481
|
+
i.hasAttribute($) && !["key", "ref", "style", "class"].includes($) && (a.$attrs$[$] = i[$]);
|
|
482
|
+
a.$tag$ = null, a.$flags$ |= 4, t.$vnode$ = a, a.$elm$ = u.$elm$ = i.shadowRoot || i, k = i["s-sc"], B = (d.$flags$ & 1) !== 0, D = i["s-cr"], R = !1, T(u, a, n);
|
|
304
483
|
{
|
|
305
|
-
if (x.$flags$ |= 1,
|
|
306
|
-
|
|
307
|
-
for (const $ of
|
|
308
|
-
const
|
|
309
|
-
if (!
|
|
310
|
-
const
|
|
311
|
-
|
|
484
|
+
if (x.$flags$ |= 1, N) {
|
|
485
|
+
re(a.$elm$);
|
|
486
|
+
for (const $ of b) {
|
|
487
|
+
const f = $.$nodeToRelocate$;
|
|
488
|
+
if (!f["s-ol"]) {
|
|
489
|
+
const g = j.createTextNode("");
|
|
490
|
+
g["s-nr"] = f, f.parentNode.insertBefore(f["s-ol"] = g, f);
|
|
312
491
|
}
|
|
313
492
|
}
|
|
314
|
-
for (const $ of
|
|
315
|
-
const
|
|
316
|
-
if (
|
|
317
|
-
const v =
|
|
318
|
-
let y =
|
|
493
|
+
for (const $ of b) {
|
|
494
|
+
const f = $.$nodeToRelocate$, g = $.$slotRefNode$;
|
|
495
|
+
if (g) {
|
|
496
|
+
const v = g.parentNode;
|
|
497
|
+
let y = g.nextSibling;
|
|
319
498
|
{
|
|
320
|
-
let
|
|
321
|
-
for (;
|
|
322
|
-
let
|
|
323
|
-
if (
|
|
324
|
-
y =
|
|
499
|
+
let A = (s = f["s-ol"]) === null || s === void 0 ? void 0 : s.previousSibling;
|
|
500
|
+
for (; A; ) {
|
|
501
|
+
let S = (r = A["s-nr"]) !== null && r !== void 0 ? r : null;
|
|
502
|
+
if (S && S["s-sn"] === f["s-sn"] && v === S.parentNode && (S = S.nextSibling, !S || !S["s-nr"])) {
|
|
503
|
+
y = S;
|
|
325
504
|
break;
|
|
326
505
|
}
|
|
327
|
-
|
|
506
|
+
A = A.previousSibling;
|
|
328
507
|
}
|
|
329
508
|
}
|
|
330
|
-
(!y && v !==
|
|
509
|
+
(!y && v !== f.parentNode || f.nextSibling !== y) && f !== y && (!f["s-hn"] && f["s-ol"] && (f["s-hn"] = f["s-ol"].parentNode.nodeName), v.insertBefore(f, y), f.nodeType === 1 && (f.hidden = (l = f["s-ih"]) !== null && l !== void 0 ? l : !1)), f && typeof g["s-rf"] == "function" && g["s-rf"](f);
|
|
331
510
|
} else
|
|
332
|
-
|
|
511
|
+
f.nodeType === 1 && (n && (f["s-ih"] = (o = f.hidden) !== null && o !== void 0 ? o : !1), f.hidden = !0);
|
|
333
512
|
}
|
|
334
513
|
}
|
|
335
|
-
|
|
514
|
+
R && ne(a.$elm$), x.$flags$ &= -2, b.length = 0;
|
|
336
515
|
}
|
|
337
|
-
if (
|
|
338
|
-
for (const $ of
|
|
516
|
+
if (_.experimentalScopedSlotChanges && d.$flags$ & 2)
|
|
517
|
+
for (const $ of a.$elm$.childNodes)
|
|
339
518
|
$["s-hn"] !== m && !$["s-sh"] && (n && $["s-ih"] == null && ($["s-ih"] = (c = $.hidden) !== null && c !== void 0 ? c : !1), $.hidden = !0);
|
|
340
|
-
|
|
341
|
-
},
|
|
342
|
-
|
|
519
|
+
D = void 0;
|
|
520
|
+
}, G = (t, e) => e in t, C = typeof window < "u" ? window : {}, j = C.document || { head: {} };
|
|
521
|
+
C.HTMLElement;
|
|
343
522
|
const x = {
|
|
344
523
|
$flags$: 0,
|
|
345
524
|
$resourcesUrl$: "",
|
|
@@ -348,33 +527,33 @@ const x = {
|
|
|
348
527
|
ael: (t, e, n, s) => t.addEventListener(e, n, s),
|
|
349
528
|
rel: (t, e, n, s) => t.removeEventListener(e, n, s),
|
|
350
529
|
ce: (t, e) => new CustomEvent(t, e)
|
|
351
|
-
},
|
|
530
|
+
}, Ae = (t, e, n) => {
|
|
352
531
|
[null, void 0, "", !1].includes(n) || ["innerHTML", "style"].includes(e) || t.setAttribute(e, ["object", "function"].includes(typeof n) ? "/!\\ Object props are not rendered in the code example" : n);
|
|
353
|
-
},
|
|
532
|
+
}, oe = (t, e, n, s, r) => {
|
|
354
533
|
if (e && typeof e == "string") {
|
|
355
|
-
const
|
|
534
|
+
const l = document.createElement(e);
|
|
356
535
|
Object.keys(n || {}).forEach((o) => {
|
|
357
|
-
|
|
536
|
+
Ae(l, o, n[o]);
|
|
358
537
|
}), s == null || s.forEach((o) => {
|
|
359
|
-
|
|
360
|
-
}), n != null && n.innerHTML && (
|
|
538
|
+
oe(l, o.$tag$, o.$attrs$, o.$children$, o.$text$);
|
|
539
|
+
}), n != null && n.innerHTML && (l.innerHTML = n.innerHTML), t.appendChild(l);
|
|
361
540
|
}
|
|
362
|
-
|
|
363
|
-
},
|
|
541
|
+
r && (t.innerHTML = r);
|
|
542
|
+
}, Ge = (t, e) => {
|
|
364
543
|
const n = {};
|
|
365
544
|
if (typeof t != "object")
|
|
366
545
|
throw new Error("filterArgs - args isn't an object.");
|
|
367
546
|
for (const s in t)
|
|
368
547
|
if (!s.startsWith("slot")) {
|
|
369
|
-
const
|
|
370
|
-
(!e || !Object.keys(e).includes(s) || e[s] !==
|
|
548
|
+
const r = t[s], l = s.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
|
|
549
|
+
(!e || !Object.keys(e).includes(s) || e[s] !== r) && (n[l] = r);
|
|
371
550
|
}
|
|
372
551
|
return n;
|
|
373
|
-
},
|
|
374
|
-
var s,
|
|
552
|
+
}, Ie = (t, e) => {
|
|
553
|
+
var s, r;
|
|
375
554
|
const n = document.getElementById("storybook-root");
|
|
376
555
|
if (n)
|
|
377
|
-
return (
|
|
556
|
+
return (r = document.querySelector("[lang]")) == null || r.setAttribute("lang", ((s = e.globals) == null ? void 0 : s.locale) || "en"), Le(
|
|
378
557
|
{
|
|
379
558
|
$ancestorComponent$: void 0,
|
|
380
559
|
$flags$: 0,
|
|
@@ -387,125 +566,58 @@ const x = {
|
|
|
387
566
|
},
|
|
388
567
|
t(e)
|
|
389
568
|
), n.children[n.children.length - 1];
|
|
390
|
-
},
|
|
391
|
-
const
|
|
392
|
-
return
|
|
393
|
-
},
|
|
394
|
-
const e = { value: "2023", pattern: "yyyy" }, n = { value: "12", pattern: "mm" }, s = { value: "24", pattern: "dd" };
|
|
395
|
-
return be([e.value, n.value, s.value].join("-"), t).replace(e.value, e.pattern).replace(n.value, n.pattern).replace(s.value, s.pattern);
|
|
396
|
-
}, Ae = (t) => t.toISOString().split("T")[0], ve = (t, e, n) => {
|
|
397
|
-
const s = t.closest("[lang]"), l = Intl.NumberFormat.supportedLocalesOf(s == null ? void 0 : s.lang), r = l.length > 0 && typeof l[0] == "string" ? l[0] : navigator.language || n, o = r.split("-").shift();
|
|
398
|
-
return {
|
|
399
|
-
locale: r,
|
|
400
|
-
messages: e[o] || e[n]
|
|
401
|
-
};
|
|
402
|
-
}, Re = (t, e, n) => new Intl.NumberFormat(e, { style: "currency", currency: n }).format(t), Me = (t, e) => new Intl.NumberFormat(e).format(t), Se = /^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/, be = (t, e) => typeof t != "string" || t === "" || !Se.test(t) ? "" : new Intl.DateTimeFormat(e).format(new Date(t)), Oe = (t, e) => (n) => ve(n, t, e), je = (t = "", e = 10) => {
|
|
403
|
-
const n = new Uint8Array(e);
|
|
404
|
-
crypto.getRandomValues(n);
|
|
405
|
-
const s = Array.from(n).map((l) => l.toString(16).padStart(2, "0")).join("").slice(0, e);
|
|
406
|
-
return t !== "" ? `${t}-${s}` : s;
|
|
407
|
-
};
|
|
408
|
-
class Fe {
|
|
409
|
-
constructor(e = []) {
|
|
410
|
-
/**
|
|
411
|
-
* Available classes
|
|
412
|
-
*/
|
|
413
|
-
g(this, "classes");
|
|
414
|
-
/**
|
|
415
|
-
* Add class
|
|
416
|
-
* @param className - class name to add
|
|
417
|
-
*/
|
|
418
|
-
g(this, "add", (e) => {
|
|
419
|
-
this.has(e) || this.classes.push(e);
|
|
420
|
-
});
|
|
421
|
-
/**
|
|
422
|
-
* Delete class
|
|
423
|
-
* @param className - class name to delete
|
|
424
|
-
*/
|
|
425
|
-
g(this, "delete", (e) => {
|
|
426
|
-
const n = this.classes.indexOf(e);
|
|
427
|
-
n > -1 && this.classes.splice(n, 1);
|
|
428
|
-
});
|
|
429
|
-
/**
|
|
430
|
-
* Check if class exist in list
|
|
431
|
-
* @param className - class name to check
|
|
432
|
-
* @returns class name is in the list
|
|
433
|
-
*/
|
|
434
|
-
g(this, "has", (e) => this.classes.includes(e));
|
|
435
|
-
/**
|
|
436
|
-
* Join classes seperated by spaces
|
|
437
|
-
* @returns joined values
|
|
438
|
-
*/
|
|
439
|
-
g(this, "join", () => this.classes.join(" "));
|
|
440
|
-
this.classes = e;
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
const De = (t) => Array.isArray(t) && t.every((e) => typeof e == "string"), _e = (t, e) => e.includes(t == null ? void 0 : t.tagName.toLowerCase()), Be = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]), [identifier], mg-button', Ne = (t) => {
|
|
444
|
-
const e = se(t), n = ne(t);
|
|
445
|
-
return [t, ...e, ...n];
|
|
446
|
-
}, se = (t, e = []) => {
|
|
447
|
-
if (t.self !== t.top)
|
|
448
|
-
try {
|
|
449
|
-
const n = t.parent;
|
|
450
|
-
return n ? (e.push(n), se(n, e)) : e;
|
|
451
|
-
} catch (n) {
|
|
452
|
-
return console.error("Different hosts between iframes:", n), e;
|
|
453
|
-
}
|
|
454
|
-
return e;
|
|
455
|
-
}, ne = (t, e = []) => {
|
|
456
|
-
if (t.frames.length > 0)
|
|
457
|
-
for (const n of Array.from(t.frames))
|
|
458
|
-
e.push(n), ne(n, e);
|
|
459
|
-
return e;
|
|
460
|
-
}, He = (t) => typeof t == "string" && t.trim() !== "", Ce = (t) => typeof t == "string" ? t.toLocaleLowerCase().normalize("NFD").replaceAll(/[\u0300-\u036f]/g, "") : t, Pe = async (t) => t(), Ue = ({ disconnect: t, observe: e, takeRecords: n }) => {
|
|
569
|
+
}, Xe = ({ $tag$: t, $attrs$: e, $children$: n, $text$: s }) => {
|
|
570
|
+
const r = document.createElement("div");
|
|
571
|
+
return oe(r, t, e, n, s), r.innerHTML;
|
|
572
|
+
}, Ke = ({ disconnect: t, observe: e, takeRecords: n }) => {
|
|
461
573
|
class s {
|
|
462
|
-
constructor(
|
|
574
|
+
constructor(l) {
|
|
463
575
|
/**
|
|
464
576
|
*
|
|
465
577
|
*/
|
|
466
|
-
|
|
578
|
+
p(this, "disconnect", t);
|
|
467
579
|
/**
|
|
468
580
|
*
|
|
469
581
|
*/
|
|
470
|
-
|
|
582
|
+
p(this, "observe", e);
|
|
471
583
|
/**
|
|
472
584
|
*
|
|
473
585
|
*/
|
|
474
|
-
|
|
586
|
+
p(this, "takeRecords", n);
|
|
475
587
|
/**
|
|
476
588
|
*
|
|
477
589
|
*/
|
|
478
|
-
|
|
479
|
-
this.cb =
|
|
590
|
+
p(this, "cb");
|
|
591
|
+
this.cb = l;
|
|
480
592
|
}
|
|
481
593
|
}
|
|
482
|
-
return [window, global].forEach((
|
|
483
|
-
Object.defineProperty(
|
|
594
|
+
return [window, global].forEach((r) => {
|
|
595
|
+
Object.defineProperty(r, "MutationObserver", {
|
|
484
596
|
writable: !0,
|
|
485
597
|
configurable: !0,
|
|
486
598
|
value: s
|
|
487
599
|
});
|
|
488
600
|
}), s;
|
|
489
|
-
},
|
|
601
|
+
}, Qe = ({ disconnect: t, observe: e }) => {
|
|
490
602
|
class n {
|
|
491
|
-
constructor(
|
|
603
|
+
constructor(r) {
|
|
492
604
|
/**
|
|
493
605
|
*
|
|
494
606
|
*/
|
|
495
|
-
|
|
607
|
+
p(this, "disconnect", t);
|
|
496
608
|
/**
|
|
497
609
|
*
|
|
498
610
|
*/
|
|
499
|
-
|
|
611
|
+
p(this, "observe", e);
|
|
500
612
|
/**
|
|
501
613
|
*
|
|
502
614
|
*/
|
|
503
|
-
|
|
615
|
+
p(this, "unobserve");
|
|
504
616
|
/**
|
|
505
617
|
*
|
|
506
618
|
*/
|
|
507
|
-
|
|
508
|
-
this.cb =
|
|
619
|
+
p(this, "cb");
|
|
620
|
+
this.cb = r;
|
|
509
621
|
}
|
|
510
622
|
}
|
|
511
623
|
return [window, global].forEach((s) => {
|
|
@@ -516,18 +628,18 @@ const De = (t) => Array.isArray(t) && t.every((e) => typeof e == "string"), _e =
|
|
|
516
628
|
});
|
|
517
629
|
}), n;
|
|
518
630
|
};
|
|
519
|
-
class
|
|
631
|
+
class Ee extends Event {
|
|
520
632
|
constructor() {
|
|
521
633
|
super(...arguments);
|
|
522
634
|
/**
|
|
523
635
|
*
|
|
524
636
|
*/
|
|
525
637
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
526
|
-
|
|
638
|
+
p(this, "detail");
|
|
527
639
|
}
|
|
528
640
|
}
|
|
529
|
-
const
|
|
530
|
-
class t extends
|
|
641
|
+
const Je = () => {
|
|
642
|
+
class t extends Ee {
|
|
531
643
|
}
|
|
532
644
|
return [window, global].forEach((e) => {
|
|
533
645
|
Object.defineProperty(e, "SubmitEvent", {
|
|
@@ -538,28 +650,30 @@ const ze = () => {
|
|
|
538
650
|
}), t;
|
|
539
651
|
};
|
|
540
652
|
export {
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
653
|
+
Me as ClassList,
|
|
654
|
+
Oe as allItemsAreString,
|
|
655
|
+
Ne as cleanString,
|
|
656
|
+
Re as createID,
|
|
657
|
+
de as dateRegExp,
|
|
658
|
+
We as dateToString,
|
|
659
|
+
we as defineLocales,
|
|
660
|
+
Ge as filterArgs,
|
|
661
|
+
De as focusableElements,
|
|
662
|
+
Pe as getLocaleDatePattern,
|
|
663
|
+
I as getParentWindows,
|
|
664
|
+
Xe as getStoryHTML,
|
|
665
|
+
_e as getWindows,
|
|
666
|
+
Fe as isTagName,
|
|
667
|
+
Be as isValidString,
|
|
668
|
+
ze as localeCurrency,
|
|
669
|
+
ge as localeDate,
|
|
670
|
+
qe as localeNumber,
|
|
671
|
+
Ue as nextTick,
|
|
672
|
+
Ke as setupMutationObserverMock,
|
|
673
|
+
Qe as setupResizeObserverMock,
|
|
674
|
+
Je as setupSubmitEventMock,
|
|
675
|
+
Ie as stencilWrapper,
|
|
676
|
+
He as vsCodeGenerator,
|
|
677
|
+
Ce as webTypesGenerator
|
|
564
678
|
};
|
|
565
679
|
//# sourceMappingURL=index.es.js.map
|