@mgdis/mg-components 5.27.2 → 5.27.3
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/cjs/index-7bb96ccc.js +1636 -0
- package/dist/cjs/index-7bb96ccc.js.map +1 -0
- package/dist/cjs/{index-00072168.js → index-8e9b0d9b.js} +67 -27
- package/dist/cjs/index-8e9b0d9b.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mg-action-more_36.cjs.entry.js +123 -115
- package/dist/cjs/mg-action-more_36.cjs.entry.js.map +1 -1
- package/dist/cjs/mg-components.cjs.js +9 -9
- package/dist/cjs/mg-components.cjs.js.map +1 -1
- package/dist/cjs/mg-loader.cjs.entry.js +3 -3
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/molecules/menu/mg-menu/mg-menu.js +21 -18
- package/dist/collection/components/molecules/menu/mg-menu/mg-menu.js.map +1 -1
- package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.js +2 -1
- package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.js.map +1 -1
- package/dist/collection/components/molecules/mg-item-more/mg-item-more.js +4 -4
- package/dist/collection/components/molecules/mg-item-more/mg-item-more.js.map +1 -1
- package/dist/collection/components/molecules/mg-popover/mg-popover.js +6 -2
- package/dist/collection/components/molecules/mg-popover/mg-popover.js.map +1 -1
- package/dist/components/index.es.js +60 -20
- package/dist/components/index.es.js.map +1 -1
- package/dist/components/index2.js +2 -2
- package/dist/components/mg-action-more.js +2 -2
- package/dist/components/mg-badge2.js +3 -3
- package/dist/components/mg-button2.js +4 -4
- package/dist/components/mg-card2.js +2 -2
- package/dist/components/mg-details.js +2 -2
- package/dist/components/mg-form.js +3 -3
- package/dist/components/mg-icon2.js +2 -2
- package/dist/components/mg-illustrated-message.js +2 -2
- package/dist/components/mg-input-checkbox.js +4 -4
- package/dist/components/mg-input-date.js +11 -11
- package/dist/components/mg-input-numeric.js +5 -5
- package/dist/components/mg-input-password.js +3 -3
- package/dist/components/mg-input-radio.js +4 -4
- package/dist/components/mg-input-select2.js +6 -6
- package/dist/components/mg-input-text2.js +6 -6
- package/dist/components/mg-input-textarea.js +6 -6
- package/dist/components/mg-input-title2.js +2 -2
- package/dist/components/mg-input-toggle.js +4 -4
- package/dist/components/mg-input2.js +3 -3
- package/dist/components/mg-item-more2.js +26 -23
- package/dist/components/mg-item-more2.js.map +1 -1
- package/dist/components/mg-loader.js +2 -2
- package/dist/components/mg-menu-item2.js +8 -7
- package/dist/components/mg-menu-item2.js.map +1 -1
- package/dist/components/mg-message.js +3 -3
- package/dist/components/mg-modal.js +6 -6
- package/dist/components/mg-pagination2.js +2 -2
- package/dist/components/mg-panel.js +4 -4
- package/dist/components/mg-popover-content2.js +3 -3
- package/dist/components/mg-popover2.js +9 -5
- package/dist/components/mg-popover2.js.map +1 -1
- package/dist/components/mg-skip-links.js +2 -2
- package/dist/components/mg-tabs.js +6 -6
- package/dist/components/mg-tag.js +3 -3
- package/dist/components/mg-tooltip2.js +6 -6
- package/dist/esm/{index-8d5d1bfd.js → index-138ea119.js} +62 -22
- package/dist/esm/index-138ea119.js.map +1 -0
- package/dist/esm/index-c4faef56.js +1607 -0
- package/dist/esm/index-c4faef56.js.map +1 -0
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mg-action-more_36.entry.js +123 -115
- package/dist/esm/mg-action-more_36.entry.js.map +1 -1
- package/dist/esm/mg-components.js +10 -10
- package/dist/esm/mg-components.js.map +1 -1
- package/dist/esm/mg-loader.entry.js +3 -3
- package/dist/mg-components/mg-components.esm.js +1 -1
- package/dist/mg-components/mg-components.esm.js.map +1 -1
- package/dist/mg-components/p-284c8327.entry.js +2 -0
- package/dist/mg-components/p-284c8327.entry.js.map +1 -0
- package/dist/mg-components/p-4c68f6ea.js +3 -0
- package/dist/mg-components/p-4c68f6ea.js.map +1 -0
- package/dist/mg-components/{p-99e2f42a.entry.js → p-bac6ca1f.entry.js} +2 -2
- package/dist/mg-components/p-e9433a87.js +2 -0
- package/dist/mg-components/p-e9433a87.js.map +1 -0
- package/dist/types/components/molecules/menu/mg-menu/mg-menu.d.ts +1 -5
- package/ide/intellij/web-types.json +1 -1
- package/ide/vscode/html-custom-data.json +1 -1
- package/package.json +21 -21
- package/dist/cjs/index-00072168.js.map +0 -1
- package/dist/cjs/index-7e27c7ae.js +0 -2561
- package/dist/cjs/index-7e27c7ae.js.map +0 -1
- package/dist/esm/index-8d5d1bfd.js.map +0 -1
- package/dist/esm/index-e479d5ae.js +0 -2532
- package/dist/esm/index-e479d5ae.js.map +0 -1
- package/dist/mg-components/p-7315d4a6.js +0 -3
- package/dist/mg-components/p-7315d4a6.js.map +0 -1
- package/dist/mg-components/p-8800813b.js +0 -2
- package/dist/mg-components/p-8800813b.js.map +0 -1
- package/dist/mg-components/p-f9ac8927.entry.js +0 -2
- package/dist/mg-components/p-f9ac8927.entry.js.map +0 -1
- /package/dist/mg-components/{p-99e2f42a.entry.js.map → p-bac6ca1f.entry.js.map} +0 -0
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
const
|
|
1
|
+
var ae = Object.defineProperty;
|
|
2
|
+
var fe = (e, t, s) => t in e ? ae(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
|
|
3
|
+
var g = (e, t, s) => (fe(e, typeof t != "symbol" ? t + "" : t, s), s);
|
|
4
|
+
const Ne = (e = "", t = 10) => {
|
|
5
5
|
const s = new Uint8Array(t);
|
|
6
6
|
crypto.getRandomValues(s);
|
|
7
|
-
const r = Array.from(s).map((
|
|
7
|
+
const r = Array.from(s).map((l) => l.toString(16).padStart(2, "0")).join("").slice(0, t);
|
|
8
8
|
return e !== "" ? `${e}-${r}` : r;
|
|
9
9
|
};
|
|
10
|
-
class
|
|
10
|
+
class Be {
|
|
11
11
|
constructor(t = []) {
|
|
12
12
|
/**
|
|
13
13
|
* Available classes
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
g(this, "classes");
|
|
16
16
|
/**
|
|
17
17
|
* Add class
|
|
18
18
|
* @param className - class name to add
|
|
19
19
|
*/
|
|
20
|
-
|
|
20
|
+
g(this, "add", (t) => {
|
|
21
21
|
this.has(t) || this.classes.push(t);
|
|
22
22
|
});
|
|
23
23
|
/**
|
|
24
24
|
* Delete class
|
|
25
25
|
* @param className - class name to delete
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
g(this, "delete", (t) => {
|
|
28
28
|
const s = this.classes.indexOf(t);
|
|
29
29
|
s > -1 && this.classes.splice(s, 1);
|
|
30
30
|
});
|
|
@@ -33,16 +33,16 @@ class Oe {
|
|
|
33
33
|
* @param className - class name to check
|
|
34
34
|
* @returns class name is in the list
|
|
35
35
|
*/
|
|
36
|
-
|
|
36
|
+
g(this, "has", (t) => this.classes.includes(t));
|
|
37
37
|
/**
|
|
38
38
|
* Join classes seperated by spaces
|
|
39
39
|
* @returns joined values
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
g(this, "join", () => this.classes.join(" "));
|
|
42
42
|
this.classes = t;
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
const
|
|
45
|
+
const Ue = (e) => Array.isArray(e) && e.every((t) => typeof t == "string"), Ce = (e, t) => t.includes(e == null ? void 0 : e.tagName.toLowerCase()), He = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]), [identifier], mg-button', we = (e) => {
|
|
46
46
|
const t = X(e), s = K(e);
|
|
47
47
|
return [e, ...t, ...s];
|
|
48
48
|
}, X = (e, t = []) => {
|
|
@@ -59,17 +59,57 @@ const Fe = (e) => Array.isArray(e) && e.every((t) => typeof t == "string"), De =
|
|
|
59
59
|
for (const s of Array.from(e.frames))
|
|
60
60
|
t.push(s), K(s, t);
|
|
61
61
|
return t;
|
|
62
|
-
},
|
|
62
|
+
}, Pe = (e) => typeof e == "string" && e.trim() !== "", We = (e) => typeof e == "string" ? e.toLocaleLowerCase().normalize("NFD").replaceAll(/[\u0300-\u036f]/g, "") : e, ze = async (e) => e(), Ge = (e) => {
|
|
63
63
|
const t = { value: "2023", pattern: "yyyy" }, s = { value: "12", pattern: "mm" }, r = { value: "24", pattern: "dd" };
|
|
64
|
-
return
|
|
65
|
-
},
|
|
66
|
-
const r = e.closest("[lang]"),
|
|
64
|
+
return ge([t.value, s.value, r.value].join("-"), e).replace(t.value, t.pattern).replace(s.value, s.pattern).replace(r.value, r.pattern);
|
|
65
|
+
}, Xe = (e) => e.toISOString().split("T")[0], de = (e, t, s) => {
|
|
66
|
+
const r = e.closest("[lang]"), l = Intl.NumberFormat.supportedLocalesOf(r == null ? void 0 : r.lang), i = l.length > 0 && typeof l[0] == "string" ? l[0] : navigator.language || s, n = i.split("-").shift();
|
|
67
67
|
return {
|
|
68
|
-
locale:
|
|
69
|
-
messages: t[
|
|
68
|
+
locale: i,
|
|
69
|
+
messages: t[n] || t[s]
|
|
70
70
|
};
|
|
71
|
-
},
|
|
71
|
+
}, Ke = (e, t, s) => new Intl.NumberFormat(t, { style: "currency", currency: s }).format(e), Qe = (e, t, s = 0) => new Intl.NumberFormat(t, { minimumFractionDigits: s }).format(s > 0 ? Number(e == null ? void 0 : e.toFixed(s)) : e), pe = /^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/, ge = (e, t) => typeof e != "string" || e === "" || !pe.test(e) ? "" : new Intl.DateTimeFormat(t).format(new Date(e)), Je = (e, t) => (s) => de(s, e, t);
|
|
72
|
+
var ve = Object.defineProperty, he = (e, t) => {
|
|
73
|
+
for (var s in t)
|
|
74
|
+
ve(e, s, { get: t[s], enumerable: !0 });
|
|
75
|
+
}, Se = {};
|
|
76
|
+
he(Se, {
|
|
77
|
+
err: () => Z,
|
|
78
|
+
map: () => ke,
|
|
79
|
+
ok: () => D,
|
|
80
|
+
unwrap: () => Te,
|
|
81
|
+
unwrapErr: () => xe
|
|
82
|
+
});
|
|
83
|
+
var D = (e) => ({
|
|
84
|
+
isOk: !0,
|
|
85
|
+
isErr: !1,
|
|
86
|
+
value: e
|
|
87
|
+
}), Z = (e) => ({
|
|
88
|
+
isOk: !1,
|
|
89
|
+
isErr: !0,
|
|
90
|
+
value: e
|
|
91
|
+
});
|
|
92
|
+
function ke(e, t) {
|
|
93
|
+
if (e.isOk) {
|
|
94
|
+
const s = t(e.value);
|
|
95
|
+
return s instanceof Promise ? s.then((r) => D(r)) : D(s);
|
|
96
|
+
}
|
|
97
|
+
if (e.isErr) {
|
|
98
|
+
const s = e.value;
|
|
99
|
+
return Z(s);
|
|
100
|
+
}
|
|
101
|
+
throw "should never get here";
|
|
102
|
+
}
|
|
103
|
+
var Te = (e) => {
|
|
104
|
+
if (e.isOk)
|
|
105
|
+
return e.value;
|
|
106
|
+
throw e.value;
|
|
107
|
+
}, xe = (e) => {
|
|
108
|
+
if (e.isErr)
|
|
109
|
+
return e.value;
|
|
110
|
+
throw e.value;
|
|
111
|
+
};
|
|
72
112
|
|
|
73
|
-
export { Be as B, Ce as C,
|
|
113
|
+
export { Be as B, Ce as C, Ge as G, He as H, Je as J, Ke as K, Ne as N, Pe as P, Qe as Q, Ue as U, We as W, Xe as X, ge as g, pe as p, we as w, ze as z };
|
|
74
114
|
|
|
75
115
|
//# sourceMappingURL=index.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"index.es.js","mappings":"AAAA,IAAI,EAAE,GAAG,MAAM,CAAC,cAAc,CAAC;AAC/B,IAAI,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,UAAU,EAAE,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;AACjH,IAAI,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AAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAC1B,GAAG,CAAC;AACJ,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,IAAI,IAAI,CAAC,YAAY,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,KAAK,IAAI,IAAI,CAAC,YAAY,CAAC,CAAC,EAAE,EAAE,qBAAqB,EAAE,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,CAAC,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,+CAA+C,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,KAAK,OAAO,CAAC,IAAI,QAAQ,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,EAAE,GAAG,IAAI,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;;;;","names":[],"sources":["../stencil-helpers/dist/index.es.js"],"sourcesContent":["var ce = Object.defineProperty;\nvar ae = (e, t, s) => t in e ? ce(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;\nvar h = (e, t, s) => (ae(e, typeof t != \"symbol\" ? t + \"\" : t, s), s);\nconst Me = (e = \"\", t = 10) => {\n const s = new Uint8Array(t);\n crypto.getRandomValues(s);\n const r = Array.from(s).map((n) => n.toString(16).padStart(2, \"0\")).join(\"\").slice(0, t);\n return e !== \"\" ? `${e}-${r}` : r;\n};\nclass Oe {\n constructor(t = []) {\n /**\n * Available classes\n */\n h(this, \"classes\");\n /**\n * Add class\n * @param className - class name to add\n */\n h(this, \"add\", (t) => {\n this.has(t) || this.classes.push(t);\n });\n /**\n * Delete class\n * @param className - class name to delete\n */\n h(this, \"delete\", (t) => {\n const s = this.classes.indexOf(t);\n s > -1 && this.classes.splice(s, 1);\n });\n /**\n * Check if class exist in list\n * @param className - class name to check\n * @returns class name is in the list\n */\n h(this, \"has\", (t) => this.classes.includes(t));\n /**\n * Join classes seperated by spaces\n * @returns joined values\n */\n h(this, \"join\", () => this.classes.join(\" \"));\n this.classes = t;\n }\n}\nconst Fe = (e) => Array.isArray(e) && e.every((t) => typeof t == \"string\"), De = (e, t) => t.includes(e == null ? void 0 : e.tagName.toLowerCase()), _e = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"]), [identifier], mg-button', Be = (e) => {\n const t = X(e), s = K(e);\n return [e, ...t, ...s];\n}, X = (e, t = []) => {\n if (e.self !== e.top)\n try {\n const s = e.parent;\n return s ? (t.push(s), X(s, t)) : t;\n } catch (s) {\n return console.error(\"Different hosts between iframes:\", s), t;\n }\n return t;\n}, K = (e, t = []) => {\n if (e.frames.length > 0)\n for (const s of Array.from(e.frames))\n t.push(s), K(s, t);\n return t;\n}, Ne = (e) => typeof e == \"string\" && e.trim() !== \"\", Ue = (e) => typeof e == \"string\" ? e.toLocaleLowerCase().normalize(\"NFD\").replaceAll(/[\\u0300-\\u036f]/g, \"\") : e, Ce = async (e) => e(), Q = (e, t) => {\n if (!t)\n return;\n const s = t.split(\"/\");\n return `${e}${s.slice(2, s.length - 1).join(\"-\")}--docs`;\n}, fe = (e, t) => {\n if (t)\n return `${e}${t}`;\n}, J = (e) => {\n let t = e.overview ? `${e.overview}\n\n` : \"\";\n const s = e.props.filter(({ attr: n }) => n !== void 0);\n s.length && (t += `Attributes:\n`, t += s.map(({ attr: n, docs: l }) => `- \\`${n}\\`: ${l}\n`).join(\"\"), t += `\n`);\n const r = e.props.filter(({ attr: n }) => n === void 0);\n return r.length && (t += `Properties:\n`, t += r.map(({ name: n, docs: l }) => `- \\`${n}\\`: ${l}\n`).join(\"\"), t += `\n`), e.methods.length && (t += `Methods:\n`, t += e.methods.map(({ name: n, docs: l }) => `- \\`${n}\\`: ${l}\n`).join(\"\"), t += `\n`), e.events.length && (t += `Events:\n`, t += e.events.map(({ event: n, docs: l }) => `- \\`${n}\\`: ${l}\n`).join(\"\"), t += `\n`), e.listeners.length && (t += `Listeners:\n`, t += e.listeners.map(({ event: n }) => `- \\`${n}\\`\n`).join(\"\"), t += `\n`), e.slots.length && (t += `Slots:\n`, t += e.slots.map(({ name: n, docs: l }) => `- \\`${n}\\`: ${l}\n`).join(\"\"), t += `\n`), t;\n}, F = (e) => `${e.docs}\n\nType: \\`${e.type}\\``, He = (e, t, s, r) => ({\n $schema: \"https://json.schemastore.org/web-types\",\n name: e,\n version: t,\n \"description-markup\": \"markdown\",\n contributions: {\n html: {\n elements: s.components.map((n) => {\n const l = Q(r, n.filePath);\n return {\n name: n.tag,\n description: J(n),\n \"doc-url\": l,\n attributes: n.props.filter((o) => o.attr).map((o) => ({\n name: o.attr,\n description: F(o),\n \"doc-url\": l,\n value: {\n type: o.type,\n default: o.default,\n required: o.required\n }\n })),\n js: {\n properties: n.props.map((o) => ({\n name: o.name,\n description: F(o),\n \"doc-url\": l,\n value: {\n type: o.type,\n default: o.default,\n required: o.required\n }\n })),\n events: n.events.map((o) => ({\n name: o.event,\n description: o.docs\n }))\n }\n };\n })\n }\n }\n}), $e = (e, t, s) => {\n if (s)\n return [\n { name: \"Storybook\", url: Q(e, s) },\n { name: \"Sources\", url: fe(t, s) }\n ];\n}, ue = (e) => {\n if (!e.values.some(({ value: t }) => t === void 0))\n return e.values.map(({ value: t }) => ({ name: t }));\n}, Pe = (e, t, s, r) => ({\n version: e,\n tags: t.components.map((n) => {\n const l = $e(s, r, n.filePath);\n return {\n name: n.tag,\n description: J(n),\n attributes: n.props.map((o) => ({\n name: o.attr || o.name,\n description: F(o),\n values: ue(o),\n references: l\n })),\n references: l\n };\n }),\n globalAttributes: [],\n valueSets: []\n}), We = (e) => {\n const t = { value: \"2023\", pattern: \"yyyy\" }, s = { value: \"12\", pattern: \"mm\" }, r = { value: \"24\", pattern: \"dd\" };\n return pe([t.value, s.value, r.value].join(\"-\"), e).replace(t.value, t.pattern).replace(s.value, s.pattern).replace(r.value, r.pattern);\n}, ze = (e) => e.toISOString().split(\"T\")[0], de = (e, t, s) => {\n const r = e.closest(\"[lang]\"), n = Intl.NumberFormat.supportedLocalesOf(r == null ? void 0 : r.lang), l = n.length > 0 && typeof n[0] == \"string\" ? n[0] : navigator.language || s, o = l.split(\"-\").shift();\n return {\n locale: l,\n messages: t[o] || t[s]\n };\n}, qe = (e, t, s) => new Intl.NumberFormat(t, { style: \"currency\", currency: s }).format(e), we = (e, t, s = 0) => new Intl.NumberFormat(t, { minimumFractionDigits: s }).format(s > 0 ? Number(e == null ? void 0 : e.toFixed(s)) : e), ge = /^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$/, pe = (e, t) => typeof e != \"string\" || e === \"\" || !ge.test(e) ? \"\" : new Intl.DateTimeFormat(t).format(new Date(e)), Ge = (e, t) => (s) => de(s, e, t), _ = {\n allRenderFn: !1,\n cmpDidLoad: !0,\n cmpDidUnload: !1,\n cmpDidUpdate: !0,\n cmpDidRender: !0,\n cmpWillLoad: !0,\n cmpWillUpdate: !0,\n cmpWillRender: !0,\n connectedCallback: !0,\n disconnectedCallback: !0,\n element: !0,\n event: !0,\n hasRenderFn: !0,\n lifecycle: !0,\n hostListener: !0,\n hostListenerTargetWindow: !0,\n hostListenerTargetDocument: !0,\n hostListenerTargetBody: !0,\n hostListenerTargetParent: !1,\n hostListenerTarget: !0,\n member: !0,\n method: !0,\n mode: !0,\n observeAttribute: !0,\n prop: !0,\n propMutable: !0,\n reflect: !0,\n scoped: !0,\n shadowDom: !0,\n slot: !0,\n cssAnnotations: !0,\n state: !0,\n style: !0,\n formAssociated: !1,\n svg: !0,\n updatable: !0,\n vdomAttribute: !0,\n vdomXlink: !0,\n vdomClass: !0,\n vdomFunctional: !0,\n vdomKey: !0,\n vdomListener: !0,\n vdomRef: !0,\n vdomPropOrAttr: !0,\n vdomRender: !0,\n vdomStyle: !0,\n vdomText: !0,\n watchCallback: !0,\n taskQueue: !0,\n hotModuleReplacement: !1,\n isDebug: !1,\n isDev: !1,\n isTesting: !1,\n hydrateServerSide: !1,\n hydrateClientSide: !1,\n lifecycleDOMEvents: !1,\n lazyLoad: !1,\n profile: !1,\n slotRelocation: !0,\n // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior\n appendChildSlotFix: !1,\n // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior\n cloneNodeFix: !1,\n hydratedAttribute: !1,\n hydratedClass: !0,\n scriptDataOpts: !1,\n // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior\n scopedSlotTextContentFix: !1,\n // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field\n shadowDomShim: !1,\n // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior\n slotChildNodesFix: !1,\n invisiblePrehydration: !0,\n propBoolean: !0,\n propNumber: !0,\n propString: !0,\n constructableCSS: !0,\n cmpShouldUpdate: !0,\n devTools: !1,\n shadowDelegatesFocus: !0,\n initializeNextTick: !1,\n asyncLoading: !1,\n asyncQueue: !1,\n transformTagName: !1,\n attachStyles: !0,\n // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior\n experimentalSlotFixes: !1\n};\nlet k, D, x, B = !1, R = !1, N = !1, y = !1;\nconst H = \"http://www.w3.org/1999/xlink\", P = {}, he = \"http://www.w3.org/2000/svg\", ye = \"http://www.w3.org/1999/xhtml\", ve = (e) => e != null, Y = (e) => (e = typeof e, e === \"object\" || e === \"function\"), Z = (e, t, ...s) => {\n let r = null, n = null, l = null, o = !1, c = !1;\n const i = [], d = (f) => {\n for (let $ = 0; $ < f.length; $++)\n r = f[$], Array.isArray(r) ? d(r) : r != null && typeof r != \"boolean\" && ((o = typeof e != \"function\" && !Y(r)) && (r = String(r)), o && c ? i[i.length - 1].$text$ += r : i.push(o ? M(null, r) : r), c = o);\n };\n if (d(s), t) {\n t.key && (n = t.key), t.name && (l = t.name);\n {\n const f = t.className || t.class;\n f && (t.class = typeof f != \"object\" ? f : Object.keys(f).filter(($) => f[$]).join(\" \"));\n }\n }\n if (typeof e == \"function\")\n return e(t === null ? {} : t, i, ke);\n const u = M(e, null);\n return u.$attrs$ = t, i.length > 0 && (u.$children$ = i), u.$key$ = n, u.$name$ = l, u;\n}, M = (e, t) => {\n const s = {\n $flags$: 0,\n $tag$: e,\n $text$: t,\n $elm$: null,\n $children$: null\n };\n return s.$attrs$ = null, s.$key$ = null, s.$name$ = null, s;\n}, be = {}, Se = (e) => e && e.$tag$ === be, ke = {\n forEach: (e, t) => e.map(W).forEach(t),\n map: (e, t) => e.map(W).map(t).map(Te)\n}, W = (e) => ({\n vattrs: e.$attrs$,\n vchildren: e.$children$,\n vkey: e.$key$,\n vname: e.$name$,\n vtag: e.$tag$,\n vtext: e.$text$\n}), Te = (e) => {\n if (typeof e.vtag == \"function\") {\n const s = Object.assign({}, e.vattrs);\n return e.vkey && (s.key = e.vkey), e.vname && (s.name = e.vname), Z(e.vtag, s, ...e.vchildren || []);\n }\n const t = M(e.vtag, e.vtext);\n return t.$attrs$ = e.vattrs, t.$children$ = e.vchildren, t.$key$ = e.vkey, t.$name$ = e.vname, t;\n}, z = (e, t, s, r, n, l) => {\n if (s !== r) {\n let o = I(e, t), c = t.toLowerCase();\n if (t === \"class\") {\n const i = e.classList, d = q(s), u = q(r);\n i.remove(...d.filter((f) => f && !u.includes(f))), i.add(...u.filter((f) => f && !d.includes(f)));\n } else if (t === \"style\") {\n for (const i in s)\n (!r || r[i] == null) && (i.includes(\"-\") ? e.style.removeProperty(i) : e.style[i] = \"\");\n for (const i in r)\n (!s || r[i] !== s[i]) && (i.includes(\"-\") ? e.style.setProperty(i, r[i]) : e.style[i] = r[i]);\n } else if (t !== \"key\")\n if (t === \"ref\")\n r && r(e);\n else if (!e.__lookupSetter__(t) && t[0] === \"o\" && t[1] === \"n\") {\n if (t[2] === \"-\" ? t = t.slice(3) : I(C, c) ? t = c.slice(2) : t = c[2] + t.slice(3), s || r) {\n const i = t.endsWith(V);\n t = t.replace(me, \"\"), s && m.rel(e, t, s, i), r && m.ael(e, t, r, i);\n }\n } else {\n const i = Y(r);\n if ((o || i && r !== null) && !n)\n try {\n if (e.tagName.includes(\"-\"))\n e[t] = r;\n else {\n const u = r ?? \"\";\n t === \"list\" ? o = !1 : (s == null || e[t] != u) && (e[t] = u);\n }\n } catch {\n }\n let d = !1;\n c !== (c = c.replace(/^xlink\\:?/, \"\")) && (t = c, d = !0), r == null || r === !1 ? (r !== !1 || e.getAttribute(t) === \"\") && (d ? e.removeAttributeNS(H, t) : e.removeAttribute(t)) : (!o || l & 4 || n) && !i && (r = r === !0 ? \"\" : r, d ? e.setAttributeNS(H, t, r) : e.setAttribute(t, r));\n }\n }\n}, xe = /\\s/, q = (e) => e ? e.split(xe) : [], V = \"Capture\", me = new RegExp(V + \"$\"), ee = (e, t, s, r) => {\n const n = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, l = e && e.$attrs$ || P, o = t.$attrs$ || P;\n for (r of w(Object.keys(l)))\n r in o || z(n, r, l[r], void 0, s, t.$flags$);\n for (r of w(Object.keys(o)))\n z(n, r, l[r], o[r], s, t.$flags$);\n};\nfunction w(e) {\n return e.includes(\"ref\") ? (\n // we need to sort these to ensure that `'ref'` is the last attr\n [...e.filter((t) => t !== \"ref\"), \"ref\"]\n ) : (\n // no need to sort, return the original array\n e\n );\n}\nconst O = (e, t, s, r) => {\n var n;\n const l = t.$children$[s];\n let o = 0, c, i, d;\n if (B || (N = !0, l.$tag$ === \"slot\" && (k && r.classList.add(k + \"-s\"), l.$flags$ |= l.$children$ ? (\n // slot element has fallback content\n 2\n ) : (\n // slot element does not have fallback content\n 1\n ))), l.$text$ !== null)\n c = l.$elm$ = j.createTextNode(l.$text$);\n else if (l.$flags$ & 1)\n c = l.$elm$ = j.createTextNode(\"\");\n else {\n if (y || (y = l.$tag$ === \"svg\"), c = l.$elm$ = j.createElementNS(y ? he : ye, l.$flags$ & 2 ? \"slot-fb\" : l.$tag$), y && l.$tag$ === \"foreignObject\" && (y = !1), ee(null, l, y), ve(k) && c[\"s-si\"] !== k && c.classList.add(c[\"s-si\"] = k), l.$children$)\n for (o = 0; o < l.$children$.length; ++o)\n i = O(e, l, o, c), i && c.appendChild(i);\n l.$tag$ === \"svg\" ? y = !1 : c.tagName === \"foreignObject\" && (y = !0);\n }\n return c[\"s-hn\"] = x, l.$flags$ & 3 && (c[\"s-sr\"] = !0, c[\"s-cr\"] = D, c[\"s-sn\"] = l.$name$ || \"\", c[\"s-rf\"] = (n = l.$attrs$) === null || n === void 0 ? void 0 : n.ref, d = e && e.$children$ && e.$children$[s], d && d.$tag$ === l.$tag$ && e.$elm$ && A(e.$elm$, !1)), c;\n}, A = (e, t) => {\n m.$flags$ |= 1;\n const s = Array.from(e.childNodes);\n if (e[\"s-sr\"] && _.experimentalSlotFixes) {\n let r = e;\n for (; r = r.nextSibling; )\n r && r[\"s-sn\"] === e[\"s-sn\"] && r[\"s-sh\"] === x && s.push(r);\n }\n for (let r = s.length - 1; r >= 0; r--) {\n const n = s[r];\n n[\"s-hn\"] !== x && n[\"s-ol\"] && (re(n).insertBefore(n, U(n)), n[\"s-ol\"].remove(), n[\"s-ol\"] = void 0, n[\"s-sh\"] = void 0, N = !0), t && A(n, t);\n }\n m.$flags$ &= -2;\n}, te = (e, t, s, r, n, l) => {\n let o = e[\"s-cr\"] && e[\"s-cr\"].parentNode || e, c;\n for (o.shadowRoot && o.tagName === x && (o = o.shadowRoot); n <= l; ++n)\n r[n] && (c = O(null, s, n, e), c && (r[n].$elm$ = c, o.insertBefore(c, U(t))));\n}, se = (e, t, s) => {\n for (let r = t; r <= s; ++r) {\n const n = e[r];\n if (n) {\n const l = n.$elm$;\n oe(n), l && (R = !0, l[\"s-ol\"] ? l[\"s-ol\"].remove() : A(l, !0), l.remove());\n }\n }\n}, Ae = (e, t, s, r, n = !1) => {\n let l = 0, o = 0, c = 0, i = 0, d = t.length - 1, u = t[0], f = t[d], $ = r.length - 1, a = r[0], g = r[$], b, v;\n for (; l <= d && o <= $; )\n if (u == null)\n u = t[++l];\n else if (f == null)\n f = t[--d];\n else if (a == null)\n a = r[++o];\n else if (g == null)\n g = r[--$];\n else if (E(u, a, n))\n T(u, a, n), u = t[++l], a = r[++o];\n else if (E(f, g, n))\n T(f, g, n), f = t[--d], g = r[--$];\n else if (E(u, g, n))\n (u.$tag$ === \"slot\" || g.$tag$ === \"slot\") && A(u.$elm$.parentNode, !1), T(u, g, n), e.insertBefore(u.$elm$, f.$elm$.nextSibling), u = t[++l], g = r[--$];\n else if (E(f, a, n))\n (u.$tag$ === \"slot\" || g.$tag$ === \"slot\") && A(f.$elm$.parentNode, !1), T(f, a, n), e.insertBefore(f.$elm$, u.$elm$), f = t[--d], a = r[++o];\n else {\n for (c = -1, i = l; i <= d; ++i)\n if (t[i] && t[i].$key$ !== null && t[i].$key$ === a.$key$) {\n c = i;\n break;\n }\n c >= 0 ? (v = t[c], v.$tag$ !== a.$tag$ ? b = O(t && t[o], s, c, e) : (T(v, a, n), t[c] = void 0, b = v.$elm$), a = r[++o]) : (b = O(t && t[o], s, o, e), a = r[++o]), b && re(u.$elm$).insertBefore(b, U(u.$elm$));\n }\n l > d ? te(e, r[$ + 1] == null ? null : r[$ + 1].$elm$, s, r, o, $) : o > $ && se(t, l, d);\n}, E = (e, t, s = !1) => e.$tag$ === t.$tag$ ? e.$tag$ === \"slot\" ? e.$name$ === t.$name$ : s ? !0 : e.$key$ === t.$key$ : !1, U = (e) => e && e[\"s-ol\"] || e, re = (e) => (e[\"s-ol\"] ? e[\"s-ol\"] : e).parentNode, T = (e, t, s = !1) => {\n const r = t.$elm$ = e.$elm$, n = e.$children$, l = t.$children$, o = t.$tag$, c = t.$text$;\n let i;\n c === null ? (y = o === \"svg\" ? !0 : o === \"foreignObject\" ? !1 : y, o === \"slot\" && !B || ee(e, t, y), n !== null && l !== null ? Ae(r, n, t, l, s) : l !== null ? (e.$text$ !== null && (r.textContent = \"\"), te(r, null, t, l, 0, l.length - 1)) : n !== null && se(n, 0, n.length - 1), y && o === \"svg\" && (y = !1)) : (i = r[\"s-cr\"]) ? i.parentNode.textContent = c : e.$text$ !== c && (r.data = c);\n}, ne = (e) => {\n const t = e.childNodes;\n for (const s of t)\n if (s.nodeType === 1) {\n if (s[\"s-sr\"]) {\n const r = s[\"s-sn\"];\n s.hidden = !1;\n for (const n of t)\n if (n !== s) {\n if (n[\"s-hn\"] !== s[\"s-hn\"] || r !== \"\") {\n if (n.nodeType === 1 && (r === n.getAttribute(\"slot\") || r === n[\"s-sn\"])) {\n s.hidden = !0;\n break;\n }\n } else if (n.nodeType === 1 || n.nodeType === 3 && n.textContent.trim() !== \"\") {\n s.hidden = !0;\n break;\n }\n }\n }\n ne(s);\n }\n}, S = [], le = (e) => {\n let t, s, r;\n for (const n of e.childNodes) {\n if (n[\"s-sr\"] && (t = n[\"s-cr\"]) && t.parentNode) {\n s = t.parentNode.childNodes;\n const l = n[\"s-sn\"];\n for (r = s.length - 1; r >= 0; r--)\n if (t = s[r], !t[\"s-cn\"] && !t[\"s-nr\"] && t[\"s-hn\"] !== n[\"s-hn\"] && !_.experimentalSlotFixes)\n if (G(t, l)) {\n let o = S.find((c) => c.$nodeToRelocate$ === t);\n R = !0, t[\"s-sn\"] = t[\"s-sn\"] || l, o ? (o.$nodeToRelocate$[\"s-sh\"] = n[\"s-hn\"], o.$slotRefNode$ = n) : (t[\"s-sh\"] = n[\"s-hn\"], S.push({\n $slotRefNode$: n,\n $nodeToRelocate$: t\n })), t[\"s-sr\"] && S.map((c) => {\n G(c.$nodeToRelocate$, t[\"s-sn\"]) && (o = S.find((i) => i.$nodeToRelocate$ === t), o && !c.$slotRefNode$ && (c.$slotRefNode$ = o.$slotRefNode$));\n });\n } else\n S.some((o) => o.$nodeToRelocate$ === t) || S.push({\n $nodeToRelocate$: t\n });\n }\n n.nodeType === 1 && le(n);\n }\n}, G = (e, t) => e.nodeType === 1 ? e.getAttribute(\"slot\") === null && t === \"\" || e.getAttribute(\"slot\") === t : e[\"s-sn\"] === t ? !0 : t === \"\", oe = (e) => {\n e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map(oe);\n}, Le = (e, t, s = !1) => {\n var r, n, l, o, c;\n const i = e.$hostElement$, d = e.$cmpMeta$, u = e.$vnode$ || M(null, null), f = Se(t) ? t : Z(null, null, t);\n if (x = i.tagName, d.$attrsToReflect$ && (f.$attrs$ = f.$attrs$ || {}, d.$attrsToReflect$.map(([$, a]) => f.$attrs$[a] = i[$])), s && f.$attrs$)\n for (const $ of Object.keys(f.$attrs$))\n i.hasAttribute($) && ![\"key\", \"ref\", \"style\", \"class\"].includes($) && (f.$attrs$[$] = i[$]);\n f.$tag$ = null, f.$flags$ |= 4, e.$vnode$ = f, f.$elm$ = u.$elm$ = i.shadowRoot || i, k = i[\"s-sc\"], B = (d.$flags$ & 1) !== 0, D = i[\"s-cr\"], R = !1, T(u, f, s);\n {\n if (m.$flags$ |= 1, N) {\n le(f.$elm$);\n for (const $ of S) {\n const a = $.$nodeToRelocate$;\n if (!a[\"s-ol\"]) {\n const g = j.createTextNode(\"\");\n g[\"s-nr\"] = a, a.parentNode.insertBefore(a[\"s-ol\"] = g, a);\n }\n }\n for (const $ of S) {\n const a = $.$nodeToRelocate$, g = $.$slotRefNode$;\n if (g) {\n const b = g.parentNode;\n let v = g.nextSibling;\n {\n let L = (r = a[\"s-ol\"]) === null || r === void 0 ? void 0 : r.previousSibling;\n for (; L; ) {\n let p = (n = L[\"s-nr\"]) !== null && n !== void 0 ? n : null;\n if (p && p[\"s-sn\"] === a[\"s-sn\"] && b === p.parentNode) {\n for (p = p.nextSibling; p === a || p != null && p[\"s-sr\"]; )\n p = p == null ? void 0 : p.nextSibling;\n if (!p || !p[\"s-nr\"]) {\n v = p;\n break;\n }\n }\n L = L.previousSibling;\n }\n }\n (!v && b !== a.parentNode || a.nextSibling !== v) && a !== v && (!a[\"s-hn\"] && a[\"s-ol\"] && (a[\"s-hn\"] = a[\"s-ol\"].parentNode.nodeName), b.insertBefore(a, v), a.nodeType === 1 && (a.hidden = (l = a[\"s-ih\"]) !== null && l !== void 0 ? l : !1)), a && typeof g[\"s-rf\"] == \"function\" && g[\"s-rf\"](a);\n } else\n a.nodeType === 1 && (s && (a[\"s-ih\"] = (o = a.hidden) !== null && o !== void 0 ? o : !1), a.hidden = !0);\n }\n }\n R && ne(f.$elm$), m.$flags$ &= -2, S.length = 0;\n }\n if (_.experimentalScopedSlotChanges && d.$flags$ & 2)\n for (const $ of f.$elm$.childNodes)\n $[\"s-hn\"] !== x && !$[\"s-sh\"] && (s && $[\"s-ih\"] == null && ($[\"s-ih\"] = (c = $.hidden) !== null && c !== void 0 ? c : !1), $.hidden = !0);\n D = void 0;\n}, I = (e, t) => t in e, C = typeof window < \"u\" ? window : {}, j = C.document || { head: {} };\nC.HTMLElement;\nconst m = {\n $flags$: 0,\n $resourcesUrl$: \"\",\n jmp: (e) => e(),\n raf: (e) => requestAnimationFrame(e),\n ael: (e, t, s, r) => e.addEventListener(t, s, r),\n rel: (e, t, s, r) => e.removeEventListener(t, s, r),\n ce: (e, t) => new CustomEvent(e, t)\n}, Ee = (e, t, s) => {\n [null, void 0, \"\", !1].includes(s) || [\"innerHTML\", \"style\"].includes(t) || e.setAttribute(t, [\"object\", \"function\"].includes(typeof s) ? \"/!\\\\ Object props are not rendered in the code example\" : s);\n}, ie = (e, t, s, r, n) => {\n if (t && typeof t == \"string\") {\n const l = document.createElement(t);\n Object.keys(s || {}).forEach((o) => {\n Ee(l, o, s[o]);\n }), r == null || r.forEach((o) => {\n ie(l, o.$tag$, o.$attrs$, o.$children$, o.$text$);\n }), s != null && s.innerHTML && (l.innerHTML = s.innerHTML), e.appendChild(l);\n }\n n && (e.innerHTML = n);\n}, Ie = (e, t) => {\n const s = {};\n if (typeof e != \"object\")\n throw new Error(\"filterArgs - args isn't an object.\");\n for (const r in e)\n if (!r.startsWith(\"slot\")) {\n const n = e[r], l = r.replace(/([a-z])([A-Z])/g, \"$1-$2\").toLowerCase();\n (!t || !Object.keys(t).includes(r) || t[r] !== n) && (s[l] = n);\n }\n return s;\n}, Xe = (e, t) => {\n var r, n;\n const s = document.getElementById(\"storybook-root\");\n if (s)\n return (n = document.querySelector(\"[lang]\")) == null || n.setAttribute(\"lang\", ((r = t.globals) == null ? void 0 : r.locale) || \"en\"), Le(\n {\n $ancestorComponent$: void 0,\n $flags$: 0,\n $modeName$: void 0,\n $cmpMeta$: {\n $flags$: 0,\n $tagName$: s.tagName\n },\n $hostElement$: s\n },\n e(t)\n ), s.children[s.children.length - 1];\n}, Ke = ({ $tag$: e, $attrs$: t, $children$: s, $text$: r }) => {\n const n = document.createElement(\"div\");\n return ie(n, e, t, s, r), n.innerHTML;\n}, Qe = ({ disconnect: e, observe: t, takeRecords: s }) => {\n class r {\n constructor(l) {\n /**\n *\n */\n h(this, \"disconnect\", e);\n /**\n *\n */\n h(this, \"observe\", t);\n /**\n *\n */\n h(this, \"takeRecords\", s);\n /**\n *\n */\n h(this, \"cb\");\n this.cb = l;\n }\n }\n return [window, global].forEach((n) => {\n Object.defineProperty(n, \"MutationObserver\", {\n writable: !0,\n configurable: !0,\n value: r\n });\n }), r;\n}, Je = ({ disconnect: e, observe: t }) => {\n class s {\n constructor(n) {\n /**\n *\n */\n h(this, \"disconnect\", e);\n /**\n *\n */\n h(this, \"observe\", t);\n /**\n *\n */\n h(this, \"unobserve\");\n /**\n *\n */\n h(this, \"cb\");\n this.cb = n;\n }\n }\n return [window, global].forEach((r) => {\n Object.defineProperty(r, \"ResizeObserver\", {\n writable: !0,\n configurable: !0,\n value: s\n });\n }), s;\n};\nclass je extends Event {\n constructor() {\n super(...arguments);\n /**\n *\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n h(this, \"detail\");\n }\n}\nconst Ye = () => {\n class e extends je {\n }\n return [window, global].forEach((t) => {\n Object.defineProperty(t, \"SubmitEvent\", {\n writable: !0,\n configurable: !0,\n value: e\n });\n }), e;\n};\nexport {\n Oe as ClassList,\n Fe as allItemsAreString,\n Ue as cleanString,\n Me as createID,\n ge as dateRegExp,\n ze as dateToString,\n Ge as defineLocales,\n Ie as filterArgs,\n _e as focusableElements,\n We as getLocaleDatePattern,\n X as getParentWindows,\n Ke as getStoryHTML,\n Be as getWindows,\n De as isTagName,\n Ne as isValidString,\n qe as localeCurrency,\n pe as localeDate,\n we as localeNumber,\n Ce as nextTick,\n Qe as setupMutationObserverMock,\n Je as setupResizeObserverMock,\n Ye as setupSubmitEventMock,\n Xe as stencilWrapper,\n Pe as vsCodeGenerator,\n He as webTypesGenerator\n};\n//# sourceMappingURL=index.es.js.map\n"],"version":3}
|
|
1
|
+
{"file":"index.es.js","mappings":"AAAA,IAAI,EAAE,GAAG,MAAM,CAAC,cAAc,CAAC;AAC/B,IAAI,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,UAAU,EAAE,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;AACjH,IAAI,CAAC,GAAG,C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I;AACZ,IAAI,OAAO,CAAC,CAAC,KAAK,CAAC;AACnB,EAAE,MAAM,CAAC,CAAC,KAAK,CAAC;AAChB,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,KAAK;AACf,EAAE,IAAI,CAAC,CAAC,KAAK;AACb,IAAI,OAAO,CAAC,CAAC,KAAK,CAAC;AACnB,EAAE,MAAM,CAAC,CAAC,KAAK,CAAC;AAChB,CAAC;;;;","names":[],"sources":["../stencil-helpers/dist/index.es.js"],"sourcesContent":["var ae = Object.defineProperty;\nvar fe = (e, t, s) => t in e ? ae(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;\nvar g = (e, t, s) => (fe(e, typeof t != \"symbol\" ? t + \"\" : t, s), s);\nconst Ne = (e = \"\", t = 10) => {\n const s = new Uint8Array(t);\n crypto.getRandomValues(s);\n const r = Array.from(s).map((l) => l.toString(16).padStart(2, \"0\")).join(\"\").slice(0, t);\n return e !== \"\" ? `${e}-${r}` : r;\n};\nclass Be {\n constructor(t = []) {\n /**\n * Available classes\n */\n g(this, \"classes\");\n /**\n * Add class\n * @param className - class name to add\n */\n g(this, \"add\", (t) => {\n this.has(t) || this.classes.push(t);\n });\n /**\n * Delete class\n * @param className - class name to delete\n */\n g(this, \"delete\", (t) => {\n const s = this.classes.indexOf(t);\n s > -1 && this.classes.splice(s, 1);\n });\n /**\n * Check if class exist in list\n * @param className - class name to check\n * @returns class name is in the list\n */\n g(this, \"has\", (t) => this.classes.includes(t));\n /**\n * Join classes seperated by spaces\n * @returns joined values\n */\n g(this, \"join\", () => this.classes.join(\" \"));\n this.classes = t;\n }\n}\nconst Ue = (e) => Array.isArray(e) && e.every((t) => typeof t == \"string\"), Ce = (e, t) => t.includes(e == null ? void 0 : e.tagName.toLowerCase()), He = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"]), [identifier], mg-button', we = (e) => {\n const t = X(e), s = K(e);\n return [e, ...t, ...s];\n}, X = (e, t = []) => {\n if (e.self !== e.top)\n try {\n const s = e.parent;\n return s ? (t.push(s), X(s, t)) : t;\n } catch (s) {\n return console.error(\"Different hosts between iframes:\", s), t;\n }\n return t;\n}, K = (e, t = []) => {\n if (e.frames.length > 0)\n for (const s of Array.from(e.frames))\n t.push(s), K(s, t);\n return t;\n}, Pe = (e) => typeof e == \"string\" && e.trim() !== \"\", We = (e) => typeof e == \"string\" ? e.toLocaleLowerCase().normalize(\"NFD\").replaceAll(/[\\u0300-\\u036f]/g, \"\") : e, ze = async (e) => e(), Q = (e, t) => {\n if (!t)\n return;\n const s = t.split(\"/\");\n return `${e}${s.slice(2, s.length - 1).join(\"-\")}--docs`;\n}, ce = (e, t) => {\n if (t)\n return `${e}${t}`;\n}, J = (e) => {\n let t = e.overview ? `${e.overview}\n\n` : \"\";\n const s = e.props.filter(({ attr: l }) => l !== void 0);\n s.length && (t += `Attributes:\n`, t += s.map(({ attr: l, docs: i }) => `- \\`${l}\\`: ${i}\n`).join(\"\"), t += `\n`);\n const r = e.props.filter(({ attr: l }) => l === void 0);\n return r.length && (t += `Properties:\n`, t += r.map(({ name: l, docs: i }) => `- \\`${l}\\`: ${i}\n`).join(\"\"), t += `\n`), e.methods.length && (t += `Methods:\n`, t += e.methods.map(({ name: l, docs: i }) => `- \\`${l}\\`: ${i}\n`).join(\"\"), t += `\n`), e.events.length && (t += `Events:\n`, t += e.events.map(({ event: l, docs: i }) => `- \\`${l}\\`: ${i}\n`).join(\"\"), t += `\n`), e.listeners.length && (t += `Listeners:\n`, t += e.listeners.map(({ event: l }) => `- \\`${l}\\`\n`).join(\"\"), t += `\n`), e.slots.length && (t += `Slots:\n`, t += e.slots.map(({ name: l, docs: i }) => `- \\`${l}\\`: ${i}\n`).join(\"\"), t += `\n`), t;\n}, M = (e) => `${e.docs}\n\nType: \\`${e.type}\\``, qe = (e, t, s, r) => ({\n $schema: \"https://json.schemastore.org/web-types\",\n name: e,\n version: t,\n \"description-markup\": \"markdown\",\n contributions: {\n html: {\n elements: s.components.map((l) => {\n const i = Q(r, l.filePath);\n return {\n name: l.tag,\n description: J(l),\n \"doc-url\": i,\n attributes: l.props.filter((n) => n.attr).map((n) => ({\n name: n.attr,\n description: M(n),\n \"doc-url\": i,\n value: {\n type: n.type,\n default: n.default,\n required: n.required\n }\n })),\n js: {\n properties: l.props.map((n) => ({\n name: n.name,\n description: M(n),\n \"doc-url\": i,\n value: {\n type: n.type,\n default: n.default,\n required: n.required\n }\n })),\n events: l.events.map((n) => ({\n name: n.event,\n description: n.docs\n }))\n }\n };\n })\n }\n }\n}), $e = (e, t, s) => [\n { name: \"Storybook\", url: Q(e, s) },\n { name: \"Sources\", url: ce(t, s) }\n], ue = (e) => {\n if (!e.values.some(({ value: t }) => t === void 0))\n return e.values.map(({ value: t }) => ({ name: t }));\n}, Ie = (e, t, s, r) => ({\n version: e,\n tags: t.components.map((l) => {\n const i = $e(s, r, l.filePath);\n return {\n name: l.tag,\n description: J(l),\n attributes: l.props.map((n) => ({\n name: n.attr || n.name,\n description: M(n),\n values: ue(n),\n references: i\n })),\n references: i\n };\n }),\n globalAttributes: [],\n valueSets: []\n}), Ge = (e) => {\n const t = { value: \"2023\", pattern: \"yyyy\" }, s = { value: \"12\", pattern: \"mm\" }, r = { value: \"24\", pattern: \"dd\" };\n return ge([t.value, s.value, r.value].join(\"-\"), e).replace(t.value, t.pattern).replace(s.value, s.pattern).replace(r.value, r.pattern);\n}, Xe = (e) => e.toISOString().split(\"T\")[0], de = (e, t, s) => {\n const r = e.closest(\"[lang]\"), l = Intl.NumberFormat.supportedLocalesOf(r == null ? void 0 : r.lang), i = l.length > 0 && typeof l[0] == \"string\" ? l[0] : navigator.language || s, n = i.split(\"-\").shift();\n return {\n locale: i,\n messages: t[n] || t[s]\n };\n}, Ke = (e, t, s) => new Intl.NumberFormat(t, { style: \"currency\", currency: s }).format(e), Qe = (e, t, s = 0) => new Intl.NumberFormat(t, { minimumFractionDigits: s }).format(s > 0 ? Number(e == null ? void 0 : e.toFixed(s)) : e), pe = /^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$/, ge = (e, t) => typeof e != \"string\" || e === \"\" || !pe.test(e) ? \"\" : new Intl.DateTimeFormat(t).format(new Date(e)), Je = (e, t) => (s) => de(s, e, t);\nvar N = {\n allRenderFn: !1,\n cmpDidLoad: !0,\n cmpDidUnload: !1,\n cmpDidUpdate: !0,\n cmpDidRender: !0,\n cmpWillLoad: !0,\n cmpWillUpdate: !0,\n cmpWillRender: !0,\n connectedCallback: !0,\n disconnectedCallback: !0,\n element: !0,\n event: !0,\n hasRenderFn: !0,\n lifecycle: !0,\n hostListener: !0,\n hostListenerTargetWindow: !0,\n hostListenerTargetDocument: !0,\n hostListenerTargetBody: !0,\n hostListenerTargetParent: !1,\n hostListenerTarget: !0,\n member: !0,\n method: !0,\n mode: !0,\n observeAttribute: !0,\n prop: !0,\n propMutable: !0,\n reflect: !0,\n scoped: !0,\n shadowDom: !0,\n slot: !0,\n cssAnnotations: !0,\n state: !0,\n style: !0,\n formAssociated: !1,\n svg: !0,\n updatable: !0,\n vdomAttribute: !0,\n vdomXlink: !0,\n vdomClass: !0,\n vdomFunctional: !0,\n vdomKey: !0,\n vdomListener: !0,\n vdomRef: !0,\n vdomPropOrAttr: !0,\n vdomRender: !0,\n vdomStyle: !0,\n vdomText: !0,\n watchCallback: !0,\n taskQueue: !0,\n hotModuleReplacement: !1,\n isDebug: !1,\n isDev: !1,\n isTesting: !1,\n hydrateServerSide: !1,\n hydrateClientSide: !1,\n lifecycleDOMEvents: !1,\n lazyLoad: !1,\n profile: !1,\n slotRelocation: !0,\n // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior\n appendChildSlotFix: !1,\n // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior\n cloneNodeFix: !1,\n hydratedAttribute: !1,\n hydratedClass: !0,\n scriptDataOpts: !1,\n // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior\n scopedSlotTextContentFix: !1,\n // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field\n shadowDomShim: !1,\n // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior\n slotChildNodesFix: !1,\n invisiblePrehydration: !0,\n propBoolean: !0,\n propNumber: !0,\n propString: !0,\n constructableCSS: !0,\n cmpShouldUpdate: !0,\n devTools: !1,\n shadowDelegatesFocus: !0,\n initializeNextTick: !1,\n asyncLoading: !1,\n asyncQueue: !1,\n transformTagName: !1,\n attachStyles: !0,\n // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior\n experimentalSlotFixes: !1\n}, ve = Object.defineProperty, he = (e, t) => {\n for (var s in t)\n ve(e, s, { get: t[s], enumerable: !0 });\n}, w = {}, ye = \"http://www.w3.org/2000/svg\", be = \"http://www.w3.org/1999/xhtml\", me = (e) => e != null, Y = (e) => (e = typeof e, e === \"object\" || e === \"function\"), Se = {};\nhe(Se, {\n err: () => Z,\n map: () => ke,\n ok: () => D,\n unwrap: () => Te,\n unwrapErr: () => xe\n});\nvar D = (e) => ({\n isOk: !0,\n isErr: !1,\n value: e\n}), Z = (e) => ({\n isOk: !1,\n isErr: !0,\n value: e\n});\nfunction ke(e, t) {\n if (e.isOk) {\n const s = t(e.value);\n return s instanceof Promise ? s.then((r) => D(r)) : D(s);\n }\n if (e.isErr) {\n const s = e.value;\n return Z(s);\n }\n throw \"should never get here\";\n}\nvar Te = (e) => {\n if (e.isOk)\n return e.value;\n throw e.value;\n}, xe = (e) => {\n if (e.isErr)\n return e.value;\n throw e.value;\n}, P = \"http://www.w3.org/1999/xlink\", Ee = (e, t, ...s) => {\n let r = null, l = null, i = null, n = !1, c = !1;\n const o = [], d = ($) => {\n for (let u = 0; u < $.length; u++)\n r = $[u], Array.isArray(r) ? d(r) : r != null && typeof r != \"boolean\" && ((n = !Y(r)) && (r = String(r)), n && c ? o[o.length - 1].$text$ += r : o.push(n ? _(null, r) : r), c = n);\n };\n d(s);\n const a = _(e, null);\n return a.$attrs$ = t, o.length > 0 && (a.$children$ = o), a.$key$ = l, a.$name$ = i, a;\n}, _ = (e, t) => {\n const s = {\n $flags$: 0,\n $tag$: e,\n $text$: t,\n $elm$: null,\n $children$: null\n };\n return s.$attrs$ = null, s.$key$ = null, s.$name$ = null, s;\n}, Ae = {}, Le = (e) => e && e.$tag$ === Ae, W = (e, t, s, r, l, i) => {\n if (s !== r) {\n let n = G(e, t), c = t.toLowerCase();\n if (t === \"class\") {\n const o = e.classList, d = z(s), a = z(r);\n o.remove(...d.filter(($) => $ && !a.includes($))), o.add(...a.filter(($) => $ && !d.includes($)));\n } else if (t === \"style\") {\n for (const o in s)\n (!r || r[o] == null) && (o.includes(\"-\") ? e.style.removeProperty(o) : e.style[o] = \"\");\n for (const o in r)\n (!s || r[o] !== s[o]) && (o.includes(\"-\") ? e.style.setProperty(o, r[o]) : e.style[o] = r[o]);\n } else if (t !== \"key\")\n if (t === \"ref\")\n r && r(e);\n else if (!e.__lookupSetter__(t) && t[0] === \"o\" && t[1] === \"n\") {\n if (t[2] === \"-\" ? t = t.slice(3) : G(H, c) ? t = c.slice(2) : t = c[2] + t.slice(3), s || r) {\n const o = t.endsWith(V);\n t = t.replace(je, \"\"), s && x.rel(e, t, s, o), r && x.ael(e, t, r, o);\n }\n } else {\n const o = Y(r);\n if ((n || o && r !== null) && !l)\n try {\n if (e.tagName.includes(\"-\"))\n e[t] = r;\n else {\n const a = r ?? \"\";\n t === \"list\" ? n = !1 : (s == null || e[t] != a) && (e[t] = a);\n }\n } catch {\n }\n let d = !1;\n c !== (c = c.replace(/^xlink\\:?/, \"\")) && (t = c, d = !0), r == null || r === !1 ? (r !== !1 || e.getAttribute(t) === \"\") && (d ? e.removeAttributeNS(P, t) : e.removeAttribute(t)) : (!n || i & 4 || l) && !o && (r = r === !0 ? \"\" : r, d ? e.setAttributeNS(P, t, r) : e.setAttribute(t, r));\n }\n }\n}, Re = /\\s/, z = (e) => e ? e.split(Re) : [], V = \"Capture\", je = new RegExp(V + \"$\"), ee = (e, t, s) => {\n const r = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, l = e && e.$attrs$ || w, i = t.$attrs$ || w;\n for (const n of q(Object.keys(l)))\n n in i || W(r, n, l[n], void 0, s, t.$flags$);\n for (const n of q(Object.keys(i)))\n W(r, n, l[n], i[n], s, t.$flags$);\n};\nfunction q(e) {\n return e.includes(\"ref\") ? (\n // we need to sort these to ensure that `'ref'` is the last attr\n [...e.filter((t) => t !== \"ref\"), \"ref\"]\n ) : (\n // no need to sort, return the original array\n e\n );\n}\nvar S, F, T, B = !1, j = !1, U = !1, h = !1, O = (e, t, s, r) => {\n var l, i, n, c;\n const o = t.$children$[s];\n let d = 0, a, $, u;\n if (B || (U = !0, o.$tag$ === \"slot\" && (S && r.classList.add(S + \"-s\"), o.$flags$ |= o.$children$ ? (\n // slot element has fallback content\n // still create an element that \"mocks\" the slot element\n 2\n ) : (\n // slot element does not have fallback content\n // create an html comment we'll use to always reference\n // where actual slot content should sit next to\n 1\n ))), o.$text$ !== null)\n a = o.$elm$ = R.createTextNode(o.$text$);\n else if (o.$flags$ & 1)\n a = o.$elm$ = R.createTextNode(\"\");\n else {\n h || (h = o.$tag$ === \"svg\"), a = o.$elm$ = R.createElementNS(\n h ? ye : be,\n o.$flags$ & 2 ? \"slot-fb\" : o.$tag$\n ), h && o.$tag$ === \"foreignObject\" && (h = !1), ee(null, o, h), me(S) && a[\"s-si\"] !== S && a.classList.add(a[\"s-si\"] = S);\n {\n const f = ((l = t.$elm$) == null ? void 0 : l[\"s-rsc\"]) || ((i = t.$elm$) == null ? void 0 : i[\"s-si\"]) || ((n = t.$elm$) == null ? void 0 : n[\"s-sc\"]);\n f && (a[\"s-rsc\"] = f, !a.classList.contains(f) && a.classList.add(f));\n }\n if (o.$children$)\n for (d = 0; d < o.$children$.length; ++d)\n $ = O(e, o, d, a), $ && a.appendChild($);\n o.$tag$ === \"svg\" ? h = !1 : a.tagName === \"foreignObject\" && (h = !0);\n }\n return a[\"s-hn\"] = T, o.$flags$ & 3 && (a[\"s-sr\"] = !0, a[\"s-cr\"] = F, a[\"s-sn\"] = o.$name$ || \"\", a[\"s-rf\"] = (c = o.$attrs$) == null ? void 0 : c.ref, u = e && e.$children$ && e.$children$[s], u && u.$tag$ === o.$tag$ && e.$elm$ && E(e.$elm$, !1)), a;\n}, E = (e, t) => {\n x.$flags$ |= 1;\n const s = Array.from(e.childNodes);\n if (e[\"s-sr\"] && N.experimentalSlotFixes) {\n let r = e;\n for (; r = r.nextSibling; )\n r && r[\"s-sn\"] === e[\"s-sn\"] && r[\"s-sh\"] === T && s.push(r);\n }\n for (let r = s.length - 1; r >= 0; r--) {\n const l = s[r];\n l[\"s-hn\"] !== T && l[\"s-ol\"] && (re(l).insertBefore(l, C(l)), l[\"s-ol\"].remove(), l[\"s-ol\"] = void 0, l[\"s-sh\"] = void 0, U = !0), t && E(l, t);\n }\n x.$flags$ &= -2;\n}, te = (e, t, s, r, l, i) => {\n let n = e[\"s-cr\"] && e[\"s-cr\"].parentNode || e, c;\n for (n.shadowRoot && n.tagName === T && (n = n.shadowRoot); l <= i; ++l)\n r[l] && (c = O(null, s, l, e), c && (r[l].$elm$ = c, n.insertBefore(c, C(t))));\n}, se = (e, t, s) => {\n for (let r = t; r <= s; ++r) {\n const l = e[r];\n if (l) {\n const i = l.$elm$;\n oe(l), i && (j = !0, i[\"s-ol\"] ? i[\"s-ol\"].remove() : E(i, !0), i.remove());\n }\n }\n}, Oe = (e, t, s, r, l = !1) => {\n let i = 0, n = 0, c = 0, o = 0, d = t.length - 1, a = t[0], $ = t[d], u = r.length - 1, f = r[0], p = r[u], b, y;\n for (; i <= d && n <= u; )\n if (a == null)\n a = t[++i];\n else if ($ == null)\n $ = t[--d];\n else if (f == null)\n f = r[++n];\n else if (p == null)\n p = r[--u];\n else if (L(a, f, l))\n k(a, f, l), a = t[++i], f = r[++n];\n else if (L($, p, l))\n k($, p, l), $ = t[--d], p = r[--u];\n else if (L(a, p, l))\n (a.$tag$ === \"slot\" || p.$tag$ === \"slot\") && E(a.$elm$.parentNode, !1), k(a, p, l), e.insertBefore(a.$elm$, $.$elm$.nextSibling), a = t[++i], p = r[--u];\n else if (L($, f, l))\n (a.$tag$ === \"slot\" || p.$tag$ === \"slot\") && E($.$elm$.parentNode, !1), k($, f, l), e.insertBefore($.$elm$, a.$elm$), $ = t[--d], f = r[++n];\n else {\n for (c = -1, o = i; o <= d; ++o)\n if (t[o] && t[o].$key$ !== null && t[o].$key$ === f.$key$) {\n c = o;\n break;\n }\n c >= 0 ? (y = t[c], y.$tag$ !== f.$tag$ ? b = O(t && t[n], s, c, e) : (k(y, f, l), t[c] = void 0, b = y.$elm$), f = r[++n]) : (b = O(t && t[n], s, n, e), f = r[++n]), b && re(a.$elm$).insertBefore(b, C(a.$elm$));\n }\n i > d ? te(\n e,\n r[u + 1] == null ? null : r[u + 1].$elm$,\n s,\n r,\n n,\n u\n ) : n > u && se(t, i, d);\n}, L = (e, t, s = !1) => e.$tag$ === t.$tag$ ? e.$tag$ === \"slot\" ? e.$name$ === t.$name$ : s ? !0 : e.$key$ === t.$key$ : !1, C = (e) => e && e[\"s-ol\"] || e, re = (e) => (e[\"s-ol\"] ? e[\"s-ol\"] : e).parentNode, k = (e, t, s = !1) => {\n const r = t.$elm$ = e.$elm$, l = e.$children$, i = t.$children$, n = t.$tag$, c = t.$text$;\n let o;\n c === null ? (h = n === \"svg\" ? !0 : n === \"foreignObject\" ? !1 : h, n === \"slot\" && !B || ee(e, t, h), l !== null && i !== null ? Oe(r, l, t, i, s) : i !== null ? (e.$text$ !== null && (r.textContent = \"\"), te(r, null, t, i, 0, i.length - 1)) : l !== null && se(l, 0, l.length - 1), h && n === \"svg\" && (h = !1)) : (o = r[\"s-cr\"]) ? o.parentNode.textContent = c : e.$text$ !== c && (r.data = c);\n}, le = (e) => {\n const t = e.childNodes;\n for (const s of t)\n if (s.nodeType === 1) {\n if (s[\"s-sr\"]) {\n const r = s[\"s-sn\"];\n s.hidden = !1;\n for (const l of t)\n if (l !== s) {\n if (l[\"s-hn\"] !== s[\"s-hn\"] || r !== \"\") {\n if (l.nodeType === 1 && (r === l.getAttribute(\"slot\") || r === l[\"s-sn\"]) || l.nodeType === 3 && r === l[\"s-sn\"]) {\n s.hidden = !0;\n break;\n }\n } else if (l.nodeType === 1 || l.nodeType === 3 && l.textContent.trim() !== \"\") {\n s.hidden = !0;\n break;\n }\n }\n }\n le(s);\n }\n}, m = [], ne = (e) => {\n let t, s, r;\n for (const l of e.childNodes) {\n if (l[\"s-sr\"] && (t = l[\"s-cr\"]) && t.parentNode) {\n s = t.parentNode.childNodes;\n const i = l[\"s-sn\"];\n for (r = s.length - 1; r >= 0; r--)\n if (t = s[r], !t[\"s-cn\"] && !t[\"s-nr\"] && t[\"s-hn\"] !== l[\"s-hn\"] && !N.experimentalSlotFixes)\n if (I(t, i)) {\n let n = m.find((c) => c.$nodeToRelocate$ === t);\n j = !0, t[\"s-sn\"] = t[\"s-sn\"] || i, n ? (n.$nodeToRelocate$[\"s-sh\"] = l[\"s-hn\"], n.$slotRefNode$ = l) : (t[\"s-sh\"] = l[\"s-hn\"], m.push({\n $slotRefNode$: l,\n $nodeToRelocate$: t\n })), t[\"s-sr\"] && m.map((c) => {\n I(c.$nodeToRelocate$, t[\"s-sn\"]) && (n = m.find((o) => o.$nodeToRelocate$ === t), n && !c.$slotRefNode$ && (c.$slotRefNode$ = n.$slotRefNode$));\n });\n } else\n m.some((n) => n.$nodeToRelocate$ === t) || m.push({\n $nodeToRelocate$: t\n });\n }\n l.nodeType === 1 && ne(l);\n }\n}, I = (e, t) => e.nodeType === 1 ? e.getAttribute(\"slot\") === null && t === \"\" || e.getAttribute(\"slot\") === t : e[\"s-sn\"] === t ? !0 : t === \"\", oe = (e) => {\n e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map(oe);\n}, Me = (e, t, s = !1) => {\n var r, l, i, n, c;\n const o = e.$hostElement$, d = e.$cmpMeta$, a = e.$vnode$ || _(null, null), $ = Le(t) ? t : Ee(null, null, t);\n if (T = o.tagName, d.$attrsToReflect$ && ($.$attrs$ = $.$attrs$ || {}, d.$attrsToReflect$.map(\n ([u, f]) => $.$attrs$[f] = o[u]\n )), s && $.$attrs$)\n for (const u of Object.keys($.$attrs$))\n o.hasAttribute(u) && ![\"key\", \"ref\", \"style\", \"class\"].includes(u) && ($.$attrs$[u] = o[u]);\n $.$tag$ = null, $.$flags$ |= 4, e.$vnode$ = $, $.$elm$ = a.$elm$ = o.shadowRoot || o, S = o[\"s-sc\"], B = (d.$flags$ & 1) !== 0, F = o[\"s-cr\"], j = !1, k(a, $, s);\n {\n if (x.$flags$ |= 1, U) {\n ne($.$elm$);\n for (const u of m) {\n const f = u.$nodeToRelocate$;\n if (!f[\"s-ol\"]) {\n const p = R.createTextNode(\"\");\n p[\"s-nr\"] = f, f.parentNode.insertBefore(f[\"s-ol\"] = p, f);\n }\n }\n for (const u of m) {\n const f = u.$nodeToRelocate$, p = u.$slotRefNode$;\n if (p) {\n const b = p.parentNode;\n let y = p.nextSibling;\n {\n let A = (r = f[\"s-ol\"]) == null ? void 0 : r.previousSibling;\n for (; A; ) {\n let v = (l = A[\"s-nr\"]) != null ? l : null;\n if (v && v[\"s-sn\"] === f[\"s-sn\"] && b === v.parentNode) {\n for (v = v.nextSibling; v === f || v != null && v[\"s-sr\"]; )\n v = v == null ? void 0 : v.nextSibling;\n if (!v || !v[\"s-nr\"]) {\n y = v;\n break;\n }\n }\n A = A.previousSibling;\n }\n }\n (!y && b !== f.parentNode || f.nextSibling !== y) && f !== y && (!f[\"s-hn\"] && f[\"s-ol\"] && (f[\"s-hn\"] = f[\"s-ol\"].parentNode.nodeName), b.insertBefore(f, y), f.nodeType === 1 && (f.hidden = (i = f[\"s-ih\"]) != null ? i : !1)), f && typeof p[\"s-rf\"] == \"function\" && p[\"s-rf\"](f);\n } else\n f.nodeType === 1 && (s && (f[\"s-ih\"] = (n = f.hidden) != null ? n : !1), f.hidden = !0);\n }\n }\n j && le($.$elm$), x.$flags$ &= -2, m.length = 0;\n }\n if (N.experimentalScopedSlotChanges && d.$flags$ & 2)\n for (const u of $.$elm$.childNodes)\n u[\"s-hn\"] !== T && !u[\"s-sh\"] && (s && u[\"s-ih\"] == null && (u[\"s-ih\"] = (c = u.hidden) != null ? c : !1), u.hidden = !0);\n F = void 0;\n}, G = (e, t) => t in e, H = typeof window < \"u\" ? window : {}, R = H.document || { head: {} };\nH.HTMLElement;\nvar x = {\n $flags$: 0,\n $resourcesUrl$: \"\",\n jmp: (e) => e(),\n raf: (e) => requestAnimationFrame(e),\n ael: (e, t, s, r) => e.addEventListener(t, s, r),\n rel: (e, t, s, r) => e.removeEventListener(t, s, r),\n ce: (e, t) => new CustomEvent(e, t)\n};\nconst De = (e, t, s) => {\n [null, void 0, \"\", !1].includes(s) || [\"innerHTML\", \"style\"].includes(t) || e.setAttribute(t, [\"object\", \"function\"].includes(typeof s) ? \"/!\\\\ Object props are not rendered in the code example\" : s);\n}, ie = (e, t, s, r, l) => {\n if (t && typeof t == \"string\") {\n const i = document.createElement(t);\n Object.keys(s || {}).forEach((n) => {\n De(i, n, s[n]);\n }), r == null || r.forEach((n) => {\n ie(i, n.$tag$, n.$attrs$, n.$children$, n.$text$);\n }), s != null && s.innerHTML && (i.innerHTML = s.innerHTML), e.appendChild(i);\n }\n l && (e.innerHTML = l);\n}, Ye = (e, t) => {\n const s = {};\n if (typeof e != \"object\")\n throw new Error(\"filterArgs - args isn't an object.\");\n for (const r in e)\n if (!r.startsWith(\"slot\")) {\n const l = e[r], i = r.replace(/([a-z])([A-Z])/g, \"$1-$2\").toLowerCase();\n (!t || !Object.keys(t).includes(r) || t[r] !== l) && (s[i] = l);\n }\n return s;\n}, Ze = (e, t) => {\n var r, l;\n const s = document.getElementById(\"storybook-root\");\n if (s)\n return (l = document.querySelector(\"[lang]\")) == null || l.setAttribute(\"lang\", ((r = t.globals) == null ? void 0 : r.locale) || \"en\"), Me(\n {\n $ancestorComponent$: void 0,\n $flags$: 0,\n $modeName$: void 0,\n $cmpMeta$: {\n $flags$: 0,\n $tagName$: s.tagName\n },\n $hostElement$: s\n },\n e(t)\n ), s.children[s.children.length - 1];\n}, Ve = ({ $tag$: e, $attrs$: t, $children$: s, $text$: r }) => {\n const l = document.createElement(\"div\");\n return ie(l, e, t, s, r), l.innerHTML;\n}, et = ({ disconnect: e, observe: t, takeRecords: s }) => {\n class r {\n constructor(i) {\n /**\n *\n */\n g(this, \"disconnect\", e);\n /**\n *\n */\n g(this, \"observe\", t);\n /**\n *\n */\n g(this, \"takeRecords\", s);\n /**\n *\n */\n g(this, \"cb\");\n this.cb = i;\n }\n }\n return [window, global].forEach((l) => {\n Object.defineProperty(l, \"MutationObserver\", {\n writable: !0,\n configurable: !0,\n value: r\n });\n }), r;\n}, tt = ({ disconnect: e, observe: t }) => {\n class s {\n constructor(l) {\n /**\n *\n */\n g(this, \"disconnect\", e);\n /**\n *\n */\n g(this, \"observe\", t);\n /**\n *\n */\n g(this, \"unobserve\");\n /**\n *\n */\n g(this, \"cb\");\n this.cb = l;\n }\n }\n return [window, global].forEach((r) => {\n Object.defineProperty(r, \"ResizeObserver\", {\n writable: !0,\n configurable: !0,\n value: s\n });\n }), s;\n};\nclass _e extends Event {\n constructor() {\n super(...arguments);\n /**\n *\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n g(this, \"detail\");\n }\n}\nconst st = () => {\n class e extends _e {\n }\n return [window, global].forEach((t) => {\n Object.defineProperty(t, \"SubmitEvent\", {\n writable: !0,\n configurable: !0,\n value: e\n });\n }), e;\n};\nexport {\n Be as ClassList,\n Ue as allItemsAreString,\n We as cleanString,\n Ne as createID,\n pe as dateRegExp,\n Xe as dateToString,\n Je as defineLocales,\n Ye as filterArgs,\n He as focusableElements,\n Ge as getLocaleDatePattern,\n X as getParentWindows,\n Ve as getStoryHTML,\n we as getWindows,\n Ce as isTagName,\n Pe as isValidString,\n Ke as localeCurrency,\n ge as localeDate,\n Qe as localeNumber,\n ze as nextTick,\n et as setupMutationObserverMock,\n tt as setupResizeObserverMock,\n st as setupSubmitEventMock,\n Ze as stencilWrapper,\n Ie as vsCodeGenerator,\n qe as webTypesGenerator\n};\n//# sourceMappingURL=index.es.js.map\n"],"version":3}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { J as Je } from './index.es.js';
|
|
2
2
|
|
|
3
3
|
const errors$1 = {
|
|
4
4
|
required: "This field is required.",
|
|
@@ -249,7 +249,7 @@ const messages = { en, fr };
|
|
|
249
249
|
* @param element - element we need to get the language
|
|
250
250
|
* @returns messages object
|
|
251
251
|
*/
|
|
252
|
-
const initLocales =
|
|
252
|
+
const initLocales = Je(messages, defaultLocale);
|
|
253
253
|
|
|
254
254
|
export { initLocales as i };
|
|
255
255
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
2
|
+
import { N as Ne } from './index.es.js';
|
|
3
3
|
import { d as defineCustomElement$4, D as Direction, S as Status } from './mg-menu-item2.js';
|
|
4
4
|
import { i as initLocales } from './index2.js';
|
|
5
5
|
import { d as defineCustomElement$a } from './mg-badge2.js';
|
|
@@ -50,7 +50,7 @@ const MgActionMore$1 = /*@__PURE__*/ proxyCustomElement(class MgActionMore exten
|
|
|
50
50
|
************/
|
|
51
51
|
this.name = 'mg-action-more';
|
|
52
52
|
this.classBase = 'mg-c-action-more';
|
|
53
|
-
this.mgPopoverIdentifier =
|
|
53
|
+
this.mgPopoverIdentifier = Ne(this.name);
|
|
54
54
|
/************
|
|
55
55
|
* Methods *
|
|
56
56
|
***********/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
2
|
+
import { B as Be, P as Pe } from './index.es.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* List of all possibles variants
|
|
@@ -23,7 +23,7 @@ const MgBadge = /*@__PURE__*/ proxyCustomElement(class MgBadge extends HTMLEleme
|
|
|
23
23
|
this.label = undefined;
|
|
24
24
|
this.variant = variants[0];
|
|
25
25
|
this.outline = undefined;
|
|
26
|
-
this.classCollection = new
|
|
26
|
+
this.classCollection = new Be(['mg-c-badge']);
|
|
27
27
|
}
|
|
28
28
|
validateValue(newValue) {
|
|
29
29
|
if (/^(\d+\+*|[?*!a-z])$/i.exec(`${newValue}`) === null) {
|
|
@@ -31,7 +31,7 @@ const MgBadge = /*@__PURE__*/ proxyCustomElement(class MgBadge extends HTMLEleme
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
validateLabel(newValue) {
|
|
34
|
-
if (!
|
|
34
|
+
if (!Pe(newValue)) {
|
|
35
35
|
throw new Error('<mg-badge> prop "label" is required.');
|
|
36
36
|
}
|
|
37
37
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
2
|
+
import { B as Be, P as Pe, z as ze } from './index.es.js';
|
|
3
3
|
import { d as defineCustomElement$1 } from './mg-icon2.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -69,7 +69,7 @@ const MgButton = /*@__PURE__*/ proxyCustomElement(class MgButton extends HTMLEle
|
|
|
69
69
|
this.isIcon = false;
|
|
70
70
|
this.disableOnClick = false;
|
|
71
71
|
this.loading = false;
|
|
72
|
-
this.classCollection = new
|
|
72
|
+
this.classCollection = new Be(['mg-c-button']);
|
|
73
73
|
}
|
|
74
74
|
validateVariant(newValue, oldValue) {
|
|
75
75
|
if (!variants.includes(newValue)) {
|
|
@@ -128,7 +128,7 @@ const MgButton = /*@__PURE__*/ proxyCustomElement(class MgButton extends HTMLEle
|
|
|
128
128
|
this.validateFullWidth(this.fullWidth);
|
|
129
129
|
if (this.isIcon) {
|
|
130
130
|
this.classCollection.add(`mg-c-button--icon`);
|
|
131
|
-
if (!
|
|
131
|
+
if (!Pe(this.label)) {
|
|
132
132
|
throw new Error(`<mg-button> prop "label" is mandatory when prop "isIcon" is set to true.`);
|
|
133
133
|
}
|
|
134
134
|
}
|
|
@@ -140,7 +140,7 @@ const MgButton = /*@__PURE__*/ proxyCustomElement(class MgButton extends HTMLEle
|
|
|
140
140
|
* Add listners
|
|
141
141
|
*/
|
|
142
142
|
componentDidLoad() {
|
|
143
|
-
|
|
143
|
+
ze(() => {
|
|
144
144
|
var _a;
|
|
145
145
|
const closestForm = this.element.closest('form') || ((_a = this.element.closest('mg-form')) === null || _a === void 0 ? void 0 : _a.shadowRoot.querySelector('form'));
|
|
146
146
|
// submit buttons should trigger form submition;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
2
|
+
import { B as Be } from './index.es.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* List available variants
|
|
@@ -33,7 +33,7 @@ const MgCard = /*@__PURE__*/ proxyCustomElement(class MgCard extends HTMLElement
|
|
|
33
33
|
};
|
|
34
34
|
this.variant = undefined;
|
|
35
35
|
this.variantStyle = undefined;
|
|
36
|
-
this.classCollection = new
|
|
36
|
+
this.classCollection = new Be([this.classBase]);
|
|
37
37
|
}
|
|
38
38
|
validateVariant(newValue, oldValue) {
|
|
39
39
|
if (newValue && !variants.includes(newValue))
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
2
|
+
import { P as Pe } from './index.es.js';
|
|
3
3
|
import { d as defineCustomElement$2 } from './mg-icon2.js';
|
|
4
4
|
|
|
5
5
|
const mgDetailsCss = ".mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}.mg-c-details summary{display:flex;align-items:baseline;cursor:pointer}.mg-c-details__toggle{display:flex;min-height:calc(var(--font-size)*var(--line-height));flex-shrink:0;align-items:center;align-self:flex-start;margin-left:1.5rem;gap:.6rem}.mg-c-details__toggle-icon.mg-c-details__toggle-icon--reverse{transform:rotate(180deg)}.mg-c-details__details{margin-top:var(--mg-details-spacing)}@media (width < 43.75rem){.mg-c-details__toggle>span{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}}";
|
|
@@ -23,7 +23,7 @@ const MgDetails$1 = /*@__PURE__*/ proxyCustomElement(class MgDetails extends HTM
|
|
|
23
23
|
this.expanded = false;
|
|
24
24
|
}
|
|
25
25
|
validateTitles(newValue) {
|
|
26
|
-
if (!
|
|
26
|
+
if (!Pe(newValue)) {
|
|
27
27
|
throw new Error('<mg-details> prop "toggleClosed" and "toggleOpened" must be defined.');
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
2
|
+
import { N as Ne, B as Be } from './index.es.js';
|
|
3
3
|
import { i as initLocales } from './index2.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -109,7 +109,7 @@ const MgForm$1 = /*@__PURE__*/ proxyCustomElement(class MgForm extends HTMLEleme
|
|
|
109
109
|
}
|
|
110
110
|
});
|
|
111
111
|
};
|
|
112
|
-
this.identifier =
|
|
112
|
+
this.identifier = Ne('mg-form');
|
|
113
113
|
this.name = this.identifier;
|
|
114
114
|
this.readonly = false;
|
|
115
115
|
this.requiredMessage = undefined;
|
|
@@ -118,7 +118,7 @@ const MgForm$1 = /*@__PURE__*/ proxyCustomElement(class MgForm extends HTMLEleme
|
|
|
118
118
|
this.disabled = false;
|
|
119
119
|
this.valid = undefined;
|
|
120
120
|
this.invalid = undefined;
|
|
121
|
-
this.classCollection = new
|
|
121
|
+
this.classCollection = new Be(['mg-c-form']);
|
|
122
122
|
this.requiredMessageText = undefined;
|
|
123
123
|
}
|
|
124
124
|
validateRequiredMessage(newValue) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
2
|
+
import { B as Be } from './index.es.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* List of all possibles sizes
|
|
@@ -49,7 +49,7 @@ const MgIcon = /*@__PURE__*/ proxyCustomElement(class MgIcon extends HTMLElement
|
|
|
49
49
|
this.variant = undefined;
|
|
50
50
|
this.variantStyle = undefined;
|
|
51
51
|
this.spin = false;
|
|
52
|
-
this.classCollection = new
|
|
52
|
+
this.classCollection = new Be(['mg-c-icon']);
|
|
53
53
|
}
|
|
54
54
|
validateIcon(newValue, oldValue) {
|
|
55
55
|
if (!Object.keys(icons).includes(newValue))
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
2
|
+
import { C as Ce } from './index.es.js';
|
|
3
3
|
|
|
4
4
|
const mgIllustratedMessageCss = ".mg-c-illustrated-message{display:flex;max-width:47.5rem;box-sizing:border-box;flex-direction:column;justify-content:center;padding:var(--mg-illustrated-message-padding-vertical) 1.5rem;margin:auto;gap:3em 7rem;text-align:center}.mg-c-illustrated-message__illustration{max-height:18.4rem}.mg-c-illustrated-message__illustration ::slotted([slot=illustration]){width:auto;max-width:100%;height:auto;max-height:18.4rem}.mg-c-illustrated-message__illustration.mg-c-illustrated-message__illustration--small{max-height:6rem}.mg-c-illustrated-message__illustration.mg-c-illustrated-message__illustration--small ::slotted([slot=illustration]){max-height:6rem}.mg-c-illustrated-message.mg-c-illustrated-message--horizontal{max-width:unset;flex-flow:row wrap;align-items:center}.mg-c-illustrated-message.mg-c-illustrated-message--horizontal .mg-c-illustrated-message__slots,.mg-c-illustrated-message.mg-c-illustrated-message--horizontal .mg-c-illustrated-message__illustration{max-width:47.5rem}.mg-c-illustrated-message__title ::slotted([slot=title]){margin:0;font-family:var(--font-family) !important;font-size:2rem !important;font-weight:400 !important}.mg-c-illustrated-message__details ::slotted([slot=details]){margin:2rem 0 0}";
|
|
5
5
|
const MgIllustratedMessageStyle0 = mgIllustratedMessageCss;
|
|
@@ -21,7 +21,7 @@ const MgIllustratedMessage$1 = /*@__PURE__*/ proxyCustomElement(class MgIllustra
|
|
|
21
21
|
componentDidLoad() {
|
|
22
22
|
const headingTags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
|
|
23
23
|
const slottedIllustrations = this.element.querySelectorAll('[slot="illustration"]');
|
|
24
|
-
if (!
|
|
24
|
+
if (!Ce(this.element.querySelector('[slot="title"]'), headingTags)) {
|
|
25
25
|
throw new Error(`<mg-illustrated-message> Slotted title must be a heading: ${headingTags.join(', ')}`);
|
|
26
26
|
}
|
|
27
27
|
else if (slottedIllustrations.length !== 1) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
2
|
+
import { W as We, B as Be, P as Pe } from './index.es.js';
|
|
3
3
|
import { d as defineCustomElement$a, S as SelectValuesButtonKey, c as checkboxTypes, a as SectionKind, M as MgInputCheckboxList } from './mg-input-checkbox-paginated2.js';
|
|
4
4
|
import { d as defineCustomElement$b, H as Handler, c as classFieldset, a as classVerticalList, b as classReadonly, e as classDisabled } from './mg-input2.js';
|
|
5
5
|
import { i as initLocales } from './index2.js';
|
|
@@ -150,7 +150,7 @@ const MgInputCheckbox$1 = /*@__PURE__*/ proxyCustomElement(class MgInputCheckbox
|
|
|
150
150
|
* Method to update searchResults
|
|
151
151
|
*/
|
|
152
152
|
this.updateSearchResults = () => {
|
|
153
|
-
this.searchResults = this.checkboxItems.filter(item =>
|
|
153
|
+
this.searchResults = this.checkboxItems.filter(item => We(item.title).includes(We(this.searchValue)));
|
|
154
154
|
};
|
|
155
155
|
/**
|
|
156
156
|
* Method to validate if one of inputs value is checked id required
|
|
@@ -224,7 +224,7 @@ const MgInputCheckbox$1 = /*@__PURE__*/ proxyCustomElement(class MgInputCheckbox
|
|
|
224
224
|
this.helpText = undefined;
|
|
225
225
|
this.valid = undefined;
|
|
226
226
|
this.invalid = undefined;
|
|
227
|
-
this.classCollection = new
|
|
227
|
+
this.classCollection = new Be([this.baseClassName, classFieldset]);
|
|
228
228
|
this.errorMessage = undefined;
|
|
229
229
|
this.checkboxItems = [];
|
|
230
230
|
this.displaySearchInput = undefined;
|
|
@@ -332,7 +332,7 @@ const MgInputCheckbox$1 = /*@__PURE__*/ proxyCustomElement(class MgInputCheckbox
|
|
|
332
332
|
if (typeof valid !== 'boolean') {
|
|
333
333
|
throw new Error('<mg-input-checkbox> method "setError()" param "valid" must be a boolean');
|
|
334
334
|
}
|
|
335
|
-
else if (!
|
|
335
|
+
else if (!Pe(errorMessage)) {
|
|
336
336
|
throw new Error('<mg-input-checkbox> method "setError()" param "errorMessage" must be a string');
|
|
337
337
|
}
|
|
338
338
|
else {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
2
|
+
import { P as Pe, p as pe, g as ge, X as Xe, G as Ge, B as Be } from './index.es.js';
|
|
3
3
|
import { d as defineCustomElement$5, H as Handler, b as classReadonly, e as classDisabled } from './mg-input2.js';
|
|
4
4
|
import { i as initLocales } from './index2.js';
|
|
5
5
|
import { d as defineCustomElement$6 } from './mg-icon2.js';
|
|
@@ -33,7 +33,7 @@ const MgInputDate$1 = /*@__PURE__*/ proxyCustomElement(class MgInputDate extends
|
|
|
33
33
|
* @param value - value to test
|
|
34
34
|
* @returns truthy when value match the pattern
|
|
35
35
|
*/
|
|
36
|
-
this.isValidPattern = (value) =>
|
|
36
|
+
this.isValidPattern = (value) => Pe(value) && pe.test(value);
|
|
37
37
|
/**
|
|
38
38
|
* Format help text to display
|
|
39
39
|
* @param helpText - help text format
|
|
@@ -41,10 +41,10 @@ const MgInputDate$1 = /*@__PURE__*/ proxyCustomElement(class MgInputDate extends
|
|
|
41
41
|
*/
|
|
42
42
|
this.formatHelpText = (helpText) => {
|
|
43
43
|
const defaultHelpTextVariable = '{defaultHelpText}';
|
|
44
|
-
let text =
|
|
44
|
+
let text = Pe(helpText) ? helpText : this.messages.input.date.helpText;
|
|
45
45
|
if (text.includes(defaultHelpTextVariable))
|
|
46
46
|
text = text.replace(defaultHelpTextVariable, this.formatHelpText(this.messages.input.date.helpText));
|
|
47
|
-
return text.replace('{pattern}', this.renderPattern()).replace('{date}',
|
|
47
|
+
return text.replace('{pattern}', this.renderPattern()).replace('{date}', ge(Xe(new Date('2023-12-24')), this.systemLocale));
|
|
48
48
|
};
|
|
49
49
|
/**
|
|
50
50
|
* Handle input event
|
|
@@ -136,8 +136,8 @@ const MgInputDate$1 = /*@__PURE__*/ proxyCustomElement(class MgInputDate extends
|
|
|
136
136
|
// min, max & minMax
|
|
137
137
|
else if ([InputError.MIN, InputError.MAX, InputError.MINMAX].includes(inputError)) {
|
|
138
138
|
this.errorMessage = this.messages.errors.date[inputError]
|
|
139
|
-
.replace('{min}',
|
|
140
|
-
.replace('{max}',
|
|
139
|
+
.replace('{min}', ge(this.min, this.systemLocale))
|
|
140
|
+
.replace('{max}', ge(this.max, this.systemLocale));
|
|
141
141
|
}
|
|
142
142
|
// wrong date format
|
|
143
143
|
// element.validity.badInput is default error message
|
|
@@ -151,7 +151,7 @@ const MgInputDate$1 = /*@__PURE__*/ proxyCustomElement(class MgInputDate extends
|
|
|
151
151
|
* @returns translated html pattern
|
|
152
152
|
*/
|
|
153
153
|
this.renderPattern = () => {
|
|
154
|
-
let patternLocal =
|
|
154
|
+
let patternLocal = Ge(this.systemLocale);
|
|
155
155
|
for (const key in this.messages.input.date.pattern) {
|
|
156
156
|
patternLocal = patternLocal.replace(key, this.messages.input.date.pattern[key]);
|
|
157
157
|
}
|
|
@@ -173,7 +173,7 @@ const MgInputDate$1 = /*@__PURE__*/ proxyCustomElement(class MgInputDate extends
|
|
|
173
173
|
this.helpText = undefined;
|
|
174
174
|
this.valid = undefined;
|
|
175
175
|
this.invalid = undefined;
|
|
176
|
-
this.classCollection = new
|
|
176
|
+
this.classCollection = new Be(['mg-c-input--date']);
|
|
177
177
|
this.errorMessage = undefined;
|
|
178
178
|
}
|
|
179
179
|
validateValue(newValue) {
|
|
@@ -181,7 +181,7 @@ const MgInputDate$1 = /*@__PURE__*/ proxyCustomElement(class MgInputDate extends
|
|
|
181
181
|
if (newValue === '')
|
|
182
182
|
newValue = null;
|
|
183
183
|
// check value validity
|
|
184
|
-
if (newValue && !
|
|
184
|
+
if (newValue && !Pe(newValue)) {
|
|
185
185
|
throw new Error("<mg-input-date> props 'value' must be a valid string");
|
|
186
186
|
}
|
|
187
187
|
else if (!newValue || (newValue && this.isValidPattern(newValue))) {
|
|
@@ -238,7 +238,7 @@ const MgInputDate$1 = /*@__PURE__*/ proxyCustomElement(class MgInputDate extends
|
|
|
238
238
|
if (typeof valid !== 'boolean') {
|
|
239
239
|
throw new Error('<mg-input-date> method "setError()" param "valid" must be a boolean');
|
|
240
240
|
}
|
|
241
|
-
else if (!
|
|
241
|
+
else if (!Pe(errorMessage)) {
|
|
242
242
|
throw new Error('<mg-input-date> method "setError()" param "errorMessage" must be a string');
|
|
243
243
|
}
|
|
244
244
|
else {
|
|
@@ -292,7 +292,7 @@ const MgInputDate$1 = /*@__PURE__*/ proxyCustomElement(class MgInputDate extends
|
|
|
292
292
|
* @returns HTML Element
|
|
293
293
|
*/
|
|
294
294
|
render() {
|
|
295
|
-
return (h("mg-input", { key: 'f38d79cb71311149b4d15885b65cd8f025dde15d', label: this.label, identifier: this.identifier, class: this.classCollection.join(), ariaDescribedbyIDs: [], labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: this.required, readonlyValue:
|
|
295
|
+
return (h("mg-input", { key: 'f38d79cb71311149b4d15885b65cd8f025dde15d', label: this.label, identifier: this.identifier, class: this.classCollection.join(), ariaDescribedbyIDs: [], labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: this.required, readonlyValue: ge(this.value, this.locale), tooltip: this.tooltip, tooltipPosition: this.tooltipPosition, helpText: this.formatHelpText(this.helpText), errorMessage: this.errorMessage }, h("input", { key: '67bf6f0ad58ee1a506ffd0d3d41d5954db68465c', type: "date", class: "mg-c-input__box", min: this.min, max: this.max, value: this.value, id: this.identifier, name: this.name, disabled: this.disabled, required: this.required, "aria-invalid": (this.invalid === true).toString(), onInput: this.handleInput, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, ref: (el) => {
|
|
296
296
|
if (el !== null)
|
|
297
297
|
this.input = el;
|
|
298
298
|
} })));
|