@mgdis/mg-components 5.25.2 → 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 (256) hide show
  1. package/dist/cjs/{index-f699ee11.js → index-1d560837.js} +105 -89
  2. package/dist/cjs/index-1d560837.js.map +1 -0
  3. package/dist/cjs/{index-0256ee6d.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} +693 -774
  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 +8 -7
  11. package/dist/cjs/mg-item-more.cjs.entry.js.map +1 -1
  12. package/dist/cjs/mg-loader.cjs.entry.js +4 -4
  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 +28 -28
  97. package/dist/components/index.es.js.map +1 -1
  98. package/dist/components/index2.js +26 -10
  99. package/dist/components/index2.js.map +1 -1
  100. package/dist/components/mg-action-more.js +16 -16
  101. package/dist/components/mg-action-more.js.map +1 -1
  102. package/dist/components/mg-badge2.js +3 -3
  103. package/dist/components/mg-badge2.js.map +1 -1
  104. package/dist/components/mg-button2.js +5 -5
  105. package/dist/components/mg-button2.js.map +1 -1
  106. package/dist/components/mg-card2.js +4 -4
  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 +3 -3
  111. package/dist/components/mg-divider.js +1 -1
  112. package/dist/components/mg-form.js +4 -4
  113. package/dist/components/mg-form.js.map +1 -1
  114. package/dist/components/mg-icon2.js +6 -418
  115. package/dist/components/mg-icon2.js.map +1 -1
  116. package/dist/components/mg-illustrated-message.js +5 -5
  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 +74 -52
  120. package/dist/components/mg-input-checkbox.js.map +1 -1
  121. package/dist/components/mg-input-date.js +39 -21
  122. package/dist/components/mg-input-date.js.map +1 -1
  123. package/dist/components/mg-input-numeric.js +46 -17
  124. package/dist/components/mg-input-numeric.js.map +1 -1
  125. package/dist/components/mg-input-password.js +59 -15
  126. package/dist/components/mg-input-password.js.map +1 -1
  127. package/dist/components/mg-input-radio.js +44 -13
  128. package/dist/components/mg-input-radio.js.map +1 -1
  129. package/dist/components/mg-input-select2.js +48 -18
  130. package/dist/components/mg-input-select2.js.map +1 -1
  131. package/dist/components/mg-input-text2.js +56 -24
  132. package/dist/components/mg-input-text2.js.map +1 -1
  133. package/dist/components/mg-input-textarea.js +50 -19
  134. package/dist/components/mg-input-textarea.js.map +1 -1
  135. package/dist/components/mg-input-title2.js +3 -3
  136. package/dist/components/mg-input-title2.js.map +1 -1
  137. package/dist/components/mg-input-toggle.js +39 -26
  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 +8 -7
  145. package/dist/components/mg-item-more.js.map +1 -1
  146. package/dist/components/mg-loader.js +3 -3
  147. package/dist/components/mg-loader.js.map +1 -1
  148. package/dist/components/mg-menu-item2.js +25 -8
  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 +4 -4
  153. package/dist/components/mg-message.js.map +1 -1
  154. package/dist/components/mg-modal.js +9 -9
  155. package/dist/components/mg-modal.js.map +1 -1
  156. package/dist/components/mg-pagination2.js +14 -8
  157. package/dist/components/mg-pagination2.js.map +1 -1
  158. package/dist/components/mg-panel.js +19 -13
  159. package/dist/components/mg-panel.js.map +1 -1
  160. package/dist/components/mg-popover-content2.js +4 -4
  161. package/dist/components/mg-popover2.js +5 -5
  162. package/dist/components/mg-popover2.js.map +1 -1
  163. package/dist/components/mg-skip-links.js +3 -3
  164. package/dist/components/mg-tabs.js +7 -7
  165. package/dist/components/mg-tag.js +4 -4
  166. package/dist/components/mg-tag.js.map +1 -1
  167. package/dist/components/mg-tooltip2.js +6 -6
  168. package/dist/esm/{index-d2fc6ec0.js → index-445fc2a0.js} +99 -83
  169. package/dist/esm/index-445fc2a0.js.map +1 -0
  170. package/dist/esm/{index-4ad17402.js → index-629a42c7.js} +17 -5
  171. package/dist/esm/index-629a42c7.js.map +1 -0
  172. package/dist/esm/loader.js +3 -3
  173. package/dist/esm/{mg-action-more_34.entry.js → mg-action-more_35.entry.js} +693 -775
  174. package/dist/esm/mg-action-more_35.entry.js.map +1 -0
  175. package/dist/esm/mg-components.js +4 -4
  176. package/dist/esm/mg-components.js.map +1 -1
  177. package/dist/esm/mg-item-more.entry.js +8 -7
  178. package/dist/esm/mg-item-more.entry.js.map +1 -1
  179. package/dist/esm/mg-loader.entry.js +4 -4
  180. package/dist/esm/mg-loader.entry.js.map +1 -1
  181. package/dist/mg-components/locales/en/messages.json +10 -3
  182. package/dist/mg-components/locales/fr/messages.json +10 -3
  183. package/dist/mg-components/mg-components.esm.js +1 -1
  184. package/dist/mg-components/mg-components.esm.js.map +1 -1
  185. package/dist/mg-components/p-3ebe6845.js +2 -0
  186. package/dist/mg-components/p-3ebe6845.js.map +1 -0
  187. package/dist/mg-components/{p-568c9ea9.entry.js → p-6735e4b2.entry.js} +2 -2
  188. package/dist/mg-components/p-6735e4b2.entry.js.map +1 -0
  189. package/dist/mg-components/p-9dfaa41f.js +3 -0
  190. package/dist/mg-components/p-9dfaa41f.js.map +1 -0
  191. package/dist/mg-components/p-b3e0f7b3.entry.js +2 -0
  192. package/dist/mg-components/p-b3e0f7b3.entry.js.map +1 -0
  193. package/dist/mg-components/{p-22f575c5.entry.js → p-fe347f48.entry.js} +2 -2
  194. package/dist/mg-components/{p-22f575c5.entry.js.map → p-fe347f48.entry.js.map} +1 -1
  195. package/dist/types/components/atoms/mg-badge/mg-badge.d.ts +2 -2
  196. package/dist/types/components/atoms/mg-button/mg-button.d.ts +5 -5
  197. package/dist/types/components/atoms/mg-card/mg-card.d.ts +1 -1
  198. package/dist/types/components/atoms/mg-character-left/mg-character-left.d.ts +1 -1
  199. package/dist/types/components/atoms/mg-icon/mg-icon.conf.d.ts +5 -0
  200. package/dist/types/components/atoms/mg-icon/mg-icon.d.ts +3 -3
  201. package/dist/types/components/atoms/mg-input-title/mg-input-title.d.ts +2 -2
  202. package/dist/types/components/atoms/mg-tag/mg-tag.d.ts +2 -2
  203. package/dist/types/components/molecules/inputs/mg-input/mg-input.conf.d.ts +35 -0
  204. package/dist/types/components/molecules/inputs/mg-input/mg-input.d.ts +139 -0
  205. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.d.ts +5 -5
  206. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.d.ts +3 -5
  207. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.d.ts +13 -12
  208. package/dist/types/components/molecules/inputs/mg-input-date/mg-input-date.d.ts +8 -6
  209. package/dist/types/components/molecules/inputs/mg-input-numeric/mg-input-numeric.d.ts +12 -9
  210. package/dist/types/components/molecules/inputs/mg-input-password/mg-input-password.d.ts +16 -5
  211. package/dist/types/components/molecules/inputs/mg-input-radio/mg-input-radio.d.ts +7 -3
  212. package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.d.ts +7 -4
  213. package/dist/types/components/molecules/inputs/mg-input-text/mg-input-text.d.ts +18 -12
  214. package/dist/types/components/molecules/inputs/mg-input-textarea/mg-input-textarea.d.ts +12 -9
  215. package/dist/types/components/molecules/inputs/mg-input-toggle/mg-input-toggle.d.ts +12 -12
  216. package/dist/types/components/molecules/menu/mg-menu/mg-menu.d.ts +1 -1
  217. package/dist/types/components/molecules/menu/mg-menu-item/mg-menu-item.conf.d.ts +8 -0
  218. package/dist/types/components/molecules/menu/mg-menu-item/mg-menu-item.d.ts +10 -5
  219. package/dist/types/components/molecules/mg-action-more/mg-action-more.conf.d.ts +7 -16
  220. package/dist/types/components/molecules/mg-action-more/mg-action-more.d.ts +9 -9
  221. package/dist/types/components/molecules/mg-form/mg-form.d.ts +3 -3
  222. package/dist/types/components/molecules/mg-item-more/mg-item-more.conf.d.ts +3 -12
  223. package/dist/types/components/molecules/mg-item-more/mg-item-more.d.ts +4 -3
  224. package/dist/types/components/molecules/mg-loader/mg-loader.d.ts +2 -2
  225. package/dist/types/components/molecules/mg-message/mg-message.d.ts +2 -2
  226. package/dist/types/components/molecules/mg-pagination/mg-pagination.d.ts +2 -2
  227. package/dist/types/components/molecules/mg-panel/mg-panel.d.ts +3 -3
  228. package/dist/types/components/molecules/mg-popover/mg-popover.d.ts +1 -1
  229. package/dist/types/components.d.ts +205 -94
  230. package/dist/types/locales/index.conf.d.ts +4 -0
  231. package/ide/intellij/web-types.json +6035 -0
  232. package/ide/vscode/html-custom-data.json +6517 -0
  233. package/package.json +33 -30
  234. package/dist/cjs/index-0256ee6d.js.map +0 -1
  235. package/dist/cjs/index-f699ee11.js.map +0 -1
  236. package/dist/cjs/mg-action-more_34.cjs.entry.js.map +0 -1
  237. package/dist/collection/components/molecules/inputs/MgInput.conf.js +0 -14
  238. package/dist/collection/components/molecules/inputs/MgInput.conf.js.map +0 -1
  239. package/dist/collection/components/molecules/inputs/MgInput.js +0 -125
  240. package/dist/collection/components/molecules/inputs/MgInput.js.map +0 -1
  241. package/dist/collection/utils/playwright.e2e.test.utils.js +0 -100
  242. package/dist/collection/utils/playwright.e2e.test.utils.js.map +0 -1
  243. package/dist/components/MgInput.js +0 -155
  244. package/dist/components/MgInput.js.map +0 -1
  245. package/dist/esm/index-4ad17402.js.map +0 -1
  246. package/dist/esm/index-d2fc6ec0.js.map +0 -1
  247. package/dist/esm/mg-action-more_34.entry.js.map +0 -1
  248. package/dist/mg-components/p-29b5a514.js +0 -2
  249. package/dist/mg-components/p-29b5a514.js.map +0 -1
  250. package/dist/mg-components/p-568c9ea9.entry.js.map +0 -1
  251. package/dist/mg-components/p-57614d95.entry.js +0 -2
  252. package/dist/mg-components/p-57614d95.entry.js.map +0 -1
  253. package/dist/mg-components/p-f761ebcd.js +0 -3
  254. package/dist/mg-components/p-f761ebcd.js.map +0 -1
  255. package/dist/types/components/molecules/inputs/MgInput.conf.d.ts +0 -46
  256. package/dist/types/components/molecules/inputs/MgInput.d.ts +0 -13
@@ -1,6 +1,6 @@
1
1
  import { EventEmitter } from '../../../../stencil-public-runtime';
2
- import { type TooltipPosition, type Width } from '../MgInput.conf';
3
2
  import { ClassList } from '@mgdis/stencil-helpers';
3
+ import { type TooltipPosition, type Width } from '../mg-input/mg-input.conf';
4
4
  export declare class MgInputPassword {
5
5
  /************
6
6
  * Internal *
@@ -37,7 +37,7 @@ export declare class MgInputPassword {
37
37
  /**
38
38
  * Define if label is displayed on top
39
39
  */
40
- labelOnTop: boolean;
40
+ labelOnTop?: boolean;
41
41
  /**
42
42
  * Define if label is visible
43
43
  */
@@ -46,7 +46,7 @@ export declare class MgInputPassword {
46
46
  * Input placeholder.
47
47
  * It should be a word or short phrase that demonstrates the expected type of data, not a replacement for labels or help text.
48
48
  */
49
- placeholder: string;
49
+ placeholder?: string;
50
50
  /**
51
51
  * Define if input is required
52
52
  */
@@ -55,19 +55,22 @@ export declare class MgInputPassword {
55
55
  * Define if input is readonly
56
56
  */
57
57
  readonly: boolean;
58
+ watchReadonly(newValue: MgInputPassword['readonly']): void;
58
59
  /**
59
60
  * Define if input is disabled
60
61
  */
61
62
  disabled: boolean;
62
63
  handleValidityChange(newValue: boolean, _oldValue: boolean, prop: string): void;
64
+ watchDisabled(newValue: MgInputPassword['disabled']): void;
63
65
  /**
64
66
  * Define input width
65
67
  */
66
68
  mgWidth: Width;
69
+ watchMgWidth(newValue: MgInputPassword['mgWidth']): void;
67
70
  /**
68
71
  * Add a tooltip message next to the input
69
72
  */
70
- tooltip: string;
73
+ tooltip?: string;
71
74
  /**
72
75
  * Define tooltip position
73
76
  */
@@ -75,7 +78,7 @@ export declare class MgInputPassword {
75
78
  /**
76
79
  * Add a help text under the input, usually expected data format and example
77
80
  */
78
- helpText: string;
81
+ helpText?: string;
79
82
  /**
80
83
  * Define input valid state
81
84
  */
@@ -92,6 +95,10 @@ export declare class MgInputPassword {
92
95
  * Error message to display
93
96
  */
94
97
  errorMessage: string;
98
+ /**
99
+ * Indicates if password is displayed or not
100
+ */
101
+ displayPassword: boolean;
95
102
  /**
96
103
  * Emited event when value change
97
104
  */
@@ -126,6 +133,10 @@ export declare class MgInputPassword {
126
133
  * Handle blur event
127
134
  */
128
135
  private handleBlur;
136
+ /**
137
+ * Toggle display-pasword value
138
+ */
139
+ private toggleDisplayPassword;
129
140
  /**
130
141
  * Check if input is valid
131
142
  */
@@ -1,12 +1,13 @@
1
1
  import { EventEmitter } from '../../../../stencil-public-runtime';
2
2
  import { ClassList } from '@mgdis/stencil-helpers';
3
3
  import { RadioOption } from './mg-input-radio.conf';
4
- import { type TooltipPosition } from '../MgInput.conf';
4
+ import { type TooltipPosition } from '../mg-input/mg-input.conf';
5
5
  export declare class MgInputRadio {
6
6
  /************
7
7
  * Internal *
8
8
  ************/
9
9
  private inputs;
10
+ private readonly classVerticalList;
10
11
  private messages;
11
12
  private hasDisplayedError;
12
13
  private handlerInProgress;
@@ -52,6 +53,7 @@ export declare class MgInputRadio {
52
53
  * Define if inputs are display verticaly
53
54
  */
54
55
  inputVerticalList: boolean;
56
+ watchInputVerticalList(newValue: MgInputRadio['inputVerticalList']): void;
55
57
  /**
56
58
  * Define if input is required
57
59
  */
@@ -60,15 +62,17 @@ export declare class MgInputRadio {
60
62
  * Define if input is readonly
61
63
  */
62
64
  readonly: boolean;
65
+ watchReadonly(newValue: MgInputRadio['readonly']): void;
63
66
  /**
64
67
  * Define if input is disabled
65
68
  */
66
69
  disabled: boolean;
67
70
  handleValidityChange(newValue: boolean, _oldValue: boolean, prop: string): void;
71
+ watchDisabled(newValue: MgInputRadio['disabled']): void;
68
72
  /**
69
73
  * Add a tooltip message next to the input
70
74
  */
71
- tooltip: string;
75
+ tooltip?: string;
72
76
  /**
73
77
  * Define tooltip position
74
78
  */
@@ -76,7 +80,7 @@ export declare class MgInputRadio {
76
80
  /**
77
81
  * Add a help text under the input, usually expected data format and example
78
82
  */
79
- helpText: string;
83
+ helpText?: string;
80
84
  /**
81
85
  * Define input valid state
82
86
  */
@@ -1,7 +1,7 @@
1
1
  import { EventEmitter } from '../../../../stencil-public-runtime';
2
- import { type TooltipPosition, type Width } from '../MgInput.conf';
3
2
  import { ClassList } from '@mgdis/stencil-helpers';
4
3
  import { SelectOption, OptGroup } from './mg-input-select.conf';
4
+ import { type TooltipPosition, type Width } from '../mg-input/mg-input.conf';
5
5
  export declare class MgInputSelect {
6
6
  /************
7
7
  * Internal *
@@ -43,7 +43,7 @@ export declare class MgInputSelect {
43
43
  /**
44
44
  * Define if label is displayed on top
45
45
  */
46
- labelOnTop: boolean;
46
+ labelOnTop?: boolean;
47
47
  /**
48
48
  * Define if label is visible
49
49
  */
@@ -69,19 +69,22 @@ export declare class MgInputSelect {
69
69
  * Define if input is readonly
70
70
  */
71
71
  readonly: boolean;
72
+ watchReadonly(newValue: MgInputSelect['readonly']): void;
72
73
  /**
73
74
  * Define if input is disabled
74
75
  */
75
76
  disabled: boolean;
76
77
  handleValidityChange(newValue: boolean, _oldValue: boolean, prop: string): void;
78
+ watchDisabled(newValue: MgInputSelect['disabled']): void;
77
79
  /**
78
80
  * Define input width
79
81
  */
80
82
  mgWidth: Width;
83
+ watchMgWidth(newValue: MgInputSelect['mgWidth']): void;
81
84
  /**
82
85
  * Add a tooltip message next to the input
83
86
  */
84
- tooltip: string;
87
+ tooltip?: string;
85
88
  /**
86
89
  * Define tooltip position
87
90
  */
@@ -89,7 +92,7 @@ export declare class MgInputSelect {
89
92
  /**
90
93
  * Add a help text under the input, usually expected data format and example
91
94
  */
92
- helpText: string;
95
+ helpText?: string;
93
96
  /**
94
97
  * Define input valid state
95
98
  */
@@ -1,14 +1,17 @@
1
1
  import { EventEmitter } from '../../../../stencil-public-runtime';
2
- import { type TooltipPosition, type Width } from '../MgInput.conf';
3
2
  import { ClassList } from '@mgdis/stencil-helpers';
4
3
  import { TextType } from './mg-input-text.conf';
4
+ import { type TooltipPosition, type Width } from '../mg-input/mg-input.conf';
5
+ import { IconType } from '../../../../components';
5
6
  export declare class MgInputText {
6
7
  /************
7
8
  * Internal *
8
9
  ************/
9
- private classFocus;
10
- private classIsInputGroupAppend;
11
- private classHasIcon;
10
+ private readonly classFocus;
11
+ private readonly classIsInputGroupAppend;
12
+ private readonly classHasIcon;
13
+ private readonly classHasButtonsGroupAppend;
14
+ private readonly classIsAppendInputSlotContent;
12
15
  private characterLeftId;
13
16
  private datalistId;
14
17
  private input;
@@ -47,12 +50,12 @@ export declare class MgInputText {
47
50
  /**
48
51
  * Input icon
49
52
  */
50
- icon: string;
53
+ icon?: IconType;
51
54
  validateIcon(newValue: string): void;
52
55
  /**
53
56
  * Define if label is displayed on top
54
57
  */
55
- labelOnTop: boolean;
58
+ labelOnTop?: boolean;
56
59
  /**
57
60
  * Define if label is visible
58
61
  */
@@ -61,7 +64,7 @@ export declare class MgInputText {
61
64
  * Input placeholder.
62
65
  * It should be a word or short phrase that demonstrates the expected type of data, not a replacement for labels or help text.
63
66
  */
64
- placeholder: string;
67
+ placeholder?: string;
65
68
  /**
66
69
  * Define datalist options
67
70
  */
@@ -79,29 +82,32 @@ export declare class MgInputText {
79
82
  * Define if input is readonly
80
83
  */
81
84
  readonly: boolean;
85
+ watchReadonly(newValue: MgInputText['readonly']): void;
82
86
  /**
83
87
  * Define if input is disabled
84
88
  */
85
89
  disabled: boolean;
86
90
  handleValidityChange(newValue: boolean, _oldValue: boolean, prop: string): void;
91
+ watchDisabled(newValue: MgInputText['disabled']): void;
87
92
  /**
88
93
  * Define input width
89
94
  */
90
95
  mgWidth: Width;
96
+ watchMgWidth(newValue: MgInputText['mgWidth']): void;
91
97
  /**
92
98
  * Define input pattern to validate
93
99
  * Please refer to the Pattern section in the input documentation for detailed information on using regular expressions in components.
94
100
  */
95
- pattern: string;
101
+ pattern?: string;
96
102
  /**
97
103
  * Define input pattern error message
98
104
  */
99
- patternErrorMessage: string;
105
+ patternErrorMessage?: string;
100
106
  validatePattern(newValue: string): void;
101
107
  /**
102
108
  * Add a tooltip message next to the input
103
109
  */
104
- tooltip: string;
110
+ tooltip?: string;
105
111
  /**
106
112
  * Define tooltip position
107
113
  */
@@ -113,7 +119,7 @@ export declare class MgInputText {
113
119
  /**
114
120
  * Add a help text under the input, usually expected data format and example
115
121
  */
116
- helpText: string;
122
+ helpText?: string;
117
123
  /**
118
124
  * Define input valid state
119
125
  */
@@ -186,7 +192,7 @@ export declare class MgInputText {
186
192
  */
187
193
  private validateAppendSlot;
188
194
  /**
189
- * Methode to control datalist display condition
195
+ * Method to control datalist display condition
190
196
  * @returns true if display condition success
191
197
  */
192
198
  private hasDatalist;
@@ -1,12 +1,12 @@
1
1
  import { EventEmitter } from '../../../../stencil-public-runtime';
2
- import { type TooltipPosition, type Width } from '../MgInput.conf';
3
2
  import { ClassList } from '@mgdis/stencil-helpers';
3
+ import { type TooltipPosition, type Width } from '../mg-input/mg-input.conf';
4
4
  export declare class MgInputTextarea {
5
5
  /************
6
6
  * Internal *
7
7
  ************/
8
- private classFocus;
9
- private classHasDisplayCharacterLeft;
8
+ private readonly classFocus;
9
+ private readonly classHasDisplayCharacterLeft;
10
10
  private characterLeftId;
11
11
  private input;
12
12
  private messages;
@@ -40,7 +40,7 @@ export declare class MgInputTextarea {
40
40
  /**
41
41
  * Define if label is displayed on top
42
42
  */
43
- labelOnTop: boolean;
43
+ labelOnTop?: boolean;
44
44
  /**
45
45
  * Define if label is visible
46
46
  */
@@ -49,7 +49,7 @@ export declare class MgInputTextarea {
49
49
  * Input placeholder.
50
50
  * It should be a word or short phrase that demonstrates the expected type of data, not a replacement for labels or help text.
51
51
  */
52
- placeholder: string;
52
+ placeholder?: string;
53
53
  /**
54
54
  * Input max length
55
55
  */
@@ -62,24 +62,27 @@ export declare class MgInputTextarea {
62
62
  * Define if input is readonly
63
63
  */
64
64
  readonly: boolean;
65
+ watchReadonly(newValue: MgInputTextarea['readonly']): void;
65
66
  /**
66
67
  * Define if input is disabled
67
68
  */
68
69
  disabled: boolean;
69
70
  handleValidityChange(newValue: boolean, _oldValue: boolean, prop: string): void;
71
+ validateDisabled(newValue: MgInputTextarea['disabled']): void;
70
72
  /**
71
73
  * Define input width
72
74
  */
73
75
  mgWidth: Width;
76
+ watchMgWidth(newValue: MgInputTextarea['mgWidth']): void;
74
77
  /**
75
78
  * Define input pattern to validate
76
79
  * Please refer to the Pattern section in the input documentation for detailed information on using regular expressions in components.
77
80
  */
78
- pattern: string;
81
+ pattern?: string;
79
82
  /**
80
83
  * Define input pattern error message
81
84
  */
82
- patternErrorMessage: string;
85
+ patternErrorMessage?: string;
83
86
  validatePattern(newValue: string): void;
84
87
  /**
85
88
  * Define the number of visible text lines for the control
@@ -88,7 +91,7 @@ export declare class MgInputTextarea {
88
91
  /**
89
92
  * Add a tooltip message next to the input
90
93
  */
91
- tooltip: string;
94
+ tooltip?: string;
92
95
  /**
93
96
  * Define tooltip position
94
97
  */
@@ -101,7 +104,7 @@ export declare class MgInputTextarea {
101
104
  /**
102
105
  * Add a help text under the input, usually expected data format and example
103
106
  */
104
- helpText: string;
107
+ helpText?: string;
105
108
  /**
106
109
  * Define input valid state
107
110
  */
@@ -1,15 +1,14 @@
1
1
  import { EventEmitter } from '../../../../stencil-public-runtime';
2
2
  import { ClassList } from '@mgdis/stencil-helpers';
3
3
  import { ToggleValue } from './mg-input-toggle.conf';
4
- import { type TooltipPosition } from '../MgInput.conf';
4
+ import { type TooltipPosition } from '../mg-input/mg-input.conf';
5
5
  export declare class MgInputToggle {
6
6
  /************
7
7
  * Internal *
8
8
  ************/
9
- private classDisabled;
10
- private classIsActive;
11
- private classOnOff;
12
- private classIcon;
9
+ private readonly classIsActive;
10
+ private readonly classOnOff;
11
+ private readonly classIcon;
13
12
  /**************
14
13
  * Decorators *
15
14
  **************/
@@ -43,7 +42,7 @@ export declare class MgInputToggle {
43
42
  /**
44
43
  * Define if label is displayed on top
45
44
  */
46
- labelOnTop: boolean;
45
+ labelOnTop?: boolean;
47
46
  /**
48
47
  * Define if label is visible
49
48
  */
@@ -52,25 +51,26 @@ export declare class MgInputToggle {
52
51
  * Define if toggle have on/off style
53
52
  */
54
53
  isOnOff: boolean;
55
- handleIsOnOff(newValue: MgInputToggle['isOnOff']): void;
54
+ watchIsOnOff(newValue: MgInputToggle['isOnOff']): void;
56
55
  /**
57
56
  * Define if toggle display icon
58
57
  */
59
58
  isIcon: boolean;
60
- handleIsIcon(newValue: MgInputToggle['isIcon']): void;
59
+ watchIsIcon(newValue: MgInputToggle['isIcon']): void;
61
60
  /**
62
61
  * Define if input is readonly
63
62
  */
64
63
  readonly: boolean;
64
+ watchReadonly(newValue: MgInputToggle['readonly']): void;
65
65
  /**
66
66
  * Define if input is disabled
67
67
  */
68
68
  disabled: boolean;
69
- handleDisabled(newValue: MgInputToggle['disabled']): void;
69
+ watchDisabled(newValue: MgInputToggle['disabled']): void;
70
70
  /**
71
71
  * Add a tooltip message next to the input
72
72
  */
73
- tooltip: string;
73
+ tooltip?: string;
74
74
  /**
75
75
  * Define tooltip position
76
76
  */
@@ -78,7 +78,7 @@ export declare class MgInputToggle {
78
78
  /**
79
79
  * Add a help text under the input, usually expected data format and example
80
80
  */
81
- helpText: string;
81
+ helpText?: string;
82
82
  /**
83
83
  * Component classes
84
84
  */
@@ -132,7 +132,7 @@ export declare class MgInputToggle {
132
132
  private validateSlots;
133
133
  /**
134
134
  * Get checked item
135
- * @param checked
135
+ * @param checked - checked item
136
136
  * @returns toggle value
137
137
  */
138
138
  private getCheckedItem;
@@ -29,7 +29,7 @@ export declare class MgMenu {
29
29
  * Customize "mg-item-more" element
30
30
  * Used with direction: 'vertical' to manage overflow
31
31
  */
32
- itemmore: ItemMoreType;
32
+ itemmore?: ItemMoreType;
33
33
  validateItemMore(newValue: MgMenu['itemmore']): void;
34
34
  /**
35
35
  * Define mg-menu size
@@ -19,3 +19,11 @@ export declare enum Status {
19
19
  * Direction type
20
20
  */
21
21
  export type DirectionType = MgMenu['direction'];
22
+ /**
23
+ * List of all possibles target
24
+ */
25
+ export declare const targets: readonly ["_blank", "_self", "_parent", "_top"];
26
+ /**
27
+ * VariantType type from link target
28
+ */
29
+ export type TargetType = (typeof targets)[number];
@@ -2,14 +2,14 @@ import { EventEmitter } from '../../../../stencil-public-runtime';
2
2
  import { ClassList } from '@mgdis/stencil-helpers';
3
3
  import { Status } from './mg-menu-item.conf';
4
4
  import type { MenuSizeType } from '../mg-menu/mg-menu.conf';
5
- import type { DirectionType } from './mg-menu-item.conf';
5
+ import type { DirectionType, TargetType } from './mg-menu-item.conf';
6
6
  export declare class MgMenuItem {
7
7
  /************
8
8
  * Internal *
9
9
  ************/
10
10
  private readonly name;
11
11
  private readonly navigationButton;
12
- private badgeLabel;
12
+ private messages;
13
13
  /**************
14
14
  * Decorators *
15
15
  **************/
@@ -28,16 +28,21 @@ export declare class MgMenuItem {
28
28
  * Define menu-item href
29
29
  * when defined menu-item contain an anchor instead of button
30
30
  */
31
- href: string;
31
+ href?: string;
32
+ /**
33
+ * Define target type
34
+ */
35
+ target?: TargetType;
36
+ watchTarget(newValue: MgMenuItem['target']): void;
32
37
  /**
33
38
  * Define menu-item status.
34
39
  */
35
- status: Status;
40
+ status?: Status;
36
41
  validateStatus(newValue: MgMenuItem['status'], oldValue?: MgMenuItem['status']): void;
37
42
  /**
38
43
  * Define menu-item content expanded.
39
44
  */
40
- expanded: boolean;
45
+ expanded?: boolean;
41
46
  validateExpanded(newValue: MgMenuItem['expanded']): void;
42
47
  /**********
43
48
  * Events *
@@ -1,22 +1,15 @@
1
- import { MgBadge } from '../../atoms/mg-badge/mg-badge';
2
- import { MgButton } from '../../atoms/mg-button/mg-button';
3
- import { MgIcon } from '../../atoms/mg-icon/mg-icon';
4
- import { MgMenuItem } from '../menu/mg-menu-item/mg-menu-item';
1
+ import type { MgBadge } from '../../atoms/mg-badge/mg-badge';
2
+ import type { MgButton } from '../../atoms/mg-button/mg-button';
3
+ import type { MgIcon } from '../../atoms/mg-icon/mg-icon';
4
+ import type { MgMenuItem } from '../menu/mg-menu-item/mg-menu-item';
5
5
  /**
6
6
  * prop icon type
7
7
  */
8
- export type MgActionMoreIconType = {
9
- icon: MgIcon['icon'];
10
- };
8
+ export type MgActionMoreIconType = Pick<MgIcon, 'icon'>;
11
9
  /**
12
10
  * prop button type
13
11
  */
14
- export type MgActionMoreButtonType = {
15
- isIcon: MgButton['isIcon'];
16
- variant: MgButton['variant'];
17
- label?: MgButton['label'];
18
- disabled?: MgButton['disabled'];
19
- };
12
+ export type MgActionMoreButtonType = Pick<MgButton, 'isIcon' | 'variant' | 'label' | 'disabled'>;
20
13
  /**
21
14
  * locals message type
22
15
  */
@@ -26,12 +19,10 @@ export type MgActionMoreMessageType = {
26
19
  /**
27
20
  * prop item type
28
21
  */
29
- export type MgActionMoreItemType = {
22
+ export type MgActionMoreItemType = Pick<MgMenuItem, 'status' | 'href' | 'target'> & {
30
23
  label: string;
31
24
  mouseEventHandler: IMouseEventHandler;
32
- status?: MgMenuItem['status'];
33
25
  icon?: MgIcon['icon'];
34
- href?: MgMenuItem['href'];
35
26
  badge?: Pick<MgBadge, 'value' | 'label'>;
36
27
  };
37
28
  /**
@@ -1,4 +1,4 @@
1
- import { MgActionMoreItemType, MgActionMoreButtonType, MgActionMoreIconType } from './mg-action-more.conf';
1
+ import type { MgActionMoreItemType, MgActionMoreButtonType, MgActionMoreIconType } from './mg-action-more.conf';
2
2
  export declare class MgActionMore {
3
3
  /************
4
4
  * Internal *
@@ -14,25 +14,25 @@ export declare class MgActionMore {
14
14
  * Get component DOM element
15
15
  */
16
16
  element: HTMLMgActionMoreElement;
17
+ /**
18
+ * Define the menu-items elements
19
+ */
20
+ items: MgActionMoreItemType[];
21
+ validateItems(newValue: MgActionMore['items']): void;
17
22
  /**
18
23
  * Define displayed icon
19
24
  */
20
- icon: MgActionMoreIconType;
25
+ icon?: MgActionMoreIconType;
21
26
  validateIcon(newValue: MgActionMore['icon']): void;
22
27
  /**
23
28
  * Define button properties
24
29
  */
25
- button: MgActionMoreButtonType;
30
+ button?: MgActionMoreButtonType;
26
31
  validateButton(newValue: MgActionMore['button']): void;
27
- /**
28
- * Define the menu-items elements
29
- */
30
- items: MgActionMoreItemType[];
31
- validateItems(newValue: MgActionMore['items']): void;
32
32
  /**
33
33
  * Define if chevron is display
34
34
  */
35
- displayChevron: boolean;
35
+ displayChevron?: boolean;
36
36
  validateDisplayChevron(newValue: MgActionMore['displayChevron']): void;
37
37
  /**
38
38
  * Menu expanded state
@@ -39,18 +39,18 @@ export declare class MgForm {
39
39
  * As **this element is an accessibility requirement in the view**,
40
40
  * you **MUST*** re-implement this message on your own and display it when your form contains required inputs.
41
41
  */
42
- requiredMessage: RequiredMessageStatusType;
42
+ requiredMessage?: RequiredMessageStatusType;
43
43
  validateRequiredMessage(newValue: any): void;
44
44
  /**
45
45
  * Define `<form/>` element aria role
46
46
  * see more about aria roles use case: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles
47
47
  */
48
- ariaRole: AriaRoleType;
48
+ ariaRole?: AriaRoleType;
49
49
  validateAriaRole(newValue: MgForm['ariaRole']): void;
50
50
  /**
51
51
  * Define if slotted mg-component's label are displayed on top
52
52
  */
53
- labelOnTop: boolean;
53
+ labelOnTop?: boolean;
54
54
  handlelabelOnTop(newValue: MgForm['labelOnTop']): void;
55
55
  /**
56
56
  * Define if form is disabled
@@ -1,12 +1,5 @@
1
- import { MgIcon } from '../../atoms/mg-icon/mg-icon';
2
- import { MgMenu } from '../menu/mg-menu/mg-menu';
3
- /**
4
- * message type
5
- */
6
- export type MessageType = {
7
- moreLabel: string;
8
- badgeLabel: string;
9
- };
1
+ import type { MgIcon } from '../../atoms/mg-icon/mg-icon';
2
+ import type { MgMenu } from '../menu/mg-menu/mg-menu';
10
3
  /**
11
4
  * SlotLabel prop type
12
5
  */
@@ -17,9 +10,7 @@ export type SlotLabelType = {
17
10
  /**
18
11
  * icon prop type
19
12
  */
20
- export type IconType = {
21
- icon: MgIcon['icon'];
22
- };
13
+ export type IconType = Pick<MgIcon, 'icon'>;
23
14
  /**
24
15
  * size type
25
16
  */
@@ -19,17 +19,17 @@ export declare class MgItemMore {
19
19
  /**
20
20
  * Define icon
21
21
  */
22
- icon: IconType;
22
+ icon?: IconType;
23
23
  validateIcon(newValue: MgItemMore['icon']): void;
24
24
  /**
25
25
  * Define slot label element
26
26
  */
27
- slotlabel: SlotLabelType;
27
+ slotlabel?: SlotLabelType;
28
28
  validateSlotLabel(newValue: MgItemMore['slotlabel']): void;
29
29
  /**
30
30
  * Define component child menu size.
31
31
  */
32
- size: SizeType;
32
+ size?: SizeType;
33
33
  validateSize(newValue: MgItemMore['size']): void;
34
34
  /**
35
35
  * Define component parent menu.
@@ -52,6 +52,7 @@ export declare class MgItemMore {
52
52
  componentWillLoad(): void;
53
53
  /**
54
54
  * Ensure parent DOM is fully rendered with timeout method before parse elements
55
+ * @returns timeout
55
56
  */
56
57
  componentDidLoad(): ReturnType<typeof setTimeout>;
57
58
  /**
@@ -13,12 +13,12 @@ export declare class MgLoader {
13
13
  /**
14
14
  * Override loader message
15
15
  */
16
- message: string;
16
+ message?: string;
17
17
  watchMessage(newValue: MgLoader['message']): void;
18
18
  /**
19
19
  * Hide message
20
20
  */
21
- messageHide: boolean;
21
+ messageHide?: boolean;
22
22
  /*************
23
23
  * Lifecycle *
24
24
  *************/