@mgdis/mg-components 3.1.0 → 4.0.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 (241) hide show
  1. package/dist/cjs/{index-85a4a0b6.js → index-88560a66.js} +123 -48
  2. package/dist/cjs/index-a39c5567.js +233 -0
  3. package/dist/cjs/loader.cjs.js +3 -17
  4. package/dist/cjs/mg-badge_21.cjs.entry.js +3538 -0
  5. package/dist/cjs/mg-components.cjs.js +3 -7
  6. package/dist/cjs/mg-modal.cjs.entry.js +117 -0
  7. package/dist/cjs/mg-popover.cjs.entry.js +170 -0
  8. package/dist/cjs/popper-71bf3058.js +1790 -0
  9. package/dist/collection/collection-manifest.json +4 -1
  10. package/dist/collection/components/atoms/mg-badge/{mg-badge.stories.js → doc/mg-badge.stories.js} +4 -1
  11. package/dist/collection/components/atoms/mg-badge/mg-badge.conf.js +1 -1
  12. package/dist/collection/components/atoms/mg-badge/mg-badge.css +0 -2
  13. package/dist/collection/components/atoms/mg-badge/mg-badge.js +26 -10
  14. package/dist/collection/components/atoms/mg-button/{mg-button.stories.js → doc/mg-button.stories.js} +7 -2
  15. package/dist/collection/components/atoms/mg-button/mg-button.conf.js +1 -1
  16. package/dist/collection/components/atoms/mg-button/mg-button.css +46 -49
  17. package/dist/collection/components/atoms/mg-button/mg-button.js +78 -4
  18. package/dist/collection/components/atoms/mg-character-left/{mg-character-left.stories.js → doc/mg-character-left.stories.js} +8 -0
  19. package/dist/collection/components/atoms/mg-character-left/mg-character-left.js +20 -46
  20. package/dist/collection/components/atoms/mg-icon/{mg-icon.stories.js → doc/mg-icon.stories.js} +1 -1
  21. package/dist/collection/components/atoms/mg-icon/mg-icon.conf.js +104 -9
  22. package/dist/collection/components/atoms/mg-icon/mg-icon.css +9 -7
  23. package/dist/collection/components/atoms/mg-icon/mg-icon.js +33 -7
  24. package/dist/collection/components/atoms/mg-input-title/{mg-input-title.stories.js → doc/mg-input-title.stories.js} +0 -0
  25. package/dist/collection/components/atoms/mg-input-title/mg-input-title.css +4 -4
  26. package/dist/collection/components/atoms/mg-input-title/mg-input-title.js +14 -3
  27. package/dist/collection/components/atoms/mg-tag/{mg-tag.stories.js → doc/mg-tag.stories.js} +4 -1
  28. package/dist/collection/components/atoms/mg-tag/mg-tag.js +28 -6
  29. package/dist/collection/components/atoms/mg-tooltip/{mg-tooltip.stories.js → doc/mg-tooltip.stories.js} +14 -1
  30. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.conf.js +20 -0
  31. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +16 -2
  32. package/dist/collection/components/molecules/inputs/MgInput.conf.js +1 -7
  33. package/dist/collection/components/molecules/inputs/MgInput.js +25 -29
  34. package/dist/collection/components/molecules/inputs/mg-input-checkbox/{mg-input-checkbox.stories.js → doc/mg-input-checkbox.stories.js} +6 -1
  35. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.css +25 -11
  36. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +102 -52
  37. package/dist/collection/components/molecules/inputs/mg-input-date/{mg-input-date.stories.js → doc/mg-input-date.stories.js} +6 -1
  38. package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.css +37 -9
  39. package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +136 -66
  40. package/dist/collection/components/molecules/inputs/mg-input-numeric/{mg-input-numeric.stories.js → doc/mg-input-numeric.stories.js} +15 -3
  41. package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.css +38 -10
  42. package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +180 -80
  43. package/dist/collection/components/molecules/inputs/mg-input-password/{mg-input-password.stories.js → doc/mg-input-password.stories.js} +16 -2
  44. package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.css +37 -9
  45. package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +108 -47
  46. package/dist/collection/components/molecules/inputs/mg-input-radio/{mg-input-radio.stories.js → doc/mg-input-radio.stories.js} +6 -1
  47. package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.css +25 -11
  48. package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +113 -42
  49. package/dist/collection/components/molecules/inputs/mg-input-select/{mg-input-select.stories.js → doc/mg-input-select.stories.js} +22 -2
  50. package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.css +39 -10
  51. package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +145 -71
  52. package/dist/collection/components/molecules/inputs/mg-input-text/{mg-input-text.stories.js → doc/mg-input-text.stories.js} +17 -8
  53. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.css +69 -19
  54. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +184 -83
  55. package/dist/collection/components/molecules/inputs/mg-input-textarea/{mg-input-textarea.stories.js → doc/mg-input-textarea.stories.js} +16 -5
  56. package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.css +69 -13
  57. package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +163 -70
  58. package/dist/collection/components/molecules/inputs/mg-input-toggle/{mg-input-toggle.stories.js → doc/mg-input-toggle.stories.js} +6 -1
  59. package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.css +22 -10
  60. package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +68 -33
  61. package/dist/collection/components/molecules/mg-form/doc/mg-form.stories.js +58 -0
  62. package/dist/collection/components/molecules/mg-form/mg-form.css +19 -0
  63. package/dist/collection/components/molecules/mg-form/mg-form.js +271 -0
  64. package/dist/collection/components/molecules/mg-message/{mg-message.stories.js → doc/mg-message.stories.js} +6 -2
  65. package/dist/collection/components/molecules/mg-message/mg-message.css +1 -1
  66. package/dist/collection/components/molecules/mg-message/mg-message.js +26 -11
  67. package/dist/collection/components/molecules/mg-modal/doc/mg-modal.stories.js +51 -0
  68. package/dist/collection/components/molecules/mg-modal/mg-modal.css +52 -0
  69. package/dist/collection/components/molecules/mg-modal/mg-modal.js +240 -0
  70. package/dist/collection/components/molecules/mg-pagination/{mg-pagination.stories.js → doc/mg-pagination.stories.js} +1 -0
  71. package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +47 -28
  72. package/dist/collection/components/molecules/mg-panel/doc/mg-panel.stories.js +39 -0
  73. package/dist/collection/components/molecules/mg-panel/mg-panel.css +53 -0
  74. package/dist/collection/components/molecules/mg-panel/mg-panel.js +356 -0
  75. package/dist/collection/components/molecules/mg-popover/{mg-popover.stories.js → doc/mg-popover.stories.js} +10 -0
  76. package/dist/collection/components/molecules/mg-popover/mg-popover.conf.js +20 -0
  77. package/dist/collection/components/molecules/mg-popover/mg-popover.css +2 -2
  78. package/dist/collection/components/molecules/mg-popover/mg-popover.js +37 -12
  79. package/dist/collection/components/molecules/mg-tabs/{mg-tabs.stories.js → doc/mg-tabs.stories.js} +20 -4
  80. package/dist/collection/components/molecules/mg-tabs/mg-tabs.conf.js +11 -1
  81. package/dist/collection/components/molecules/mg-tabs/mg-tabs.css +17 -3
  82. package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +139 -26
  83. package/dist/collection/locales/index.js +33 -4
  84. package/dist/collection/stories/helpers.stories.js +33 -0
  85. package/dist/collection/utils/components.utils.js +16 -9
  86. package/dist/collection/utils/locale.utils.js +13 -7
  87. package/dist/collection/utils/test.utils.js +27 -15
  88. package/dist/collection/variables.css +39 -5
  89. package/dist/collection/variables.scss +39 -5
  90. package/dist/components/MgInput.js +26 -37
  91. package/dist/components/components.utils.js +16 -9
  92. package/dist/components/index.d.ts +24 -6
  93. package/dist/components/index.js +23 -0
  94. package/dist/components/index2.js +116 -17
  95. package/dist/components/locale.utils.js +13 -8
  96. package/dist/components/mg-badge2.js +25 -9
  97. package/dist/components/mg-button2.js +29 -5
  98. package/dist/components/mg-character-left2.js +14 -26
  99. package/dist/components/mg-form.d.ts +11 -0
  100. package/dist/components/mg-form.js +148 -0
  101. package/dist/components/mg-icon2.js +138 -17
  102. package/dist/components/mg-input-checkbox.js +66 -53
  103. package/dist/components/mg-input-date.js +100 -69
  104. package/dist/components/mg-input-numeric.js +125 -81
  105. package/dist/components/mg-input-password.js +69 -48
  106. package/dist/components/mg-input-radio.js +74 -46
  107. package/dist/components/mg-input-select2.js +103 -71
  108. package/dist/components/mg-input-text.js +1 -237
  109. package/dist/components/mg-input-text2.js +300 -0
  110. package/dist/components/mg-input-textarea.js +100 -46
  111. package/dist/components/mg-input-title2.js +13 -4
  112. package/dist/components/mg-input-toggle.js +39 -31
  113. package/dist/components/mg-message.js +25 -10
  114. package/dist/components/mg-modal.d.ts +11 -0
  115. package/dist/components/mg-modal.js +153 -0
  116. package/dist/components/mg-pagination.js +45 -31
  117. package/dist/components/mg-panel.d.ts +11 -0
  118. package/dist/components/mg-panel.js +244 -0
  119. package/dist/components/mg-popover.js +31 -11
  120. package/dist/components/mg-tabs.js +113 -23
  121. package/dist/components/mg-tag.js +27 -5
  122. package/dist/components/mg-tooltip2.js +10 -1
  123. package/dist/components/popper.js +6 -2
  124. package/dist/esm/{index-e3e84606.js → index-bca81100.js} +124 -46
  125. package/dist/esm/index-e51ae032.js +228 -0
  126. package/dist/esm/loader.js +3 -17
  127. package/dist/esm/mg-badge_21.entry.js +3514 -0
  128. package/dist/esm/mg-components.js +3 -7
  129. package/dist/esm/mg-modal.entry.js +113 -0
  130. package/dist/esm/mg-popover.entry.js +166 -0
  131. package/dist/esm/polyfills/css-shim.js +1 -1
  132. package/dist/esm/popper-93ecb064.js +1788 -0
  133. package/dist/index.js +1 -1
  134. package/dist/mg-components/mg-components.css +1 -1
  135. package/dist/mg-components/mg-components.esm.js +1 -1
  136. package/dist/mg-components/p-003a1344.entry.js +1 -0
  137. package/dist/mg-components/p-462d648a.entry.js +1 -0
  138. package/dist/mg-components/p-4c66f794.js +1 -0
  139. package/dist/mg-components/p-5126ab10.entry.js +1 -0
  140. package/dist/mg-components/p-780bd52d.js +1 -0
  141. package/dist/mg-components/p-b14a3443.js +2 -0
  142. package/dist/mg-components/variables.css +39 -5
  143. package/dist/mg-components/variables.scss +39 -5
  144. package/dist/types/components/atoms/mg-badge/{mg-badge.stories.d.ts → doc/mg-badge.stories.d.ts} +5 -0
  145. package/dist/types/components/atoms/mg-badge/mg-badge.d.ts +16 -5
  146. package/dist/types/components/atoms/mg-button/{mg-button.stories.d.ts → doc/mg-button.stories.d.ts} +5 -0
  147. package/dist/types/components/atoms/mg-button/mg-button.d.ts +23 -3
  148. package/dist/types/components/atoms/mg-character-left/{mg-character-left.stories.d.ts → doc/mg-character-left.stories.d.ts} +9 -0
  149. package/dist/types/components/atoms/mg-character-left/mg-character-left.d.ts +16 -13
  150. package/dist/types/components/atoms/mg-icon/{mg-icon.stories.d.ts → doc/mg-icon.stories.d.ts} +0 -0
  151. package/dist/types/components/atoms/mg-icon/mg-icon.conf.d.ts +1 -1
  152. package/dist/types/components/atoms/mg-icon/mg-icon.d.ts +14 -4
  153. package/dist/types/components/atoms/mg-input-title/{mg-input-title.stories.d.ts → doc/mg-input-title.stories.d.ts} +0 -0
  154. package/dist/types/components/atoms/mg-input-title/mg-input-title.d.ts +11 -1
  155. package/dist/types/components/atoms/mg-tag/{mg-tag.stories.d.ts → doc/mg-tag.stories.d.ts} +5 -0
  156. package/dist/types/components/atoms/mg-tag/mg-tag.d.ts +18 -4
  157. package/dist/types/components/atoms/mg-tooltip/doc/mg-tooltip.stories.d.ts +29 -0
  158. package/dist/types/components/atoms/mg-tooltip/mg-tooltip.conf.d.ts +8 -0
  159. package/dist/types/components/atoms/mg-tooltip/mg-tooltip.d.ts +13 -3
  160. package/dist/types/components/molecules/inputs/MgInput.conf.d.ts +6 -4
  161. package/dist/types/components/molecules/inputs/MgInput.d.ts +7 -8
  162. package/dist/types/components/molecules/inputs/mg-input-checkbox/{mg-input-checkbox.stories.d.ts → doc/mg-input-checkbox.stories.d.ts} +5 -0
  163. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.d.ts +36 -13
  164. package/dist/types/components/molecules/inputs/mg-input-date/{mg-input-date.stories.d.ts → doc/mg-input-date.stories.d.ts} +5 -0
  165. package/dist/types/components/molecules/inputs/mg-input-date/mg-input-date.d.ts +46 -15
  166. package/dist/types/components/molecules/inputs/mg-input-numeric/{mg-input-numeric.stories.d.ts → doc/mg-input-numeric.stories.d.ts} +11 -0
  167. package/dist/types/components/molecules/inputs/mg-input-numeric/mg-input-numeric.d.ts +61 -16
  168. package/dist/types/components/molecules/inputs/mg-input-password/doc/mg-input-password.stories.d.ts +22 -0
  169. package/dist/types/components/molecules/inputs/mg-input-password/mg-input-password.d.ts +35 -11
  170. package/dist/types/components/molecules/inputs/mg-input-radio/{mg-input-radio.stories.d.ts → doc/mg-input-radio.stories.d.ts} +5 -0
  171. package/dist/types/components/molecules/inputs/mg-input-radio/mg-input-radio.conf.d.ts +1 -1
  172. package/dist/types/components/molecules/inputs/mg-input-radio/mg-input-radio.d.ts +42 -9
  173. package/dist/types/components/molecules/inputs/mg-input-select/doc/mg-input-select.stories.d.ts +34 -0
  174. package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.conf.d.ts +1 -1
  175. package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.d.ts +37 -9
  176. package/dist/types/components/molecules/inputs/mg-input-text/{mg-input-text.stories.d.ts → doc/mg-input-text.stories.d.ts} +13 -0
  177. package/dist/types/components/molecules/inputs/mg-input-text/mg-input-text.d.ts +52 -16
  178. package/dist/types/components/molecules/inputs/mg-input-textarea/doc/mg-input-textarea.stories.d.ts +19 -0
  179. package/dist/types/components/molecules/inputs/mg-input-textarea/mg-input-textarea.d.ts +45 -17
  180. package/dist/types/components/molecules/inputs/mg-input-toggle/{mg-input-toggle.stories.d.ts → doc/mg-input-toggle.stories.d.ts} +5 -0
  181. package/dist/types/components/molecules/inputs/mg-input-toggle/mg-input-toggle.conf.d.ts +1 -1
  182. package/dist/types/components/molecules/inputs/mg-input-toggle/mg-input-toggle.d.ts +29 -12
  183. package/dist/types/components/molecules/{mg-popover/mg-popover.stories.d.ts → mg-form/doc/mg-form.stories.d.ts} +3 -4
  184. package/dist/types/components/molecules/mg-form/mg-form.d.ts +83 -0
  185. package/dist/types/components/molecules/mg-message/{mg-message.stories.d.ts → doc/mg-message.stories.d.ts} +10 -0
  186. package/dist/types/components/molecules/mg-message/mg-message.d.ts +13 -4
  187. package/dist/types/components/molecules/mg-modal/doc/mg-modal.stories.d.ts +13 -0
  188. package/dist/types/components/molecules/mg-modal/mg-modal.d.ts +85 -0
  189. package/dist/types/components/molecules/mg-pagination/{mg-pagination.stories.d.ts → doc/mg-pagination.stories.d.ts} +5 -0
  190. package/dist/types/components/molecules/mg-pagination/mg-pagination.d.ts +31 -7
  191. package/dist/types/components/molecules/mg-panel/doc/mg-panel.stories.d.ts +11 -0
  192. package/dist/types/components/molecules/mg-panel/mg-panel.d.ts +139 -0
  193. package/dist/types/components/molecules/mg-popover/doc/mg-popover.stories.d.ts +25 -0
  194. package/dist/types/components/molecules/mg-popover/mg-popover.conf.d.ts +8 -0
  195. package/dist/types/components/molecules/mg-popover/mg-popover.d.ts +27 -4
  196. package/dist/types/components/molecules/mg-tabs/doc/mg-tabs.stories.d.ts +20 -0
  197. package/dist/types/components/molecules/mg-tabs/mg-tabs.conf.d.ts +11 -0
  198. package/dist/types/components/molecules/mg-tabs/mg-tabs.d.ts +70 -6
  199. package/dist/types/components.d.ts +528 -211
  200. package/dist/types/locales/index.d.ts +108 -38
  201. package/dist/types/stories/{buttons.stories.d.ts → helpers.stories.d.ts} +1 -1
  202. package/dist/types/utils/components.utils.d.ts +16 -9
  203. package/dist/types/utils/locale.utils.d.ts +13 -6
  204. package/dist/types/utils/test.utils.d.ts +13 -1
  205. package/loader/index.js +1 -1
  206. package/package.json +45 -14
  207. package/readme.md +9 -35
  208. package/dist/cjs/css-shim-a22512c4.js +0 -6
  209. package/dist/cjs/mg-badge_20.cjs.entry.js +0 -4661
  210. package/dist/cjs/shadow-css-8940f82d.js +0 -390
  211. package/dist/collection/stories/buttons.stories.js +0 -43
  212. package/dist/collection/stories/messages.stories.js +0 -44
  213. package/dist/collection/stories/tags.stories.js +0 -13
  214. package/dist/esm/css-shim-7c240feb.js +0 -4
  215. package/dist/esm/mg-badge_20.entry.js +0 -4638
  216. package/dist/esm/shadow-css-5d2d01ce.js +0 -388
  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/index.js +0 -0
  220. package/dist/esm-es5/loader.js +0 -1
  221. package/dist/esm-es5/mg-badge_20.entry.js +0 -2
  222. package/dist/esm-es5/mg-components.js +0 -1
  223. package/dist/esm-es5/shadow-css-5d2d01ce.js +0 -12
  224. package/dist/mg-components/mg-components.js +0 -132
  225. package/dist/mg-components/p-1cd24462.system.js +0 -1
  226. package/dist/mg-components/p-2e2f6b27.system.entry.js +0 -2
  227. package/dist/mg-components/p-366a224e.js +0 -1
  228. package/dist/mg-components/p-422c429b.system.js +0 -1
  229. package/dist/mg-components/p-50ea2036.system.js +0 -1
  230. package/dist/mg-components/p-62fa3797.js +0 -1
  231. package/dist/mg-components/p-71d57b8b.system.js +0 -13
  232. package/dist/mg-components/p-9a215712.system.js +0 -1
  233. package/dist/mg-components/p-cbf0464b.entry.js +0 -1
  234. package/dist/mg-components/p-f6455ab3.js +0 -12
  235. package/dist/types/components/atoms/mg-tooltip/mg-tooltip.stories.d.ts +0 -11
  236. package/dist/types/components/molecules/inputs/mg-input-password/mg-input-password.stories.d.ts +0 -9
  237. package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.stories.d.ts +0 -14
  238. package/dist/types/components/molecules/inputs/mg-input-textarea/mg-input-textarea.stories.d.ts +0 -6
  239. package/dist/types/components/molecules/mg-tabs/mg-tabs.stories.d.ts +0 -7
  240. package/dist/types/stories/messages.stories.d.ts +0 -13
  241. package/dist/types/stories/tags.stories.d.ts +0 -5
@@ -11,7 +11,9 @@ import { Width } from "./components/molecules/inputs/MgInput.conf";
11
11
  import { RadioOption } from "./components/molecules/inputs/mg-input-radio/mg-input-radio.conf";
12
12
  import { SelectOption } from "./components/molecules/inputs/mg-input-select/mg-input-select.conf";
13
13
  import { ToggleValue } from "./components/molecules/inputs/mg-input-toggle/mg-input-toggle.conf";
14
+ import { Placement } from "./components/molecules/mg-popover/mg-popover.conf";
14
15
  import { TabItem } from "./components/molecules/mg-tabs/mg-tabs.conf";
16
+ import { Placement as Placement1 } from "./components/atoms/mg-tooltip/mg-tooltip.conf";
15
17
  export namespace Components {
16
18
  interface MgBadge {
17
19
  /**
@@ -21,7 +23,7 @@ export namespace Components {
21
23
  /**
22
24
  * Define if button is using outline style
23
25
  */
24
- "outline"?: boolean;
26
+ "outline": boolean;
25
27
  /**
26
28
  * Badge value
27
29
  */
@@ -29,9 +31,13 @@ export namespace Components {
29
31
  /**
30
32
  * Define button variant
31
33
  */
32
- "variant"?: string;
34
+ "variant": string;
33
35
  }
34
36
  interface MgButton {
37
+ /**
38
+ * Prop to set aria-controls on button element
39
+ */
40
+ "controls": string;
35
41
  /**
36
42
  * 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
43
  */
@@ -40,10 +46,18 @@ export namespace Components {
40
46
  * Disable button
41
47
  */
42
48
  "disabled": boolean;
49
+ /**
50
+ * Prop to set aria-expanded on button element
51
+ */
52
+ "expanded": boolean;
53
+ /**
54
+ * 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.
55
+ */
56
+ "haspopup": boolean | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog';
43
57
  /**
44
58
  * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
45
59
  */
46
- "identifier"?: string;
60
+ "identifier": string;
47
61
  /**
48
62
  * Define if button is round. Used for icon button.
49
63
  */
@@ -70,10 +84,37 @@ export namespace Components {
70
84
  * Add maximum length
71
85
  */
72
86
  "maxlength": number;
87
+ }
88
+ interface MgForm {
73
89
  /**
74
- * Template to display remaining characters. Must have {counter} inside
90
+ * Define if form is disabled
75
91
  */
76
- "template": string;
92
+ "disabled": boolean;
93
+ /**
94
+ * Public method to display errors
95
+ * @returns
96
+ */
97
+ "displayError": () => Promise<void>;
98
+ /**
99
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
100
+ */
101
+ "identifier": string;
102
+ /**
103
+ * Define form invalid state
104
+ */
105
+ "invalid": boolean;
106
+ /**
107
+ * Input name If not set the value equals the identifier
108
+ */
109
+ "name": string;
110
+ /**
111
+ * Define if form is readonly
112
+ */
113
+ "readonly": boolean;
114
+ /**
115
+ * Define form valid state
116
+ */
117
+ "valid": boolean;
77
118
  }
78
119
  interface MgIcon {
79
120
  /**
@@ -98,6 +139,11 @@ export namespace Components {
98
139
  * Define if input is disabled
99
140
  */
100
141
  "disabled": boolean;
142
+ /**
143
+ * Public method to display errors
144
+ * @returns
145
+ */
146
+ "displayError": () => Promise<void>;
101
147
  /**
102
148
  * Add a help text under the input, usually expected data format and example
103
149
  */
@@ -105,17 +151,17 @@ export namespace Components {
105
151
  /**
106
152
  * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
107
153
  */
108
- "identifier"?: string;
154
+ "identifier": string;
109
155
  /**
110
156
  * Define if inputs are display verticaly
111
157
  */
112
158
  "inputVerticalList": boolean;
113
159
  /**
114
- * Force invalid component
160
+ * Define input invalid state
115
161
  */
116
162
  "invalid": boolean;
117
163
  /**
118
- * Input label Required
164
+ * Input label
119
165
  */
120
166
  "label": string;
121
167
  /**
@@ -129,7 +175,7 @@ export namespace Components {
129
175
  /**
130
176
  * Input name If not set the value equals the identifier
131
177
  */
132
- "name"?: string;
178
+ "name": string;
133
179
  /**
134
180
  * Define if input is readonly
135
181
  */
@@ -143,7 +189,7 @@ export namespace Components {
143
189
  */
144
190
  "tooltip": string;
145
191
  /**
146
- * Force valid component
192
+ * Define input valid state
147
193
  */
148
194
  "valid": boolean;
149
195
  /**
@@ -156,6 +202,11 @@ export namespace Components {
156
202
  * Define if input is disabled
157
203
  */
158
204
  "disabled": boolean;
205
+ /**
206
+ * Public method to display errors
207
+ * @returns
208
+ */
209
+ "displayError": () => Promise<void>;
159
210
  /**
160
211
  * Add a help text under the input, usually expected data format and example
161
212
  */
@@ -163,13 +214,13 @@ export namespace Components {
163
214
  /**
164
215
  * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
165
216
  */
166
- "identifier"?: string;
217
+ "identifier": string;
167
218
  /**
168
- * Define input pattern error message
219
+ * Define input invalid state
169
220
  */
170
221
  "invalid": boolean;
171
222
  /**
172
- * Input label Required
223
+ * Input label
173
224
  */
174
225
  "label": string;
175
226
  /**
@@ -191,7 +242,7 @@ export namespace Components {
191
242
  /**
192
243
  * Input name If not set the value equals the identifier
193
244
  */
194
- "name"?: string;
245
+ "name": string;
195
246
  /**
196
247
  * Define if input is readonly
197
248
  */
@@ -205,7 +256,7 @@ export namespace Components {
205
256
  */
206
257
  "tooltip": string;
207
258
  /**
208
- * Define input pattern to validate
259
+ * Define input valid state
209
260
  */
210
261
  "valid": boolean;
211
262
  /**
@@ -214,6 +265,10 @@ export namespace Components {
214
265
  "value": string;
215
266
  }
216
267
  interface MgInputNumeric {
268
+ /**
269
+ * Define currency
270
+ */
271
+ "currency": string;
217
272
  /**
218
273
  * Override decimal length decimal is the number after the decimal point
219
274
  */
@@ -222,6 +277,11 @@ export namespace Components {
222
277
  * Define if input is disabled
223
278
  */
224
279
  "disabled": boolean;
280
+ /**
281
+ * Public method to display errors
282
+ * @returns
283
+ */
284
+ "displayError": () => Promise<void>;
225
285
  /**
226
286
  * Add a help text under the input, usually expected data format and example
227
287
  */
@@ -229,7 +289,7 @@ export namespace Components {
229
289
  /**
230
290
  * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
231
291
  */
232
- "identifier"?: string;
292
+ "identifier": string;
233
293
  /**
234
294
  * Override integer length integer is the number before the decimal point
235
295
  */
@@ -239,7 +299,7 @@ export namespace Components {
239
299
  */
240
300
  "invalid": boolean;
241
301
  /**
242
- * Input label Required
302
+ * Input label
243
303
  */
244
304
  "label": string;
245
305
  /**
@@ -254,6 +314,10 @@ export namespace Components {
254
314
  * Maximum value
255
315
  */
256
316
  "max": number;
317
+ /**
318
+ * Define input width
319
+ */
320
+ "mgWidth": Width;
257
321
  /**
258
322
  * Minimum value
259
323
  */
@@ -261,7 +325,7 @@ export namespace Components {
261
325
  /**
262
326
  * Input name If not set the value equals the identifier
263
327
  */
264
- "name"?: string;
328
+ "name": string;
265
329
  /**
266
330
  * 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
331
  */
@@ -290,16 +354,17 @@ export namespace Components {
290
354
  * Component value
291
355
  */
292
356
  "value": string;
293
- /**
294
- * Define input width
295
- */
296
- "width": Width;
297
357
  }
298
358
  interface MgInputPassword {
299
359
  /**
300
360
  * Define if input is disabled
301
361
  */
302
362
  "disabled": boolean;
363
+ /**
364
+ * Public method to display errors
365
+ * @returns
366
+ */
367
+ "displayError": () => Promise<void>;
303
368
  /**
304
369
  * Add a help text under the input, usually expected data format and example
305
370
  */
@@ -307,13 +372,13 @@ export namespace Components {
307
372
  /**
308
373
  * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
309
374
  */
310
- "identifier"?: string;
375
+ "identifier": string;
311
376
  /**
312
- * Define input pattern error message
377
+ * Define input invalid state
313
378
  */
314
379
  "invalid": boolean;
315
380
  /**
316
- * Input label Required
381
+ * Input label
317
382
  */
318
383
  "label": string;
319
384
  /**
@@ -324,10 +389,14 @@ export namespace Components {
324
389
  * Define if label is displayed on top
325
390
  */
326
391
  "labelOnTop": boolean;
392
+ /**
393
+ * Define input width
394
+ */
395
+ "mgWidth": Width;
327
396
  /**
328
397
  * Input name If not set the value equals the identifier
329
398
  */
330
- "name"?: string;
399
+ "name": string;
331
400
  /**
332
401
  * 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
402
  */
@@ -345,23 +414,24 @@ export namespace Components {
345
414
  */
346
415
  "tooltip": string;
347
416
  /**
348
- * Define input pattern to validate
417
+ * Define input valid state
349
418
  */
350
419
  "valid": boolean;
351
420
  /**
352
421
  * Component value
353
422
  */
354
423
  "value": string;
355
- /**
356
- * Define input width
357
- */
358
- "width": Width;
359
424
  }
360
425
  interface MgInputRadio {
361
426
  /**
362
427
  * Define if input is disabled
363
428
  */
364
429
  "disabled": boolean;
430
+ /**
431
+ * Public method to display errors
432
+ * @returns
433
+ */
434
+ "displayError": () => Promise<void>;
365
435
  /**
366
436
  * Add a help text under the input, usually expected data format and example
367
437
  */
@@ -375,7 +445,7 @@ export namespace Components {
375
445
  */
376
446
  "inputVerticalList": boolean;
377
447
  /**
378
- * Force invalid component
448
+ * Define input invalid state
379
449
  */
380
450
  "invalid": boolean;
381
451
  /**
@@ -383,7 +453,7 @@ export namespace Components {
383
453
  */
384
454
  "items": string[] | RadioOption[];
385
455
  /**
386
- * Input label Required
456
+ * Input label
387
457
  */
388
458
  "label": string;
389
459
  /**
@@ -411,7 +481,7 @@ export namespace Components {
411
481
  */
412
482
  "tooltip": string;
413
483
  /**
414
- * Force valid component
484
+ * Define input valid state
415
485
  */
416
486
  "valid": boolean;
417
487
  /**
@@ -424,6 +494,11 @@ export namespace Components {
424
494
  * Define if input is disabled
425
495
  */
426
496
  "disabled": boolean;
497
+ /**
498
+ * Public method to display errors
499
+ * @returns
500
+ */
501
+ "displayError": () => Promise<void>;
427
502
  /**
428
503
  * Add a help text under the input, usually expected data format and example
429
504
  */
@@ -441,7 +516,7 @@ export namespace Components {
441
516
  */
442
517
  "items": string[] | SelectOption[];
443
518
  /**
444
- * Input label Required
519
+ * Input label
445
520
  */
446
521
  "label": string;
447
522
  /**
@@ -452,6 +527,10 @@ export namespace Components {
452
527
  * Define if label is displayed on top
453
528
  */
454
529
  "labelOnTop": boolean;
530
+ /**
531
+ * Define input width
532
+ */
533
+ "mgWidth": Width;
455
534
  /**
456
535
  * Input name If not set the value equals the identifier
457
536
  */
@@ -488,16 +567,8 @@ export namespace Components {
488
567
  * Component value
489
568
  */
490
569
  "value": any;
491
- /**
492
- * Define input width
493
- */
494
- "width": Width;
495
570
  }
496
571
  interface MgInputText {
497
- /**
498
- * Template to use for characters left sentence
499
- */
500
- "characterLeftTemplate": string;
501
572
  /**
502
573
  * Define if input is disabled
503
574
  */
@@ -506,6 +577,11 @@ export namespace Components {
506
577
  * Define if component should display character left
507
578
  */
508
579
  "displayCharacterLeft": boolean;
580
+ /**
581
+ * Public method to display errors
582
+ * @returns
583
+ */
584
+ "displayError": () => Promise<void>;
509
585
  /**
510
586
  * Add a help text under the input, usually expected data format and example
511
587
  */
@@ -517,13 +593,13 @@ export namespace Components {
517
593
  /**
518
594
  * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
519
595
  */
520
- "identifier"?: string;
596
+ "identifier": string;
521
597
  /**
522
- * Define input pattern error message
598
+ * Define input invalid state
523
599
  */
524
600
  "invalid": boolean;
525
601
  /**
526
- * Input label Required
602
+ * Input label
527
603
  */
528
604
  "label": string;
529
605
  /**
@@ -538,10 +614,14 @@ export namespace Components {
538
614
  * Input max length
539
615
  */
540
616
  "maxlength": number;
617
+ /**
618
+ * Define input width
619
+ */
620
+ "mgWidth": Width;
541
621
  /**
542
622
  * Input name If not set the value equals the identifier
543
623
  */
544
- "name"?: string;
624
+ "name": string;
545
625
  /**
546
626
  * Define input pattern to validate
547
627
  */
@@ -562,6 +642,11 @@ export namespace Components {
562
642
  * Define if input is required
563
643
  */
564
644
  "required": boolean;
645
+ /**
646
+ * Public method to play input focus
647
+ * @returns
648
+ */
649
+ "setFocus": () => Promise<void>;
565
650
  /**
566
651
  * Add a tooltip message next to the input
567
652
  */
@@ -571,23 +656,15 @@ export namespace Components {
571
656
  */
572
657
  "type": 'text' | 'search';
573
658
  /**
574
- * Define input pattern to validate
659
+ * Define input valid state
575
660
  */
576
661
  "valid": boolean;
577
662
  /**
578
663
  * Component value
579
664
  */
580
665
  "value": string;
581
- /**
582
- * Define input width
583
- */
584
- "width": Width;
585
666
  }
586
667
  interface MgInputTextarea {
587
- /**
588
- * Template to use for characters left sentence
589
- */
590
- "characterLeftTemplate": string;
591
668
  /**
592
669
  * Define if input is disabled
593
670
  */
@@ -596,6 +673,11 @@ export namespace Components {
596
673
  * Define if component should display character left
597
674
  */
598
675
  "displayCharacterLeft": boolean;
676
+ /**
677
+ * Public method to display errors
678
+ * @returns
679
+ */
680
+ "displayError": () => Promise<void>;
599
681
  /**
600
682
  * Add a help text under the input, usually expected data format and example
601
683
  */
@@ -603,13 +685,13 @@ export namespace Components {
603
685
  /**
604
686
  * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
605
687
  */
606
- "identifier"?: string;
688
+ "identifier": string;
607
689
  /**
608
- * Define input pattern error message
690
+ * Define input invalid state
609
691
  */
610
692
  "invalid": boolean;
611
693
  /**
612
- * Input label Required
694
+ * Input label
613
695
  */
614
696
  "label": string;
615
697
  /**
@@ -624,10 +706,14 @@ export namespace Components {
624
706
  * Input max length
625
707
  */
626
708
  "maxlength": number;
709
+ /**
710
+ * Define input width
711
+ */
712
+ "mgWidth": Width;
627
713
  /**
628
714
  * Input name If not set the value equals the identifier
629
715
  */
630
- "name"?: string;
716
+ "name": string;
631
717
  /**
632
718
  * Define input pattern to validate
633
719
  */
@@ -649,7 +735,11 @@ export namespace Components {
649
735
  */
650
736
  "required": boolean;
651
737
  /**
652
- * Define input pattern error message
738
+ * Define if input is resizable
739
+ */
740
+ "resizable": 'none' | 'both' | 'horizontal' | 'vertical';
741
+ /**
742
+ * Define the number of visible text lines for the control
653
743
  */
654
744
  "rows": number;
655
745
  /**
@@ -657,17 +747,13 @@ export namespace Components {
657
747
  */
658
748
  "tooltip": string;
659
749
  /**
660
- * Define input pattern to validate
750
+ * Define input valid state
661
751
  */
662
752
  "valid": boolean;
663
753
  /**
664
754
  * Component value
665
755
  */
666
756
  "value": string;
667
- /**
668
- * Define input width
669
- */
670
- "width": Width;
671
757
  }
672
758
  interface MgInputTitle {
673
759
  /**
@@ -695,21 +781,22 @@ export namespace Components {
695
781
  /**
696
782
  * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
697
783
  */
698
- "identifier"?: string;
784
+ "identifier": string;
699
785
  /**
700
786
  * Define if toggle display icon
701
787
  */
702
- "isIcon"?: boolean;
788
+ "isIcon": boolean;
703
789
  /**
704
790
  * Define if toggle have on/off style
705
791
  */
706
- "isOnOff"?: boolean;
792
+ "isOnOff": boolean;
707
793
  /**
708
- * Items are the possible options to select Required
794
+ * Items are the possible options to select
795
+ * @returns
709
796
  */
710
797
  "items": string[] | ToggleValue[];
711
798
  /**
712
- * Input label Required
799
+ * Input label
713
800
  */
714
801
  "label": string;
715
802
  /**
@@ -723,7 +810,7 @@ export namespace Components {
723
810
  /**
724
811
  * Input name If not set the value equals the identifier
725
812
  */
726
- "name"?: string;
813
+ "name": string;
727
814
  /**
728
815
  * Define if input is readonly
729
816
  */
@@ -735,7 +822,7 @@ export namespace Components {
735
822
  /**
736
823
  * Component value
737
824
  */
738
- "value"?: any;
825
+ "value": any;
739
826
  }
740
827
  interface MgMessage {
741
828
  /**
@@ -759,6 +846,24 @@ export namespace Components {
759
846
  */
760
847
  "variant": string;
761
848
  }
849
+ interface MgModal {
850
+ /**
851
+ * Define if modal has a cross button
852
+ */
853
+ "closeButton": boolean;
854
+ /**
855
+ * Define if modal is hidden
856
+ */
857
+ "hide": boolean;
858
+ /**
859
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
860
+ */
861
+ "identifier": string;
862
+ /**
863
+ * Displayed modal title required
864
+ */
865
+ "modalTitle": string;
866
+ }
762
867
  interface MgPagination {
763
868
  /**
764
869
  * Component current page
@@ -767,7 +872,7 @@ export namespace Components {
767
872
  /**
768
873
  * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
769
874
  */
770
- "identifier"?: string;
875
+ "identifier": string;
771
876
  /**
772
877
  * Panignation label. Is a short description. Customize default value can be usefull to improve accessibility
773
878
  */
@@ -777,6 +882,36 @@ export namespace Components {
777
882
  */
778
883
  "totalPages": number;
779
884
  }
885
+ interface MgPanel {
886
+ /**
887
+ * Disable possibility to toggle expand
888
+ */
889
+ "expandToggleDisabled": boolean;
890
+ /**
891
+ * Panel is opened
892
+ */
893
+ "expanded": boolean;
894
+ /**
895
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
896
+ */
897
+ "identifier": string;
898
+ /**
899
+ * Panel title
900
+ */
901
+ "panelTitle": string;
902
+ /**
903
+ * Panel title is editabled
904
+ */
905
+ "titleEditable": boolean;
906
+ /**
907
+ * Panel title pattern
908
+ */
909
+ "titlePattern": string;
910
+ /**
911
+ * Panel title pattern error message
912
+ */
913
+ "titlePatternErrorMessage": string;
914
+ }
780
915
  interface MgPopover {
781
916
  /**
782
917
  * Define if popover has a cross button
@@ -797,21 +932,7 @@ export namespace Components {
797
932
  /**
798
933
  * Popover placement
799
934
  */
800
- "placement": | 'auto'
801
- | 'auto-start'
802
- | 'auto-end'
803
- | 'top'
804
- | 'top-start'
805
- | 'top-end'
806
- | 'bottom'
807
- | 'bottom-start'
808
- | 'bottom-end'
809
- | 'right'
810
- | 'right-start'
811
- | 'right-end'
812
- | 'left'
813
- | 'left-start'
814
- | 'left-end';
935
+ "placement": Placement;
815
936
  }
816
937
  interface MgTabs {
817
938
  /**
@@ -821,7 +942,7 @@ export namespace Components {
821
942
  /**
822
943
  * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
823
944
  */
824
- "identifier"?: string;
945
+ "identifier": string;
825
946
  /**
826
947
  * Tabs items Required
827
948
  */
@@ -830,16 +951,20 @@ export namespace Components {
830
951
  * Tabs label. Include short tabs description. Required for accessibility
831
952
  */
832
953
  "label": string;
954
+ /**
955
+ * Define tabs size
956
+ */
957
+ "size": string;
833
958
  }
834
959
  interface MgTag {
835
960
  /**
836
961
  * Define if button is using outline style
837
962
  */
838
- "outline"?: boolean;
963
+ "outline": boolean;
839
964
  /**
840
965
  * Define button variant
841
966
  */
842
- "variant"?: string;
967
+ "variant": string;
843
968
  }
844
969
  interface MgTooltip {
845
970
  /**
@@ -861,23 +986,69 @@ export namespace Components {
861
986
  /**
862
987
  * Tooltip placement
863
988
  */
864
- "placement": | 'auto'
865
- | 'auto-start'
866
- | 'auto-end'
867
- | 'top'
868
- | 'top-start'
869
- | 'top-end'
870
- | 'bottom'
871
- | 'bottom-start'
872
- | 'bottom-end'
873
- | 'right'
874
- | 'right-start'
875
- | 'right-end'
876
- | 'left'
877
- | 'left-start'
878
- | 'left-end';
989
+ "placement": Placement1;
879
990
  }
880
991
  }
992
+ export interface MgFormCustomEvent<T> extends CustomEvent<T> {
993
+ detail: T;
994
+ target: HTMLMgFormElement;
995
+ }
996
+ export interface MgInputCheckboxCustomEvent<T> extends CustomEvent<T> {
997
+ detail: T;
998
+ target: HTMLMgInputCheckboxElement;
999
+ }
1000
+ export interface MgInputDateCustomEvent<T> extends CustomEvent<T> {
1001
+ detail: T;
1002
+ target: HTMLMgInputDateElement;
1003
+ }
1004
+ export interface MgInputNumericCustomEvent<T> extends CustomEvent<T> {
1005
+ detail: T;
1006
+ target: HTMLMgInputNumericElement;
1007
+ }
1008
+ export interface MgInputPasswordCustomEvent<T> extends CustomEvent<T> {
1009
+ detail: T;
1010
+ target: HTMLMgInputPasswordElement;
1011
+ }
1012
+ export interface MgInputRadioCustomEvent<T> extends CustomEvent<T> {
1013
+ detail: T;
1014
+ target: HTMLMgInputRadioElement;
1015
+ }
1016
+ export interface MgInputSelectCustomEvent<T> extends CustomEvent<T> {
1017
+ detail: T;
1018
+ target: HTMLMgInputSelectElement;
1019
+ }
1020
+ export interface MgInputTextCustomEvent<T> extends CustomEvent<T> {
1021
+ detail: T;
1022
+ target: HTMLMgInputTextElement;
1023
+ }
1024
+ export interface MgInputTextareaCustomEvent<T> extends CustomEvent<T> {
1025
+ detail: T;
1026
+ target: HTMLMgInputTextareaElement;
1027
+ }
1028
+ export interface MgInputToggleCustomEvent<T> extends CustomEvent<T> {
1029
+ detail: T;
1030
+ target: HTMLMgInputToggleElement;
1031
+ }
1032
+ export interface MgMessageCustomEvent<T> extends CustomEvent<T> {
1033
+ detail: T;
1034
+ target: HTMLMgMessageElement;
1035
+ }
1036
+ export interface MgModalCustomEvent<T> extends CustomEvent<T> {
1037
+ detail: T;
1038
+ target: HTMLMgModalElement;
1039
+ }
1040
+ export interface MgPaginationCustomEvent<T> extends CustomEvent<T> {
1041
+ detail: T;
1042
+ target: HTMLMgPaginationElement;
1043
+ }
1044
+ export interface MgPanelCustomEvent<T> extends CustomEvent<T> {
1045
+ detail: T;
1046
+ target: HTMLMgPanelElement;
1047
+ }
1048
+ export interface MgTabsCustomEvent<T> extends CustomEvent<T> {
1049
+ detail: T;
1050
+ target: HTMLMgTabsElement;
1051
+ }
881
1052
  declare global {
882
1053
  interface HTMLMgBadgeElement extends Components.MgBadge, HTMLStencilElement {
883
1054
  }
@@ -897,6 +1068,12 @@ declare global {
897
1068
  prototype: HTMLMgCharacterLeftElement;
898
1069
  new (): HTMLMgCharacterLeftElement;
899
1070
  };
1071
+ interface HTMLMgFormElement extends Components.MgForm, HTMLStencilElement {
1072
+ }
1073
+ var HTMLMgFormElement: {
1074
+ prototype: HTMLMgFormElement;
1075
+ new (): HTMLMgFormElement;
1076
+ };
900
1077
  interface HTMLMgIconElement extends Components.MgIcon, HTMLStencilElement {
901
1078
  }
902
1079
  var HTMLMgIconElement: {
@@ -969,12 +1146,24 @@ declare global {
969
1146
  prototype: HTMLMgMessageElement;
970
1147
  new (): HTMLMgMessageElement;
971
1148
  };
1149
+ interface HTMLMgModalElement extends Components.MgModal, HTMLStencilElement {
1150
+ }
1151
+ var HTMLMgModalElement: {
1152
+ prototype: HTMLMgModalElement;
1153
+ new (): HTMLMgModalElement;
1154
+ };
972
1155
  interface HTMLMgPaginationElement extends Components.MgPagination, HTMLStencilElement {
973
1156
  }
974
1157
  var HTMLMgPaginationElement: {
975
1158
  prototype: HTMLMgPaginationElement;
976
1159
  new (): HTMLMgPaginationElement;
977
1160
  };
1161
+ interface HTMLMgPanelElement extends Components.MgPanel, HTMLStencilElement {
1162
+ }
1163
+ var HTMLMgPanelElement: {
1164
+ prototype: HTMLMgPanelElement;
1165
+ new (): HTMLMgPanelElement;
1166
+ };
978
1167
  interface HTMLMgPopoverElement extends Components.MgPopover, HTMLStencilElement {
979
1168
  }
980
1169
  var HTMLMgPopoverElement: {
@@ -1003,6 +1192,7 @@ declare global {
1003
1192
  "mg-badge": HTMLMgBadgeElement;
1004
1193
  "mg-button": HTMLMgButtonElement;
1005
1194
  "mg-character-left": HTMLMgCharacterLeftElement;
1195
+ "mg-form": HTMLMgFormElement;
1006
1196
  "mg-icon": HTMLMgIconElement;
1007
1197
  "mg-input-checkbox": HTMLMgInputCheckboxElement;
1008
1198
  "mg-input-date": HTMLMgInputDateElement;
@@ -1015,7 +1205,9 @@ declare global {
1015
1205
  "mg-input-title": HTMLMgInputTitleElement;
1016
1206
  "mg-input-toggle": HTMLMgInputToggleElement;
1017
1207
  "mg-message": HTMLMgMessageElement;
1208
+ "mg-modal": HTMLMgModalElement;
1018
1209
  "mg-pagination": HTMLMgPaginationElement;
1210
+ "mg-panel": HTMLMgPanelElement;
1019
1211
  "mg-popover": HTMLMgPopoverElement;
1020
1212
  "mg-tabs": HTMLMgTabsElement;
1021
1213
  "mg-tag": HTMLMgTagElement;
@@ -1042,6 +1234,10 @@ declare namespace LocalJSX {
1042
1234
  "variant"?: string;
1043
1235
  }
1044
1236
  interface MgButton {
1237
+ /**
1238
+ * Prop to set aria-controls on button element
1239
+ */
1240
+ "controls"?: string;
1045
1241
  /**
1046
1242
  * 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
1243
  */
@@ -1050,6 +1246,14 @@ declare namespace LocalJSX {
1050
1246
  * Disable button
1051
1247
  */
1052
1248
  "disabled"?: boolean;
1249
+ /**
1250
+ * Prop to set aria-expanded on button element
1251
+ */
1252
+ "expanded"?: boolean;
1253
+ /**
1254
+ * 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.
1255
+ */
1256
+ "haspopup"?: boolean | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog';
1053
1257
  /**
1054
1258
  * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
1055
1259
  */
@@ -1080,10 +1284,36 @@ declare namespace LocalJSX {
1080
1284
  * Add maximum length
1081
1285
  */
1082
1286
  "maxlength": number;
1287
+ }
1288
+ interface MgForm {
1289
+ /**
1290
+ * Define if form is disabled
1291
+ */
1292
+ "disabled"?: boolean;
1083
1293
  /**
1084
- * Template to display remaining characters. Must have {counter} inside
1294
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
1085
1295
  */
1086
- "template"?: string;
1296
+ "identifier"?: string;
1297
+ /**
1298
+ * Define form invalid state
1299
+ */
1300
+ "invalid"?: boolean;
1301
+ /**
1302
+ * Input name If not set the value equals the identifier
1303
+ */
1304
+ "name"?: string;
1305
+ /**
1306
+ * Emitted event on form validity check Tells if form is valid or not
1307
+ */
1308
+ "onForm-valid"?: (event: MgFormCustomEvent<boolean>) => void;
1309
+ /**
1310
+ * Define if form is readonly
1311
+ */
1312
+ "readonly"?: boolean;
1313
+ /**
1314
+ * Define form valid state
1315
+ */
1316
+ "valid"?: boolean;
1087
1317
  }
1088
1318
  interface MgIcon {
1089
1319
  /**
@@ -1121,11 +1351,11 @@ declare namespace LocalJSX {
1121
1351
  */
1122
1352
  "inputVerticalList"?: boolean;
1123
1353
  /**
1124
- * Force invalid component
1354
+ * Define input invalid state
1125
1355
  */
1126
1356
  "invalid"?: boolean;
1127
1357
  /**
1128
- * Input label Required
1358
+ * Input label
1129
1359
  */
1130
1360
  "label": string;
1131
1361
  /**
@@ -1140,10 +1370,14 @@ declare namespace LocalJSX {
1140
1370
  * Input name If not set the value equals the identifier
1141
1371
  */
1142
1372
  "name"?: string;
1373
+ /**
1374
+ * Emited event when checking validity
1375
+ */
1376
+ "onInput-valid"?: (event: MgInputCheckboxCustomEvent<boolean>) => void;
1143
1377
  /**
1144
1378
  * Emitted event when value change
1145
1379
  */
1146
- "onValue-change"?: (event: CustomEvent<CheckboxValue[]>) => void;
1380
+ "onValue-change"?: (event: MgInputCheckboxCustomEvent<CheckboxValue[]>) => void;
1147
1381
  /**
1148
1382
  * Define if input is readonly
1149
1383
  */
@@ -1157,7 +1391,7 @@ declare namespace LocalJSX {
1157
1391
  */
1158
1392
  "tooltip"?: string;
1159
1393
  /**
1160
- * Force valid component
1394
+ * Define input valid state
1161
1395
  */
1162
1396
  "valid"?: boolean;
1163
1397
  /**
@@ -1179,11 +1413,11 @@ declare namespace LocalJSX {
1179
1413
  */
1180
1414
  "identifier"?: string;
1181
1415
  /**
1182
- * Define input pattern error message
1416
+ * Define input invalid state
1183
1417
  */
1184
1418
  "invalid"?: boolean;
1185
1419
  /**
1186
- * Input label Required
1420
+ * Input label
1187
1421
  */
1188
1422
  "label": string;
1189
1423
  /**
@@ -1207,9 +1441,13 @@ declare namespace LocalJSX {
1207
1441
  */
1208
1442
  "name"?: string;
1209
1443
  /**
1210
- * Emmited event when value change
1444
+ * Emited event when checking validity
1211
1445
  */
1212
- "onValue-change"?: (event: CustomEvent<string>) => void;
1446
+ "onInput-valid"?: (event: MgInputDateCustomEvent<boolean>) => void;
1447
+ /**
1448
+ * Emited event when value change
1449
+ */
1450
+ "onValue-change"?: (event: MgInputDateCustomEvent<string>) => void;
1213
1451
  /**
1214
1452
  * Define if input is readonly
1215
1453
  */
@@ -1223,7 +1461,7 @@ declare namespace LocalJSX {
1223
1461
  */
1224
1462
  "tooltip"?: string;
1225
1463
  /**
1226
- * Define input pattern to validate
1464
+ * Define input valid state
1227
1465
  */
1228
1466
  "valid"?: boolean;
1229
1467
  /**
@@ -1232,6 +1470,10 @@ declare namespace LocalJSX {
1232
1470
  "value"?: string;
1233
1471
  }
1234
1472
  interface MgInputNumeric {
1473
+ /**
1474
+ * Define currency
1475
+ */
1476
+ "currency"?: string;
1235
1477
  /**
1236
1478
  * Override decimal length decimal is the number after the decimal point
1237
1479
  */
@@ -1257,7 +1499,7 @@ declare namespace LocalJSX {
1257
1499
  */
1258
1500
  "invalid"?: boolean;
1259
1501
  /**
1260
- * Input label Required
1502
+ * Input label
1261
1503
  */
1262
1504
  "label": string;
1263
1505
  /**
@@ -1272,6 +1514,10 @@ declare namespace LocalJSX {
1272
1514
  * Maximum value
1273
1515
  */
1274
1516
  "max"?: number;
1517
+ /**
1518
+ * Define input width
1519
+ */
1520
+ "mgWidth"?: Width;
1275
1521
  /**
1276
1522
  * Minimum value
1277
1523
  */
@@ -1281,9 +1527,13 @@ declare namespace LocalJSX {
1281
1527
  */
1282
1528
  "name"?: string;
1283
1529
  /**
1284
- * Emmited event when value change
1530
+ * Emited event when checking validity
1285
1531
  */
1286
- "onValue-change"?: (event: CustomEvent<number>) => void;
1532
+ "onInput-valid"?: (event: MgInputNumericCustomEvent<boolean>) => void;
1533
+ /**
1534
+ * Emited event when value change
1535
+ */
1536
+ "onValue-change"?: (event: MgInputNumericCustomEvent<number>) => void;
1287
1537
  /**
1288
1538
  * 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.
1289
1539
  */
@@ -1312,10 +1562,6 @@ declare namespace LocalJSX {
1312
1562
  * Component value
1313
1563
  */
1314
1564
  "value"?: string;
1315
- /**
1316
- * Define input width
1317
- */
1318
- "width"?: Width;
1319
1565
  }
1320
1566
  interface MgInputPassword {
1321
1567
  /**
@@ -1331,11 +1577,11 @@ declare namespace LocalJSX {
1331
1577
  */
1332
1578
  "identifier"?: string;
1333
1579
  /**
1334
- * Define input pattern error message
1580
+ * Define input invalid state
1335
1581
  */
1336
1582
  "invalid"?: boolean;
1337
1583
  /**
1338
- * Input label Required
1584
+ * Input label
1339
1585
  */
1340
1586
  "label": string;
1341
1587
  /**
@@ -1346,14 +1592,22 @@ declare namespace LocalJSX {
1346
1592
  * Define if label is displayed on top
1347
1593
  */
1348
1594
  "labelOnTop"?: boolean;
1595
+ /**
1596
+ * Define input width
1597
+ */
1598
+ "mgWidth"?: Width;
1349
1599
  /**
1350
1600
  * Input name If not set the value equals the identifier
1351
1601
  */
1352
1602
  "name"?: string;
1353
1603
  /**
1354
- * Emmited event when value change
1604
+ * Emited event when checking validity
1605
+ */
1606
+ "onInput-valid"?: (event: MgInputPasswordCustomEvent<boolean>) => void;
1607
+ /**
1608
+ * Emited event when value change
1355
1609
  */
1356
- "onValue-change"?: (event: CustomEvent<string>) => void;
1610
+ "onValue-change"?: (event: MgInputPasswordCustomEvent<string>) => void;
1357
1611
  /**
1358
1612
  * 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.
1359
1613
  */
@@ -1371,17 +1625,13 @@ declare namespace LocalJSX {
1371
1625
  */
1372
1626
  "tooltip"?: string;
1373
1627
  /**
1374
- * Define input pattern to validate
1628
+ * Define input valid state
1375
1629
  */
1376
1630
  "valid"?: boolean;
1377
1631
  /**
1378
1632
  * Component value
1379
1633
  */
1380
1634
  "value"?: string;
1381
- /**
1382
- * Define input width
1383
- */
1384
- "width"?: Width;
1385
1635
  }
1386
1636
  interface MgInputRadio {
1387
1637
  /**
@@ -1401,7 +1651,7 @@ declare namespace LocalJSX {
1401
1651
  */
1402
1652
  "inputVerticalList"?: boolean;
1403
1653
  /**
1404
- * Force invalid component
1654
+ * Define input invalid state
1405
1655
  */
1406
1656
  "invalid"?: boolean;
1407
1657
  /**
@@ -1409,7 +1659,7 @@ declare namespace LocalJSX {
1409
1659
  */
1410
1660
  "items": string[] | RadioOption[];
1411
1661
  /**
1412
- * Input label Required
1662
+ * Input label
1413
1663
  */
1414
1664
  "label": string;
1415
1665
  /**
@@ -1424,10 +1674,14 @@ declare namespace LocalJSX {
1424
1674
  * Input name If not set the value equals the identifier
1425
1675
  */
1426
1676
  "name"?: string;
1677
+ /**
1678
+ * Emited event when checking validity
1679
+ */
1680
+ "onInput-valid"?: (event: MgInputRadioCustomEvent<boolean>) => void;
1427
1681
  /**
1428
1682
  * Emitted event when value change
1429
1683
  */
1430
- "onValue-change"?: (event: CustomEvent<any>) => void;
1684
+ "onValue-change"?: (event: MgInputRadioCustomEvent<any>) => void;
1431
1685
  /**
1432
1686
  * Define if input is readonly
1433
1687
  */
@@ -1441,7 +1695,7 @@ declare namespace LocalJSX {
1441
1695
  */
1442
1696
  "tooltip"?: string;
1443
1697
  /**
1444
- * Force valid component
1698
+ * Define input valid state
1445
1699
  */
1446
1700
  "valid"?: boolean;
1447
1701
  /**
@@ -1471,7 +1725,7 @@ declare namespace LocalJSX {
1471
1725
  */
1472
1726
  "items": string[] | SelectOption[];
1473
1727
  /**
1474
- * Input label Required
1728
+ * Input label
1475
1729
  */
1476
1730
  "label": string;
1477
1731
  /**
@@ -1482,14 +1736,22 @@ declare namespace LocalJSX {
1482
1736
  * Define if label is displayed on top
1483
1737
  */
1484
1738
  "labelOnTop"?: boolean;
1739
+ /**
1740
+ * Define input width
1741
+ */
1742
+ "mgWidth"?: Width;
1485
1743
  /**
1486
1744
  * Input name If not set the value equals the identifier
1487
1745
  */
1488
1746
  "name"?: string;
1489
1747
  /**
1490
- * Emmited event when value change
1748
+ * Emited event when checking validity
1491
1749
  */
1492
- "onValue-change"?: (event: CustomEvent<string>) => void;
1750
+ "onInput-valid"?: (event: MgInputSelectCustomEvent<boolean>) => void;
1751
+ /**
1752
+ * Emited event when value change
1753
+ */
1754
+ "onValue-change"?: (event: MgInputSelectCustomEvent<any>) => void;
1493
1755
  /**
1494
1756
  * 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
1757
  */
@@ -1522,16 +1784,8 @@ declare namespace LocalJSX {
1522
1784
  * Component value
1523
1785
  */
1524
1786
  "value"?: any;
1525
- /**
1526
- * Define input width
1527
- */
1528
- "width"?: Width;
1529
1787
  }
1530
1788
  interface MgInputText {
1531
- /**
1532
- * Template to use for characters left sentence
1533
- */
1534
- "characterLeftTemplate"?: string;
1535
1789
  /**
1536
1790
  * Define if input is disabled
1537
1791
  */
@@ -1553,11 +1807,11 @@ declare namespace LocalJSX {
1553
1807
  */
1554
1808
  "identifier"?: string;
1555
1809
  /**
1556
- * Define input pattern error message
1810
+ * Define input invalid state
1557
1811
  */
1558
1812
  "invalid"?: boolean;
1559
1813
  /**
1560
- * Input label Required
1814
+ * Input label
1561
1815
  */
1562
1816
  "label": string;
1563
1817
  /**
@@ -1572,14 +1826,22 @@ declare namespace LocalJSX {
1572
1826
  * Input max length
1573
1827
  */
1574
1828
  "maxlength"?: number;
1829
+ /**
1830
+ * Define input width
1831
+ */
1832
+ "mgWidth"?: Width;
1575
1833
  /**
1576
1834
  * Input name If not set the value equals the identifier
1577
1835
  */
1578
1836
  "name"?: string;
1579
1837
  /**
1580
- * Emmited event when value change
1838
+ * Emited event when checking validity
1581
1839
  */
1582
- "onValue-change"?: (event: CustomEvent<string>) => void;
1840
+ "onInput-valid"?: (event: MgInputTextCustomEvent<boolean>) => void;
1841
+ /**
1842
+ * Emited event when value change
1843
+ */
1844
+ "onValue-change"?: (event: MgInputTextCustomEvent<string>) => void;
1583
1845
  /**
1584
1846
  * Define input pattern to validate
1585
1847
  */
@@ -1609,23 +1871,15 @@ declare namespace LocalJSX {
1609
1871
  */
1610
1872
  "type"?: 'text' | 'search';
1611
1873
  /**
1612
- * Define input pattern to validate
1874
+ * Define input valid state
1613
1875
  */
1614
1876
  "valid"?: boolean;
1615
1877
  /**
1616
1878
  * Component value
1617
1879
  */
1618
1880
  "value"?: string;
1619
- /**
1620
- * Define input width
1621
- */
1622
- "width"?: Width;
1623
1881
  }
1624
1882
  interface MgInputTextarea {
1625
- /**
1626
- * Template to use for characters left sentence
1627
- */
1628
- "characterLeftTemplate"?: string;
1629
1883
  /**
1630
1884
  * Define if input is disabled
1631
1885
  */
@@ -1643,11 +1897,11 @@ declare namespace LocalJSX {
1643
1897
  */
1644
1898
  "identifier"?: string;
1645
1899
  /**
1646
- * Define input pattern error message
1900
+ * Define input invalid state
1647
1901
  */
1648
1902
  "invalid"?: boolean;
1649
1903
  /**
1650
- * Input label Required
1904
+ * Input label
1651
1905
  */
1652
1906
  "label": string;
1653
1907
  /**
@@ -1662,14 +1916,22 @@ declare namespace LocalJSX {
1662
1916
  * Input max length
1663
1917
  */
1664
1918
  "maxlength"?: number;
1919
+ /**
1920
+ * Define input width
1921
+ */
1922
+ "mgWidth"?: Width;
1665
1923
  /**
1666
1924
  * Input name If not set the value equals the identifier
1667
1925
  */
1668
1926
  "name"?: string;
1669
1927
  /**
1670
- * Emmited event when value change
1928
+ * Emited event when checking validity
1929
+ */
1930
+ "onInput-valid"?: (event: MgInputTextareaCustomEvent<boolean>) => void;
1931
+ /**
1932
+ * Emited event when value change
1671
1933
  */
1672
- "onValue-change"?: (event: CustomEvent<string>) => void;
1934
+ "onValue-change"?: (event: MgInputTextareaCustomEvent<string>) => void;
1673
1935
  /**
1674
1936
  * Define input pattern to validate
1675
1937
  */
@@ -1691,7 +1953,11 @@ declare namespace LocalJSX {
1691
1953
  */
1692
1954
  "required"?: boolean;
1693
1955
  /**
1694
- * Define input pattern error message
1956
+ * Define if input is resizable
1957
+ */
1958
+ "resizable"?: 'none' | 'both' | 'horizontal' | 'vertical';
1959
+ /**
1960
+ * Define the number of visible text lines for the control
1695
1961
  */
1696
1962
  "rows"?: number;
1697
1963
  /**
@@ -1699,17 +1965,13 @@ declare namespace LocalJSX {
1699
1965
  */
1700
1966
  "tooltip"?: string;
1701
1967
  /**
1702
- * Define input pattern to validate
1968
+ * Define input valid state
1703
1969
  */
1704
1970
  "valid"?: boolean;
1705
1971
  /**
1706
1972
  * Component value
1707
1973
  */
1708
1974
  "value"?: string;
1709
- /**
1710
- * Define input width
1711
- */
1712
- "width"?: Width;
1713
1975
  }
1714
1976
  interface MgInputTitle {
1715
1977
  /**
@@ -1747,11 +2009,12 @@ declare namespace LocalJSX {
1747
2009
  */
1748
2010
  "isOnOff"?: boolean;
1749
2011
  /**
1750
- * Items are the possible options to select Required
2012
+ * Items are the possible options to select
2013
+ * @returns
1751
2014
  */
1752
2015
  "items": string[] | ToggleValue[];
1753
2016
  /**
1754
- * Input label Required
2017
+ * Input label
1755
2018
  */
1756
2019
  "label": string;
1757
2020
  /**
@@ -1767,9 +2030,13 @@ declare namespace LocalJSX {
1767
2030
  */
1768
2031
  "name"?: string;
1769
2032
  /**
1770
- * Emmited event when value change
2033
+ * Emited event when checking validity
2034
+ */
2035
+ "onInput-valid"?: (event: MgInputToggleCustomEvent<boolean>) => void;
2036
+ /**
2037
+ * Emited event when value change
1771
2038
  */
1772
- "onValue-change"?: (event: CustomEvent<any>) => void;
2039
+ "onValue-change"?: (event: MgInputToggleCustomEvent<any>) => void;
1773
2040
  /**
1774
2041
  * Define if input is readonly
1775
2042
  */
@@ -1801,18 +2068,44 @@ declare namespace LocalJSX {
1801
2068
  */
1802
2069
  "identifier"?: string;
1803
2070
  /**
1804
- * Emmited event when message is hidden
2071
+ * Emited event when message is hidden
1805
2072
  */
1806
- "onComponent-hide"?: (event: CustomEvent<string>) => void;
2073
+ "onComponent-hide"?: (event: MgMessageCustomEvent<string>) => void;
1807
2074
  /**
1808
- * Emmited event when message is diplayed
2075
+ * Emited event when message is diplayed
1809
2076
  */
1810
- "onComponent-show"?: (event: CustomEvent<string>) => void;
2077
+ "onComponent-show"?: (event: MgMessageCustomEvent<string>) => void;
1811
2078
  /**
1812
2079
  * Message variant
1813
2080
  */
1814
2081
  "variant"?: string;
1815
2082
  }
2083
+ interface MgModal {
2084
+ /**
2085
+ * Define if modal has a cross button
2086
+ */
2087
+ "closeButton"?: boolean;
2088
+ /**
2089
+ * Define if modal is hidden
2090
+ */
2091
+ "hide"?: boolean;
2092
+ /**
2093
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
2094
+ */
2095
+ "identifier"?: string;
2096
+ /**
2097
+ * Displayed modal title required
2098
+ */
2099
+ "modalTitle": string;
2100
+ /**
2101
+ * Emmited event when modal is hidden
2102
+ */
2103
+ "onComponent-hide"?: (event: MgModalCustomEvent<string>) => void;
2104
+ /**
2105
+ * Emmited event when modal is diplayed
2106
+ */
2107
+ "onComponent-show"?: (event: MgModalCustomEvent<string>) => void;
2108
+ }
1816
2109
  interface MgPagination {
1817
2110
  /**
1818
2111
  * Component current page
@@ -1829,12 +2122,50 @@ declare namespace LocalJSX {
1829
2122
  /**
1830
2123
  * Emmited event when current page change
1831
2124
  */
1832
- "onCurrent-page-change"?: (event: CustomEvent<number>) => void;
2125
+ "onCurrent-page-change"?: (event: MgPaginationCustomEvent<number>) => void;
1833
2126
  /**
1834
2127
  * Component total pages
1835
2128
  */
1836
2129
  "totalPages"?: number;
1837
2130
  }
2131
+ interface MgPanel {
2132
+ /**
2133
+ * Disable possibility to toggle expand
2134
+ */
2135
+ "expandToggleDisabled"?: boolean;
2136
+ /**
2137
+ * Panel is opened
2138
+ */
2139
+ "expanded"?: boolean;
2140
+ /**
2141
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
2142
+ */
2143
+ "identifier"?: string;
2144
+ /**
2145
+ * Emmited event when expanded change
2146
+ */
2147
+ "onExpanded-change"?: (event: MgPanelCustomEvent<boolean>) => void;
2148
+ /**
2149
+ * Emmited event when title change
2150
+ */
2151
+ "onTitle-change"?: (event: MgPanelCustomEvent<string>) => void;
2152
+ /**
2153
+ * Panel title
2154
+ */
2155
+ "panelTitle": string;
2156
+ /**
2157
+ * Panel title is editabled
2158
+ */
2159
+ "titleEditable"?: boolean;
2160
+ /**
2161
+ * Panel title pattern
2162
+ */
2163
+ "titlePattern"?: string;
2164
+ /**
2165
+ * Panel title pattern error message
2166
+ */
2167
+ "titlePatternErrorMessage"?: string;
2168
+ }
1838
2169
  interface MgPopover {
1839
2170
  /**
1840
2171
  * Define if popover has a cross button
@@ -1855,21 +2186,7 @@ declare namespace LocalJSX {
1855
2186
  /**
1856
2187
  * Popover placement
1857
2188
  */
1858
- "placement"?: | 'auto'
1859
- | 'auto-start'
1860
- | 'auto-end'
1861
- | 'top'
1862
- | 'top-start'
1863
- | 'top-end'
1864
- | 'bottom'
1865
- | 'bottom-start'
1866
- | 'bottom-end'
1867
- | 'right'
1868
- | 'right-start'
1869
- | 'right-end'
1870
- | 'left'
1871
- | 'left-start'
1872
- | 'left-end';
2189
+ "placement"?: Placement;
1873
2190
  }
1874
2191
  interface MgTabs {
1875
2192
  /**
@@ -1888,6 +2205,14 @@ declare namespace LocalJSX {
1888
2205
  * Tabs label. Include short tabs description. Required for accessibility
1889
2206
  */
1890
2207
  "label": string;
2208
+ /**
2209
+ * Emited event when active tab change
2210
+ */
2211
+ "onActive-tab-change"?: (event: MgTabsCustomEvent<number>) => void;
2212
+ /**
2213
+ * Define tabs size
2214
+ */
2215
+ "size"?: string;
1891
2216
  }
1892
2217
  interface MgTag {
1893
2218
  /**
@@ -1919,26 +2244,13 @@ declare namespace LocalJSX {
1919
2244
  /**
1920
2245
  * Tooltip placement
1921
2246
  */
1922
- "placement"?: | 'auto'
1923
- | 'auto-start'
1924
- | 'auto-end'
1925
- | 'top'
1926
- | 'top-start'
1927
- | 'top-end'
1928
- | 'bottom'
1929
- | 'bottom-start'
1930
- | 'bottom-end'
1931
- | 'right'
1932
- | 'right-start'
1933
- | 'right-end'
1934
- | 'left'
1935
- | 'left-start'
1936
- | 'left-end';
2247
+ "placement"?: Placement1;
1937
2248
  }
1938
2249
  interface IntrinsicElements {
1939
2250
  "mg-badge": MgBadge;
1940
2251
  "mg-button": MgButton;
1941
2252
  "mg-character-left": MgCharacterLeft;
2253
+ "mg-form": MgForm;
1942
2254
  "mg-icon": MgIcon;
1943
2255
  "mg-input-checkbox": MgInputCheckbox;
1944
2256
  "mg-input-date": MgInputDate;
@@ -1951,7 +2263,9 @@ declare namespace LocalJSX {
1951
2263
  "mg-input-title": MgInputTitle;
1952
2264
  "mg-input-toggle": MgInputToggle;
1953
2265
  "mg-message": MgMessage;
2266
+ "mg-modal": MgModal;
1954
2267
  "mg-pagination": MgPagination;
2268
+ "mg-panel": MgPanel;
1955
2269
  "mg-popover": MgPopover;
1956
2270
  "mg-tabs": MgTabs;
1957
2271
  "mg-tag": MgTag;
@@ -1965,6 +2279,7 @@ declare module "@stencil/core" {
1965
2279
  "mg-badge": LocalJSX.MgBadge & JSXBase.HTMLAttributes<HTMLMgBadgeElement>;
1966
2280
  "mg-button": LocalJSX.MgButton & JSXBase.HTMLAttributes<HTMLMgButtonElement>;
1967
2281
  "mg-character-left": LocalJSX.MgCharacterLeft & JSXBase.HTMLAttributes<HTMLMgCharacterLeftElement>;
2282
+ "mg-form": LocalJSX.MgForm & JSXBase.HTMLAttributes<HTMLMgFormElement>;
1968
2283
  "mg-icon": LocalJSX.MgIcon & JSXBase.HTMLAttributes<HTMLMgIconElement>;
1969
2284
  "mg-input-checkbox": LocalJSX.MgInputCheckbox & JSXBase.HTMLAttributes<HTMLMgInputCheckboxElement>;
1970
2285
  "mg-input-date": LocalJSX.MgInputDate & JSXBase.HTMLAttributes<HTMLMgInputDateElement>;
@@ -1977,7 +2292,9 @@ declare module "@stencil/core" {
1977
2292
  "mg-input-title": LocalJSX.MgInputTitle & JSXBase.HTMLAttributes<HTMLMgInputTitleElement>;
1978
2293
  "mg-input-toggle": LocalJSX.MgInputToggle & JSXBase.HTMLAttributes<HTMLMgInputToggleElement>;
1979
2294
  "mg-message": LocalJSX.MgMessage & JSXBase.HTMLAttributes<HTMLMgMessageElement>;
2295
+ "mg-modal": LocalJSX.MgModal & JSXBase.HTMLAttributes<HTMLMgModalElement>;
1980
2296
  "mg-pagination": LocalJSX.MgPagination & JSXBase.HTMLAttributes<HTMLMgPaginationElement>;
2297
+ "mg-panel": LocalJSX.MgPanel & JSXBase.HTMLAttributes<HTMLMgPanelElement>;
1981
2298
  "mg-popover": LocalJSX.MgPopover & JSXBase.HTMLAttributes<HTMLMgPopoverElement>;
1982
2299
  "mg-tabs": LocalJSX.MgTabs & JSXBase.HTMLAttributes<HTMLMgTabsElement>;
1983
2300
  "mg-tag": LocalJSX.MgTag & JSXBase.HTMLAttributes<HTMLMgTagElement>;