@mgdis/mg-components 5.25.2 → 5.26.0

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.
Files changed (83) hide show
  1. package/dist/cjs/{index-0256ee6d.js → index-0a2783ee.js} +1 -1
  2. package/dist/cjs/{index-0256ee6d.js.map → index-0a2783ee.js.map} +1 -1
  3. package/dist/cjs/{index-f699ee11.js → index-c585c382.js} +37 -37
  4. package/dist/cjs/index-c585c382.js.map +1 -0
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/mg-action-more_34.cjs.entry.js +89 -89
  7. package/dist/cjs/mg-action-more_34.cjs.entry.js.map +1 -1
  8. package/dist/cjs/mg-components.cjs.js +2 -2
  9. package/dist/cjs/mg-components.cjs.js.map +1 -1
  10. package/dist/cjs/mg-item-more.cjs.entry.js +3 -3
  11. package/dist/cjs/mg-loader.cjs.entry.js +3 -3
  12. package/dist/collection/collection-manifest.json +1 -1
  13. package/dist/collection/components/atoms/mg-badge/mg-badge.js +2 -2
  14. package/dist/collection/components/atoms/mg-badge/mg-badge.js.map +1 -1
  15. package/dist/components/MgInput.js +3 -3
  16. package/dist/components/index.es.js +29 -29
  17. package/dist/components/index.es.js.map +1 -1
  18. package/dist/components/index2.js +2 -2
  19. package/dist/components/mg-action-more.js +2 -2
  20. package/dist/components/mg-badge2.js +4 -4
  21. package/dist/components/mg-badge2.js.map +1 -1
  22. package/dist/components/mg-button2.js +4 -4
  23. package/dist/components/mg-card2.js +2 -2
  24. package/dist/components/mg-details.js +2 -2
  25. package/dist/components/mg-form.js +3 -3
  26. package/dist/components/mg-icon2.js +2 -2
  27. package/dist/components/mg-illustrated-message.js +2 -2
  28. package/dist/components/mg-input-checkbox.js +4 -4
  29. package/dist/components/mg-input-date.js +11 -11
  30. package/dist/components/mg-input-numeric.js +5 -5
  31. package/dist/components/mg-input-password.js +3 -3
  32. package/dist/components/mg-input-radio.js +4 -4
  33. package/dist/components/mg-input-select2.js +6 -6
  34. package/dist/components/mg-input-text2.js +6 -6
  35. package/dist/components/mg-input-textarea.js +6 -6
  36. package/dist/components/mg-input-title2.js +2 -2
  37. package/dist/components/mg-input-toggle.js +4 -4
  38. package/dist/components/mg-item-more.js +2 -2
  39. package/dist/components/mg-loader.js +2 -2
  40. package/dist/components/mg-menu-item2.js +4 -4
  41. package/dist/components/mg-message.js +3 -3
  42. package/dist/components/mg-modal.js +6 -6
  43. package/dist/components/mg-pagination2.js +2 -2
  44. package/dist/components/mg-panel.js +4 -4
  45. package/dist/components/mg-popover-content2.js +3 -3
  46. package/dist/components/mg-popover2.js +3 -3
  47. package/dist/components/mg-skip-links.js +2 -2
  48. package/dist/components/mg-tabs.js +6 -6
  49. package/dist/components/mg-tag.js +3 -3
  50. package/dist/components/mg-tooltip2.js +6 -6
  51. package/dist/esm/{index-4ad17402.js → index-ad78ece7.js} +1 -1
  52. package/dist/esm/{index-4ad17402.js.map → index-ad78ece7.js.map} +1 -1
  53. package/dist/esm/{index-d2fc6ec0.js → index-bb17de92.js} +31 -31
  54. package/dist/esm/index-bb17de92.js.map +1 -0
  55. package/dist/esm/loader.js +2 -2
  56. package/dist/esm/mg-action-more_34.entry.js +89 -89
  57. package/dist/esm/mg-action-more_34.entry.js.map +1 -1
  58. package/dist/esm/mg-components.js +3 -3
  59. package/dist/esm/mg-components.js.map +1 -1
  60. package/dist/esm/mg-item-more.entry.js +3 -3
  61. package/dist/esm/mg-loader.entry.js +3 -3
  62. package/dist/mg-components/mg-components.esm.js +1 -1
  63. package/dist/mg-components/mg-components.esm.js.map +1 -1
  64. package/dist/mg-components/{p-568c9ea9.entry.js → p-2db8355d.entry.js} +2 -2
  65. package/dist/mg-components/p-95653110.entry.js +2 -0
  66. package/dist/mg-components/p-95653110.entry.js.map +1 -0
  67. package/dist/mg-components/{p-f761ebcd.js → p-bc62d75e.js} +1 -1
  68. package/dist/mg-components/{p-f761ebcd.js.map → p-bc62d75e.js.map} +1 -1
  69. package/dist/mg-components/{p-29b5a514.js → p-d41aa78b.js} +2 -2
  70. package/dist/mg-components/p-d41aa78b.js.map +1 -0
  71. package/dist/mg-components/{p-22f575c5.entry.js → p-d80b844d.entry.js} +2 -2
  72. package/dist/types/components/atoms/mg-badge/mg-badge.d.ts +1 -1
  73. package/dist/types/components.d.ts +2 -2
  74. package/ide/intellij/web-types.json +5810 -0
  75. package/ide/vscode/html-custom-data.json +5083 -0
  76. package/package.json +21 -14
  77. package/dist/cjs/index-f699ee11.js.map +0 -1
  78. package/dist/esm/index-d2fc6ec0.js.map +0 -1
  79. package/dist/mg-components/p-29b5a514.js.map +0 -1
  80. package/dist/mg-components/p-57614d95.entry.js +0 -2
  81. package/dist/mg-components/p-57614d95.entry.js.map +0 -1
  82. /package/dist/mg-components/{p-568c9ea9.entry.js.map → p-2db8355d.entry.js.map} +0 -0
  83. /package/dist/mg-components/{p-22f575c5.entry.js.map → p-d80b844d.entry.js.map} +0 -0
@@ -226,42 +226,33 @@ const fr = {
226
226
  loader: loader
227
227
  };
228
228
 
229
- var le = Object.defineProperty;
230
- var oe = (t, e, n) => e in t ? le(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
231
- var g = (t, e, n) => (oe(t, typeof e != "symbol" ? e + "" : e, n), n);
232
- const Ee = (t) => {
233
- const e = { value: "2023", pattern: "yyyy" }, n = { value: "12", pattern: "mm" }, s = { value: "24", pattern: "dd" };
234
- return be([e.value, n.value, s.value].join("-"), t).replace(e.value, e.pattern).replace(n.value, n.pattern).replace(s.value, s.pattern);
235
- }, Ae = (t) => t.toISOString().split("T")[0], ve = (t, e, n) => {
236
- const s = t.closest("[lang]"), l = Intl.NumberFormat.supportedLocalesOf(s == null ? void 0 : s.lang), r = l.length > 0 && typeof l[0] == "string" ? l[0] : navigator.language || n, o = r.split("-").shift();
237
- return {
238
- locale: r,
239
- messages: e[o] || e[n]
240
- };
241
- }, Re = (t, e, n) => new Intl.NumberFormat(e, { style: "currency", currency: n }).format(t), Me = (t, e) => new Intl.NumberFormat(e).format(t), Se = /^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/, be = (t, e) => typeof t != "string" || t === "" || !Se.test(t) ? "" : new Intl.DateTimeFormat(e).format(new Date(t)), Oe = (t, e) => (n) => ve(n, t, e), je = (t = "", e = 10) => {
229
+ var ie = Object.defineProperty;
230
+ var ce = (t, e, n) => e in t ? ie(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
231
+ var p = (t, e, n) => (ce(t, typeof e != "symbol" ? e + "" : e, n), n);
232
+ const Re = (t = "", e = 10) => {
242
233
  const n = new Uint8Array(e);
243
234
  crypto.getRandomValues(n);
244
- const s = Array.from(n).map((l) => l.toString(16).padStart(2, "0")).join("").slice(0, e);
245
- return t !== "" ? `${t}-${s}` : s;
235
+ const r = Array.from(n).map((s) => s.toString(16).padStart(2, "0")).join("").slice(0, e);
236
+ return t !== "" ? `${t}-${r}` : r;
246
237
  };
247
- class Fe {
238
+ class Me {
248
239
  constructor(e = []) {
249
240
  /**
250
241
  * Available classes
251
242
  */
252
- g(this, "classes");
243
+ p(this, "classes");
253
244
  /**
254
245
  * Add class
255
246
  * @param className - class name to add
256
247
  */
257
- g(this, "add", (e) => {
248
+ p(this, "add", (e) => {
258
249
  this.has(e) || this.classes.push(e);
259
250
  });
260
251
  /**
261
252
  * Delete class
262
253
  * @param className - class name to delete
263
254
  */
264
- g(this, "delete", (e) => {
255
+ p(this, "delete", (e) => {
265
256
  const n = this.classes.indexOf(e);
266
257
  n > -1 && this.classes.splice(n, 1);
267
258
  });
@@ -270,33 +261,42 @@ class Fe {
270
261
  * @param className - class name to check
271
262
  * @returns class name is in the list
272
263
  */
273
- g(this, "has", (e) => this.classes.includes(e));
264
+ p(this, "has", (e) => this.classes.includes(e));
274
265
  /**
275
266
  * Join classes seperated by spaces
276
267
  * @returns joined values
277
268
  */
278
- g(this, "join", () => this.classes.join(" "));
269
+ p(this, "join", () => this.classes.join(" "));
279
270
  this.classes = e;
280
271
  }
281
272
  }
282
- const De = (t) => Array.isArray(t) && t.every((e) => typeof e == "string"), _e = (t, e) => e.includes(t == null ? void 0 : t.tagName.toLowerCase()), Be = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]), [identifier], mg-button', Ne = (t) => {
283
- const e = se(t), n = ne(t);
273
+ const Oe = (t) => Array.isArray(t) && t.every((e) => typeof e == "string"), Fe = (t, e) => e.includes(t == null ? void 0 : t.tagName.toLowerCase()), De = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]), [identifier], mg-button', _e = (t) => {
274
+ const e = G(t), n = I(t);
284
275
  return [t, ...e, ...n];
285
- }, se = (t, e = []) => {
276
+ }, G = (t, e = []) => {
286
277
  if (t.self !== t.top)
287
278
  try {
288
279
  const n = t.parent;
289
- return n ? (e.push(n), se(n, e)) : e;
280
+ return n ? (e.push(n), G(n, e)) : e;
290
281
  } catch (n) {
291
282
  return console.error("Different hosts between iframes:", n), e;
292
283
  }
293
284
  return e;
294
- }, ne = (t, e = []) => {
285
+ }, I = (t, e = []) => {
295
286
  if (t.frames.length > 0)
296
287
  for (const n of Array.from(t.frames))
297
- e.push(n), ne(n, e);
288
+ e.push(n), I(n, e);
298
289
  return e;
299
- }, He = (t) => typeof t == "string" && t.trim() !== "", Ce = (t) => typeof t == "string" ? t.toLocaleLowerCase().normalize("NFD").replaceAll(/[\u0300-\u036f]/g, "") : t, Pe = async (t) => t();
290
+ }, Be = (t) => typeof t == "string" && t.trim() !== "", Ne = (t) => typeof t == "string" ? t.toLocaleLowerCase().normalize("NFD").replaceAll(/[\u0300-\u036f]/g, "") : t, Ue = async (t) => t(), Pe = (t) => {
291
+ const e = { value: "2023", pattern: "yyyy" }, n = { value: "12", pattern: "mm" }, r = { value: "24", pattern: "dd" };
292
+ return ge([e.value, n.value, r.value].join("-"), t).replace(e.value, e.pattern).replace(n.value, n.pattern).replace(r.value, r.pattern);
293
+ }, We = (t) => t.toISOString().split("T")[0], ue = (t, e, n) => {
294
+ const r = t.closest("[lang]"), s = Intl.NumberFormat.supportedLocalesOf(r == null ? void 0 : r.lang), o = s.length > 0 && typeof s[0] == "string" ? s[0] : navigator.language || n, l = o.split("-").shift();
295
+ return {
296
+ locale: o,
297
+ messages: e[l] || e[n]
298
+ };
299
+ }, ze = (t, e, n) => new Intl.NumberFormat(e, { style: "currency", currency: n }).format(t), qe = (t, e) => new Intl.NumberFormat(e).format(t), de = /^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/, ge = (t, e) => typeof t != "string" || t === "" || !de.test(t) ? "" : new Intl.DateTimeFormat(e).format(new Date(t)), we = (t, e) => (n) => ue(n, t, e);
300
300
 
301
301
  const defaultLocale = 'en';
302
302
  const messages = { en, fr };
@@ -305,23 +305,23 @@ const messages = { en, fr };
305
305
  * @param element - element we need to get the language
306
306
  * @returns messages object
307
307
  */
308
- const initLocales = Oe(messages, defaultLocale);
308
+ const initLocales = we(messages, defaultLocale);
309
309
 
310
- exports.Ae = Ae;
311
310
  exports.Be = Be;
312
- exports.Ce = Ce;
313
311
  exports.De = De;
314
- exports.Ee = Ee;
315
312
  exports.Fe = Fe;
316
- exports.He = He;
317
313
  exports.Me = Me;
318
314
  exports.Ne = Ne;
315
+ exports.Oe = Oe;
319
316
  exports.Pe = Pe;
320
317
  exports.Re = Re;
321
- exports.Se = Se;
318
+ exports.Ue = Ue;
319
+ exports.We = We;
322
320
  exports._e = _e;
323
- exports.be = be;
321
+ exports.de = de;
322
+ exports.ge = ge;
324
323
  exports.initLocales = initLocales;
325
- exports.je = je;
324
+ exports.qe = qe;
325
+ exports.ze = ze;
326
326
 
327
- //# sourceMappingURL=index-f699ee11.js.map
327
+ //# sourceMappingURL=index-c585c382.js.map
@@ -0,0 +1 @@
1
+ {"file":"index-c585c382.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;;AC5K7V,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 ie = Object.defineProperty;\nvar ce = (t, e, n) => e in t ? ie(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;\nvar p = (t, e, n) => (ce(t, typeof e != \"symbol\" ? e + \"\" : e, n), n);\nconst Re = (t = \"\", e = 10) => {\n const n = new Uint8Array(e);\n crypto.getRandomValues(n);\n const r = Array.from(n).map((s) => s.toString(16).padStart(2, \"0\")).join(\"\").slice(0, e);\n return t !== \"\" ? `${t}-${r}` : r;\n};\nclass Me {\n constructor(e = []) {\n /**\n * Available classes\n */\n p(this, \"classes\");\n /**\n * Add class\n * @param className - class name to add\n */\n p(this, \"add\", (e) => {\n this.has(e) || this.classes.push(e);\n });\n /**\n * Delete class\n * @param className - class name to delete\n */\n p(this, \"delete\", (e) => {\n const n = this.classes.indexOf(e);\n n > -1 && this.classes.splice(n, 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 p(this, \"has\", (e) => this.classes.includes(e));\n /**\n * Join classes seperated by spaces\n * @returns joined values\n */\n p(this, \"join\", () => this.classes.join(\" \"));\n this.classes = e;\n }\n}\nconst Oe = (t) => Array.isArray(t) && t.every((e) => typeof e == \"string\"), Fe = (t, e) => e.includes(t == null ? void 0 : t.tagName.toLowerCase()), De = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"]), [identifier], mg-button', _e = (t) => {\n const e = G(t), n = I(t);\n return [t, ...e, ...n];\n}, G = (t, e = []) => {\n if (t.self !== t.top)\n try {\n const n = t.parent;\n return n ? (e.push(n), G(n, e)) : e;\n } catch (n) {\n return console.error(\"Different hosts between iframes:\", n), e;\n }\n return e;\n}, I = (t, e = []) => {\n if (t.frames.length > 0)\n for (const n of Array.from(t.frames))\n e.push(n), I(n, e);\n return e;\n}, Be = (t) => typeof t == \"string\" && t.trim() !== \"\", Ne = (t) => typeof t == \"string\" ? t.toLocaleLowerCase().normalize(\"NFD\").replaceAll(/[\\u0300-\\u036f]/g, \"\") : t, Ue = async (t) => t(), X = (t, e) => {\n if (!e)\n return;\n const n = e.split(\"/\");\n return `${t}${n.slice(2, n.length - 1).join(\"-\")}--docs`;\n}, ae = (t, e) => {\n if (e)\n return `${t}${e}`;\n}, K = (t) => {\n let e = t.overview ? `${t.overview}\n\n` : \"\";\n const n = t.props.filter(({ attr: s }) => s !== void 0);\n n.length && (e += `Attributes:\n`, e += n.map(({ attr: s, docs: o }) => `- \\`${s}\\`: ${o}\n`).join(\"\"), e += `\n`);\n const r = t.props.filter(({ attr: s }) => s === void 0);\n return r.length && (e += `Properties:\n`, e += r.map(({ name: s, docs: o }) => `- \\`${s}\\`: ${o}\n`).join(\"\"), e += `\n`), t.methods.length && (e += `Methods:\n`, e += t.methods.map(({ name: s, docs: o }) => `- \\`${s}\\`: ${o}\n`).join(\"\"), e += `\n`), t.events.length && (e += `Events:\n`, e += t.events.map(({ event: s, docs: o }) => `- \\`${s}\\`: ${o}\n`).join(\"\"), e += `\n`), t.listeners.length && (e += `Listeners:\n`, e += t.listeners.map(({ event: s }) => `- \\`${s}\\`\n`).join(\"\"), e += `\n`), t.slots.length && (e += `Slots:\n`, e += t.slots.map(({ name: s, docs: o }) => `- \\`${s}\\`: ${o}\n`).join(\"\"), e += `\n`), e;\n}, F = (t) => `${t.docs}\n\nType: \\`${t.type}\\``, Ce = (t, e, n, r) => ({\n $schema: \"https://json.schemastore.org/web-types\",\n name: t,\n version: e,\n \"description-markup\": \"markdown\",\n contributions: {\n html: {\n elements: n.components.map((s) => {\n const o = X(r, s.filePath);\n return {\n name: s.tag,\n description: K(s),\n \"doc-url\": o,\n attributes: s.props.filter((l) => l.attr).map((l) => ({\n name: l.attr,\n description: F(l),\n \"doc-url\": o,\n value: {\n type: l.type,\n default: l.default,\n required: l.required\n }\n })),\n js: {\n properties: s.props.map((l) => ({\n name: l.name,\n description: F(l),\n \"doc-url\": o,\n value: {\n type: l.type,\n default: l.default,\n required: l.required\n }\n })),\n events: s.events.map((l) => ({\n name: l.event,\n description: l.docs\n }))\n }\n };\n })\n }\n }\n}), fe = (t, e, n) => {\n if (n)\n return [\n { name: \"Storybook\", url: X(t, n) },\n { name: \"Sources\", url: ae(e, n) }\n ];\n}, $e = (t) => {\n if (!t.values.some(({ value: e }) => e === void 0))\n return t.values.map(({ value: e }) => ({ name: e }));\n}, He = (t, e, n, r) => ({\n version: t,\n tags: e.components.map((s) => {\n const o = fe(n, r, s.filePath);\n return {\n name: s.tag,\n description: K(s),\n attributes: s.props.map((l) => ({\n name: l.attr || l.name,\n description: F(l),\n values: $e(l),\n references: o\n })),\n references: o\n };\n }),\n globalAttributes: [],\n valueSets: []\n}), Pe = (t) => {\n const e = { value: \"2023\", pattern: \"yyyy\" }, n = { value: \"12\", pattern: \"mm\" }, r = { value: \"24\", pattern: \"dd\" };\n return ge([e.value, n.value, r.value].join(\"-\"), t).replace(e.value, e.pattern).replace(n.value, n.pattern).replace(r.value, r.pattern);\n}, We = (t) => t.toISOString().split(\"T\")[0], ue = (t, e, n) => {\n const r = t.closest(\"[lang]\"), s = Intl.NumberFormat.supportedLocalesOf(r == null ? void 0 : r.lang), o = s.length > 0 && typeof s[0] == \"string\" ? s[0] : navigator.language || n, l = o.split(\"-\").shift();\n return {\n locale: o,\n messages: e[l] || e[n]\n };\n}, ze = (t, e, n) => new Intl.NumberFormat(e, { style: \"currency\", currency: n }).format(t), qe = (t, e) => new Intl.NumberFormat(e).format(t), de = /^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$/, ge = (t, e) => typeof t != \"string\" || t === \"\" || !de.test(t) ? \"\" : new Intl.DateTimeFormat(e).format(new Date(t)), we = (t, e) => (n) => ue(n, t, e), Q = {\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, _ = !1, R = !1, B = !1, h = !1;\nconst C = \"http://www.w3.org/1999/xlink\", H = {}, pe = \"http://www.w3.org/2000/svg\", he = \"http://www.w3.org/1999/xhtml\", ye = (t) => t != null, J = (t) => (t = typeof t, t === \"object\" || t === \"function\"), Y = (t, e, ...n) => {\n let r = null, s = null, o = null, l = !1, c = !1;\n const i = [], d = (a) => {\n for (let $ = 0; $ < a.length; $++)\n r = a[$], Array.isArray(r) ? d(r) : r != null && typeof r != \"boolean\" && ((l = typeof t != \"function\" && !J(r)) && (r = String(r)), l && c ? i[i.length - 1].$text$ += r : i.push(l ? M(null, r) : r), c = l);\n };\n if (d(n), e) {\n e.key && (s = e.key), e.name && (o = e.name);\n {\n const a = e.className || e.class;\n a && (e.class = typeof a != \"object\" ? a : Object.keys(a).filter(($) => a[$]).join(\" \"));\n }\n }\n if (typeof t == \"function\")\n return t(e === null ? {} : e, i, Se);\n const u = M(t, null);\n return u.$attrs$ = e, i.length > 0 && (u.$children$ = i), u.$key$ = s, u.$name$ = o, u;\n}, M = (t, e) => {\n const n = {\n $flags$: 0,\n $tag$: t,\n $text$: e,\n $elm$: null,\n $children$: null\n };\n return n.$attrs$ = null, n.$key$ = null, n.$name$ = null, n;\n}, ve = {}, be = (t) => t && t.$tag$ === ve, Se = {\n forEach: (t, e) => t.map(P).forEach(e),\n map: (t, e) => t.map(P).map(e).map(ke)\n}, P = (t) => ({\n vattrs: t.$attrs$,\n vchildren: t.$children$,\n vkey: t.$key$,\n vname: t.$name$,\n vtag: t.$tag$,\n vtext: t.$text$\n}), ke = (t) => {\n if (typeof t.vtag == \"function\") {\n const n = Object.assign({}, t.vattrs);\n return t.vkey && (n.key = t.vkey), t.vname && (n.name = t.vname), Y(t.vtag, n, ...t.vchildren || []);\n }\n const e = M(t.vtag, t.vtext);\n return e.$attrs$ = t.vattrs, e.$children$ = t.vchildren, e.$key$ = t.vkey, e.$name$ = t.vname, e;\n}, W = (t, e, n, r, s, o) => {\n if (n !== r) {\n let l = w(t, e), c = e.toLowerCase();\n if (e === \"class\") {\n const i = t.classList, d = z(n), u = z(r);\n i.remove(...d.filter((a) => a && !u.includes(a))), i.add(...u.filter((a) => a && !d.includes(a)));\n } else if (e === \"style\") {\n for (const i in n)\n (!r || r[i] == null) && (i.includes(\"-\") ? t.style.removeProperty(i) : t.style[i] = \"\");\n for (const i in r)\n (!n || r[i] !== n[i]) && (i.includes(\"-\") ? t.style.setProperty(i, r[i]) : t.style[i] = r[i]);\n } else if (e !== \"key\")\n if (e === \"ref\")\n r && r(t);\n else if (!t.__lookupSetter__(e) && e[0] === \"o\" && e[1] === \"n\") {\n if (e[2] === \"-\" ? e = e.slice(3) : w(U, c) ? e = c.slice(2) : e = c[2] + e.slice(3), n || r) {\n const i = e.endsWith(Z);\n e = e.replace(Te, \"\"), n && T.rel(t, e, n, i), r && T.ael(t, e, r, i);\n }\n } else {\n const i = J(r);\n if ((l || i && r !== null) && !s)\n try {\n if (t.tagName.includes(\"-\"))\n t[e] = r;\n else {\n const u = r ?? \"\";\n e === \"list\" ? l = !1 : (n == null || t[e] != u) && (t[e] = u);\n }\n } catch {\n }\n let d = !1;\n c !== (c = c.replace(/^xlink\\:?/, \"\")) && (e = c, d = !0), r == null || r === !1 ? (r !== !1 || t.getAttribute(e) === \"\") && (d ? t.removeAttributeNS(C, e) : t.removeAttribute(e)) : (!l || o & 4 || s) && !i && (r = r === !0 ? \"\" : r, d ? t.setAttributeNS(C, e, r) : t.setAttribute(e, r));\n }\n }\n}, me = /\\s/, z = (t) => t ? t.split(me) : [], Z = \"Capture\", Te = new RegExp(Z + \"$\"), V = (t, e, n, r) => {\n const s = e.$elm$.nodeType === 11 && e.$elm$.host ? e.$elm$.host : e.$elm$, o = t && t.$attrs$ || H, l = e.$attrs$ || H;\n for (r in o)\n r in l || W(s, r, o[r], void 0, n, e.$flags$);\n for (r in l)\n W(s, r, o[r], l[r], n, e.$flags$);\n}, O = (t, e, n, r) => {\n const s = e.$children$[n];\n let o = 0, l, c, i;\n if (_ || (B = !0, s.$tag$ === \"slot\" && (k && r.classList.add(k + \"-s\"), s.$flags$ |= s.$children$ ? (\n // slot element has fallback content\n 2\n ) : (\n // slot element does not have fallback content\n 1\n ))), s.$text$ !== null)\n l = s.$elm$ = j.createTextNode(s.$text$);\n else if (s.$flags$ & 1)\n l = s.$elm$ = j.createTextNode(\"\");\n else {\n if (h || (h = s.$tag$ === \"svg\"), l = s.$elm$ = j.createElementNS(h ? pe : he, s.$flags$ & 2 ? \"slot-fb\" : s.$tag$), h && s.$tag$ === \"foreignObject\" && (h = !1), V(null, s, h), ye(k) && l[\"s-si\"] !== k && l.classList.add(l[\"s-si\"] = k), s.$children$)\n for (o = 0; o < s.$children$.length; ++o)\n c = O(t, s, o, l), c && l.appendChild(c);\n s.$tag$ === \"svg\" ? h = !1 : l.tagName === \"foreignObject\" && (h = !0);\n }\n return l[\"s-hn\"] = x, s.$flags$ & 3 && (l[\"s-sr\"] = !0, l[\"s-cr\"] = D, l[\"s-sn\"] = s.$name$ || \"\", i = t && t.$children$ && t.$children$[n], i && i.$tag$ === s.$tag$ && t.$elm$ && E(t.$elm$, !1)), l;\n}, E = (t, e) => {\n T.$flags$ |= 1;\n const n = t.childNodes;\n for (let r = n.length - 1; r >= 0; r--) {\n const s = n[r];\n s[\"s-hn\"] !== x && s[\"s-ol\"] && (se(s).insertBefore(s, N(s)), s[\"s-ol\"].remove(), s[\"s-ol\"] = void 0, s[\"s-sh\"] = void 0, B = !0), e && E(s, e);\n }\n T.$flags$ &= -2;\n}, ee = (t, e, n, r, s, o) => {\n let l = t[\"s-cr\"] && t[\"s-cr\"].parentNode || t, c;\n for (l.shadowRoot && l.tagName === x && (l = l.shadowRoot); s <= o; ++s)\n r[s] && (c = O(null, n, s, t), c && (r[s].$elm$ = c, l.insertBefore(c, N(e))));\n}, te = (t, e, n) => {\n for (let r = e; r <= n; ++r) {\n const s = t[r];\n if (s) {\n const o = s.$elm$;\n le(s), o && (R = !0, o[\"s-ol\"] ? o[\"s-ol\"].remove() : E(o, !0), o.remove());\n }\n }\n}, xe = (t, e, n, r, s = !1) => {\n let o = 0, l = 0, c = 0, i = 0, d = e.length - 1, u = e[0], a = e[d], $ = r.length - 1, f = r[0], g = r[$], v, y;\n for (; o <= d && l <= $; )\n if (u == null)\n u = e[++o];\n else if (a == null)\n a = e[--d];\n else if (f == null)\n f = r[++l];\n else if (g == null)\n g = r[--$];\n else if (A(u, f, s))\n m(u, f, s), u = e[++o], f = r[++l];\n else if (A(a, g, s))\n m(a, g, s), a = e[--d], g = r[--$];\n else if (A(u, g, s))\n (u.$tag$ === \"slot\" || g.$tag$ === \"slot\") && E(u.$elm$.parentNode, !1), m(u, g, s), t.insertBefore(u.$elm$, a.$elm$.nextSibling), u = e[++o], g = r[--$];\n else if (A(a, f, s))\n (u.$tag$ === \"slot\" || g.$tag$ === \"slot\") && E(a.$elm$.parentNode, !1), m(a, f, s), t.insertBefore(a.$elm$, u.$elm$), a = e[--d], f = r[++l];\n else {\n for (c = -1, i = o; i <= d; ++i)\n if (e[i] && e[i].$key$ !== null && e[i].$key$ === f.$key$) {\n c = i;\n break;\n }\n c >= 0 ? (y = e[c], y.$tag$ !== f.$tag$ ? v = O(e && e[l], n, c, t) : (m(y, f, s), e[c] = void 0, v = y.$elm$), f = r[++l]) : (v = O(e && e[l], n, l, t), f = r[++l]), v && se(u.$elm$).insertBefore(v, N(u.$elm$));\n }\n o > d ? ee(t, r[$ + 1] == null ? null : r[$ + 1].$elm$, n, r, l, $) : l > $ && te(e, o, d);\n}, A = (t, e, n = !1) => t.$tag$ === e.$tag$ ? t.$tag$ === \"slot\" ? t.$name$ === e.$name$ : n ? !0 : t.$key$ === e.$key$ : !1, N = (t) => t && t[\"s-ol\"] || t, se = (t) => (t[\"s-ol\"] ? t[\"s-ol\"] : t).parentNode, m = (t, e, n = !1) => {\n const r = e.$elm$ = t.$elm$, s = t.$children$, o = e.$children$, l = e.$tag$, c = e.$text$;\n let i;\n c === null ? (h = l === \"svg\" ? !0 : l === \"foreignObject\" ? !1 : h, l === \"slot\" && !_ || V(t, e, h), s !== null && o !== null ? xe(r, s, e, o, n) : o !== null ? (t.$text$ !== null && (r.textContent = \"\"), ee(r, null, e, o, 0, o.length - 1)) : s !== null && te(s, 0, s.length - 1), h && l === \"svg\" && (h = !1)) : (i = r[\"s-cr\"]) ? i.parentNode.textContent = c : t.$text$ !== c && (r.data = c);\n}, ne = (t) => {\n const e = t.childNodes;\n for (const n of e)\n if (n.nodeType === 1) {\n if (n[\"s-sr\"]) {\n const r = n[\"s-sn\"];\n n.hidden = !1;\n for (const s of e)\n if (s !== n) {\n if (s[\"s-hn\"] !== n[\"s-hn\"] || r !== \"\") {\n if (s.nodeType === 1 && (r === s.getAttribute(\"slot\") || r === s[\"s-sn\"])) {\n n.hidden = !0;\n break;\n }\n } else if (s.nodeType === 1 || s.nodeType === 3 && s.textContent.trim() !== \"\") {\n n.hidden = !0;\n break;\n }\n }\n }\n ne(n);\n }\n}, b = [], re = (t) => {\n let e, n, r;\n for (const s of t.childNodes) {\n if (s[\"s-sr\"] && (e = s[\"s-cr\"]) && e.parentNode) {\n n = e.parentNode.childNodes;\n const o = s[\"s-sn\"];\n for (r = n.length - 1; r >= 0; r--)\n if (e = n[r], !e[\"s-cn\"] && !e[\"s-nr\"] && e[\"s-hn\"] !== s[\"s-hn\"] && !Q.experimentalSlotFixes)\n if (q(e, o)) {\n let l = b.find((c) => c.$nodeToRelocate$ === e);\n R = !0, e[\"s-sn\"] = e[\"s-sn\"] || o, l ? (l.$nodeToRelocate$[\"s-sh\"] = s[\"s-hn\"], l.$slotRefNode$ = s) : (e[\"s-sh\"] = s[\"s-hn\"], b.push({\n $slotRefNode$: s,\n $nodeToRelocate$: e\n })), e[\"s-sr\"] && b.map((c) => {\n q(c.$nodeToRelocate$, e[\"s-sn\"]) && (l = b.find((i) => i.$nodeToRelocate$ === e), l && !c.$slotRefNode$ && (c.$slotRefNode$ = l.$slotRefNode$));\n });\n } else\n b.some((l) => l.$nodeToRelocate$ === e) || b.push({\n $nodeToRelocate$: e\n });\n }\n s.nodeType === 1 && re(s);\n }\n}, q = (t, e) => t.nodeType === 1 ? t.getAttribute(\"slot\") === null && e === \"\" || t.getAttribute(\"slot\") === e : t[\"s-sn\"] === e ? !0 : e === \"\", le = (t) => {\n t.$attrs$ && t.$attrs$.ref && t.$attrs$.ref(null), t.$children$ && t.$children$.map(le);\n}, Ee = (t, e, n = !1) => {\n var r, s, o, l, c;\n const i = t.$hostElement$, d = t.$cmpMeta$, u = t.$vnode$ || M(null, null), a = be(e) ? e : Y(null, null, e);\n if (x = i.tagName, d.$attrsToReflect$ && (a.$attrs$ = a.$attrs$ || {}, d.$attrsToReflect$.map(([$, f]) => a.$attrs$[f] = i[$])), n && a.$attrs$)\n for (const $ of Object.keys(a.$attrs$))\n i.hasAttribute($) && ![\"key\", \"ref\", \"style\", \"class\"].includes($) && (a.$attrs$[$] = i[$]);\n a.$tag$ = null, a.$flags$ |= 4, t.$vnode$ = a, a.$elm$ = u.$elm$ = i.shadowRoot || i, k = i[\"s-sc\"], _ = (d.$flags$ & 1) !== 0, D = i[\"s-cr\"], R = !1, m(u, a, n);\n {\n if (T.$flags$ |= 1, B) {\n re(a.$elm$);\n for (const $ of b) {\n const f = $.$nodeToRelocate$;\n if (!f[\"s-ol\"]) {\n const g = j.createTextNode(\"\");\n g[\"s-nr\"] = f, f.parentNode.insertBefore(f[\"s-ol\"] = g, f);\n }\n }\n for (const $ of b) {\n const f = $.$nodeToRelocate$, g = $.$slotRefNode$;\n if (g) {\n const v = g.parentNode;\n let y = g.nextSibling;\n {\n let L = (r = f[\"s-ol\"]) === null || r === void 0 ? void 0 : r.previousSibling;\n for (; L; ) {\n let S = (s = L[\"s-nr\"]) !== null && s !== void 0 ? s : null;\n if (S && S[\"s-sn\"] === f[\"s-sn\"] && v === S.parentNode && (S = S.nextSibling, !S || !S[\"s-nr\"])) {\n y = S;\n break;\n }\n L = L.previousSibling;\n }\n }\n (!y && v !== f.parentNode || f.nextSibling !== y) && f !== y && (!f[\"s-hn\"] && f[\"s-ol\"] && (f[\"s-hn\"] = f[\"s-ol\"].parentNode.nodeName), v.insertBefore(f, y), f.nodeType === 1 && (f.hidden = (o = f[\"s-ih\"]) !== null && o !== void 0 ? o : !1));\n } else\n f.nodeType === 1 && (n && (f[\"s-ih\"] = (l = f.hidden) !== null && l !== void 0 ? l : !1), f.hidden = !0);\n }\n }\n R && ne(a.$elm$), T.$flags$ &= -2, b.length = 0;\n }\n if (Q.experimentalScopedSlotChanges && d.$flags$ & 2)\n for (const $ of a.$elm$.childNodes)\n $[\"s-hn\"] !== x && !$[\"s-sh\"] && (n && $[\"s-ih\"] == null && ($[\"s-ih\"] = (c = $.hidden) !== null && c !== void 0 ? c : !1), $.hidden = !0);\n D = void 0;\n}, w = (t, e) => e in t, U = typeof window < \"u\" ? window : {}, j = U.document || { head: {} };\nU.HTMLElement;\nconst T = {\n $flags$: 0,\n $resourcesUrl$: \"\",\n jmp: (t) => t(),\n raf: (t) => requestAnimationFrame(t),\n ael: (t, e, n, r) => t.addEventListener(e, n, r),\n rel: (t, e, n, r) => t.removeEventListener(e, n, r),\n ce: (t, e) => new CustomEvent(t, e)\n}, Le = (t, e, n) => {\n [null, void 0, \"\", !1].includes(n) || [\"innerHTML\", \"style\"].includes(e) || t.setAttribute(e, [\"object\", \"function\"].includes(typeof n) ? \"/!\\\\ Object props are not rendered in the code example\" : n);\n}, oe = (t, e, n, r, s) => {\n if (e && typeof e == \"string\") {\n const o = document.createElement(e);\n Object.keys(n || {}).forEach((l) => {\n Le(o, l, n[l]);\n }), r == null || r.forEach((l) => {\n oe(o, l.$tag$, l.$attrs$, l.$children$, l.$text$);\n }), n != null && n.innerHTML && (o.innerHTML = n.innerHTML), t.appendChild(o);\n }\n s && (t.innerHTML = s);\n}, Ge = (t, e) => {\n const n = {};\n if (typeof t != \"object\")\n throw new Error(\"filterArgs - args isn't an object.\");\n for (const r in t)\n if (!r.startsWith(\"slot\")) {\n const s = t[r], o = r.replace(/([a-z])([A-Z])/g, \"$1-$2\").toLowerCase();\n (!e || !Object.keys(e).includes(r) || e[r] !== s) && (n[o] = s);\n }\n return n;\n}, Ie = (t, e) => {\n var r, s;\n const n = document.getElementById(\"storybook-root\");\n if (n)\n return (s = document.querySelector(\"[lang]\")) == null || s.setAttribute(\"lang\", ((r = e.globals) == null ? void 0 : r.locale) || \"en\"), Ee(\n {\n $ancestorComponent$: void 0,\n $flags$: 0,\n $modeName$: void 0,\n $cmpMeta$: {\n $flags$: 0,\n $tagName$: n.tagName\n },\n $hostElement$: n\n },\n t(e)\n ), n.children[n.children.length - 1];\n}, Xe = ({ $tag$: t, $attrs$: e, $children$: n, $text$: r }) => {\n const s = document.createElement(\"div\");\n return oe(s, t, e, n, r), s.innerHTML;\n}, Ke = ({ disconnect: t, observe: e, takeRecords: n }) => {\n class r {\n constructor(o) {\n /**\n *\n */\n p(this, \"disconnect\", t);\n /**\n *\n */\n p(this, \"observe\", e);\n /**\n *\n */\n p(this, \"takeRecords\", n);\n /**\n *\n */\n p(this, \"cb\");\n this.cb = o;\n }\n }\n return [window, global].forEach((s) => {\n Object.defineProperty(s, \"MutationObserver\", {\n writable: !0,\n configurable: !0,\n value: r\n });\n }), r;\n}, Qe = ({ disconnect: t, observe: e }) => {\n class n {\n constructor(s) {\n /**\n *\n */\n p(this, \"disconnect\", t);\n /**\n *\n */\n p(this, \"observe\", e);\n /**\n *\n */\n p(this, \"unobserve\");\n /**\n *\n */\n p(this, \"cb\");\n this.cb = s;\n }\n }\n return [window, global].forEach((r) => {\n Object.defineProperty(r, \"ResizeObserver\", {\n writable: !0,\n configurable: !0,\n value: n\n });\n }), n;\n};\nclass Ae extends Event {\n constructor() {\n super(...arguments);\n /**\n *\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n p(this, \"detail\");\n }\n}\nconst Je = () => {\n class t extends Ae {\n }\n return [window, global].forEach((e) => {\n Object.defineProperty(e, \"SubmitEvent\", {\n writable: !0,\n configurable: !0,\n value: t\n });\n }), t;\n};\nexport {\n Me as ClassList,\n Oe as allItemsAreString,\n Ne as cleanString,\n Re as createID,\n de as dateRegExp,\n We as dateToString,\n we as defineLocales,\n Ge as filterArgs,\n De as focusableElements,\n Pe as getLocaleDatePattern,\n G as getParentWindows,\n Xe as getStoryHTML,\n _e as getWindows,\n Fe as isTagName,\n Be as isValidString,\n ze as localeCurrency,\n ge as localeDate,\n qe as localeNumber,\n Ue as nextTick,\n Ke as setupMutationObserverMock,\n Qe as setupResizeObserverMock,\n Je as setupSubmitEventMock,\n Ie as stencilWrapper,\n He as vsCodeGenerator,\n Ce 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,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-0256ee6d.js');
5
+ const index = require('./index-0a2783ee.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {