@mgdis/mg-components 6.7.0 → 6.9.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 (345) hide show
  1. package/README.md +17 -78
  2. package/dist/cjs/app-globals-V2Kpy_OQ.js +8 -0
  3. package/dist/cjs/app-globals-V2Kpy_OQ.js.map +1 -0
  4. package/dist/cjs/{index-1a5a1081.js → index-CATFkm3O.js} +244 -196
  5. package/dist/cjs/index-CATFkm3O.js.map +1 -0
  6. package/dist/cjs/{index-b7923724.js → index-CTU2m-sy.js} +87 -42
  7. package/dist/cjs/index-CTU2m-sy.js.map +1 -0
  8. package/dist/cjs/index.cjs.js +1 -0
  9. package/dist/cjs/index.cjs.js.map +1 -1
  10. package/dist/cjs/index.es-jXqiN1uw.js +152 -0
  11. package/dist/cjs/index.es-jXqiN1uw.js.map +1 -0
  12. package/dist/cjs/loader.cjs.js +4 -5
  13. package/dist/cjs/loader.cjs.js.map +1 -1
  14. package/dist/cjs/{mg-action-more_36.cjs.entry.js → mg-action-more_37.cjs.entry.js} +842 -826
  15. package/dist/cjs/mg-action-more_37.cjs.entry.js.map +1 -0
  16. package/dist/cjs/mg-alert.cjs.entry.js +21 -15
  17. package/dist/cjs/mg-alert.cjs.entry.js.map +1 -1
  18. package/dist/cjs/mg-alert.entry.cjs.js.map +1 -0
  19. package/dist/cjs/mg-components.cjs.js +8 -7
  20. package/dist/cjs/mg-components.cjs.js.map +1 -1
  21. package/dist/cjs/mg-input-rich-text-editor.cjs.entry.js +21524 -6868
  22. package/dist/cjs/mg-input-rich-text-editor.cjs.entry.js.map +1 -1
  23. package/dist/cjs/mg-input-rich-text-editor.entry.cjs.js.map +1 -0
  24. package/dist/cjs/{mg-input.conf-5bbcea79.js → mg-input.conf-WTsvDfpC.js} +2 -1
  25. package/dist/cjs/mg-input.conf-WTsvDfpC.js.map +1 -0
  26. package/dist/cjs/mg-loader.cjs.entry.js +12 -10
  27. package/dist/cjs/mg-loader.cjs.entry.js.map +1 -1
  28. package/dist/cjs/mg-loader.entry.cjs.js.map +1 -0
  29. package/dist/cjs/mg-progress.cjs.entry.js +13 -15
  30. package/dist/cjs/mg-progress.cjs.entry.js.map +1 -1
  31. package/dist/cjs/mg-progress.entry.cjs.js.map +1 -0
  32. package/dist/collection/collection-manifest.json +4 -3
  33. package/dist/collection/components/atoms/mg-badge/mg-badge.js +9 -4
  34. package/dist/collection/components/atoms/mg-badge/mg-badge.js.map +1 -1
  35. package/dist/collection/components/atoms/mg-button/mg-button.js +14 -14
  36. package/dist/collection/components/atoms/mg-button/mg-button.js.map +1 -1
  37. package/dist/collection/components/atoms/mg-icon/mg-icon.js +21 -6
  38. package/dist/collection/components/atoms/mg-icon/mg-icon.js.map +1 -1
  39. package/dist/collection/components/atoms/mg-tag/mg-tag.js +17 -7
  40. package/dist/collection/components/atoms/mg-tag/mg-tag.js.map +1 -1
  41. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +1 -2
  42. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js.map +1 -1
  43. package/dist/collection/components/molecules/inputs/mg-input/mg-input.js +12 -8
  44. package/dist/collection/components/molecules/inputs/mg-input/mg-input.js.map +1 -1
  45. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.js +19 -6
  46. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.js.map +1 -1
  47. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +16 -5
  48. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js.map +1 -1
  49. package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.conf.js +1 -1
  50. package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.conf.js.map +1 -1
  51. package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +53 -21
  52. package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js.map +1 -1
  53. package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +64 -30
  54. package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js.map +1 -1
  55. package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +12 -7
  56. package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js.map +1 -1
  57. package/dist/collection/components/molecules/inputs/mg-input-rich-text-editor/mg-input-rich-text-editor.js +44 -39
  58. package/dist/collection/components/molecules/inputs/mg-input-rich-text-editor/mg-input-rich-text-editor.js.map +1 -1
  59. package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +8 -3
  60. package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js.map +1 -1
  61. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.conf.js +7 -1
  62. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.conf.js.map +1 -1
  63. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +89 -53
  64. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js.map +1 -1
  65. package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +28 -23
  66. package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js.map +1 -1
  67. package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +8 -3
  68. package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js.map +1 -1
  69. package/dist/collection/components/molecules/internals/mg-item-more/mg-item-more.conf.js.map +1 -1
  70. package/dist/collection/components/molecules/internals/mg-item-more/mg-item-more.js +2 -2
  71. package/dist/collection/components/molecules/internals/mg-item-more/mg-item-more.js.map +1 -1
  72. package/dist/collection/components/molecules/menus/mg-menu/mg-menu.conf.js.map +1 -0
  73. package/dist/collection/components/molecules/{menu → menus}/mg-menu/mg-menu.js +9 -9
  74. package/dist/collection/components/molecules/menus/mg-menu/mg-menu.js.map +1 -0
  75. package/dist/collection/components/molecules/menus/mg-menu-item/mg-menu-item.conf.js.map +1 -0
  76. package/dist/collection/components/molecules/{menu → menus}/mg-menu-item/mg-menu-item.js +7 -7
  77. package/dist/collection/components/molecules/menus/mg-menu-item/mg-menu-item.js.map +1 -0
  78. package/dist/collection/components/molecules/mg-action-more/mg-action-more.conf.js.map +1 -1
  79. package/dist/collection/components/molecules/mg-action-more/mg-action-more.js +9 -4
  80. package/dist/collection/components/molecules/mg-action-more/mg-action-more.js.map +1 -1
  81. package/dist/collection/components/molecules/mg-alert/mg-alert.js +13 -3
  82. package/dist/collection/components/molecules/mg-alert/mg-alert.js.map +1 -1
  83. package/dist/collection/components/molecules/mg-details/mg-details.js +3 -2
  84. package/dist/collection/components/molecules/mg-details/mg-details.js.map +1 -1
  85. package/dist/collection/components/molecules/mg-form/mg-form.js +8 -3
  86. package/dist/collection/components/molecules/mg-form/mg-form.js.map +1 -1
  87. package/dist/collection/components/molecules/mg-loader/mg-loader.js +10 -3
  88. package/dist/collection/components/molecules/mg-loader/mg-loader.js.map +1 -1
  89. package/dist/collection/components/molecules/mg-modal/mg-modal.js +4 -4
  90. package/dist/collection/components/molecules/mg-modal/mg-modal.js.map +1 -1
  91. package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +17 -7
  92. package/dist/collection/components/molecules/mg-pagination/mg-pagination.js.map +1 -1
  93. package/dist/collection/components/molecules/mg-panel/mg-panel.js +12 -7
  94. package/dist/collection/components/molecules/mg-panel/mg-panel.js.map +1 -1
  95. package/dist/collection/components/molecules/mg-popover/mg-popover.js +2 -1
  96. package/dist/collection/components/molecules/mg-popover/mg-popover.js.map +1 -1
  97. package/dist/collection/components/molecules/mg-table/mg-table.conf.js +13 -0
  98. package/dist/collection/components/molecules/mg-table/mg-table.conf.js.map +1 -0
  99. package/dist/collection/components/molecules/mg-table/mg-table.js +364 -0
  100. package/dist/collection/components/molecules/mg-table/mg-table.js.map +1 -0
  101. package/dist/collection/locales/en/messages.json +37 -16
  102. package/dist/collection/locales/fr/messages.json +40 -19
  103. package/dist/collection/utils/playwright.fixture.js +2 -3
  104. package/dist/collection/utils/playwright.fixture.js.map +1 -1
  105. package/dist/components/floating-ui.utils.js +2 -421
  106. package/dist/components/floating-ui.utils.js.map +1 -1
  107. package/dist/components/index.es.js +68 -67
  108. package/dist/components/index.es.js.map +1 -1
  109. package/dist/components/index.js +1 -0
  110. package/dist/components/index2.js +86 -41
  111. package/dist/components/index2.js.map +1 -1
  112. package/dist/components/mg-action-more.js +13 -9
  113. package/dist/components/mg-action-more.js.map +1 -1
  114. package/dist/components/mg-alert.js +16 -8
  115. package/dist/components/mg-alert.js.map +1 -1
  116. package/dist/components/mg-badge.js +1 -0
  117. package/dist/components/mg-badge2.js +14 -10
  118. package/dist/components/mg-badge2.js.map +1 -1
  119. package/dist/components/mg-button.js +1 -0
  120. package/dist/components/mg-button2.js +19 -19
  121. package/dist/components/mg-button2.js.map +1 -1
  122. package/dist/components/mg-card.js +1 -0
  123. package/dist/components/mg-card2.js +2 -2
  124. package/dist/components/mg-card2.js.map +1 -1
  125. package/dist/components/mg-character-left.js +1 -0
  126. package/dist/components/mg-character-left2.js +6 -6
  127. package/dist/components/mg-character-left2.js.map +1 -1
  128. package/dist/components/mg-details.js +7 -6
  129. package/dist/components/mg-details.js.map +1 -1
  130. package/dist/components/mg-divider.js +1 -0
  131. package/dist/components/mg-divider2.js +2 -2
  132. package/dist/components/mg-divider2.js.map +1 -1
  133. package/dist/components/mg-form.js +14 -10
  134. package/dist/components/mg-form.js.map +1 -1
  135. package/dist/components/mg-icon.js +1 -0
  136. package/dist/components/mg-icon2.js +29 -14
  137. package/dist/components/mg-icon2.js.map +1 -1
  138. package/dist/components/mg-illustrated-message.js +7 -7
  139. package/dist/components/mg-illustrated-message.js.map +1 -1
  140. package/dist/components/mg-input-checkbox-paginated.js +2 -1
  141. package/dist/components/mg-input-checkbox-paginated2.js +15 -3
  142. package/dist/components/mg-input-checkbox-paginated2.js.map +1 -1
  143. package/dist/components/mg-input-checkbox.js +23 -14
  144. package/dist/components/mg-input-checkbox.js.map +1 -1
  145. package/dist/components/mg-input-date.js +64 -32
  146. package/dist/components/mg-input-date.js.map +1 -1
  147. package/dist/components/mg-input-numeric.js +76 -43
  148. package/dist/components/mg-input-numeric.js.map +1 -1
  149. package/dist/components/mg-input-password.js +12 -8
  150. package/dist/components/mg-input-password.js.map +1 -1
  151. package/dist/components/mg-input-radio.js +10 -10
  152. package/dist/components/mg-input-radio.js.map +1 -1
  153. package/dist/components/mg-input-rich-text-editor.js +21525 -6867
  154. package/dist/components/mg-input-rich-text-editor.js.map +1 -1
  155. package/dist/components/mg-input-select.js +1 -0
  156. package/dist/components/mg-input-select2.js +15 -11
  157. package/dist/components/mg-input-select2.js.map +1 -1
  158. package/dist/components/mg-input-text.js +1 -0
  159. package/dist/components/mg-input-text2.js +67 -27
  160. package/dist/components/mg-input-text2.js.map +1 -1
  161. package/dist/components/mg-input-textarea.js +16 -12
  162. package/dist/components/mg-input-textarea.js.map +1 -1
  163. package/dist/components/mg-input-title.js +1 -0
  164. package/dist/components/mg-input-title2.js +6 -6
  165. package/dist/components/mg-input-title2.js.map +1 -1
  166. package/dist/components/mg-input-toggle.js +14 -10
  167. package/dist/components/mg-input-toggle.js.map +1 -1
  168. package/dist/components/mg-input.js +1 -0
  169. package/dist/components/mg-input2.js +20 -14
  170. package/dist/components/mg-input2.js.map +1 -1
  171. package/dist/components/mg-item-more.js +2 -1
  172. package/dist/components/mg-item-more2.js +18 -19
  173. package/dist/components/mg-item-more2.js.map +1 -1
  174. package/dist/components/mg-loader.js +10 -6
  175. package/dist/components/mg-loader.js.map +1 -1
  176. package/dist/components/mg-menu-item.js +1 -0
  177. package/dist/components/mg-menu-item2.js +16 -16
  178. package/dist/components/mg-menu-item2.js.map +1 -1
  179. package/dist/components/mg-menu.js +2 -1
  180. package/dist/components/mg-message.js +1 -0
  181. package/dist/components/mg-message2.js +6 -6
  182. package/dist/components/mg-message2.js.map +1 -1
  183. package/dist/components/mg-modal.js +13 -13
  184. package/dist/components/mg-modal.js.map +1 -1
  185. package/dist/components/mg-pagination.js +1 -0
  186. package/dist/components/mg-pagination2.js +19 -11
  187. package/dist/components/mg-pagination2.js.map +1 -1
  188. package/dist/components/mg-panel.js +18 -14
  189. package/dist/components/mg-panel.js.map +1 -1
  190. package/dist/components/mg-popover-content.js +1 -0
  191. package/dist/components/mg-popover-content2.js +5 -5
  192. package/dist/components/mg-popover-content2.js.map +1 -1
  193. package/dist/components/mg-popover.js +1 -0
  194. package/dist/components/mg-popover2.js +9 -9
  195. package/dist/components/mg-popover2.js.map +1 -1
  196. package/dist/components/mg-progress.js +12 -12
  197. package/dist/components/mg-progress.js.map +1 -1
  198. package/dist/components/mg-skip-links.js +4 -4
  199. package/dist/components/mg-skip-links.js.map +1 -1
  200. package/dist/components/mg-table.d.ts +11 -0
  201. package/dist/components/mg-table.js +320 -0
  202. package/dist/components/mg-table.js.map +1 -0
  203. package/dist/components/mg-tabs.js +14 -14
  204. package/dist/components/mg-tabs.js.map +1 -1
  205. package/dist/components/mg-tag.js +16 -8
  206. package/dist/components/mg-tag.js.map +1 -1
  207. package/dist/components/mg-tooltip-content.js +1 -0
  208. package/dist/components/mg-tooltip-content2.js +2 -2
  209. package/dist/components/mg-tooltip-content2.js.map +1 -1
  210. package/dist/components/mg-tooltip.js +1 -0
  211. package/dist/components/mg-tooltip2.js +13 -13
  212. package/dist/components/mg-tooltip2.js.map +1 -1
  213. package/dist/esm/app-globals-DQuL1Twl.js +6 -0
  214. package/dist/esm/app-globals-DQuL1Twl.js.map +1 -0
  215. package/dist/esm/{index-5059254f.js → index-CAuxALt5.js} +242 -174
  216. package/dist/esm/index-CAuxALt5.js.map +1 -0
  217. package/dist/esm/{index-a58f8b91.js → index-SQlkEaXW.js} +87 -42
  218. package/dist/esm/index-SQlkEaXW.js.map +1 -0
  219. package/dist/esm/index.es-DDBtzymI.js +130 -0
  220. package/dist/esm/index.es-DDBtzymI.js.map +1 -0
  221. package/dist/esm/index.js +1 -0
  222. package/dist/esm/index.js.map +1 -1
  223. package/dist/esm/loader.js +5 -4
  224. package/dist/esm/loader.js.map +1 -1
  225. package/dist/esm/{mg-action-more_36.entry.js → mg-action-more_37.entry.js} +842 -825
  226. package/dist/esm/mg-action-more_37.entry.js.map +1 -0
  227. package/dist/esm/mg-alert.entry.js +21 -13
  228. package/dist/esm/mg-alert.entry.js.map +1 -1
  229. package/dist/esm/mg-components.js +7 -5
  230. package/dist/esm/mg-components.js.map +1 -1
  231. package/dist/esm/mg-input-rich-text-editor.entry.js +21527 -6869
  232. package/dist/esm/mg-input-rich-text-editor.entry.js.map +1 -1
  233. package/dist/esm/{mg-input.conf-712c7bb6.js → mg-input.conf-BtkqaBXm.js} +2 -1
  234. package/dist/esm/mg-input.conf-BtkqaBXm.js.map +1 -0
  235. package/dist/esm/mg-loader.entry.js +12 -8
  236. package/dist/esm/mg-loader.entry.js.map +1 -1
  237. package/dist/esm/mg-progress.entry.js +13 -13
  238. package/dist/esm/mg-progress.entry.js.map +1 -1
  239. package/dist/mg-components/index.esm.js.map +1 -1
  240. package/dist/mg-components/loader.esm.js.map +1 -0
  241. package/dist/mg-components/locales/en/messages.json +37 -16
  242. package/dist/mg-components/locales/fr/messages.json +40 -19
  243. package/dist/mg-components/mg-alert.entry.esm.js.map +1 -0
  244. package/dist/mg-components/mg-components.esm.js +1 -1
  245. package/dist/mg-components/mg-components.esm.js.map +1 -1
  246. package/dist/mg-components/mg-input-rich-text-editor.entry.esm.js.map +1 -0
  247. package/dist/mg-components/mg-loader.entry.esm.js.map +1 -0
  248. package/dist/mg-components/mg-progress.entry.esm.js.map +1 -0
  249. package/dist/mg-components/p-583b3769.entry.js +2 -0
  250. package/dist/mg-components/p-583b3769.entry.js.map +1 -0
  251. package/dist/mg-components/p-650d6986.entry.js +11 -0
  252. package/dist/mg-components/p-650d6986.entry.js.map +1 -0
  253. package/dist/mg-components/p-680948e3.entry.js +2 -0
  254. package/dist/mg-components/p-680948e3.entry.js.map +1 -0
  255. package/dist/mg-components/p-9acc6504.entry.js +2 -0
  256. package/dist/mg-components/p-9acc6504.entry.js.map +1 -0
  257. package/dist/mg-components/{p-2884f369.js → p-BtkqaBXm.js} +1 -1
  258. package/dist/mg-components/p-BtkqaBXm.js.map +1 -0
  259. package/dist/mg-components/p-CAuxALt5.js +3 -0
  260. package/dist/mg-components/p-CAuxALt5.js.map +1 -0
  261. package/dist/mg-components/p-CqGbLOnN.js +2 -0
  262. package/dist/mg-components/p-CqGbLOnN.js.map +1 -0
  263. package/dist/mg-components/p-DDBtzymI.js +2 -0
  264. package/dist/mg-components/p-DDBtzymI.js.map +1 -0
  265. package/dist/mg-components/p-DQuL1Twl.js +2 -0
  266. package/dist/mg-components/p-DQuL1Twl.js.map +1 -0
  267. package/dist/mg-components/p-c0fb6f62.entry.js +2 -0
  268. package/dist/mg-components/p-c0fb6f62.entry.js.map +1 -0
  269. package/dist/types/components/atoms/mg-button/mg-button.d.ts +1 -1
  270. package/dist/types/components/atoms/mg-tag/mg-tag.d.ts +2 -2
  271. package/dist/types/components/atoms/mg-tooltip/mg-tooltip.d.ts +0 -1
  272. package/dist/types/components/molecules/inputs/mg-input/mg-input.d.ts +1 -4
  273. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.d.ts +2 -2
  274. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.d.ts +2 -2
  275. package/dist/types/components/molecules/inputs/mg-input-date/mg-input-date.conf.d.ts +1 -0
  276. package/dist/types/components/molecules/inputs/mg-input-date/mg-input-date.d.ts +1 -1
  277. package/dist/types/components/molecules/inputs/mg-input-numeric/mg-input-numeric.d.ts +7 -6
  278. package/dist/types/components/molecules/inputs/mg-input-password/mg-input-password.d.ts +2 -2
  279. package/dist/types/components/molecules/inputs/mg-input-rich-text-editor/mg-input-rich-text-editor.d.ts +9 -9
  280. package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.d.ts +1 -1
  281. package/dist/types/components/molecules/inputs/mg-input-text/mg-input-text.conf.d.ts +4 -2
  282. package/dist/types/components/molecules/inputs/mg-input-text/mg-input-text.d.ts +16 -10
  283. package/dist/types/components/molecules/inputs/mg-input-textarea/mg-input-textarea.d.ts +5 -5
  284. package/dist/types/components/molecules/inputs/mg-input-toggle/mg-input-toggle.d.ts +1 -1
  285. package/dist/types/components/molecules/internals/mg-item-more/mg-item-more.conf.d.ts +1 -1
  286. package/dist/types/components/molecules/mg-action-more/mg-action-more.conf.d.ts +1 -1
  287. package/dist/types/components/molecules/mg-action-more/mg-action-more.d.ts +1 -1
  288. package/dist/types/components/molecules/mg-form/mg-form.d.ts +1 -1
  289. package/dist/types/components/molecules/mg-loader/mg-loader.d.ts +1 -1
  290. package/dist/types/components/molecules/mg-pagination/mg-pagination.d.ts +2 -2
  291. package/dist/types/components/molecules/mg-panel/mg-panel.d.ts +1 -1
  292. package/dist/types/components/molecules/mg-popover/mg-popover.d.ts +1 -0
  293. package/dist/types/components/molecules/mg-table/mg-table.conf.d.ts +19 -0
  294. package/dist/types/components/molecules/mg-table/mg-table.d.ts +58 -0
  295. package/dist/types/components.d.ts +66 -27
  296. package/dist/types/stencil-public-runtime.d.ts +1 -0
  297. package/ide/intellij/web-types.json +157 -49
  298. package/ide/vscode/html-custom-data.json +111 -27
  299. package/package.json +25 -25
  300. package/dist/cjs/app-globals-3a1e7e63.js +0 -7
  301. package/dist/cjs/app-globals-3a1e7e63.js.map +0 -1
  302. package/dist/cjs/index-1a5a1081.js.map +0 -1
  303. package/dist/cjs/index-b7923724.js.map +0 -1
  304. package/dist/cjs/index.es-903492c5.js +0 -151
  305. package/dist/cjs/index.es-903492c5.js.map +0 -1
  306. package/dist/cjs/mg-action-more_36.cjs.entry.js.map +0 -1
  307. package/dist/cjs/mg-input.conf-5bbcea79.js.map +0 -1
  308. package/dist/collection/components/molecules/menu/mg-menu/mg-menu.conf.js.map +0 -1
  309. package/dist/collection/components/molecules/menu/mg-menu/mg-menu.js.map +0 -1
  310. package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.conf.js.map +0 -1
  311. package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.js.map +0 -1
  312. package/dist/esm/app-globals-0f993ce5.js +0 -5
  313. package/dist/esm/app-globals-0f993ce5.js.map +0 -1
  314. package/dist/esm/index-5059254f.js.map +0 -1
  315. package/dist/esm/index-a58f8b91.js.map +0 -1
  316. package/dist/esm/index.es-b80b758c.js +0 -129
  317. package/dist/esm/index.es-b80b758c.js.map +0 -1
  318. package/dist/esm/mg-action-more_36.entry.js.map +0 -1
  319. package/dist/esm/mg-input.conf-712c7bb6.js.map +0 -1
  320. package/dist/mg-components/p-2884f369.js.map +0 -1
  321. package/dist/mg-components/p-2a633b29.entry.js +0 -2
  322. package/dist/mg-components/p-2a633b29.entry.js.map +0 -1
  323. package/dist/mg-components/p-361cc090.entry.js +0 -2
  324. package/dist/mg-components/p-361cc090.entry.js.map +0 -1
  325. package/dist/mg-components/p-3afebdab.entry.js +0 -2
  326. package/dist/mg-components/p-3afebdab.entry.js.map +0 -1
  327. package/dist/mg-components/p-3c6710be.js +0 -2
  328. package/dist/mg-components/p-3c6710be.js.map +0 -1
  329. package/dist/mg-components/p-ac8a5083.js +0 -2
  330. package/dist/mg-components/p-ac8a5083.js.map +0 -1
  331. package/dist/mg-components/p-bc6ec847.entry.js +0 -2
  332. package/dist/mg-components/p-bc6ec847.entry.js.map +0 -1
  333. package/dist/mg-components/p-e1255160.js +0 -2
  334. package/dist/mg-components/p-e1255160.js.map +0 -1
  335. package/dist/mg-components/p-e39791fa.js +0 -3
  336. package/dist/mg-components/p-e39791fa.js.map +0 -1
  337. package/dist/mg-components/p-f2e6e7ae.entry.js +0 -2
  338. package/dist/mg-components/p-f2e6e7ae.entry.js.map +0 -1
  339. package/loader/package.json +0 -11
  340. /package/dist/collection/components/molecules/{menu → menus}/mg-menu/mg-menu.conf.js +0 -0
  341. /package/dist/collection/components/molecules/{menu → menus}/mg-menu-item/mg-menu-item.conf.js +0 -0
  342. /package/dist/types/components/molecules/{menu → menus}/mg-menu/mg-menu.conf.d.ts +0 -0
  343. /package/dist/types/components/molecules/{menu → menus}/mg-menu/mg-menu.d.ts +0 -0
  344. /package/dist/types/components/molecules/{menu → menus}/mg-menu-item/mg-menu-item.conf.d.ts +0 -0
  345. /package/dist/types/components/molecules/{menu → menus}/mg-menu-item/mg-menu-item.d.ts +0 -0
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
- import { Z as Ze, V as Ve, K as Ke } from './index.es.js';
2
+ import { k as kt, z as zt, T as Tt } from './index.es.js';
3
3
 
4
4
  /**
5
5
  * List of all possibles sizes
@@ -11,7 +11,6 @@ const sizes = ['small', 'medium', 'large'];
11
11
  const directions = ['vertical', 'horizontal'];
12
12
 
13
13
  const mgIllustratedMessageCss = "/*!\n * @prop --mg-c-illustrated-message-spacing-vertical: Defines the vertical padding of the illustrated message. Default value: `--mg-b-size-40`.\n */.mg-c-illustrated-message{display:flex;max-width:calc(60*var(--mg-b-size-8));box-sizing:border-box;flex-direction:column;justify-content:center;padding:var(--mg-c-illustrated-message-spacing-vertical) var(--mg-b-size-16);margin:auto;gap:var(--mg-b-size-16) var(--mg-b-size-64);text-align:center}.mg-c-illustrated-message__illustration{max-height:calc(15*var(--mg-b-size-8))}.mg-c-illustrated-message__illustration ::slotted([slot=illustration]){width:100%;max-width:100%;height:auto;max-height:calc(15*var(--mg-b-size-8))}.mg-c-illustrated-message__slots{display:flex;flex-direction:column;gap:var(--mg-b-size-16)}.mg-c-illustrated-message__slots ::slotted([slot=title]){margin:0;font-family:var(--mg-b-font-family) !important;font-size:var(--mg-b-font-size-h2) !important;font-weight:400 !important}.mg-c-illustrated-message__slots ::slotted([slot=details]){margin:0}.mg-c-illustrated-message.mg-c-illustrated-message--size-small .mg-c-illustrated-message__illustration{max-height:var(--mg-b-size-64)}.mg-c-illustrated-message.mg-c-illustrated-message--size-small .mg-c-illustrated-message__illustration ::slotted([slot=illustration]){max-height:var(--mg-b-size-64)}.mg-c-illustrated-message.mg-c-illustrated-message--size-large .mg-c-illustrated-message__illustration{max-height:calc(23*var(--mg-b-size-8))}.mg-c-illustrated-message.mg-c-illustrated-message--size-large .mg-c-illustrated-message__illustration ::slotted([slot=illustration]){max-height:calc(23*var(--mg-b-size-8))}.mg-c-illustrated-message.mg-c-illustrated-message--direction-horizontal{max-width:unset;flex-flow:row wrap;align-items:center}.mg-c-illustrated-message.mg-c-illustrated-message--direction-horizontal .mg-c-illustrated-message__slots,.mg-c-illustrated-message.mg-c-illustrated-message--direction-horizontal .mg-c-illustrated-message__illustration{max-width:calc(60*var(--mg-b-size-8))}";
14
- const MgIllustratedMessageStyle0 = mgIllustratedMessageCss;
15
14
 
16
15
  const MgIllustratedMessage$1 = /*@__PURE__*/ proxyCustomElement(class MgIllustratedMessage extends HTMLElement {
17
16
  constructor() {
@@ -29,11 +28,11 @@ const MgIllustratedMessage$1 = /*@__PURE__*/ proxyCustomElement(class MgIllustra
29
28
  /**
30
29
  * Component classes
31
30
  */
32
- this.classCollection = new Ze(['mg-c-illustrated-message']);
31
+ this.classCollection = new kt(['mg-c-illustrated-message']);
33
32
  }
34
33
  watchSize(newValue, oldValue) {
35
34
  if (!sizes.includes(newValue)) {
36
- throw new Error(`<mg-illustrated-message> prop "size" must be one of: ${sizes.join(', ')}. Passed value: ${Ve(newValue)}.`);
35
+ throw new Error(`<mg-illustrated-message> prop "size" must be one of: ${sizes.join(', ')}. Passed value: ${zt(newValue)}.`);
37
36
  }
38
37
  else {
39
38
  if (oldValue !== undefined) {
@@ -44,7 +43,7 @@ const MgIllustratedMessage$1 = /*@__PURE__*/ proxyCustomElement(class MgIllustra
44
43
  }
45
44
  watchDirection(newValue, oldValue) {
46
45
  if (newValue !== undefined && !directions.includes(newValue)) {
47
- throw new Error(`<mg-illustrated-message> prop "direction" must be one of: ${directions.join(', ')}. Passed value: ${Ve(newValue)}.`);
46
+ throw new Error(`<mg-illustrated-message> prop "direction" must be one of: ${directions.join(', ')}. Passed value: ${zt(newValue)}.`);
48
47
  }
49
48
  else if (newValue === 'horizontal') {
50
49
  this.classCollection.add('mg-c-illustrated-message--direction-horizontal');
@@ -67,7 +66,7 @@ const MgIllustratedMessage$1 = /*@__PURE__*/ proxyCustomElement(class MgIllustra
67
66
  if (slottedDetails.length === 0 && slottedTitle === null) {
68
67
  throw new Error('<mg-illustrated-message> Slot "title" or "details" must be present.');
69
68
  }
70
- else if (slottedTitle !== null && !Ke(slottedTitle, headingTags)) {
69
+ else if (slottedTitle !== null && !Tt(slottedTitle, headingTags)) {
71
70
  throw new Error(`<mg-illustrated-message> Slotted title must be a heading: ${headingTags.join(', ')}.`);
72
71
  }
73
72
  else if (slottedIllustrations.length !== 1) {
@@ -98,7 +97,7 @@ const MgIllustratedMessage$1 = /*@__PURE__*/ proxyCustomElement(class MgIllustra
98
97
  "size": ["watchSize"],
99
98
  "direction": ["watchDirection"]
100
99
  }; }
101
- static get style() { return MgIllustratedMessageStyle0; }
100
+ static get style() { return mgIllustratedMessageCss; }
102
101
  }, [1, "mg-illustrated-message", {
103
102
  "size": [1],
104
103
  "direction": [1],
@@ -126,5 +125,6 @@ const MgIllustratedMessage = MgIllustratedMessage$1;
126
125
  const defineCustomElement = defineCustomElement$1;
127
126
 
128
127
  export { MgIllustratedMessage, defineCustomElement };
128
+ //# sourceMappingURL=mg-illustrated-message.js.map
129
129
 
130
130
  //# sourceMappingURL=mg-illustrated-message.js.map
@@ -1 +1 @@
1
- {"file":"mg-illustrated-message.js","mappings":";;;AAEA;;;AAGO,MAAM,KAAK,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAU,CAAC;AAM3D;;;AAGO,MAAM,UAAU,GAAG,CAAC,UAAU,EAAE,YAAY,CAAU;;ACd7D,MAAM,uBAAuB,GAAG,q+DAAq+D,CAAC;AACtgE,mCAAe,uBAAuB;;MCazBA,sB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KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["MgIllustratedMessage","ClassList","toString","isTagName"],"sources":["src/components/molecules/mg-illustrated-message/mg-illustrated-message.conf.ts","../styles/dist/components/mg-illustrated-message.css?tag=mg-illustrated-message&encapsulation=shadow","src/components/molecules/mg-illustrated-message/mg-illustrated-message.tsx"],"sourcesContent":["import type { Size, Direction } from '../../../types';\n\n/**\n * List of all possibles sizes\n */\nexport const sizes = ['small', 'medium', 'large'] as const;\n/**\n * IllustratedMessage size type\n */\nexport type IllustratedMessageSizeType = Size & (typeof sizes)[number];\n\n/**\n * List of all possibles directions\n */\nexport const directions = ['vertical', 'horizontal'] as const;\n/**\n * IllustratedMessage direction type\n */\nexport type IllustratedMessageDirectionType = Direction & (typeof directions)[number];\n","/*!\n * @prop --mg-c-illustrated-message-spacing-vertical: Defines the vertical padding of the illustrated message. Default value: `--mg-b-size-40`.\n */.mg-c-illustrated-message{display:flex;max-width:calc(60*var(--mg-b-size-8));box-sizing:border-box;flex-direction:column;justify-content:center;padding:var(--mg-c-illustrated-message-spacing-vertical) var(--mg-b-size-16);margin:auto;gap:var(--mg-b-size-16) var(--mg-b-size-64);text-align:center}.mg-c-illustrated-message__illustration{max-height:calc(15*var(--mg-b-size-8))}.mg-c-illustrated-message__illustration ::slotted([slot=illustration]){width:100%;max-width:100%;height:auto;max-height:calc(15*var(--mg-b-size-8))}.mg-c-illustrated-message__slots{display:flex;flex-direction:column;gap:var(--mg-b-size-16)}.mg-c-illustrated-message__slots ::slotted([slot=title]){margin:0;font-family:var(--mg-b-font-family) !important;font-size:var(--mg-b-font-size-h2) !important;font-weight:400 !important}.mg-c-illustrated-message__slots ::slotted([slot=details]){margin:0}.mg-c-illustrated-message.mg-c-illustrated-message--size-small .mg-c-illustrated-message__illustration{max-height:var(--mg-b-size-64)}.mg-c-illustrated-message.mg-c-illustrated-message--size-small .mg-c-illustrated-message__illustration ::slotted([slot=illustration]){max-height:var(--mg-b-size-64)}.mg-c-illustrated-message.mg-c-illustrated-message--size-large .mg-c-illustrated-message__illustration{max-height:calc(23*var(--mg-b-size-8))}.mg-c-illustrated-message.mg-c-illustrated-message--size-large .mg-c-illustrated-message__illustration ::slotted([slot=illustration]){max-height:calc(23*var(--mg-b-size-8))}.mg-c-illustrated-message.mg-c-illustrated-message--direction-horizontal{max-width:unset;flex-flow:row wrap;align-items:center}.mg-c-illustrated-message.mg-c-illustrated-message--direction-horizontal .mg-c-illustrated-message__slots,.mg-c-illustrated-message.mg-c-illustrated-message--direction-horizontal .mg-c-illustrated-message__illustration{max-width:calc(60*var(--mg-b-size-8))}/*# sourceMappingURL=mg-illustrated-message.css.map */\n","import { Component, Element, h, Prop, State, Watch } from '@stencil/core';\nimport { ClassList, isTagName, toString } from '@mgdis/stencil-helpers';\nimport { directions, type IllustratedMessageDirectionType, type IllustratedMessageSizeType, sizes } from './mg-illustrated-message.conf';\n\n/**\n * @slot illustration - Illustration content\n * @slot title - Title content\n * @slot details - Details content\n */\n@Component({\n tag: 'mg-illustrated-message',\n styleUrl: '../../../../node_modules/@mgdis/styles/dist/components/mg-illustrated-message.css',\n shadow: true,\n})\nexport class MgIllustratedMessage {\n /**************\n * Decorators *\n **************/\n\n /**\n * Get component DOM element\n */\n @Element() element: HTMLMgIllustratedMessageElement;\n\n /**\n * Define illustration size\n */\n @Prop() size: IllustratedMessageSizeType = 'medium';\n @Watch('size')\n watchSize(newValue: IllustratedMessageSizeType, oldValue?: IllustratedMessageSizeType): void {\n if (!sizes.includes(newValue)) {\n throw new Error(`<mg-illustrated-message> prop \"size\" must be one of: ${sizes.join(', ')}. Passed value: ${toString(newValue)}.`);\n } else {\n if (oldValue !== undefined) {\n this.classCollection.delete(`mg-c-illustrated-message--size-${oldValue}`);\n }\n this.classCollection.add(`mg-c-illustrated-message--size-${newValue}`);\n }\n }\n\n /**\n * Define component orientation\n */\n @Prop() direction: IllustratedMessageDirectionType = 'vertical';\n @Watch('direction')\n watchDirection(newValue: IllustratedMessageDirectionType, oldValue?: IllustratedMessageDirectionType): void {\n if (newValue !== undefined && !directions.includes(newValue)) {\n throw new Error(`<mg-illustrated-message> prop \"direction\" must be one of: ${directions.join(', ')}. Passed value: ${toString(newValue)}.`);\n } else if (newValue === 'horizontal') {\n this.classCollection.add('mg-c-illustrated-message--direction-horizontal');\n } else if (oldValue === 'horizontal') {\n this.classCollection.delete('mg-c-illustrated-message--direction-horizontal');\n }\n }\n\n /**\n * Component classes\n */\n @State() classCollection: ClassList = new ClassList(['mg-c-illustrated-message']);\n\n /***********\n * Methods *\n ***********/\n\n /**\n * Validate slots\n */\n private validateSlots(): void {\n const headingTags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];\n const slottedTitle = this.element.querySelector('[slot=\"title\"]');\n const slottedIllustrations = this.element.querySelectorAll('[slot=\"illustration\"]');\n const slottedDetails = this.element.querySelectorAll('[slot=\"details\"]');\n\n if (slottedDetails.length === 0 && slottedTitle === null) {\n throw new Error('<mg-illustrated-message> Slot \"title\" or \"details\" must be present.');\n } else if (slottedTitle !== null && !isTagName(slottedTitle, headingTags)) {\n throw new Error(`<mg-illustrated-message> Slotted title must be a heading: ${headingTags.join(', ')}.`);\n } else if (slottedIllustrations.length !== 1) {\n throw new Error('<mg-illustrated-message> Slotted illustration must be present and unique.');\n }\n\n slottedIllustrations[0].setAttribute('aria-hidden', 'true');\n }\n\n /*************\n * Lifecycle *\n *************/\n\n /**\n * Check if component props are well configured on init\n */\n componentWillLoad(): void {\n this.watchDirection(this.direction);\n this.watchSize(this.size);\n this.validateSlots();\n }\n\n /**\n * Render\n * @returns HTML Element\n */\n render(): HTMLElement {\n return (\n <div class={this.classCollection.join()}>\n <div class=\"mg-c-illustrated-message__illustration\">\n <slot name=\"illustration\"></slot>\n </div>\n <div class=\"mg-c-illustrated-message__slots\">\n <slot name=\"title\"></slot>\n <slot name=\"details\"></slot>\n </div>\n </div>\n );\n }\n}\n"],"version":3}
1
+ {"file":"mg-illustrated-message.js","mappings":";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AI,CAAC,cAAc,CAAC,IAAI,CAAC,SAAS,CAAC;AACnC,QAAA,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC;QACzB,IAAI,CAAC,aAAa,EAAE;;AAGtB;;;AAGG;IACH,MAAM,GAAA;QACJ,QACE,4DAAK,KAAK,EAAE,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE,EAAA,EACrC,CAAK,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,wCAAwC,EAAA,EACjD,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,IAAI,EAAC,cAAc,EAAA,CAAQ,CAC7B,EACN,CAAK,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,iCAAiC,EAAA,EAC1C,CAAM,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,IAAI,EAAC,OAAO,EAAQ,CAAA,EAC1B,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,IAAI,EAAC,SAAS,GAAQ,CACxB,CACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["MgIllustratedMessage","__stencil_proxyCustomElement","ClassList","toString","isTagName"],"sources":["src/components/molecules/mg-illustrated-message/mg-illustrated-message.conf.ts","../styles/dist/components/mg-illustrated-message.css?tag=mg-illustrated-message&encapsulation=shadow","src/components/molecules/mg-illustrated-message/mg-illustrated-message.tsx"],"sourcesContent":["import type { Size, Direction } from '../../../types';\n\n/**\n * List of all possibles sizes\n */\nexport const sizes = ['small', 'medium', 'large'] as const;\n/**\n * IllustratedMessage size type\n */\nexport type IllustratedMessageSizeType = Size & (typeof sizes)[number];\n\n/**\n * List of all possibles directions\n */\nexport const directions = ['vertical', 'horizontal'] as const;\n/**\n * IllustratedMessage direction type\n */\nexport type IllustratedMessageDirectionType = Direction & (typeof directions)[number];\n","/*!\n * @prop --mg-c-illustrated-message-spacing-vertical: Defines the vertical padding of the illustrated message. Default value: `--mg-b-size-40`.\n */.mg-c-illustrated-message{display:flex;max-width:calc(60*var(--mg-b-size-8));box-sizing:border-box;flex-direction:column;justify-content:center;padding:var(--mg-c-illustrated-message-spacing-vertical) var(--mg-b-size-16);margin:auto;gap:var(--mg-b-size-16) var(--mg-b-size-64);text-align:center}.mg-c-illustrated-message__illustration{max-height:calc(15*var(--mg-b-size-8))}.mg-c-illustrated-message__illustration ::slotted([slot=illustration]){width:100%;max-width:100%;height:auto;max-height:calc(15*var(--mg-b-size-8))}.mg-c-illustrated-message__slots{display:flex;flex-direction:column;gap:var(--mg-b-size-16)}.mg-c-illustrated-message__slots ::slotted([slot=title]){margin:0;font-family:var(--mg-b-font-family) !important;font-size:var(--mg-b-font-size-h2) !important;font-weight:400 !important}.mg-c-illustrated-message__slots ::slotted([slot=details]){margin:0}.mg-c-illustrated-message.mg-c-illustrated-message--size-small .mg-c-illustrated-message__illustration{max-height:var(--mg-b-size-64)}.mg-c-illustrated-message.mg-c-illustrated-message--size-small .mg-c-illustrated-message__illustration ::slotted([slot=illustration]){max-height:var(--mg-b-size-64)}.mg-c-illustrated-message.mg-c-illustrated-message--size-large .mg-c-illustrated-message__illustration{max-height:calc(23*var(--mg-b-size-8))}.mg-c-illustrated-message.mg-c-illustrated-message--size-large .mg-c-illustrated-message__illustration ::slotted([slot=illustration]){max-height:calc(23*var(--mg-b-size-8))}.mg-c-illustrated-message.mg-c-illustrated-message--direction-horizontal{max-width:unset;flex-flow:row wrap;align-items:center}.mg-c-illustrated-message.mg-c-illustrated-message--direction-horizontal .mg-c-illustrated-message__slots,.mg-c-illustrated-message.mg-c-illustrated-message--direction-horizontal .mg-c-illustrated-message__illustration{max-width:calc(60*var(--mg-b-size-8))}/*# sourceMappingURL=mg-illustrated-message.css.map */\n","import { Component, Element, h, Prop, State, Watch } from '@stencil/core';\nimport { ClassList, isTagName, toString } from '@mgdis/stencil-helpers';\nimport { directions, type IllustratedMessageDirectionType, type IllustratedMessageSizeType, sizes } from './mg-illustrated-message.conf';\n\n/**\n * @slot illustration - Illustration content\n * @slot title - Title content\n * @slot details - Details content\n */\n@Component({\n tag: 'mg-illustrated-message',\n styleUrl: '../../../../node_modules/@mgdis/styles/dist/components/mg-illustrated-message.css',\n shadow: true,\n})\nexport class MgIllustratedMessage {\n /**************\n * Decorators *\n **************/\n\n /**\n * Get component DOM element\n */\n @Element() element: HTMLMgIllustratedMessageElement;\n\n /**\n * Define illustration size\n */\n @Prop() size: IllustratedMessageSizeType = 'medium';\n @Watch('size')\n watchSize(newValue: IllustratedMessageSizeType, oldValue?: IllustratedMessageSizeType): void {\n if (!sizes.includes(newValue)) {\n throw new Error(`<mg-illustrated-message> prop \"size\" must be one of: ${sizes.join(', ')}. Passed value: ${toString(newValue)}.`);\n } else {\n if (oldValue !== undefined) {\n this.classCollection.delete(`mg-c-illustrated-message--size-${oldValue}`);\n }\n this.classCollection.add(`mg-c-illustrated-message--size-${newValue}`);\n }\n }\n\n /**\n * Define component orientation\n */\n @Prop() direction: IllustratedMessageDirectionType = 'vertical';\n @Watch('direction')\n watchDirection(newValue: IllustratedMessageDirectionType, oldValue?: IllustratedMessageDirectionType): void {\n if (newValue !== undefined && !directions.includes(newValue)) {\n throw new Error(`<mg-illustrated-message> prop \"direction\" must be one of: ${directions.join(', ')}. Passed value: ${toString(newValue)}.`);\n } else if (newValue === 'horizontal') {\n this.classCollection.add('mg-c-illustrated-message--direction-horizontal');\n } else if (oldValue === 'horizontal') {\n this.classCollection.delete('mg-c-illustrated-message--direction-horizontal');\n }\n }\n\n /**\n * Component classes\n */\n @State() classCollection: ClassList = new ClassList(['mg-c-illustrated-message']);\n\n /***********\n * Methods *\n ***********/\n\n /**\n * Validate slots\n */\n private validateSlots(): void {\n const headingTags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];\n const slottedTitle = this.element.querySelector('[slot=\"title\"]');\n const slottedIllustrations = this.element.querySelectorAll('[slot=\"illustration\"]');\n const slottedDetails = this.element.querySelectorAll('[slot=\"details\"]');\n\n if (slottedDetails.length === 0 && slottedTitle === null) {\n throw new Error('<mg-illustrated-message> Slot \"title\" or \"details\" must be present.');\n } else if (slottedTitle !== null && !isTagName(slottedTitle, headingTags)) {\n throw new Error(`<mg-illustrated-message> Slotted title must be a heading: ${headingTags.join(', ')}.`);\n } else if (slottedIllustrations.length !== 1) {\n throw new Error('<mg-illustrated-message> Slotted illustration must be present and unique.');\n }\n\n slottedIllustrations[0].setAttribute('aria-hidden', 'true');\n }\n\n /*************\n * Lifecycle *\n *************/\n\n /**\n * Check if component props are well configured on init\n */\n componentWillLoad(): void {\n this.watchDirection(this.direction);\n this.watchSize(this.size);\n this.validateSlots();\n }\n\n /**\n * Render\n * @returns HTML Element\n */\n render(): HTMLElement {\n return (\n <div class={this.classCollection.join()}>\n <div class=\"mg-c-illustrated-message__illustration\">\n <slot name=\"illustration\"></slot>\n </div>\n <div class=\"mg-c-illustrated-message__slots\">\n <slot name=\"title\"></slot>\n <slot name=\"details\"></slot>\n </div>\n </div>\n );\n }\n}\n"],"version":3}
@@ -1,8 +1,9 @@
1
- import { a as MgInputCheckboxPaginated$1, d as defineCustomElement$1 } from './mg-input-checkbox-paginated2.js';
1
+ import { M as MgInputCheckboxPaginated$1, d as defineCustomElement$1 } from './mg-input-checkbox-paginated2.js';
2
2
 
3
3
  const MgInputCheckboxPaginated = MgInputCheckboxPaginated$1;
4
4
  const defineCustomElement = defineCustomElement$1;
5
5
 
6
6
  export { MgInputCheckboxPaginated, defineCustomElement };
7
+ //# sourceMappingURL=mg-input-checkbox-paginated.js.map
7
8
 
8
9
  //# sourceMappingURL=mg-input-checkbox-paginated.js.map
@@ -41,6 +41,17 @@ const MgInputCheckboxPaginated = /*@__PURE__*/ proxyCustomElement(class MgInputC
41
41
  * Constantes *
42
42
  *************/
43
43
  this.offset = 10;
44
+ /*************
45
+ * Decorators *
46
+ *************/
47
+ /**
48
+ * Define if mg-input-checkbox-list is readonly
49
+ */
50
+ this.readonly = false;
51
+ /**
52
+ * Define if mg-input-checkbox-list is disabled
53
+ */
54
+ this.disabled = false;
44
55
  /**
45
56
  * Current page
46
57
  */
@@ -127,10 +138,10 @@ const MgInputCheckboxPaginated = /*@__PURE__*/ proxyCustomElement(class MgInputC
127
138
  * @returns HTML Element
128
139
  */
129
140
  render() {
130
- const getText = (checkboxes) => (h("em", { key: '8f20e5be81047106e04cd101385b9c6555c0c38d', class: "mg-c-input__section-header-title-label" }, `${this.messages[checkboxes.length > 1 ? 'titlePlurial' : 'title']} (${checkboxes.length})`));
141
+ const getText = (checkboxes) => (h("em", { key: '0bf489a95090b519c85a4649d6c3b9a0e97bf0d8', class: "mg-c-input__section-header-title-label" }, `${this.messages[checkboxes.length > 1 ? 'titlePlural' : 'title']} (${checkboxes.length})`));
131
142
  const [from, to] = this.getFromToIndexes();
132
143
  const itemsContainerId = `items-${this.sectionKind}-container`;
133
- return (h(Host, { key: '39d0fc41abe4b537b240bdc14e80fc42cb41033d', hidden: this.checkboxes.length < 1 }, h("div", { key: 'fec430cfffc005a217694f9a4ba68412a6a08c7b', class: "mg-c-input__section-header" }, this.sectionKind === SectionKind.SELECTED ? (h("mg-button", { variant: "flat", onClick: this.handleToggleClick, "aria-controls": itemsContainerId, "aria-expanded": this.expanded.toString() }, h("mg-icon", { icon: this.expanded ? 'chevron-up' : 'chevron-down' }), h("span", { class: "mg-c-input__section-header-title" }, getText(this.checkboxes)))) : (h("p", { class: "mg-c-input__section-header-title mg-c-input__section-header-title--static" }, getText(this.checkboxes))), ((this.sectionKind === SectionKind.SELECTED && this.expanded) || this.sectionKind === SectionKind.NOT_SELECTED) && (h("mg-tooltip", { key: 'e1b38d93875962af3024ac27e1892c040dbf9bdb', class: "mg-c-input__section-header-tootlip", message: this.messages.tooltip }, h("mg-button", { key: 'f593b3d5ca5bd8b3080253842a5c513709f16e3a', variant: "link", onClick: this.massActionHandler }, this.messages.action))), this.expanded && this.getPageCount(this.checkboxes) > 1 && (h("mg-pagination", { key: "search-pagination", totalPages: this.getPageCount(this.checkboxes), currentPage: this.currentPage, "onCurrent-page-change": this.handleCurrentPageChange, hideNavigationLabels: true, hidePageCount: true, identifier: `input-checkbox-pagination-${this.sectionKind}` }))), h("div", { key: '74c18984938188e2861cd79b56d919a94f32064f', hidden: !this.expanded, id: itemsContainerId, class: "mg-c-input__section-content" }, h(MgInputCheckboxList, { key: '15c2f6fe98d772ce5b0a0d4ec448986e91592107', checkboxes: this.getArrayRange(this.checkboxes, from, to), displaySearchInput: true, messages: this.messages, id: `items-${this.sectionKind}`, disabled: this.disabled, name: this.name, invalid: this.invalid }))));
144
+ return (h(Host, { key: 'ee67aa1705efa2b88010748b6978e0c1dec6e4de', hidden: this.checkboxes.length < 1 }, h("div", { key: 'b713e2a0e21f57d3b238b72163f3d7a4781b7026', class: "mg-c-input__section-header" }, this.sectionKind === SectionKind.SELECTED ? (h("mg-button", { variant: "flat", onClick: this.handleToggleClick, "aria-controls": itemsContainerId, "aria-expanded": this.expanded.toString() }, h("mg-icon", { icon: this.expanded ? 'chevron-up' : 'chevron-down' }), h("span", { class: "mg-c-input__section-header-title" }, getText(this.checkboxes)))) : (h("p", { class: "mg-c-input__section-header-title mg-c-input__section-header-title--static" }, getText(this.checkboxes))), ((this.sectionKind === SectionKind.SELECTED && this.expanded) || this.sectionKind === SectionKind.NOT_SELECTED) && (h("mg-tooltip", { key: 'ef75381dab8028c3da4cbcefba644770322c2e7e', class: "mg-c-input__section-header-tootlip", message: this.messages.tooltip }, h("mg-button", { key: '6e33b32300e7932f09ce1152462a3cf19e452df8', variant: "link", onClick: this.massActionHandler }, this.messages.action))), this.expanded && this.getPageCount(this.checkboxes) > 1 && (h("mg-pagination", { key: "search-pagination", totalPages: this.getPageCount(this.checkboxes), currentPage: this.currentPage, "onCurrent-page-change": this.handleCurrentPageChange, hideNavigationLabels: true, hidePageCount: true, identifier: `input-checkbox-pagination-${this.sectionKind}` }))), h("div", { key: '727ef2955d5866131e421c0809244ccc42c75dd0', hidden: !this.expanded, id: itemsContainerId, class: "mg-c-input__section-content" }, h(MgInputCheckboxList, { key: 'd26de7f05b85142df7218ad9941e4b201cfb2e01', checkboxes: this.getArrayRange(this.checkboxes, from, to), displaySearchInput: true, messages: this.messages, id: `items-${this.sectionKind}`, disabled: this.disabled, name: this.name, invalid: this.invalid }))));
134
145
  }
135
146
  static get watchers() { return {
136
147
  "checkboxes": ["watchCheckboxes"]
@@ -202,6 +213,7 @@ function defineCustomElement() {
202
213
  }
203
214
  defineCustomElement();
204
215
 
205
- export { MgInputCheckboxList as M, SectionKind as S, MgInputCheckboxPaginated as a, checkboxTypes as c, defineCustomElement as d };
216
+ export { MgInputCheckboxPaginated as M, SectionKind as S, MgInputCheckboxList as a, checkboxTypes as c, defineCustomElement as d };
217
+ //# sourceMappingURL=mg-input-checkbox-paginated2.js.map
206
218
 
207
219
  //# sourceMappingURL=mg-input-checkbox-paginated2.js.map
@@ -1 +1 @@
1
- {"file":"mg-input-checkbox-paginated2.js","mappings":";;;;;;;;;;AAsBA;;;MAGa,aAAa,GAAG,CAAC,UAAU,EAAE,OAAO,EAAW;AAY5D;;;MAGa,WAAW,GAAoC;IAC1D,QAAQ,EAAE,UAAU;IACpB,YAAY,EAAE,cAAc;;;ACvC9B;;;;;MAKa,mBAAmB,GAAkD,CAAC,KAA+B,MAChH,UACE,KAAK,EAAC,mCAAmC,EACzC,IAAI,EAAC,MAAM,sBACO,KAAK,CAAC,kBAAkB,GAAG,gBAAgB,GAAG,SAAS,gBAC7D,KAAK,CAAC,kBAAkB,GAAG,KAAK,CAAC,QAAQ,CAAC,aAAa,GAAG,SAAS,eACpE,KAAK,CAAC,kBAAkB,GAAG,QAAQ,GAAG,SAAS,EAC1D,EAAE,EAAE,KAAK,CAAC,EAAE,IAEX,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,KAAK;;IAAI,QAC7B,UAAI,GAAG,EAAE,KAAK,CAAC,GAAG,EAAE,KAAK,E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InputCheckboxList.tsx","src/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.tsx"],"sourcesContent":["/**\n * interface CheckboxValue\n * use to match returned value\n */\nexport interface CheckboxValue {\n title: string;\n value: boolean | null;\n disabled?: boolean;\n required?: boolean;\n}\n\n/**\n * interface CheckboxItem\n * use to match checkbox attributes\n */\nexport interface CheckboxItem extends CheckboxValue {\n _id: string;\n _handleInput: (event: InputEvent & { target: HTMLInputElement }) => void;\n _handleBlur: () => void;\n _handleKeydown: (event: KeyboardEvent & { target: HTMLElement }) => void;\n}\n\n/**\n * List of all availables checkbox type\n */\nexport const checkboxTypes = ['checkbox', 'multi'] as const;\n\n/**\n * ChecboxType from checkbox types\n */\nexport type CheckboxType = (typeof checkboxTypes)[number];\n\n/**\n * mg-input-checkbox-paginated section kind type\n */\nexport type SectionKindType = 'selected' | 'not-selected';\n\n/**\n * mg-input-checkbox-paginated section kind value\n */\nexport const SectionKind: Record<string, SectionKindType> = {\n SELECTED: 'selected',\n NOT_SELECTED: 'not-selected',\n};\n\n/**\n * Base mg-input-checkbox interface\n */\nexport interface IMgInputCheckboxBase {\n disabled?: boolean;\n name?: string;\n invalid?: boolean;\n}\n\n/**\n * mg-input-checkbox-list interface\n */\nexport interface MgInputCheckboxListProps extends IMgInputCheckboxBase {\n displaySearchInput: boolean;\n messages: Record<string, unknown>;\n checkboxes: CheckboxItem[];\n id: string;\n}\n","import { FunctionalComponent, h, VNode } from '@stencil/core';\nimport { MgInputCheckboxListProps } from './mg-input-checkbox.conf';\n\n/**\n * Get checkboxes list template\n * @param props - MgInputCheckboxList Interface Props\n * @returns input template\n */\nexport const MgInputCheckboxList: FunctionalComponent<MgInputCheckboxListProps> = (props: MgInputCheckboxListProps): VNode[] => (\n <ul\n class=\"mg-c-input__input-group-container\"\n role=\"list\"\n aria-describedby={props.displaySearchInput ? 'search-results' : undefined}\n aria-label={props.displaySearchInput ? props.messages.searchResults : undefined}\n aria-live={props.displaySearchInput ? 'polite' : undefined}\n id={props.id}\n >\n {props.checkboxes.map(input => (\n <li key={input._id} class={{ 'mg-c-input__input-group': true, 'mg-c-input__input-group--disabled': props.disabled || input.disabled }}>\n <input\n type=\"checkbox\"\n id={input._id}\n name={props.name}\n value={input.value?.toString()}\n checked={Boolean(input.value)}\n required={input.required}\n aria-invalid={props.invalid?.toString() || 'false'}\n disabled={props.disabled || input.disabled}\n indeterminate={input.value === null}\n onInput={input._handleInput}\n onBlur={input._handleBlur}\n onKeyDown={input._handleKeydown}\n />\n <label htmlFor={input._id}>{input.title}</label>\n </li>\n ))}\n </ul>\n);\n","import { Component, h, Prop, State, Event, EventEmitter, Watch, Host } from '@stencil/core';\nimport { CheckboxItem, IMgInputCheckboxBase, type SectionKindType, SectionKind } from '../mg-input-checkbox.conf';\nimport { MgInputCheckboxList } from '../MgInputCheckboxList';\n\n/**\n * Internal component use to manage sections instances\n * @internal\n */\n@Component({\n tag: 'mg-input-checkbox-paginated',\n shadow: false,\n scoped: true,\n})\nexport class MgInputCheckboxPaginated implements IMgInputCheckboxBase {\n /*************\n * Constantes *\n *************/\n private readonly offset = 10;\n private sectionKind: SectionKindType;\n\n /*************\n * Decorators *\n *************/\n\n /**\n * Define if mg-input-checkbox-list is readonly\n */\n @Prop() readonly?: boolean;\n\n /**\n * Define if mg-input-checkbox-list is disabled\n */\n @Prop() disabled?: boolean;\n\n /**\n * Define mg-input-checkbox input name\n */\n @Prop() name?: string;\n\n /**\n * Define mg-input-checkbox input invalid\n */\n @Prop() invalid?: boolean;\n\n /**\n * Current page\n */\n @Prop({ mutable: true }) currentPage = 1;\n\n /**\n * Define checkboxes to paginate\n */\n @Prop() checkboxes: CheckboxItem[] = [];\n @Watch('checkboxes')\n watchCheckboxes(newValue: MgInputCheckboxPaginated['checkboxes'], oldValue?: MgInputCheckboxPaginated['checkboxes']): void {\n const pageCountNewValue = this.getPageCount(newValue);\n const pageCountOldValue = this.getPageCount(oldValue);\n // after each array.length update we reset pagination\n // when items fill on page, we set current page to 1\n if (pageCountNewValue === 1 || (pageCountNewValue !== 0 && this.currentPage === 0)) {\n this.currentPage = 1;\n }\n // when old items page numbers match the current page AND new items page number is lower than current page, we set the new last page\n else if (pageCountOldValue === this.currentPage && pageCountNewValue < this.currentPage) {\n this.currentPage--;\n }\n this.sectionKind = newValue[0].value ? SectionKind.SELECTED : SectionKind.NOT_SELECTED;\n }\n\n /**\n * Define component message\n */\n @Prop() messages: Record<string, string>;\n\n /**\n * Emit 'mass-action' event\n * used to informe that select-all/unselect-all button listner is triggered\n */\n @Event({ eventName: 'mass-action' }) massAction: EventEmitter<SectionKindType>;\n\n /**\n * Is checked items values expanded\n */\n @State() expanded = true;\n\n /***********\n * Methods *\n ***********/\n\n /**\n * Mass action handler\n */\n private massActionHandler = (): void => {\n this.massAction.emit(this.sectionKind);\n };\n\n /**\n * Toggle items button handler\n */\n private handleToggleClick = (): void => {\n this.expanded = !this.expanded;\n };\n\n /**\n * Method to get a array range\n * @param from - array start index\n * @param to - array end index\n * @returns array's range\n */\n private getArrayRange = <ItemType,>(array: ItemType[], from: number, to: number): ItemType[] => array.slice(from, to);\n\n /**\n * Get from and to index\n * @returns [from,to] index\n */\n private getFromToIndexes(): number[] {\n const isFirstPage = this.currentPage === 1;\n const from = isFirstPage ? 0 : (this.currentPage - 1) * this.offset;\n const to = isFirstPage ? this.offset : this.currentPage * this.offset;\n return [from, to];\n }\n\n /**\n * Method to get page count from items\n * @param items - items to count\n * @returns page count from items\n */\n private getPageCount = (items: unknown[]): number => (items?.length > 0 ? Math.ceil(items.length / this.offset) : 0);\n\n /**\n * Handle mg-pagination current page change event\n * @param event - pagination current page change event\n */\n private handleCurrentPageChange = (event: CustomEvent): void => {\n this.currentPage = Number(event.detail);\n };\n\n /*************\n * Lifecycle *\n *************/\n\n /**\n * Validate props\n */\n componentWillLoad(): void {\n this.watchCheckboxes(this.checkboxes);\n }\n\n /**\n * Render\n * @returns HTML Element\n */\n render(): HTMLElement {\n const getText = (checkboxes: CheckboxItem[]): HTMLElement => (\n <em class=\"mg-c-input__section-header-title-label\">{`${this.messages[checkboxes.length > 1 ? 'titlePlurial' : 'title']} (${checkboxes.length})`}</em>\n );\n const [from, to] = this.getFromToIndexes();\n const itemsContainerId = `items-${this.sectionKind}-container`;\n\n return (\n <Host hidden={this.checkboxes.length < 1}>\n <div class=\"mg-c-input__section-header\">\n {this.sectionKind === SectionKind.SELECTED ? (\n <mg-button variant=\"flat\" onClick={this.handleToggleClick} aria-controls={itemsContainerId} aria-expanded={this.expanded.toString()}>\n <mg-icon icon={this.expanded ? 'chevron-up' : 'chevron-down'}></mg-icon>\n <span class=\"mg-c-input__section-header-title\">{getText(this.checkboxes)}</span>\n </mg-button>\n ) : (\n <p class=\"mg-c-input__section-header-title mg-c-input__section-header-title--static\">{getText(this.checkboxes)}</p>\n )}\n {((this.sectionKind === SectionKind.SELECTED && this.expanded) || this.sectionKind === SectionKind.NOT_SELECTED) && (\n <mg-tooltip class=\"mg-c-input__section-header-tootlip\" message={this.messages.tooltip}>\n <mg-button variant=\"link\" onClick={this.massActionHandler}>\n {this.messages.action}\n </mg-button>\n </mg-tooltip>\n )}\n {this.expanded && this.getPageCount(this.checkboxes) > 1 && (\n <mg-pagination\n key=\"search-pagination\"\n totalPages={this.getPageCount(this.checkboxes)}\n currentPage={this.currentPage}\n onCurrent-page-change={this.handleCurrentPageChange}\n hideNavigationLabels={true}\n hidePageCount={true}\n identifier={`input-checkbox-pagination-${this.sectionKind}`}\n ></mg-pagination>\n )}\n </div>\n <div hidden={!this.expanded} id={itemsContainerId} class=\"mg-c-input__section-content\">\n <MgInputCheckboxList\n checkboxes={this.getArrayRange(this.checkboxes, from, to)}\n displaySearchInput={true}\n messages={this.messages}\n id={`items-${this.sectionKind}`}\n disabled={this.disabled}\n name={this.name}\n invalid={this.invalid}\n ></MgInputCheckboxList>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"mg-input-checkbox-paginated2.js","mappings":";;;;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AAgB,EAAE,KAAK,EAAC,6BAA6B,EAAA,EACpF,CAAC,CAAA,mBAAmB,EAClB,EAAA,GAAA,EAAA,0CAAA,EAAA,UAAU,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,EAAE,EAAE,CAAC,EACzD,kBAAkB,EAAE,IAAI,EACxB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,EAAE,EAAE,SAAS,IAAI,CAAC,WAAW,CAAE,CAAA,EAC/B,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,OAAO,EAAE,IAAI,CAAC,OAAO,EACA,CAAA,CACnB,CACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement"],"sources":["src/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.ts","src/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxList.tsx","src/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.tsx"],"sourcesContent":["/**\n * interface CheckboxValue\n * use to match returned value\n */\nexport interface CheckboxValue {\n title: string;\n value: boolean | null;\n disabled?: boolean;\n required?: boolean;\n}\n\n/**\n * interface CheckboxItem\n * use to match checkbox attributes\n */\nexport interface CheckboxItem extends CheckboxValue {\n _id: string;\n _handleInput: (event: InputEvent & { target: HTMLInputElement }) => void;\n _handleBlur: () => void;\n _handleKeydown: (event: KeyboardEvent & { target: HTMLElement }) => void;\n}\n\n/**\n * List of all availables checkbox type\n */\nexport const checkboxTypes = ['checkbox', 'multi'] as const;\n\n/**\n * ChecboxType from checkbox types\n */\nexport type CheckboxType = (typeof checkboxTypes)[number];\n\n/**\n * mg-input-checkbox-paginated section kind type\n */\nexport type SectionKindType = 'selected' | 'not-selected';\n\n/**\n * mg-input-checkbox-paginated section kind value\n */\nexport const SectionKind: Record<string, SectionKindType> = {\n SELECTED: 'selected',\n NOT_SELECTED: 'not-selected',\n};\n\n/**\n * Base mg-input-checkbox interface\n */\nexport interface IMgInputCheckboxBase {\n disabled?: boolean;\n name?: string;\n invalid?: boolean;\n}\n\n/**\n * mg-input-checkbox-list interface\n */\nexport interface MgInputCheckboxListProps extends IMgInputCheckboxBase {\n displaySearchInput: boolean;\n messages: Record<string, unknown>;\n checkboxes: CheckboxItem[];\n id: string;\n}\n","import { FunctionalComponent, h, VNode } from '@stencil/core';\nimport { MgInputCheckboxListProps } from './mg-input-checkbox.conf';\n\n/**\n * Get checkboxes list template\n * @param props - MgInputCheckboxList Interface Props\n * @returns input template\n */\nexport const MgInputCheckboxList: FunctionalComponent<MgInputCheckboxListProps> = (props: MgInputCheckboxListProps): VNode[] => (\n <ul\n class=\"mg-c-input__input-group-container\"\n role=\"list\"\n aria-describedby={props.displaySearchInput ? 'search-results' : undefined}\n aria-label={props.displaySearchInput ? props.messages.searchResults : undefined}\n aria-live={props.displaySearchInput ? 'polite' : undefined}\n id={props.id}\n >\n {props.checkboxes.map(input => (\n <li key={input._id} class={{ 'mg-c-input__input-group': true, 'mg-c-input__input-group--disabled': props.disabled || input.disabled }}>\n <input\n type=\"checkbox\"\n id={input._id}\n name={props.name}\n value={input.value?.toString()}\n checked={Boolean(input.value)}\n required={input.required}\n aria-invalid={props.invalid?.toString() || 'false'}\n disabled={props.disabled || input.disabled}\n indeterminate={input.value === null}\n onInput={input._handleInput}\n onBlur={input._handleBlur}\n onKeyDown={input._handleKeydown}\n />\n <label htmlFor={input._id}>{input.title}</label>\n </li>\n ))}\n </ul>\n);\n","import { Component, h, Prop, State, Event, EventEmitter, Watch, Host } from '@stencil/core';\nimport { CheckboxItem, IMgInputCheckboxBase, type SectionKindType, SectionKind } from '../mg-input-checkbox.conf';\nimport { MgInputCheckboxList } from '../MgInputCheckboxList';\n\n/**\n * Internal component use to manage sections instances\n * @internal\n */\n@Component({\n tag: 'mg-input-checkbox-paginated',\n shadow: false,\n scoped: true,\n})\nexport class MgInputCheckboxPaginated implements IMgInputCheckboxBase {\n /*************\n * Constantes *\n *************/\n private readonly offset = 10;\n private sectionKind: SectionKindType;\n\n /*************\n * Decorators *\n *************/\n\n /**\n * Define if mg-input-checkbox-list is readonly\n */\n @Prop() readonly = false;\n\n /**\n * Define if mg-input-checkbox-list is disabled\n */\n @Prop() disabled = false;\n\n /**\n * Define mg-input-checkbox input name\n */\n @Prop() name?: string;\n\n /**\n * Define mg-input-checkbox input invalid\n */\n @Prop() invalid?: boolean;\n\n /**\n * Current page\n */\n @Prop({ mutable: true }) currentPage = 1;\n\n /**\n * Define checkboxes to paginate\n */\n @Prop() checkboxes: CheckboxItem[] = [];\n @Watch('checkboxes')\n watchCheckboxes(newValue: MgInputCheckboxPaginated['checkboxes'], oldValue?: MgInputCheckboxPaginated['checkboxes']): void {\n const pageCountNewValue = this.getPageCount(newValue);\n const pageCountOldValue = this.getPageCount(oldValue);\n // after each array.length update we reset pagination\n // when items fill on page, we set current page to 1\n if (pageCountNewValue === 1 || (pageCountNewValue !== 0 && this.currentPage === 0)) {\n this.currentPage = 1;\n }\n // when old items page numbers match the current page AND new items page number is lower than current page, we set the new last page\n else if (pageCountOldValue === this.currentPage && pageCountNewValue < this.currentPage) {\n this.currentPage--;\n }\n this.sectionKind = newValue[0].value ? SectionKind.SELECTED : SectionKind.NOT_SELECTED;\n }\n\n /**\n * Define component message\n */\n @Prop() messages: Record<string, string>;\n\n /**\n * Emit 'mass-action' event\n * used to informe that select-all/unselect-all button listner is triggered\n */\n @Event({ eventName: 'mass-action' }) massAction: EventEmitter<SectionKindType>;\n\n /**\n * Is checked items values expanded\n */\n @State() expanded = true;\n\n /***********\n * Methods *\n ***********/\n\n /**\n * Mass action handler\n */\n private massActionHandler = (): void => {\n this.massAction.emit(this.sectionKind);\n };\n\n /**\n * Toggle items button handler\n */\n private handleToggleClick = (): void => {\n this.expanded = !this.expanded;\n };\n\n /**\n * Method to get a array range\n * @param from - array start index\n * @param to - array end index\n * @returns array's range\n */\n private getArrayRange = <ItemType,>(array: ItemType[], from: number, to: number): ItemType[] => array.slice(from, to);\n\n /**\n * Get from and to index\n * @returns [from,to] index\n */\n private getFromToIndexes(): number[] {\n const isFirstPage = this.currentPage === 1;\n const from = isFirstPage ? 0 : (this.currentPage - 1) * this.offset;\n const to = isFirstPage ? this.offset : this.currentPage * this.offset;\n return [from, to];\n }\n\n /**\n * Method to get page count from items\n * @param items - items to count\n * @returns page count from items\n */\n private getPageCount = (items: unknown[]): number => (items?.length > 0 ? Math.ceil(items.length / this.offset) : 0);\n\n /**\n * Handle mg-pagination current page change event\n * @param event - pagination current page change event\n */\n private handleCurrentPageChange = (event: CustomEvent): void => {\n this.currentPage = Number(event.detail);\n };\n\n /*************\n * Lifecycle *\n *************/\n\n /**\n * Validate props\n */\n componentWillLoad(): void {\n this.watchCheckboxes(this.checkboxes);\n }\n\n /**\n * Render\n * @returns HTML Element\n */\n render(): HTMLElement {\n const getText = (checkboxes: CheckboxItem[]): HTMLElement => (\n <em class=\"mg-c-input__section-header-title-label\">{`${this.messages[checkboxes.length > 1 ? 'titlePlural' : 'title']} (${checkboxes.length})`}</em>\n );\n const [from, to] = this.getFromToIndexes();\n const itemsContainerId = `items-${this.sectionKind}-container`;\n\n return (\n <Host hidden={this.checkboxes.length < 1}>\n <div class=\"mg-c-input__section-header\">\n {this.sectionKind === SectionKind.SELECTED ? (\n <mg-button variant=\"flat\" onClick={this.handleToggleClick} aria-controls={itemsContainerId} aria-expanded={this.expanded.toString()}>\n <mg-icon icon={this.expanded ? 'chevron-up' : 'chevron-down'}></mg-icon>\n <span class=\"mg-c-input__section-header-title\">{getText(this.checkboxes)}</span>\n </mg-button>\n ) : (\n <p class=\"mg-c-input__section-header-title mg-c-input__section-header-title--static\">{getText(this.checkboxes)}</p>\n )}\n {((this.sectionKind === SectionKind.SELECTED && this.expanded) || this.sectionKind === SectionKind.NOT_SELECTED) && (\n <mg-tooltip class=\"mg-c-input__section-header-tootlip\" message={this.messages.tooltip}>\n <mg-button variant=\"link\" onClick={this.massActionHandler}>\n {this.messages.action}\n </mg-button>\n </mg-tooltip>\n )}\n {this.expanded && this.getPageCount(this.checkboxes) > 1 && (\n <mg-pagination\n key=\"search-pagination\"\n totalPages={this.getPageCount(this.checkboxes)}\n currentPage={this.currentPage}\n onCurrent-page-change={this.handleCurrentPageChange}\n hideNavigationLabels={true}\n hidePageCount={true}\n identifier={`input-checkbox-pagination-${this.sectionKind}`}\n ></mg-pagination>\n )}\n </div>\n <div hidden={!this.expanded} id={itemsContainerId} class=\"mg-c-input__section-content\">\n <MgInputCheckboxList\n checkboxes={this.getArrayRange(this.checkboxes, from, to)}\n displaySearchInput={true}\n messages={this.messages}\n id={`items-${this.sectionKind}`}\n disabled={this.disabled}\n name={this.name}\n invalid={this.invalid}\n ></MgInputCheckboxList>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1,7 +1,7 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
- import { Z as Ze, t as tt, m as me, V as Ve } from './index.es.js';
3
- import { d as defineCustomElement$a, S as SectionKind, M as MgInputCheckboxList, c as checkboxTypes } from './mg-input-checkbox-paginated2.js';
4
- import { d as defineCustomElement$b, c as classFieldset, a as classVerticalList, b as classReadonly, e as classDisabled } from './mg-input2.js';
2
+ import { k as kt, a as Lt, L as Le, z as zt } from './index.es.js';
3
+ import { d as defineCustomElement$a, S as SectionKind, a as MgInputCheckboxList, c as checkboxTypes } from './mg-input-checkbox-paginated2.js';
4
+ import { d as defineCustomElement$b, b as classFieldset, e as classVerticalList, c as classReadonly, a as classDisabled } from './mg-input2.js';
5
5
  import { i as initLocales } from './index2.js';
6
6
  import { d as defineCustomElement$f } from './mg-button2.js';
7
7
  import { d as defineCustomElement$e } from './mg-card2.js';
@@ -17,7 +17,6 @@ import { d as defineCustomElement$3 } from './mg-tooltip2.js';
17
17
  import { d as defineCustomElement$2 } from './mg-tooltip-content2.js';
18
18
 
19
19
  const mgInputCheckboxCss = ".mg-c-input__readonly-value{min-height:var(--mg-b-font-size);align-self:flex-start;margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2);word-break:break-word}.mg-c-input.mg-c-input--fieldset{padding:0;border:0;margin-right:0;margin-left:0}.mg-c-input.mg-c-input--fieldset input[type=radio],.mg-c-input.mg-c-input--fieldset input[type=checkbox]{width:var(--mg-c-input-check-size);height:var(--mg-c-input-check-size);flex-shrink:0;margin:calc((var(--mg-b-font-size)*var(--mg-b-line-height) - var(--mg-c-input-check-size))/2) var(--mg-b-size-8) 0 0}.mg-c-input.mg-c-input--fieldset .mg-c-input__input-group{display:flex;align-items:start}.mg-c-input.mg-c-input--fieldset .mg-c-input__input-group-container{display:flex;flex-wrap:wrap;padding:0;margin:0;margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2);gap:var(--mg-b-size-12) var(--mg-b-size-24);list-style:none}.mg-c-input.mg-c-input--fieldset .mg-c-input__input-group.mg-c-input__input-group--disabled label{opacity:var(--mg-b-opacity-element-disabled)}.mg-c-input.mg-c-input--fieldset.mg-c-input--vertical-list .mg-c-input__input-group-container,.mg-c-input.mg-c-input--fieldset.mg-c-input--checkbox-multi .mg-c-input__input-group-container{flex-direction:column}.mg-c-input.mg-c-input--fieldset.mg-c-input--label-on-top .mg-c-input__input-group-container{margin-top:var(--mg-b-size-8)}.mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__input-group-container{padding:var(--mg-b-size-4) var(--mg-b-size-8);margin:0}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__input-container{display:flex;width:unset;flex:unset;flex-wrap:wrap;column-gap:var(--mg-b-size-8)}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__input-container-list{display:flex;flex-flow:row wrap;padding:0;margin:0;gap:var(--mg-b-size-4);list-style:none}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__sections{max-height:100%;padding-right:var(--mg-b-size-8);overflow-y:auto}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__section-header{display:flex;min-height:var(--mg-b-size-min-height);flex-wrap:wrap;flex-wrap:nowrap;align-items:center;gap:var(--mg-b-size-8);text-wrap:nowrap}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__section-header-tootlip{display:inline-block;width:auto;height:auto;margin:0}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__section-header-title{display:inline;margin:0;color:var(--mg-b-color-neutral-80)}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__section-header-title-label{font-size:var(--mg-b-font-size)}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__section-header-title--static.mg-c-input__section-header-title{margin:0 var(--mg-b-size-12)}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__input-value{display:inline-flex;min-width:var(--mg-b-size-min-height);min-height:var(--mg-b-size-min-height);box-sizing:border-box;align-items:center;justify-content:center;padding:calc((var(--mg-b-size-min-height) - 2*var(--mg-b-size-border) - var(--mg-b-font-size)*var(--mg-b-line-height))/2) var(--mg-b-size-12);border-radius:var(--mg-b-size-4);background-color:var(--mg-b-color-neutral-20);font-size:var(--mg-b-font-size)}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__input-no-result{text-align:center}.mg-c-input.mg-c-input--checkbox-multi b{margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2)}.mg-c-input.mg-c-input--checkbox-multi.mg-c-input--disabled .mg-c-input__input-container b{opacity:var(--mg-b-opacity-element-disabled)}.mg-c-input.mg-c-input--checkbox-multi.mg-c-input--with-values .mg-c-input__input-container{gap:var(--mg-b-size-4)}.mg-c-input.mg-c-input--checkbox-multi.mg-c-input--search-mode .mg-c-input__content{display:flex;width:calc(var(--mg-b-size-floating-element-max-width) - var(--mg-b-size-16));height:calc(50*var(--mg-b-size-8));max-height:calc(100vh - var(--mg-b-size-32));flex-direction:column;gap:var(--mg-b-size-8)}.mg-c-input.mg-c-input--checkbox-multi:not(.mg-c-input--label-on-top) mg-tooltip:not(.mg-c-input__section-header-tootlip){margin-left:var(--mg-b-size-8)}.mg-c-input.mg-c-input--checkbox-multi mg-popover{--mg-c-card-spacing:var(--mg-b-size-8)}.mg-c-input.mg-c-input--readonly ul{display:flex;min-height:var(--mg-b-font-size);flex-flow:column wrap;padding:0;margin:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2) 0 0;list-style:none;row-gap:var(--mg-b-size-8)}";
20
- const MgInputCheckboxStyle0 = mgInputCheckboxCss;
21
20
 
22
21
  /**
23
22
  * type CheckboxItem validation function
@@ -51,6 +50,10 @@ const MgInputCheckbox$1 = /*@__PURE__*/ proxyCustomElement(class MgInputCheckbox
51
50
  * If not set the value equals the identifier
52
51
  */
53
52
  this.name = this.identifier;
53
+ /**
54
+ * Define if label is displayed on top
55
+ */
56
+ this.labelOnTop = false;
54
57
  /**
55
58
  * Define if label is visible
56
59
  */
@@ -67,6 +70,11 @@ const MgInputCheckbox$1 = /*@__PURE__*/ proxyCustomElement(class MgInputCheckbox
67
70
  * Define if mg-input-checkbox is readonly
68
71
  */
69
72
  this.readonly = false;
73
+ /**
74
+ * Display selected values list in "multi" type
75
+ * This prop is only applied with prop type "multi" or when an "unset" mode render a "multi" type.
76
+ */
77
+ this.displaySelectedValues = false;
70
78
  /**
71
79
  * Define if input is disabled
72
80
  */
@@ -78,7 +86,7 @@ const MgInputCheckbox$1 = /*@__PURE__*/ proxyCustomElement(class MgInputCheckbox
78
86
  /**
79
87
  * Component classes
80
88
  */
81
- this.classCollection = new Ze([this.baseClassName, classFieldset]);
89
+ this.classCollection = new kt([this.baseClassName, classFieldset]);
82
90
  /**
83
91
  * Formated value to display in list
84
92
  */
@@ -196,7 +204,7 @@ const MgInputCheckbox$1 = /*@__PURE__*/ proxyCustomElement(class MgInputCheckbox
196
204
  * Method to update searchResults
197
205
  */
198
206
  this.updateSearchResults = () => {
199
- this.searchResults = this.checkboxItems.filter(item => tt(item.title).includes(tt(this.searchValue)));
207
+ this.searchResults = this.checkboxItems.filter(item => Lt(item.title).includes(Lt(this.searchValue)));
200
208
  };
201
209
  /**
202
210
  * Method to validate if one of inputs value is checked id required
@@ -228,13 +236,13 @@ const MgInputCheckbox$1 = /*@__PURE__*/ proxyCustomElement(class MgInputCheckbox
228
236
  * @returns message to display
229
237
  */
230
238
  this.getSelectValuesButtonMessage = () => {
231
- if (this.selectValuesButtonKey === 'editButton' && me(this.editButtonMessage)) {
239
+ if (this.selectValuesButtonKey === 'editButton' && Le(this.editButtonMessage)) {
232
240
  return this.editButtonMessage;
233
241
  }
234
- else if (this.selectValuesButtonKey === 'showButton' && me(this.showButtonMessage)) {
242
+ else if (this.selectValuesButtonKey === 'showButton' && Le(this.showButtonMessage)) {
235
243
  return this.showButtonMessage;
236
244
  }
237
- else if (this.selectValuesButtonKey === 'selectButton' && me(this.selectButtonMessage)) {
245
+ else if (this.selectValuesButtonKey === 'selectButton' && Le(this.selectButtonMessage)) {
238
246
  return this.selectButtonMessage;
239
247
  }
240
248
  else {
@@ -290,12 +298,12 @@ const MgInputCheckbox$1 = /*@__PURE__*/ proxyCustomElement(class MgInputCheckbox
290
298
  this.valueChange.emit(newValue);
291
299
  }
292
300
  else {
293
- throw new Error(`<mg-input-checkbox> prop "value" is required and all values must be the same type, CheckboxItem. Passed value: ${Ve(newValue)}.`);
301
+ throw new Error(`<mg-input-checkbox> prop "value" is required and all values must be the same type, CheckboxItem. Passed value: ${zt(newValue)}.`);
294
302
  }
295
303
  }
296
304
  validateType(newValue) {
297
305
  if (newValue !== undefined && !checkboxTypes.includes(newValue)) {
298
- throw new Error(`<mg-input-checkbox> prop "type" must be a CheckboxType. Passed value: ${Ve(newValue)}.`);
306
+ throw new Error(`<mg-input-checkbox> prop "type" must be a CheckboxType. Passed value: ${zt(newValue)}.`);
299
307
  }
300
308
  else if (newValue === undefined) {
301
309
  this.mode = 'auto';
@@ -395,7 +403,7 @@ const MgInputCheckbox$1 = /*@__PURE__*/ proxyCustomElement(class MgInputCheckbox
395
403
  if (typeof valid !== 'boolean') {
396
404
  throw new Error('<mg-input-checkbox> method "setError()" param "valid" must be a boolean.');
397
405
  }
398
- else if (!me(errorMessage)) {
406
+ else if (!Le(errorMessage)) {
399
407
  throw new Error('<mg-input-checkbox> method "setError()" param "errorMessage" must be a string.');
400
408
  }
401
409
  else {
@@ -532,7 +540,7 @@ const MgInputCheckbox$1 = /*@__PURE__*/ proxyCustomElement(class MgInputCheckbox
532
540
  else {
533
541
  inputContent = this.renderCheckboxMulti();
534
542
  }
535
- return (h("mg-input", { key: '29c4a52d2f3a0e3d3b2a6f55ce3374aa818cf4eb', label: this.label, identifier: this.identifier, class: this.classCollection.join(), ariaDescribedbyIDs: [], labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: !this.readonly ? this.required : undefined, tooltip: this.tooltip, tooltipPosition: this.readonly && readonlyValue.length === 0 ? 'label' : this.tooltipPosition, helpText: !this.readonly ? this.helpText : undefined, errorMessage: !this.readonly ? this.errorMessage : undefined }, inputContent));
543
+ return (h("mg-input", { key: 'acc005b56c767a84c6b4bcc5b29769da82d12c1e', label: this.label, identifier: this.identifier, class: this.classCollection.join(), ariaDescribedbyIDs: [], labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: !this.readonly ? this.required : undefined, tooltip: this.tooltip, tooltipPosition: this.readonly && readonlyValue.length === 0 ? 'label' : this.tooltipPosition, helpText: !this.readonly ? this.helpText : undefined, errorMessage: !this.readonly ? this.errorMessage : undefined }, inputContent));
536
544
  }
537
545
  get element() { return this; }
538
546
  static get watchers() { return {
@@ -547,7 +555,7 @@ const MgInputCheckbox$1 = /*@__PURE__*/ proxyCustomElement(class MgInputCheckbox
547
555
  "displaySearchInput": ["watchDisplaySearchInput"],
548
556
  "searchValue": ["validateSearchValue"]
549
557
  }; }
550
- static get style() { return MgInputCheckboxStyle0; }
558
+ static get style() { return mgInputCheckboxCss; }
551
559
  }, [1, "mg-input-checkbox", {
552
560
  "value": [1040],
553
561
  "type": [1025],
@@ -680,5 +688,6 @@ const MgInputCheckbox = MgInputCheckbox$1;
680
688
  const defineCustomElement = defineCustomElement$1;
681
689
 
682
690
  export { MgInputCheckbox, defineCustomElement };
691
+ //# sourceMappingURL=mg-input-checkbox.js.map
683
692
 
684
693
  //# sourceMappingURL=mg-input-checkbox.js.map