@mgdis/mg-components 5.27.4 → 5.28.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/cjs/{index-3198e64e.js → index-ce4f7698.js} +176 -159
- package/dist/cjs/index-ce4f7698.js.map +1 -0
- package/dist/cjs/{index-11b35234.js → index-d8721674.js} +9 -8
- package/dist/cjs/index-d8721674.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mg-action-more_36.cjs.entry.js +73 -47
- package/dist/cjs/mg-action-more_36.cjs.entry.js.map +1 -1
- package/dist/cjs/mg-components.cjs.js +3 -3
- package/dist/cjs/mg-components.cjs.js.map +1 -1
- package/dist/cjs/mg-loader.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +20 -2
- package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js.map +1 -1
- package/dist/collection/components/molecules/menu/mg-menu/mg-menu.js +3 -3
- 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 +4 -4
- 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 +54 -29
- package/dist/collection/components/molecules/mg-item-more/mg-item-more.js.map +1 -1
- package/dist/components/index.es.js +8 -7
- package/dist/components/index.es.js.map +1 -1
- package/dist/components/mg-input-checkbox.js +1 -1
- package/dist/components/mg-input-checkbox.js.map +1 -1
- package/dist/components/mg-input-date.js +1 -1
- package/dist/components/mg-input-date.js.map +1 -1
- package/dist/components/mg-input-numeric.js +1 -1
- package/dist/components/mg-input-numeric.js.map +1 -1
- package/dist/components/mg-input-password.js +5 -3
- package/dist/components/mg-input-password.js.map +1 -1
- package/dist/components/mg-input-radio.js +1 -1
- package/dist/components/mg-input-radio.js.map +1 -1
- package/dist/components/mg-input-select2.js +1 -1
- package/dist/components/mg-input-select2.js.map +1 -1
- package/dist/components/mg-input-text2.js +1 -1
- package/dist/components/mg-input-text2.js.map +1 -1
- package/dist/components/mg-input-textarea.js +1 -1
- package/dist/components/mg-input-textarea.js.map +1 -1
- package/dist/components/mg-input-toggle.js +1 -1
- package/dist/components/mg-input-toggle.js.map +1 -1
- package/dist/components/mg-input2.js +1 -1
- package/dist/components/mg-input2.js.map +1 -1
- package/dist/components/mg-item-more2.js +56 -31
- package/dist/components/mg-item-more2.js.map +1 -1
- package/dist/components/mg-menu-item2.js +4 -4
- package/dist/components/mg-menu-item2.js.map +1 -1
- package/dist/esm/{index-00abd8c1.js → index-817d7645.js} +9 -8
- package/dist/esm/index-817d7645.js.map +1 -0
- package/dist/esm/{index-99317ec3.js → index-9ed65b6d.js} +176 -159
- package/dist/esm/index-9ed65b6d.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mg-action-more_36.entry.js +73 -47
- package/dist/esm/mg-action-more_36.entry.js.map +1 -1
- package/dist/esm/mg-components.js +4 -4
- package/dist/esm/mg-components.js.map +1 -1
- package/dist/esm/mg-loader.entry.js +2 -2
- 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-06a9d801.js +3 -0
- package/dist/mg-components/p-06a9d801.js.map +1 -0
- package/dist/mg-components/{p-d3e15dd7.entry.js → p-c4207303.entry.js} +2 -2
- package/dist/mg-components/p-eb6ec303.js +2 -0
- package/dist/mg-components/p-eb6ec303.js.map +1 -0
- package/dist/mg-components/p-ef541188.entry.js +2 -0
- package/dist/mg-components/p-ef541188.entry.js.map +1 -0
- package/dist/types/components/molecules/inputs/mg-input-password/mg-input-password.d.ts +4 -0
- package/dist/types/components/molecules/menu/mg-menu/mg-menu.d.ts +1 -1
- package/dist/types/components/molecules/mg-item-more/mg-item-more.d.ts +5 -1
- package/dist/types/components.d.ts +10 -2
- package/dist/types/stencil-public-runtime.d.ts +0 -2
- package/ide/intellij/web-types.json +23 -5
- package/ide/vscode/html-custom-data.json +18 -4
- package/loader/index.d.ts +3 -0
- package/package.json +26 -25
- package/dist/cjs/index-11b35234.js.map +0 -1
- package/dist/cjs/index-3198e64e.js.map +0 -1
- package/dist/esm/index-00abd8c1.js.map +0 -1
- package/dist/esm/index-99317ec3.js.map +0 -1
- package/dist/mg-components/p-48c0a0bf.entry.js +0 -2
- package/dist/mg-components/p-48c0a0bf.entry.js.map +0 -1
- package/dist/mg-components/p-4cfcbdc2.js +0 -2
- package/dist/mg-components/p-4cfcbdc2.js.map +0 -1
- package/dist/mg-components/p-815362e4.js +0 -3
- package/dist/mg-components/p-815362e4.js.map +0 -1
- /package/dist/mg-components/{p-d3e15dd7.entry.js.map → p-c4207303.entry.js.map} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"index-817d7645.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,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,IAAI,QAAQ,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;AAC5D,MAAC,EAAE,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,EAAE,KAAK;AAC/B,EAAE,MAAM,CAAC,GAAG,IAAI,UAAU,CAAC,CAAC,CAAC,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AC,CAAC,KAAK,CAAC;AAChB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACpTD,MAAM,aAAa,GAAG,IAAI,CAAC;AAC3B,MAAM,QAAQ,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;AAE5B;;;;;MAKa,WAAW,GAAGA,EAAa,CAAC,QAAQ,EAAE,aAAa;;;;","names":["defineLocales"],"sources":["../stencil-helpers/dist/index.es.js","src/locales/index.ts"],"sourcesContent":["var $e = Object.defineProperty;\nvar ue = (e, t, s) => t in e ? $e(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;\nvar v = (e, t, s) => ue(e, typeof t != \"symbol\" ? t + \"\" : t, s);\nconst Ce = (e = \"\", t = 10) => {\n const s = new Uint8Array(t);\n crypto.getRandomValues(s);\n const r = Array.from(s).map((o) => o.toString(16).padStart(2, \"0\")).join(\"\").slice(0, t);\n return e !== \"\" ? `${e}-${r}` : r;\n};\nclass He {\n constructor(t = []) {\n /**\n * Available classes\n */\n v(this, \"classes\");\n /**\n * Add class\n * @param className - class name to add\n */\n v(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 v(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 v(this, \"has\", (t) => this.classes.includes(t));\n /**\n * Join classes seperated by spaces\n * @returns joined values\n */\n v(this, \"join\", () => this.classes.join(\" \"));\n this.classes = t;\n }\n}\nconst Pe = (e) => Array.isArray(e) && e.every((t) => typeof t == \"string\"), Be = (e, t) => t.includes(e == null ? void 0 : e.tagName.toLowerCase()), We = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"]), [identifier], mg-button', ze = (e) => {\n const t = Q(e), s = Z(e);\n return [e, ...t, ...s];\n}, Q = (e, t = []) => {\n if (e.self !== e.top)\n try {\n const s = e.parent;\n return s ? (t.push(s), Q(s, t)) : t;\n } catch (s) {\n return console.error(\"Different hosts between iframes:\", s), t;\n }\n return t;\n}, Z = (e, t = []) => {\n if (e.frames.length > 0)\n for (const s of Array.from(e.frames))\n t.push(s), Z(s, t);\n return t;\n}, Ie = (e) => typeof e == \"string\" && e.trim() !== \"\", qe = (e) => typeof e == \"string\" ? e.toLocaleLowerCase().normalize(\"NFD\").replaceAll(/[\\u0300-\\u036f]/g, \"\") : e, Ge = async (e) => e(), J = (e, t) => {\n if (!t)\n return;\n const s = t.split(\"/\");\n return `${e}${s.slice(2, s.length - 1).join(\"-\")}--docs`;\n}, de = (e, t) => {\n if (t)\n return `${e}${t}`;\n}, Y = (e) => {\n let t = e.overview ? `${e.overview}\n\n` : \"\";\n const s = e.props.filter(({ attr: o }) => o !== void 0);\n s.length && (t += `Attributes:\n`, t += s.map(({ attr: o, docs: l }) => `- \\`${o}\\`: ${l}\n`).join(\"\"), t += `\n`);\n const r = e.props.filter(({ attr: o }) => o === void 0);\n return r.length && (t += `Properties:\n`, t += r.map(({ name: o, docs: l }) => `- \\`${o}\\`: ${l}\n`).join(\"\"), t += `\n`), e.methods.length && (t += `Methods:\n`, t += e.methods.map(({ name: o, docs: l }) => `- \\`${o}\\`: ${l}\n`).join(\"\"), t += `\n`), e.events.length && (t += `Events:\n`, t += e.events.map(({ event: o, docs: l }) => `- \\`${o}\\`: ${l}\n`).join(\"\"), t += `\n`), e.listeners.length && (t += `Listeners:\n`, t += e.listeners.map(({ event: o }) => `- \\`${o}\\`\n`).join(\"\"), t += `\n`), e.slots.length && (t += `Slots:\n`, t += e.slots.map(({ name: o, docs: l }) => `- \\`${o}\\`: ${l}\n`).join(\"\"), t += `\n`), t;\n}, _ = (e) => `${e.docs}\n\nType: \\`${e.type}\\``, Xe = (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((o) => {\n const l = J(r, o.filePath);\n return {\n name: o.tag,\n description: Y(o),\n \"doc-url\": l,\n attributes: o.props.filter((n) => n.attr).map((n) => ({\n name: n.attr,\n description: _(n),\n \"doc-url\": l,\n value: {\n type: n.type,\n default: n.default,\n required: n.required\n }\n })),\n js: {\n properties: o.props.map((n) => ({\n name: n.name,\n description: _(n),\n \"doc-url\": l,\n value: {\n type: n.type,\n default: n.default,\n required: n.required\n }\n })),\n events: o.events.map((n) => ({\n name: n.event,\n description: n.docs\n }))\n }\n };\n })\n }\n }\n}), pe = (e, t, s) => [\n { name: \"Storybook\", url: J(e, s) },\n { name: \"Sources\", url: de(t, s) }\n], ve = (e) => {\n if (!e.values.some(({ value: t }) => t === void 0))\n return e.values.map(({ value: t }) => ({ name: t }));\n}, Ke = (e, t, s, r) => ({\n version: e,\n tags: t.components.map((o) => {\n const l = pe(s, r, o.filePath);\n return {\n name: o.tag,\n description: Y(o),\n attributes: o.props.map((n) => ({\n name: n.attr || n.name,\n description: _(n),\n values: ve(n),\n references: l\n })),\n references: l\n };\n }),\n globalAttributes: [],\n valueSets: []\n}), Qe = (e) => {\n const t = { value: \"2023\", pattern: \"yyyy\" }, s = { value: \"12\", pattern: \"mm\" }, r = { value: \"24\", pattern: \"dd\" };\n return ye([t.value, s.value, r.value].join(\"-\"), e, { timeZone: \"UTC\" }).replace(t.value, t.pattern).replace(s.value, s.pattern).replace(r.value, r.pattern);\n}, Ze = (e) => e.toISOString().split(\"T\")[0], ge = (e, t, s) => {\n const r = e.closest(\"[lang]\"), o = Intl.NumberFormat.supportedLocalesOf(r == null ? void 0 : r.lang), l = o.length > 0 && typeof o[0] == \"string\" ? o[0] : navigator.language || s, n = l.split(\"-\").shift();\n return {\n locale: l,\n messages: t[n] || t[s]\n };\n}, Je = (e, t, s) => new Intl.NumberFormat(t, { style: \"currency\", currency: s }).format(e), Ye = (e, t, s = 0) => new Intl.NumberFormat(t, { minimumFractionDigits: s }).format(s > 0 ? Number(e == null ? void 0 : e.toFixed(s)) : e), he = /^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$/, ye = (e, t, s) => typeof e != \"string\" || e === \"\" || !he.test(e) ? \"\" : new Intl.DateTimeFormat(t, s).format(new Date(e)), Ve = (e, t) => (s) => ge(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 // TODO(STENCIL-1305): remove this option\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}, be = Object.defineProperty, Se = (e, t) => {\n for (var s in t)\n be(e, s, { get: t[s], enumerable: !0 });\n}, W = (e, t) => t in e, z = \"http://www.w3.org/1999/xlink\", C = typeof window < \"u\" ? window : {}, j = C.document || { head: {} };\nC.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}, I = {}, me = \"http://www.w3.org/2000/svg\", Te = \"http://www.w3.org/1999/xhtml\", ke = (e) => e != null, V = (e) => (e = typeof e, e === \"object\" || e === \"function\"), xe = {};\nSe(xe, {\n err: () => ee,\n map: () => Ee,\n ok: () => F,\n unwrap: () => Ae,\n unwrapErr: () => Le\n});\nvar F = (e) => ({\n isOk: !0,\n isErr: !1,\n value: e\n}), ee = (e) => ({\n isOk: !1,\n isErr: !0,\n value: e\n});\nfunction Ee(e, t) {\n if (e.isOk) {\n const s = t(e.value);\n return s instanceof Promise ? s.then((r) => F(r)) : F(s);\n }\n if (e.isErr) {\n const s = e.value;\n return ee(s);\n }\n throw \"should never get here\";\n}\nvar Ae = (e) => {\n if (e.isOk)\n return e.value;\n throw e.value;\n}, Le = (e) => {\n if (e.isErr)\n return e.value;\n throw e.value;\n}, Re = (e, t, ...s) => {\n let r = null, o = null, l = null, n = !1, i = !1;\n const a = [], d = (f) => {\n for (let $ = 0; $ < f.length; $++)\n r = f[$], Array.isArray(r) ? d(r) : r != null && typeof r != \"boolean\" && ((n = !V(r)) && (r = String(r)), n && i ? a[a.length - 1].$text$ += r : a.push(n ? U(null, r) : r), i = n);\n };\n d(s);\n const u = U(e, null);\n return u.$attrs$ = t, a.length > 0 && (u.$children$ = a), u.$key$ = o, u.$name$ = l, u;\n}, U = (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}, je = {}, Oe = (e) => e && e.$tag$ === je, q = (e, t, s, r, o, l) => {\n if (s !== r) {\n let n = W(e, t), i = t.toLowerCase();\n if (t === \"class\") {\n const a = e.classList, d = G(s), u = G(r);\n a.remove(...d.filter((f) => f && !u.includes(f))), a.add(...u.filter((f) => f && !d.includes(f)));\n } else if (t === \"style\") {\n for (const a in s)\n (!r || r[a] == null) && (a.includes(\"-\") ? e.style.removeProperty(a) : e.style[a] = \"\");\n for (const a in r)\n (!s || r[a] !== s[a]) && (a.includes(\"-\") ? e.style.setProperty(a, r[a]) : e.style[a] = r[a]);\n } else if (t !== \"key\") 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) : W(C, i) ? t = i.slice(2) : t = i[2] + t.slice(3), s || r) {\n const a = t.endsWith(te);\n t = t.replace(De, \"\"), s && x.rel(e, t, s, a), r && x.ael(e, t, r, a);\n }\n } else {\n const a = V(r);\n if ((n || a && r !== null) && !o)\n try {\n if (e.tagName.includes(\"-\"))\n e[t] = r;\n else {\n const u = r ?? \"\";\n t === \"list\" ? n = !1 : (s == null || e[t] != u) && (e[t] = u);\n }\n } catch {\n }\n let d = !1;\n i !== (i = i.replace(/^xlink\\:?/, \"\")) && (t = i, d = !0), r == null || r === !1 ? (r !== !1 || e.getAttribute(t) === \"\") && (d ? e.removeAttributeNS(z, t) : e.removeAttribute(t)) : (!n || l & 4 || o) && !a && (r = r === !0 ? \"\" : r, d ? e.setAttributeNS(z, t, r) : e.setAttribute(t, r));\n }\n }\n}, Me = /\\s/, G = (e) => e ? e.split(Me) : [], te = \"Capture\", De = new RegExp(te + \"$\"), se = (e, t, s) => {\n const r = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, o = e && e.$attrs$ || I, l = t.$attrs$ || I;\n for (const n of X(Object.keys(o)))\n n in l || q(r, n, o[n], void 0, s, t.$flags$);\n for (const n of X(Object.keys(l)))\n q(r, n, o[n], l[n], s, t.$flags$);\n};\nfunction X(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 T, w, E, O = !1, M = !1, H = !1, h = !1, D = (e, t, s, r) => {\n var o;\n const l = t.$children$[s];\n let n = 0, i, a, d;\n if (O || (H = !0, l.$tag$ === \"slot\" && (T && r.classList.add(T + \"-s\"), l.$flags$ |= l.$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 ))), l.$text$ !== null)\n i = l.$elm$ = j.createTextNode(l.$text$);\n else if (l.$flags$ & 1)\n i = l.$elm$ = j.createTextNode(\"\");\n else {\n if (h || (h = l.$tag$ === \"svg\"), i = l.$elm$ = j.createElementNS(\n h ? me : Te,\n !O && N.slotRelocation && l.$flags$ & 2 ? \"slot-fb\" : l.$tag$\n ), h && l.$tag$ === \"foreignObject\" && (h = !1), se(null, l, h), ke(T) && i[\"s-si\"] !== T && i.classList.add(i[\"s-si\"] = T), B(i, r), l.$children$)\n for (n = 0; n < l.$children$.length; ++n)\n a = D(e, l, n, i), a && i.appendChild(a);\n l.$tag$ === \"svg\" ? h = !1 : i.tagName === \"foreignObject\" && (h = !0);\n }\n return i[\"s-hn\"] = E, l.$flags$ & 3 && (i[\"s-sr\"] = !0, i[\"s-cr\"] = w, i[\"s-sn\"] = l.$name$ || \"\", i[\"s-rf\"] = (o = l.$attrs$) == null ? void 0 : o.ref, d = e && e.$children$ && e.$children$[s], d && d.$tag$ === l.$tag$ && e.$elm$ && A(e.$elm$, !1)), i;\n}, A = (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\"] === E && s.push(r);\n }\n for (let r = s.length - 1; r >= 0; r--) {\n const o = s[r];\n o[\"s-hn\"] !== E && o[\"s-ol\"] && (m(le(o), o, P(o)), o[\"s-ol\"].remove(), o[\"s-ol\"] = void 0, o[\"s-sh\"] = void 0, H = !0), t && A(o, t);\n }\n x.$flags$ &= -2;\n}, re = (e, t, s, r, o, l) => {\n let n = e[\"s-cr\"] && e[\"s-cr\"].parentNode || e, i;\n for (n.shadowRoot && n.tagName === E && (n = n.shadowRoot); o <= l; ++o)\n r[o] && (i = D(null, s, o, e), i && (r[o].$elm$ = i, m(n, i, P(t))));\n}, oe = (e, t, s) => {\n for (let r = t; r <= s; ++r) {\n const o = e[r];\n if (o) {\n const l = o.$elm$;\n ae(o), l && (M = !0, l[\"s-ol\"] ? l[\"s-ol\"].remove() : A(l, !0), l.remove());\n }\n }\n}, Ne = (e, t, s, r, o = !1) => {\n let l = 0, n = 0, i = 0, a = 0, d = t.length - 1, u = t[0], f = t[d], $ = r.length - 1, c = r[0], p = r[$], b, y;\n for (; l <= d && n <= $; )\n if (u == null)\n u = t[++l];\n else if (f == null)\n f = t[--d];\n else if (c == null)\n c = r[++n];\n else if (p == null)\n p = r[--$];\n else if (R(u, c, o))\n k(u, c, o), u = t[++l], c = r[++n];\n else if (R(f, p, o))\n k(f, p, o), f = t[--d], p = r[--$];\n else if (R(u, p, o))\n (u.$tag$ === \"slot\" || p.$tag$ === \"slot\") && A(u.$elm$.parentNode, !1), k(u, p, o), m(e, u.$elm$, f.$elm$.nextSibling), u = t[++l], p = r[--$];\n else if (R(f, c, o))\n (u.$tag$ === \"slot\" || p.$tag$ === \"slot\") && A(f.$elm$.parentNode, !1), k(f, c, o), m(e, f.$elm$, u.$elm$), f = t[--d], c = r[++n];\n else {\n for (i = -1, a = l; a <= d; ++a)\n if (t[a] && t[a].$key$ !== null && t[a].$key$ === c.$key$) {\n i = a;\n break;\n }\n i >= 0 ? (y = t[i], y.$tag$ !== c.$tag$ ? b = D(t && t[n], s, i, e) : (k(y, c, o), t[i] = void 0, b = y.$elm$), c = r[++n]) : (b = D(t && t[n], s, n, e), c = r[++n]), b && m(le(u.$elm$), b, P(u.$elm$));\n }\n l > d ? re(\n e,\n r[$ + 1] == null ? null : r[$ + 1].$elm$,\n s,\n r,\n n,\n $\n ) : n > $ && oe(t, l, d);\n}, R = (e, t, s = !1) => e.$tag$ === t.$tag$ ? e.$tag$ === \"slot\" ? e.$name$ === t.$name$ : s ? !0 : e.$key$ === t.$key$ : !1, P = (e) => e && e[\"s-ol\"] || e, le = (e) => (e[\"s-ol\"] ? e[\"s-ol\"] : e).parentNode, k = (e, t, s = !1) => {\n const r = t.$elm$ = e.$elm$, o = e.$children$, l = t.$children$, n = t.$tag$, i = t.$text$;\n let a;\n i === null ? (h = n === \"svg\" ? !0 : n === \"foreignObject\" ? !1 : h, n === \"slot\" && !O || se(e, t, h), o !== null && l !== null ? Ne(r, o, t, l, s) : l !== null ? (e.$text$ !== null && (r.textContent = \"\"), re(r, null, t, l, 0, l.length - 1)) : o !== null && oe(o, 0, o.length - 1), h && n === \"svg\" && (h = !1)) : (a = r[\"s-cr\"]) ? a.parentNode.textContent = i : e.$text$ !== i && (r.data = i);\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 o of t)\n if (o !== s) {\n if (o[\"s-hn\"] !== s[\"s-hn\"] || r !== \"\") {\n if (o.nodeType === 1 && (r === o.getAttribute(\"slot\") || r === o[\"s-sn\"]) || o.nodeType === 3 && r === o[\"s-sn\"]) {\n s.hidden = !0;\n break;\n }\n } else if (o.nodeType === 1 || o.nodeType === 3 && o.textContent.trim() !== \"\") {\n s.hidden = !0;\n break;\n }\n }\n }\n ne(s);\n }\n}, S = [], ie = (e) => {\n let t, s, r;\n for (const o of e.childNodes) {\n if (o[\"s-sr\"] && (t = o[\"s-cr\"]) && t.parentNode) {\n s = t.parentNode.childNodes;\n const l = o[\"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\"] !== o[\"s-hn\"] && !N.experimentalSlotFixes)\n if (K(t, l)) {\n let n = S.find((i) => i.$nodeToRelocate$ === t);\n M = !0, t[\"s-sn\"] = t[\"s-sn\"] || l, n ? (n.$nodeToRelocate$[\"s-sh\"] = o[\"s-hn\"], n.$slotRefNode$ = o) : (t[\"s-sh\"] = o[\"s-hn\"], S.push({\n $slotRefNode$: o,\n $nodeToRelocate$: t\n })), t[\"s-sr\"] && S.map((i) => {\n K(i.$nodeToRelocate$, t[\"s-sn\"]) && (n = S.find((a) => a.$nodeToRelocate$ === t), n && !i.$slotRefNode$ && (i.$slotRefNode$ = n.$slotRefNode$));\n });\n } else S.some((n) => n.$nodeToRelocate$ === t) || S.push({\n $nodeToRelocate$: t\n });\n }\n o.nodeType === 1 && ie(o);\n }\n}, K = (e, t) => e.nodeType === 1 ? e.getAttribute(\"slot\") === null && t === \"\" || e.getAttribute(\"slot\") === t : e[\"s-sn\"] === t ? !0 : t === \"\", ae = (e) => {\n e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map(ae);\n}, m = (e, t, s) => {\n const r = e == null ? void 0 : e.insertBefore(t, s);\n return B(t, e), r;\n}, ce = (e) => {\n const t = [];\n return e && t.push(\n ...e[\"s-scs\"] || [],\n e[\"s-si\"],\n e[\"s-sc\"],\n ...ce(e.parentElement)\n ), t;\n}, B = (e, t, s = !1) => {\n var r;\n if (e && t && e.nodeType === 1) {\n const o = new Set(ce(t).filter(Boolean));\n if (o.size && ((r = e.classList) == null || r.add(...e[\"s-scs\"] = [...o]), e[\"s-ol\"] || s))\n for (const l of Array.from(e.childNodes))\n B(l, e, !0);\n }\n}, _e = (e, t, s = !1) => {\n var r, o, l, n, i;\n const a = e.$hostElement$, d = e.$cmpMeta$, u = e.$vnode$ || U(null, null), f = Oe(t) ? t : Re(null, null, t);\n if (E = a.tagName, d.$attrsToReflect$ && (f.$attrs$ = f.$attrs$ || {}, d.$attrsToReflect$.map(\n ([$, c]) => f.$attrs$[c] = a[$]\n )), s && f.$attrs$)\n for (const $ of Object.keys(f.$attrs$))\n a.hasAttribute($) && ![\"key\", \"ref\", \"style\", \"class\"].includes($) && (f.$attrs$[$] = a[$]);\n f.$tag$ = null, f.$flags$ |= 4, e.$vnode$ = f, f.$elm$ = u.$elm$ = a.shadowRoot || a, T = a[\"s-sc\"], O = (d.$flags$ & 1) !== 0, w = a[\"s-cr\"], M = !1, k(u, f, s);\n {\n if (x.$flags$ |= 1, H) {\n ie(f.$elm$);\n for (const $ of S) {\n const c = $.$nodeToRelocate$;\n if (!c[\"s-ol\"]) {\n const p = j.createTextNode(\"\");\n p[\"s-nr\"] = c, m(c.parentNode, c[\"s-ol\"] = p, c);\n }\n }\n for (const $ of S) {\n const c = $.$nodeToRelocate$, p = $.$slotRefNode$;\n if (p) {\n const b = p.parentNode;\n let y = p.nextSibling;\n {\n let L = (r = c[\"s-ol\"]) == null ? void 0 : r.previousSibling;\n for (; L; ) {\n let g = (o = L[\"s-nr\"]) != null ? o : null;\n if (g && g[\"s-sn\"] === c[\"s-sn\"] && b === g.parentNode) {\n for (g = g.nextSibling; g === c || g != null && g[\"s-sr\"]; )\n g = g == null ? void 0 : g.nextSibling;\n if (!g || !g[\"s-nr\"]) {\n y = g;\n break;\n }\n }\n L = L.previousSibling;\n }\n }\n (!y && b !== c.parentNode || c.nextSibling !== y) && c !== y && (!c[\"s-hn\"] && c[\"s-ol\"] && (c[\"s-hn\"] = c[\"s-ol\"].parentNode.nodeName), m(b, c, y), c.nodeType === 1 && (c.hidden = (l = c[\"s-ih\"]) != null ? l : !1)), c && typeof p[\"s-rf\"] == \"function\" && p[\"s-rf\"](c);\n } else\n c.nodeType === 1 && (s && (c[\"s-ih\"] = (n = c.hidden) != null ? n : !1), c.hidden = !0);\n }\n }\n M && ne(f.$elm$), x.$flags$ &= -2, S.length = 0;\n }\n if (N.experimentalScopedSlotChanges && d.$flags$ & 2)\n for (const $ of f.$elm$.childNodes)\n $[\"s-hn\"] !== E && !$[\"s-sh\"] && (s && $[\"s-ih\"] == null && ($[\"s-ih\"] = (i = $.hidden) != null ? i : !1), $.hidden = !0);\n w = void 0;\n};\nconst Fe = (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}, fe = (e, t, s, r, o) => {\n if (t && typeof t == \"string\") {\n const l = document.createElement(t);\n Object.keys(s || {}).forEach((n) => {\n Fe(l, n, s[n]);\n }), r == null || r.forEach((n) => {\n fe(l, n.$tag$, n.$attrs$, n.$children$, n.$text$);\n }), s != null && s.innerHTML && (l.innerHTML = s.innerHTML), e.appendChild(l);\n }\n o && (e.innerHTML = o);\n}, et = (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 o = e[r], l = r.replace(/([a-z])([A-Z])/g, \"$1-$2\").toLowerCase();\n (!t || !Object.keys(t).includes(r) || t[r] !== o) && (s[l] = o);\n }\n return s;\n}, tt = (e, t) => {\n var r, o;\n const s = document.getElementById(\"storybook-root\");\n if (s)\n return (o = document.querySelector(\"[lang]\")) == null || o.setAttribute(\"lang\", ((r = t.globals) == null ? void 0 : r.locale) || \"en\"), _e(\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}, st = ({ $tag$: e, $attrs$: t, $children$: s, $text$: r }) => {\n const o = document.createElement(\"div\");\n return fe(o, e, t, s, r), o.innerHTML;\n}, rt = ({ disconnect: e, observe: t, takeRecords: s }) => {\n class r {\n constructor(l) {\n /**\n *\n */\n v(this, \"disconnect\", e);\n /**\n *\n */\n v(this, \"observe\", t);\n /**\n *\n */\n v(this, \"takeRecords\", s);\n /**\n *\n */\n v(this, \"cb\");\n this.cb = l;\n }\n }\n return [window, global].forEach((o) => {\n Object.defineProperty(o, \"MutationObserver\", {\n writable: !0,\n configurable: !0,\n value: r\n });\n }), r;\n}, ot = ({ disconnect: e, observe: t }) => {\n class s {\n constructor(o) {\n /**\n *\n */\n v(this, \"disconnect\", e);\n /**\n *\n */\n v(this, \"observe\", t);\n /**\n *\n */\n v(this, \"unobserve\");\n /**\n *\n */\n v(this, \"cb\");\n this.cb = o;\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 Ue extends Event {\n constructor() {\n super(...arguments);\n /**\n *\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n v(this, \"detail\");\n }\n}\nconst lt = () => {\n class e extends Ue {\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 He as ClassList,\n Pe as allItemsAreString,\n qe as cleanString,\n Ce as createID,\n he as dateRegExp,\n Ze as dateToString,\n Ve as defineLocales,\n et as filterArgs,\n We as focusableElements,\n Qe as getLocaleDatePattern,\n Q as getParentWindows,\n st as getStoryHTML,\n ze as getWindows,\n Be as isTagName,\n Ie as isValidString,\n Je as localeCurrency,\n ye as localeDate,\n Ye as localeNumber,\n Ge as nextTick,\n rt as setupMutationObserverMock,\n ot as setupResizeObserverMock,\n lt as setupSubmitEventMock,\n tt as stencilWrapper,\n Ke as vsCodeGenerator,\n Xe as webTypesGenerator\n};\n//# sourceMappingURL=index.es.js.map\n","import en from './en/messages.json';\nimport fr from './fr/messages.json';\nimport { defineLocales } from '@mgdis/stencil-helpers';\n\nconst defaultLocale = 'en';\nconst messages = { en, fr };\n\n/**\n * Get Intl object\n * @param element - element we need to get the language\n * @returns messages object\n */\nexport const initLocales = defineLocales(messages, defaultLocale);\n"],"version":3}
|
|
@@ -2,13 +2,156 @@ const NAMESPACE = 'mg-components';
|
|
|
2
2
|
const BUILD = /* mg-components */ { allRenderFn: false, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: true, cmpShouldUpdate: true, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: true, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: true, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __export = (target, all) => {
|
|
9
9
|
for (var name in all)
|
|
10
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
11
|
};
|
|
12
|
+
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
13
|
+
var getHostRef = (ref) => hostRefs.get(ref);
|
|
14
|
+
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
15
|
+
var registerHost = (hostElement, cmpMeta) => {
|
|
16
|
+
const hostRef = {
|
|
17
|
+
$flags$: 0,
|
|
18
|
+
$hostElement$: hostElement,
|
|
19
|
+
$cmpMeta$: cmpMeta,
|
|
20
|
+
$instanceValues$: /* @__PURE__ */ new Map()
|
|
21
|
+
};
|
|
22
|
+
{
|
|
23
|
+
hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
|
|
24
|
+
}
|
|
25
|
+
{
|
|
26
|
+
hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
|
|
27
|
+
hostElement["s-p"] = [];
|
|
28
|
+
hostElement["s-rc"] = [];
|
|
29
|
+
}
|
|
30
|
+
return hostRefs.set(hostElement, hostRef);
|
|
31
|
+
};
|
|
32
|
+
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
33
|
+
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
34
|
+
|
|
35
|
+
// src/client/client-load-module.ts
|
|
36
|
+
var cmpModules = /* @__PURE__ */ new Map();
|
|
37
|
+
var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
38
|
+
const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
|
|
39
|
+
const bundleId = cmpMeta.$lazyBundleId$;
|
|
40
|
+
if (!bundleId) {
|
|
41
|
+
return void 0;
|
|
42
|
+
}
|
|
43
|
+
const module = cmpModules.get(bundleId) ;
|
|
44
|
+
if (module) {
|
|
45
|
+
return module[exportName];
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
if (!hmrVersionId || !BUILD.hotModuleReplacement) {
|
|
49
|
+
const processMod = importedModule => {
|
|
50
|
+
cmpModules.set(bundleId, importedModule);
|
|
51
|
+
return importedModule[exportName];
|
|
52
|
+
}
|
|
53
|
+
switch(bundleId) {
|
|
54
|
+
|
|
55
|
+
case 'mg-action-more_36':
|
|
56
|
+
return import(
|
|
57
|
+
/* webpackMode: "lazy" */
|
|
58
|
+
'./mg-action-more_36.entry.js').then(processMod, consoleError);
|
|
59
|
+
case 'mg-loader':
|
|
60
|
+
return import(
|
|
61
|
+
/* webpackMode: "lazy" */
|
|
62
|
+
'./mg-loader.entry.js').then(processMod, consoleError);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
return import(
|
|
66
|
+
/* @vite-ignore */
|
|
67
|
+
/* webpackInclude: /\.entry\.js$/ */
|
|
68
|
+
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
69
|
+
/* webpackMode: "lazy" */
|
|
70
|
+
`./${bundleId}.entry.js${""}`
|
|
71
|
+
).then((importedModule) => {
|
|
72
|
+
{
|
|
73
|
+
cmpModules.set(bundleId, importedModule);
|
|
74
|
+
}
|
|
75
|
+
return importedModule[exportName];
|
|
76
|
+
}, consoleError);
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
// src/client/client-style.ts
|
|
80
|
+
var styles = /* @__PURE__ */ new Map();
|
|
81
|
+
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
82
|
+
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
83
|
+
var XLINK_NS = "http://www.w3.org/1999/xlink";
|
|
84
|
+
var win = typeof window !== "undefined" ? window : {};
|
|
85
|
+
var doc = win.document || { head: {} };
|
|
86
|
+
var plt = {
|
|
87
|
+
$flags$: 0,
|
|
88
|
+
$resourcesUrl$: "",
|
|
89
|
+
jmp: (h2) => h2(),
|
|
90
|
+
raf: (h2) => requestAnimationFrame(h2),
|
|
91
|
+
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
|
92
|
+
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
93
|
+
ce: (eventName, opts) => new CustomEvent(eventName, opts)
|
|
94
|
+
};
|
|
95
|
+
var supportsListenerOptions = /* @__PURE__ */ (() => {
|
|
96
|
+
let supportsListenerOptions2 = false;
|
|
97
|
+
try {
|
|
98
|
+
doc.addEventListener(
|
|
99
|
+
"e",
|
|
100
|
+
null,
|
|
101
|
+
Object.defineProperty({}, "passive", {
|
|
102
|
+
get() {
|
|
103
|
+
supportsListenerOptions2 = true;
|
|
104
|
+
}
|
|
105
|
+
})
|
|
106
|
+
);
|
|
107
|
+
} catch (e) {
|
|
108
|
+
}
|
|
109
|
+
return supportsListenerOptions2;
|
|
110
|
+
})();
|
|
111
|
+
var promiseResolve = (v) => Promise.resolve(v);
|
|
112
|
+
var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
113
|
+
try {
|
|
114
|
+
new CSSStyleSheet();
|
|
115
|
+
return typeof new CSSStyleSheet().replaceSync === "function";
|
|
116
|
+
} catch (e) {
|
|
117
|
+
}
|
|
118
|
+
return false;
|
|
119
|
+
})() ;
|
|
120
|
+
var queuePending = false;
|
|
121
|
+
var queueDomReads = [];
|
|
122
|
+
var queueDomWrites = [];
|
|
123
|
+
var queueTask = (queue, write) => (cb) => {
|
|
124
|
+
queue.push(cb);
|
|
125
|
+
if (!queuePending) {
|
|
126
|
+
queuePending = true;
|
|
127
|
+
if (write && plt.$flags$ & 4 /* queueSync */) {
|
|
128
|
+
nextTick(flush);
|
|
129
|
+
} else {
|
|
130
|
+
plt.raf(flush);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
var consume = (queue) => {
|
|
135
|
+
for (let i2 = 0; i2 < queue.length; i2++) {
|
|
136
|
+
try {
|
|
137
|
+
queue[i2](performance.now());
|
|
138
|
+
} catch (e) {
|
|
139
|
+
consoleError(e);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
queue.length = 0;
|
|
143
|
+
};
|
|
144
|
+
var flush = () => {
|
|
145
|
+
consume(queueDomReads);
|
|
146
|
+
{
|
|
147
|
+
consume(queueDomWrites);
|
|
148
|
+
if (queuePending = queueDomReads.length > 0) {
|
|
149
|
+
plt.raf(flush);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
var nextTick = (cb) => promiseResolve().then(cb);
|
|
154
|
+
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
12
155
|
|
|
13
156
|
// src/utils/constants.ts
|
|
14
157
|
var EMPTY_OBJ = {};
|
|
@@ -88,9 +231,6 @@ var uniqueTime = (key, measureText) => {
|
|
|
88
231
|
};
|
|
89
232
|
}
|
|
90
233
|
};
|
|
91
|
-
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
92
|
-
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
93
|
-
var XLINK_NS = "http://www.w3.org/1999/xlink";
|
|
94
234
|
var h = (nodeName, vnodeData, ...children) => {
|
|
95
235
|
let child = null;
|
|
96
236
|
let key = null;
|
|
@@ -473,7 +613,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
473
613
|
elm = newVNode2.$elm$ = doc.createTextNode("");
|
|
474
614
|
} else {
|
|
475
615
|
elm = newVNode2.$elm$ = doc.createElement(
|
|
476
|
-
newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
|
616
|
+
!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
|
477
617
|
);
|
|
478
618
|
{
|
|
479
619
|
updateElement(null, newVNode2, isSvgMode);
|
|
@@ -983,7 +1123,10 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
983
1123
|
endSchedule();
|
|
984
1124
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
985
1125
|
};
|
|
986
|
-
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn)
|
|
1126
|
+
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err2) => {
|
|
1127
|
+
console.error(err2);
|
|
1128
|
+
fn();
|
|
1129
|
+
}) : fn();
|
|
987
1130
|
var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
|
|
988
1131
|
var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
989
1132
|
var _a;
|
|
@@ -1146,13 +1289,13 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1146
1289
|
|
|
1147
1290
|
// src/runtime/proxy-component.ts
|
|
1148
1291
|
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
1149
|
-
var _a;
|
|
1292
|
+
var _a, _b;
|
|
1150
1293
|
const prototype = Cstr.prototype;
|
|
1151
|
-
if (cmpMeta.$members$) {
|
|
1152
|
-
if (Cstr.watchers) {
|
|
1294
|
+
if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
|
|
1295
|
+
if (Cstr.watchers && !cmpMeta.$watchers$) {
|
|
1153
1296
|
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1154
1297
|
}
|
|
1155
|
-
const members = Object.entries(cmpMeta.$members$);
|
|
1298
|
+
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
1156
1299
|
members.map(([memberName, [memberFlags]]) => {
|
|
1157
1300
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
1158
1301
|
Object.defineProperty(prototype, memberName, {
|
|
@@ -1208,7 +1351,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1208
1351
|
};
|
|
1209
1352
|
Cstr.observedAttributes = Array.from(
|
|
1210
1353
|
/* @__PURE__ */ new Set([
|
|
1211
|
-
...Object.keys((
|
|
1354
|
+
...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
|
|
1212
1355
|
...members.filter(([_, m]) => m[0] & 15 /* HasAttribute */).map(([propName, m]) => {
|
|
1213
1356
|
var _a2;
|
|
1214
1357
|
const attrName = m[1] || propName;
|
|
@@ -1272,7 +1415,10 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1272
1415
|
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1273
1416
|
}
|
|
1274
1417
|
if (Cstr && Cstr.style) {
|
|
1275
|
-
let style
|
|
1418
|
+
let style;
|
|
1419
|
+
if (typeof Cstr.style === "string") {
|
|
1420
|
+
style = Cstr.style;
|
|
1421
|
+
}
|
|
1276
1422
|
const scopeId2 = getScopeId(cmpMeta);
|
|
1277
1423
|
if (!styles.has(scopeId2)) {
|
|
1278
1424
|
const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
|
|
@@ -1410,17 +1556,31 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1410
1556
|
// StencilLazyHost
|
|
1411
1557
|
constructor(self) {
|
|
1412
1558
|
super(self);
|
|
1559
|
+
this.hasRegisteredEventListeners = false;
|
|
1413
1560
|
self = this;
|
|
1414
1561
|
registerHost(self, cmpMeta);
|
|
1415
1562
|
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1416
1563
|
{
|
|
1417
|
-
{
|
|
1418
|
-
|
|
1564
|
+
if (!self.shadowRoot) {
|
|
1565
|
+
{
|
|
1566
|
+
self.attachShadow({ mode: "open" });
|
|
1567
|
+
}
|
|
1568
|
+
} else {
|
|
1569
|
+
if (self.shadowRoot.mode !== "open") {
|
|
1570
|
+
throw new Error(
|
|
1571
|
+
`Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${self.shadowRoot.mode} but Stencil only supports open shadow roots.`
|
|
1572
|
+
);
|
|
1573
|
+
}
|
|
1419
1574
|
}
|
|
1420
1575
|
}
|
|
1421
1576
|
}
|
|
1422
1577
|
}
|
|
1423
1578
|
connectedCallback() {
|
|
1579
|
+
const hostRef = getHostRef(this);
|
|
1580
|
+
if (!this.hasRegisteredEventListeners) {
|
|
1581
|
+
this.hasRegisteredEventListeners = true;
|
|
1582
|
+
addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
|
|
1583
|
+
}
|
|
1424
1584
|
if (appLoadFallback) {
|
|
1425
1585
|
clearTimeout(appLoadFallback);
|
|
1426
1586
|
appLoadFallback = null;
|
|
@@ -1453,7 +1613,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1453
1613
|
dataStyles.textContent += SLOT_FB_CSS;
|
|
1454
1614
|
}
|
|
1455
1615
|
{
|
|
1456
|
-
dataStyles.textContent += cmpTags + HYDRATED_CSS;
|
|
1616
|
+
dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
|
|
1457
1617
|
}
|
|
1458
1618
|
if (dataStyles.innerHTML.length) {
|
|
1459
1619
|
dataStyles.setAttribute("data-styles", "");
|
|
@@ -1511,149 +1671,6 @@ var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
|
1511
1671
|
// src/runtime/nonce.ts
|
|
1512
1672
|
var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
1513
1673
|
|
|
1514
|
-
// src/client/client-host-ref.ts
|
|
1515
|
-
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
1516
|
-
var getHostRef = (ref) => hostRefs.get(ref);
|
|
1517
|
-
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
1518
|
-
var registerHost = (hostElement, cmpMeta) => {
|
|
1519
|
-
const hostRef = {
|
|
1520
|
-
$flags$: 0,
|
|
1521
|
-
$hostElement$: hostElement,
|
|
1522
|
-
$cmpMeta$: cmpMeta,
|
|
1523
|
-
$instanceValues$: /* @__PURE__ */ new Map()
|
|
1524
|
-
};
|
|
1525
|
-
{
|
|
1526
|
-
hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
|
|
1527
|
-
}
|
|
1528
|
-
{
|
|
1529
|
-
hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
|
|
1530
|
-
hostElement["s-p"] = [];
|
|
1531
|
-
hostElement["s-rc"] = [];
|
|
1532
|
-
}
|
|
1533
|
-
addHostEventListeners(hostElement, hostRef, cmpMeta.$listeners$);
|
|
1534
|
-
return hostRefs.set(hostElement, hostRef);
|
|
1535
|
-
};
|
|
1536
|
-
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
1537
|
-
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
1538
|
-
|
|
1539
|
-
// src/client/client-load-module.ts
|
|
1540
|
-
var cmpModules = /* @__PURE__ */ new Map();
|
|
1541
|
-
var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
1542
|
-
const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
|
|
1543
|
-
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1544
|
-
if (!bundleId) {
|
|
1545
|
-
return void 0;
|
|
1546
|
-
}
|
|
1547
|
-
const module = cmpModules.get(bundleId) ;
|
|
1548
|
-
if (module) {
|
|
1549
|
-
return module[exportName];
|
|
1550
|
-
}
|
|
1551
|
-
|
|
1552
|
-
if (!hmrVersionId || !BUILD.hotModuleReplacement) {
|
|
1553
|
-
const processMod = importedModule => {
|
|
1554
|
-
cmpModules.set(bundleId, importedModule);
|
|
1555
|
-
return importedModule[exportName];
|
|
1556
|
-
}
|
|
1557
|
-
switch(bundleId) {
|
|
1558
|
-
|
|
1559
|
-
case 'mg-action-more_36':
|
|
1560
|
-
return import(
|
|
1561
|
-
/* webpackMode: "lazy" */
|
|
1562
|
-
'./mg-action-more_36.entry.js').then(processMod, consoleError);
|
|
1563
|
-
case 'mg-loader':
|
|
1564
|
-
return import(
|
|
1565
|
-
/* webpackMode: "lazy" */
|
|
1566
|
-
'./mg-loader.entry.js').then(processMod, consoleError);
|
|
1567
|
-
}
|
|
1568
|
-
}
|
|
1569
|
-
return import(
|
|
1570
|
-
/* @vite-ignore */
|
|
1571
|
-
/* webpackInclude: /\.entry\.js$/ */
|
|
1572
|
-
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
1573
|
-
/* webpackMode: "lazy" */
|
|
1574
|
-
`./${bundleId}.entry.js${""}`
|
|
1575
|
-
).then((importedModule) => {
|
|
1576
|
-
{
|
|
1577
|
-
cmpModules.set(bundleId, importedModule);
|
|
1578
|
-
}
|
|
1579
|
-
return importedModule[exportName];
|
|
1580
|
-
}, consoleError);
|
|
1581
|
-
};
|
|
1582
|
-
|
|
1583
|
-
// src/client/client-style.ts
|
|
1584
|
-
var styles = /* @__PURE__ */ new Map();
|
|
1585
|
-
var win = typeof window !== "undefined" ? window : {};
|
|
1586
|
-
var doc = win.document || { head: {} };
|
|
1587
|
-
var plt = {
|
|
1588
|
-
$flags$: 0,
|
|
1589
|
-
$resourcesUrl$: "",
|
|
1590
|
-
jmp: (h2) => h2(),
|
|
1591
|
-
raf: (h2) => requestAnimationFrame(h2),
|
|
1592
|
-
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
|
1593
|
-
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
1594
|
-
ce: (eventName, opts) => new CustomEvent(eventName, opts)
|
|
1595
|
-
};
|
|
1596
|
-
var supportsListenerOptions = /* @__PURE__ */ (() => {
|
|
1597
|
-
let supportsListenerOptions2 = false;
|
|
1598
|
-
try {
|
|
1599
|
-
doc.addEventListener(
|
|
1600
|
-
"e",
|
|
1601
|
-
null,
|
|
1602
|
-
Object.defineProperty({}, "passive", {
|
|
1603
|
-
get() {
|
|
1604
|
-
supportsListenerOptions2 = true;
|
|
1605
|
-
}
|
|
1606
|
-
})
|
|
1607
|
-
);
|
|
1608
|
-
} catch (e) {
|
|
1609
|
-
}
|
|
1610
|
-
return supportsListenerOptions2;
|
|
1611
|
-
})();
|
|
1612
|
-
var promiseResolve = (v) => Promise.resolve(v);
|
|
1613
|
-
var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
1614
|
-
try {
|
|
1615
|
-
new CSSStyleSheet();
|
|
1616
|
-
return typeof new CSSStyleSheet().replaceSync === "function";
|
|
1617
|
-
} catch (e) {
|
|
1618
|
-
}
|
|
1619
|
-
return false;
|
|
1620
|
-
})() ;
|
|
1621
|
-
var queuePending = false;
|
|
1622
|
-
var queueDomReads = [];
|
|
1623
|
-
var queueDomWrites = [];
|
|
1624
|
-
var queueTask = (queue, write) => (cb) => {
|
|
1625
|
-
queue.push(cb);
|
|
1626
|
-
if (!queuePending) {
|
|
1627
|
-
queuePending = true;
|
|
1628
|
-
if (write && plt.$flags$ & 4 /* queueSync */) {
|
|
1629
|
-
nextTick(flush);
|
|
1630
|
-
} else {
|
|
1631
|
-
plt.raf(flush);
|
|
1632
|
-
}
|
|
1633
|
-
}
|
|
1634
|
-
};
|
|
1635
|
-
var consume = (queue) => {
|
|
1636
|
-
for (let i2 = 0; i2 < queue.length; i2++) {
|
|
1637
|
-
try {
|
|
1638
|
-
queue[i2](performance.now());
|
|
1639
|
-
} catch (e) {
|
|
1640
|
-
consoleError(e);
|
|
1641
|
-
}
|
|
1642
|
-
}
|
|
1643
|
-
queue.length = 0;
|
|
1644
|
-
};
|
|
1645
|
-
var flush = () => {
|
|
1646
|
-
consume(queueDomReads);
|
|
1647
|
-
{
|
|
1648
|
-
consume(queueDomWrites);
|
|
1649
|
-
if (queuePending = queueDomReads.length > 0) {
|
|
1650
|
-
plt.raf(flush);
|
|
1651
|
-
}
|
|
1652
|
-
}
|
|
1653
|
-
};
|
|
1654
|
-
var nextTick = (cb) => promiseResolve().then(cb);
|
|
1655
|
-
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
1656
|
-
|
|
1657
1674
|
export { Host as H, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
|
|
1658
1675
|
|
|
1659
|
-
//# sourceMappingURL=index-
|
|
1676
|
+
//# sourceMappingURL=index-9ed65b6d.js.map
|