@mgdis/mg-components 6.13.1 → 6.15.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 (441) hide show
  1. package/dist/cjs/{index-CATFkm3O.js → index-BGxkpQwi.js} +230 -122
  2. package/dist/cjs/{index-DUJwxnoi.js → index-CpENFzEo.js} +2 -5
  3. package/dist/cjs/{index-CwjAofQ1.js → index-iUZvsp-F.js} +55 -34
  4. package/dist/cjs/index.cjs.js +0 -3
  5. package/dist/cjs/loader.cjs.js +3 -7
  6. package/dist/cjs/mg-action-more_37.cjs.entry.js +553 -264
  7. package/dist/cjs/mg-alert.cjs.entry.js +7 -10
  8. package/dist/cjs/mg-components.cjs.js +4 -8
  9. package/dist/cjs/mg-input-combobox.cjs.entry.js +149 -88
  10. package/dist/cjs/mg-input-rich-text-editor.cjs.entry.js +1264 -16023
  11. package/dist/cjs/{mg-input.conf-WTsvDfpC.js → mg-input.conf-CwjEAih3.js} +7 -3
  12. package/dist/cjs/mg-input.utils-D-ASK4ua.js +49 -0
  13. package/dist/cjs/mg-loader.cjs.entry.js +4 -7
  14. package/dist/cjs/mg-progress.cjs.entry.js +3 -6
  15. package/dist/collection/assets/icons/index.js +1 -2
  16. package/dist/collection/collection-manifest.json +2 -2
  17. package/dist/collection/components/atoms/internals/mg-character-left/mg-character-left.js +3 -4
  18. package/dist/collection/components/atoms/internals/mg-input-title/mg-input-title.js +4 -5
  19. package/dist/collection/components/atoms/mg-badge/mg-badge.conf.js +0 -1
  20. package/dist/collection/components/atoms/mg-badge/mg-badge.js +4 -5
  21. package/dist/collection/components/atoms/mg-button/mg-button.conf.js +0 -1
  22. package/dist/collection/components/atoms/mg-button/mg-button.js +9 -10
  23. package/dist/collection/components/atoms/mg-card/mg-card.conf.js +4 -0
  24. package/dist/collection/components/atoms/mg-card/mg-card.js +104 -2
  25. package/dist/collection/components/atoms/mg-divider/mg-divider.js +1 -2
  26. package/dist/collection/components/atoms/mg-icon/mg-icon.conf.js +0 -1
  27. package/dist/collection/components/atoms/mg-icon/mg-icon.js +6 -7
  28. package/dist/collection/components/atoms/mg-tag/mg-tag.conf.js +0 -1
  29. package/dist/collection/components/atoms/mg-tag/mg-tag.js +3 -4
  30. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip-content/mg-tooltip-content.js +1 -2
  31. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.conf.js +0 -1
  32. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +5 -6
  33. package/dist/collection/components/molecules/inputs/mg-input/mg-input.conf.js +6 -1
  34. package/dist/collection/components/molecules/inputs/mg-input/mg-input.js +125 -39
  35. package/dist/collection/components/molecules/inputs/mg-input/mg-input.utils.js +21 -0
  36. package/dist/collection/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxList.js +2 -2
  37. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.js +55 -111
  38. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.js +0 -1
  39. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +143 -68
  40. package/dist/collection/components/molecules/inputs/mg-input-combobox/mg-input-combobox.conf.js +0 -1
  41. package/dist/collection/components/molecules/inputs/mg-input-combobox/mg-input-combobox.js +161 -75
  42. package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.conf.js +0 -1
  43. package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +17 -18
  44. package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.conf.js +0 -1
  45. package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +31 -27
  46. package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +18 -19
  47. package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.conf.js +0 -1
  48. package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +79 -26
  49. package/dist/collection/components/molecules/inputs/mg-input-rich-text-editor/editor/index.js +0 -1
  50. package/dist/collection/components/molecules/inputs/mg-input-rich-text-editor/mg-input-rich-text-editor.js +19 -19
  51. package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.conf.js +0 -1
  52. package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +91 -37
  53. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.conf.js +0 -1
  54. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +25 -25
  55. package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +23 -24
  56. package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.conf.js +0 -1
  57. package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +156 -23
  58. package/dist/collection/components/molecules/internals/mg-item-more/mg-item-more.conf.js +0 -1
  59. package/dist/collection/components/molecules/internals/mg-item-more/mg-item-more.js +4 -3
  60. package/dist/collection/components/molecules/menus/mg-menu/mg-menu.conf.js +0 -1
  61. package/dist/collection/components/molecules/menus/mg-menu/mg-menu.js +4 -4
  62. package/dist/collection/components/molecules/menus/mg-menu-item/mg-menu-item.conf.js +0 -1
  63. package/dist/collection/components/molecules/menus/mg-menu-item/mg-menu-item.js +5 -6
  64. package/dist/collection/components/molecules/mg-action-more/mg-action-more.conf.js +0 -1
  65. package/dist/collection/components/molecules/mg-action-more/mg-action-more.js +6 -4
  66. package/dist/collection/components/molecules/mg-alert/mg-alert.conf.js +0 -1
  67. package/dist/collection/components/molecules/mg-alert/mg-alert.js +7 -8
  68. package/dist/collection/components/molecules/mg-details/mg-details.js +5 -6
  69. package/dist/collection/components/molecules/mg-form/mg-form.conf.js +0 -1
  70. package/dist/collection/components/molecules/mg-form/mg-form.js +10 -11
  71. package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.conf.js +0 -1
  72. package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js +3 -4
  73. package/dist/collection/components/molecules/mg-loader/mg-loader.js +3 -4
  74. package/dist/collection/components/molecules/mg-message/mg-message.conf.js +0 -1
  75. package/dist/collection/components/molecules/mg-message/mg-message.js +4 -5
  76. package/dist/collection/components/molecules/mg-modal/mg-modal.conf.js +0 -1
  77. package/dist/collection/components/molecules/mg-modal/mg-modal.js +7 -8
  78. package/dist/collection/components/molecules/mg-pagination/mg-pagination.conf.js +0 -1
  79. package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +7 -7
  80. package/dist/collection/components/molecules/mg-panel/mg-panel.conf.js +0 -1
  81. package/dist/collection/components/molecules/mg-panel/mg-panel.js +34 -11
  82. package/dist/collection/components/molecules/mg-popover/mg-popover-content/mg-popover-content.js +2 -3
  83. package/dist/collection/components/molecules/mg-popover/mg-popover.js +7 -8
  84. package/dist/collection/components/molecules/mg-progress/mg-progress.conf.js +0 -1
  85. package/dist/collection/components/molecules/mg-progress/mg-progress.js +6 -7
  86. package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.conf.js +0 -1
  87. package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.js +5 -4
  88. package/dist/collection/components/molecules/mg-table/mg-table.conf.js +0 -1
  89. package/dist/collection/components/molecules/mg-table/mg-table.js +6 -6
  90. package/dist/collection/components/molecules/mg-tabs/mg-tabs.conf.js +0 -1
  91. package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +6 -6
  92. package/dist/collection/index.js +0 -1
  93. package/dist/collection/locales/en/messages.json +23 -14
  94. package/dist/collection/locales/fr/messages.json +24 -15
  95. package/dist/collection/locales/index.conf.js +0 -1
  96. package/dist/collection/locales/index.js +0 -1
  97. package/dist/collection/types/index.js +0 -1
  98. package/dist/collection/utils/behaviors.utils.js +0 -1
  99. package/dist/collection/utils/events.utils.js +0 -1
  100. package/dist/collection/utils/playwright.fixture.js +0 -1
  101. package/dist/collection/utils/unit.test.utils.js +0 -1
  102. package/dist/components/events.utils.js +0 -3
  103. package/dist/components/index.js +1 -4
  104. package/dist/components/index2.js +3 -6
  105. package/dist/components/index3.js +55 -34
  106. package/dist/components/mg-action-more.js +2 -5
  107. package/dist/components/mg-alert.js +5 -8
  108. package/dist/components/mg-badge.js +0 -3
  109. package/dist/components/mg-badge2.js +1 -4
  110. package/dist/components/mg-button.js +0 -3
  111. package/dist/components/mg-button2.js +1 -4
  112. package/dist/components/mg-card.js +0 -3
  113. package/dist/components/mg-card2.js +55 -6
  114. package/dist/components/mg-character-left.js +0 -3
  115. package/dist/components/mg-character-left2.js +1 -4
  116. package/dist/components/mg-details.js +1 -100
  117. package/dist/components/mg-details2.js +99 -0
  118. package/dist/components/mg-divider.js +0 -3
  119. package/dist/components/mg-divider2.js +1 -4
  120. package/dist/components/mg-form.js +2 -5
  121. package/dist/components/mg-icon.js +0 -3
  122. package/dist/components/mg-icon2.js +1 -4
  123. package/dist/components/mg-illustrated-message.js +2 -5
  124. package/dist/components/mg-input-checkbox-paginated.js +0 -3
  125. package/dist/components/mg-input-checkbox-paginated2.js +43 -127
  126. package/dist/components/mg-input-checkbox.js +136 -65
  127. package/dist/components/mg-input-combobox.js +135 -66
  128. package/dist/components/mg-input-date.js +9 -6
  129. package/dist/components/mg-input-numeric.js +14 -6
  130. package/dist/components/mg-input-password.js +10 -7
  131. package/dist/components/mg-input-radio.js +54 -16
  132. package/dist/components/mg-input-rich-text-editor.js +1265 -16018
  133. package/dist/components/mg-input-select.js +0 -3
  134. package/dist/components/mg-input-select2.js +62 -23
  135. package/dist/components/mg-input-text.js +0 -3
  136. package/dist/components/mg-input-text2.js +10 -7
  137. package/dist/components/mg-input-textarea.js +10 -7
  138. package/dist/components/mg-input-title.js +0 -3
  139. package/dist/components/mg-input-title2.js +1 -4
  140. package/dist/components/mg-input-toggle.js +97 -15
  141. package/dist/components/mg-input.js +0 -3
  142. package/dist/components/mg-input.utils.js +24 -0
  143. package/dist/components/mg-input2.js +115 -28
  144. package/dist/components/mg-item-more.js +0 -3
  145. package/dist/components/mg-item-more2.js +2 -5
  146. package/dist/components/mg-loader.js +0 -3
  147. package/dist/components/mg-loader2.js +2 -5
  148. package/dist/components/mg-menu-item.js +0 -3
  149. package/dist/components/mg-menu-item2.js +1 -4
  150. package/dist/components/mg-menu.js +0 -3
  151. package/dist/components/mg-message.js +0 -3
  152. package/dist/components/mg-message2.js +3 -6
  153. package/dist/components/mg-modal.js +3 -6
  154. package/dist/components/mg-pagination.js +233 -4
  155. package/dist/components/mg-panel.js +20 -12
  156. package/dist/components/mg-popover-content.js +0 -3
  157. package/dist/components/mg-popover-content2.js +2 -5
  158. package/dist/components/mg-popover.js +0 -3
  159. package/dist/components/mg-popover2.js +2 -5
  160. package/dist/components/mg-progress.js +2 -5
  161. package/dist/components/mg-skip-links.js +5 -7
  162. package/dist/components/mg-table.js +4 -7
  163. package/dist/components/mg-tabs.js +1 -314
  164. package/dist/components/mg-tabs2.js +313 -0
  165. package/dist/components/mg-tag.js +1 -4
  166. package/dist/components/mg-tooltip-content.js +0 -3
  167. package/dist/components/mg-tooltip-content2.js +1 -4
  168. package/dist/components/mg-tooltip.js +0 -3
  169. package/dist/components/mg-tooltip2.js +2 -5
  170. package/dist/components/popper.js +0 -3
  171. package/dist/esm/{index-Bv7NHR-W.js → index-CKB-AnCZ.js} +55 -34
  172. package/dist/esm/{index-CAuxALt5.js → index-DhAOnZJn.js} +211 -122
  173. package/dist/esm/{index-Dr7GYvIz.js → index-WtiuOkLj.js} +2 -5
  174. package/dist/esm/index.js +0 -3
  175. package/dist/esm/loader.js +3 -7
  176. package/dist/esm/mg-action-more_37.entry.js +548 -259
  177. package/dist/esm/mg-alert.entry.js +7 -10
  178. package/dist/esm/mg-components.js +4 -8
  179. package/dist/esm/mg-input-combobox.entry.js +129 -68
  180. package/dist/esm/mg-input-rich-text-editor.entry.js +1265 -16024
  181. package/dist/esm/{mg-input.conf-CNgv8hc5.js → mg-input.conf-BAUTlb6r.js} +7 -4
  182. package/dist/esm/mg-input.utils-BYI03zSi.js +46 -0
  183. package/dist/esm/mg-loader.entry.js +4 -7
  184. package/dist/esm/mg-progress.entry.js +3 -6
  185. package/dist/mg-components/index.esm.js +0 -2
  186. package/dist/mg-components/locales/en/messages.json +23 -14
  187. package/dist/mg-components/locales/fr/messages.json +24 -15
  188. package/dist/mg-components/mg-components.css +1 -1
  189. package/dist/mg-components/mg-components.esm.js +1 -2
  190. package/dist/mg-components/p-31856cff.entry.js +1 -0
  191. package/dist/mg-components/p-420daa1e.entry.js +1 -0
  192. package/dist/mg-components/p-47e19783.entry.js +1 -0
  193. package/dist/mg-components/p-67af6274.entry.js +1 -0
  194. package/dist/mg-components/p-698dfc6c.entry.js +1 -0
  195. package/dist/mg-components/p-BAUTlb6r.js +1 -0
  196. package/dist/mg-components/p-CKB-AnCZ.js +1 -0
  197. package/dist/mg-components/p-DhAOnZJn.js +2 -0
  198. package/dist/mg-components/p-PuX-pdL4.js +1 -0
  199. package/dist/mg-components/p-WtiuOkLj.js +1 -0
  200. package/dist/mg-components/p-a0fa44cf.entry.js +1 -0
  201. package/dist/types/assets/icons/index.d.ts +6 -0
  202. package/dist/types/components/atoms/mg-card/mg-card.conf.d.ts +9 -0
  203. package/dist/types/components/atoms/mg-card/mg-card.d.ts +20 -0
  204. package/dist/types/components/molecules/inputs/mg-input/mg-input.conf.d.ts +13 -0
  205. package/dist/types/components/molecules/inputs/mg-input/mg-input.d.ts +16 -5
  206. package/dist/types/components/molecules/inputs/mg-input/mg-input.utils.d.ts +8 -0
  207. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.d.ts +17 -40
  208. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.d.ts +1 -2
  209. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.d.ts +36 -9
  210. package/dist/types/components/molecules/inputs/mg-input-combobox/mg-input-combobox.d.ts +17 -3
  211. package/dist/types/components/molecules/inputs/mg-input-radio/mg-input-radio.d.ts +18 -0
  212. package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.d.ts +23 -4
  213. package/dist/types/components/molecules/inputs/mg-input-toggle/mg-input-toggle.d.ts +40 -4
  214. package/dist/types/components/molecules/mg-panel/mg-panel.d.ts +4 -0
  215. package/dist/types/components.d.ts +471 -39
  216. package/dist/types/stencil-public-runtime.d.ts +34 -6
  217. package/ide/intellij/web-types.json +393 -39
  218. package/ide/vscode/css-custom-data.json +3 -3
  219. package/ide/vscode/html-custom-data.json +223 -35
  220. package/package.json +19 -19
  221. package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -8
  222. package/dist/cjs/app-globals-V2Kpy_OQ.js.map +0 -1
  223. package/dist/cjs/events.utils-D5SAtkpQ.js +0 -28
  224. package/dist/cjs/events.utils-D5SAtkpQ.js.map +0 -1
  225. package/dist/cjs/index-CATFkm3O.js.map +0 -1
  226. package/dist/cjs/index-CwjAofQ1.js.map +0 -1
  227. package/dist/cjs/index-DUJwxnoi.js.map +0 -1
  228. package/dist/cjs/index.cjs.js.map +0 -1
  229. package/dist/cjs/loader.cjs.js.map +0 -1
  230. package/dist/cjs/mg-action-more_37.cjs.entry.js.map +0 -1
  231. package/dist/cjs/mg-alert.cjs.entry.js.map +0 -1
  232. package/dist/cjs/mg-alert.entry.cjs.js.map +0 -1
  233. package/dist/cjs/mg-components.cjs.js.map +0 -1
  234. package/dist/cjs/mg-input-combobox.cjs.entry.js.map +0 -1
  235. package/dist/cjs/mg-input-combobox.entry.cjs.js.map +0 -1
  236. package/dist/cjs/mg-input-rich-text-editor.cjs.entry.js.map +0 -1
  237. package/dist/cjs/mg-input-rich-text-editor.entry.cjs.js.map +0 -1
  238. package/dist/cjs/mg-input.conf-WTsvDfpC.js.map +0 -1
  239. package/dist/cjs/mg-loader.cjs.entry.js.map +0 -1
  240. package/dist/cjs/mg-loader.entry.cjs.js.map +0 -1
  241. package/dist/cjs/mg-progress.cjs.entry.js.map +0 -1
  242. package/dist/cjs/mg-progress.entry.cjs.js.map +0 -1
  243. package/dist/collection/assets/icons/index.js.map +0 -1
  244. package/dist/collection/components/atoms/internals/mg-character-left/mg-character-left.js.map +0 -1
  245. package/dist/collection/components/atoms/internals/mg-input-title/mg-input-title.js.map +0 -1
  246. package/dist/collection/components/atoms/mg-badge/mg-badge.conf.js.map +0 -1
  247. package/dist/collection/components/atoms/mg-badge/mg-badge.js.map +0 -1
  248. package/dist/collection/components/atoms/mg-button/mg-button.conf.js.map +0 -1
  249. package/dist/collection/components/atoms/mg-button/mg-button.js.map +0 -1
  250. package/dist/collection/components/atoms/mg-card/mg-card.js.map +0 -1
  251. package/dist/collection/components/atoms/mg-divider/mg-divider.js.map +0 -1
  252. package/dist/collection/components/atoms/mg-icon/mg-icon.conf.js.map +0 -1
  253. package/dist/collection/components/atoms/mg-icon/mg-icon.js.map +0 -1
  254. package/dist/collection/components/atoms/mg-tag/mg-tag.conf.js.map +0 -1
  255. package/dist/collection/components/atoms/mg-tag/mg-tag.js.map +0 -1
  256. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip-content/mg-tooltip-content.js.map +0 -1
  257. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.conf.js.map +0 -1
  258. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js.map +0 -1
  259. package/dist/collection/components/molecules/inputs/mg-input/mg-input.conf.js.map +0 -1
  260. package/dist/collection/components/molecules/inputs/mg-input/mg-input.js.map +0 -1
  261. package/dist/collection/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxList.js.map +0 -1
  262. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.js.map +0 -1
  263. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.js.map +0 -1
  264. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js.map +0 -1
  265. package/dist/collection/components/molecules/inputs/mg-input-combobox/mg-input-combobox.conf.js.map +0 -1
  266. package/dist/collection/components/molecules/inputs/mg-input-combobox/mg-input-combobox.js.map +0 -1
  267. package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.conf.js.map +0 -1
  268. package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js.map +0 -1
  269. package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.conf.js.map +0 -1
  270. package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js.map +0 -1
  271. package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js.map +0 -1
  272. package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.conf.js.map +0 -1
  273. package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js.map +0 -1
  274. package/dist/collection/components/molecules/inputs/mg-input-rich-text-editor/editor/index.js.map +0 -1
  275. package/dist/collection/components/molecules/inputs/mg-input-rich-text-editor/mg-input-rich-text-editor.js.map +0 -1
  276. package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.conf.js.map +0 -1
  277. package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js.map +0 -1
  278. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.conf.js.map +0 -1
  279. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js.map +0 -1
  280. package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js.map +0 -1
  281. package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.conf.js.map +0 -1
  282. package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js.map +0 -1
  283. package/dist/collection/components/molecules/internals/mg-item-more/mg-item-more.conf.js.map +0 -1
  284. package/dist/collection/components/molecules/internals/mg-item-more/mg-item-more.js.map +0 -1
  285. package/dist/collection/components/molecules/menus/mg-menu/mg-menu.conf.js.map +0 -1
  286. package/dist/collection/components/molecules/menus/mg-menu/mg-menu.js.map +0 -1
  287. package/dist/collection/components/molecules/menus/mg-menu-item/mg-menu-item.conf.js.map +0 -1
  288. package/dist/collection/components/molecules/menus/mg-menu-item/mg-menu-item.js.map +0 -1
  289. package/dist/collection/components/molecules/mg-action-more/mg-action-more.conf.js.map +0 -1
  290. package/dist/collection/components/molecules/mg-action-more/mg-action-more.js.map +0 -1
  291. package/dist/collection/components/molecules/mg-alert/mg-alert.conf.js.map +0 -1
  292. package/dist/collection/components/molecules/mg-alert/mg-alert.js.map +0 -1
  293. package/dist/collection/components/molecules/mg-details/mg-details.js.map +0 -1
  294. package/dist/collection/components/molecules/mg-form/mg-form.conf.js.map +0 -1
  295. package/dist/collection/components/molecules/mg-form/mg-form.js.map +0 -1
  296. package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.conf.js.map +0 -1
  297. package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js.map +0 -1
  298. package/dist/collection/components/molecules/mg-loader/mg-loader.js.map +0 -1
  299. package/dist/collection/components/molecules/mg-message/mg-message.conf.js.map +0 -1
  300. package/dist/collection/components/molecules/mg-message/mg-message.js.map +0 -1
  301. package/dist/collection/components/molecules/mg-modal/mg-modal.conf.js.map +0 -1
  302. package/dist/collection/components/molecules/mg-modal/mg-modal.js.map +0 -1
  303. package/dist/collection/components/molecules/mg-pagination/mg-pagination.conf.js.map +0 -1
  304. package/dist/collection/components/molecules/mg-pagination/mg-pagination.js.map +0 -1
  305. package/dist/collection/components/molecules/mg-panel/mg-panel.conf.js.map +0 -1
  306. package/dist/collection/components/molecules/mg-panel/mg-panel.js.map +0 -1
  307. package/dist/collection/components/molecules/mg-popover/mg-popover-content/mg-popover-content.js.map +0 -1
  308. package/dist/collection/components/molecules/mg-popover/mg-popover.js.map +0 -1
  309. package/dist/collection/components/molecules/mg-progress/mg-progress.conf.js.map +0 -1
  310. package/dist/collection/components/molecules/mg-progress/mg-progress.js.map +0 -1
  311. package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.conf.js.map +0 -1
  312. package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.js.map +0 -1
  313. package/dist/collection/components/molecules/mg-table/mg-table.conf.js.map +0 -1
  314. package/dist/collection/components/molecules/mg-table/mg-table.js.map +0 -1
  315. package/dist/collection/components/molecules/mg-tabs/mg-tabs.conf.js.map +0 -1
  316. package/dist/collection/components/molecules/mg-tabs/mg-tabs.js.map +0 -1
  317. package/dist/collection/index.js.map +0 -1
  318. package/dist/collection/locales/index.conf.js.map +0 -1
  319. package/dist/collection/locales/index.js.map +0 -1
  320. package/dist/collection/types/index.js.map +0 -1
  321. package/dist/collection/utils/behaviors.utils.js.map +0 -1
  322. package/dist/collection/utils/events.utils.js.map +0 -1
  323. package/dist/collection/utils/playwright.fixture.js.map +0 -1
  324. package/dist/collection/utils/unit.test.utils.js.map +0 -1
  325. package/dist/components/events.utils.js.map +0 -1
  326. package/dist/components/index.js.map +0 -1
  327. package/dist/components/index2.js.map +0 -1
  328. package/dist/components/index3.js.map +0 -1
  329. package/dist/components/mg-action-more.js.map +0 -1
  330. package/dist/components/mg-alert.js.map +0 -1
  331. package/dist/components/mg-badge.js.map +0 -1
  332. package/dist/components/mg-badge2.js.map +0 -1
  333. package/dist/components/mg-button.js.map +0 -1
  334. package/dist/components/mg-button2.js.map +0 -1
  335. package/dist/components/mg-card.js.map +0 -1
  336. package/dist/components/mg-card2.js.map +0 -1
  337. package/dist/components/mg-character-left.js.map +0 -1
  338. package/dist/components/mg-character-left2.js.map +0 -1
  339. package/dist/components/mg-details.js.map +0 -1
  340. package/dist/components/mg-divider.js.map +0 -1
  341. package/dist/components/mg-divider2.js.map +0 -1
  342. package/dist/components/mg-form.js.map +0 -1
  343. package/dist/components/mg-icon.js.map +0 -1
  344. package/dist/components/mg-icon2.js.map +0 -1
  345. package/dist/components/mg-illustrated-message.js.map +0 -1
  346. package/dist/components/mg-input-checkbox-paginated.js.map +0 -1
  347. package/dist/components/mg-input-checkbox-paginated2.js.map +0 -1
  348. package/dist/components/mg-input-checkbox.js.map +0 -1
  349. package/dist/components/mg-input-combobox.js.map +0 -1
  350. package/dist/components/mg-input-date.js.map +0 -1
  351. package/dist/components/mg-input-numeric.js.map +0 -1
  352. package/dist/components/mg-input-password.js.map +0 -1
  353. package/dist/components/mg-input-radio.js.map +0 -1
  354. package/dist/components/mg-input-rich-text-editor.js.map +0 -1
  355. package/dist/components/mg-input-select.js.map +0 -1
  356. package/dist/components/mg-input-select2.js.map +0 -1
  357. package/dist/components/mg-input-text.js.map +0 -1
  358. package/dist/components/mg-input-text2.js.map +0 -1
  359. package/dist/components/mg-input-textarea.js.map +0 -1
  360. package/dist/components/mg-input-title.js.map +0 -1
  361. package/dist/components/mg-input-title2.js.map +0 -1
  362. package/dist/components/mg-input-toggle.js.map +0 -1
  363. package/dist/components/mg-input.js.map +0 -1
  364. package/dist/components/mg-input2.js.map +0 -1
  365. package/dist/components/mg-item-more.js.map +0 -1
  366. package/dist/components/mg-item-more2.js.map +0 -1
  367. package/dist/components/mg-loader.js.map +0 -1
  368. package/dist/components/mg-loader2.js.map +0 -1
  369. package/dist/components/mg-menu-item.js.map +0 -1
  370. package/dist/components/mg-menu-item2.js.map +0 -1
  371. package/dist/components/mg-menu.js.map +0 -1
  372. package/dist/components/mg-message.js.map +0 -1
  373. package/dist/components/mg-message2.js.map +0 -1
  374. package/dist/components/mg-modal.js.map +0 -1
  375. package/dist/components/mg-pagination.js.map +0 -1
  376. package/dist/components/mg-pagination2.js +0 -232
  377. package/dist/components/mg-pagination2.js.map +0 -1
  378. package/dist/components/mg-panel.js.map +0 -1
  379. package/dist/components/mg-popover-content.js.map +0 -1
  380. package/dist/components/mg-popover-content2.js.map +0 -1
  381. package/dist/components/mg-popover.js.map +0 -1
  382. package/dist/components/mg-popover2.js.map +0 -1
  383. package/dist/components/mg-progress.js.map +0 -1
  384. package/dist/components/mg-skip-links.js.map +0 -1
  385. package/dist/components/mg-table.js.map +0 -1
  386. package/dist/components/mg-tabs.js.map +0 -1
  387. package/dist/components/mg-tag.js.map +0 -1
  388. package/dist/components/mg-tooltip-content.js.map +0 -1
  389. package/dist/components/mg-tooltip-content2.js.map +0 -1
  390. package/dist/components/mg-tooltip.js.map +0 -1
  391. package/dist/components/mg-tooltip2.js.map +0 -1
  392. package/dist/components/popper.js.map +0 -1
  393. package/dist/esm/app-globals-DQuL1Twl.js +0 -6
  394. package/dist/esm/app-globals-DQuL1Twl.js.map +0 -1
  395. package/dist/esm/events.utils-yMGqY8YG.js +0 -26
  396. package/dist/esm/events.utils-yMGqY8YG.js.map +0 -1
  397. package/dist/esm/index-Bv7NHR-W.js.map +0 -1
  398. package/dist/esm/index-CAuxALt5.js.map +0 -1
  399. package/dist/esm/index-Dr7GYvIz.js.map +0 -1
  400. package/dist/esm/index.js.map +0 -1
  401. package/dist/esm/loader.js.map +0 -1
  402. package/dist/esm/mg-action-more_37.entry.js.map +0 -1
  403. package/dist/esm/mg-alert.entry.js.map +0 -1
  404. package/dist/esm/mg-components.js.map +0 -1
  405. package/dist/esm/mg-input-combobox.entry.js.map +0 -1
  406. package/dist/esm/mg-input-rich-text-editor.entry.js.map +0 -1
  407. package/dist/esm/mg-input.conf-CNgv8hc5.js.map +0 -1
  408. package/dist/esm/mg-loader.entry.js.map +0 -1
  409. package/dist/esm/mg-progress.entry.js.map +0 -1
  410. package/dist/mg-components/index.esm.js.map +0 -1
  411. package/dist/mg-components/loader.esm.js.map +0 -1
  412. package/dist/mg-components/mg-alert.entry.esm.js.map +0 -1
  413. package/dist/mg-components/mg-components.esm.js.map +0 -1
  414. package/dist/mg-components/mg-input-combobox.entry.esm.js.map +0 -1
  415. package/dist/mg-components/mg-input-rich-text-editor.entry.esm.js.map +0 -1
  416. package/dist/mg-components/mg-loader.entry.esm.js.map +0 -1
  417. package/dist/mg-components/mg-progress.entry.esm.js.map +0 -1
  418. package/dist/mg-components/p-19cbc6e6.entry.js +0 -11
  419. package/dist/mg-components/p-19cbc6e6.entry.js.map +0 -1
  420. package/dist/mg-components/p-269e2a80.entry.js +0 -2
  421. package/dist/mg-components/p-269e2a80.entry.js.map +0 -1
  422. package/dist/mg-components/p-2dea7d37.entry.js +0 -2
  423. package/dist/mg-components/p-2dea7d37.entry.js.map +0 -1
  424. package/dist/mg-components/p-415f14fb.entry.js +0 -2
  425. package/dist/mg-components/p-415f14fb.entry.js.map +0 -1
  426. package/dist/mg-components/p-Bv7NHR-W.js +0 -2
  427. package/dist/mg-components/p-Bv7NHR-W.js.map +0 -1
  428. package/dist/mg-components/p-CAuxALt5.js +0 -3
  429. package/dist/mg-components/p-CAuxALt5.js.map +0 -1
  430. package/dist/mg-components/p-CNgv8hc5.js +0 -2
  431. package/dist/mg-components/p-CNgv8hc5.js.map +0 -1
  432. package/dist/mg-components/p-DQuL1Twl.js +0 -2
  433. package/dist/mg-components/p-DQuL1Twl.js.map +0 -1
  434. package/dist/mg-components/p-Dr7GYvIz.js +0 -2
  435. package/dist/mg-components/p-Dr7GYvIz.js.map +0 -1
  436. package/dist/mg-components/p-fe974d2b.entry.js +0 -2
  437. package/dist/mg-components/p-fe974d2b.entry.js.map +0 -1
  438. package/dist/mg-components/p-fea46548.entry.js +0 -2
  439. package/dist/mg-components/p-fea46548.entry.js.map +0 -1
  440. package/dist/mg-components/p-yMGqY8YG.js +0 -2
  441. package/dist/mg-components/p-yMGqY8YG.js.map +0 -1
@@ -1,6 +1,6 @@
1
- import { r as registerInstance, c as createEvent, f as forceUpdate, h, g as getElement } from './index-CAuxALt5.js';
2
- import { C as ClassList, t as toString } from './index-Dr7GYvIz.js';
3
- import { i as initLocales } from './index-Bv7NHR-W.js';
1
+ import { r as registerInstance, c as createEvent, f as forceUpdate, h, a as getElement } from './index-DhAOnZJn.js';
2
+ import { C as ClassList, t as toString } from './index-WtiuOkLj.js';
3
+ import { i as initLocales } from './index-CKB-AnCZ.js';
4
4
 
5
5
  /**
6
6
  * List available variants
@@ -16,9 +16,9 @@ const mgAlertCss = ".mg-c-alert__close-button{position:absolute;top:0;right:0}.m
16
16
  const MgAlert = class {
17
17
  constructor(hostRef) {
18
18
  registerInstance(this, hostRef);
19
- this.componentShow = createEvent(this, "component-show");
20
- this.componentHide = createEvent(this, "component-hide");
21
- this.componentClose = createEvent(this, "component-close");
19
+ this.componentShow = createEvent(this, "component-show", 3);
20
+ this.componentHide = createEvent(this, "component-hide", 3);
21
+ this.componentClose = createEvent(this, "component-close", 3);
22
22
  /************
23
23
  * Internal *
24
24
  ************/
@@ -153,7 +153,7 @@ const MgAlert = class {
153
153
  * @returns HTML Element
154
154
  */
155
155
  render() {
156
- return (h("mg-message", { key: '12216af414367fc3eea31cffb2d7e38c724038a3', class: this.classCollection.join(), role: ['info', 'success'].includes(this.variant) ? 'status' : 'alert', variant: this.variant, variantStyle: this.variantStyle }, h("slot", { key: 'bdab00611363a879e8d2bd23442e62ab5e7238e3' }), this.hasActions ? (h("span", { slot: "actions" }, h("slot", { name: "actions" }))) : (h("span", { class: "mg-c-alert__close-button" }, h("mg-button", { "is-icon": true, variant: "flat", label: this.messages.alert.closeButton, onClick: this.handleClose }, h("mg-icon", { icon: "cross" }))))));
156
+ return (h("mg-message", { key: '626afcfe4c86dacff9860d2515827ae5aa6b7234', class: this.classCollection.join(), role: ['info', 'success'].includes(this.variant) ? 'status' : 'alert', variant: this.variant, variantStyle: this.variantStyle }, h("slot", { key: 'bc7d72c21dcf36c9012e144253ce2b3c6ebc14ed' }), this.hasActions ? (h("span", { slot: "actions" }, h("slot", { name: "actions" }))) : (h("span", { class: "mg-c-alert__close-button" }, h("mg-button", { "is-icon": true, variant: "flat", label: this.messages.alert.closeButton, onClick: this.handleClose }, h("mg-icon", { icon: "cross" }))))));
157
157
  }
158
158
  get element() { return getElement(this); }
159
159
  static get watchers() { return {
@@ -166,6 +166,3 @@ const MgAlert = class {
166
166
  MgAlert.style = mgAlertCss;
167
167
 
168
168
  export { MgAlert as mg_alert };
169
- //# sourceMappingURL=mg-alert.entry.js.map
170
-
171
- //# sourceMappingURL=mg-alert.entry.js.map
@@ -1,9 +1,8 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-CAuxALt5.js';
2
- export { s as setNonce } from './index-CAuxALt5.js';
3
- import { g as globalScripts } from './app-globals-DQuL1Twl.js';
1
+ import { p as promiseResolve, g as globalScripts, b as bootstrapLazy } from './index-DhAOnZJn.js';
2
+ export { s as setNonce } from './index-DhAOnZJn.js';
4
3
 
5
4
  /*
6
- Stencil Client Patch Browser v4.28.2 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Patch Browser v4.36.2 | MIT Licensed | https://stenciljs.com
7
6
  */
8
7
 
9
8
  var patchBrowser = () => {
@@ -17,8 +16,5 @@ var patchBrowser = () => {
17
16
 
18
17
  patchBrowser().then(async (options) => {
19
18
  await globalScripts();
20
- return bootstrapLazy(JSON.parse("[[\"mg-alert\",[[1,\"mg-alert\",{\"delay\":[2],\"variant\":[1],\"variantStyle\":[1,\"variant-style\"],\"classCollection\":[32],\"hasActions\":[32]},null,{\"delay\":[\"watchDelay\"],\"variant\":[\"watchVariant\"],\"variantStyle\":[\"watchVariantStyle\"],\"hidden\":[\"watchHidden\"]}]]],[\"mg-progress\",[[1,\"mg-progress\",{\"label\":[1],\"ariaRole\":[1,\"aria-role\"],\"value\":[2],\"min\":[2],\"max\":[2]},null,{\"label\":[\"watchLabel\"],\"ariaRole\":[\"watchAriaRole\"],\"value\":[\"watchValue\"],\"min\":[\"watchMin\"],\"max\":[\"watchMax\"]}]]],[\"mg-action-more_37\",[[1,\"mg-input-checkbox\",{\"value\":[1040],\"type\":[1025],\"identifier\":[1],\"name\":[1],\"label\":[1],\"labelOnTop\":[4,\"label-on-top\"],\"labelHide\":[4,\"label-hide\"],\"inputVerticalList\":[4,\"input-vertical-list\"],\"required\":[4],\"readonly\":[4],\"displaySelectedValues\":[4,\"display-selected-values\"],\"disabled\":[4],\"tooltip\":[1],\"tooltipPosition\":[1,\"tooltip-position\"],\"helpText\":[1,\"help-text\"],\"valid\":[1028],\"invalid\":[1028],\"editButtonMessage\":[1,\"edit-button-message\"],\"showButtonMessage\":[1,\"show-button-message\"],\"selectButtonMessage\":[1,\"select-button-message\"],\"classCollection\":[32],\"errorMessage\":[32],\"checkboxItems\":[32],\"displaySearchInput\":[32],\"searchValue\":[32],\"searchResults\":[32],\"selectValuesButtonKey\":[32],\"setFocus\":[64],\"displayError\":[64],\"setError\":[64],\"reset\":[64]},null,{\"value\":[\"validateValue\"],\"type\":[\"validateType\"],\"inputVerticalList\":[\"watchInputVerticalList\"],\"readonly\":[\"watchReadonly\",\"handleValidityChange\"],\"displaySelectedValues\":[\"watchDisplaySelectedValues\"],\"required\":[\"handleValidityChange\"],\"disabled\":[\"handleValidityChange\",\"validateDisabled\"],\"checkboxItems\":[\"validateCheckboxItems\"],\"displaySearchInput\":[\"watchDisplaySearchInput\"],\"searchValue\":[\"validateSearchValue\"]}],[1,\"mg-action-more\",{\"items\":[16],\"icon\":[1040],\"button\":[16],\"displayChevron\":[4,\"display-chevron\"],\"expanded\":[32]},null,{\"items\":[\"validateItems\"],\"icon\":[\"validateIcon\"],\"button\":[\"validateButton\"],\"displayChevron\":[\"validateDisplayChevron\"]}],[1,\"mg-panel\",{\"identifier\":[1],\"panelTitle\":[1025,\"panel-title\"],\"titlePattern\":[1,\"title-pattern\"],\"titlePatternErrorMessage\":[1,\"title-pattern-error-message\"],\"titleEditable\":[1028,\"title-editable\"],\"titlePosition\":[1,\"title-position\"],\"expanded\":[1028],\"expandToggleDisplay\":[1,\"expand-toggle-display\"],\"expandToggleDisabled\":[4,\"expand-toggle-disabled\"],\"classCollection\":[32],\"isEditing\":[32],\"updatedPanelTitle\":[32]},null,{\"identifier\":[\"watchIdentifier\"],\"panelTitle\":[\"validatePanelTitle\"],\"titlePattern\":[\"validateTitlePattern\"],\"titlePatternErrorMessage\":[\"validateTitlePattern\"],\"titlePosition\":[\"validateTitlePosition\"],\"expanded\":[\"handleExpanded\"],\"expandToggleDisplay\":[\"validateExpandToggleDisplay\"]}],[1,\"mg-input-password\",{\"value\":[1537],\"identifier\":[1],\"name\":[1],\"label\":[1],\"labelOnTop\":[4,\"label-on-top\"],\"labelHide\":[4,\"label-hide\"],\"placeholder\":[1],\"maxlength\":[2],\"required\":[4],\"readonly\":[4],\"disabled\":[4],\"mgWidth\":[8,\"mg-width\"],\"tooltip\":[1],\"tooltipPosition\":[1,\"tooltip-position\"],\"helpText\":[1,\"help-text\"],\"valid\":[1028],\"invalid\":[1028],\"classCollection\":[32],\"errorMessage\":[32],\"displayPassword\":[32],\"setFocus\":[64],\"displayError\":[64],\"setError\":[64],\"reset\":[64]},null,{\"value\":[\"handleValue\"],\"readonly\":[\"watchReadonly\",\"handleValidityChange\"],\"required\":[\"handleValidityChange\"],\"disabled\":[\"handleValidityChange\",\"watchDisabled\"],\"mgWidth\":[\"watchMgWidth\"]}],[1,\"mg-input-textarea\",{\"value\":[1537],\"identifier\":[1],\"name\":[1],\"label\":[1],\"labelOnTop\":[4,\"label-on-top\"],\"labelHide\":[4,\"label-hide\"],\"placeholder\":[1],\"maxlength\":[2],\"required\":[4],\"readonly\":[4],\"disabled\":[4],\"mgWidth\":[8,\"mg-width\"],\"pattern\":[1],\"patternErrorMessage\":[1,\"pattern-error-message\"],\"rows\":[2],\"tooltip\":[1],\"tooltipPosition\":[1,\"tooltip-position\"],\"characterLeftHide\":[4,\"character-left-hide\"],\"helpText\":[1,\"help-text\"],\"resizable\":[1],\"valid\":[1028],\"invalid\":[1028],\"classCollection\":[32],\"errorMessage\":[32],\"setFocus\":[64],\"displayError\":[64],\"setError\":[64],\"reset\":[64]},null,{\"value\":[\"handleValue\"],\"readonly\":[\"watchReadonly\",\"handleValidityChange\"],\"required\":[\"handleValidityChange\"],\"disabled\":[\"handleValidityChange\",\"validateDisabled\"],\"mgWidth\":[\"watchMgWidth\"],\"pattern\":[\"validatePattern\"],\"patternErrorMessage\":[\"validatePattern\"],\"characterLeftHide\":[\"validatecharacterLeftHide\"]}],[1,\"mg-input-date\",{\"value\":[1537],\"identifier\":[1],\"name\":[1],\"label\":[1],\"labelOnTop\":[4,\"label-on-top\"],\"labelHide\":[4,\"label-hide\"],\"required\":[4],\"readonly\":[4],\"min\":[1],\"max\":[1],\"disabled\":[4],\"tooltip\":[1],\"tooltipPosition\":[1,\"tooltip-position\"],\"helpText\":[1,\"help-text\"],\"valid\":[1028],\"invalid\":[1028],\"classCollection\":[32],\"errorMessage\":[32],\"setFocus\":[64],\"displayError\":[64],\"setError\":[64],\"reset\":[64]},null,{\"value\":[\"validateValue\"],\"readonly\":[\"watchReadonly\",\"handleValidityChange\"],\"min\":[\"validateMinMax\",\"handleValidityChange\"],\"max\":[\"validateMinMax\",\"handleValidityChange\"],\"required\":[\"handleValidityChange\"],\"disabled\":[\"handleValidityChange\",\"watchDisabled\"]}],[1,\"mg-input-numeric\",{\"value\":[1537],\"identifier\":[1],\"name\":[1],\"label\":[1],\"labelOnTop\":[4,\"label-on-top\"],\"labelHide\":[4,\"label-hide\"],\"placeholder\":[1],\"required\":[4],\"readonly\":[4],\"max\":[2],\"min\":[2],\"disabled\":[4],\"mgWidth\":[8,\"mg-width\"],\"tooltip\":[1],\"tooltipPosition\":[1,\"tooltip-position\"],\"helpText\":[1,\"help-text\"],\"type\":[1],\"format\":[1],\"currency\":[1],\"unit\":[1],\"unitDisplay\":[1,\"unit-display\"],\"integerLength\":[2,\"integer-length\"],\"decimalLength\":[2,\"decimal-length\"],\"valid\":[1028],\"invalid\":[1028],\"classCollection\":[32],\"errorMessage\":[32],\"hasFocus\":[32],\"setFocus\":[64],\"displayError\":[64],\"setError\":[64],\"reset\":[64]},null,{\"value\":[\"validateValue\"],\"readonly\":[\"watchReadonly\",\"handleValidityChange\"],\"required\":[\"handleValidityChange\"],\"disabled\":[\"handleValidityChange\",\"watchDisabled\"],\"min\":[\"handleValidityChange\"],\"max\":[\"handleValidityChange\"],\"mgWidth\":[\"watchMgWidth\"],\"type\":[\"validateType\"],\"format\":[\"watchFormat\"],\"integerLength\":[\"validateIntegerLength\"],\"decimalLength\":[\"validateDecimalLength\"]}],[1,\"mg-input-radio\",{\"value\":[1032],\"items\":[16],\"identifier\":[1],\"name\":[1],\"label\":[1],\"labelOnTop\":[4,\"label-on-top\"],\"labelHide\":[4,\"label-hide\"],\"inputVerticalList\":[4,\"input-vertical-list\"],\"required\":[4],\"readonly\":[4],\"disabled\":[4],\"tooltip\":[1],\"tooltipPosition\":[1,\"tooltip-position\"],\"helpText\":[1,\"help-text\"],\"valid\":[1028],\"invalid\":[1028],\"classCollection\":[32],\"errorMessage\":[32],\"options\":[32],\"readonlyValue\":[32],\"setFocus\":[64],\"displayError\":[64],\"setError\":[64],\"reset\":[64]},null,{\"value\":[\"watchValue\"],\"items\":[\"validateItems\"],\"inputVerticalList\":[\"watchInputVerticalList\"],\"readonly\":[\"watchReadonly\",\"handleValidityChange\"],\"required\":[\"handleValidityChange\"],\"disabled\":[\"handleValidityChange\",\"watchDisabled\"]}],[1,\"mg-input-toggle\",{\"value\":[1032],\"items\":[16],\"identifier\":[1],\"name\":[1],\"label\":[1],\"labelOnTop\":[4,\"label-on-top\"],\"labelHide\":[4,\"label-hide\"],\"isOnOff\":[4,\"is-on-off\"],\"isIcon\":[4,\"is-icon\"],\"readonly\":[4],\"disabled\":[4],\"tooltip\":[1],\"tooltipPosition\":[1,\"tooltip-position\"],\"helpText\":[1,\"help-text\"],\"classCollection\":[32],\"options\":[32],\"errorMessage\":[32],\"valid\":[32],\"checked\":[32],\"setFocus\":[64],\"setError\":[64],\"reset\":[64]},null,{\"value\":[\"handleValue\"],\"items\":[\"validateItems\"],\"isOnOff\":[\"watchIsOnOff\"],\"isIcon\":[\"watchIsIcon\"],\"readonly\":[\"watchReadonly\"],\"disabled\":[\"watchDisabled\"],\"checked\":[\"handleChecked\"]}],[1,\"mg-modal\",{\"identifier\":[1],\"dialogRole\":[1,\"dialog-role\"],\"modalTitle\":[1,\"modal-title\"],\"closeButton\":[4,\"close-button\"],\"open\":[1028],\"hasActions\":[32],\"classCollection\":[32]},null,{\"identifier\":[\"watchIdentifier\"],\"dialogRole\":[\"validateDialogRole\"],\"modalTitle\":[\"validateModalTitle\"],\"open\":[\"watchOpen\"]}],[1,\"mg-tabs\",{\"identifier\":[1],\"label\":[1],\"size\":[1],\"items\":[16],\"activeTab\":[1538,\"active-tab\"],\"tabs\":[32],\"classCollection\":[32]},null,{\"identifier\":[\"watchIdentifier\"],\"label\":[\"validateLabel\"],\"size\":[\"validateSize\"],\"items\":[\"validateItems\"],\"activeTab\":[\"validateActiveTab\"]}],[1,\"mg-details\",{\"toggleClosed\":[1,\"toggle-closed\"],\"toggleOpened\":[1,\"toggle-opened\"],\"hideSummary\":[4,\"hide-summary\"],\"expanded\":[1028]},null,{\"toggleClosed\":[\"validateTitles\"],\"toggleOpened\":[\"validateTitles\"],\"expanded\":[\"handleExpanded\"]}],[1,\"mg-table\",{\"size\":[1],\"fullWidth\":[4,\"full-width\"],\"columns\":[16],\"classCollection\":[32]},null,{\"size\":[\"watchSize\"],\"fullWidth\":[\"watchFullWidth\"],\"columns\":[\"watchColumns\"]}],[1,\"mg-form\",{\"identifier\":[1],\"name\":[1],\"readonly\":[4],\"requiredMessage\":[1,\"required-message\"],\"ariaRole\":[1,\"aria-role\"],\"labelOnTop\":[4,\"label-on-top\"],\"disabled\":[4],\"valid\":[1028],\"invalid\":[1028],\"classCollection\":[32],\"requiredMessageText\":[32],\"displayError\":[64],\"reset\":[64]},null,{\"identifier\":[\"watchIdentifier\"],\"requiredMessage\":[\"validateRequiredMessage\",\"handleAttributeChange\"],\"ariaRole\":[\"validateAriaRole\"],\"labelOnTop\":[\"handlelabelOnTop\"],\"readonly\":[\"handleAttributeChange\"],\"disabled\":[\"handleAttributeChange\"]}],[1,\"mg-illustrated-message\",{\"size\":[1],\"direction\":[1],\"classCollection\":[32]},null,{\"size\":[\"watchSize\"],\"direction\":[\"watchDirection\"]}],[1,\"mg-skip-links\",{\"links\":[16]},null,{\"links\":[\"validateLinks\"]}],[1,\"mg-tag\",{\"variant\":[1],\"outline\":[4],\"soft\":[4],\"classCollection\":[32]},null,{\"variant\":[\"validateVariant\"],\"outline\":[\"validateOutline\"],\"soft\":[\"validateSoft\"]}],[2,\"mg-input-checkbox-paginated\",{\"readonly\":[4],\"disabled\":[4],\"name\":[1],\"invalid\":[4],\"currentPage\":[1026,\"current-page\"],\"checkboxes\":[16],\"messages\":[16],\"expanded\":[32]},null,{\"checkboxes\":[\"watchCheckboxes\"]}],[1,\"mg-message\",{\"variant\":[1],\"variantStyle\":[1,\"variant-style\"],\"classCollection\":[32],\"hasActions\":[32]},null,{\"variant\":[\"watchVariant\"],\"variantStyle\":[\"watchVariantStyle\"]}],[1,\"mg-divider\",{\"fullWidth\":[4,\"full-width\"]}],[1,\"mg-pagination\",{\"identifier\":[1],\"label\":[1025],\"hideNavigationLabels\":[4,\"hide-navigation-labels\"],\"hidePageCount\":[4,\"hide-page-count\"],\"totalPages\":[2,\"total-pages\"],\"currentPage\":[1538,\"current-page\"],\"messages\":[16]},null,{\"identifier\":[\"watchIdentifier\"],\"totalPages\":[\"validateTotalPages\"],\"currentPage\":[\"validateCurrentPage\"],\"messages\":[\"watchPaginationMessages\"]}],[1,\"mg-input-text\",{\"value\":[1544],\"identifier\":[1],\"name\":[1],\"label\":[1],\"labelOnTop\":[4,\"label-on-top\"],\"labelHide\":[4,\"label-hide\"],\"type\":[1],\"icon\":[1],\"placeholder\":[1],\"datalistoptions\":[16],\"maxlength\":[2],\"required\":[4],\"readonly\":[4],\"disabled\":[4],\"mgWidth\":[8,\"mg-width\"],\"pattern\":[1],\"patternErrorMessage\":[1,\"pattern-error-message\"],\"tooltip\":[1],\"tooltipPosition\":[1,\"tooltip-position\"],\"characterLeftHide\":[4,\"character-left-hide\"],\"helpText\":[1025,\"help-text\"],\"valid\":[1028],\"invalid\":[1028],\"classCollection\":[32],\"errorMessage\":[32],\"setFocus\":[64],\"displayError\":[64],\"setError\":[64],\"reset\":[64]},null,{\"value\":[\"handleValue\"],\"type\":[\"validateType\"],\"icon\":[\"validateIcon\"],\"datalistoptions\":[\"validateDatalistoptions\"],\"readonly\":[\"watchReadonly\",\"handleValidityChange\"],\"required\":[\"handleValidityChange\"],\"disabled\":[\"handleValidityChange\",\"watchDisabled\"],\"mgWidth\":[\"watchMgWidth\"],\"pattern\":[\"watchPattern\"],\"patternErrorMessage\":[\"watchPattern\"],\"helpText\":[\"watchHelpText\"]}],[1,\"mg-item-more\",{\"icon\":[16],\"slotlabel\":[16],\"size\":[1],\"parentMenu\":[32]},null,{\"icon\":[\"validateIcon\"],\"slotlabel\":[\"validateSlotLabel\"],\"size\":[\"validateSize\"]}],[1,\"mg-menu\",{\"label\":[1],\"direction\":[513],\"itemmore\":[16],\"size\":[1]},[[0,\"item-loaded\",\"updateItemListener\"]],{\"label\":[\"validateLabel\"],\"direction\":[\"validateDirection\"],\"itemmore\":[\"validateItemMore\"],\"size\":[\"validateSize\"]}],[1,\"mg-menu-item\",{\"identifier\":[513],\"href\":[1],\"target\":[1],\"status\":[1537],\"expanded\":[1028],\"size\":[32],\"navigationButtonClassList\":[32],\"direction\":[32],\"isItemMore\":[32],\"hasChildren\":[32],\"displayNotificationBadge\":[32]},null,{\"identifier\":[\"watchIdentifier\"],\"target\":[\"watchTarget\"],\"status\":[\"watchStatus\"],\"expanded\":[\"watchExpanded\"],\"size\":[\"watchSize\"],\"direction\":[\"validateDirection\"],\"hasChildren\":[\"validateHasChildren\"],\"data-style-direction\":[\"watchDataStyleDirection\"],\"data-has-focus\":[\"watchDataHasFocus\"]}],[1,\"mg-input-select\",{\"value\":[1032],\"items\":[16],\"identifier\":[1],\"name\":[1],\"label\":[1],\"labelOnTop\":[4,\"label-on-top\"],\"labelHide\":[4,\"label-hide\"],\"placeholder\":[1025],\"placeholderHide\":[4,\"placeholder-hide\"],\"placeholderDisabled\":[4,\"placeholder-disabled\"],\"required\":[4],\"readonly\":[4],\"disabled\":[4],\"mgWidth\":[520,\"mg-width\"],\"tooltip\":[1],\"tooltipPosition\":[1,\"tooltip-position\"],\"helpText\":[1,\"help-text\"],\"valid\":[1028],\"invalid\":[1028],\"classCollection\":[32],\"errorMessage\":[32],\"options\":[32],\"valueExist\":[32],\"readonlyValue\":[32],\"setFocus\":[64],\"displayError\":[64],\"setError\":[64],\"reset\":[64]},null,{\"value\":[\"validateValue\"],\"items\":[\"validateItems\"],\"readonly\":[\"watchReadonly\",\"handleValidityChange\"],\"required\":[\"handleValidityChange\"],\"disabled\":[\"handleValidityChange\",\"watchDisabled\"],\"mgWidth\":[\"watchMgWidth\"]}],[2,\"mg-character-left\",{\"identifier\":[1],\"characters\":[1],\"maxlength\":[2]},null,{\"identifier\":[\"watchIdentifier\"],\"maxlength\":[\"validateMaxlength\"]}],[1,\"mg-badge\",{\"value\":[8],\"label\":[1],\"variant\":[1],\"outline\":[4],\"classCollection\":[32]},null,{\"value\":[\"validateValue\"],\"label\":[\"validateLabel\"],\"variant\":[\"validateVariant\"],\"outline\":[\"validateOutline\"]}],[1,\"mg-popover\",{\"identifier\":[1],\"placement\":[1],\"arrowHide\":[4,\"arrow-hide\"],\"closeButton\":[4,\"close-button\"],\"display\":[1028],\"disabled\":[4]},null,{\"identifier\":[\"validateIdentifier\"],\"arrowHide\":[\"validateArrowHide\"],\"closeButton\":[\"validateCloseButton\"],\"display\":[\"handleDisplay\"]}],[1,\"mg-popover-content\",{\"closeButton\":[4,\"close-button\"],\"classCollection\":[32]}],[1,\"mg-card\"],[1,\"mg-input\",{\"identifier\":[1],\"label\":[1],\"labelOnTop\":[4,\"label-on-top\"],\"labelHide\":[4,\"label-hide\"],\"tooltip\":[1],\"tooltipPosition\":[1,\"tooltip-position\"],\"required\":[4],\"errorMessage\":[1,\"error-message\"],\"helpText\":[1,\"help-text\"],\"ariaDescribedbyIDs\":[16],\"isFieldset\":[32],\"isReadonly\":[32],\"isDisabled\":[32],\"isVerticalList\":[32]},null,{\"identifier\":[\"watchIdentifier\",\"watchAriaDescribedbyIDs\"],\"labelOnTop\":[\"watchLabelOnTop\",\"watchLabelConfig\"],\"labelHide\":[\"watchLabelConfig\"],\"tooltipPosition\":[\"watchTooltipPosition\"],\"errorMessage\":[\"watchErrorMessage\",\"watchAriaDescribedbyIDs\"],\"helpText\":[\"watchHelpText\",\"watchAriaDescribedbyIDs\"],\"ariaDescribedbyIDs\":[\"watchAriaDescribedbyIDs\"],\"class\":[\"watchClass\",\"watchLabel\"],\"label\":[\"watchLabel\"],\"required\":[\"watchLabel\"],\"isReadonly\":[\"watchLabel\"],\"isFieldset\":[\"watchLabel\"]}],[1,\"mg-button\",{\"variant\":[1025],\"label\":[1],\"type\":[1],\"size\":[1],\"fullWidth\":[4,\"full-width\"],\"form\":[1],\"disabled\":[1028],\"isIcon\":[4,\"is-icon\"],\"disableOnClick\":[4,\"disable-on-click\"],\"loading\":[32],\"classCollection\":[32]},null,{\"variant\":[\"validateVariant\"],\"size\":[\"validateSize\"],\"fullWidth\":[\"validateFullWidth\"],\"disabled\":[\"disabledHandler\"],\"isIcon\":[\"watchIsIcon\"],\"loading\":[\"loadingHandler\"]}],[1,\"mg-tooltip\",{\"identifier\":[1],\"message\":[1],\"placement\":[1],\"display\":[1028],\"disabled\":[4]},null,{\"identifier\":[\"watchIdentifier\"],\"message\":[\"watchMessage\"],\"display\":[\"watchDisplay\"],\"disabled\":[\"watchDisabled\"]}],[6,\"mg-input-title\",{\"identifier\":[1],\"required\":[4],\"readonly\":[4],\"isLegend\":[4,\"is-legend\"],\"tagName\":[32]},null,{\"identifier\":[\"validateIdentifier\"],\"isLegend\":[\"validateIsLegend\"]}],[1,\"mg-tooltip-content\",{\"message\":[1]}],[1,\"mg-icon\",{\"icon\":[1],\"size\":[1],\"variant\":[1],\"variantStyle\":[1025,\"variant-style\"],\"spin\":[4],\"classCollection\":[32]},null,{\"icon\":[\"validateIcon\"],\"size\":[\"validateSize\"],\"variant\":[\"validateVariant\"],\"variantStyle\":[\"validateVariantStyle\"],\"spin\":[\"handleSpin\"]}]]],[\"mg-loader\",[[1,\"mg-loader\",{\"message\":[1],\"messageHide\":[4,\"message-hide\"]},null,{\"message\":[\"watchMessage\"]}]]],[\"mg-input-combobox\",[[1,\"mg-input-combobox\",{\"value\":[1537],\"items\":[16],\"itemsLabel\":[1,\"items-label\"],\"identifier\":[1],\"name\":[1],\"label\":[1],\"labelOnTop\":[4,\"label-on-top\"],\"labelHide\":[4,\"label-hide\"],\"placeholder\":[1],\"required\":[4],\"readonly\":[4],\"disabled\":[4],\"mgWidth\":[8,\"mg-width\"],\"tooltip\":[1],\"tooltipPosition\":[1,\"tooltip-position\"],\"helpText\":[1,\"help-text\"],\"fetchurl\":[1],\"fetchoptions\":[16],\"fetchmappings\":[16],\"valid\":[1028],\"invalid\":[1028],\"isLoading\":[32],\"options\":[32],\"option\":[32],\"filter\":[32],\"classCollection\":[32],\"errorMessage\":[32],\"popoverDisplay\":[32],\"setFocus\":[64],\"displayError\":[64],\"setError\":[64],\"reset\":[64]},null,{\"value\":[\"watchValue\"],\"items\":[\"watchItems\"],\"identifier\":[\"watchIdentifier\"],\"readonly\":[\"watchReadonly\",\"watchValidityChange\"],\"required\":[\"watchValidityChange\"],\"disabled\":[\"watchValidityChange\",\"watchDisabled\"],\"mgWidth\":[\"watchMgWidth\"],\"fetchurl\":[\"watchFetchUrl\"],\"fetchoptions\":[\"watchFetchOptions\"],\"fetchmappings\":[\"watchFetchMappings\"],\"options\":[\"watchOptions\"],\"filter\":[\"watchFilter\"],\"popoverDisplay\":[\"watchPopoverDisplay\"]}]]],[\"mg-input-rich-text-editor\",[[1,\"mg-input-rich-text-editor\",{\"value\":[1025],\"identifier\":[1],\"label\":[1],\"labelOnTop\":[4,\"label-on-top\"],\"labelHide\":[4,\"label-hide\"],\"placeholder\":[1],\"rows\":[2],\"required\":[4],\"readonly\":[4],\"disabled\":[4],\"pattern\":[1],\"patternErrorMessage\":[1,\"pattern-error-message\"],\"tooltip\":[1],\"tooltipPosition\":[1,\"tooltip-position\"],\"helpText\":[1,\"help-text\"],\"modules\":[16],\"valid\":[1028],\"invalid\":[1028],\"classCollection\":[32],\"errorMessage\":[32],\"setFocus\":[64],\"getHTML\":[64],\"getText\":[64],\"displayError\":[64],\"setError\":[64],\"reset\":[64]},null,{\"readonly\":[\"watchReadonly\",\"handleValidityChange\"],\"disabled\":[\"watchDisabled\",\"handleValidityChange\"],\"required\":[\"handleValidityChange\"],\"pattern\":[\"validatePattern\"],\"patternErrorMessage\":[\"validatePattern\"]}]]]]"), options);
19
+ return bootstrapLazy(JSON.parse("[[\"mg-alert\",[[257,\"mg-alert\",{\"delay\":[2],\"variant\":[1],\"variantStyle\":[1,\"variant-style\"],\"classCollection\":[32],\"hasActions\":[32]},null,{\"delay\":[\"watchDelay\"],\"variant\":[\"watchVariant\"],\"variantStyle\":[\"watchVariantStyle\"],\"hidden\":[\"watchHidden\"]}]]],[\"mg-progress\",[[257,\"mg-progress\",{\"label\":[1],\"ariaRole\":[1,\"aria-role\"],\"value\":[2],\"min\":[2],\"max\":[2]},null,{\"label\":[\"watchLabel\"],\"ariaRole\":[\"watchAriaRole\"],\"value\":[\"watchValue\"],\"min\":[\"watchMin\"],\"max\":[\"watchMax\"]}]]],[\"mg-action-more_37\",[[257,\"mg-input-checkbox\",{\"value\":[1040],\"type\":[1025],\"identifier\":[1],\"name\":[1],\"label\":[1],\"labelOnTop\":[4,\"label-on-top\"],\"labelHide\":[4,\"label-hide\"],\"inputVerticalList\":[4,\"input-vertical-list\"],\"required\":[4],\"readonly\":[4],\"displaySelectedValues\":[4,\"display-selected-values\"],\"disabled\":[4],\"tooltip\":[1],\"tooltipPosition\":[1,\"tooltip-position\"],\"helpText\":[1,\"help-text\"],\"valid\":[1028],\"invalid\":[1028],\"editButtonMessage\":[1,\"edit-button-message\"],\"showButtonMessage\":[1,\"show-button-message\"],\"selectButtonMessage\":[1,\"select-button-message\"],\"noValueErrorDetail\":[1,\"no-value-error-detail\"],\"classCollection\":[32],\"errorMessage\":[32],\"checkboxItems\":[32],\"displaySearchInput\":[32],\"searchValue\":[32],\"searchResults\":[32],\"selectValuesButtonKey\":[32],\"activeTab\":[32],\"setFocus\":[64],\"displayError\":[64],\"setError\":[64],\"reset\":[64]},null,{\"value\":[\"validateValue\"],\"type\":[\"validateType\"],\"inputVerticalList\":[\"watchInputVerticalList\"],\"readonly\":[\"watchReadonly\",\"handleValidityChange\"],\"displaySelectedValues\":[\"watchDisplaySelectedValues\"],\"required\":[\"handleValidityChange\"],\"disabled\":[\"handleValidityChange\",\"validateDisabled\"],\"checkboxItems\":[\"validateCheckboxItems\"],\"displaySearchInput\":[\"watchDisplaySearchInput\"],\"searchValue\":[\"validateSearchValue\"]}],[257,\"mg-action-more\",{\"items\":[16],\"icon\":[1040],\"button\":[16],\"displayChevron\":[4,\"display-chevron\"],\"expanded\":[32]},null,{\"items\":[\"validateItems\"],\"icon\":[\"validateIcon\"],\"button\":[\"validateButton\"],\"displayChevron\":[\"validateDisplayChevron\"]}],[257,\"mg-panel\",{\"identifier\":[1],\"panelTitle\":[1025,\"panel-title\"],\"titlePattern\":[1,\"title-pattern\"],\"titlePatternErrorMessage\":[1,\"title-pattern-error-message\"],\"titleEditable\":[1028,\"title-editable\"],\"titlePosition\":[1,\"title-position\"],\"expanded\":[1028],\"expandToggleDisplay\":[1,\"expand-toggle-display\"],\"expandToggleDisabled\":[4,\"expand-toggle-disabled\"],\"shadow\":[4],\"classCollection\":[32],\"isEditing\":[32],\"updatedPanelTitle\":[32]},null,{\"identifier\":[\"watchIdentifier\"],\"panelTitle\":[\"validatePanelTitle\"],\"titlePattern\":[\"validateTitlePattern\"],\"titlePatternErrorMessage\":[\"validateTitlePattern\"],\"titlePosition\":[\"validateTitlePosition\"],\"expanded\":[\"handleExpanded\"],\"expandToggleDisplay\":[\"validateExpandToggleDisplay\"]}],[257,\"mg-pagination\",{\"identifier\":[1],\"label\":[1025],\"hideNavigationLabels\":[4,\"hide-navigation-labels\"],\"hidePageCount\":[4,\"hide-page-count\"],\"totalPages\":[2,\"total-pages\"],\"currentPage\":[1538,\"current-page\"],\"messages\":[16]},null,{\"identifier\":[\"watchIdentifier\"],\"totalPages\":[\"validateTotalPages\"],\"currentPage\":[\"validateCurrentPage\"],\"messages\":[\"watchPaginationMessages\"]}],[257,\"mg-input-password\",{\"value\":[1537],\"identifier\":[1],\"name\":[1],\"label\":[1],\"labelOnTop\":[4,\"label-on-top\"],\"labelHide\":[4,\"label-hide\"],\"placeholder\":[1],\"maxlength\":[2],\"required\":[4],\"readonly\":[4],\"disabled\":[4],\"mgWidth\":[8,\"mg-width\"],\"tooltip\":[1],\"tooltipPosition\":[1,\"tooltip-position\"],\"helpText\":[1,\"help-text\"],\"valid\":[1028],\"invalid\":[1028],\"classCollection\":[32],\"errorMessage\":[32],\"displayPassword\":[32],\"setFocus\":[64],\"displayError\":[64],\"setError\":[64],\"reset\":[64]},null,{\"value\":[\"handleValue\"],\"readonly\":[\"watchReadonly\",\"handleValidityChange\"],\"required\":[\"handleValidityChange\"],\"disabled\":[\"handleValidityChange\",\"watchDisabled\"],\"mgWidth\":[\"watchMgWidth\"]}],[257,\"mg-input-textarea\",{\"value\":[1537],\"identifier\":[1],\"name\":[1],\"label\":[1],\"labelOnTop\":[4,\"label-on-top\"],\"labelHide\":[4,\"label-hide\"],\"placeholder\":[1],\"maxlength\":[2],\"required\":[4],\"readonly\":[4],\"disabled\":[4],\"mgWidth\":[8,\"mg-width\"],\"pattern\":[1],\"patternErrorMessage\":[1,\"pattern-error-message\"],\"rows\":[2],\"tooltip\":[1],\"tooltipPosition\":[1,\"tooltip-position\"],\"characterLeftHide\":[4,\"character-left-hide\"],\"helpText\":[1,\"help-text\"],\"resizable\":[1],\"valid\":[1028],\"invalid\":[1028],\"classCollection\":[32],\"errorMessage\":[32],\"setFocus\":[64],\"displayError\":[64],\"setError\":[64],\"reset\":[64]},null,{\"value\":[\"handleValue\"],\"readonly\":[\"watchReadonly\",\"handleValidityChange\"],\"required\":[\"handleValidityChange\"],\"disabled\":[\"handleValidityChange\",\"validateDisabled\"],\"mgWidth\":[\"watchMgWidth\"],\"pattern\":[\"validatePattern\"],\"patternErrorMessage\":[\"validatePattern\"],\"characterLeftHide\":[\"validatecharacterLeftHide\"]}],[257,\"mg-input-date\",{\"value\":[1537],\"identifier\":[1],\"name\":[1],\"label\":[1],\"labelOnTop\":[4,\"label-on-top\"],\"labelHide\":[4,\"label-hide\"],\"required\":[4],\"readonly\":[4],\"min\":[1],\"max\":[1],\"disabled\":[4],\"tooltip\":[1],\"tooltipPosition\":[1,\"tooltip-position\"],\"helpText\":[1,\"help-text\"],\"valid\":[1028],\"invalid\":[1028],\"classCollection\":[32],\"errorMessage\":[32],\"setFocus\":[64],\"displayError\":[64],\"setError\":[64],\"reset\":[64]},null,{\"value\":[\"validateValue\"],\"readonly\":[\"watchReadonly\",\"handleValidityChange\"],\"min\":[\"validateMinMax\",\"handleValidityChange\"],\"max\":[\"validateMinMax\",\"handleValidityChange\"],\"required\":[\"handleValidityChange\"],\"disabled\":[\"handleValidityChange\",\"watchDisabled\"]}],[257,\"mg-input-numeric\",{\"value\":[1537],\"identifier\":[1],\"name\":[1],\"label\":[1],\"labelOnTop\":[4,\"label-on-top\"],\"labelHide\":[4,\"label-hide\"],\"placeholder\":[1],\"required\":[4],\"readonly\":[4],\"max\":[2],\"min\":[2],\"disabled\":[4],\"mgWidth\":[8,\"mg-width\"],\"tooltip\":[1],\"tooltipPosition\":[1,\"tooltip-position\"],\"helpText\":[1,\"help-text\"],\"type\":[1],\"format\":[1],\"currency\":[1],\"unit\":[1],\"unitDisplay\":[1,\"unit-display\"],\"integerLength\":[2,\"integer-length\"],\"decimalLength\":[2,\"decimal-length\"],\"valid\":[1028],\"invalid\":[1028],\"classCollection\":[32],\"errorMessage\":[32],\"hasFocus\":[32],\"setFocus\":[64],\"displayError\":[64],\"setError\":[64],\"reset\":[64]},null,{\"value\":[\"validateValue\"],\"readonly\":[\"watchReadonly\",\"handleValidityChange\"],\"required\":[\"handleValidityChange\"],\"disabled\":[\"handleValidityChange\",\"watchDisabled\"],\"min\":[\"handleValidityChange\"],\"max\":[\"handleValidityChange\"],\"mgWidth\":[\"watchMgWidth\"],\"type\":[\"validateType\"],\"format\":[\"watchFormat\"],\"integerLength\":[\"validateIntegerLength\"],\"decimalLength\":[\"validateDecimalLength\"]}],[257,\"mg-input-radio\",{\"value\":[1032],\"items\":[16],\"identifier\":[1],\"name\":[1],\"label\":[1],\"labelOnTop\":[4,\"label-on-top\"],\"labelHide\":[4,\"label-hide\"],\"inputVerticalList\":[4,\"input-vertical-list\"],\"required\":[4],\"readonly\":[4],\"disabled\":[4],\"tooltip\":[1],\"tooltipPosition\":[1,\"tooltip-position\"],\"helpText\":[1,\"help-text\"],\"noValueErrorDetail\":[1,\"no-value-error-detail\"],\"valid\":[1028],\"invalid\":[1028],\"classCollection\":[32],\"errorMessage\":[32],\"options\":[32],\"readonlyValue\":[32],\"setFocus\":[64],\"displayError\":[64],\"setError\":[64],\"reset\":[64]},null,{\"value\":[\"watchValue\"],\"items\":[\"validateItems\"],\"inputVerticalList\":[\"watchInputVerticalList\"],\"readonly\":[\"watchReadonly\",\"handleValidityChange\"],\"required\":[\"handleValidityChange\"],\"disabled\":[\"handleValidityChange\",\"watchDisabled\"]}],[257,\"mg-input-toggle\",{\"value\":[1032],\"items\":[16],\"identifier\":[1],\"name\":[1],\"label\":[1],\"labelOnTop\":[4,\"label-on-top\"],\"labelHide\":[4,\"label-hide\"],\"isOnOff\":[4,\"is-on-off\"],\"isIcon\":[4,\"is-icon\"],\"readonly\":[4],\"disabled\":[4],\"tooltip\":[1],\"tooltipPosition\":[1,\"tooltip-position\"],\"helpText\":[1,\"help-text\"],\"noValueErrorDetail\":[1,\"no-value-error-detail\"],\"valid\":[1028],\"invalid\":[1028],\"classCollection\":[32],\"options\":[32],\"errorMessage\":[32],\"checked\":[32],\"setFocus\":[64],\"setError\":[64],\"reset\":[64]},null,{\"value\":[\"handleValue\"],\"items\":[\"validateItems\"],\"isOnOff\":[\"watchIsOnOff\"],\"isIcon\":[\"watchIsIcon\"],\"readonly\":[\"watchReadonly\"],\"disabled\":[\"watchDisabled\"],\"checked\":[\"handleChecked\"]}],[257,\"mg-modal\",{\"identifier\":[1],\"dialogRole\":[1,\"dialog-role\"],\"modalTitle\":[1,\"modal-title\"],\"closeButton\":[4,\"close-button\"],\"open\":[1028],\"hasActions\":[32],\"classCollection\":[32]},null,{\"identifier\":[\"watchIdentifier\"],\"dialogRole\":[\"validateDialogRole\"],\"modalTitle\":[\"validateModalTitle\"],\"open\":[\"watchOpen\"]}],[1,\"mg-table\",{\"size\":[1],\"fullWidth\":[4,\"full-width\"],\"columns\":[16],\"classCollection\":[32]},null,{\"size\":[\"watchSize\"],\"fullWidth\":[\"watchFullWidth\"],\"columns\":[\"watchColumns\"]}],[257,\"mg-form\",{\"identifier\":[1],\"name\":[1],\"readonly\":[4],\"requiredMessage\":[1,\"required-message\"],\"ariaRole\":[1,\"aria-role\"],\"labelOnTop\":[4,\"label-on-top\"],\"disabled\":[4],\"valid\":[1028],\"invalid\":[1028],\"classCollection\":[32],\"requiredMessageText\":[32],\"displayError\":[64],\"reset\":[64]},null,{\"identifier\":[\"watchIdentifier\"],\"requiredMessage\":[\"validateRequiredMessage\",\"handleAttributeChange\"],\"ariaRole\":[\"validateAriaRole\"],\"labelOnTop\":[\"handlelabelOnTop\"],\"readonly\":[\"handleAttributeChange\"],\"disabled\":[\"handleAttributeChange\"]}],[257,\"mg-illustrated-message\",{\"size\":[1],\"direction\":[1],\"classCollection\":[32]},null,{\"size\":[\"watchSize\"],\"direction\":[\"watchDirection\"]}],[257,\"mg-skip-links\",{\"links\":[16]},null,{\"links\":[\"validateLinks\"]}],[257,\"mg-tag\",{\"variant\":[1],\"outline\":[4],\"soft\":[4],\"classCollection\":[32]},null,{\"variant\":[\"validateVariant\"],\"outline\":[\"validateOutline\"],\"soft\":[\"validateSoft\"]}],[257,\"mg-input-select\",{\"value\":[1032],\"items\":[16],\"identifier\":[1],\"name\":[1],\"label\":[1],\"labelOnTop\":[4,\"label-on-top\"],\"labelHide\":[4,\"label-hide\"],\"placeholder\":[1025],\"placeholderHide\":[4,\"placeholder-hide\"],\"placeholderDisabled\":[4,\"placeholder-disabled\"],\"required\":[4],\"readonly\":[4],\"disabled\":[4],\"mgWidth\":[520,\"mg-width\"],\"tooltip\":[1],\"tooltipPosition\":[1,\"tooltip-position\"],\"helpText\":[1,\"help-text\"],\"noValueErrorDetail\":[1,\"no-value-error-detail\"],\"valid\":[1028],\"invalid\":[1028],\"classCollection\":[32],\"errorMessage\":[32],\"options\":[32],\"valueExist\":[32],\"setFocus\":[64],\"displayError\":[64],\"setError\":[64],\"reset\":[64]},null,{\"value\":[\"validateValue\"],\"items\":[\"validateItems\"],\"readonly\":[\"watchReadonly\",\"handleValidityChange\"],\"required\":[\"handleValidityChange\"],\"disabled\":[\"handleValidityChange\",\"watchDisabled\"],\"mgWidth\":[\"watchMgWidth\"]}],[262,\"mg-input-checkbox-paginated\",{\"readonly\":[4],\"disabled\":[4],\"name\":[1],\"invalid\":[4],\"checkboxes\":[16],\"messages\":[16],\"limit\":[32],\"resetLimit\":[64]},null,{\"checkboxes\":[\"watchCheckboxes\"],\"limit\":[\"watchLimit\"]}],[257,\"mg-message\",{\"variant\":[1],\"variantStyle\":[1,\"variant-style\"],\"classCollection\":[32],\"hasActions\":[32]},null,{\"variant\":[\"watchVariant\"],\"variantStyle\":[\"watchVariantStyle\"]}],[257,\"mg-tabs\",{\"identifier\":[1],\"label\":[1],\"size\":[1],\"items\":[16],\"activeTab\":[1538,\"active-tab\"],\"tabs\":[32],\"classCollection\":[32]},null,{\"identifier\":[\"watchIdentifier\"],\"label\":[\"validateLabel\"],\"size\":[\"validateSize\"],\"items\":[\"validateItems\"],\"activeTab\":[\"validateActiveTab\"]}],[257,\"mg-divider\",{\"fullWidth\":[4,\"full-width\"]}],[257,\"mg-input-text\",{\"value\":[1544],\"identifier\":[1],\"name\":[1],\"label\":[1],\"labelOnTop\":[4,\"label-on-top\"],\"labelHide\":[4,\"label-hide\"],\"type\":[1],\"icon\":[1],\"placeholder\":[1],\"datalistoptions\":[16],\"maxlength\":[2],\"required\":[4],\"readonly\":[4],\"disabled\":[4],\"mgWidth\":[8,\"mg-width\"],\"pattern\":[1],\"patternErrorMessage\":[1,\"pattern-error-message\"],\"tooltip\":[1],\"tooltipPosition\":[1,\"tooltip-position\"],\"characterLeftHide\":[4,\"character-left-hide\"],\"helpText\":[1025,\"help-text\"],\"valid\":[1028],\"invalid\":[1028],\"classCollection\":[32],\"errorMessage\":[32],\"setFocus\":[64],\"displayError\":[64],\"setError\":[64],\"reset\":[64]},null,{\"value\":[\"handleValue\"],\"type\":[\"validateType\"],\"icon\":[\"validateIcon\"],\"datalistoptions\":[\"validateDatalistoptions\"],\"readonly\":[\"watchReadonly\",\"handleValidityChange\"],\"required\":[\"handleValidityChange\"],\"disabled\":[\"handleValidityChange\",\"watchDisabled\"],\"mgWidth\":[\"watchMgWidth\"],\"pattern\":[\"watchPattern\"],\"patternErrorMessage\":[\"watchPattern\"],\"helpText\":[\"watchHelpText\"]}],[257,\"mg-item-more\",{\"icon\":[16],\"slotlabel\":[16],\"size\":[1],\"parentMenu\":[32]},null,{\"icon\":[\"validateIcon\"],\"slotlabel\":[\"validateSlotLabel\"],\"size\":[\"validateSize\"]}],[257,\"mg-menu\",{\"label\":[1],\"direction\":[513],\"itemmore\":[16],\"size\":[1]},[[0,\"item-loaded\",\"updateItemListener\"]],{\"label\":[\"validateLabel\"],\"direction\":[\"validateDirection\"],\"itemmore\":[\"validateItemMore\"],\"size\":[\"validateSize\"]}],[257,\"mg-menu-item\",{\"identifier\":[513],\"href\":[1],\"target\":[1],\"status\":[1537],\"expanded\":[1028],\"size\":[32],\"navigationButtonClassList\":[32],\"direction\":[32],\"isItemMore\":[32],\"hasChildren\":[32],\"displayNotificationBadge\":[32]},null,{\"identifier\":[\"watchIdentifier\"],\"target\":[\"watchTarget\"],\"status\":[\"watchStatus\"],\"expanded\":[\"watchExpanded\"],\"size\":[\"watchSize\"],\"direction\":[\"validateDirection\"],\"hasChildren\":[\"validateHasChildren\"],\"data-style-direction\":[\"watchDataStyleDirection\"],\"data-has-focus\":[\"watchDataHasFocus\"]}],[258,\"mg-character-left\",{\"identifier\":[1],\"characters\":[1],\"maxlength\":[2]},null,{\"identifier\":[\"watchIdentifier\"],\"maxlength\":[\"validateMaxlength\"]}],[257,\"mg-popover\",{\"identifier\":[1],\"placement\":[1],\"arrowHide\":[4,\"arrow-hide\"],\"closeButton\":[4,\"close-button\"],\"display\":[1028],\"disabled\":[4]},null,{\"identifier\":[\"validateIdentifier\"],\"arrowHide\":[\"validateArrowHide\"],\"closeButton\":[\"validateCloseButton\"],\"display\":[\"handleDisplay\"]}],[257,\"mg-badge\",{\"value\":[8],\"label\":[1],\"variant\":[1],\"outline\":[4],\"classCollection\":[32]},null,{\"value\":[\"validateValue\"],\"label\":[\"validateLabel\"],\"variant\":[\"validateVariant\"],\"outline\":[\"validateOutline\"]}],[257,\"mg-popover-content\",{\"closeButton\":[4,\"close-button\"],\"classCollection\":[32]}],[257,\"mg-card\",{\"shadow\":[4],\"radiusSize\":[1,\"radius-size\"],\"classCollection\":[32]},null,{\"shadow\":[\"watchShadow\"],\"radiusSize\":[\"watchRadiusSize\"]}],[257,\"mg-input\",{\"identifier\":[1],\"label\":[1],\"labelOnTop\":[4,\"label-on-top\"],\"labelHide\":[4,\"label-hide\"],\"tooltip\":[1],\"tooltipPosition\":[1,\"tooltip-position\"],\"required\":[4],\"errorMessage\":[1,\"error-message\"],\"helpText\":[1,\"help-text\"],\"ariaDescribedbyIDs\":[1025,\"aria-describedby-i-ds\"],\"isFieldset\":[32],\"isReadonly\":[32],\"isDisabled\":[32],\"isVerticalList\":[32]},null,{\"identifier\":[\"watchIdentifier\",\"watchAriaDescribedbyIDs\"],\"labelOnTop\":[\"watchLabelOnTop\",\"watchLabelConfig\"],\"labelHide\":[\"watchLabelConfig\"],\"tooltipPosition\":[\"watchTooltipPosition\"],\"errorMessage\":[\"watchErrorMessage\",\"watchAriaDescribedbyIDs\"],\"helpText\":[\"watchHelpText\",\"watchAriaDescribedbyIDs\"],\"ariaDescribedbyIDs\":[\"watchAriaDescribedbyIDs\"],\"class\":[\"watchClass\",\"watchLabel\"],\"label\":[\"watchLabel\"],\"required\":[\"watchLabel\"],\"isReadonly\":[\"watchLabel\"],\"isFieldset\":[\"watchLabel\"]}],[257,\"mg-button\",{\"variant\":[1025],\"label\":[1],\"type\":[1],\"size\":[1],\"fullWidth\":[4,\"full-width\"],\"form\":[1],\"disabled\":[1028],\"isIcon\":[4,\"is-icon\"],\"disableOnClick\":[4,\"disable-on-click\"],\"loading\":[32],\"classCollection\":[32]},null,{\"variant\":[\"validateVariant\"],\"size\":[\"validateSize\"],\"fullWidth\":[\"validateFullWidth\"],\"disabled\":[\"disabledHandler\"],\"isIcon\":[\"watchIsIcon\"],\"loading\":[\"loadingHandler\"]}],[257,\"mg-details\",{\"toggleClosed\":[1,\"toggle-closed\"],\"toggleOpened\":[1,\"toggle-opened\"],\"hideSummary\":[4,\"hide-summary\"],\"expanded\":[1028]},null,{\"toggleClosed\":[\"validateTitles\"],\"toggleOpened\":[\"validateTitles\"],\"expanded\":[\"handleExpanded\"]}],[257,\"mg-tooltip\",{\"identifier\":[1],\"message\":[1],\"placement\":[1],\"display\":[1028],\"disabled\":[4]},null,{\"identifier\":[\"watchIdentifier\"],\"message\":[\"watchMessage\"],\"display\":[\"watchDisplay\"],\"disabled\":[\"watchDisabled\"]}],[262,\"mg-input-title\",{\"identifier\":[1],\"required\":[4],\"readonly\":[4],\"isLegend\":[4,\"is-legend\"],\"tagName\":[32]},null,{\"identifier\":[\"validateIdentifier\"],\"isLegend\":[\"validateIsLegend\"]}],[257,\"mg-tooltip-content\",{\"message\":[1]}],[1,\"mg-icon\",{\"icon\":[1],\"size\":[1],\"variant\":[1],\"variantStyle\":[1025,\"variant-style\"],\"spin\":[4],\"classCollection\":[32]},null,{\"icon\":[\"validateIcon\"],\"size\":[\"validateSize\"],\"variant\":[\"validateVariant\"],\"variantStyle\":[\"validateVariantStyle\"],\"spin\":[\"handleSpin\"]}]]],[\"mg-loader\",[[257,\"mg-loader\",{\"message\":[1],\"messageHide\":[4,\"message-hide\"]},null,{\"message\":[\"watchMessage\"]}]]],[\"mg-input-combobox\",[[257,\"mg-input-combobox\",{\"value\":[1537],\"items\":[16],\"itemsLabel\":[1,\"items-label\"],\"identifier\":[1],\"name\":[1],\"label\":[1],\"labelOnTop\":[4,\"label-on-top\"],\"labelHide\":[4,\"label-hide\"],\"placeholder\":[1],\"required\":[4],\"readonly\":[4],\"disabled\":[4],\"mgWidth\":[8,\"mg-width\"],\"tooltip\":[1],\"tooltipPosition\":[1,\"tooltip-position\"],\"helpText\":[1,\"help-text\"],\"fetchurl\":[1],\"fetchoptions\":[16],\"fetchmappings\":[16],\"noValueErrorDetail\":[1,\"no-value-error-detail\"],\"valid\":[1028],\"invalid\":[1028],\"isLoading\":[32],\"options\":[32],\"option\":[32],\"filter\":[32],\"classCollection\":[32],\"errorMessage\":[32],\"popoverDisplay\":[32],\"setFocus\":[64],\"displayError\":[64],\"setError\":[64],\"reset\":[64]},null,{\"value\":[\"watchValue\"],\"items\":[\"watchItems\"],\"identifier\":[\"watchIdentifier\"],\"readonly\":[\"watchReadonly\",\"watchValidityChange\"],\"required\":[\"watchValidityChange\"],\"disabled\":[\"watchValidityChange\",\"watchDisabled\"],\"mgWidth\":[\"watchMgWidth\"],\"fetchurl\":[\"watchFetchUrl\"],\"fetchoptions\":[\"watchFetchOptions\"],\"fetchmappings\":[\"watchFetchMappings\"],\"options\":[\"watchOptions\"],\"filter\":[\"watchFilter\"],\"popoverDisplay\":[\"watchPopoverDisplay\"]}]]],[\"mg-input-rich-text-editor\",[[257,\"mg-input-rich-text-editor\",{\"value\":[1025],\"identifier\":[1],\"label\":[1],\"labelOnTop\":[4,\"label-on-top\"],\"labelHide\":[4,\"label-hide\"],\"placeholder\":[1],\"rows\":[2],\"required\":[4],\"readonly\":[4],\"disabled\":[4],\"pattern\":[1],\"patternErrorMessage\":[1,\"pattern-error-message\"],\"tooltip\":[1],\"tooltipPosition\":[1,\"tooltip-position\"],\"helpText\":[1,\"help-text\"],\"modules\":[16],\"valid\":[1028],\"invalid\":[1028],\"classCollection\":[32],\"errorMessage\":[32],\"setFocus\":[64],\"getHTML\":[64],\"getText\":[64],\"displayError\":[64],\"setError\":[64],\"reset\":[64]},null,{\"readonly\":[\"watchReadonly\",\"handleValidityChange\"],\"disabled\":[\"watchDisabled\",\"handleValidityChange\"],\"required\":[\"handleValidityChange\"],\"pattern\":[\"validatePattern\"],\"patternErrorMessage\":[\"validatePattern\"]}]]]]"), options);
21
20
  });
22
- //# sourceMappingURL=mg-components.js.map
23
-
24
- //# sourceMappingURL=mg-components.js.map
@@ -1,10 +1,10 @@
1
- import { r as registerInstance, c as createEvent, h, g as getElement } from './index-CAuxALt5.js';
2
- import { P as Paginate, C as ClassList, f as formatID, a as Cursor, n as nextTick, g as getObjectValueFromKey, t as toString, b as allItemsAreString, i as isObject, c as isValidString, d as Page } from './index-Dr7GYvIz.js';
3
- import { c as classReadonly, a as classDisabled, w as widths } from './mg-input.conf-CNgv8hc5.js';
4
- import { i as initLocales } from './index-Bv7NHR-W.js';
5
- import { K as Keys } from './events.utils-yMGqY8YG.js';
1
+ import { r as registerInstance, c as createEvent, h, a as getElement } from './index-DhAOnZJn.js';
2
+ import { P as Paginate, C as ClassList, f as formatID, a as Cursor, i as isObject, n as nextTick, g as getObjectValueFromKey, t as toString, b as allItemsAreString, c as isValidString, d as Page } from './index-WtiuOkLj.js';
3
+ import { C as CustomError, c as classReadonly, a as classDisabled, w as widths } from './mg-input.conf-BAUTlb6r.js';
4
+ import { i as initLocales } from './index-CKB-AnCZ.js';
5
+ import { K as Keys, d as defineErrorMessage } from './mg-input.utils-BYI03zSi.js';
6
6
 
7
- const mgInputComboboxCss = ".mg-c-input__box{height:var(--mg-b-size-min-height);box-sizing:border-box;padding:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2) var(--mg-b-size-8);border-width:var(--mg-c-input-border-width);border-style:solid;border-color:var(--mg-c-input-color-border);border-radius:var(--mg-c-input-border-radius);background-color:var(--mg-b-color-light);color:var(--mg-b-color-dark);font-family:inherit;font-size:var(--mg-b-font-size);text-align:var(--mg-c-input-text-align, left)}.mg-c-input__box::placeholder{color:var(--mg-c-input-placeholder-color-text);font-style:italic}.mg-c-input__box:focus{box-shadow:0 0 var(--mg-b-size-4) var(--mg-c-input-color-box-shadow-focus)}.mg-c-input__box:disabled{opacity:var(--mg-b-opacity-element-disabled)}.mg-c-input.mg-c-input--has-error .mg-c-input__box{border-color:var(--mg-b-color-danger)}.mg-c-input.mg-c-input--is-input-group-append{--mg-c-button-border-radius-top-left:0;--mg-c-button-border-radius-bottom-left:0}.mg-c-input.mg-c-input--is-input-group-append .mg-c-input__box{margin-right:calc(-1*var(--mg-b-size-border));border-bottom-right-radius:0;border-top-right-radius:0}.mg-c-input.mg-c-input--is-input-group-append .mg-c-input__box:focus-visible{outline-offset:-0.2rem;outline-style:solid;outline-width:.2rem}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]){--mg-c-button-border-radius-top-right:0;--mg-c-button-border-radius-bottom-right:0}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]:not(:last-of-type)){--mg-c-button-border-right-width:0}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]:last-of-type){--mg-c-button-border-radius-top-right:var(--mg-c-input-border-radius);--mg-c-button-border-radius-bottom-right:var(--mg-c-input-border-radius)}.mg-c-input.mg-c-input--is-append-input-slot-content:not(.mg-c-input--readonly) ::slotted([slot=append-input]){align-self:start;padding-top:calc((var(--mg-b-size-min-height) - var(--mg-b-size-16))/2)}.mg-c-input.mg-c-input--has-icon .mg-c-input__with-character-left>mg-icon:first-of-type,.mg-c-input.mg-c-input--has-icon .mg-c-input__input-group-container>mg-icon:first-of-type{position:absolute;top:50%;left:var(--mg-b-size-8);color:var(--mg-c-input-color-icon);transform:translateY(-50%)}.mg-c-input.mg-c-input--has-icon .mg-c-input__with-character-left .mg-c-input__box,.mg-c-input.mg-c-input--has-icon .mg-c-input__input-group-container .mg-c-input__box{padding-left:calc(var(--mg-b-size-16) + var(--mg-b-size-8)*2)}.mg-c-input__input-container{width:100%;flex:1 auto}.mg-c-input.mg-c-input--width-full .mg-c-input__box{width:100%}.mg-c-input.mg-c-input--width-2 .mg-c-input__with-character-left,.mg-c-input.mg-c-input--width-4 .mg-c-input__with-character-left,.mg-c-input.mg-c-input--width-16 .mg-c-input__with-character-left{width:max-content}.mg-c-input.mg-c-input--width-2 .mg-c-input__with-character-left:has(textarea),.mg-c-input.mg-c-input--width-4 .mg-c-input__with-character-left:has(textarea),.mg-c-input.mg-c-input--width-16 .mg-c-input__with-character-left:has(textarea){flex-grow:inherit}.mg-c-input.mg-c-input--width-2 .mg-c-input__box{width:var(--mg-b-size-48)}.mg-c-input.mg-c-input--width-2 .mg-c-input__with-character-left:not(:has(textarea)) .mg-c-input__box{width:calc(var(--mg-b-size-48) + var(--mg-c-character-left-message-length)*(.35ch + .3rem))}.mg-c-input.mg-c-input--width-4 .mg-c-input__box{width:var(--mg-b-size-72)}.mg-c-input.mg-c-input--width-4 .mg-c-input__with-character-left:not(:has(textarea)) .mg-c-input__box{width:calc(var(--mg-b-size-72) + var(--mg-c-character-left-message-length)*(.35ch + .3rem))}.mg-c-input.mg-c-input--width-16 .mg-c-input__box{width:calc(26*var(--mg-b-size-8))}.mg-c-input.mg-c-input--width-16 .mg-c-input__with-character-left:not(:has(textarea)) .mg-c-input__box{width:calc(calc(26 * var(--mg-b-size-8)) + var(--mg-c-character-left-message-length)*(.35ch + .3rem))}.mg-c-input.mg-c-input--width-full:not(.mg-c-input--label-on-top){justify-content:stretch}.mg-c-input.mg-c-input--is-input-group-append ::slotted([slot=append-input]),.mg-c-input.mg-c-input--is-append-input-slot-content ::slotted([slot=append-input]){width:auto}:host(.mg-c-input.mg-c-input--width-full) ::slotted(*:not(mg-input-title)){width:100%;max-width:100%}.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);overflow-wrap:anywhere}.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}}a{color:inherit;text-decoration:underline}a:hover,a:focus,a:active{text-decoration:none}.mg-c-input.mg-c-input--combobox mg-popover{--mg-c-card-overflow:hidden;--mg-c-popover-padding-vertical:0;--mg-c-popover-padding-horizontal:0}.mg-c-input.mg-c-input--combobox .mg-c-input__input-group-container{position:relative}.mg-c-input.mg-c-input--combobox .mg-c-input__box{cursor:pointer}.mg-c-input.mg-c-input--combobox .mg-c-input__popover-container{display:flex;min-width:var(--mg-c-input-list-width);max-height:calc(50*var(--mg-b-size-8) - var(--mg-b-size-32));flex-direction:column;gap:var(--mg-b-size-4);overflow-y:scroll}.mg-c-input.mg-c-input--combobox .mg-c-input__popover-info{padding:var(--mg-b-size-8);margin:0;text-align:center}.mg-c-input.mg-c-input--combobox .mg-c-input__load-more{padding:0 var(--mg-b-size-8) var(--mg-b-size-4)}.mg-c-input.mg-c-input--combobox .mg-c-input__input-list{padding:0;margin:0;cursor:pointer;list-style:none}.mg-c-input.mg-c-input--combobox .mg-c-input__input-list-item{display:flex;padding:var(--mg-b-size-8)}.mg-c-input.mg-c-input--combobox .mg-c-input__input-list-item:hover,.mg-c-input.mg-c-input--combobox .mg-c-input__input-list-item.mg-c-input__input-list-item--focus-visible{background-color:var(--mg-b-color-neutral-20)}.mg-c-input.mg-c-input--combobox .mg-c-input__input-list-item.mg-c-input__input-list-item--selected{font-weight:700}.mg-c-input.mg-c-input--combobox .mg-c-input__input-list-item.mg-c-input__input-list-item--selected mg-icon{margin-left:auto}.mg-c-input.mg-c-input--combobox.mg-c-input--width-2 .mg-c-input__box{width:calc(var(--mg-b-size-16) + var(--mg-b-size-8)*2 + var(--mg-b-size-24) + var(--mg-b-size-min-height) + var(--mg-b-size-4))}.mg-c-input.mg-c-input--combobox.mg-c-input--width-4 .mg-c-input__box{width:calc(var(--mg-b-size-16) + var(--mg-b-size-8)*2 + var(--mg-b-size-48) + var(--mg-b-size-min-height) + var(--mg-b-size-4))}.mg-c-input.mg-c-input--combobox.mg-c-input--width-16 .mg-c-input__box{width:calc(var(--mg-b-size-16) + var(--mg-b-size-8)*2 + calc(23 * var(--mg-b-size-8)) + var(--mg-b-size-min-height) + var(--mg-b-size-4))}.mg-c-input.mg-c-input--combobox.mg-c-input--width-full mg-popover{--mg-c-popover-max-width:var(--mg-c-input-list-width, var(--mg-c-popover-max-width))}.mg-c-input.mg-c-input--combobox.mg-c-input--width-full .mg-c-input__input-group-container{display:flex;width:100%}.mg-c-input.mg-c-input--combobox.mg-c-input--width-full .mg-c-input__box{flex:1}.mg-c-input.mg-c-input--combobox.mg-c-input--input-append .mg-c-input__box{padding-right:calc(var(--mg-b-size-min-height) + var(--mg-b-size-4))}.mg-c-input.mg-c-input--combobox.mg-c-input--input-append .mg-c-input__box-append{position:absolute;top:0;right:0}";
7
+ const mgInputComboboxCss = ".mg-c-input__error-details{margin:0}.mg-c-input__box{height:var(--mg-b-size-min-height);box-sizing:border-box;padding:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2) var(--mg-b-size-8);border-width:var(--mg-c-input-border-width);border-style:solid;border-color:var(--mg-c-input-color-border);border-radius:var(--mg-c-input-border-radius);background-color:var(--mg-b-color-light);color:var(--mg-b-color-dark);font-family:inherit;font-size:var(--mg-b-font-size);text-align:var(--mg-c-input-text-align, left)}.mg-c-input__box::placeholder{color:var(--mg-c-input-placeholder-color-text);font-style:italic}.mg-c-input__box:focus{box-shadow:0 0 var(--mg-b-size-4) var(--mg-c-input-color-box-shadow-focus)}.mg-c-input__box:disabled{opacity:var(--mg-b-opacity-element-disabled)}.mg-c-input.mg-c-input--has-error .mg-c-input__box{border-color:var(--mg-b-color-danger)}.mg-c-input.mg-c-input--is-input-group-append{--mg-c-button-border-radius-top-left:0;--mg-c-button-border-radius-bottom-left:0}.mg-c-input.mg-c-input--is-input-group-append .mg-c-input__box{margin-right:calc(-1*var(--mg-b-size-border));border-bottom-right-radius:0;border-top-right-radius:0}.mg-c-input.mg-c-input--is-input-group-append .mg-c-input__box:focus-visible{outline-offset:-0.2rem;outline-style:solid;outline-width:.2rem}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]){--mg-c-button-border-radius-top-right:0;--mg-c-button-border-radius-bottom-right:0}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]:not(:last-of-type)){--mg-c-button-border-right-width:0}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]:last-of-type){--mg-c-button-border-radius-top-right:var(--mg-c-input-border-radius);--mg-c-button-border-radius-bottom-right:var(--mg-c-input-border-radius)}.mg-c-input.mg-c-input--is-append-input-slot-content:not(.mg-c-input--readonly) ::slotted([slot=append-input]){align-self:start;padding-top:calc((var(--mg-b-size-min-height) - var(--mg-b-size-16))/2)}.mg-c-input.mg-c-input--has-icon .mg-c-input__with-character-left>mg-icon:first-of-type,.mg-c-input.mg-c-input--has-icon .mg-c-input__input-group-container>mg-icon:first-of-type{position:absolute;top:50%;left:var(--mg-b-size-8);color:var(--mg-c-input-color-icon);transform:translateY(-50%)}.mg-c-input.mg-c-input--has-icon .mg-c-input__with-character-left .mg-c-input__box,.mg-c-input.mg-c-input--has-icon .mg-c-input__input-group-container .mg-c-input__box{padding-left:calc(var(--mg-b-size-16) + var(--mg-b-size-8)*2)}.mg-c-input__popover-info{padding:var(--mg-b-size-8);margin:0;color:var(--mg-b-color-neutral-90);text-align:center}.mg-c-input__input-container{width:100%;flex:1 auto}.mg-c-input.mg-c-input--width-full .mg-c-input__box{width:100%}.mg-c-input.mg-c-input--width-2 .mg-c-input__with-character-left,.mg-c-input.mg-c-input--width-4 .mg-c-input__with-character-left,.mg-c-input.mg-c-input--width-16 .mg-c-input__with-character-left{width:max-content}.mg-c-input.mg-c-input--width-2 .mg-c-input__with-character-left:has(textarea),.mg-c-input.mg-c-input--width-4 .mg-c-input__with-character-left:has(textarea),.mg-c-input.mg-c-input--width-16 .mg-c-input__with-character-left:has(textarea){flex-grow:inherit}.mg-c-input.mg-c-input--width-2 .mg-c-input__box{width:var(--mg-b-size-48)}.mg-c-input.mg-c-input--width-2 .mg-c-input__with-character-left:not(:has(textarea)) .mg-c-input__box{width:calc(var(--mg-b-size-48) + var(--mg-c-character-left-message-length)*(.35ch + .3rem))}.mg-c-input.mg-c-input--width-4 .mg-c-input__box{width:var(--mg-b-size-72)}.mg-c-input.mg-c-input--width-4 .mg-c-input__with-character-left:not(:has(textarea)) .mg-c-input__box{width:calc(var(--mg-b-size-72) + var(--mg-c-character-left-message-length)*(.35ch + .3rem))}.mg-c-input.mg-c-input--width-16 .mg-c-input__box{width:calc(26*var(--mg-b-size-8))}.mg-c-input.mg-c-input--width-16 .mg-c-input__with-character-left:not(:has(textarea)) .mg-c-input__box{width:calc(calc(26 * var(--mg-b-size-8)) + var(--mg-c-character-left-message-length)*(.35ch + .3rem))}.mg-c-input.mg-c-input--width-full:not(.mg-c-input--label-on-top){justify-content:stretch}.mg-c-input.mg-c-input--is-input-group-append ::slotted([slot=append-input]),.mg-c-input.mg-c-input--is-append-input-slot-content ::slotted([slot=append-input]){width:auto}:host(.mg-c-input.mg-c-input--width-full) ::slotted(*:not(mg-input-title)){width:100%;max-width:100%}.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);overflow-wrap:anywhere}.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}}a{color:inherit;text-decoration:underline}a:hover,a:focus,a:active{text-decoration:none}.mg-c-input.mg-c-input--combobox mg-popover{--mg-c-card-overflow:hidden;--mg-c-popover-padding-vertical:0;--mg-c-popover-padding-horizontal:0}.mg-c-input.mg-c-input--combobox .mg-c-input__input-group-container{position:relative}.mg-c-input.mg-c-input--combobox .mg-c-input__box:not(:disabled){cursor:pointer}.mg-c-input.mg-c-input--combobox .mg-c-input__popover-container{display:flex;min-width:var(--mg-c-input-list-width);max-height:calc(50*var(--mg-b-size-8) - var(--mg-b-size-32));flex-direction:column;gap:var(--mg-b-size-4);overflow-y:scroll}.mg-c-input.mg-c-input--combobox .mg-c-input__load-more{padding:0 var(--mg-b-size-8) var(--mg-b-size-4)}.mg-c-input.mg-c-input--combobox .mg-c-input__input-list{padding:0;margin:0;cursor:pointer;list-style:none}.mg-c-input.mg-c-input--combobox .mg-c-input__input-list-item{display:flex;padding:var(--mg-b-size-8)}.mg-c-input.mg-c-input--combobox .mg-c-input__input-list-item:hover,.mg-c-input.mg-c-input--combobox .mg-c-input__input-list-item.mg-c-input__input-list-item--focus-visible{background-color:var(--mg-b-color-neutral-20)}.mg-c-input.mg-c-input--combobox .mg-c-input__input-list-item.mg-c-input__input-list-item--selected{font-weight:700}.mg-c-input.mg-c-input--combobox .mg-c-input__input-list-item.mg-c-input__input-list-item--selected mg-icon{margin-left:auto}.mg-c-input.mg-c-input--combobox.mg-c-input--width-2 .mg-c-input__box{width:calc(var(--mg-b-size-16) + var(--mg-b-size-8)*2 + var(--mg-b-size-24) + var(--mg-b-size-min-height) + var(--mg-b-size-4))}.mg-c-input.mg-c-input--combobox.mg-c-input--width-4 .mg-c-input__box{width:calc(var(--mg-b-size-16) + var(--mg-b-size-8)*2 + var(--mg-b-size-48) + var(--mg-b-size-min-height) + var(--mg-b-size-4))}.mg-c-input.mg-c-input--combobox.mg-c-input--width-16 .mg-c-input__box{width:calc(var(--mg-b-size-16) + var(--mg-b-size-8)*2 + calc(23 * var(--mg-b-size-8)) + var(--mg-b-size-min-height) + var(--mg-b-size-4))}.mg-c-input.mg-c-input--combobox.mg-c-input--width-full mg-popover{--mg-c-popover-max-width:var(--mg-c-input-list-width, var(--mg-c-popover-max-width))}.mg-c-input.mg-c-input--combobox.mg-c-input--width-full .mg-c-input__input-group-container{display:flex;width:100%}.mg-c-input.mg-c-input--combobox.mg-c-input--width-full .mg-c-input__box{flex:1}.mg-c-input.mg-c-input--combobox.mg-c-input--input-append .mg-c-input__box{padding-right:calc(var(--mg-b-size-min-height) + var(--mg-b-size-4))}.mg-c-input.mg-c-input--combobox.mg-c-input--input-append .mg-c-input__box-append{position:absolute;top:0;right:0}";
8
8
 
9
9
  /**
10
10
  * Check if object is an item
@@ -45,11 +45,11 @@ const isFetchmappings = (value) => {
45
45
  const MgInputCombobox = class {
46
46
  constructor(hostRef) {
47
47
  registerInstance(this, hostRef);
48
- this.valueChange = createEvent(this, "value-change");
49
- this.filterChange = createEvent(this, "filter-change");
50
- this.loadMore = createEvent(this, "load-more");
51
- this.inputValid = createEvent(this, "input-valid");
52
- this.fetchError = createEvent(this, "fetch-error");
48
+ this.valueChange = createEvent(this, "value-change", 7);
49
+ this.filterChange = createEvent(this, "filter-change", 7);
50
+ this.showMore = createEvent(this, "load-more", 7);
51
+ this.inputValid = createEvent(this, "input-valid", 7);
52
+ this.fetchError = createEvent(this, "fetch-error", 7);
53
53
  /************
54
54
  * Internal *
55
55
  ************/
@@ -135,10 +135,12 @@ const MgInputCombobox = class {
135
135
  */
136
136
  this.handleFilterInput = () => {
137
137
  this.checkValidity();
138
- if (this.hasDisplayedError)
138
+ if (this.hasDisplayedError) {
139
139
  this.setErrorMessage();
140
- if (!this.popoverDisplay)
140
+ }
141
+ if (!this.popoverDisplay) {
141
142
  this.popoverDisplay = true;
143
+ }
142
144
  // update filter with debounce to prevent filter update overload
143
145
  if (!this.debounce) {
144
146
  this.debounce = true;
@@ -195,7 +197,7 @@ const MgInputCombobox = class {
195
197
  const option = this.option || this.options.items.find(this.isCurrentOption);
196
198
  // Sets the value to the content of the focused option in the listbox.
197
199
  if (this.popoverDisplay)
198
- this.setValue(this.page.total > 0 ? option : null);
200
+ this.setValue(option);
199
201
  // Closes the popover.
200
202
  this.popoverDisplay = false;
201
203
  break;
@@ -316,28 +318,47 @@ const MgInputCombobox = class {
316
318
  else
317
319
  return '';
318
320
  };
321
+ /**
322
+ * Test if component has no value error message displayed
323
+ * @returns truthy if compent display no value error message
324
+ */
325
+ this.hasNoValueError = () => this.customError === CustomError.NoValue;
319
326
  /**
320
327
  * Check if input is valid
321
328
  */
322
329
  this.checkValidity = () => {
323
- this.setValidity(this.readonly || this.disabled || this.input.checkValidity());
330
+ // force validity with readonly|disabled states
331
+ this.setValidity(this.readonly || this.disabled);
324
332
  };
325
333
  /**
326
334
  * Set input error message
327
- * @param errorMessage - errorMessage override
328
335
  */
329
- this.setErrorMessage = (errorMessage) => {
336
+ this.setErrorMessage = () => {
330
337
  // Set error message
331
338
  this.errorMessage = undefined;
332
- // Does have a custom error message
333
- if (!this.valid && errorMessage !== undefined) {
334
- this.errorMessage = errorMessage;
335
- }
336
- // required
337
- else if (!this.valid && this.input.validity.valueMissing) {
338
- this.errorMessage = this.messages.errors.required;
339
+ if (!this.valid) {
340
+ // Does have a custom error message
341
+ if (this.customError !== undefined && !Object.values(CustomError).includes(this.customError)) {
342
+ this.errorMessage = this.customError;
343
+ }
344
+ // no items
345
+ else if (this.hasNoValueError()) {
346
+ this.errorMessage = this.messages.errors.noValue;
347
+ }
348
+ // required
349
+ else if (this.input.validity.valueMissing) {
350
+ this.errorMessage = this.messages.errors.required;
351
+ }
339
352
  }
340
353
  };
354
+ /**
355
+ * Reset error message
356
+ */
357
+ this.resetErrorMessage = () => {
358
+ this.checkValidity();
359
+ this.errorMessage = undefined;
360
+ this.hasDisplayedError = false;
361
+ };
341
362
  /**
342
363
  * Get filtered options from `filter` input value
343
364
  * @returns filtered options
@@ -362,8 +383,8 @@ const MgInputCombobox = class {
362
383
  else if (this.loadingAction === 'load-more') {
363
384
  index = this.page.items.length - this.page.baseIndex;
364
385
  }
365
- // when action require a loadMore we fetch the API else we report action to next tick
366
- // Set "load more" if action match OR if next item not available in the current page
386
+ // when action require a showMore we fetch the API else we report action to next tick
387
+ // Set "Show more" if action match OR if next item not available in the current page
367
388
  if (action.name === 'load-more') {
368
389
  // wait for new element render and update scroll position
369
390
  // set component loading
@@ -409,15 +430,15 @@ const MgInputCombobox = class {
409
430
  * @returns promise
410
431
  */
411
432
  this.goToNextPage = () => {
412
- this.loadMore.emit();
413
- if (Boolean(this.fetchurl)) {
433
+ this.showMore.emit();
434
+ if (this.fetchurl !== undefined) {
414
435
  return this.getOptions(typeof this.page.next === 'string' ? this.page.next : undefined).then(nextPage => {
415
- if (!Boolean(nextPage))
416
- return;
417
- // merge items from current page and next page
418
- const items = [...this.page.items, ...nextPage.items];
419
- // create new options pagination withe merged items
420
- this.options = new Paginate(items, { total: nextPage.total, next: nextPage.next, top: items.length });
436
+ if (isObject(nextPage)) {
437
+ // merge items from current page and next page
438
+ const items = [...this.page.items, ...nextPage.items];
439
+ // create new options pagination withe merged items
440
+ this.options = new Paginate(items, { total: nextPage.total, next: nextPage.next, top: items.length });
441
+ }
421
442
  });
422
443
  }
423
444
  else {
@@ -434,12 +455,20 @@ const MgInputCombobox = class {
434
455
  * @returns promise
435
456
  */
436
457
  this.updatePage = async () => {
437
- if (Boolean(this.fetchurl)) {
458
+ if (this.fetchurl !== undefined) {
438
459
  return this.getOptions().then(page => {
439
- if (!Boolean(page))
440
- return;
441
- // reset current options pagination from API response
442
- this.options = new Paginate(page.items, { total: page.total, next: page.next, top: page.top });
460
+ if (isObject(page)) {
461
+ // reset current options pagination from API response
462
+ this.options = new Paginate(page.items, { total: page.total, next: page.next, top: page.top });
463
+ // has items aren't updated with fetch mode we run the noValueError control here
464
+ if (this.filter.length === 0 && page.total === 0) {
465
+ this.displayError();
466
+ }
467
+ // force to reset error when noValueError is displaied
468
+ else if (this.invalid && this.hasNoValueError()) {
469
+ this.resetErrorMessage();
470
+ }
471
+ }
443
472
  });
444
473
  }
445
474
  else {
@@ -458,14 +487,16 @@ const MgInputCombobox = class {
458
487
  const response = await fetch(updateUrl, this.fetchoptions);
459
488
  if (!response.ok) {
460
489
  this.fetchError.emit(new Error(`${response.status} - ${response.statusText}`));
490
+ this.displayError();
461
491
  return;
462
492
  }
463
493
  const json = await response.json();
464
- const items = getObjectValueFromKey(json, this.fetchmappings.response.items).map((item) => ({
465
- title: getObjectValueFromKey(item, this.fetchmappings.response.itemTitle),
466
- value: this.fetchmappings.response.itemValue !== undefined ? getObjectValueFromKey(item, this.fetchmappings.response.itemValue) : item,
494
+ const defaultItems = [];
495
+ const items = getObjectValueFromKey(json, this.fetchmappings.response.items, defaultItems).map((item) => ({
496
+ title: getObjectValueFromKey(item, this.fetchmappings.response.itemTitle, typeof item === 'string' ? item : JSON.stringify(item)),
497
+ value: getObjectValueFromKey(item, this.fetchmappings.response.itemValue, item),
467
498
  }));
468
- const total = Number(getObjectValueFromKey(json, this.fetchmappings.response.total, 0));
499
+ const total = Number(getObjectValueFromKey(json, this.fetchmappings.response.total, defaultItems.length));
469
500
  let next = getObjectValueFromKey(json, this.fetchmappings.response.next);
470
501
  if (URL.canParse(updateUrl) && Boolean(next) && !URL.canParse(next)) {
471
502
  const previousUrl = new URL(updateUrl);
@@ -477,6 +508,7 @@ const MgInputCombobox = class {
477
508
  }
478
509
  catch (error) {
479
510
  this.fetchError.emit(error);
511
+ this.displayError();
480
512
  }
481
513
  };
482
514
  }
@@ -485,24 +517,35 @@ const MgInputCombobox = class {
485
517
  this.valueChange.emit(newValue);
486
518
  }
487
519
  watchItems(newValue) {
488
- if (Boolean(this.fetchurl) && !Boolean(newValue)) {
520
+ // fetch items
521
+ if (![undefined, null].includes(this.fetchurl) && [undefined, null].includes(newValue)) {
489
522
  // skip newValue check
490
523
  return;
491
524
  }
492
- else if (Boolean(this.fetchurl) && Boolean(newValue)) {
525
+ // invalid items
526
+ else if (![undefined, null].includes(this.fetchurl) && Array.isArray(newValue)) {
493
527
  throw new Error(`<mg-input-combobox> prop "items" values cannot be use with "fetchurl" prop defined. Passed value: ${toString(newValue)}.`);
494
528
  }
495
- // Empty options
496
- else if (Array.isArray(newValue) && newValue.length === 0) {
529
+ // Empty items
530
+ else if ([undefined, null].includes(newValue) || (Array.isArray(newValue) && newValue.length === 0)) {
497
531
  this.options = new Paginate([]);
532
+ this.displayError();
498
533
  }
499
534
  // String array
500
535
  else if (allItemsAreString(newValue)) {
501
536
  this.options = new Paginate(newValue.map(item => ({ title: item, value: item })), { total: newValue.length });
537
+ // force to reset error when noValueError is displayed
538
+ if (this.invalid && this.hasNoValueError()) {
539
+ this.resetErrorMessage();
540
+ }
502
541
  }
503
542
  // Object array
504
543
  else if (isItems(newValue)) {
505
544
  this.options = new Paginate(newValue, { total: newValue.length });
545
+ // force to reset error when noValueError is displayed
546
+ if (this.invalid && this.hasNoValueError()) {
547
+ this.resetErrorMessage();
548
+ }
506
549
  }
507
550
  else {
508
551
  throw new Error(`<mg-input-combobox> prop "items" values must be the same type, string or Option. Passed value: ${toString(newValue)}.`);
@@ -570,7 +613,7 @@ const MgInputCombobox = class {
570
613
  }
571
614
  }
572
615
  watchOptions(newValue) {
573
- this.page = newValue.getPage(0, Boolean(this.filter) ? this.optionsFilter : undefined);
616
+ this.page = newValue.getPage(0, this.filter.length > 0 ? this.optionsFilter : undefined);
574
617
  }
575
618
  watchFilter(newValue) {
576
619
  this.loadingWrapper({ name: 'load-data' });
@@ -636,8 +679,8 @@ const MgInputCombobox = class {
636
679
  throw new Error('<mg-input-combobox> method "setError()" param "errorMessage" must be a string.');
637
680
  }
638
681
  else {
639
- this.setValidity(valid);
640
- this.setErrorMessage(valid ? undefined : errorMessage);
682
+ this.setValidity(valid, errorMessage);
683
+ this.setErrorMessage();
641
684
  this.hasDisplayedError = this.invalid;
642
685
  }
643
686
  }
@@ -657,9 +700,7 @@ const MgInputCombobox = class {
657
700
  // - Keep everything in sync both inside and outside the component
658
701
  return new Promise(resolve => {
659
702
  requestAnimationFrame(() => {
660
- this.checkValidity();
661
- this.errorMessage = undefined;
662
- this.hasDisplayedError = false;
703
+ this.resetErrorMessage();
663
704
  resolve();
664
705
  });
665
706
  });
@@ -682,15 +723,34 @@ const MgInputCombobox = class {
682
723
  }
683
724
  /**
684
725
  * Method to set validity values
685
- * @param newValue - valid new value
726
+ * @param newValidValue - new valid value. `true` will bypass input check.
727
+ * @param customErrorMessage - custom error message
686
728
  */
687
- setValidity(newValue) {
729
+ setValidity(newValidValue, customErrorMessage) {
730
+ var _a;
688
731
  const oldValidValue = this.valid;
689
- this.valid = newValue;
732
+ let valid = newValidValue;
733
+ // Set custom validity
734
+ if (!valid && this.input !== undefined) {
735
+ // custom errror, start by reset it
736
+ this.customError = undefined;
737
+ if (isValidString(customErrorMessage)) {
738
+ this.customError = customErrorMessage;
739
+ }
740
+ // no value
741
+ else if ((this.fetchurl === undefined ? ((_a = this.items) !== null && _a !== void 0 ? _a : []).length : this.page.total) === 0) {
742
+ this.customError = CustomError.NoValue;
743
+ }
744
+ // get new input validity from validity state
745
+ valid = this.input.checkValidity() && this.customError === undefined;
746
+ }
747
+ // set valid/invalid props
748
+ this.valid = valid;
690
749
  this.invalid = !this.valid;
691
750
  // We need to send valid event even if it is the same value
692
- if (this.handlerInProgress === undefined || (this.handlerInProgress === 'blur' && this.valid !== oldValidValue))
751
+ if (this.handlerInProgress === undefined || (this.handlerInProgress === 'blur' && this.valid !== oldValidValue)) {
693
752
  this.inputValid.emit(this.valid);
753
+ }
694
754
  }
695
755
  /*************
696
756
  * Lifecycle *
@@ -731,15 +791,19 @@ const MgInputCombobox = class {
731
791
  const listId = `${this.identifier}-list`;
732
792
  const readonlyValue = this.getValueTitle();
733
793
  const withResetButton = this.value && !this.disabled;
794
+ const disabled = this.disabled || this.hasNoValueError();
734
795
  let popoverContent;
735
- if (((_a = this.page) === null || _a === void 0 ? void 0 : _a.items.length) > 0)
796
+ if (((_a = this.page) === null || _a === void 0 ? void 0 : _a.items.length) > 0) {
736
797
  popoverContent = 'list';
737
- else if (((_b = this.page) === null || _b === void 0 ? void 0 : _b.items.length) === 0 && Boolean(this.filter))
798
+ }
799
+ else if (((_b = this.page) === null || _b === void 0 ? void 0 : _b.items.length) === 0 && this.filter.length > 0) {
738
800
  popoverContent = 'notfound';
739
- else if (((_c = this.page) === null || _c === void 0 ? void 0 : _c.items.length) === 0)
801
+ }
802
+ else if (((_c = this.page) === null || _c === void 0 ? void 0 : _c.items.length) === 0) {
740
803
  popoverContent = 'notavailable';
804
+ }
741
805
  let activeDescendant;
742
- if (Boolean((_d = this.option) === null || _d === void 0 ? void 0 : _d.value)) {
806
+ if (![null, undefined].includes((_d = this.option) === null || _d === void 0 ? void 0 : _d.value)) {
743
807
  activeDescendant = this.option.value;
744
808
  }
745
809
  else if (typeof this.value === 'string') {
@@ -748,12 +812,12 @@ const MgInputCombobox = class {
748
812
  else {
749
813
  activeDescendant = (_e = this.value) === null || _e === void 0 ? void 0 : _e.value;
750
814
  }
751
- return (h("mg-input", { key: 'd11ca521c7f2400edd4fa006a929cf6b2d19ef80', label: this.label, identifier: this.identifier, class: this.classCollection.classes.join(' '), ariaDescribedbyIDs: popoverContent && popoverContent !== 'list' ? [popoverContent] : [], labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: this.required, tooltip: this.tooltip, tooltipPosition: this.readonly && this.value === undefined ? 'label' : this.tooltipPosition, helpText: this.helpText, errorMessage: this.errorMessage }, this.readonly ? (readonlyValue && h("b", { class: "mg-c-input__readonly-value" }, readonlyValue)) : (h("mg-popover", { identifier: this.popoverId, placement: "bottom-start", display: this.popoverDisplay, "arrow-hide": true, style: {
815
+ return (h("mg-input", { key: 'fa0977713a1150c39b4f989bbb139e0e345b4c5f', label: this.label, identifier: this.identifier, class: this.classCollection.classes.join(' '), ariaDescribedbyIDs: popoverContent && popoverContent !== 'list' ? popoverContent : undefined, labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: this.required, tooltip: this.tooltip, tooltipPosition: this.readonly && this.value === undefined ? 'label' : this.tooltipPosition, helpText: this.helpText, errorMessage: defineErrorMessage(this.errorMessage, this.noValueErrorDetail) }, this.readonly ? (readonlyValue && h("b", { class: "mg-c-input__readonly-value" }, readonlyValue)) : (h("mg-popover", { identifier: this.popoverId, placement: "bottom-start", display: this.popoverDisplay, "arrow-hide": true, style: {
752
816
  '--mg-c-input-list-width': Boolean((_f = this.input) === null || _f === void 0 ? void 0 : _f.offsetWidth) ? `${this.input.offsetWidth}px` : undefined,
753
- }, "data-fallback-placement": "bottom-end", "onDisplay-change": this.handlePopoverDisplay }, h("div", { class: "mg-c-input__input-group-container" }, h("mg-icon", { icon: "magnifying-glass" }), h("input", { type: "text", role: "combobox", class: "mg-c-input__box mg-c-input__box--width", value: this.filter, id: this.identifier, name: this.name, placeholder: this.placeholder, title: this.placeholder, disabled: this.disabled, required: this.required, autocomplete: "off", "aria-autocomplete": "list", "aria-expanded": this.popoverDisplay.toString(), "aria-controls": listId, "aria-invalid": (this.invalid === true).toString(), "aria-activedescendant": formatID(activeDescendant), onInput: this.handleFilterInput, onBlur: this.handleFilterBlur, onFocus: this.handleFilterFocus, onKeyDown: this.handleFilterKeydown, ref: (el) => {
817
+ }, "data-fallback-placement": "bottom-end", "onDisplay-change": this.handlePopoverDisplay }, h("div", { class: "mg-c-input__input-group-container" }, h("mg-icon", { icon: "magnifying-glass" }), h("input", { type: "text", role: "combobox", class: "mg-c-input__box mg-c-input__box--width", value: this.filter, id: this.identifier, name: this.name, placeholder: this.placeholder, title: this.placeholder, disabled: disabled, required: this.required, autocomplete: "off", "aria-autocomplete": "list", "aria-expanded": this.popoverDisplay.toString(), "aria-controls": listId, "aria-invalid": (this.invalid === true).toString(), "aria-activedescendant": formatID(activeDescendant), onInput: this.handleFilterInput, onBlur: this.handleFilterBlur, onFocus: this.handleFilterFocus, onKeyDown: this.handleFilterKeydown, ref: (el) => {
754
818
  if (el !== null)
755
819
  this.input = el;
756
- } }), withResetButton ? (h("mg-button", { class: "mg-c-input__box-append mg-c-input__reset", variant: "flat", "is-icon": true, label: this.messages.general.reset, "aria-controls": this.identifier, tabindex: "-1", onClick: this.handleResetButton }, h("mg-icon", { icon: "cross" }))) : (h("mg-button", { class: "mg-c-input__box-append", variant: "flat", "is-icon": true, label: this.itemsLabel, tabindex: "-1", disabled: this.disabled }, h("mg-icon", { icon: `chevron-${this.popoverDisplay ? 'up' : 'down'}` })))), h("div", { slot: "content", class: "mg-c-input__popover-container" }, popoverContent === 'list' && [
820
+ } }), withResetButton ? (h("mg-button", { class: "mg-c-input__box-append mg-c-input__reset", variant: "flat", "is-icon": true, label: this.messages.general.reset, "aria-controls": this.identifier, tabindex: "-1", onClick: this.handleResetButton, disabled: disabled }, h("mg-icon", { icon: "cross" }))) : (h("mg-button", { class: "mg-c-input__box-append", variant: "flat", "is-icon": true, label: this.itemsLabel, tabindex: "-1", disabled: disabled }, h("mg-icon", { icon: `chevron-${this.popoverDisplay ? 'up' : 'down'}` })))), h("div", { slot: "content", class: "mg-c-input__popover-container" }, popoverContent === 'list' && [
757
821
  // eslint-disable-next-line jsx-a11y/role-supports-aria-props
758
822
  h("ul", { key: "list", class: "mg-c-input__input-list", role: "listbox", id: listId, "aria-label": this.itemsLabel, "aria-setsize": this.page.total }, this.page.items.map(option => {
759
823
  var _a;
@@ -769,7 +833,7 @@ const MgInputCombobox = class {
769
833
  this.page.next && (h("mg-button", { key: "load-more", variant: "flat", class: "mg-c-input__load-more", tabIndex: -1, disabled: this.isLoading, "full-width": true, "disable-on-click": true, onClick: this.handleLoadMoreButton, "aria-controls": listId, ref: (el) => {
770
834
  if (el !== null)
771
835
  this.loadMoreElement = el;
772
- } }, h("mg-icon", { icon: "chevron-down" }), this.messages.input.combobox.loadMore)),
836
+ } }, h("mg-icon", { icon: "chevron-down" }), this.messages.input.showMore)),
773
837
  ], popoverContent === 'notfound' && (h("p", { id: popoverContent, class: "mg-c-input__popover-info" }, this.messages.input.combobox.notFound)), popoverContent === 'notavailable' && (h("p", { id: popoverContent, class: "mg-c-input__popover-info" }, this.messages.input.combobox.notAvailable)))))));
774
838
  }
775
839
  get element() { return getElement(this); }
@@ -792,6 +856,3 @@ const MgInputCombobox = class {
792
856
  MgInputCombobox.style = mgInputComboboxCss;
793
857
 
794
858
  export { MgInputCombobox as mg_input_combobox };
795
- //# sourceMappingURL=mg-input-combobox.entry.js.map
796
-
797
- //# sourceMappingURL=mg-input-combobox.entry.js.map