@mgdis/mg-components 3.1.0 → 3.2.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 (225) hide show
  1. package/dist/cjs/css-shim-629916b0.js +6 -0
  2. package/dist/cjs/index-369388eb.js +146 -0
  3. package/dist/cjs/{index-85a4a0b6.js → index-bead7dbd.js} +78 -2
  4. package/dist/cjs/loader.cjs.js +4 -4
  5. package/dist/cjs/mg-badge_21.cjs.entry.js +3313 -0
  6. package/dist/cjs/mg-components.cjs.js +3 -3
  7. package/dist/cjs/mg-modal.cjs.entry.js +111 -0
  8. package/dist/cjs/mg-popover.cjs.entry.js +165 -0
  9. package/dist/cjs/popper-0c3964e7.js +1786 -0
  10. package/dist/cjs/{shadow-css-8940f82d.js → shadow-css-546083ef.js} +1 -1
  11. package/dist/collection/collection-manifest.json +4 -1
  12. package/dist/collection/components/atoms/mg-badge/mg-badge.conf.js +1 -1
  13. package/dist/collection/components/atoms/mg-badge/mg-badge.js +11 -7
  14. package/dist/collection/components/atoms/mg-badge/mg-badge.stories.js +3 -0
  15. package/dist/collection/components/atoms/mg-button/mg-button.css +26 -17
  16. package/dist/collection/components/atoms/mg-button/mg-button.js +71 -2
  17. package/dist/collection/components/atoms/mg-button/mg-button.stories.js +5 -0
  18. package/dist/collection/components/atoms/mg-character-left/mg-character-left.js +12 -1
  19. package/dist/collection/components/atoms/mg-character-left/mg-character-left.stories.js +8 -0
  20. package/dist/collection/components/atoms/mg-icon/mg-icon.conf.js +8 -0
  21. package/dist/collection/components/atoms/mg-icon/mg-icon.css +5 -7
  22. package/dist/collection/components/atoms/mg-icon/mg-icon.js +11 -1
  23. package/dist/collection/components/atoms/mg-input-title/mg-input-title.css +4 -4
  24. package/dist/collection/components/atoms/mg-input-title/mg-input-title.js +14 -3
  25. package/dist/collection/components/atoms/mg-tag/mg-tag.js +10 -3
  26. package/dist/collection/components/atoms/mg-tag/mg-tag.stories.js +3 -0
  27. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +9 -0
  28. package/dist/collection/components/molecules/inputs/MgInput.js +20 -14
  29. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.css +9 -1
  30. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +103 -40
  31. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.stories.js +6 -1
  32. package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.css +27 -0
  33. package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +125 -56
  34. package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.stories.js +6 -1
  35. package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.css +27 -0
  36. package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +144 -68
  37. package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.stories.js +6 -1
  38. package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.css +27 -0
  39. package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +101 -35
  40. package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.stories.js +6 -1
  41. package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.css +9 -1
  42. package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +115 -37
  43. package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.stories.js +6 -1
  44. package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.css +28 -1
  45. package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +132 -51
  46. package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.stories.js +14 -1
  47. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.css +27 -0
  48. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +155 -53
  49. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.stories.js +7 -2
  50. package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.css +27 -0
  51. package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +108 -42
  52. package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.stories.js +7 -2
  53. package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.css +4 -1
  54. package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +60 -31
  55. package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.stories.js +6 -1
  56. package/dist/collection/components/molecules/mg-form/mg-form.css +15 -0
  57. package/dist/collection/components/molecules/mg-form/mg-form.js +269 -0
  58. package/dist/collection/components/molecules/mg-form/mg-form.stories.js +58 -0
  59. package/dist/collection/components/molecules/mg-message/mg-message.css +1 -1
  60. package/dist/collection/components/molecules/mg-message/mg-message.js +11 -4
  61. package/dist/collection/components/molecules/mg-message/mg-message.stories.js +5 -1
  62. package/dist/collection/components/molecules/mg-modal/mg-modal.css +54 -0
  63. package/dist/collection/components/molecules/mg-modal/mg-modal.js +233 -0
  64. package/dist/collection/components/molecules/mg-modal/mg-modal.stories.js +51 -0
  65. package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +32 -12
  66. package/dist/collection/components/molecules/mg-pagination/mg-pagination.stories.js +1 -0
  67. package/dist/collection/components/molecules/mg-panel/mg-panel.css +42 -0
  68. package/dist/collection/components/molecules/mg-panel/mg-panel.js +255 -0
  69. package/dist/collection/components/molecules/mg-panel/mg-panel.stories.js +31 -0
  70. package/dist/collection/components/molecules/mg-popover/mg-popover.css +2 -2
  71. package/dist/collection/components/molecules/mg-popover/mg-popover.js +19 -4
  72. package/dist/collection/components/molecules/mg-tabs/mg-tabs.conf.js +4 -1
  73. package/dist/collection/components/molecules/mg-tabs/mg-tabs.css +14 -3
  74. package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +68 -20
  75. package/dist/collection/components/molecules/mg-tabs/mg-tabs.stories.js +10 -1
  76. package/dist/collection/stories/messages.stories.js +1 -1
  77. package/dist/collection/utils/components.utils.js +16 -9
  78. package/dist/collection/utils/locale.utils.js +6 -3
  79. package/dist/collection/utils/test.utils.js +27 -15
  80. package/dist/collection/variables.css +30 -1
  81. package/dist/collection/variables.scss +30 -1
  82. package/dist/components/MgInput.js +20 -14
  83. package/dist/components/components.utils.js +16 -9
  84. package/dist/components/index.d.ts +1 -1
  85. package/dist/components/index2.js +22 -12
  86. package/dist/components/locale.utils.js +6 -3
  87. package/dist/components/mg-badge2.js +9 -5
  88. package/dist/components/mg-button2.js +21 -2
  89. package/dist/components/mg-character-left2.js +12 -1
  90. package/dist/components/mg-form.d.ts +11 -0
  91. package/dist/components/mg-form.js +146 -0
  92. package/dist/components/mg-icon2.js +20 -2
  93. package/dist/components/mg-input-checkbox.js +65 -36
  94. package/dist/components/mg-input-date.js +87 -52
  95. package/dist/components/mg-input-numeric.js +105 -63
  96. package/dist/components/mg-input-password.js +60 -29
  97. package/dist/components/mg-input-radio.js +74 -34
  98. package/dist/components/mg-input-select2.js +89 -46
  99. package/dist/components/mg-input-text.js +1 -237
  100. package/dist/components/mg-input-text2.js +288 -0
  101. package/dist/components/mg-input-textarea.js +67 -36
  102. package/dist/components/mg-input-title2.js +13 -4
  103. package/dist/components/mg-input-toggle.js +30 -22
  104. package/dist/components/mg-message.js +10 -3
  105. package/dist/components/mg-modal.d.ts +11 -0
  106. package/dist/components/mg-modal.js +147 -0
  107. package/dist/components/mg-pagination.js +31 -11
  108. package/dist/components/mg-panel.d.ts +11 -0
  109. package/dist/components/mg-panel.js +210 -0
  110. package/dist/components/mg-popover.js +20 -5
  111. package/dist/components/mg-tabs.js +43 -11
  112. package/dist/components/mg-tag.js +8 -1
  113. package/dist/components/mg-tooltip2.js +9 -0
  114. package/dist/esm/css-shim-0993aa3b.js +4 -0
  115. package/dist/esm/{index-e3e84606.js → index-9e877561.js} +78 -2
  116. package/dist/esm/index-c346f52d.js +139 -0
  117. package/dist/esm/loader.js +4 -4
  118. package/dist/esm/mg-badge_21.entry.js +3289 -0
  119. package/dist/esm/mg-components.js +3 -3
  120. package/dist/esm/mg-modal.entry.js +107 -0
  121. package/dist/esm/mg-popover.entry.js +161 -0
  122. package/dist/esm/polyfills/css-shim.js +1 -1
  123. package/dist/esm/popper-8874fd6c.js +1784 -0
  124. package/dist/esm/{shadow-css-5d2d01ce.js → shadow-css-dfa0587f.js} +1 -1
  125. package/dist/esm-es5/css-shim-0993aa3b.js +1 -0
  126. package/dist/esm-es5/index-9e877561.js +1 -0
  127. package/dist/esm-es5/index-c346f52d.js +1 -0
  128. package/dist/esm-es5/loader.js +1 -1
  129. package/dist/esm-es5/mg-badge_21.entry.js +2 -0
  130. package/dist/esm-es5/mg-components.js +1 -1
  131. package/dist/esm-es5/mg-modal.entry.js +1 -0
  132. package/dist/esm-es5/mg-popover.entry.js +1 -0
  133. package/dist/esm-es5/popper-8874fd6c.js +1 -0
  134. package/dist/esm-es5/{shadow-css-5d2d01ce.js → shadow-css-dfa0587f.js} +0 -0
  135. package/dist/mg-components/mg-components.css +1 -1
  136. package/dist/mg-components/mg-components.esm.js +1 -1
  137. package/dist/mg-components/mg-components.js +2 -2
  138. package/dist/mg-components/p-3633e9e1.system.entry.js +2 -0
  139. package/dist/mg-components/p-3c14153d.js +1 -0
  140. package/dist/mg-components/p-55a22b35.system.js +1 -0
  141. package/dist/mg-components/{p-f6455ab3.js → p-5e796581.js} +0 -0
  142. package/dist/mg-components/p-656b5efb.system.js +1 -0
  143. package/dist/mg-components/p-68d6f104.js +1 -0
  144. package/dist/mg-components/{p-366a224e.js → p-6d49ed95.js} +1 -1
  145. package/dist/mg-components/p-70177194.entry.js +1 -0
  146. package/dist/mg-components/{p-71d57b8b.system.js → p-8b2d8a2a.system.js} +0 -0
  147. package/dist/mg-components/p-8cb61c3f.system.js +1 -0
  148. package/dist/mg-components/p-ace173b1.js +1 -0
  149. package/dist/mg-components/p-c46fbd54.entry.js +1 -0
  150. package/dist/mg-components/p-c90cc4bf.system.js +1 -0
  151. package/dist/mg-components/p-cd2a4acc.system.entry.js +1 -0
  152. package/dist/mg-components/p-de1164fa.system.entry.js +1 -0
  153. package/dist/mg-components/p-dfe25da3.entry.js +1 -0
  154. package/dist/mg-components/p-e4a502b5.system.js +1 -0
  155. package/dist/mg-components/variables.css +30 -1
  156. package/dist/mg-components/variables.scss +30 -1
  157. package/dist/types/components/atoms/mg-badge/mg-badge.d.ts +8 -4
  158. package/dist/types/components/atoms/mg-badge/mg-badge.stories.d.ts +5 -0
  159. package/dist/types/components/atoms/mg-button/mg-button.d.ts +22 -2
  160. package/dist/types/components/atoms/mg-button/mg-button.stories.d.ts +5 -0
  161. package/dist/types/components/atoms/mg-character-left/mg-character-left.d.ts +13 -2
  162. package/dist/types/components/atoms/mg-character-left/mg-character-left.stories.d.ts +9 -0
  163. package/dist/types/components/atoms/mg-icon/mg-icon.conf.d.ts +1 -1
  164. package/dist/types/components/atoms/mg-icon/mg-icon.d.ts +11 -1
  165. package/dist/types/components/atoms/mg-input-title/mg-input-title.d.ts +11 -1
  166. package/dist/types/components/atoms/mg-tag/mg-tag.d.ts +10 -3
  167. package/dist/types/components/atoms/mg-tag/mg-tag.stories.d.ts +5 -0
  168. package/dist/types/components/atoms/mg-tooltip/mg-tooltip.d.ts +11 -2
  169. package/dist/types/components/molecules/inputs/MgInput.conf.d.ts +8 -0
  170. package/dist/types/components/molecules/inputs/MgInput.d.ts +5 -4
  171. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.d.ts +31 -11
  172. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.stories.d.ts +5 -0
  173. package/dist/types/components/molecules/inputs/mg-input-date/mg-input-date.d.ts +39 -14
  174. package/dist/types/components/molecules/inputs/mg-input-date/mg-input-date.stories.d.ts +5 -0
  175. package/dist/types/components/molecules/inputs/mg-input-numeric/mg-input-numeric.d.ts +53 -14
  176. package/dist/types/components/molecules/inputs/mg-input-numeric/mg-input-numeric.stories.d.ts +5 -0
  177. package/dist/types/components/molecules/inputs/mg-input-password/mg-input-password.d.ts +28 -9
  178. package/dist/types/components/molecules/inputs/mg-input-password/mg-input-password.stories.d.ts +5 -0
  179. package/dist/types/components/molecules/inputs/mg-input-radio/mg-input-radio.conf.d.ts +1 -1
  180. package/dist/types/components/molecules/inputs/mg-input-radio/mg-input-radio.d.ts +37 -8
  181. package/dist/types/components/molecules/inputs/mg-input-radio/mg-input-radio.stories.d.ts +5 -0
  182. package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.conf.d.ts +1 -1
  183. package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.d.ts +30 -7
  184. package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.stories.d.ts +14 -0
  185. package/dist/types/components/molecules/inputs/mg-input-text/mg-input-text.d.ts +46 -10
  186. package/dist/types/components/molecules/inputs/mg-input-text/mg-input-text.stories.d.ts +5 -0
  187. package/dist/types/components/molecules/inputs/mg-input-textarea/mg-input-textarea.d.ts +30 -10
  188. package/dist/types/components/molecules/inputs/mg-input-textarea/mg-input-textarea.stories.d.ts +5 -0
  189. package/dist/types/components/molecules/inputs/mg-input-toggle/mg-input-toggle.conf.d.ts +1 -1
  190. package/dist/types/components/molecules/inputs/mg-input-toggle/mg-input-toggle.d.ts +27 -12
  191. package/dist/types/components/molecules/inputs/mg-input-toggle/mg-input-toggle.stories.d.ts +5 -0
  192. package/dist/types/components/molecules/mg-form/mg-form.d.ts +82 -0
  193. package/dist/types/components/molecules/mg-form/mg-form.stories.d.ts +11 -0
  194. package/dist/types/components/molecules/mg-message/mg-message.d.ts +11 -4
  195. package/dist/types/components/molecules/mg-message/mg-message.stories.d.ts +10 -0
  196. package/dist/types/components/molecules/mg-modal/mg-modal.d.ts +83 -0
  197. package/dist/types/components/molecules/mg-modal/mg-modal.stories.d.ts +13 -0
  198. package/dist/types/components/molecules/mg-pagination/mg-pagination.d.ts +23 -7
  199. package/dist/types/components/molecules/mg-pagination/mg-pagination.stories.d.ts +5 -0
  200. package/dist/types/components/molecules/mg-panel/mg-panel.d.ts +110 -0
  201. package/dist/types/components/molecules/mg-panel/mg-panel.stories.d.ts +6 -0
  202. package/dist/types/components/molecules/mg-popover/mg-popover.d.ts +18 -3
  203. package/dist/types/components/molecules/mg-tabs/mg-tabs.conf.d.ts +5 -0
  204. package/dist/types/components/molecules/mg-tabs/mg-tabs.d.ts +21 -6
  205. package/dist/types/components/molecules/mg-tabs/mg-tabs.stories.d.ts +8 -0
  206. package/dist/types/components.d.ts +365 -78
  207. package/dist/types/locales/index.d.ts +15 -8
  208. package/dist/types/utils/components.utils.d.ts +16 -9
  209. package/dist/types/utils/locale.utils.d.ts +6 -3
  210. package/dist/types/utils/test.utils.d.ts +13 -1
  211. package/package.json +13 -9
  212. package/readme.md +3 -0
  213. package/dist/cjs/css-shim-a22512c4.js +0 -6
  214. package/dist/cjs/mg-badge_20.cjs.entry.js +0 -4661
  215. package/dist/esm/css-shim-7c240feb.js +0 -4
  216. package/dist/esm/mg-badge_20.entry.js +0 -4638
  217. package/dist/esm-es5/css-shim-7c240feb.js +0 -1
  218. package/dist/esm-es5/index-e3e84606.js +0 -1
  219. package/dist/esm-es5/mg-badge_20.entry.js +0 -2
  220. package/dist/mg-components/p-1cd24462.system.js +0 -1
  221. package/dist/mg-components/p-2e2f6b27.system.entry.js +0 -2
  222. package/dist/mg-components/p-422c429b.system.js +0 -1
  223. package/dist/mg-components/p-62fa3797.js +0 -1
  224. package/dist/mg-components/p-9a215712.system.js +0 -1
  225. package/dist/mg-components/p-cbf0464b.entry.js +0 -1
@@ -21,7 +21,7 @@ export namespace Components {
21
21
  /**
22
22
  * Define if button is using outline style
23
23
  */
24
- "outline"?: boolean;
24
+ "outline": boolean;
25
25
  /**
26
26
  * Badge value
27
27
  */
@@ -29,9 +29,13 @@ export namespace Components {
29
29
  /**
30
30
  * Define button variant
31
31
  */
32
- "variant"?: string;
32
+ "variant": string;
33
33
  }
34
34
  interface MgButton {
35
+ /**
36
+ * Prop to set aria-controls on button element
37
+ */
38
+ "controls": string;
35
39
  /**
36
40
  * Option to set input disable on click, in order to prevent multi-click. Parent component have to remove the attribute 'disabled' when the process ends.
37
41
  */
@@ -40,10 +44,18 @@ export namespace Components {
40
44
  * Disable button
41
45
  */
42
46
  "disabled": boolean;
47
+ /**
48
+ * Prop to set aria-expanded on button element
49
+ */
50
+ "expanded": boolean;
51
+ /**
52
+ * Option to set aria-haspopup The aria-haspopup state informs assistive technology users that there is a popup and the type of popup it is, but provides no interactivity.
53
+ */
54
+ "haspopup": boolean | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog';
43
55
  /**
44
56
  * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
45
57
  */
46
- "identifier"?: string;
58
+ "identifier": string;
47
59
  /**
48
60
  * Define if button is round. Used for icon button.
49
61
  */
@@ -75,6 +87,37 @@ export namespace Components {
75
87
  */
76
88
  "template": string;
77
89
  }
90
+ interface MgForm {
91
+ /**
92
+ * Define if form is disabled
93
+ */
94
+ "disabled": boolean;
95
+ /**
96
+ * Public method to display errors
97
+ * @returns
98
+ */
99
+ "displayError": () => Promise<void>;
100
+ /**
101
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
102
+ */
103
+ "identifier": string;
104
+ /**
105
+ * Define form invalid state
106
+ */
107
+ "invalid": boolean;
108
+ /**
109
+ * Input name If not set the value equals the identifier
110
+ */
111
+ "name": string;
112
+ /**
113
+ * Define if form is readonly
114
+ */
115
+ "readonly": boolean;
116
+ /**
117
+ * Define form valid state
118
+ */
119
+ "valid": boolean;
120
+ }
78
121
  interface MgIcon {
79
122
  /**
80
123
  * Icon to display
@@ -98,6 +141,11 @@ export namespace Components {
98
141
  * Define if input is disabled
99
142
  */
100
143
  "disabled": boolean;
144
+ /**
145
+ * Public method to display errors
146
+ * @returns
147
+ */
148
+ "displayError": () => Promise<void>;
101
149
  /**
102
150
  * Add a help text under the input, usually expected data format and example
103
151
  */
@@ -105,17 +153,17 @@ export namespace Components {
105
153
  /**
106
154
  * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
107
155
  */
108
- "identifier"?: string;
156
+ "identifier": string;
109
157
  /**
110
158
  * Define if inputs are display verticaly
111
159
  */
112
160
  "inputVerticalList": boolean;
113
161
  /**
114
- * Force invalid component
162
+ * Define input invalid state
115
163
  */
116
164
  "invalid": boolean;
117
165
  /**
118
- * Input label Required
166
+ * Input label
119
167
  */
120
168
  "label": string;
121
169
  /**
@@ -129,7 +177,7 @@ export namespace Components {
129
177
  /**
130
178
  * Input name If not set the value equals the identifier
131
179
  */
132
- "name"?: string;
180
+ "name": string;
133
181
  /**
134
182
  * Define if input is readonly
135
183
  */
@@ -143,7 +191,7 @@ export namespace Components {
143
191
  */
144
192
  "tooltip": string;
145
193
  /**
146
- * Force valid component
194
+ * Define input valid state
147
195
  */
148
196
  "valid": boolean;
149
197
  /**
@@ -156,6 +204,11 @@ export namespace Components {
156
204
  * Define if input is disabled
157
205
  */
158
206
  "disabled": boolean;
207
+ /**
208
+ * Public method to display errors
209
+ * @returns
210
+ */
211
+ "displayError": () => Promise<void>;
159
212
  /**
160
213
  * Add a help text under the input, usually expected data format and example
161
214
  */
@@ -163,13 +216,13 @@ export namespace Components {
163
216
  /**
164
217
  * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
165
218
  */
166
- "identifier"?: string;
219
+ "identifier": string;
167
220
  /**
168
- * Define input pattern error message
221
+ * Define input invalid state
169
222
  */
170
223
  "invalid": boolean;
171
224
  /**
172
- * Input label Required
225
+ * Input label
173
226
  */
174
227
  "label": string;
175
228
  /**
@@ -191,7 +244,7 @@ export namespace Components {
191
244
  /**
192
245
  * Input name If not set the value equals the identifier
193
246
  */
194
- "name"?: string;
247
+ "name": string;
195
248
  /**
196
249
  * Define if input is readonly
197
250
  */
@@ -205,7 +258,7 @@ export namespace Components {
205
258
  */
206
259
  "tooltip": string;
207
260
  /**
208
- * Define input pattern to validate
261
+ * Define input valid state
209
262
  */
210
263
  "valid": boolean;
211
264
  /**
@@ -222,6 +275,11 @@ export namespace Components {
222
275
  * Define if input is disabled
223
276
  */
224
277
  "disabled": boolean;
278
+ /**
279
+ * Public method to display errors
280
+ * @returns
281
+ */
282
+ "displayError": () => Promise<void>;
225
283
  /**
226
284
  * Add a help text under the input, usually expected data format and example
227
285
  */
@@ -229,7 +287,7 @@ export namespace Components {
229
287
  /**
230
288
  * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
231
289
  */
232
- "identifier"?: string;
290
+ "identifier": string;
233
291
  /**
234
292
  * Override integer length integer is the number before the decimal point
235
293
  */
@@ -239,7 +297,7 @@ export namespace Components {
239
297
  */
240
298
  "invalid": boolean;
241
299
  /**
242
- * Input label Required
300
+ * Input label
243
301
  */
244
302
  "label": string;
245
303
  /**
@@ -261,7 +319,7 @@ export namespace Components {
261
319
  /**
262
320
  * Input name If not set the value equals the identifier
263
321
  */
264
- "name"?: string;
322
+ "name": string;
265
323
  /**
266
324
  * Input placeholder. It should be a word or short phrase that demonstrates the expected type of data, not a replacement for labels or help text.
267
325
  */
@@ -300,6 +358,11 @@ export namespace Components {
300
358
  * Define if input is disabled
301
359
  */
302
360
  "disabled": boolean;
361
+ /**
362
+ * Public method to display errors
363
+ * @returns
364
+ */
365
+ "displayError": () => Promise<void>;
303
366
  /**
304
367
  * Add a help text under the input, usually expected data format and example
305
368
  */
@@ -307,13 +370,13 @@ export namespace Components {
307
370
  /**
308
371
  * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
309
372
  */
310
- "identifier"?: string;
373
+ "identifier": string;
311
374
  /**
312
- * Define input pattern error message
375
+ * Define input invalid state
313
376
  */
314
377
  "invalid": boolean;
315
378
  /**
316
- * Input label Required
379
+ * Input label
317
380
  */
318
381
  "label": string;
319
382
  /**
@@ -327,7 +390,7 @@ export namespace Components {
327
390
  /**
328
391
  * Input name If not set the value equals the identifier
329
392
  */
330
- "name"?: string;
393
+ "name": string;
331
394
  /**
332
395
  * Input placeholder. It should be a word or short phrase that demonstrates the expected type of data, not a replacement for labels or help text.
333
396
  */
@@ -345,7 +408,7 @@ export namespace Components {
345
408
  */
346
409
  "tooltip": string;
347
410
  /**
348
- * Define input pattern to validate
411
+ * Define input valid state
349
412
  */
350
413
  "valid": boolean;
351
414
  /**
@@ -362,6 +425,11 @@ export namespace Components {
362
425
  * Define if input is disabled
363
426
  */
364
427
  "disabled": boolean;
428
+ /**
429
+ * Public method to display errors
430
+ * @returns
431
+ */
432
+ "displayError": () => Promise<void>;
365
433
  /**
366
434
  * Add a help text under the input, usually expected data format and example
367
435
  */
@@ -375,7 +443,7 @@ export namespace Components {
375
443
  */
376
444
  "inputVerticalList": boolean;
377
445
  /**
378
- * Force invalid component
446
+ * Define input invalid state
379
447
  */
380
448
  "invalid": boolean;
381
449
  /**
@@ -383,7 +451,7 @@ export namespace Components {
383
451
  */
384
452
  "items": string[] | RadioOption[];
385
453
  /**
386
- * Input label Required
454
+ * Input label
387
455
  */
388
456
  "label": string;
389
457
  /**
@@ -411,7 +479,7 @@ export namespace Components {
411
479
  */
412
480
  "tooltip": string;
413
481
  /**
414
- * Force valid component
482
+ * Define input valid state
415
483
  */
416
484
  "valid": boolean;
417
485
  /**
@@ -424,6 +492,11 @@ export namespace Components {
424
492
  * Define if input is disabled
425
493
  */
426
494
  "disabled": boolean;
495
+ /**
496
+ * Public method to display errors
497
+ * @returns
498
+ */
499
+ "displayError": () => Promise<void>;
427
500
  /**
428
501
  * Add a help text under the input, usually expected data format and example
429
502
  */
@@ -441,7 +514,7 @@ export namespace Components {
441
514
  */
442
515
  "items": string[] | SelectOption[];
443
516
  /**
444
- * Input label Required
517
+ * Input label
445
518
  */
446
519
  "label": string;
447
520
  /**
@@ -506,6 +579,11 @@ export namespace Components {
506
579
  * Define if component should display character left
507
580
  */
508
581
  "displayCharacterLeft": boolean;
582
+ /**
583
+ * Public method to display errors
584
+ * @returns
585
+ */
586
+ "displayError": () => Promise<void>;
509
587
  /**
510
588
  * Add a help text under the input, usually expected data format and example
511
589
  */
@@ -517,13 +595,13 @@ export namespace Components {
517
595
  /**
518
596
  * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
519
597
  */
520
- "identifier"?: string;
598
+ "identifier": string;
521
599
  /**
522
- * Define input pattern error message
600
+ * Define input invalid state
523
601
  */
524
602
  "invalid": boolean;
525
603
  /**
526
- * Input label Required
604
+ * Input label
527
605
  */
528
606
  "label": string;
529
607
  /**
@@ -541,7 +619,7 @@ export namespace Components {
541
619
  /**
542
620
  * Input name If not set the value equals the identifier
543
621
  */
544
- "name"?: string;
622
+ "name": string;
545
623
  /**
546
624
  * Define input pattern to validate
547
625
  */
@@ -562,6 +640,11 @@ export namespace Components {
562
640
  * Define if input is required
563
641
  */
564
642
  "required": boolean;
643
+ /**
644
+ * Public method to play input focus
645
+ * @returns
646
+ */
647
+ "setFocus": () => Promise<void>;
565
648
  /**
566
649
  * Add a tooltip message next to the input
567
650
  */
@@ -571,7 +654,7 @@ export namespace Components {
571
654
  */
572
655
  "type": 'text' | 'search';
573
656
  /**
574
- * Define input pattern to validate
657
+ * Define input valid state
575
658
  */
576
659
  "valid": boolean;
577
660
  /**
@@ -596,6 +679,11 @@ export namespace Components {
596
679
  * Define if component should display character left
597
680
  */
598
681
  "displayCharacterLeft": boolean;
682
+ /**
683
+ * Public method to display errors
684
+ * @returns
685
+ */
686
+ "displayError": () => Promise<void>;
599
687
  /**
600
688
  * Add a help text under the input, usually expected data format and example
601
689
  */
@@ -603,13 +691,13 @@ export namespace Components {
603
691
  /**
604
692
  * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
605
693
  */
606
- "identifier"?: string;
694
+ "identifier": string;
607
695
  /**
608
- * Define input pattern error message
696
+ * Define input invalid state
609
697
  */
610
698
  "invalid": boolean;
611
699
  /**
612
- * Input label Required
700
+ * Input label
613
701
  */
614
702
  "label": string;
615
703
  /**
@@ -627,7 +715,7 @@ export namespace Components {
627
715
  /**
628
716
  * Input name If not set the value equals the identifier
629
717
  */
630
- "name"?: string;
718
+ "name": string;
631
719
  /**
632
720
  * Define input pattern to validate
633
721
  */
@@ -657,7 +745,7 @@ export namespace Components {
657
745
  */
658
746
  "tooltip": string;
659
747
  /**
660
- * Define input pattern to validate
748
+ * Define input valid state
661
749
  */
662
750
  "valid": boolean;
663
751
  /**
@@ -695,21 +783,22 @@ export namespace Components {
695
783
  /**
696
784
  * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
697
785
  */
698
- "identifier"?: string;
786
+ "identifier": string;
699
787
  /**
700
788
  * Define if toggle display icon
701
789
  */
702
- "isIcon"?: boolean;
790
+ "isIcon": boolean;
703
791
  /**
704
792
  * Define if toggle have on/off style
705
793
  */
706
- "isOnOff"?: boolean;
794
+ "isOnOff": boolean;
707
795
  /**
708
- * Items are the possible options to select Required
796
+ * Items are the possible options to select
797
+ * @returns
709
798
  */
710
799
  "items": string[] | ToggleValue[];
711
800
  /**
712
- * Input label Required
801
+ * Input label
713
802
  */
714
803
  "label": string;
715
804
  /**
@@ -723,7 +812,7 @@ export namespace Components {
723
812
  /**
724
813
  * Input name If not set the value equals the identifier
725
814
  */
726
- "name"?: string;
815
+ "name": string;
727
816
  /**
728
817
  * Define if input is readonly
729
818
  */
@@ -735,7 +824,7 @@ export namespace Components {
735
824
  /**
736
825
  * Component value
737
826
  */
738
- "value"?: any;
827
+ "value": any;
739
828
  }
740
829
  interface MgMessage {
741
830
  /**
@@ -759,6 +848,24 @@ export namespace Components {
759
848
  */
760
849
  "variant": string;
761
850
  }
851
+ interface MgModal {
852
+ /**
853
+ * Define if modal has a cross button
854
+ */
855
+ "closeButton": boolean;
856
+ /**
857
+ * Define if modal is hidden
858
+ */
859
+ "hide": boolean;
860
+ /**
861
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
862
+ */
863
+ "identifier": string;
864
+ /**
865
+ * Displayed modal title required
866
+ */
867
+ "modalTitle": string;
868
+ }
762
869
  interface MgPagination {
763
870
  /**
764
871
  * Component current page
@@ -767,7 +874,7 @@ export namespace Components {
767
874
  /**
768
875
  * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
769
876
  */
770
- "identifier"?: string;
877
+ "identifier": string;
771
878
  /**
772
879
  * Panignation label. Is a short description. Customize default value can be usefull to improve accessibility
773
880
  */
@@ -777,6 +884,24 @@ export namespace Components {
777
884
  */
778
885
  "totalPages": number;
779
886
  }
887
+ interface MgPanel {
888
+ /**
889
+ * Panel is opened
890
+ */
891
+ "expanded": boolean;
892
+ /**
893
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
894
+ */
895
+ "identifier": string;
896
+ /**
897
+ * Panel title
898
+ */
899
+ "panelTitle": string;
900
+ /**
901
+ * Panel title is editabled
902
+ */
903
+ "titleEditable": boolean;
904
+ }
780
905
  interface MgPopover {
781
906
  /**
782
907
  * Define if popover has a cross button
@@ -821,7 +946,7 @@ export namespace Components {
821
946
  /**
822
947
  * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
823
948
  */
824
- "identifier"?: string;
949
+ "identifier": string;
825
950
  /**
826
951
  * Tabs items Required
827
952
  */
@@ -830,16 +955,20 @@ export namespace Components {
830
955
  * Tabs label. Include short tabs description. Required for accessibility
831
956
  */
832
957
  "label": string;
958
+ /**
959
+ * Define tabs size
960
+ */
961
+ "size": string;
833
962
  }
834
963
  interface MgTag {
835
964
  /**
836
965
  * Define if button is using outline style
837
966
  */
838
- "outline"?: boolean;
967
+ "outline": boolean;
839
968
  /**
840
969
  * Define button variant
841
970
  */
842
- "variant"?: string;
971
+ "variant": string;
843
972
  }
844
973
  interface MgTooltip {
845
974
  /**
@@ -897,6 +1026,12 @@ declare global {
897
1026
  prototype: HTMLMgCharacterLeftElement;
898
1027
  new (): HTMLMgCharacterLeftElement;
899
1028
  };
1029
+ interface HTMLMgFormElement extends Components.MgForm, HTMLStencilElement {
1030
+ }
1031
+ var HTMLMgFormElement: {
1032
+ prototype: HTMLMgFormElement;
1033
+ new (): HTMLMgFormElement;
1034
+ };
900
1035
  interface HTMLMgIconElement extends Components.MgIcon, HTMLStencilElement {
901
1036
  }
902
1037
  var HTMLMgIconElement: {
@@ -969,12 +1104,24 @@ declare global {
969
1104
  prototype: HTMLMgMessageElement;
970
1105
  new (): HTMLMgMessageElement;
971
1106
  };
1107
+ interface HTMLMgModalElement extends Components.MgModal, HTMLStencilElement {
1108
+ }
1109
+ var HTMLMgModalElement: {
1110
+ prototype: HTMLMgModalElement;
1111
+ new (): HTMLMgModalElement;
1112
+ };
972
1113
  interface HTMLMgPaginationElement extends Components.MgPagination, HTMLStencilElement {
973
1114
  }
974
1115
  var HTMLMgPaginationElement: {
975
1116
  prototype: HTMLMgPaginationElement;
976
1117
  new (): HTMLMgPaginationElement;
977
1118
  };
1119
+ interface HTMLMgPanelElement extends Components.MgPanel, HTMLStencilElement {
1120
+ }
1121
+ var HTMLMgPanelElement: {
1122
+ prototype: HTMLMgPanelElement;
1123
+ new (): HTMLMgPanelElement;
1124
+ };
978
1125
  interface HTMLMgPopoverElement extends Components.MgPopover, HTMLStencilElement {
979
1126
  }
980
1127
  var HTMLMgPopoverElement: {
@@ -1003,6 +1150,7 @@ declare global {
1003
1150
  "mg-badge": HTMLMgBadgeElement;
1004
1151
  "mg-button": HTMLMgButtonElement;
1005
1152
  "mg-character-left": HTMLMgCharacterLeftElement;
1153
+ "mg-form": HTMLMgFormElement;
1006
1154
  "mg-icon": HTMLMgIconElement;
1007
1155
  "mg-input-checkbox": HTMLMgInputCheckboxElement;
1008
1156
  "mg-input-date": HTMLMgInputDateElement;
@@ -1015,7 +1163,9 @@ declare global {
1015
1163
  "mg-input-title": HTMLMgInputTitleElement;
1016
1164
  "mg-input-toggle": HTMLMgInputToggleElement;
1017
1165
  "mg-message": HTMLMgMessageElement;
1166
+ "mg-modal": HTMLMgModalElement;
1018
1167
  "mg-pagination": HTMLMgPaginationElement;
1168
+ "mg-panel": HTMLMgPanelElement;
1019
1169
  "mg-popover": HTMLMgPopoverElement;
1020
1170
  "mg-tabs": HTMLMgTabsElement;
1021
1171
  "mg-tag": HTMLMgTagElement;
@@ -1042,6 +1192,10 @@ declare namespace LocalJSX {
1042
1192
  "variant"?: string;
1043
1193
  }
1044
1194
  interface MgButton {
1195
+ /**
1196
+ * Prop to set aria-controls on button element
1197
+ */
1198
+ "controls"?: string;
1045
1199
  /**
1046
1200
  * Option to set input disable on click, in order to prevent multi-click. Parent component have to remove the attribute 'disabled' when the process ends.
1047
1201
  */
@@ -1050,6 +1204,14 @@ declare namespace LocalJSX {
1050
1204
  * Disable button
1051
1205
  */
1052
1206
  "disabled"?: boolean;
1207
+ /**
1208
+ * Prop to set aria-expanded on button element
1209
+ */
1210
+ "expanded"?: boolean;
1211
+ /**
1212
+ * Option to set aria-haspopup The aria-haspopup state informs assistive technology users that there is a popup and the type of popup it is, but provides no interactivity.
1213
+ */
1214
+ "haspopup"?: boolean | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog';
1053
1215
  /**
1054
1216
  * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
1055
1217
  */
@@ -1085,6 +1247,36 @@ declare namespace LocalJSX {
1085
1247
  */
1086
1248
  "template"?: string;
1087
1249
  }
1250
+ interface MgForm {
1251
+ /**
1252
+ * Define if form is disabled
1253
+ */
1254
+ "disabled"?: boolean;
1255
+ /**
1256
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
1257
+ */
1258
+ "identifier"?: string;
1259
+ /**
1260
+ * Define form invalid state
1261
+ */
1262
+ "invalid"?: boolean;
1263
+ /**
1264
+ * Input name If not set the value equals the identifier
1265
+ */
1266
+ "name"?: string;
1267
+ /**
1268
+ * Emitted event on form validity check Tells if form is valid or not
1269
+ */
1270
+ "onForm-valid"?: (event: CustomEvent<boolean>) => void;
1271
+ /**
1272
+ * Define if form is readonly
1273
+ */
1274
+ "readonly"?: boolean;
1275
+ /**
1276
+ * Define form valid state
1277
+ */
1278
+ "valid"?: boolean;
1279
+ }
1088
1280
  interface MgIcon {
1089
1281
  /**
1090
1282
  * Icon to display
@@ -1121,11 +1313,11 @@ declare namespace LocalJSX {
1121
1313
  */
1122
1314
  "inputVerticalList"?: boolean;
1123
1315
  /**
1124
- * Force invalid component
1316
+ * Define input invalid state
1125
1317
  */
1126
1318
  "invalid"?: boolean;
1127
1319
  /**
1128
- * Input label Required
1320
+ * Input label
1129
1321
  */
1130
1322
  "label": string;
1131
1323
  /**
@@ -1140,6 +1332,10 @@ declare namespace LocalJSX {
1140
1332
  * Input name If not set the value equals the identifier
1141
1333
  */
1142
1334
  "name"?: string;
1335
+ /**
1336
+ * Emited event when checking validity
1337
+ */
1338
+ "onInput-valid"?: (event: CustomEvent<boolean>) => void;
1143
1339
  /**
1144
1340
  * Emitted event when value change
1145
1341
  */
@@ -1157,7 +1353,7 @@ declare namespace LocalJSX {
1157
1353
  */
1158
1354
  "tooltip"?: string;
1159
1355
  /**
1160
- * Force valid component
1356
+ * Define input valid state
1161
1357
  */
1162
1358
  "valid"?: boolean;
1163
1359
  /**
@@ -1179,11 +1375,11 @@ declare namespace LocalJSX {
1179
1375
  */
1180
1376
  "identifier"?: string;
1181
1377
  /**
1182
- * Define input pattern error message
1378
+ * Define input invalid state
1183
1379
  */
1184
1380
  "invalid"?: boolean;
1185
1381
  /**
1186
- * Input label Required
1382
+ * Input label
1187
1383
  */
1188
1384
  "label": string;
1189
1385
  /**
@@ -1207,7 +1403,11 @@ declare namespace LocalJSX {
1207
1403
  */
1208
1404
  "name"?: string;
1209
1405
  /**
1210
- * Emmited event when value change
1406
+ * Emited event when checking validity
1407
+ */
1408
+ "onInput-valid"?: (event: CustomEvent<boolean>) => void;
1409
+ /**
1410
+ * Emited event when value change
1211
1411
  */
1212
1412
  "onValue-change"?: (event: CustomEvent<string>) => void;
1213
1413
  /**
@@ -1223,7 +1423,7 @@ declare namespace LocalJSX {
1223
1423
  */
1224
1424
  "tooltip"?: string;
1225
1425
  /**
1226
- * Define input pattern to validate
1426
+ * Define input valid state
1227
1427
  */
1228
1428
  "valid"?: boolean;
1229
1429
  /**
@@ -1257,7 +1457,7 @@ declare namespace LocalJSX {
1257
1457
  */
1258
1458
  "invalid"?: boolean;
1259
1459
  /**
1260
- * Input label Required
1460
+ * Input label
1261
1461
  */
1262
1462
  "label": string;
1263
1463
  /**
@@ -1281,7 +1481,11 @@ declare namespace LocalJSX {
1281
1481
  */
1282
1482
  "name"?: string;
1283
1483
  /**
1284
- * Emmited event when value change
1484
+ * Emited event when checking validity
1485
+ */
1486
+ "onInput-valid"?: (event: CustomEvent<boolean>) => void;
1487
+ /**
1488
+ * Emited event when value change
1285
1489
  */
1286
1490
  "onValue-change"?: (event: CustomEvent<number>) => void;
1287
1491
  /**
@@ -1331,11 +1535,11 @@ declare namespace LocalJSX {
1331
1535
  */
1332
1536
  "identifier"?: string;
1333
1537
  /**
1334
- * Define input pattern error message
1538
+ * Define input invalid state
1335
1539
  */
1336
1540
  "invalid"?: boolean;
1337
1541
  /**
1338
- * Input label Required
1542
+ * Input label
1339
1543
  */
1340
1544
  "label": string;
1341
1545
  /**
@@ -1351,7 +1555,11 @@ declare namespace LocalJSX {
1351
1555
  */
1352
1556
  "name"?: string;
1353
1557
  /**
1354
- * Emmited event when value change
1558
+ * Emited event when checking validity
1559
+ */
1560
+ "onInput-valid"?: (event: CustomEvent<boolean>) => void;
1561
+ /**
1562
+ * Emited event when value change
1355
1563
  */
1356
1564
  "onValue-change"?: (event: CustomEvent<string>) => void;
1357
1565
  /**
@@ -1371,7 +1579,7 @@ declare namespace LocalJSX {
1371
1579
  */
1372
1580
  "tooltip"?: string;
1373
1581
  /**
1374
- * Define input pattern to validate
1582
+ * Define input valid state
1375
1583
  */
1376
1584
  "valid"?: boolean;
1377
1585
  /**
@@ -1401,7 +1609,7 @@ declare namespace LocalJSX {
1401
1609
  */
1402
1610
  "inputVerticalList"?: boolean;
1403
1611
  /**
1404
- * Force invalid component
1612
+ * Define input invalid state
1405
1613
  */
1406
1614
  "invalid"?: boolean;
1407
1615
  /**
@@ -1409,7 +1617,7 @@ declare namespace LocalJSX {
1409
1617
  */
1410
1618
  "items": string[] | RadioOption[];
1411
1619
  /**
1412
- * Input label Required
1620
+ * Input label
1413
1621
  */
1414
1622
  "label": string;
1415
1623
  /**
@@ -1424,6 +1632,10 @@ declare namespace LocalJSX {
1424
1632
  * Input name If not set the value equals the identifier
1425
1633
  */
1426
1634
  "name"?: string;
1635
+ /**
1636
+ * Emited event when checking validity
1637
+ */
1638
+ "onInput-valid"?: (event: CustomEvent<boolean>) => void;
1427
1639
  /**
1428
1640
  * Emitted event when value change
1429
1641
  */
@@ -1441,7 +1653,7 @@ declare namespace LocalJSX {
1441
1653
  */
1442
1654
  "tooltip"?: string;
1443
1655
  /**
1444
- * Force valid component
1656
+ * Define input valid state
1445
1657
  */
1446
1658
  "valid"?: boolean;
1447
1659
  /**
@@ -1471,7 +1683,7 @@ declare namespace LocalJSX {
1471
1683
  */
1472
1684
  "items": string[] | SelectOption[];
1473
1685
  /**
1474
- * Input label Required
1686
+ * Input label
1475
1687
  */
1476
1688
  "label": string;
1477
1689
  /**
@@ -1487,9 +1699,13 @@ declare namespace LocalJSX {
1487
1699
  */
1488
1700
  "name"?: string;
1489
1701
  /**
1490
- * Emmited event when value change
1702
+ * Emited event when checking validity
1491
1703
  */
1492
- "onValue-change"?: (event: CustomEvent<string>) => void;
1704
+ "onInput-valid"?: (event: CustomEvent<boolean>) => void;
1705
+ /**
1706
+ * Emited event when value change
1707
+ */
1708
+ "onValue-change"?: (event: CustomEvent<any>) => void;
1493
1709
  /**
1494
1710
  * Input placeholder. It should be a word or short phrase that demonstrates the expected type of data, not a replacement for labels or help text.
1495
1711
  */
@@ -1553,11 +1769,11 @@ declare namespace LocalJSX {
1553
1769
  */
1554
1770
  "identifier"?: string;
1555
1771
  /**
1556
- * Define input pattern error message
1772
+ * Define input invalid state
1557
1773
  */
1558
1774
  "invalid"?: boolean;
1559
1775
  /**
1560
- * Input label Required
1776
+ * Input label
1561
1777
  */
1562
1778
  "label": string;
1563
1779
  /**
@@ -1577,7 +1793,11 @@ declare namespace LocalJSX {
1577
1793
  */
1578
1794
  "name"?: string;
1579
1795
  /**
1580
- * Emmited event when value change
1796
+ * Emited event when checking validity
1797
+ */
1798
+ "onInput-valid"?: (event: CustomEvent<boolean>) => void;
1799
+ /**
1800
+ * Emited event when value change
1581
1801
  */
1582
1802
  "onValue-change"?: (event: CustomEvent<string>) => void;
1583
1803
  /**
@@ -1609,7 +1829,7 @@ declare namespace LocalJSX {
1609
1829
  */
1610
1830
  "type"?: 'text' | 'search';
1611
1831
  /**
1612
- * Define input pattern to validate
1832
+ * Define input valid state
1613
1833
  */
1614
1834
  "valid"?: boolean;
1615
1835
  /**
@@ -1643,11 +1863,11 @@ declare namespace LocalJSX {
1643
1863
  */
1644
1864
  "identifier"?: string;
1645
1865
  /**
1646
- * Define input pattern error message
1866
+ * Define input invalid state
1647
1867
  */
1648
1868
  "invalid"?: boolean;
1649
1869
  /**
1650
- * Input label Required
1870
+ * Input label
1651
1871
  */
1652
1872
  "label": string;
1653
1873
  /**
@@ -1667,7 +1887,11 @@ declare namespace LocalJSX {
1667
1887
  */
1668
1888
  "name"?: string;
1669
1889
  /**
1670
- * Emmited event when value change
1890
+ * Emited event when checking validity
1891
+ */
1892
+ "onInput-valid"?: (event: CustomEvent<boolean>) => void;
1893
+ /**
1894
+ * Emited event when value change
1671
1895
  */
1672
1896
  "onValue-change"?: (event: CustomEvent<string>) => void;
1673
1897
  /**
@@ -1699,7 +1923,7 @@ declare namespace LocalJSX {
1699
1923
  */
1700
1924
  "tooltip"?: string;
1701
1925
  /**
1702
- * Define input pattern to validate
1926
+ * Define input valid state
1703
1927
  */
1704
1928
  "valid"?: boolean;
1705
1929
  /**
@@ -1747,11 +1971,12 @@ declare namespace LocalJSX {
1747
1971
  */
1748
1972
  "isOnOff"?: boolean;
1749
1973
  /**
1750
- * Items are the possible options to select Required
1974
+ * Items are the possible options to select
1975
+ * @returns
1751
1976
  */
1752
1977
  "items": string[] | ToggleValue[];
1753
1978
  /**
1754
- * Input label Required
1979
+ * Input label
1755
1980
  */
1756
1981
  "label": string;
1757
1982
  /**
@@ -1767,7 +1992,11 @@ declare namespace LocalJSX {
1767
1992
  */
1768
1993
  "name"?: string;
1769
1994
  /**
1770
- * Emmited event when value change
1995
+ * Emited event when checking validity
1996
+ */
1997
+ "onInput-valid"?: (event: CustomEvent<boolean>) => void;
1998
+ /**
1999
+ * Emited event when value change
1771
2000
  */
1772
2001
  "onValue-change"?: (event: CustomEvent<any>) => void;
1773
2002
  /**
@@ -1801,11 +2030,11 @@ declare namespace LocalJSX {
1801
2030
  */
1802
2031
  "identifier"?: string;
1803
2032
  /**
1804
- * Emmited event when message is hidden
2033
+ * Emited event when message is hidden
1805
2034
  */
1806
2035
  "onComponent-hide"?: (event: CustomEvent<string>) => void;
1807
2036
  /**
1808
- * Emmited event when message is diplayed
2037
+ * Emited event when message is diplayed
1809
2038
  */
1810
2039
  "onComponent-show"?: (event: CustomEvent<string>) => void;
1811
2040
  /**
@@ -1813,6 +2042,32 @@ declare namespace LocalJSX {
1813
2042
  */
1814
2043
  "variant"?: string;
1815
2044
  }
2045
+ interface MgModal {
2046
+ /**
2047
+ * Define if modal has a cross button
2048
+ */
2049
+ "closeButton"?: boolean;
2050
+ /**
2051
+ * Define if modal is hidden
2052
+ */
2053
+ "hide"?: boolean;
2054
+ /**
2055
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
2056
+ */
2057
+ "identifier"?: string;
2058
+ /**
2059
+ * Displayed modal title required
2060
+ */
2061
+ "modalTitle": string;
2062
+ /**
2063
+ * Emmited event when modal is hidden
2064
+ */
2065
+ "onComponent-hide"?: (event: CustomEvent<string>) => void;
2066
+ /**
2067
+ * Emmited event when modal is diplayed
2068
+ */
2069
+ "onComponent-show"?: (event: CustomEvent<string>) => void;
2070
+ }
1816
2071
  interface MgPagination {
1817
2072
  /**
1818
2073
  * Component current page
@@ -1835,6 +2090,28 @@ declare namespace LocalJSX {
1835
2090
  */
1836
2091
  "totalPages"?: number;
1837
2092
  }
2093
+ interface MgPanel {
2094
+ /**
2095
+ * Panel is opened
2096
+ */
2097
+ "expanded"?: boolean;
2098
+ /**
2099
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
2100
+ */
2101
+ "identifier"?: string;
2102
+ /**
2103
+ * Emmited event when title change
2104
+ */
2105
+ "onTitle-change"?: (event: CustomEvent<string>) => void;
2106
+ /**
2107
+ * Panel title
2108
+ */
2109
+ "panelTitle": string;
2110
+ /**
2111
+ * Panel title is editabled
2112
+ */
2113
+ "titleEditable"?: boolean;
2114
+ }
1838
2115
  interface MgPopover {
1839
2116
  /**
1840
2117
  * Define if popover has a cross button
@@ -1888,6 +2165,10 @@ declare namespace LocalJSX {
1888
2165
  * Tabs label. Include short tabs description. Required for accessibility
1889
2166
  */
1890
2167
  "label": string;
2168
+ /**
2169
+ * Define tabs size
2170
+ */
2171
+ "size"?: string;
1891
2172
  }
1892
2173
  interface MgTag {
1893
2174
  /**
@@ -1939,6 +2220,7 @@ declare namespace LocalJSX {
1939
2220
  "mg-badge": MgBadge;
1940
2221
  "mg-button": MgButton;
1941
2222
  "mg-character-left": MgCharacterLeft;
2223
+ "mg-form": MgForm;
1942
2224
  "mg-icon": MgIcon;
1943
2225
  "mg-input-checkbox": MgInputCheckbox;
1944
2226
  "mg-input-date": MgInputDate;
@@ -1951,7 +2233,9 @@ declare namespace LocalJSX {
1951
2233
  "mg-input-title": MgInputTitle;
1952
2234
  "mg-input-toggle": MgInputToggle;
1953
2235
  "mg-message": MgMessage;
2236
+ "mg-modal": MgModal;
1954
2237
  "mg-pagination": MgPagination;
2238
+ "mg-panel": MgPanel;
1955
2239
  "mg-popover": MgPopover;
1956
2240
  "mg-tabs": MgTabs;
1957
2241
  "mg-tag": MgTag;
@@ -1965,6 +2249,7 @@ declare module "@stencil/core" {
1965
2249
  "mg-badge": LocalJSX.MgBadge & JSXBase.HTMLAttributes<HTMLMgBadgeElement>;
1966
2250
  "mg-button": LocalJSX.MgButton & JSXBase.HTMLAttributes<HTMLMgButtonElement>;
1967
2251
  "mg-character-left": LocalJSX.MgCharacterLeft & JSXBase.HTMLAttributes<HTMLMgCharacterLeftElement>;
2252
+ "mg-form": LocalJSX.MgForm & JSXBase.HTMLAttributes<HTMLMgFormElement>;
1968
2253
  "mg-icon": LocalJSX.MgIcon & JSXBase.HTMLAttributes<HTMLMgIconElement>;
1969
2254
  "mg-input-checkbox": LocalJSX.MgInputCheckbox & JSXBase.HTMLAttributes<HTMLMgInputCheckboxElement>;
1970
2255
  "mg-input-date": LocalJSX.MgInputDate & JSXBase.HTMLAttributes<HTMLMgInputDateElement>;
@@ -1977,7 +2262,9 @@ declare module "@stencil/core" {
1977
2262
  "mg-input-title": LocalJSX.MgInputTitle & JSXBase.HTMLAttributes<HTMLMgInputTitleElement>;
1978
2263
  "mg-input-toggle": LocalJSX.MgInputToggle & JSXBase.HTMLAttributes<HTMLMgInputToggleElement>;
1979
2264
  "mg-message": LocalJSX.MgMessage & JSXBase.HTMLAttributes<HTMLMgMessageElement>;
2265
+ "mg-modal": LocalJSX.MgModal & JSXBase.HTMLAttributes<HTMLMgModalElement>;
1980
2266
  "mg-pagination": LocalJSX.MgPagination & JSXBase.HTMLAttributes<HTMLMgPaginationElement>;
2267
+ "mg-panel": LocalJSX.MgPanel & JSXBase.HTMLAttributes<HTMLMgPanelElement>;
1981
2268
  "mg-popover": LocalJSX.MgPopover & JSXBase.HTMLAttributes<HTMLMgPopoverElement>;
1982
2269
  "mg-tabs": LocalJSX.MgTabs & JSXBase.HTMLAttributes<HTMLMgTabsElement>;
1983
2270
  "mg-tag": LocalJSX.MgTag & JSXBase.HTMLAttributes<HTMLMgTagElement>;