@mgdis/mg-components 5.26.0 → 5.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (255) hide show
  1. package/dist/cjs/{index-c585c382.js → index-1d560837.js} +97 -81
  2. package/dist/cjs/index-1d560837.js.map +1 -0
  3. package/dist/cjs/{index-0a2783ee.js → index-7072369e.js} +17 -5
  4. package/dist/cjs/index-7072369e.js.map +1 -0
  5. package/dist/cjs/loader.cjs.js +2 -2
  6. package/dist/cjs/{mg-action-more_34.cjs.entry.js → mg-action-more_35.cjs.entry.js} +613 -694
  7. package/dist/cjs/mg-action-more_35.cjs.entry.js.map +1 -0
  8. package/dist/cjs/mg-components.cjs.js +3 -3
  9. package/dist/cjs/mg-components.cjs.js.map +1 -1
  10. package/dist/cjs/mg-item-more.cjs.entry.js +7 -6
  11. package/dist/cjs/mg-item-more.cjs.entry.js.map +1 -1
  12. package/dist/cjs/mg-loader.cjs.entry.js +3 -3
  13. package/dist/cjs/mg-loader.cjs.entry.js.map +1 -1
  14. package/dist/collection/assets/icons/index.js +1 -206
  15. package/dist/collection/assets/icons/index.js.map +1 -1
  16. package/dist/collection/collection-manifest.json +4 -3
  17. package/dist/collection/components/atoms/mg-badge/mg-badge.js +2 -2
  18. package/dist/collection/components/atoms/mg-badge/mg-badge.js.map +1 -1
  19. package/dist/collection/components/atoms/mg-button/mg-button.js +6 -6
  20. package/dist/collection/components/atoms/mg-button/mg-button.js.map +1 -1
  21. package/dist/collection/components/atoms/mg-card/mg-card.js +2 -2
  22. package/dist/collection/components/atoms/mg-card/mg-card.js.map +1 -1
  23. package/dist/collection/components/atoms/mg-character-left/mg-character-left.js +2 -2
  24. package/dist/collection/components/atoms/mg-character-left/mg-character-left.js.map +1 -1
  25. package/dist/collection/components/atoms/mg-divider/mg-divider.js +1 -1
  26. package/dist/collection/components/atoms/mg-icon/mg-icon.conf.js.map +1 -1
  27. package/dist/collection/components/atoms/mg-icon/mg-icon.js +13 -8
  28. package/dist/collection/components/atoms/mg-icon/mg-icon.js.map +1 -1
  29. package/dist/collection/components/atoms/mg-input-title/mg-input-title.js +3 -3
  30. package/dist/collection/components/atoms/mg-input-title/mg-input-title.js.map +1 -1
  31. package/dist/collection/components/atoms/mg-tag/mg-tag.js +3 -3
  32. package/dist/collection/components/atoms/mg-tag/mg-tag.js.map +1 -1
  33. package/dist/collection/components/molecules/inputs/mg-input/mg-input.conf.js +21 -0
  34. package/dist/collection/components/molecules/inputs/mg-input/mg-input.conf.js.map +1 -0
  35. package/dist/collection/components/molecules/inputs/mg-input/mg-input.js +509 -0
  36. package/dist/collection/components/molecules/inputs/mg-input/mg-input.js.map +1 -0
  37. package/dist/collection/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxList.js +1 -5
  38. package/dist/collection/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxList.js.map +1 -1
  39. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.js +7 -7
  40. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.js.map +1 -1
  41. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.js.map +1 -1
  42. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +67 -45
  43. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js.map +1 -1
  44. package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +31 -13
  45. package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js.map +1 -1
  46. package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +48 -18
  47. package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js.map +1 -1
  48. package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +54 -15
  49. package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js.map +1 -1
  50. package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +40 -8
  51. package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js.map +1 -1
  52. package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +44 -13
  53. package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js.map +1 -1
  54. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +63 -24
  55. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js.map +1 -1
  56. package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +47 -15
  57. package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js.map +1 -1
  58. package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +30 -21
  59. package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js.map +1 -1
  60. package/dist/collection/components/molecules/menu/mg-menu/mg-menu.js +3 -3
  61. package/dist/collection/components/molecules/menu/mg-menu/mg-menu.js.map +1 -1
  62. package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.conf.js +4 -0
  63. package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.conf.js.map +1 -1
  64. package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.js +43 -7
  65. package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.js.map +1 -1
  66. package/dist/collection/components/molecules/mg-action-more/mg-action-more.conf.js.map +1 -1
  67. package/dist/collection/components/molecules/mg-action-more/mg-action-more.js +41 -41
  68. package/dist/collection/components/molecules/mg-action-more/mg-action-more.js.map +1 -1
  69. package/dist/collection/components/molecules/mg-details/mg-details.js +1 -1
  70. package/dist/collection/components/molecules/mg-form/mg-form.js +4 -4
  71. package/dist/collection/components/molecules/mg-form/mg-form.js.map +1 -1
  72. package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js +3 -3
  73. package/dist/collection/components/molecules/mg-item-more/mg-item-more.conf.js.map +1 -1
  74. package/dist/collection/components/molecules/mg-item-more/mg-item-more.js +12 -11
  75. package/dist/collection/components/molecules/mg-item-more/mg-item-more.js.map +1 -1
  76. package/dist/collection/components/molecules/mg-loader/mg-loader.js +3 -3
  77. package/dist/collection/components/molecules/mg-loader/mg-loader.js.map +1 -1
  78. package/dist/collection/components/molecules/mg-message/mg-message.js +3 -3
  79. package/dist/collection/components/molecules/mg-message/mg-message.js.map +1 -1
  80. package/dist/collection/components/molecules/mg-modal/mg-modal.js +2 -2
  81. package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +4 -4
  82. package/dist/collection/components/molecules/mg-pagination/mg-pagination.js.map +1 -1
  83. package/dist/collection/components/molecules/mg-panel/mg-panel.js +4 -4
  84. package/dist/collection/components/molecules/mg-panel/mg-panel.js.map +1 -1
  85. package/dist/collection/components/molecules/mg-popover/mg-popover-content/mg-popover-content.js +1 -1
  86. package/dist/collection/components/molecules/mg-popover/mg-popover.js +2 -2
  87. package/dist/collection/components/molecules/mg-popover/mg-popover.js.map +1 -1
  88. package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.js +1 -1
  89. package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +1 -1
  90. package/dist/collection/locales/en/messages.json +10 -3
  91. package/dist/collection/locales/fr/messages.json +10 -3
  92. package/dist/collection/locales/index.conf.js +2 -0
  93. package/dist/collection/locales/index.conf.js.map +1 -0
  94. package/dist/collection/utils/playwright.fixture.js +1 -1
  95. package/dist/collection/utils/playwright.fixture.js.map +1 -1
  96. package/dist/components/index.es.js +12 -12
  97. package/dist/components/index.es.js.map +1 -1
  98. package/dist/components/index2.js +24 -8
  99. package/dist/components/index2.js.map +1 -1
  100. package/dist/components/mg-action-more.js +15 -15
  101. package/dist/components/mg-action-more.js.map +1 -1
  102. package/dist/components/mg-badge2.js +1 -1
  103. package/dist/components/mg-badge2.js.map +1 -1
  104. package/dist/components/mg-button2.js +1 -1
  105. package/dist/components/mg-button2.js.map +1 -1
  106. package/dist/components/mg-card2.js +2 -2
  107. package/dist/components/mg-card2.js.map +1 -1
  108. package/dist/components/mg-character-left2.js +1 -1
  109. package/dist/components/mg-character-left2.js.map +1 -1
  110. package/dist/components/mg-details.js +1 -1
  111. package/dist/components/mg-divider.js +1 -1
  112. package/dist/components/mg-form.js +1 -1
  113. package/dist/components/mg-form.js.map +1 -1
  114. package/dist/components/mg-icon2.js +4 -416
  115. package/dist/components/mg-icon2.js.map +1 -1
  116. package/dist/components/mg-illustrated-message.js +3 -3
  117. package/dist/components/mg-input-checkbox-paginated2.js +13 -11
  118. package/dist/components/mg-input-checkbox-paginated2.js.map +1 -1
  119. package/dist/components/mg-input-checkbox.js +71 -49
  120. package/dist/components/mg-input-checkbox.js.map +1 -1
  121. package/dist/components/mg-input-date.js +29 -11
  122. package/dist/components/mg-input-date.js.map +1 -1
  123. package/dist/components/mg-input-numeric.js +41 -12
  124. package/dist/components/mg-input-numeric.js.map +1 -1
  125. package/dist/components/mg-input-password.js +56 -12
  126. package/dist/components/mg-input-password.js.map +1 -1
  127. package/dist/components/mg-input-radio.js +41 -10
  128. package/dist/components/mg-input-radio.js.map +1 -1
  129. package/dist/components/mg-input-select2.js +42 -12
  130. package/dist/components/mg-input-select2.js.map +1 -1
  131. package/dist/components/mg-input-text2.js +50 -18
  132. package/dist/components/mg-input-text2.js.map +1 -1
  133. package/dist/components/mg-input-textarea.js +44 -13
  134. package/dist/components/mg-input-textarea.js.map +1 -1
  135. package/dist/components/mg-input-title2.js +1 -1
  136. package/dist/components/mg-input-title2.js.map +1 -1
  137. package/dist/components/mg-input-toggle.js +35 -22
  138. package/dist/components/mg-input-toggle.js.map +1 -1
  139. package/dist/components/mg-input.d.ts +11 -0
  140. package/dist/components/mg-input.js +8 -0
  141. package/dist/components/mg-input.js.map +1 -0
  142. package/dist/components/mg-input2.js +352 -0
  143. package/dist/components/mg-input2.js.map +1 -0
  144. package/dist/components/mg-item-more.js +7 -6
  145. package/dist/components/mg-item-more.js.map +1 -1
  146. package/dist/components/mg-loader.js +1 -1
  147. package/dist/components/mg-loader.js.map +1 -1
  148. package/dist/components/mg-menu-item2.js +21 -4
  149. package/dist/components/mg-menu-item2.js.map +1 -1
  150. package/dist/components/mg-menu2.js +1 -1
  151. package/dist/components/mg-menu2.js.map +1 -1
  152. package/dist/components/mg-message.js +1 -1
  153. package/dist/components/mg-message.js.map +1 -1
  154. package/dist/components/mg-modal.js +3 -3
  155. package/dist/components/mg-modal.js.map +1 -1
  156. package/dist/components/mg-pagination2.js +12 -6
  157. package/dist/components/mg-pagination2.js.map +1 -1
  158. package/dist/components/mg-panel.js +15 -9
  159. package/dist/components/mg-panel.js.map +1 -1
  160. package/dist/components/mg-popover-content2.js +1 -1
  161. package/dist/components/mg-popover2.js +2 -2
  162. package/dist/components/mg-popover2.js.map +1 -1
  163. package/dist/components/mg-skip-links.js +1 -1
  164. package/dist/components/mg-tabs.js +1 -1
  165. package/dist/components/mg-tag.js +1 -1
  166. package/dist/components/mg-tag.js.map +1 -1
  167. package/dist/esm/{index-bb17de92.js → index-445fc2a0.js} +97 -81
  168. package/dist/esm/index-445fc2a0.js.map +1 -0
  169. package/dist/esm/{index-ad78ece7.js → index-629a42c7.js} +17 -5
  170. package/dist/esm/index-629a42c7.js.map +1 -0
  171. package/dist/esm/loader.js +3 -3
  172. package/dist/esm/{mg-action-more_34.entry.js → mg-action-more_35.entry.js} +613 -695
  173. package/dist/esm/mg-action-more_35.entry.js.map +1 -0
  174. package/dist/esm/mg-components.js +4 -4
  175. package/dist/esm/mg-components.js.map +1 -1
  176. package/dist/esm/mg-item-more.entry.js +7 -6
  177. package/dist/esm/mg-item-more.entry.js.map +1 -1
  178. package/dist/esm/mg-loader.entry.js +3 -3
  179. package/dist/esm/mg-loader.entry.js.map +1 -1
  180. package/dist/mg-components/locales/en/messages.json +10 -3
  181. package/dist/mg-components/locales/fr/messages.json +10 -3
  182. package/dist/mg-components/mg-components.esm.js +1 -1
  183. package/dist/mg-components/mg-components.esm.js.map +1 -1
  184. package/dist/mg-components/p-3ebe6845.js +2 -0
  185. package/dist/mg-components/p-3ebe6845.js.map +1 -0
  186. package/dist/mg-components/{p-2db8355d.entry.js → p-6735e4b2.entry.js} +2 -2
  187. package/dist/mg-components/p-6735e4b2.entry.js.map +1 -0
  188. package/dist/mg-components/p-9dfaa41f.js +3 -0
  189. package/dist/mg-components/p-9dfaa41f.js.map +1 -0
  190. package/dist/mg-components/p-b3e0f7b3.entry.js +2 -0
  191. package/dist/mg-components/p-b3e0f7b3.entry.js.map +1 -0
  192. package/dist/mg-components/{p-d80b844d.entry.js → p-fe347f48.entry.js} +2 -2
  193. package/dist/mg-components/{p-d80b844d.entry.js.map → p-fe347f48.entry.js.map} +1 -1
  194. package/dist/types/components/atoms/mg-badge/mg-badge.d.ts +1 -1
  195. package/dist/types/components/atoms/mg-button/mg-button.d.ts +5 -5
  196. package/dist/types/components/atoms/mg-card/mg-card.d.ts +1 -1
  197. package/dist/types/components/atoms/mg-character-left/mg-character-left.d.ts +1 -1
  198. package/dist/types/components/atoms/mg-icon/mg-icon.conf.d.ts +5 -0
  199. package/dist/types/components/atoms/mg-icon/mg-icon.d.ts +3 -3
  200. package/dist/types/components/atoms/mg-input-title/mg-input-title.d.ts +2 -2
  201. package/dist/types/components/atoms/mg-tag/mg-tag.d.ts +2 -2
  202. package/dist/types/components/molecules/inputs/mg-input/mg-input.conf.d.ts +35 -0
  203. package/dist/types/components/molecules/inputs/mg-input/mg-input.d.ts +139 -0
  204. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.d.ts +5 -5
  205. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.d.ts +3 -5
  206. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.d.ts +13 -12
  207. package/dist/types/components/molecules/inputs/mg-input-date/mg-input-date.d.ts +8 -6
  208. package/dist/types/components/molecules/inputs/mg-input-numeric/mg-input-numeric.d.ts +12 -9
  209. package/dist/types/components/molecules/inputs/mg-input-password/mg-input-password.d.ts +16 -5
  210. package/dist/types/components/molecules/inputs/mg-input-radio/mg-input-radio.d.ts +7 -3
  211. package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.d.ts +7 -4
  212. package/dist/types/components/molecules/inputs/mg-input-text/mg-input-text.d.ts +18 -12
  213. package/dist/types/components/molecules/inputs/mg-input-textarea/mg-input-textarea.d.ts +12 -9
  214. package/dist/types/components/molecules/inputs/mg-input-toggle/mg-input-toggle.d.ts +12 -12
  215. package/dist/types/components/molecules/menu/mg-menu/mg-menu.d.ts +1 -1
  216. package/dist/types/components/molecules/menu/mg-menu-item/mg-menu-item.conf.d.ts +8 -0
  217. package/dist/types/components/molecules/menu/mg-menu-item/mg-menu-item.d.ts +10 -5
  218. package/dist/types/components/molecules/mg-action-more/mg-action-more.conf.d.ts +7 -16
  219. package/dist/types/components/molecules/mg-action-more/mg-action-more.d.ts +9 -9
  220. package/dist/types/components/molecules/mg-form/mg-form.d.ts +3 -3
  221. package/dist/types/components/molecules/mg-item-more/mg-item-more.conf.d.ts +3 -12
  222. package/dist/types/components/molecules/mg-item-more/mg-item-more.d.ts +4 -3
  223. package/dist/types/components/molecules/mg-loader/mg-loader.d.ts +2 -2
  224. package/dist/types/components/molecules/mg-message/mg-message.d.ts +2 -2
  225. package/dist/types/components/molecules/mg-pagination/mg-pagination.d.ts +2 -2
  226. package/dist/types/components/molecules/mg-panel/mg-panel.d.ts +3 -3
  227. package/dist/types/components/molecules/mg-popover/mg-popover.d.ts +1 -1
  228. package/dist/types/components.d.ts +203 -92
  229. package/dist/types/locales/index.conf.d.ts +4 -0
  230. package/ide/intellij/web-types.json +243 -18
  231. package/ide/vscode/html-custom-data.json +2766 -1332
  232. package/package.json +23 -27
  233. package/dist/cjs/index-0a2783ee.js.map +0 -1
  234. package/dist/cjs/index-c585c382.js.map +0 -1
  235. package/dist/cjs/mg-action-more_34.cjs.entry.js.map +0 -1
  236. package/dist/collection/components/molecules/inputs/MgInput.conf.js +0 -14
  237. package/dist/collection/components/molecules/inputs/MgInput.conf.js.map +0 -1
  238. package/dist/collection/components/molecules/inputs/MgInput.js +0 -125
  239. package/dist/collection/components/molecules/inputs/MgInput.js.map +0 -1
  240. package/dist/collection/utils/playwright.e2e.test.utils.js +0 -100
  241. package/dist/collection/utils/playwright.e2e.test.utils.js.map +0 -1
  242. package/dist/components/MgInput.js +0 -155
  243. package/dist/components/MgInput.js.map +0 -1
  244. package/dist/esm/index-ad78ece7.js.map +0 -1
  245. package/dist/esm/index-bb17de92.js.map +0 -1
  246. package/dist/esm/mg-action-more_34.entry.js.map +0 -1
  247. package/dist/mg-components/p-2db8355d.entry.js.map +0 -1
  248. package/dist/mg-components/p-95653110.entry.js +0 -2
  249. package/dist/mg-components/p-95653110.entry.js.map +0 -1
  250. package/dist/mg-components/p-bc62d75e.js +0 -3
  251. package/dist/mg-components/p-bc62d75e.js.map +0 -1
  252. package/dist/mg-components/p-d41aa78b.js +0 -2
  253. package/dist/mg-components/p-d41aa78b.js.map +0 -1
  254. package/dist/types/components/molecules/inputs/MgInput.conf.d.ts +0 -46
  255. package/dist/types/components/molecules/inputs/MgInput.d.ts +0 -13
@@ -1,2 +1,2 @@
1
- import{r as e,h as t,g as i}from"./p-bc62d75e.js";import{B as a,i as r}from"./p-d41aa78b.js";const n=".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}}:host{display:block}.mg-c-loader{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.4rem;text-align:center}";const s=n;const o=class{constructor(t){e(this,t);this.message=undefined;this.messageHide=undefined}watchMessage(e){if(e&&!a(e))throw new Error('<mg-loader> prop "message" must be a valid string.')}componentWillLoad(){this.messages=r(this.element).messages;this.watchMessage(this.message)}render(){return t("div",{key:"f308fffd47bf8ef4ca08364bc55f2966ed626a9f",class:"mg-c-loader","aria-live":"polite"},t("mg-icon",{key:"3d99e25ed45daed36673314dee7f9d2f1672ef99",icon:"loader",spin:true}),t("span",{key:"bcdbaa246385817265f386df86cb29b848c9797b",class:{"mg-u-visually-hidden":this.messageHide}},this.message||this.messages.loader.inProgess))}get element(){return i(this)}static get watchers(){return{message:["watchMessage"]}}};o.style=s;export{o as mg_loader};
2
- //# sourceMappingURL=p-d80b844d.entry.js.map
1
+ import{r as e,h as t,g as i}from"./p-9dfaa41f.js";import{B as r,i as a}from"./p-3ebe6845.js";const n=".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}}:host{display:block}.mg-c-loader{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.4rem;text-align:center}";const s=n;const o=class{constructor(t){e(this,t);this.message=undefined;this.messageHide=undefined}watchMessage(e){if(e&&!r(e))throw new Error('<mg-loader> prop "message" must be a valid string.')}componentWillLoad(){this.messages=a(this.element).messages;this.watchMessage(this.message)}render(){return t("div",{key:"7f1fed85371b79f77fbfc9cc26b80e1c96c5de0e",class:"mg-c-loader","aria-live":"polite"},t("mg-icon",{key:"1756ee0034e15479e7d47e46b6d8e757d4d845f9",icon:"loader",spin:true}),t("span",{key:"341cc3c7531397e63ab6cf776b8932f3c9c7fd7a",class:{"mg-u-visually-hidden":this.messageHide}},this.message||this.messages.loader.inProgess))}get element(){return i(this)}static get watchers(){return{message:["watchMessage"]}}};o.style=s;export{o as mg_loader};
2
+ //# sourceMappingURL=p-fe347f48.entry.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["mgLoaderCss","MgLoaderStyle0","MgLoader","watchMessage","newValue","isValidString","Error","componentWillLoad","this","messages","initLocales","element","message","render","h","key","class","icon","spin","messageHide","loader","inProgess"],"sources":["../styles/dist/components/mg-loader.css?tag=mg-loader&encapsulation=shadow","src/components/molecules/mg-loader/mg-loader.tsx"],"sourcesContent":[".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}}:host{display:block}.mg-c-loader{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.4rem;text-align:center}/*# sourceMappingURL=mg-loader.css.map */\n","import { Component, Element, h, Prop, Watch } from '@stencil/core';\nimport { initLocales } from '../../../locales';\nimport { isValidString } from '@mgdis/stencil-helpers';\n\n@Component({\n tag: 'mg-loader',\n styleUrl: '../../../../node_modules/@mgdis/styles/dist/components/mg-loader.css',\n shadow: true,\n})\nexport class MgLoader {\n /************\n * Internal *\n ************/\n\n // Locales\n private messages;\n\n /**************\n * Decorators *\n **************/\n\n /**\n * Get component DOM element\n */\n @Element() element: HTMLMgLoaderElement;\n\n /**\n * Override loader message\n */\n @Prop() message: string;\n @Watch('message')\n watchMessage(newValue: MgLoader['message']): void {\n if (newValue && !isValidString(newValue)) throw new Error('<mg-loader> prop \"message\" must be a valid string.');\n }\n\n /**\n * Hide message\n */\n @Prop() messageHide: boolean;\n\n /*************\n * Lifecycle *\n *************/\n\n /**\n * Check if component props are well configured on init\n */\n componentWillLoad(): void {\n // Get locales\n this.messages = initLocales(this.element).messages;\n\n // validate props\n this.watchMessage(this.message);\n }\n\n /**\n * Render\n * @returns HTML Element\n */\n render(): HTMLElement {\n return (\n <div class=\"mg-c-loader\" aria-live=\"polite\">\n <mg-icon icon=\"loader\" spin></mg-icon>\n <span class={{ 'mg-u-visually-hidden': this.messageHide }}>{this.message || this.messages.loader.inProgess}</span>\n </div>\n );\n }\n}\n"],"mappings":"6FAAA,MAAMA,EAAc,0jBACpB,MAAAC,EAAeD,E,MCQFE,EAAQ,M,2EAsBnB,YAAAC,CAAaC,GACX,GAAIA,IAAaC,EAAcD,GAAW,MAAM,IAAIE,MAAM,qD,CAe5D,iBAAAC,GAEEC,KAAKC,SAAWC,EAAYF,KAAKG,SAASF,SAG1CD,KAAKL,aAAaK,KAAKI,Q,CAOzB,MAAAC,GACE,OACEC,EAAA,OAAAC,IAAA,2CAAKC,MAAM,cAAa,YAAW,UACjCF,EAAA,WAAAC,IAAA,2CAASE,KAAK,SAASC,KAAI,OAC3BJ,EAAA,QAAAC,IAAA,2CAAMC,MAAO,CAAE,uBAAwBR,KAAKW,cAAgBX,KAAKI,SAAWJ,KAAKC,SAASW,OAAOC,W"}
1
+ {"version":3,"names":["mgLoaderCss","MgLoaderStyle0","MgLoader","watchMessage","newValue","isValidString","Error","componentWillLoad","this","messages","initLocales","element","message","render","h","key","class","icon","spin","messageHide","loader","inProgess"],"sources":["../styles/dist/components/mg-loader.css?tag=mg-loader&encapsulation=shadow","src/components/molecules/mg-loader/mg-loader.tsx"],"sourcesContent":[".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}}:host{display:block}.mg-c-loader{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.4rem;text-align:center}/*# sourceMappingURL=mg-loader.css.map */\n","import { Component, Element, h, Prop, Watch } from '@stencil/core';\nimport { initLocales } from '../../../locales';\nimport { isValidString } from '@mgdis/stencil-helpers';\n\n@Component({\n tag: 'mg-loader',\n styleUrl: '../../../../node_modules/@mgdis/styles/dist/components/mg-loader.css',\n shadow: true,\n})\nexport class MgLoader {\n /************\n * Internal *\n ************/\n\n // Locales\n private messages;\n\n /**************\n * Decorators *\n **************/\n\n /**\n * Get component DOM element\n */\n @Element() element: HTMLMgLoaderElement;\n\n /**\n * Override loader message\n */\n @Prop() message?: string;\n @Watch('message')\n watchMessage(newValue: MgLoader['message']): void {\n if (newValue && !isValidString(newValue)) throw new Error('<mg-loader> prop \"message\" must be a valid string.');\n }\n\n /**\n * Hide message\n */\n @Prop() messageHide?: boolean;\n\n /*************\n * Lifecycle *\n *************/\n\n /**\n * Check if component props are well configured on init\n */\n componentWillLoad(): void {\n // Get locales\n this.messages = initLocales(this.element).messages;\n\n // validate props\n this.watchMessage(this.message);\n }\n\n /**\n * Render\n * @returns HTML Element\n */\n render(): HTMLElement {\n return (\n <div class=\"mg-c-loader\" aria-live=\"polite\">\n <mg-icon icon=\"loader\" spin></mg-icon>\n <span class={{ 'mg-u-visually-hidden': this.messageHide }}>{this.message || this.messages.loader.inProgess}</span>\n </div>\n );\n }\n}\n"],"mappings":"6FAAA,MAAMA,EAAc,0jBACpB,MAAAC,EAAeD,E,MCQFE,EAAQ,M,2EAsBnB,YAAAC,CAAaC,GACX,GAAIA,IAAaC,EAAcD,GAAW,MAAM,IAAIE,MAAM,qD,CAe5D,iBAAAC,GAEEC,KAAKC,SAAWC,EAAYF,KAAKG,SAASF,SAG1CD,KAAKL,aAAaK,KAAKI,Q,CAOzB,MAAAC,GACE,OACEC,EAAA,OAAAC,IAAA,2CAAKC,MAAM,cAAa,YAAW,UACjCF,EAAA,WAAAC,IAAA,2CAASE,KAAK,SAASC,KAAI,OAC3BJ,EAAA,QAAAC,IAAA,2CAAMC,MAAO,CAAE,uBAAwBR,KAAKW,cAAgBX,KAAKI,SAAWJ,KAAKC,SAASW,OAAOC,W"}
@@ -27,7 +27,7 @@ export declare class MgBadge {
27
27
  /**
28
28
  * Define if button is using outline style
29
29
  */
30
- outline: boolean;
30
+ outline?: boolean;
31
31
  validateOutline(newValue: MgBadge['outline']): void;
32
32
  /**
33
33
  * Component classes
@@ -24,16 +24,16 @@ export declare class MgButton {
24
24
  /**
25
25
  * Identifier is used for the element ID (id is a reserved prop in Stencil.js)
26
26
  */
27
- identifier: string;
27
+ identifier?: string;
28
28
  /**
29
29
  * aria-label
30
30
  * In case button text is not explicit enough
31
31
  */
32
- label: string;
32
+ label?: string;
33
33
  /**
34
34
  * Define button type
35
35
  */
36
- type: ButtonType;
36
+ type?: ButtonType;
37
37
  /**
38
38
  * Set button to full-width
39
39
  */
@@ -43,11 +43,11 @@ export declare class MgButton {
43
43
  * Define form id to attach button with.
44
44
  * If this attribute is not set, the <button> is associated with its ancestor <form> element.
45
45
  */
46
- form: string;
46
+ form?: string;
47
47
  /**
48
48
  * Disable button
49
49
  */
50
- disabled: boolean;
50
+ disabled?: boolean;
51
51
  disabledHandler(isDisabled: MgButton['disabled']): void;
52
52
  /**
53
53
  * Define if button is round.
@@ -24,7 +24,7 @@ export declare class MgCard {
24
24
  */
25
25
  classCollection: ClassList;
26
26
  /**
27
- * Methode to set default varianStyle props
27
+ * Method to set default varianStyle props
28
28
  * needeed has stencil doesn't know that props is mutated when updated in prop watcher
29
29
  */
30
30
  private setDefaultVariantStyle;
@@ -14,7 +14,7 @@ export declare class MgCharacterLeft {
14
14
  * Sets an `id` attribute.
15
15
  * Needed by the input for accessibility `aria-decribedby`.
16
16
  */
17
- identifier: string;
17
+ identifier?: string;
18
18
  /**
19
19
  * Sets the characters to count
20
20
  */
@@ -1,3 +1,8 @@
1
+ import { icons } from '../../../assets/icons';
2
+ /**
3
+ * List of all possibles icons
4
+ */
5
+ export type IconType = keyof typeof icons;
1
6
  /**
2
7
  * List of all possibles sizes
3
8
  */
@@ -1,4 +1,4 @@
1
- import { IconVariantType, IconSizeType, IconVariantStyleType } from './mg-icon.conf';
1
+ import { type IconType, type IconSizeType, type IconVariantType, type IconVariantStyleType } from './mg-icon.conf';
2
2
  import { ClassList } from '@mgdis/stencil-helpers';
3
3
  export declare class MgIcon {
4
4
  private svg;
@@ -9,7 +9,7 @@ export declare class MgIcon {
9
9
  /**
10
10
  * Icon to display.
11
11
  */
12
- icon: string;
12
+ icon: IconType;
13
13
  validateIcon(newValue: MgIcon['icon'], oldValue?: MgIcon['icon']): void;
14
14
  /**
15
15
  * Define icon size
@@ -19,7 +19,7 @@ export declare class MgIcon {
19
19
  /**
20
20
  * Define icon variant color
21
21
  */
22
- variant: IconVariantType;
22
+ variant?: IconVariantType;
23
23
  validateVariant(newValue: MgIcon['variant'], oldValue?: MgIcon['variant']): void;
24
24
  /**
25
25
  * Define icon color variant style
@@ -7,11 +7,11 @@ export declare class MgInputTitle {
7
7
  /**
8
8
  * If input is required an asterisk is added at the end of the label
9
9
  */
10
- required: boolean;
10
+ required?: boolean;
11
11
  /**
12
12
  * If input is required an asterisk is added at the end of the label
13
13
  */
14
- readonly: boolean;
14
+ readonly?: boolean;
15
15
  /**
16
16
  * Switch from label to fieldset sementic
17
17
  */
@@ -21,12 +21,12 @@ export declare class MgTag {
21
21
  /**
22
22
  * Define if tag is using outline style
23
23
  */
24
- outline: boolean;
24
+ outline?: boolean;
25
25
  validateOutline(newValue: MgTag['outline']): void;
26
26
  /**
27
27
  * Define if tag is using soft style
28
28
  */
29
- soft: boolean;
29
+ soft?: boolean;
30
30
  validateSoft(newValue: MgTag['soft']): void;
31
31
  /**
32
32
  * Component classes
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Possible input width
3
+ */
4
+ export declare const widths: readonly [2, 4, 16, "full"];
5
+ export type Width = (typeof widths)[number];
6
+ /**
7
+ * Possible tootltip postions
8
+ */
9
+ export declare const tooltipPositions: readonly ["input", "label"];
10
+ export type TooltipPosition = (typeof tooltipPositions)[number];
11
+ /**
12
+ * Possible Input types
13
+ */
14
+ export type HTMLMgInputsElement = (HTMLMgInputElement & {
15
+ required: true;
16
+ invalid: false;
17
+ displayError: () => void;
18
+ labelOnTop: boolean;
19
+ readonly: boolean;
20
+ }) | HTMLMgInputCheckboxElement | HTMLMgInputDateElement | HTMLMgInputNumericElement | HTMLMgInputPasswordElement | HTMLMgInputRadioElement | HTMLMgInputSelectElement | HTMLMgInputTextElement | HTMLMgInputTextareaElement | (HTMLMgInputToggleElement & {
21
+ required: true;
22
+ invalid: false;
23
+ displayError: () => void;
24
+ });
25
+ /**
26
+ * Available handlers
27
+ */
28
+ export declare enum Handler {
29
+ BLUR = "blur",
30
+ FOCUS = "focus"
31
+ }
32
+ export declare const classFieldset = "mg-c-input--fieldset";
33
+ export declare const classDisabled = "mg-c-input--disabled";
34
+ export declare const classReadonly = "mg-c-input--readonly";
35
+ export declare const classVerticalList = "mg-c-input--vertical-list";
@@ -0,0 +1,139 @@
1
+ import { type TooltipPosition } from './mg-input.conf';
2
+ export declare class MgInput {
3
+ /************
4
+ * Internal *
5
+ ************/
6
+ private helpTextId;
7
+ private helpTextErrorId;
8
+ private readonly slotLabel;
9
+ private readonly slotError;
10
+ private readonly slotHelpText;
11
+ private errorMessageSlotElement;
12
+ private helptextMessageSlotElement;
13
+ private readonly classInput;
14
+ private readonly classHasError;
15
+ private readonly classLabelOnTop;
16
+ /**************
17
+ * Decorators *
18
+ **************/
19
+ /**
20
+ * Get component DOM element
21
+ */
22
+ element: HTMLMgInputElement;
23
+ /**
24
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js)
25
+ */
26
+ identifier: string;
27
+ watchIdentifier(newValue: MgInput['identifier']): void;
28
+ /**
29
+ * Define input label
30
+ */
31
+ label: string;
32
+ /**
33
+ * Define if label is displayed on top
34
+ */
35
+ labelOnTop?: boolean;
36
+ watchLabelOnTop(newValue: MgInput['labelOnTop']): void;
37
+ /**
38
+ * Define if label is visible
39
+ */
40
+ labelHide: boolean;
41
+ watchLabelConfig(): void;
42
+ /**
43
+ * Add a tooltip message next to the input
44
+ */
45
+ tooltip?: string;
46
+ /**
47
+ * Define tooltip position
48
+ */
49
+ tooltipPosition: TooltipPosition;
50
+ watchTooltipPosition(newValue: MgInput['tooltipPosition']): void;
51
+ /**
52
+ * Define if input is required
53
+ */
54
+ required: boolean;
55
+ /**
56
+ * Defines value to display in readonly mode
57
+ */
58
+ readonlyValue: string | string[];
59
+ /**
60
+ * Define error message to display
61
+ */
62
+ errorMessage?: string;
63
+ watchErrorMessage(newValue: MgInput['errorMessage']): void;
64
+ /**
65
+ * Define help text to display
66
+ */
67
+ helpText?: string;
68
+ watchHelpText(newValue: MgInput['helpText']): void;
69
+ /**
70
+ * Define aria-describedby ids to link with
71
+ */
72
+ ariaDescribedbyIDs: string[];
73
+ watchAriaDescribedbyIDs(): void;
74
+ /**
75
+ * Component classes
76
+ */
77
+ watchClass(): void;
78
+ /**
79
+ * Trigger label update
80
+ */
81
+ watchLabel(): void;
82
+ /**
83
+ * Element is fieldset
84
+ */
85
+ isFieldset: boolean;
86
+ /**
87
+ * Element is readonly
88
+ */
89
+ isReadonly: boolean;
90
+ /**
91
+ * Element is disabled
92
+ */
93
+ isDisabled: boolean;
94
+ /**
95
+ * Element is disabled
96
+ */
97
+ isVerticalList: boolean;
98
+ /************
99
+ * Methods *
100
+ ************/
101
+ /**
102
+ * Render input label
103
+ */
104
+ private renderLabel;
105
+ /**
106
+ * Render error message
107
+ */
108
+ private renderErrorMessage;
109
+ /**
110
+ * Render help text message
111
+ */
112
+ private renderHelpText;
113
+ /**
114
+ * Get readonly values
115
+ * @returns formated readonly value
116
+ */
117
+ private getReadonlyValues;
118
+ /*************
119
+ * Lifecycle *
120
+ *************/
121
+ /**
122
+ * Check if component props are well configured on init
123
+ */
124
+ componentWillLoad(): void;
125
+ /**
126
+ * Validate slots
127
+ */
128
+ componentDidLoad(): void;
129
+ /**
130
+ * Get tooltip node
131
+ * @returns mg-tooltip
132
+ */
133
+ private renderTooltip;
134
+ /**
135
+ * Render
136
+ * @returns HTML Element
137
+ */
138
+ render(): HTMLElement;
139
+ }
@@ -14,19 +14,19 @@ export declare class MgInputCheckboxPaginated implements IMgInputCheckboxBase {
14
14
  /**
15
15
  * Define if mg-input-checkbox-list is readonly
16
16
  */
17
- readonly: boolean;
17
+ readonly?: boolean;
18
18
  /**
19
19
  * Define if mg-input-checkbox-list is disabled
20
20
  */
21
- disabled: boolean;
21
+ disabled?: boolean;
22
22
  /**
23
23
  * Define mg-input-checkbox input name
24
24
  */
25
- name: string;
25
+ name?: string;
26
26
  /**
27
27
  * Define mg-input-checkbox input invalid
28
28
  */
29
- invalid: boolean;
29
+ invalid?: boolean;
30
30
  /**
31
31
  * Current page
32
32
  */
@@ -39,7 +39,7 @@ export declare class MgInputCheckboxPaginated implements IMgInputCheckboxBase {
39
39
  /**
40
40
  * Define section kind
41
41
  */
42
- sectionKind: SectionKind;
42
+ sectionKind?: SectionKind;
43
43
  validateSectionKind(newValue: MgInputCheckboxPaginated['sectionKind']): void;
44
44
  /**
45
45
  * Define component message
@@ -48,16 +48,14 @@ export declare enum SectionTitleKind {
48
48
  * Base mg-input-checkbox interface
49
49
  */
50
50
  export interface IMgInputCheckboxBase {
51
- disabled: boolean;
52
- name: string;
53
- invalid: boolean;
51
+ disabled?: boolean;
52
+ name?: string;
53
+ invalid?: boolean;
54
54
  }
55
55
  /**
56
56
  * mg-input-checkbox-list interface
57
57
  */
58
58
  export interface MgInputCheckboxListProps extends IMgInputCheckboxBase {
59
- inputVerticalList: boolean;
60
- type: CheckboxType;
61
59
  displaySearchInput: boolean;
62
60
  messages: Record<string, unknown>;
63
61
  checkboxes: CheckboxItem[];
@@ -1,7 +1,7 @@
1
1
  import { EventEmitter } from '../../../../stencil-public-runtime';
2
2
  import { ClassList } from '@mgdis/stencil-helpers';
3
3
  import { CheckboxItem, CheckboxType, CheckboxValue, MgInputCheckboxListProps, SelectValuesButtonKey } from './mg-input-checkbox.conf';
4
- import { type TooltipPosition } from '../MgInput.conf';
4
+ import { type TooltipPosition } from '../mg-input/mg-input.conf';
5
5
  export declare class MgInputCheckbox implements Omit<MgInputCheckboxListProps, 'id' | 'checkboxes' | 'messages'> {
6
6
  /************
7
7
  * Internal *
@@ -12,8 +12,10 @@ export declare class MgInputCheckbox implements Omit<MgInputCheckboxListProps, '
12
12
  private hasDisplayedError;
13
13
  private handlerInProgress;
14
14
  private mode;
15
- private legendId;
16
15
  private readonly baseClassName;
16
+ private readonly classTypeMulti;
17
+ private readonly classWithValues;
18
+ private readonly classSearchMode;
17
19
  private readonly multiStart;
18
20
  private readonly searchStart;
19
21
  private hasOpenedPopover;
@@ -56,7 +58,7 @@ export declare class MgInputCheckbox implements Omit<MgInputCheckboxListProps, '
56
58
  /**
57
59
  * Define if label is displayed on top
58
60
  */
59
- labelOnTop: boolean;
61
+ labelOnTop?: boolean;
60
62
  /**
61
63
  * Define if label is visible
62
64
  */
@@ -65,6 +67,7 @@ export declare class MgInputCheckbox implements Omit<MgInputCheckboxListProps, '
65
67
  * Define if inputs are display verticaly
66
68
  */
67
69
  inputVerticalList: boolean;
70
+ watchInputVerticalList(newValue: MgInputCheckbox['inputVerticalList']): void;
68
71
  /**
69
72
  * Define if mg-input-checkbox is required
70
73
  */
@@ -73,11 +76,13 @@ export declare class MgInputCheckbox implements Omit<MgInputCheckboxListProps, '
73
76
  * Define if mg-input-checkbox is readonly
74
77
  */
75
78
  readonly: boolean;
79
+ watchReadonly(newValue: MgInputCheckbox['readonly']): void;
76
80
  /**
77
81
  * Display selected values list in "multi" type
78
82
  * This prop is only applied with prop type "multi" or when an "unset" mode render a "multi" type.
79
83
  */
80
- displaySelectedValues: boolean;
84
+ displaySelectedValues?: boolean;
85
+ watchDisplaySelectedValues(newValue: MgInputCheckbox['displaySelectedValues']): void;
81
86
  /**
82
87
  * Define if input is disabled
83
88
  */
@@ -87,7 +92,7 @@ export declare class MgInputCheckbox implements Omit<MgInputCheckboxListProps, '
87
92
  /**
88
93
  * Add a tooltip message next to the input
89
94
  */
90
- tooltip: string;
95
+ tooltip?: string;
91
96
  /**
92
97
  * Define tooltip position
93
98
  */
@@ -95,7 +100,7 @@ export declare class MgInputCheckbox implements Omit<MgInputCheckboxListProps, '
95
100
  /**
96
101
  * Add a help text under the input, usually expected data format and example
97
102
  */
98
- helpText: string;
103
+ helpText?: string;
99
104
  /**
100
105
  * Define input valid state
101
106
  */
@@ -121,6 +126,7 @@ export declare class MgInputCheckbox implements Omit<MgInputCheckboxListProps, '
121
126
  * Display search input
122
127
  */
123
128
  displaySearchInput: boolean;
129
+ watchDisplaySearchInput(newValue: MgInputCheckbox['displaySearchInput']): void;
124
130
  /**
125
131
  * Search value query
126
132
  */
@@ -200,11 +206,6 @@ export declare class MgInputCheckbox implements Omit<MgInputCheckboxListProps, '
200
206
  * @param condition - condtion to applu change on item
201
207
  */
202
208
  private updateCheckboxItems;
203
- /**
204
- * Get readonly values
205
- * @returns formated readonly value
206
- */
207
- private getReadonlyValues;
208
209
  /**
209
210
  * has invalid input
210
211
  * @returns true if at least one input is invalid
@@ -215,7 +216,7 @@ export declare class MgInputCheckbox implements Omit<MgInputCheckboxListProps, '
215
216
  */
216
217
  private updateSearchResults;
217
218
  /**
218
- * Methode to validate if one of inputs value is checked id required
219
+ * Method to validate if one of inputs value is checked id required
219
220
  * @returns truthy if condition is valid
220
221
  */
221
222
  private validateRequired;
@@ -1,6 +1,6 @@
1
1
  import { EventEmitter } from '../../../../stencil-public-runtime';
2
2
  import { ClassList } from '@mgdis/stencil-helpers';
3
- import { type TooltipPosition } from '../MgInput.conf';
3
+ import { type TooltipPosition } from '../mg-input/mg-input.conf';
4
4
  export declare class MgInputDate {
5
5
  /************
6
6
  * Internal *
@@ -39,7 +39,7 @@ export declare class MgInputDate {
39
39
  /**
40
40
  * Define if label is displayed on top
41
41
  */
42
- labelOnTop: boolean;
42
+ labelOnTop?: boolean;
43
43
  /**
44
44
  * Define if label is visible
45
45
  */
@@ -52,26 +52,28 @@ export declare class MgInputDate {
52
52
  * Define if input is readonly
53
53
  */
54
54
  readonly: boolean;
55
+ watchReadonly(newValue: MgInputDate['readonly']): void;
55
56
  /**
56
57
  * Define input minimum date
57
58
  * format: yyyy-mm-dd
58
59
  */
59
- min: string;
60
+ min?: string;
60
61
  /**
61
62
  * Define input maximum date
62
63
  * format: yyyy-mm-dd
63
64
  */
64
- max: string;
65
+ max?: string;
65
66
  validateMinMax(newValue: string): void;
66
67
  /**
67
68
  * Define if input is disabled
68
69
  */
69
70
  disabled: boolean;
70
71
  handleValidityChange(newValue: boolean, _oldValue: boolean, prop: string): void;
72
+ watchDisabled(newValue: MgInputDate['disabled']): void;
71
73
  /**
72
74
  * Add a tooltip message next to the input
73
75
  */
74
- tooltip: string;
76
+ tooltip?: string;
75
77
  /**
76
78
  * Define tooltip position
77
79
  */
@@ -84,7 +86,7 @@ export declare class MgInputDate {
84
86
  * - `{defaultHelpText}`: render default `helpText` usefull to concat helpText local with your custom text.
85
87
  * ex: `Input use {pattern} pattern` as `helpText` prop value will be render as `Input use mm/dd/yyyy pattern`
86
88
  */
87
- helpText: string;
89
+ helpText?: string;
88
90
  /**
89
91
  * Define input valid state
90
92
  */
@@ -1,7 +1,7 @@
1
1
  import { EventEmitter } from '../../../../stencil-public-runtime';
2
- import { type TooltipPosition, type Width } from '../MgInput.conf';
3
- import { type NumericType, type Format } from './mg-input-numeric.conf';
4
2
  import { ClassList } from '@mgdis/stencil-helpers';
3
+ import { type NumericType, type Format } from './mg-input-numeric.conf';
4
+ import { type TooltipPosition, type Width } from '../mg-input/mg-input.conf';
5
5
  export declare class MgInputNumeric {
6
6
  /************
7
7
  * Internal *
@@ -42,7 +42,7 @@ export declare class MgInputNumeric {
42
42
  /**
43
43
  * Define if label is displayed on top
44
44
  */
45
- labelOnTop: boolean;
45
+ labelOnTop?: boolean;
46
46
  /**
47
47
  * Define if label is visible
48
48
  */
@@ -51,7 +51,7 @@ export declare class MgInputNumeric {
51
51
  * Input placeholder.
52
52
  * It should be a word or short phrase that demonstrates the expected type of data, not a replacement for labels or help text.
53
53
  */
54
- placeholder: string;
54
+ placeholder?: string;
55
55
  /**
56
56
  * Define if input is required
57
57
  */
@@ -60,27 +60,30 @@ export declare class MgInputNumeric {
60
60
  * Define if input is readonly
61
61
  */
62
62
  readonly: boolean;
63
+ watchReadonly(newValue: MgInputNumeric['readonly']): void;
63
64
  /**
64
65
  * Maximum value
65
66
  */
66
- max: number;
67
+ max?: number;
67
68
  /**
68
69
  * Minimum value
69
70
  */
70
- min: number;
71
+ min?: number;
71
72
  /**
72
73
  * Define if input is disabled
73
74
  */
74
75
  disabled: boolean;
75
76
  handleValidityChange(newValue: boolean, _oldValue: boolean, prop: string): void;
77
+ watchDisabled(newValue: MgInputNumeric['disabled']): void;
76
78
  /**
77
79
  * Define input width
78
80
  */
79
- mgWidth: Width;
81
+ mgWidth?: Width;
82
+ watchMgWidth(newValue: MgInputNumeric['mgWidth']): void;
80
83
  /**
81
84
  * Add a tooltip message next to the input
82
85
  */
83
- tooltip: string;
86
+ tooltip?: string;
84
87
  /**
85
88
  * Define tooltip position
86
89
  */
@@ -88,7 +91,7 @@ export declare class MgInputNumeric {
88
91
  /**
89
92
  * Add a help text under the input, usually expected data format and example
90
93
  */
91
- helpText: string;
94
+ helpText?: string;
92
95
  /**
93
96
  * Define numeric type
94
97
  */