@mgdis/mg-components 5.26.0 → 5.27.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 (255) hide show
  1. package/dist/cjs/{index-c585c382.js → index-1d560837.js} +97 -81
  2. package/dist/cjs/index-1d560837.js.map +1 -0
  3. package/dist/cjs/{index-0a2783ee.js → index-7072369e.js} +17 -5
  4. package/dist/cjs/index-7072369e.js.map +1 -0
  5. package/dist/cjs/loader.cjs.js +2 -2
  6. package/dist/cjs/{mg-action-more_34.cjs.entry.js → mg-action-more_35.cjs.entry.js} +613 -694
  7. package/dist/cjs/mg-action-more_35.cjs.entry.js.map +1 -0
  8. package/dist/cjs/mg-components.cjs.js +3 -3
  9. package/dist/cjs/mg-components.cjs.js.map +1 -1
  10. package/dist/cjs/mg-item-more.cjs.entry.js +7 -6
  11. package/dist/cjs/mg-item-more.cjs.entry.js.map +1 -1
  12. package/dist/cjs/mg-loader.cjs.entry.js +3 -3
  13. package/dist/cjs/mg-loader.cjs.entry.js.map +1 -1
  14. package/dist/collection/assets/icons/index.js +1 -206
  15. package/dist/collection/assets/icons/index.js.map +1 -1
  16. package/dist/collection/collection-manifest.json +4 -3
  17. package/dist/collection/components/atoms/mg-badge/mg-badge.js +2 -2
  18. package/dist/collection/components/atoms/mg-badge/mg-badge.js.map +1 -1
  19. package/dist/collection/components/atoms/mg-button/mg-button.js +6 -6
  20. package/dist/collection/components/atoms/mg-button/mg-button.js.map +1 -1
  21. package/dist/collection/components/atoms/mg-card/mg-card.js +2 -2
  22. package/dist/collection/components/atoms/mg-card/mg-card.js.map +1 -1
  23. package/dist/collection/components/atoms/mg-character-left/mg-character-left.js +2 -2
  24. package/dist/collection/components/atoms/mg-character-left/mg-character-left.js.map +1 -1
  25. package/dist/collection/components/atoms/mg-divider/mg-divider.js +1 -1
  26. package/dist/collection/components/atoms/mg-icon/mg-icon.conf.js.map +1 -1
  27. package/dist/collection/components/atoms/mg-icon/mg-icon.js +13 -8
  28. package/dist/collection/components/atoms/mg-icon/mg-icon.js.map +1 -1
  29. package/dist/collection/components/atoms/mg-input-title/mg-input-title.js +3 -3
  30. package/dist/collection/components/atoms/mg-input-title/mg-input-title.js.map +1 -1
  31. package/dist/collection/components/atoms/mg-tag/mg-tag.js +3 -3
  32. package/dist/collection/components/atoms/mg-tag/mg-tag.js.map +1 -1
  33. package/dist/collection/components/molecules/inputs/mg-input/mg-input.conf.js +21 -0
  34. package/dist/collection/components/molecules/inputs/mg-input/mg-input.conf.js.map +1 -0
  35. package/dist/collection/components/molecules/inputs/mg-input/mg-input.js +509 -0
  36. package/dist/collection/components/molecules/inputs/mg-input/mg-input.js.map +1 -0
  37. package/dist/collection/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxList.js +1 -5
  38. package/dist/collection/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxList.js.map +1 -1
  39. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.js +7 -7
  40. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.js.map +1 -1
  41. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.js.map +1 -1
  42. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +67 -45
  43. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js.map +1 -1
  44. package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +31 -13
  45. package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js.map +1 -1
  46. package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +48 -18
  47. package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js.map +1 -1
  48. package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +54 -15
  49. package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js.map +1 -1
  50. package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +40 -8
  51. package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js.map +1 -1
  52. package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +44 -13
  53. package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js.map +1 -1
  54. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +63 -24
  55. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js.map +1 -1
  56. package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +47 -15
  57. package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js.map +1 -1
  58. package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +30 -21
  59. package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js.map +1 -1
  60. package/dist/collection/components/molecules/menu/mg-menu/mg-menu.js +3 -3
  61. package/dist/collection/components/molecules/menu/mg-menu/mg-menu.js.map +1 -1
  62. package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.conf.js +4 -0
  63. package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.conf.js.map +1 -1
  64. package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.js +43 -7
  65. package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.js.map +1 -1
  66. package/dist/collection/components/molecules/mg-action-more/mg-action-more.conf.js.map +1 -1
  67. package/dist/collection/components/molecules/mg-action-more/mg-action-more.js +41 -41
  68. package/dist/collection/components/molecules/mg-action-more/mg-action-more.js.map +1 -1
  69. package/dist/collection/components/molecules/mg-details/mg-details.js +1 -1
  70. package/dist/collection/components/molecules/mg-form/mg-form.js +4 -4
  71. package/dist/collection/components/molecules/mg-form/mg-form.js.map +1 -1
  72. package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js +3 -3
  73. package/dist/collection/components/molecules/mg-item-more/mg-item-more.conf.js.map +1 -1
  74. package/dist/collection/components/molecules/mg-item-more/mg-item-more.js +12 -11
  75. package/dist/collection/components/molecules/mg-item-more/mg-item-more.js.map +1 -1
  76. package/dist/collection/components/molecules/mg-loader/mg-loader.js +3 -3
  77. package/dist/collection/components/molecules/mg-loader/mg-loader.js.map +1 -1
  78. package/dist/collection/components/molecules/mg-message/mg-message.js +3 -3
  79. package/dist/collection/components/molecules/mg-message/mg-message.js.map +1 -1
  80. package/dist/collection/components/molecules/mg-modal/mg-modal.js +2 -2
  81. package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +4 -4
  82. package/dist/collection/components/molecules/mg-pagination/mg-pagination.js.map +1 -1
  83. package/dist/collection/components/molecules/mg-panel/mg-panel.js +4 -4
  84. package/dist/collection/components/molecules/mg-panel/mg-panel.js.map +1 -1
  85. package/dist/collection/components/molecules/mg-popover/mg-popover-content/mg-popover-content.js +1 -1
  86. package/dist/collection/components/molecules/mg-popover/mg-popover.js +2 -2
  87. package/dist/collection/components/molecules/mg-popover/mg-popover.js.map +1 -1
  88. package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.js +1 -1
  89. package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +1 -1
  90. package/dist/collection/locales/en/messages.json +10 -3
  91. package/dist/collection/locales/fr/messages.json +10 -3
  92. package/dist/collection/locales/index.conf.js +2 -0
  93. package/dist/collection/locales/index.conf.js.map +1 -0
  94. package/dist/collection/utils/playwright.fixture.js +1 -1
  95. package/dist/collection/utils/playwright.fixture.js.map +1 -1
  96. package/dist/components/index.es.js +12 -12
  97. package/dist/components/index.es.js.map +1 -1
  98. package/dist/components/index2.js +24 -8
  99. package/dist/components/index2.js.map +1 -1
  100. package/dist/components/mg-action-more.js +15 -15
  101. package/dist/components/mg-action-more.js.map +1 -1
  102. package/dist/components/mg-badge2.js +1 -1
  103. package/dist/components/mg-badge2.js.map +1 -1
  104. package/dist/components/mg-button2.js +1 -1
  105. package/dist/components/mg-button2.js.map +1 -1
  106. package/dist/components/mg-card2.js +2 -2
  107. package/dist/components/mg-card2.js.map +1 -1
  108. package/dist/components/mg-character-left2.js +1 -1
  109. package/dist/components/mg-character-left2.js.map +1 -1
  110. package/dist/components/mg-details.js +1 -1
  111. package/dist/components/mg-divider.js +1 -1
  112. package/dist/components/mg-form.js +1 -1
  113. package/dist/components/mg-form.js.map +1 -1
  114. package/dist/components/mg-icon2.js +4 -416
  115. package/dist/components/mg-icon2.js.map +1 -1
  116. package/dist/components/mg-illustrated-message.js +3 -3
  117. package/dist/components/mg-input-checkbox-paginated2.js +13 -11
  118. package/dist/components/mg-input-checkbox-paginated2.js.map +1 -1
  119. package/dist/components/mg-input-checkbox.js +71 -49
  120. package/dist/components/mg-input-checkbox.js.map +1 -1
  121. package/dist/components/mg-input-date.js +29 -11
  122. package/dist/components/mg-input-date.js.map +1 -1
  123. package/dist/components/mg-input-numeric.js +41 -12
  124. package/dist/components/mg-input-numeric.js.map +1 -1
  125. package/dist/components/mg-input-password.js +56 -12
  126. package/dist/components/mg-input-password.js.map +1 -1
  127. package/dist/components/mg-input-radio.js +41 -10
  128. package/dist/components/mg-input-radio.js.map +1 -1
  129. package/dist/components/mg-input-select2.js +42 -12
  130. package/dist/components/mg-input-select2.js.map +1 -1
  131. package/dist/components/mg-input-text2.js +50 -18
  132. package/dist/components/mg-input-text2.js.map +1 -1
  133. package/dist/components/mg-input-textarea.js +44 -13
  134. package/dist/components/mg-input-textarea.js.map +1 -1
  135. package/dist/components/mg-input-title2.js +1 -1
  136. package/dist/components/mg-input-title2.js.map +1 -1
  137. package/dist/components/mg-input-toggle.js +35 -22
  138. package/dist/components/mg-input-toggle.js.map +1 -1
  139. package/dist/components/mg-input.d.ts +11 -0
  140. package/dist/components/mg-input.js +8 -0
  141. package/dist/components/mg-input.js.map +1 -0
  142. package/dist/components/mg-input2.js +352 -0
  143. package/dist/components/mg-input2.js.map +1 -0
  144. package/dist/components/mg-item-more.js +7 -6
  145. package/dist/components/mg-item-more.js.map +1 -1
  146. package/dist/components/mg-loader.js +1 -1
  147. package/dist/components/mg-loader.js.map +1 -1
  148. package/dist/components/mg-menu-item2.js +21 -4
  149. package/dist/components/mg-menu-item2.js.map +1 -1
  150. package/dist/components/mg-menu2.js +1 -1
  151. package/dist/components/mg-menu2.js.map +1 -1
  152. package/dist/components/mg-message.js +1 -1
  153. package/dist/components/mg-message.js.map +1 -1
  154. package/dist/components/mg-modal.js +3 -3
  155. package/dist/components/mg-modal.js.map +1 -1
  156. package/dist/components/mg-pagination2.js +12 -6
  157. package/dist/components/mg-pagination2.js.map +1 -1
  158. package/dist/components/mg-panel.js +15 -9
  159. package/dist/components/mg-panel.js.map +1 -1
  160. package/dist/components/mg-popover-content2.js +1 -1
  161. package/dist/components/mg-popover2.js +2 -2
  162. package/dist/components/mg-popover2.js.map +1 -1
  163. package/dist/components/mg-skip-links.js +1 -1
  164. package/dist/components/mg-tabs.js +1 -1
  165. package/dist/components/mg-tag.js +1 -1
  166. package/dist/components/mg-tag.js.map +1 -1
  167. package/dist/esm/{index-bb17de92.js → index-445fc2a0.js} +97 -81
  168. package/dist/esm/index-445fc2a0.js.map +1 -0
  169. package/dist/esm/{index-ad78ece7.js → index-629a42c7.js} +17 -5
  170. package/dist/esm/index-629a42c7.js.map +1 -0
  171. package/dist/esm/loader.js +3 -3
  172. package/dist/esm/{mg-action-more_34.entry.js → mg-action-more_35.entry.js} +613 -695
  173. package/dist/esm/mg-action-more_35.entry.js.map +1 -0
  174. package/dist/esm/mg-components.js +4 -4
  175. package/dist/esm/mg-components.js.map +1 -1
  176. package/dist/esm/mg-item-more.entry.js +7 -6
  177. package/dist/esm/mg-item-more.entry.js.map +1 -1
  178. package/dist/esm/mg-loader.entry.js +3 -3
  179. package/dist/esm/mg-loader.entry.js.map +1 -1
  180. package/dist/mg-components/locales/en/messages.json +10 -3
  181. package/dist/mg-components/locales/fr/messages.json +10 -3
  182. package/dist/mg-components/mg-components.esm.js +1 -1
  183. package/dist/mg-components/mg-components.esm.js.map +1 -1
  184. package/dist/mg-components/p-3ebe6845.js +2 -0
  185. package/dist/mg-components/p-3ebe6845.js.map +1 -0
  186. package/dist/mg-components/{p-2db8355d.entry.js → p-6735e4b2.entry.js} +2 -2
  187. package/dist/mg-components/p-6735e4b2.entry.js.map +1 -0
  188. package/dist/mg-components/p-9dfaa41f.js +3 -0
  189. package/dist/mg-components/p-9dfaa41f.js.map +1 -0
  190. package/dist/mg-components/p-b3e0f7b3.entry.js +2 -0
  191. package/dist/mg-components/p-b3e0f7b3.entry.js.map +1 -0
  192. package/dist/mg-components/{p-d80b844d.entry.js → p-fe347f48.entry.js} +2 -2
  193. package/dist/mg-components/{p-d80b844d.entry.js.map → p-fe347f48.entry.js.map} +1 -1
  194. package/dist/types/components/atoms/mg-badge/mg-badge.d.ts +1 -1
  195. package/dist/types/components/atoms/mg-button/mg-button.d.ts +5 -5
  196. package/dist/types/components/atoms/mg-card/mg-card.d.ts +1 -1
  197. package/dist/types/components/atoms/mg-character-left/mg-character-left.d.ts +1 -1
  198. package/dist/types/components/atoms/mg-icon/mg-icon.conf.d.ts +5 -0
  199. package/dist/types/components/atoms/mg-icon/mg-icon.d.ts +3 -3
  200. package/dist/types/components/atoms/mg-input-title/mg-input-title.d.ts +2 -2
  201. package/dist/types/components/atoms/mg-tag/mg-tag.d.ts +2 -2
  202. package/dist/types/components/molecules/inputs/mg-input/mg-input.conf.d.ts +35 -0
  203. package/dist/types/components/molecules/inputs/mg-input/mg-input.d.ts +139 -0
  204. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.d.ts +5 -5
  205. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.d.ts +3 -5
  206. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.d.ts +13 -12
  207. package/dist/types/components/molecules/inputs/mg-input-date/mg-input-date.d.ts +8 -6
  208. package/dist/types/components/molecules/inputs/mg-input-numeric/mg-input-numeric.d.ts +12 -9
  209. package/dist/types/components/molecules/inputs/mg-input-password/mg-input-password.d.ts +16 -5
  210. package/dist/types/components/molecules/inputs/mg-input-radio/mg-input-radio.d.ts +7 -3
  211. package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.d.ts +7 -4
  212. package/dist/types/components/molecules/inputs/mg-input-text/mg-input-text.d.ts +18 -12
  213. package/dist/types/components/molecules/inputs/mg-input-textarea/mg-input-textarea.d.ts +12 -9
  214. package/dist/types/components/molecules/inputs/mg-input-toggle/mg-input-toggle.d.ts +12 -12
  215. package/dist/types/components/molecules/menu/mg-menu/mg-menu.d.ts +1 -1
  216. package/dist/types/components/molecules/menu/mg-menu-item/mg-menu-item.conf.d.ts +8 -0
  217. package/dist/types/components/molecules/menu/mg-menu-item/mg-menu-item.d.ts +10 -5
  218. package/dist/types/components/molecules/mg-action-more/mg-action-more.conf.d.ts +7 -16
  219. package/dist/types/components/molecules/mg-action-more/mg-action-more.d.ts +9 -9
  220. package/dist/types/components/molecules/mg-form/mg-form.d.ts +3 -3
  221. package/dist/types/components/molecules/mg-item-more/mg-item-more.conf.d.ts +3 -12
  222. package/dist/types/components/molecules/mg-item-more/mg-item-more.d.ts +4 -3
  223. package/dist/types/components/molecules/mg-loader/mg-loader.d.ts +2 -2
  224. package/dist/types/components/molecules/mg-message/mg-message.d.ts +2 -2
  225. package/dist/types/components/molecules/mg-pagination/mg-pagination.d.ts +2 -2
  226. package/dist/types/components/molecules/mg-panel/mg-panel.d.ts +3 -3
  227. package/dist/types/components/molecules/mg-popover/mg-popover.d.ts +1 -1
  228. package/dist/types/components.d.ts +203 -92
  229. package/dist/types/locales/index.conf.d.ts +4 -0
  230. package/ide/intellij/web-types.json +243 -18
  231. package/ide/vscode/html-custom-data.json +2766 -1332
  232. package/package.json +23 -27
  233. package/dist/cjs/index-0a2783ee.js.map +0 -1
  234. package/dist/cjs/index-c585c382.js.map +0 -1
  235. package/dist/cjs/mg-action-more_34.cjs.entry.js.map +0 -1
  236. package/dist/collection/components/molecules/inputs/MgInput.conf.js +0 -14
  237. package/dist/collection/components/molecules/inputs/MgInput.conf.js.map +0 -1
  238. package/dist/collection/components/molecules/inputs/MgInput.js +0 -125
  239. package/dist/collection/components/molecules/inputs/MgInput.js.map +0 -1
  240. package/dist/collection/utils/playwright.e2e.test.utils.js +0 -100
  241. package/dist/collection/utils/playwright.e2e.test.utils.js.map +0 -1
  242. package/dist/components/MgInput.js +0 -155
  243. package/dist/components/MgInput.js.map +0 -1
  244. package/dist/esm/index-ad78ece7.js.map +0 -1
  245. package/dist/esm/index-bb17de92.js.map +0 -1
  246. package/dist/esm/mg-action-more_34.entry.js.map +0 -1
  247. package/dist/mg-components/p-2db8355d.entry.js.map +0 -1
  248. package/dist/mg-components/p-95653110.entry.js +0 -2
  249. package/dist/mg-components/p-95653110.entry.js.map +0 -1
  250. package/dist/mg-components/p-bc62d75e.js +0 -3
  251. package/dist/mg-components/p-bc62d75e.js.map +0 -1
  252. package/dist/mg-components/p-d41aa78b.js +0 -2
  253. package/dist/mg-components/p-d41aa78b.js.map +0 -1
  254. package/dist/types/components/molecules/inputs/MgInput.conf.d.ts +0 -46
  255. package/dist/types/components/molecules/inputs/MgInput.d.ts +0 -13
@@ -1,5 +1,77 @@
1
1
  'use strict';
2
2
 
3
+ var ie = Object.defineProperty;
4
+ var ce = (t, e, n) => e in t ? ie(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
5
+ var p = (t, e, n) => (ce(t, typeof e != "symbol" ? e + "" : e, n), n);
6
+ const Re = (t = "", e = 10) => {
7
+ const n = new Uint8Array(e);
8
+ crypto.getRandomValues(n);
9
+ const s = Array.from(n).map((r) => r.toString(16).padStart(2, "0")).join("").slice(0, e);
10
+ return t !== "" ? `${t}-${s}` : s;
11
+ };
12
+ class Me {
13
+ constructor(e = []) {
14
+ /**
15
+ * Available classes
16
+ */
17
+ p(this, "classes");
18
+ /**
19
+ * Add class
20
+ * @param className - class name to add
21
+ */
22
+ p(this, "add", (e) => {
23
+ this.has(e) || this.classes.push(e);
24
+ });
25
+ /**
26
+ * Delete class
27
+ * @param className - class name to delete
28
+ */
29
+ p(this, "delete", (e) => {
30
+ const n = this.classes.indexOf(e);
31
+ n > -1 && this.classes.splice(n, 1);
32
+ });
33
+ /**
34
+ * Check if class exist in list
35
+ * @param className - class name to check
36
+ * @returns class name is in the list
37
+ */
38
+ p(this, "has", (e) => this.classes.includes(e));
39
+ /**
40
+ * Join classes seperated by spaces
41
+ * @returns joined values
42
+ */
43
+ p(this, "join", () => this.classes.join(" "));
44
+ this.classes = e;
45
+ }
46
+ }
47
+ 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) => {
48
+ const e = I(t), n = X(t);
49
+ return [t, ...e, ...n];
50
+ }, I = (t, e = []) => {
51
+ if (t.self !== t.top)
52
+ try {
53
+ const n = t.parent;
54
+ return n ? (e.push(n), I(n, e)) : e;
55
+ } catch (n) {
56
+ return console.error("Different hosts between iframes:", n), e;
57
+ }
58
+ return e;
59
+ }, X = (t, e = []) => {
60
+ if (t.frames.length > 0)
61
+ for (const n of Array.from(t.frames))
62
+ e.push(n), X(n, e);
63
+ return e;
64
+ }, 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) => {
65
+ const e = { value: "2023", pattern: "yyyy" }, n = { value: "12", pattern: "mm" }, s = { value: "24", pattern: "dd" };
66
+ return ge([e.value, n.value, s.value].join("-"), t).replace(e.value, e.pattern).replace(n.value, n.pattern).replace(s.value, s.pattern);
67
+ }, We = (t) => t.toISOString().split("T")[0], ue = (t, e, n) => {
68
+ const s = t.closest("[lang]"), r = Intl.NumberFormat.supportedLocalesOf(s == null ? void 0 : s.lang), l = r.length > 0 && typeof r[0] == "string" ? r[0] : navigator.language || n, o = l.split("-").shift();
69
+ return {
70
+ locale: l,
71
+ messages: e[o] || e[n]
72
+ };
73
+ }, 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);
74
+
3
75
  const errors$1 = {
4
76
  required: "This field is required.",
5
77
  date: {
@@ -52,6 +124,10 @@ const input$1 = {
52
124
  mm: "mm",
53
125
  yyyy: "yyyy"
54
126
  }
127
+ },
128
+ password: {
129
+ display: "Display password value",
130
+ hide: "Hide password value"
55
131
  }
56
132
  };
57
133
  const form$1 = {
@@ -87,9 +163,12 @@ const general$1 = {
87
163
  next: "next",
88
164
  previous: "previous"
89
165
  };
90
- const plusMenu$1 = {
91
- moreLabel: "Additional menu",
92
- badgeLabel: "Include notification(s)"
166
+ const menuItem$1 = {
167
+ badgeLabel: "Include notification(s)",
168
+ openNewTab: "Open link in a new tab"
169
+ };
170
+ const itemMore$1 = {
171
+ menuLabel: "Additional menu"
93
172
  };
94
173
  const actionMore$1 = {
95
174
  label: "Actions"
@@ -108,7 +187,8 @@ const en = {
108
187
  panel: panel$1,
109
188
  skipLinks: skipLinks$1,
110
189
  general: general$1,
111
- plusMenu: plusMenu$1,
190
+ menuItem: menuItem$1,
191
+ itemMore: itemMore$1,
112
192
  actionMore: actionMore$1,
113
193
  loader: loader$1
114
194
  };
@@ -165,6 +245,10 @@ const input = {
165
245
  mm: "mm",
166
246
  yyyy: "aaaa"
167
247
  }
248
+ },
249
+ password: {
250
+ display: "Afficher le mot de passe",
251
+ hide: "Masquer le mot de passe"
168
252
  }
169
253
  };
170
254
  const form = {
@@ -200,9 +284,12 @@ const general = {
200
284
  next: "suivant",
201
285
  previous: "précédent"
202
286
  };
203
- const plusMenu = {
204
- moreLabel: "Menu complémentaire",
205
- badgeLabel: "Notification(s) incluse(s)"
287
+ const menuItem = {
288
+ badgeLabel: "Notification(s) incluse(s)",
289
+ openNewTab: "Ouvrir le lien dans un nouvel onglet"
290
+ };
291
+ const itemMore = {
292
+ menuLabel: "Menu complémentaire"
206
293
  };
207
294
  const actionMore = {
208
295
  label: "Actions"
@@ -221,83 +308,12 @@ const fr = {
221
308
  panel: panel,
222
309
  skipLinks: skipLinks,
223
310
  general: general,
224
- plusMenu: plusMenu,
311
+ menuItem: menuItem,
312
+ itemMore: itemMore,
225
313
  actionMore: actionMore,
226
314
  loader: loader
227
315
  };
228
316
 
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) => {
233
- const n = new Uint8Array(e);
234
- crypto.getRandomValues(n);
235
- const r = Array.from(n).map((s) => s.toString(16).padStart(2, "0")).join("").slice(0, e);
236
- return t !== "" ? `${t}-${r}` : r;
237
- };
238
- class Me {
239
- constructor(e = []) {
240
- /**
241
- * Available classes
242
- */
243
- p(this, "classes");
244
- /**
245
- * Add class
246
- * @param className - class name to add
247
- */
248
- p(this, "add", (e) => {
249
- this.has(e) || this.classes.push(e);
250
- });
251
- /**
252
- * Delete class
253
- * @param className - class name to delete
254
- */
255
- p(this, "delete", (e) => {
256
- const n = this.classes.indexOf(e);
257
- n > -1 && this.classes.splice(n, 1);
258
- });
259
- /**
260
- * Check if class exist in list
261
- * @param className - class name to check
262
- * @returns class name is in the list
263
- */
264
- p(this, "has", (e) => this.classes.includes(e));
265
- /**
266
- * Join classes seperated by spaces
267
- * @returns joined values
268
- */
269
- p(this, "join", () => this.classes.join(" "));
270
- this.classes = e;
271
- }
272
- }
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);
275
- return [t, ...e, ...n];
276
- }, G = (t, e = []) => {
277
- if (t.self !== t.top)
278
- try {
279
- const n = t.parent;
280
- return n ? (e.push(n), G(n, e)) : e;
281
- } catch (n) {
282
- return console.error("Different hosts between iframes:", n), e;
283
- }
284
- return e;
285
- }, I = (t, e = []) => {
286
- if (t.frames.length > 0)
287
- for (const n of Array.from(t.frames))
288
- e.push(n), I(n, e);
289
- return e;
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
-
301
317
  const defaultLocale = 'en';
302
318
  const messages = { en, fr };
303
319
  /**
@@ -324,4 +340,4 @@ exports.initLocales = initLocales;
324
340
  exports.qe = qe;
325
341
  exports.ze = ze;
326
342
 
327
- //# sourceMappingURL=index-c585c382.js.map
343
+ //# sourceMappingURL=index-1d560837.js.map
@@ -0,0 +1 @@
1
+ {"file":"index-1d560837.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,MAAM,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,IAAI,QAAQ,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AACjE,MAAC,EAAE,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,EAAE,KAAK;AAC/B,EAAE,MAAM,CAAC,GAAG,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC;AAC9B,EAAE,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;AAC5B,EAAE,MAAM,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAC3F,EAAE,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,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C,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 s = Array.from(n).map((r) => r.toString(16).padStart(2, \"0\")).join(\"\").slice(0, e);\n return t !== \"\" ? `${t}-${s}` : s;\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 = I(t), n = X(t);\n return [t, ...e, ...n];\n}, I = (t, e = []) => {\n if (t.self !== t.top)\n try {\n const n = t.parent;\n return n ? (e.push(n), I(n, e)) : e;\n } catch (n) {\n return console.error(\"Different hosts between iframes:\", n), e;\n }\n return e;\n}, X = (t, e = []) => {\n if (t.frames.length > 0)\n for (const n of Array.from(t.frames))\n e.push(n), X(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(), K = (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}, Q = (t) => {\n let e = t.overview ? `${t.overview}\n\n` : \"\";\n const n = t.props.filter(({ attr: r }) => r !== void 0);\n n.length && (e += `Attributes:\n`, e += n.map(({ attr: r, docs: l }) => `- \\`${r}\\`: ${l}\n`).join(\"\"), e += `\n`);\n const s = t.props.filter(({ attr: r }) => r === void 0);\n return s.length && (e += `Properties:\n`, e += s.map(({ name: r, docs: l }) => `- \\`${r}\\`: ${l}\n`).join(\"\"), e += `\n`), t.methods.length && (e += `Methods:\n`, e += t.methods.map(({ name: r, docs: l }) => `- \\`${r}\\`: ${l}\n`).join(\"\"), e += `\n`), t.events.length && (e += `Events:\n`, e += t.events.map(({ event: r, docs: l }) => `- \\`${r}\\`: ${l}\n`).join(\"\"), e += `\n`), t.listeners.length && (e += `Listeners:\n`, e += t.listeners.map(({ event: r }) => `- \\`${r}\\`\n`).join(\"\"), e += `\n`), t.slots.length && (e += `Slots:\n`, e += t.slots.map(({ name: r, docs: l }) => `- \\`${r}\\`: ${l}\n`).join(\"\"), e += `\n`), e;\n}, F = (t) => `${t.docs}\n\nType: \\`${t.type}\\``, Ce = (t, e, n, s) => ({\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((r) => {\n const l = K(s, r.filePath);\n return {\n name: r.tag,\n description: Q(r),\n \"doc-url\": l,\n attributes: r.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: r.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: r.events.map((o) => ({\n name: o.event,\n description: o.docs\n }))\n }\n };\n })\n }\n }\n}), fe = (t, e, n) => {\n if (n)\n return [\n { name: \"Storybook\", url: K(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, s) => ({\n version: t,\n tags: e.components.map((r) => {\n const l = fe(n, s, r.filePath);\n return {\n name: r.tag,\n description: Q(r),\n attributes: r.props.map((o) => ({\n name: o.attr || o.name,\n description: F(o),\n values: $e(o),\n references: l\n })),\n references: l\n };\n }),\n globalAttributes: [],\n valueSets: []\n}), Pe = (t) => {\n const e = { value: \"2023\", pattern: \"yyyy\" }, n = { value: \"12\", pattern: \"mm\" }, s = { value: \"24\", pattern: \"dd\" };\n return ge([e.value, n.value, s.value].join(\"-\"), t).replace(e.value, e.pattern).replace(n.value, n.pattern).replace(s.value, s.pattern);\n}, We = (t) => t.toISOString().split(\"T\")[0], ue = (t, e, n) => {\n const s = t.closest(\"[lang]\"), r = Intl.NumberFormat.supportedLocalesOf(s == null ? void 0 : s.lang), l = r.length > 0 && typeof r[0] == \"string\" ? r[0] : navigator.language || n, o = l.split(\"-\").shift();\n return {\n locale: l,\n messages: e[o] || 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), _ = {\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, m, B = !1, R = !1, N = !1, h = !1;\nconst H = \"http://www.w3.org/1999/xlink\", P = {}, pe = \"http://www.w3.org/2000/svg\", he = \"http://www.w3.org/1999/xhtml\", ye = (t) => t != null, J = (t) => (t = typeof t, t === \"object\" || t === \"function\"), Y = (t, e, ...n) => {\n let s = null, r = null, l = null, o = !1, c = !1;\n const i = [], d = (a) => {\n for (let $ = 0; $ < a.length; $++)\n s = a[$], Array.isArray(s) ? d(s) : s != null && typeof s != \"boolean\" && ((o = typeof t != \"function\" && !J(s)) && (s = String(s)), o && c ? i[i.length - 1].$text$ += s : i.push(o ? M(null, s) : s), c = o);\n };\n if (d(n), e) {\n e.key && (r = e.key), e.name && (l = 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$ = r, u.$name$ = l, 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(W).forEach(e),\n map: (t, e) => t.map(W).map(e).map(ke)\n}, W = (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}, z = (t, e, n, s, r, l) => {\n if (n !== s) {\n let o = G(t, e), c = e.toLowerCase();\n if (e === \"class\") {\n const i = t.classList, d = q(n), u = q(s);\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 (!s || s[i] == null) && (i.includes(\"-\") ? t.style.removeProperty(i) : t.style[i] = \"\");\n for (const i in s)\n (!n || s[i] !== n[i]) && (i.includes(\"-\") ? t.style.setProperty(i, s[i]) : t.style[i] = s[i]);\n } else if (e !== \"key\")\n if (e === \"ref\")\n s && s(t);\n else if (!t.__lookupSetter__(e) && e[0] === \"o\" && e[1] === \"n\") {\n if (e[2] === \"-\" ? e = e.slice(3) : G(C, c) ? e = c.slice(2) : e = c[2] + e.slice(3), n || s) {\n const i = e.endsWith(Z);\n e = e.replace(me, \"\"), n && x.rel(t, e, n, i), s && x.ael(t, e, s, i);\n }\n } else {\n const i = J(s);\n if ((o || i && s !== null) && !r)\n try {\n if (t.tagName.includes(\"-\"))\n t[e] = s;\n else {\n const u = s ?? \"\";\n e === \"list\" ? o = !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), s == null || s === !1 ? (s !== !1 || t.getAttribute(e) === \"\") && (d ? t.removeAttributeNS(H, e) : t.removeAttribute(e)) : (!o || l & 4 || r) && !i && (s = s === !0 ? \"\" : s, d ? t.setAttributeNS(H, e, s) : t.setAttribute(e, s));\n }\n }\n}, Te = /\\s/, q = (t) => t ? t.split(Te) : [], Z = \"Capture\", me = new RegExp(Z + \"$\"), V = (t, e, n, s) => {\n const r = e.$elm$.nodeType === 11 && e.$elm$.host ? e.$elm$.host : e.$elm$, l = t && t.$attrs$ || P, o = e.$attrs$ || P;\n for (s in l)\n s in o || z(r, s, l[s], void 0, n, e.$flags$);\n for (s in o)\n z(r, s, l[s], o[s], n, e.$flags$);\n}, O = (t, e, n, s) => {\n var r;\n const l = e.$children$[n];\n let o = 0, c, i, d;\n if (B || (N = !0, l.$tag$ === \"slot\" && (k && s.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 (h || (h = l.$tag$ === \"svg\"), c = l.$elm$ = j.createElementNS(h ? pe : he, l.$flags$ & 2 ? \"slot-fb\" : l.$tag$), h && l.$tag$ === \"foreignObject\" && (h = !1), V(null, l, h), ye(k) && c[\"s-si\"] !== k && c.classList.add(c[\"s-si\"] = k), l.$children$)\n for (o = 0; o < l.$children$.length; ++o)\n i = O(t, l, o, c), i && c.appendChild(i);\n l.$tag$ === \"svg\" ? h = !1 : c.tagName === \"foreignObject\" && (h = !0);\n }\n return c[\"s-hn\"] = m, l.$flags$ & 3 && (c[\"s-sr\"] = !0, c[\"s-cr\"] = D, c[\"s-sn\"] = l.$name$ || \"\", c[\"s-rf\"] = (r = l.$attrs$) === null || r === void 0 ? void 0 : r.ref, d = t && t.$children$ && t.$children$[n], d && d.$tag$ === l.$tag$ && t.$elm$ && L(t.$elm$, !1)), c;\n}, L = (t, e) => {\n x.$flags$ |= 1;\n const n = Array.from(t.childNodes);\n if (t[\"s-sr\"] && _.experimentalSlotFixes) {\n let s = t;\n for (; s = s.nextSibling; )\n s && s[\"s-sn\"] === t[\"s-sn\"] && s[\"s-sh\"] === m && n.push(s);\n }\n for (let s = n.length - 1; s >= 0; s--) {\n const r = n[s];\n r[\"s-hn\"] !== m && r[\"s-ol\"] && (se(r).insertBefore(r, U(r)), r[\"s-ol\"].remove(), r[\"s-ol\"] = void 0, r[\"s-sh\"] = void 0, N = !0), e && L(r, e);\n }\n x.$flags$ &= -2;\n}, ee = (t, e, n, s, r, l) => {\n let o = t[\"s-cr\"] && t[\"s-cr\"].parentNode || t, c;\n for (o.shadowRoot && o.tagName === m && (o = o.shadowRoot); r <= l; ++r)\n s[r] && (c = O(null, n, r, t), c && (s[r].$elm$ = c, o.insertBefore(c, U(e))));\n}, te = (t, e, n) => {\n for (let s = e; s <= n; ++s) {\n const r = t[s];\n if (r) {\n const l = r.$elm$;\n le(r), l && (R = !0, l[\"s-ol\"] ? l[\"s-ol\"].remove() : L(l, !0), l.remove());\n }\n }\n}, xe = (t, e, n, s, r = !1) => {\n let l = 0, o = 0, c = 0, i = 0, d = e.length - 1, u = e[0], a = e[d], $ = s.length - 1, f = s[0], g = s[$], v, y;\n for (; l <= d && o <= $; )\n if (u == null)\n u = e[++l];\n else if (a == null)\n a = e[--d];\n else if (f == null)\n f = s[++o];\n else if (g == null)\n g = s[--$];\n else if (E(u, f, r))\n T(u, f, r), u = e[++l], f = s[++o];\n else if (E(a, g, r))\n T(a, g, r), a = e[--d], g = s[--$];\n else if (E(u, g, r))\n (u.$tag$ === \"slot\" || g.$tag$ === \"slot\") && L(u.$elm$.parentNode, !1), T(u, g, r), t.insertBefore(u.$elm$, a.$elm$.nextSibling), u = e[++l], g = s[--$];\n else if (E(a, f, r))\n (u.$tag$ === \"slot\" || g.$tag$ === \"slot\") && L(a.$elm$.parentNode, !1), T(a, f, r), t.insertBefore(a.$elm$, u.$elm$), a = e[--d], f = s[++o];\n else {\n for (c = -1, i = l; 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[o], n, c, t) : (T(y, f, r), e[c] = void 0, v = y.$elm$), f = s[++o]) : (v = O(e && e[o], n, o, t), f = s[++o]), v && se(u.$elm$).insertBefore(v, U(u.$elm$));\n }\n l > d ? ee(t, s[$ + 1] == null ? null : s[$ + 1].$elm$, n, s, o, $) : o > $ && te(e, l, d);\n}, E = (t, e, n = !1) => t.$tag$ === e.$tag$ ? t.$tag$ === \"slot\" ? t.$name$ === e.$name$ : n ? !0 : t.$key$ === e.$key$ : !1, U = (t) => t && t[\"s-ol\"] || t, se = (t) => (t[\"s-ol\"] ? t[\"s-ol\"] : t).parentNode, T = (t, e, n = !1) => {\n const s = e.$elm$ = t.$elm$, r = t.$children$, l = e.$children$, o = e.$tag$, c = e.$text$;\n let i;\n c === null ? (h = o === \"svg\" ? !0 : o === \"foreignObject\" ? !1 : h, o === \"slot\" && !B || V(t, e, h), r !== null && l !== null ? xe(s, r, e, l, n) : l !== null ? (t.$text$ !== null && (s.textContent = \"\"), ee(s, null, e, l, 0, l.length - 1)) : r !== null && te(r, 0, r.length - 1), h && o === \"svg\" && (h = !1)) : (i = s[\"s-cr\"]) ? i.parentNode.textContent = c : t.$text$ !== c && (s.data = c);\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 s = n[\"s-sn\"];\n n.hidden = !1;\n for (const r of e)\n if (r !== n) {\n if (r[\"s-hn\"] !== n[\"s-hn\"] || s !== \"\") {\n if (r.nodeType === 1 && (s === r.getAttribute(\"slot\") || s === r[\"s-sn\"])) {\n n.hidden = !0;\n break;\n }\n } else if (r.nodeType === 1 || r.nodeType === 3 && r.textContent.trim() !== \"\") {\n n.hidden = !0;\n break;\n }\n }\n }\n ne(n);\n }\n}, b = [], re = (t) => {\n let e, n, s;\n for (const r of t.childNodes) {\n if (r[\"s-sr\"] && (e = r[\"s-cr\"]) && e.parentNode) {\n n = e.parentNode.childNodes;\n const l = r[\"s-sn\"];\n for (s = n.length - 1; s >= 0; s--)\n if (e = n[s], !e[\"s-cn\"] && !e[\"s-nr\"] && e[\"s-hn\"] !== r[\"s-hn\"] && !_.experimentalSlotFixes)\n if (w(e, l)) {\n let o = b.find((c) => c.$nodeToRelocate$ === e);\n R = !0, e[\"s-sn\"] = e[\"s-sn\"] || l, o ? (o.$nodeToRelocate$[\"s-sh\"] = r[\"s-hn\"], o.$slotRefNode$ = r) : (e[\"s-sh\"] = r[\"s-hn\"], b.push({\n $slotRefNode$: r,\n $nodeToRelocate$: e\n })), e[\"s-sr\"] && b.map((c) => {\n w(c.$nodeToRelocate$, e[\"s-sn\"]) && (o = b.find((i) => i.$nodeToRelocate$ === e), o && !c.$slotRefNode$ && (c.$slotRefNode$ = o.$slotRefNode$));\n });\n } else\n b.some((o) => o.$nodeToRelocate$ === e) || b.push({\n $nodeToRelocate$: e\n });\n }\n r.nodeType === 1 && re(r);\n }\n}, w = (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}, Le = (t, e, n = !1) => {\n var s, r, l, o, 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 (m = 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\"], B = (d.$flags$ & 1) !== 0, D = i[\"s-cr\"], R = !1, T(u, a, n);\n {\n if (x.$flags$ |= 1, N) {\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 A = (s = f[\"s-ol\"]) === null || s === void 0 ? void 0 : s.previousSibling;\n for (; A; ) {\n let S = (r = A[\"s-nr\"]) !== null && r !== void 0 ? r : 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 A = A.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 = (l = f[\"s-ih\"]) !== null && l !== void 0 ? l : !1)), f && typeof g[\"s-rf\"] == \"function\" && g[\"s-rf\"](f);\n } else\n f.nodeType === 1 && (n && (f[\"s-ih\"] = (o = f.hidden) !== null && o !== void 0 ? o : !1), f.hidden = !0);\n }\n }\n R && ne(a.$elm$), x.$flags$ &= -2, b.length = 0;\n }\n if (_.experimentalScopedSlotChanges && d.$flags$ & 2)\n for (const $ of a.$elm$.childNodes)\n $[\"s-hn\"] !== m && !$[\"s-sh\"] && (n && $[\"s-ih\"] == null && ($[\"s-ih\"] = (c = $.hidden) !== null && c !== void 0 ? c : !1), $.hidden = !0);\n D = void 0;\n}, G = (t, e) => e in t, C = typeof window < \"u\" ? window : {}, j = C.document || { head: {} };\nC.HTMLElement;\nconst x = {\n $flags$: 0,\n $resourcesUrl$: \"\",\n jmp: (t) => t(),\n raf: (t) => requestAnimationFrame(t),\n ael: (t, e, n, s) => t.addEventListener(e, n, s),\n rel: (t, e, n, s) => t.removeEventListener(e, n, s),\n ce: (t, e) => new CustomEvent(t, e)\n}, Ae = (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, s, r) => {\n if (e && typeof e == \"string\") {\n const l = document.createElement(e);\n Object.keys(n || {}).forEach((o) => {\n Ae(l, o, n[o]);\n }), s == null || s.forEach((o) => {\n oe(l, o.$tag$, o.$attrs$, o.$children$, o.$text$);\n }), n != null && n.innerHTML && (l.innerHTML = n.innerHTML), t.appendChild(l);\n }\n r && (t.innerHTML = r);\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 s in t)\n if (!s.startsWith(\"slot\")) {\n const r = t[s], l = s.replace(/([a-z])([A-Z])/g, \"$1-$2\").toLowerCase();\n (!e || !Object.keys(e).includes(s) || e[s] !== r) && (n[l] = r);\n }\n return n;\n}, Ie = (t, e) => {\n var s, r;\n const n = document.getElementById(\"storybook-root\");\n if (n)\n return (r = document.querySelector(\"[lang]\")) == null || r.setAttribute(\"lang\", ((s = e.globals) == null ? void 0 : s.locale) || \"en\"), Le(\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$: s }) => {\n const r = document.createElement(\"div\");\n return oe(r, t, e, n, s), r.innerHTML;\n}, Ke = ({ disconnect: t, observe: e, takeRecords: n }) => {\n class s {\n constructor(l) {\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 = l;\n }\n }\n return [window, global].forEach((r) => {\n Object.defineProperty(r, \"MutationObserver\", {\n writable: !0,\n configurable: !0,\n value: s\n });\n }), s;\n}, Qe = ({ disconnect: t, observe: e }) => {\n class n {\n constructor(r) {\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 = r;\n }\n }\n return [window, global].forEach((s) => {\n Object.defineProperty(s, \"ResizeObserver\", {\n writable: !0,\n configurable: !0,\n value: n\n });\n }), n;\n};\nclass Ee 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 Ee {\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 I 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}
@@ -631,6 +631,7 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
631
631
  * @returns the newly created node
632
632
  */
633
633
  const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
634
+ var _a;
634
635
  // tslint:disable-next-line: prefer-const
635
636
  const newVNode = newParentVNode.$children$[childIndex];
636
637
  let i = 0;
@@ -698,6 +699,8 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
698
699
  elm['s-cr'] = contentRef;
699
700
  // remember the slot name, or empty string for default slot
700
701
  elm['s-sn'] = newVNode.$name$ || '';
702
+ // remember the ref callback function
703
+ elm['s-rf'] = (_a = newVNode.$attrs$) === null || _a === void 0 ? void 0 : _a.ref;
701
704
  // check if we've got an old vnode for this slot
702
705
  oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
703
706
  if (oldVNode && oldVNode.$tag$ === newVNode.$tag$ && oldParentVNode.$elm$) {
@@ -713,7 +716,15 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
713
716
  };
714
717
  const putBackInOriginalLocation = (parentElm, recursive) => {
715
718
  plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
716
- const oldSlotChildNodes = parentElm.childNodes;
719
+ const oldSlotChildNodes = Array.from(parentElm.childNodes);
720
+ if (parentElm['s-sr'] && BUILD.experimentalSlotFixes) {
721
+ let node = parentElm;
722
+ while ((node = node.nextSibling)) {
723
+ if (node && node['s-sn'] === parentElm['s-sn'] && node['s-sh'] === hostTagName) {
724
+ oldSlotChildNodes.push(node);
725
+ }
726
+ }
727
+ }
717
728
  for (let i = oldSlotChildNodes.length - 1; i >= 0; i--) {
718
729
  const childNode = oldSlotChildNodes[i];
719
730
  if (childNode['s-hn'] !== hostTagName && childNode['s-ol']) {
@@ -1435,7 +1446,7 @@ const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1435
1446
  // If the node we're currently planning on inserting the new node before is an element,
1436
1447
  // we need to do some additional checks to make sure we're inserting the node in the correct order.
1437
1448
  // The use case here would be that we have multiple nodes being relocated to the same slot. So, we want
1438
- // to make sure they get inserted into their new how in the same order they were declared in their original location.
1449
+ // to make sure they get inserted into their new home in the same order they were declared in their original location.
1439
1450
  //
1440
1451
  // TODO(STENCIL-914): Remove `experimentalSlotFixes` check
1441
1452
  {
@@ -1476,6 +1487,7 @@ const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1476
1487
  }
1477
1488
  }
1478
1489
  }
1490
+ nodeToRelocate && typeof slotRefNode['s-rf'] === 'function' && slotRefNode['s-rf'](nodeToRelocate);
1479
1491
  }
1480
1492
  else {
1481
1493
  // this node doesn't have a slot home to go to, so let's hide it
@@ -2410,10 +2422,10 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
2410
2422
  }
2411
2423
  switch(bundleId) {
2412
2424
 
2413
- case 'mg-action-more_34.cjs':
2425
+ case 'mg-action-more_35.cjs':
2414
2426
  return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2415
2427
  /* webpackMode: "lazy" */
2416
- './mg-action-more_34.cjs.entry.js')); }).then(processMod, consoleError);
2428
+ './mg-action-more_35.cjs.entry.js')); }).then(processMod, consoleError);
2417
2429
  case 'mg-item-more.cjs':
2418
2430
  return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2419
2431
  /* webpackMode: "lazy" */
@@ -2522,4 +2534,4 @@ exports.promiseResolve = promiseResolve;
2522
2534
  exports.registerInstance = registerInstance;
2523
2535
  exports.setNonce = setNonce;
2524
2536
 
2525
- //# sourceMappingURL=index-0a2783ee.js.map
2537
+ //# sourceMappingURL=index-7072369e.js.map