@mgdis/mg-components 3.1.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 (271) hide show
  1. package/LICENSE +29 -0
  2. package/dist/cjs/css-shim-a22512c4.js +6 -0
  3. package/dist/cjs/index-85a4a0b6.js +1674 -0
  4. package/dist/cjs/index.cjs.js +2 -0
  5. package/dist/cjs/loader.cjs.js +35 -0
  6. package/dist/cjs/mg-badge_20.cjs.entry.js +4661 -0
  7. package/dist/cjs/mg-components.cjs.js +23 -0
  8. package/dist/cjs/shadow-css-8940f82d.js +390 -0
  9. package/dist/collection/collection-manifest.json +31 -0
  10. package/dist/collection/components/atoms/mg-badge/mg-badge.conf.js +4 -0
  11. package/dist/collection/components/atoms/mg-badge/mg-badge.css +99 -0
  12. package/dist/collection/components/atoms/mg-badge/mg-badge.js +148 -0
  13. package/dist/collection/components/atoms/mg-badge/mg-badge.stories.js +27 -0
  14. package/dist/collection/components/atoms/mg-button/mg-button.conf.js +4 -0
  15. package/dist/collection/components/atoms/mg-button/mg-button.css +134 -0
  16. package/dist/collection/components/atoms/mg-button/mg-button.js +236 -0
  17. package/dist/collection/components/atoms/mg-button/mg-button.stories.js +38 -0
  18. package/dist/collection/components/atoms/mg-character-left/mg-character-left.css +3 -0
  19. package/dist/collection/components/atoms/mg-character-left/mg-character-left.js +133 -0
  20. package/dist/collection/components/atoms/mg-character-left/mg-character-left.stories.js +15 -0
  21. package/dist/collection/components/atoms/mg-icon/mg-icon.conf.js +54 -0
  22. package/dist/collection/components/atoms/mg-icon/mg-icon.css +57 -0
  23. package/dist/collection/components/atoms/mg-icon/mg-icon.js +155 -0
  24. package/dist/collection/components/atoms/mg-icon/mg-icon.stories.js +34 -0
  25. package/dist/collection/components/atoms/mg-input-title/mg-input-title.css +12 -0
  26. package/dist/collection/components/atoms/mg-input-title/mg-input-title.js +95 -0
  27. package/dist/collection/components/atoms/mg-input-title/mg-input-title.stories.js +21 -0
  28. package/dist/collection/components/atoms/mg-tag/mg-tag.conf.js +4 -0
  29. package/dist/collection/components/atoms/mg-tag/mg-tag.css +73 -0
  30. package/dist/collection/components/atoms/mg-tag/mg-tag.js +94 -0
  31. package/dist/collection/components/atoms/mg-tag/mg-tag.stories.js +25 -0
  32. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.css +44 -0
  33. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +225 -0
  34. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.stories.js +26 -0
  35. package/dist/collection/components/molecules/inputs/MgInput.conf.js +7 -0
  36. package/dist/collection/components/molecules/inputs/MgInput.js +130 -0
  37. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.js +1 -0
  38. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.css +156 -0
  39. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +444 -0
  40. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.stories.js +57 -0
  41. package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.conf.js +7 -0
  42. package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.css +171 -0
  43. package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +467 -0
  44. package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.stories.js +46 -0
  45. package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.conf.js +11 -0
  46. package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.css +199 -0
  47. package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +633 -0
  48. package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.stories.js +68 -0
  49. package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.css +195 -0
  50. package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +401 -0
  51. package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.stories.js +43 -0
  52. package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.conf.js +1 -0
  53. package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.css +156 -0
  54. package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +443 -0
  55. package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.stories.js +65 -0
  56. package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.conf.js +1 -0
  57. package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.css +201 -0
  58. package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +532 -0
  59. package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.stories.js +70 -0
  60. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.css +222 -0
  61. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +589 -0
  62. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.stories.js +115 -0
  63. package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.css +217 -0
  64. package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +553 -0
  65. package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.stories.js +52 -0
  66. package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.conf.js +1 -0
  67. package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.css +213 -0
  68. package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +457 -0
  69. package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.stories.js +73 -0
  70. package/dist/collection/components/molecules/mg-message/mg-message.conf.js +4 -0
  71. package/dist/collection/components/molecules/mg-message/mg-message.css +94 -0
  72. package/dist/collection/components/molecules/mg-message/mg-message.js +285 -0
  73. package/dist/collection/components/molecules/mg-message/mg-message.stories.js +43 -0
  74. package/dist/collection/components/molecules/mg-pagination/mg-pagination.conf.js +5 -0
  75. package/dist/collection/components/molecules/mg-pagination/mg-pagination.css +39 -0
  76. package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +218 -0
  77. package/dist/collection/components/molecules/mg-pagination/mg-pagination.stories.js +23 -0
  78. package/dist/collection/components/molecules/mg-popover/mg-popover.css +59 -0
  79. package/dist/collection/components/molecules/mg-popover/mg-popover.js +249 -0
  80. package/dist/collection/components/molecules/mg-popover/mg-popover.stories.js +36 -0
  81. package/dist/collection/components/molecules/mg-tabs/mg-tabs.conf.js +1 -0
  82. package/dist/collection/components/molecules/mg-tabs/mg-tabs.css +30 -0
  83. package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +212 -0
  84. package/dist/collection/components/molecules/mg-tabs/mg-tabs.stories.js +40 -0
  85. package/dist/collection/fonts/OpenSans-Regular.ttf +0 -0
  86. package/dist/collection/fonts/OpenSans-SemiBold.ttf +0 -0
  87. package/dist/collection/fonts/Poppins-Bold.ttf +0 -0
  88. package/dist/collection/index.js +1 -0
  89. package/dist/collection/locales/index.js +4 -0
  90. package/dist/collection/stories/buttons.stories.js +43 -0
  91. package/dist/collection/stories/grids.stories.js +50 -0
  92. package/dist/collection/stories/icons.stories.js +20 -0
  93. package/dist/collection/stories/messages.stories.js +44 -0
  94. package/dist/collection/stories/tags.stories.js +13 -0
  95. package/dist/collection/stories/typography.stories.js +28 -0
  96. package/dist/collection/utils/components.utils.js +67 -0
  97. package/dist/collection/utils/locale.utils.js +32 -0
  98. package/dist/collection/utils/test.utils.js +26 -0
  99. package/dist/collection/variables.css +177 -0
  100. package/dist/collection/variables.scss +177 -0
  101. package/dist/components/MgInput.js +140 -0
  102. package/dist/components/components.utils.js +69 -0
  103. package/dist/components/index.d.ts +26 -0
  104. package/dist/components/index.js +1 -0
  105. package/dist/components/index2.js +54 -0
  106. package/dist/components/locale.utils.js +35 -0
  107. package/dist/components/mg-badge.d.ts +11 -0
  108. package/dist/components/mg-badge.js +6 -0
  109. package/dist/components/mg-badge2.js +82 -0
  110. package/dist/components/mg-button.d.ts +11 -0
  111. package/dist/components/mg-button.js +6 -0
  112. package/dist/components/mg-button2.js +148 -0
  113. package/dist/components/mg-character-left.d.ts +11 -0
  114. package/dist/components/mg-character-left.js +6 -0
  115. package/dist/components/mg-character-left2.js +77 -0
  116. package/dist/components/mg-icon.d.ts +11 -0
  117. package/dist/components/mg-icon.js +6 -0
  118. package/dist/components/mg-icon2.js +147 -0
  119. package/dist/components/mg-input-checkbox.d.ts +11 -0
  120. package/dist/components/mg-input-checkbox.js +222 -0
  121. package/dist/components/mg-input-date.d.ts +11 -0
  122. package/dist/components/mg-input-date.js +245 -0
  123. package/dist/components/mg-input-numeric.d.ts +11 -0
  124. package/dist/components/mg-input-numeric.js +324 -0
  125. package/dist/components/mg-input-password.d.ts +11 -0
  126. package/dist/components/mg-input-password.js +171 -0
  127. package/dist/components/mg-input-radio.d.ts +11 -0
  128. package/dist/components/mg-input-radio.js +211 -0
  129. package/dist/components/mg-input-select.d.ts +11 -0
  130. package/dist/components/mg-input-select.js +6 -0
  131. package/dist/components/mg-input-select2.js +243 -0
  132. package/dist/components/mg-input-text.d.ts +11 -0
  133. package/dist/components/mg-input-text.js +242 -0
  134. package/dist/components/mg-input-textarea.d.ts +11 -0
  135. package/dist/components/mg-input-textarea.js +224 -0
  136. package/dist/components/mg-input-title.d.ts +11 -0
  137. package/dist/components/mg-input-title.js +6 -0
  138. package/dist/components/mg-input-title2.js +55 -0
  139. package/dist/components/mg-input-toggle.d.ts +11 -0
  140. package/dist/components/mg-input-toggle.js +247 -0
  141. package/dist/components/mg-message.d.ts +11 -0
  142. package/dist/components/mg-message.js +183 -0
  143. package/dist/components/mg-pagination.d.ts +11 -0
  144. package/dist/components/mg-pagination.js +175 -0
  145. package/dist/components/mg-popover.d.ts +11 -0
  146. package/dist/components/mg-popover.js +183 -0
  147. package/dist/components/mg-tabs.d.ts +11 -0
  148. package/dist/components/mg-tabs.js +160 -0
  149. package/dist/components/mg-tag.d.ts +11 -0
  150. package/dist/components/mg-tag.js +76 -0
  151. package/dist/components/mg-tooltip.d.ts +11 -0
  152. package/dist/components/mg-tooltip.js +6 -0
  153. package/dist/components/mg-tooltip2.js +150 -0
  154. package/dist/components/popper.js +1784 -0
  155. package/dist/esm/css-shim-7c240feb.js +4 -0
  156. package/dist/esm/index-e3e84606.js +1643 -0
  157. package/dist/esm/index.js +1 -0
  158. package/dist/esm/loader.js +31 -0
  159. package/dist/esm/mg-badge_20.entry.js +4638 -0
  160. package/dist/esm/mg-components.js +21 -0
  161. package/dist/esm/polyfills/core-js.js +11 -0
  162. package/dist/esm/polyfills/css-shim.js +1 -0
  163. package/dist/esm/polyfills/dom.js +79 -0
  164. package/dist/esm/polyfills/es5-html-element.js +1 -0
  165. package/dist/esm/polyfills/index.js +34 -0
  166. package/dist/esm/polyfills/system.js +6 -0
  167. package/dist/esm/shadow-css-5d2d01ce.js +388 -0
  168. package/dist/esm-es5/css-shim-7c240feb.js +1 -0
  169. package/dist/esm-es5/index-e3e84606.js +1 -0
  170. package/dist/esm-es5/index.js +0 -0
  171. package/dist/esm-es5/loader.js +1 -0
  172. package/dist/esm-es5/mg-badge_20.entry.js +2 -0
  173. package/dist/esm-es5/mg-components.js +1 -0
  174. package/dist/esm-es5/shadow-css-5d2d01ce.js +12 -0
  175. package/dist/index.cjs.js +1 -0
  176. package/dist/index.js +1 -0
  177. package/dist/mg-components/fonts/OpenSans-Regular.ttf +0 -0
  178. package/dist/mg-components/fonts/OpenSans-SemiBold.ttf +0 -0
  179. package/dist/mg-components/fonts/Poppins-Bold.ttf +0 -0
  180. package/dist/mg-components/index.esm.js +0 -0
  181. package/dist/mg-components/mg-components.css +1 -0
  182. package/dist/mg-components/mg-components.esm.js +1 -0
  183. package/dist/mg-components/mg-components.js +132 -0
  184. package/dist/mg-components/p-1cd24462.system.js +1 -0
  185. package/dist/mg-components/p-2e2f6b27.system.entry.js +2 -0
  186. package/dist/mg-components/p-366a224e.js +1 -0
  187. package/dist/mg-components/p-422c429b.system.js +1 -0
  188. package/dist/mg-components/p-50ea2036.system.js +1 -0
  189. package/dist/mg-components/p-62fa3797.js +1 -0
  190. package/dist/mg-components/p-71d57b8b.system.js +13 -0
  191. package/dist/mg-components/p-9a215712.system.js +1 -0
  192. package/dist/mg-components/p-cbf0464b.entry.js +1 -0
  193. package/dist/mg-components/p-f6455ab3.js +12 -0
  194. package/dist/mg-components/variables.css +177 -0
  195. package/dist/mg-components/variables.scss +177 -0
  196. package/dist/types/components/atoms/mg-badge/mg-badge.conf.d.ts +8 -0
  197. package/dist/types/components/atoms/mg-badge/mg-badge.d.ts +36 -0
  198. package/dist/types/components/atoms/mg-badge/mg-badge.stories.d.ts +19 -0
  199. package/dist/types/components/atoms/mg-button/mg-button.conf.d.ts +4 -0
  200. package/dist/types/components/atoms/mg-button/mg-button.d.ts +67 -0
  201. package/dist/types/components/atoms/mg-button/mg-button.stories.d.ts +16 -0
  202. package/dist/types/components/atoms/mg-character-left/mg-character-left.d.ts +39 -0
  203. package/dist/types/components/atoms/mg-character-left/mg-character-left.stories.d.ts +7 -0
  204. package/dist/types/components/atoms/mg-icon/mg-icon.conf.d.ts +12 -0
  205. package/dist/types/components/atoms/mg-icon/mg-icon.d.ts +36 -0
  206. package/dist/types/components/atoms/mg-icon/mg-icon.stories.d.ts +26 -0
  207. package/dist/types/components/atoms/mg-input-title/mg-input-title.d.ts +24 -0
  208. package/dist/types/components/atoms/mg-input-title/mg-input-title.stories.d.ts +6 -0
  209. package/dist/types/components/atoms/mg-tag/mg-tag.conf.d.ts +4 -0
  210. package/dist/types/components/atoms/mg-tag/mg-tag.d.ts +25 -0
  211. package/dist/types/components/atoms/mg-tag/mg-tag.stories.d.ts +14 -0
  212. package/dist/types/components/atoms/mg-tooltip/mg-tooltip.d.ts +56 -0
  213. package/dist/types/components/atoms/mg-tooltip/mg-tooltip.stories.d.ts +11 -0
  214. package/dist/types/components/molecules/inputs/MgInput.conf.d.ts +10 -0
  215. package/dist/types/components/molecules/inputs/MgInput.d.ts +35 -0
  216. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.d.ts +19 -0
  217. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.d.ts +120 -0
  218. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.stories.d.ts +6 -0
  219. package/dist/types/components/molecules/inputs/mg-input-date/mg-input-date.conf.d.ts +6 -0
  220. package/dist/types/components/molecules/inputs/mg-input-date/mg-input-date.d.ts +128 -0
  221. package/dist/types/components/molecules/inputs/mg-input-date/mg-input-date.stories.d.ts +7 -0
  222. package/dist/types/components/molecules/inputs/mg-input-numeric/mg-input-numeric.conf.d.ts +10 -0
  223. package/dist/types/components/molecules/inputs/mg-input-numeric/mg-input-numeric.d.ts +173 -0
  224. package/dist/types/components/molecules/inputs/mg-input-numeric/mg-input-numeric.stories.d.ts +21 -0
  225. package/dist/types/components/molecules/inputs/mg-input-password/mg-input-password.d.ts +111 -0
  226. package/dist/types/components/molecules/inputs/mg-input-password/mg-input-password.stories.d.ts +9 -0
  227. package/dist/types/components/molecules/inputs/mg-input-radio/mg-input-radio.conf.d.ts +9 -0
  228. package/dist/types/components/molecules/inputs/mg-input-radio/mg-input-radio.d.ts +121 -0
  229. package/dist/types/components/molecules/inputs/mg-input-radio/mg-input-radio.stories.d.ts +15 -0
  230. package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.conf.d.ts +18 -0
  231. package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.d.ts +133 -0
  232. package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.stories.d.ts +14 -0
  233. package/dist/types/components/molecules/inputs/mg-input-text/mg-input-text.d.ts +160 -0
  234. package/dist/types/components/molecules/inputs/mg-input-text/mg-input-text.stories.d.ts +26 -0
  235. package/dist/types/components/molecules/inputs/mg-input-textarea/mg-input-textarea.d.ts +150 -0
  236. package/dist/types/components/molecules/inputs/mg-input-textarea/mg-input-textarea.stories.d.ts +6 -0
  237. package/dist/types/components/molecules/inputs/mg-input-toggle/mg-input-toggle.conf.d.ts +8 -0
  238. package/dist/types/components/molecules/inputs/mg-input-toggle/mg-input-toggle.d.ts +117 -0
  239. package/dist/types/components/molecules/inputs/mg-input-toggle/mg-input-toggle.stories.d.ts +7 -0
  240. package/dist/types/components/molecules/mg-message/mg-message.conf.d.ts +4 -0
  241. package/dist/types/components/molecules/mg-message/mg-message.d.ts +76 -0
  242. package/dist/types/components/molecules/mg-message/mg-message.stories.d.ts +16 -0
  243. package/dist/types/components/molecules/mg-pagination/mg-pagination.conf.d.ts +4 -0
  244. package/dist/types/components/molecules/mg-pagination/mg-pagination.d.ts +53 -0
  245. package/dist/types/components/molecules/mg-pagination/mg-pagination.stories.d.ts +6 -0
  246. package/dist/types/components/molecules/mg-popover/mg-popover.d.ts +62 -0
  247. package/dist/types/components/molecules/mg-popover/mg-popover.stories.d.ts +12 -0
  248. package/dist/types/components/molecules/mg-tabs/mg-tabs.conf.d.ts +10 -0
  249. package/dist/types/components/molecules/mg-tabs/mg-tabs.d.ts +63 -0
  250. package/dist/types/components/molecules/mg-tabs/mg-tabs.stories.d.ts +7 -0
  251. package/dist/types/components.d.ts +1987 -0
  252. package/dist/types/index.d.ts +1 -0
  253. package/dist/types/locales/index.d.ts +44 -0
  254. package/dist/types/stencil-public-runtime.d.ts +1565 -0
  255. package/dist/types/stories/buttons.stories.d.ts +13 -0
  256. package/dist/types/stories/grids.stories.d.ts +5 -0
  257. package/dist/types/stories/icons.stories.d.ts +13 -0
  258. package/dist/types/stories/messages.stories.d.ts +13 -0
  259. package/dist/types/stories/tags.stories.d.ts +5 -0
  260. package/dist/types/stories/typography.stories.d.ts +5 -0
  261. package/dist/types/utils/components.utils.d.ts +43 -0
  262. package/dist/types/utils/locale.utils.d.ts +22 -0
  263. package/dist/types/utils/test.utils.d.ts +5 -0
  264. package/loader/cdn.js +3 -0
  265. package/loader/index.cjs.js +3 -0
  266. package/loader/index.d.ts +12 -0
  267. package/loader/index.es2017.js +3 -0
  268. package/loader/index.js +4 -0
  269. package/loader/package.json +10 -0
  270. package/package.json +86 -0
  271. package/readme.md +159 -0
@@ -0,0 +1,1987 @@
1
+ /* eslint-disable */
2
+ /* tslint:disable */
3
+ /**
4
+ * This is an autogenerated file created by the Stencil compiler.
5
+ * It contains typing information for all components that exist in this project.
6
+ */
7
+ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
+ import { BadgeType } from "./components/atoms/mg-badge/mg-badge.conf";
9
+ import { CheckboxValue } from "./components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf";
10
+ import { Width } from "./components/molecules/inputs/MgInput.conf";
11
+ import { RadioOption } from "./components/molecules/inputs/mg-input-radio/mg-input-radio.conf";
12
+ import { SelectOption } from "./components/molecules/inputs/mg-input-select/mg-input-select.conf";
13
+ import { ToggleValue } from "./components/molecules/inputs/mg-input-toggle/mg-input-toggle.conf";
14
+ import { TabItem } from "./components/molecules/mg-tabs/mg-tabs.conf";
15
+ export namespace Components {
16
+ interface MgBadge {
17
+ /**
18
+ * Badge label. Include short description. Required for accessibility
19
+ */
20
+ "label": BadgeType['label'];
21
+ /**
22
+ * Define if button is using outline style
23
+ */
24
+ "outline"?: boolean;
25
+ /**
26
+ * Badge value
27
+ */
28
+ "value": BadgeType['value'];
29
+ /**
30
+ * Define button variant
31
+ */
32
+ "variant"?: string;
33
+ }
34
+ interface MgButton {
35
+ /**
36
+ * 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
+ */
38
+ "disableOnClick": boolean;
39
+ /**
40
+ * Disable button
41
+ */
42
+ "disabled": boolean;
43
+ /**
44
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
45
+ */
46
+ "identifier"?: string;
47
+ /**
48
+ * Define if button is round. Used for icon button.
49
+ */
50
+ "isIcon": boolean;
51
+ /**
52
+ * aria-label In case button text is not explicit enough
53
+ */
54
+ "label": string;
55
+ /**
56
+ * Define button variant
57
+ */
58
+ "variant": string;
59
+ }
60
+ interface MgCharacterLeft {
61
+ /**
62
+ * Sets the characters to count
63
+ */
64
+ "characters": string;
65
+ /**
66
+ * Sets an `id` attribute. Needed by the input for accessibility `aria-decribedby`.
67
+ */
68
+ "identifier": string;
69
+ /**
70
+ * Add maximum length
71
+ */
72
+ "maxlength": number;
73
+ /**
74
+ * Template to display remaining characters. Must have {counter} inside
75
+ */
76
+ "template": string;
77
+ }
78
+ interface MgIcon {
79
+ /**
80
+ * Icon to display
81
+ */
82
+ "icon": string;
83
+ /**
84
+ * Define icon size
85
+ */
86
+ "size": string;
87
+ /**
88
+ * Make the icon spin
89
+ */
90
+ "spin": boolean;
91
+ /**
92
+ * Define icon variant Add a background to the icon based on variant color
93
+ */
94
+ "variant": string;
95
+ }
96
+ interface MgInputCheckbox {
97
+ /**
98
+ * Define if input is disabled
99
+ */
100
+ "disabled": boolean;
101
+ /**
102
+ * Add a help text under the input, usually expected data format and example
103
+ */
104
+ "helpText": string;
105
+ /**
106
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
107
+ */
108
+ "identifier"?: string;
109
+ /**
110
+ * Define if inputs are display verticaly
111
+ */
112
+ "inputVerticalList": boolean;
113
+ /**
114
+ * Force invalid component
115
+ */
116
+ "invalid": boolean;
117
+ /**
118
+ * Input label Required
119
+ */
120
+ "label": string;
121
+ /**
122
+ * Define if label is visible
123
+ */
124
+ "labelHide": boolean;
125
+ /**
126
+ * Define if label is displayed on top
127
+ */
128
+ "labelOnTop": boolean;
129
+ /**
130
+ * Input name If not set the value equals the identifier
131
+ */
132
+ "name"?: string;
133
+ /**
134
+ * Define if input is readonly
135
+ */
136
+ "readonly": boolean;
137
+ /**
138
+ * Define if input is required
139
+ */
140
+ "required": boolean;
141
+ /**
142
+ * Add a tooltip message next to the input
143
+ */
144
+ "tooltip": string;
145
+ /**
146
+ * Force valid component
147
+ */
148
+ "valid": boolean;
149
+ /**
150
+ * Component value If item.value is `null`, checkbox will be indeterminate by default Required
151
+ */
152
+ "value": CheckboxValue[];
153
+ }
154
+ interface MgInputDate {
155
+ /**
156
+ * Define if input is disabled
157
+ */
158
+ "disabled": boolean;
159
+ /**
160
+ * Add a help text under the input, usually expected data format and example
161
+ */
162
+ "helpText": string;
163
+ /**
164
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
165
+ */
166
+ "identifier"?: string;
167
+ /**
168
+ * Define input pattern error message
169
+ */
170
+ "invalid": boolean;
171
+ /**
172
+ * Input label Required
173
+ */
174
+ "label": string;
175
+ /**
176
+ * Define if label is visible
177
+ */
178
+ "labelHide": boolean;
179
+ /**
180
+ * Define if label is displayed on top
181
+ */
182
+ "labelOnTop": boolean;
183
+ /**
184
+ * Define input maximum date format: yyyy-mm-dd
185
+ */
186
+ "max": string;
187
+ /**
188
+ * Define input minimum date format: yyyy-mm-dd
189
+ */
190
+ "min": string;
191
+ /**
192
+ * Input name If not set the value equals the identifier
193
+ */
194
+ "name"?: string;
195
+ /**
196
+ * Define if input is readonly
197
+ */
198
+ "readonly": boolean;
199
+ /**
200
+ * Define if input is required
201
+ */
202
+ "required": boolean;
203
+ /**
204
+ * Add a tooltip message next to the input
205
+ */
206
+ "tooltip": string;
207
+ /**
208
+ * Define input pattern to validate
209
+ */
210
+ "valid": boolean;
211
+ /**
212
+ * Component value
213
+ */
214
+ "value": string;
215
+ }
216
+ interface MgInputNumeric {
217
+ /**
218
+ * Override decimal length decimal is the number after the decimal point
219
+ */
220
+ "decimalLength": number;
221
+ /**
222
+ * Define if input is disabled
223
+ */
224
+ "disabled": boolean;
225
+ /**
226
+ * Add a help text under the input, usually expected data format and example
227
+ */
228
+ "helpText": string;
229
+ /**
230
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
231
+ */
232
+ "identifier"?: string;
233
+ /**
234
+ * Override integer length integer is the number before the decimal point
235
+ */
236
+ "integerLength": number;
237
+ /**
238
+ * Define input pattern error message
239
+ */
240
+ "invalid": boolean;
241
+ /**
242
+ * Input label Required
243
+ */
244
+ "label": string;
245
+ /**
246
+ * Define if label is visible
247
+ */
248
+ "labelHide": boolean;
249
+ /**
250
+ * Define if label is displayed on top
251
+ */
252
+ "labelOnTop": boolean;
253
+ /**
254
+ * Maximum value
255
+ */
256
+ "max": number;
257
+ /**
258
+ * Minimum value
259
+ */
260
+ "min": number;
261
+ /**
262
+ * Input name If not set the value equals the identifier
263
+ */
264
+ "name"?: string;
265
+ /**
266
+ * 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
+ */
268
+ "placeholder": string;
269
+ /**
270
+ * Define if input is readonly
271
+ */
272
+ "readonly": boolean;
273
+ /**
274
+ * Define if input is required
275
+ */
276
+ "required": boolean;
277
+ /**
278
+ * Add a tooltip message next to the input
279
+ */
280
+ "tooltip": string;
281
+ /**
282
+ * Define numeric type
283
+ */
284
+ "type": string;
285
+ /**
286
+ * Define input pattern to validate
287
+ */
288
+ "valid": boolean;
289
+ /**
290
+ * Component value
291
+ */
292
+ "value": string;
293
+ /**
294
+ * Define input width
295
+ */
296
+ "width": Width;
297
+ }
298
+ interface MgInputPassword {
299
+ /**
300
+ * Define if input is disabled
301
+ */
302
+ "disabled": boolean;
303
+ /**
304
+ * Add a help text under the input, usually expected data format and example
305
+ */
306
+ "helpText": string;
307
+ /**
308
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
309
+ */
310
+ "identifier"?: string;
311
+ /**
312
+ * Define input pattern error message
313
+ */
314
+ "invalid": boolean;
315
+ /**
316
+ * Input label Required
317
+ */
318
+ "label": string;
319
+ /**
320
+ * Define if label is visible
321
+ */
322
+ "labelHide": boolean;
323
+ /**
324
+ * Define if label is displayed on top
325
+ */
326
+ "labelOnTop": boolean;
327
+ /**
328
+ * Input name If not set the value equals the identifier
329
+ */
330
+ "name"?: string;
331
+ /**
332
+ * 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
+ */
334
+ "placeholder": string;
335
+ /**
336
+ * Define if input is readonly
337
+ */
338
+ "readonly": boolean;
339
+ /**
340
+ * Define if input is required
341
+ */
342
+ "required": boolean;
343
+ /**
344
+ * Add a tooltip message next to the input
345
+ */
346
+ "tooltip": string;
347
+ /**
348
+ * Define input pattern to validate
349
+ */
350
+ "valid": boolean;
351
+ /**
352
+ * Component value
353
+ */
354
+ "value": string;
355
+ /**
356
+ * Define input width
357
+ */
358
+ "width": Width;
359
+ }
360
+ interface MgInputRadio {
361
+ /**
362
+ * Define if input is disabled
363
+ */
364
+ "disabled": boolean;
365
+ /**
366
+ * Add a help text under the input, usually expected data format and example
367
+ */
368
+ "helpText": string;
369
+ /**
370
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
371
+ */
372
+ "identifier": string;
373
+ /**
374
+ * Define if inputs are display verticaly
375
+ */
376
+ "inputVerticalList": boolean;
377
+ /**
378
+ * Force invalid component
379
+ */
380
+ "invalid": boolean;
381
+ /**
382
+ * Items are the possible options to select Required
383
+ */
384
+ "items": string[] | RadioOption[];
385
+ /**
386
+ * Input label Required
387
+ */
388
+ "label": string;
389
+ /**
390
+ * Define if label is visible
391
+ */
392
+ "labelHide": boolean;
393
+ /**
394
+ * Define if label is displayed on top
395
+ */
396
+ "labelOnTop": boolean;
397
+ /**
398
+ * Input name If not set the value equals the identifier
399
+ */
400
+ "name": string;
401
+ /**
402
+ * Define if input is readonly
403
+ */
404
+ "readonly": boolean;
405
+ /**
406
+ * Define if input is required
407
+ */
408
+ "required": boolean;
409
+ /**
410
+ * Add a tooltip message next to the input
411
+ */
412
+ "tooltip": string;
413
+ /**
414
+ * Force valid component
415
+ */
416
+ "valid": boolean;
417
+ /**
418
+ * Component value
419
+ */
420
+ "value": any;
421
+ }
422
+ interface MgInputSelect {
423
+ /**
424
+ * Define if input is disabled
425
+ */
426
+ "disabled": boolean;
427
+ /**
428
+ * Add a help text under the input, usually expected data format and example
429
+ */
430
+ "helpText": string;
431
+ /**
432
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
433
+ */
434
+ "identifier": string;
435
+ /**
436
+ * Define input invalid state
437
+ */
438
+ "invalid": boolean;
439
+ /**
440
+ * Items are the possible options to select
441
+ */
442
+ "items": string[] | SelectOption[];
443
+ /**
444
+ * Input label Required
445
+ */
446
+ "label": string;
447
+ /**
448
+ * Define if label is visible
449
+ */
450
+ "labelHide": boolean;
451
+ /**
452
+ * Define if label is displayed on top
453
+ */
454
+ "labelOnTop": boolean;
455
+ /**
456
+ * Input name If not set the value equals the identifier
457
+ */
458
+ "name": string;
459
+ /**
460
+ * 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.
461
+ */
462
+ "placeholder": string;
463
+ /**
464
+ * Option to disable placeholder
465
+ */
466
+ "placeholderDisabled": boolean;
467
+ /**
468
+ * Option to remove placeholder
469
+ */
470
+ "placeholderHide": boolean;
471
+ /**
472
+ * Define if input is readonly
473
+ */
474
+ "readonly": boolean;
475
+ /**
476
+ * Define if input is required
477
+ */
478
+ "required": boolean;
479
+ /**
480
+ * Add a tooltip message next to the input
481
+ */
482
+ "tooltip": string;
483
+ /**
484
+ * Define input valid state
485
+ */
486
+ "valid": boolean;
487
+ /**
488
+ * Component value
489
+ */
490
+ "value": any;
491
+ /**
492
+ * Define input width
493
+ */
494
+ "width": Width;
495
+ }
496
+ interface MgInputText {
497
+ /**
498
+ * Template to use for characters left sentence
499
+ */
500
+ "characterLeftTemplate": string;
501
+ /**
502
+ * Define if input is disabled
503
+ */
504
+ "disabled": boolean;
505
+ /**
506
+ * Define if component should display character left
507
+ */
508
+ "displayCharacterLeft": boolean;
509
+ /**
510
+ * Add a help text under the input, usually expected data format and example
511
+ */
512
+ "helpText": string;
513
+ /**
514
+ * Input icon
515
+ */
516
+ "icon": string;
517
+ /**
518
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
519
+ */
520
+ "identifier"?: string;
521
+ /**
522
+ * Define input pattern error message
523
+ */
524
+ "invalid": boolean;
525
+ /**
526
+ * Input label Required
527
+ */
528
+ "label": string;
529
+ /**
530
+ * Define if label is visible
531
+ */
532
+ "labelHide": boolean;
533
+ /**
534
+ * Define if label is displayed on top
535
+ */
536
+ "labelOnTop": boolean;
537
+ /**
538
+ * Input max length
539
+ */
540
+ "maxlength": number;
541
+ /**
542
+ * Input name If not set the value equals the identifier
543
+ */
544
+ "name"?: string;
545
+ /**
546
+ * Define input pattern to validate
547
+ */
548
+ "pattern": string;
549
+ /**
550
+ * Define input pattern error message
551
+ */
552
+ "patternErrorMessage": string;
553
+ /**
554
+ * 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.
555
+ */
556
+ "placeholder": string;
557
+ /**
558
+ * Define if input is readonly
559
+ */
560
+ "readonly": boolean;
561
+ /**
562
+ * Define if input is required
563
+ */
564
+ "required": boolean;
565
+ /**
566
+ * Add a tooltip message next to the input
567
+ */
568
+ "tooltip": string;
569
+ /**
570
+ * Input type
571
+ */
572
+ "type": 'text' | 'search';
573
+ /**
574
+ * Define input pattern to validate
575
+ */
576
+ "valid": boolean;
577
+ /**
578
+ * Component value
579
+ */
580
+ "value": string;
581
+ /**
582
+ * Define input width
583
+ */
584
+ "width": Width;
585
+ }
586
+ interface MgInputTextarea {
587
+ /**
588
+ * Template to use for characters left sentence
589
+ */
590
+ "characterLeftTemplate": string;
591
+ /**
592
+ * Define if input is disabled
593
+ */
594
+ "disabled": boolean;
595
+ /**
596
+ * Define if component should display character left
597
+ */
598
+ "displayCharacterLeft": boolean;
599
+ /**
600
+ * Add a help text under the input, usually expected data format and example
601
+ */
602
+ "helpText": string;
603
+ /**
604
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
605
+ */
606
+ "identifier"?: string;
607
+ /**
608
+ * Define input pattern error message
609
+ */
610
+ "invalid": boolean;
611
+ /**
612
+ * Input label Required
613
+ */
614
+ "label": string;
615
+ /**
616
+ * Define if label is visible
617
+ */
618
+ "labelHide": boolean;
619
+ /**
620
+ * Define if label is displayed on top
621
+ */
622
+ "labelOnTop": boolean;
623
+ /**
624
+ * Input max length
625
+ */
626
+ "maxlength": number;
627
+ /**
628
+ * Input name If not set the value equals the identifier
629
+ */
630
+ "name"?: string;
631
+ /**
632
+ * Define input pattern to validate
633
+ */
634
+ "pattern": string;
635
+ /**
636
+ * Define input pattern error message
637
+ */
638
+ "patternErrorMessage": string;
639
+ /**
640
+ * 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.
641
+ */
642
+ "placeholder": string;
643
+ /**
644
+ * Define if input is readonly
645
+ */
646
+ "readonly": boolean;
647
+ /**
648
+ * Define if input is required
649
+ */
650
+ "required": boolean;
651
+ /**
652
+ * Define input pattern error message
653
+ */
654
+ "rows": number;
655
+ /**
656
+ * Add a tooltip message next to the input
657
+ */
658
+ "tooltip": string;
659
+ /**
660
+ * Define input pattern to validate
661
+ */
662
+ "valid": boolean;
663
+ /**
664
+ * Component value
665
+ */
666
+ "value": string;
667
+ /**
668
+ * Define input width
669
+ */
670
+ "width": Width;
671
+ }
672
+ interface MgInputTitle {
673
+ /**
674
+ * Label input id
675
+ */
676
+ "identifier": string;
677
+ /**
678
+ * Switch from label to fieldset sementic
679
+ */
680
+ "isLegend": boolean;
681
+ /**
682
+ * If input is required an asterisk is added at the end of the label
683
+ */
684
+ "required": boolean;
685
+ }
686
+ interface MgInputToggle {
687
+ /**
688
+ * Define if input is disabled
689
+ */
690
+ "disabled": boolean;
691
+ /**
692
+ * Add a help text under the input, usually expected data format and example
693
+ */
694
+ "helpText": string;
695
+ /**
696
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
697
+ */
698
+ "identifier"?: string;
699
+ /**
700
+ * Define if toggle display icon
701
+ */
702
+ "isIcon"?: boolean;
703
+ /**
704
+ * Define if toggle have on/off style
705
+ */
706
+ "isOnOff"?: boolean;
707
+ /**
708
+ * Items are the possible options to select Required
709
+ */
710
+ "items": string[] | ToggleValue[];
711
+ /**
712
+ * Input label Required
713
+ */
714
+ "label": string;
715
+ /**
716
+ * Define if label is visible
717
+ */
718
+ "labelHide": boolean;
719
+ /**
720
+ * Define if label is displayed on top
721
+ */
722
+ "labelOnTop": boolean;
723
+ /**
724
+ * Input name If not set the value equals the identifier
725
+ */
726
+ "name"?: string;
727
+ /**
728
+ * Define if input is readonly
729
+ */
730
+ "readonly": boolean;
731
+ /**
732
+ * Add a tooltip message next to the input
733
+ */
734
+ "tooltip": string;
735
+ /**
736
+ * Component value
737
+ */
738
+ "value"?: any;
739
+ }
740
+ interface MgMessage {
741
+ /**
742
+ * Define if message has a cross button RG 01: https://jira.mgdis.fr/browse/PDA9-140
743
+ */
744
+ "closeButton": boolean;
745
+ /**
746
+ * Add a delay to hide/close message when it passed Value is defined in seconds and must greater than 2 seconds (PDA9-314 RG-06)
747
+ */
748
+ "delay": number;
749
+ /**
750
+ * Define if message is hidden
751
+ */
752
+ "hide": boolean;
753
+ /**
754
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
755
+ */
756
+ "identifier": string;
757
+ /**
758
+ * Message variant
759
+ */
760
+ "variant": string;
761
+ }
762
+ interface MgPagination {
763
+ /**
764
+ * Component current page
765
+ */
766
+ "currentPage": number;
767
+ /**
768
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
769
+ */
770
+ "identifier"?: string;
771
+ /**
772
+ * Panignation label. Is a short description. Customize default value can be usefull to improve accessibility
773
+ */
774
+ "label": string;
775
+ /**
776
+ * Component total pages
777
+ */
778
+ "totalPages": number;
779
+ }
780
+ interface MgPopover {
781
+ /**
782
+ * Define if popover has a cross button
783
+ */
784
+ "closeButton": boolean;
785
+ /**
786
+ * Disable popover
787
+ */
788
+ "disabled": boolean;
789
+ /**
790
+ * Display popover
791
+ */
792
+ "display": boolean;
793
+ /**
794
+ * Sets an `id` attribute. Needed by the input for accessibility `aria-decribedby`.
795
+ */
796
+ "identifier": string;
797
+ /**
798
+ * Popover placement
799
+ */
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';
815
+ }
816
+ interface MgTabs {
817
+ /**
818
+ * Active tab number default: first is 1
819
+ */
820
+ "activeTab": number;
821
+ /**
822
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
823
+ */
824
+ "identifier"?: string;
825
+ /**
826
+ * Tabs items Required
827
+ */
828
+ "items": string[] | TabItem[];
829
+ /**
830
+ * Tabs label. Include short tabs description. Required for accessibility
831
+ */
832
+ "label": string;
833
+ }
834
+ interface MgTag {
835
+ /**
836
+ * Define if button is using outline style
837
+ */
838
+ "outline"?: boolean;
839
+ /**
840
+ * Define button variant
841
+ */
842
+ "variant"?: string;
843
+ }
844
+ interface MgTooltip {
845
+ /**
846
+ * Disable tooltip
847
+ */
848
+ "disabled": boolean;
849
+ /**
850
+ * Display tooltip
851
+ */
852
+ "display": boolean;
853
+ /**
854
+ * Sets an `id` attribute. Needed by the input for accessibility `aria-decribedby`.
855
+ */
856
+ "identifier": string;
857
+ /**
858
+ * Displayed message in the tooltip
859
+ */
860
+ "message": string;
861
+ /**
862
+ * Tooltip placement
863
+ */
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';
879
+ }
880
+ }
881
+ declare global {
882
+ interface HTMLMgBadgeElement extends Components.MgBadge, HTMLStencilElement {
883
+ }
884
+ var HTMLMgBadgeElement: {
885
+ prototype: HTMLMgBadgeElement;
886
+ new (): HTMLMgBadgeElement;
887
+ };
888
+ interface HTMLMgButtonElement extends Components.MgButton, HTMLStencilElement {
889
+ }
890
+ var HTMLMgButtonElement: {
891
+ prototype: HTMLMgButtonElement;
892
+ new (): HTMLMgButtonElement;
893
+ };
894
+ interface HTMLMgCharacterLeftElement extends Components.MgCharacterLeft, HTMLStencilElement {
895
+ }
896
+ var HTMLMgCharacterLeftElement: {
897
+ prototype: HTMLMgCharacterLeftElement;
898
+ new (): HTMLMgCharacterLeftElement;
899
+ };
900
+ interface HTMLMgIconElement extends Components.MgIcon, HTMLStencilElement {
901
+ }
902
+ var HTMLMgIconElement: {
903
+ prototype: HTMLMgIconElement;
904
+ new (): HTMLMgIconElement;
905
+ };
906
+ interface HTMLMgInputCheckboxElement extends Components.MgInputCheckbox, HTMLStencilElement {
907
+ }
908
+ var HTMLMgInputCheckboxElement: {
909
+ prototype: HTMLMgInputCheckboxElement;
910
+ new (): HTMLMgInputCheckboxElement;
911
+ };
912
+ interface HTMLMgInputDateElement extends Components.MgInputDate, HTMLStencilElement {
913
+ }
914
+ var HTMLMgInputDateElement: {
915
+ prototype: HTMLMgInputDateElement;
916
+ new (): HTMLMgInputDateElement;
917
+ };
918
+ interface HTMLMgInputNumericElement extends Components.MgInputNumeric, HTMLStencilElement {
919
+ }
920
+ var HTMLMgInputNumericElement: {
921
+ prototype: HTMLMgInputNumericElement;
922
+ new (): HTMLMgInputNumericElement;
923
+ };
924
+ interface HTMLMgInputPasswordElement extends Components.MgInputPassword, HTMLStencilElement {
925
+ }
926
+ var HTMLMgInputPasswordElement: {
927
+ prototype: HTMLMgInputPasswordElement;
928
+ new (): HTMLMgInputPasswordElement;
929
+ };
930
+ interface HTMLMgInputRadioElement extends Components.MgInputRadio, HTMLStencilElement {
931
+ }
932
+ var HTMLMgInputRadioElement: {
933
+ prototype: HTMLMgInputRadioElement;
934
+ new (): HTMLMgInputRadioElement;
935
+ };
936
+ interface HTMLMgInputSelectElement extends Components.MgInputSelect, HTMLStencilElement {
937
+ }
938
+ var HTMLMgInputSelectElement: {
939
+ prototype: HTMLMgInputSelectElement;
940
+ new (): HTMLMgInputSelectElement;
941
+ };
942
+ interface HTMLMgInputTextElement extends Components.MgInputText, HTMLStencilElement {
943
+ }
944
+ var HTMLMgInputTextElement: {
945
+ prototype: HTMLMgInputTextElement;
946
+ new (): HTMLMgInputTextElement;
947
+ };
948
+ interface HTMLMgInputTextareaElement extends Components.MgInputTextarea, HTMLStencilElement {
949
+ }
950
+ var HTMLMgInputTextareaElement: {
951
+ prototype: HTMLMgInputTextareaElement;
952
+ new (): HTMLMgInputTextareaElement;
953
+ };
954
+ interface HTMLMgInputTitleElement extends Components.MgInputTitle, HTMLStencilElement {
955
+ }
956
+ var HTMLMgInputTitleElement: {
957
+ prototype: HTMLMgInputTitleElement;
958
+ new (): HTMLMgInputTitleElement;
959
+ };
960
+ interface HTMLMgInputToggleElement extends Components.MgInputToggle, HTMLStencilElement {
961
+ }
962
+ var HTMLMgInputToggleElement: {
963
+ prototype: HTMLMgInputToggleElement;
964
+ new (): HTMLMgInputToggleElement;
965
+ };
966
+ interface HTMLMgMessageElement extends Components.MgMessage, HTMLStencilElement {
967
+ }
968
+ var HTMLMgMessageElement: {
969
+ prototype: HTMLMgMessageElement;
970
+ new (): HTMLMgMessageElement;
971
+ };
972
+ interface HTMLMgPaginationElement extends Components.MgPagination, HTMLStencilElement {
973
+ }
974
+ var HTMLMgPaginationElement: {
975
+ prototype: HTMLMgPaginationElement;
976
+ new (): HTMLMgPaginationElement;
977
+ };
978
+ interface HTMLMgPopoverElement extends Components.MgPopover, HTMLStencilElement {
979
+ }
980
+ var HTMLMgPopoverElement: {
981
+ prototype: HTMLMgPopoverElement;
982
+ new (): HTMLMgPopoverElement;
983
+ };
984
+ interface HTMLMgTabsElement extends Components.MgTabs, HTMLStencilElement {
985
+ }
986
+ var HTMLMgTabsElement: {
987
+ prototype: HTMLMgTabsElement;
988
+ new (): HTMLMgTabsElement;
989
+ };
990
+ interface HTMLMgTagElement extends Components.MgTag, HTMLStencilElement {
991
+ }
992
+ var HTMLMgTagElement: {
993
+ prototype: HTMLMgTagElement;
994
+ new (): HTMLMgTagElement;
995
+ };
996
+ interface HTMLMgTooltipElement extends Components.MgTooltip, HTMLStencilElement {
997
+ }
998
+ var HTMLMgTooltipElement: {
999
+ prototype: HTMLMgTooltipElement;
1000
+ new (): HTMLMgTooltipElement;
1001
+ };
1002
+ interface HTMLElementTagNameMap {
1003
+ "mg-badge": HTMLMgBadgeElement;
1004
+ "mg-button": HTMLMgButtonElement;
1005
+ "mg-character-left": HTMLMgCharacterLeftElement;
1006
+ "mg-icon": HTMLMgIconElement;
1007
+ "mg-input-checkbox": HTMLMgInputCheckboxElement;
1008
+ "mg-input-date": HTMLMgInputDateElement;
1009
+ "mg-input-numeric": HTMLMgInputNumericElement;
1010
+ "mg-input-password": HTMLMgInputPasswordElement;
1011
+ "mg-input-radio": HTMLMgInputRadioElement;
1012
+ "mg-input-select": HTMLMgInputSelectElement;
1013
+ "mg-input-text": HTMLMgInputTextElement;
1014
+ "mg-input-textarea": HTMLMgInputTextareaElement;
1015
+ "mg-input-title": HTMLMgInputTitleElement;
1016
+ "mg-input-toggle": HTMLMgInputToggleElement;
1017
+ "mg-message": HTMLMgMessageElement;
1018
+ "mg-pagination": HTMLMgPaginationElement;
1019
+ "mg-popover": HTMLMgPopoverElement;
1020
+ "mg-tabs": HTMLMgTabsElement;
1021
+ "mg-tag": HTMLMgTagElement;
1022
+ "mg-tooltip": HTMLMgTooltipElement;
1023
+ }
1024
+ }
1025
+ declare namespace LocalJSX {
1026
+ interface MgBadge {
1027
+ /**
1028
+ * Badge label. Include short description. Required for accessibility
1029
+ */
1030
+ "label": BadgeType['label'];
1031
+ /**
1032
+ * Define if button is using outline style
1033
+ */
1034
+ "outline"?: boolean;
1035
+ /**
1036
+ * Badge value
1037
+ */
1038
+ "value": BadgeType['value'];
1039
+ /**
1040
+ * Define button variant
1041
+ */
1042
+ "variant"?: string;
1043
+ }
1044
+ interface MgButton {
1045
+ /**
1046
+ * 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
+ */
1048
+ "disableOnClick"?: boolean;
1049
+ /**
1050
+ * Disable button
1051
+ */
1052
+ "disabled"?: boolean;
1053
+ /**
1054
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
1055
+ */
1056
+ "identifier"?: string;
1057
+ /**
1058
+ * Define if button is round. Used for icon button.
1059
+ */
1060
+ "isIcon"?: boolean;
1061
+ /**
1062
+ * aria-label In case button text is not explicit enough
1063
+ */
1064
+ "label"?: string;
1065
+ /**
1066
+ * Define button variant
1067
+ */
1068
+ "variant"?: string;
1069
+ }
1070
+ interface MgCharacterLeft {
1071
+ /**
1072
+ * Sets the characters to count
1073
+ */
1074
+ "characters"?: string;
1075
+ /**
1076
+ * Sets an `id` attribute. Needed by the input for accessibility `aria-decribedby`.
1077
+ */
1078
+ "identifier"?: string;
1079
+ /**
1080
+ * Add maximum length
1081
+ */
1082
+ "maxlength": number;
1083
+ /**
1084
+ * Template to display remaining characters. Must have {counter} inside
1085
+ */
1086
+ "template"?: string;
1087
+ }
1088
+ interface MgIcon {
1089
+ /**
1090
+ * Icon to display
1091
+ */
1092
+ "icon"?: string;
1093
+ /**
1094
+ * Define icon size
1095
+ */
1096
+ "size"?: string;
1097
+ /**
1098
+ * Make the icon spin
1099
+ */
1100
+ "spin"?: boolean;
1101
+ /**
1102
+ * Define icon variant Add a background to the icon based on variant color
1103
+ */
1104
+ "variant"?: string;
1105
+ }
1106
+ interface MgInputCheckbox {
1107
+ /**
1108
+ * Define if input is disabled
1109
+ */
1110
+ "disabled"?: boolean;
1111
+ /**
1112
+ * Add a help text under the input, usually expected data format and example
1113
+ */
1114
+ "helpText"?: string;
1115
+ /**
1116
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
1117
+ */
1118
+ "identifier"?: string;
1119
+ /**
1120
+ * Define if inputs are display verticaly
1121
+ */
1122
+ "inputVerticalList"?: boolean;
1123
+ /**
1124
+ * Force invalid component
1125
+ */
1126
+ "invalid"?: boolean;
1127
+ /**
1128
+ * Input label Required
1129
+ */
1130
+ "label": string;
1131
+ /**
1132
+ * Define if label is visible
1133
+ */
1134
+ "labelHide"?: boolean;
1135
+ /**
1136
+ * Define if label is displayed on top
1137
+ */
1138
+ "labelOnTop"?: boolean;
1139
+ /**
1140
+ * Input name If not set the value equals the identifier
1141
+ */
1142
+ "name"?: string;
1143
+ /**
1144
+ * Emitted event when value change
1145
+ */
1146
+ "onValue-change"?: (event: CustomEvent<CheckboxValue[]>) => void;
1147
+ /**
1148
+ * Define if input is readonly
1149
+ */
1150
+ "readonly"?: boolean;
1151
+ /**
1152
+ * Define if input is required
1153
+ */
1154
+ "required"?: boolean;
1155
+ /**
1156
+ * Add a tooltip message next to the input
1157
+ */
1158
+ "tooltip"?: string;
1159
+ /**
1160
+ * Force valid component
1161
+ */
1162
+ "valid"?: boolean;
1163
+ /**
1164
+ * Component value If item.value is `null`, checkbox will be indeterminate by default Required
1165
+ */
1166
+ "value": CheckboxValue[];
1167
+ }
1168
+ interface MgInputDate {
1169
+ /**
1170
+ * Define if input is disabled
1171
+ */
1172
+ "disabled"?: boolean;
1173
+ /**
1174
+ * Add a help text under the input, usually expected data format and example
1175
+ */
1176
+ "helpText"?: string;
1177
+ /**
1178
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
1179
+ */
1180
+ "identifier"?: string;
1181
+ /**
1182
+ * Define input pattern error message
1183
+ */
1184
+ "invalid"?: boolean;
1185
+ /**
1186
+ * Input label Required
1187
+ */
1188
+ "label": string;
1189
+ /**
1190
+ * Define if label is visible
1191
+ */
1192
+ "labelHide"?: boolean;
1193
+ /**
1194
+ * Define if label is displayed on top
1195
+ */
1196
+ "labelOnTop"?: boolean;
1197
+ /**
1198
+ * Define input maximum date format: yyyy-mm-dd
1199
+ */
1200
+ "max"?: string;
1201
+ /**
1202
+ * Define input minimum date format: yyyy-mm-dd
1203
+ */
1204
+ "min"?: string;
1205
+ /**
1206
+ * Input name If not set the value equals the identifier
1207
+ */
1208
+ "name"?: string;
1209
+ /**
1210
+ * Emmited event when value change
1211
+ */
1212
+ "onValue-change"?: (event: CustomEvent<string>) => void;
1213
+ /**
1214
+ * Define if input is readonly
1215
+ */
1216
+ "readonly"?: boolean;
1217
+ /**
1218
+ * Define if input is required
1219
+ */
1220
+ "required"?: boolean;
1221
+ /**
1222
+ * Add a tooltip message next to the input
1223
+ */
1224
+ "tooltip"?: string;
1225
+ /**
1226
+ * Define input pattern to validate
1227
+ */
1228
+ "valid"?: boolean;
1229
+ /**
1230
+ * Component value
1231
+ */
1232
+ "value"?: string;
1233
+ }
1234
+ interface MgInputNumeric {
1235
+ /**
1236
+ * Override decimal length decimal is the number after the decimal point
1237
+ */
1238
+ "decimalLength"?: number;
1239
+ /**
1240
+ * Define if input is disabled
1241
+ */
1242
+ "disabled"?: boolean;
1243
+ /**
1244
+ * Add a help text under the input, usually expected data format and example
1245
+ */
1246
+ "helpText"?: string;
1247
+ /**
1248
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
1249
+ */
1250
+ "identifier"?: string;
1251
+ /**
1252
+ * Override integer length integer is the number before the decimal point
1253
+ */
1254
+ "integerLength"?: number;
1255
+ /**
1256
+ * Define input pattern error message
1257
+ */
1258
+ "invalid"?: boolean;
1259
+ /**
1260
+ * Input label Required
1261
+ */
1262
+ "label": string;
1263
+ /**
1264
+ * Define if label is visible
1265
+ */
1266
+ "labelHide"?: boolean;
1267
+ /**
1268
+ * Define if label is displayed on top
1269
+ */
1270
+ "labelOnTop"?: boolean;
1271
+ /**
1272
+ * Maximum value
1273
+ */
1274
+ "max"?: number;
1275
+ /**
1276
+ * Minimum value
1277
+ */
1278
+ "min"?: number;
1279
+ /**
1280
+ * Input name If not set the value equals the identifier
1281
+ */
1282
+ "name"?: string;
1283
+ /**
1284
+ * Emmited event when value change
1285
+ */
1286
+ "onValue-change"?: (event: CustomEvent<number>) => void;
1287
+ /**
1288
+ * 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
+ */
1290
+ "placeholder"?: string;
1291
+ /**
1292
+ * Define if input is readonly
1293
+ */
1294
+ "readonly"?: boolean;
1295
+ /**
1296
+ * Define if input is required
1297
+ */
1298
+ "required"?: boolean;
1299
+ /**
1300
+ * Add a tooltip message next to the input
1301
+ */
1302
+ "tooltip"?: string;
1303
+ /**
1304
+ * Define numeric type
1305
+ */
1306
+ "type"?: string;
1307
+ /**
1308
+ * Define input pattern to validate
1309
+ */
1310
+ "valid"?: boolean;
1311
+ /**
1312
+ * Component value
1313
+ */
1314
+ "value"?: string;
1315
+ /**
1316
+ * Define input width
1317
+ */
1318
+ "width"?: Width;
1319
+ }
1320
+ interface MgInputPassword {
1321
+ /**
1322
+ * Define if input is disabled
1323
+ */
1324
+ "disabled"?: boolean;
1325
+ /**
1326
+ * Add a help text under the input, usually expected data format and example
1327
+ */
1328
+ "helpText"?: string;
1329
+ /**
1330
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
1331
+ */
1332
+ "identifier"?: string;
1333
+ /**
1334
+ * Define input pattern error message
1335
+ */
1336
+ "invalid"?: boolean;
1337
+ /**
1338
+ * Input label Required
1339
+ */
1340
+ "label": string;
1341
+ /**
1342
+ * Define if label is visible
1343
+ */
1344
+ "labelHide"?: boolean;
1345
+ /**
1346
+ * Define if label is displayed on top
1347
+ */
1348
+ "labelOnTop"?: boolean;
1349
+ /**
1350
+ * Input name If not set the value equals the identifier
1351
+ */
1352
+ "name"?: string;
1353
+ /**
1354
+ * Emmited event when value change
1355
+ */
1356
+ "onValue-change"?: (event: CustomEvent<string>) => void;
1357
+ /**
1358
+ * 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
+ */
1360
+ "placeholder"?: string;
1361
+ /**
1362
+ * Define if input is readonly
1363
+ */
1364
+ "readonly"?: boolean;
1365
+ /**
1366
+ * Define if input is required
1367
+ */
1368
+ "required"?: boolean;
1369
+ /**
1370
+ * Add a tooltip message next to the input
1371
+ */
1372
+ "tooltip"?: string;
1373
+ /**
1374
+ * Define input pattern to validate
1375
+ */
1376
+ "valid"?: boolean;
1377
+ /**
1378
+ * Component value
1379
+ */
1380
+ "value"?: string;
1381
+ /**
1382
+ * Define input width
1383
+ */
1384
+ "width"?: Width;
1385
+ }
1386
+ interface MgInputRadio {
1387
+ /**
1388
+ * Define if input is disabled
1389
+ */
1390
+ "disabled"?: boolean;
1391
+ /**
1392
+ * Add a help text under the input, usually expected data format and example
1393
+ */
1394
+ "helpText"?: string;
1395
+ /**
1396
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
1397
+ */
1398
+ "identifier"?: string;
1399
+ /**
1400
+ * Define if inputs are display verticaly
1401
+ */
1402
+ "inputVerticalList"?: boolean;
1403
+ /**
1404
+ * Force invalid component
1405
+ */
1406
+ "invalid"?: boolean;
1407
+ /**
1408
+ * Items are the possible options to select Required
1409
+ */
1410
+ "items": string[] | RadioOption[];
1411
+ /**
1412
+ * Input label Required
1413
+ */
1414
+ "label": string;
1415
+ /**
1416
+ * Define if label is visible
1417
+ */
1418
+ "labelHide"?: boolean;
1419
+ /**
1420
+ * Define if label is displayed on top
1421
+ */
1422
+ "labelOnTop"?: boolean;
1423
+ /**
1424
+ * Input name If not set the value equals the identifier
1425
+ */
1426
+ "name"?: string;
1427
+ /**
1428
+ * Emitted event when value change
1429
+ */
1430
+ "onValue-change"?: (event: CustomEvent<any>) => void;
1431
+ /**
1432
+ * Define if input is readonly
1433
+ */
1434
+ "readonly"?: boolean;
1435
+ /**
1436
+ * Define if input is required
1437
+ */
1438
+ "required"?: boolean;
1439
+ /**
1440
+ * Add a tooltip message next to the input
1441
+ */
1442
+ "tooltip"?: string;
1443
+ /**
1444
+ * Force valid component
1445
+ */
1446
+ "valid"?: boolean;
1447
+ /**
1448
+ * Component value
1449
+ */
1450
+ "value"?: any;
1451
+ }
1452
+ interface MgInputSelect {
1453
+ /**
1454
+ * Define if input is disabled
1455
+ */
1456
+ "disabled"?: boolean;
1457
+ /**
1458
+ * Add a help text under the input, usually expected data format and example
1459
+ */
1460
+ "helpText"?: string;
1461
+ /**
1462
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
1463
+ */
1464
+ "identifier"?: string;
1465
+ /**
1466
+ * Define input invalid state
1467
+ */
1468
+ "invalid"?: boolean;
1469
+ /**
1470
+ * Items are the possible options to select
1471
+ */
1472
+ "items": string[] | SelectOption[];
1473
+ /**
1474
+ * Input label Required
1475
+ */
1476
+ "label": string;
1477
+ /**
1478
+ * Define if label is visible
1479
+ */
1480
+ "labelHide"?: boolean;
1481
+ /**
1482
+ * Define if label is displayed on top
1483
+ */
1484
+ "labelOnTop"?: boolean;
1485
+ /**
1486
+ * Input name If not set the value equals the identifier
1487
+ */
1488
+ "name"?: string;
1489
+ /**
1490
+ * Emmited event when value change
1491
+ */
1492
+ "onValue-change"?: (event: CustomEvent<string>) => void;
1493
+ /**
1494
+ * 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
+ */
1496
+ "placeholder"?: string;
1497
+ /**
1498
+ * Option to disable placeholder
1499
+ */
1500
+ "placeholderDisabled"?: boolean;
1501
+ /**
1502
+ * Option to remove placeholder
1503
+ */
1504
+ "placeholderHide"?: boolean;
1505
+ /**
1506
+ * Define if input is readonly
1507
+ */
1508
+ "readonly"?: boolean;
1509
+ /**
1510
+ * Define if input is required
1511
+ */
1512
+ "required"?: boolean;
1513
+ /**
1514
+ * Add a tooltip message next to the input
1515
+ */
1516
+ "tooltip"?: string;
1517
+ /**
1518
+ * Define input valid state
1519
+ */
1520
+ "valid"?: boolean;
1521
+ /**
1522
+ * Component value
1523
+ */
1524
+ "value"?: any;
1525
+ /**
1526
+ * Define input width
1527
+ */
1528
+ "width"?: Width;
1529
+ }
1530
+ interface MgInputText {
1531
+ /**
1532
+ * Template to use for characters left sentence
1533
+ */
1534
+ "characterLeftTemplate"?: string;
1535
+ /**
1536
+ * Define if input is disabled
1537
+ */
1538
+ "disabled"?: boolean;
1539
+ /**
1540
+ * Define if component should display character left
1541
+ */
1542
+ "displayCharacterLeft"?: boolean;
1543
+ /**
1544
+ * Add a help text under the input, usually expected data format and example
1545
+ */
1546
+ "helpText"?: string;
1547
+ /**
1548
+ * Input icon
1549
+ */
1550
+ "icon"?: string;
1551
+ /**
1552
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
1553
+ */
1554
+ "identifier"?: string;
1555
+ /**
1556
+ * Define input pattern error message
1557
+ */
1558
+ "invalid"?: boolean;
1559
+ /**
1560
+ * Input label Required
1561
+ */
1562
+ "label": string;
1563
+ /**
1564
+ * Define if label is visible
1565
+ */
1566
+ "labelHide"?: boolean;
1567
+ /**
1568
+ * Define if label is displayed on top
1569
+ */
1570
+ "labelOnTop"?: boolean;
1571
+ /**
1572
+ * Input max length
1573
+ */
1574
+ "maxlength"?: number;
1575
+ /**
1576
+ * Input name If not set the value equals the identifier
1577
+ */
1578
+ "name"?: string;
1579
+ /**
1580
+ * Emmited event when value change
1581
+ */
1582
+ "onValue-change"?: (event: CustomEvent<string>) => void;
1583
+ /**
1584
+ * Define input pattern to validate
1585
+ */
1586
+ "pattern"?: string;
1587
+ /**
1588
+ * Define input pattern error message
1589
+ */
1590
+ "patternErrorMessage"?: string;
1591
+ /**
1592
+ * 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.
1593
+ */
1594
+ "placeholder"?: string;
1595
+ /**
1596
+ * Define if input is readonly
1597
+ */
1598
+ "readonly"?: boolean;
1599
+ /**
1600
+ * Define if input is required
1601
+ */
1602
+ "required"?: boolean;
1603
+ /**
1604
+ * Add a tooltip message next to the input
1605
+ */
1606
+ "tooltip"?: string;
1607
+ /**
1608
+ * Input type
1609
+ */
1610
+ "type"?: 'text' | 'search';
1611
+ /**
1612
+ * Define input pattern to validate
1613
+ */
1614
+ "valid"?: boolean;
1615
+ /**
1616
+ * Component value
1617
+ */
1618
+ "value"?: string;
1619
+ /**
1620
+ * Define input width
1621
+ */
1622
+ "width"?: Width;
1623
+ }
1624
+ interface MgInputTextarea {
1625
+ /**
1626
+ * Template to use for characters left sentence
1627
+ */
1628
+ "characterLeftTemplate"?: string;
1629
+ /**
1630
+ * Define if input is disabled
1631
+ */
1632
+ "disabled"?: boolean;
1633
+ /**
1634
+ * Define if component should display character left
1635
+ */
1636
+ "displayCharacterLeft"?: boolean;
1637
+ /**
1638
+ * Add a help text under the input, usually expected data format and example
1639
+ */
1640
+ "helpText"?: string;
1641
+ /**
1642
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
1643
+ */
1644
+ "identifier"?: string;
1645
+ /**
1646
+ * Define input pattern error message
1647
+ */
1648
+ "invalid"?: boolean;
1649
+ /**
1650
+ * Input label Required
1651
+ */
1652
+ "label": string;
1653
+ /**
1654
+ * Define if label is visible
1655
+ */
1656
+ "labelHide"?: boolean;
1657
+ /**
1658
+ * Define if label is displayed on top
1659
+ */
1660
+ "labelOnTop"?: boolean;
1661
+ /**
1662
+ * Input max length
1663
+ */
1664
+ "maxlength"?: number;
1665
+ /**
1666
+ * Input name If not set the value equals the identifier
1667
+ */
1668
+ "name"?: string;
1669
+ /**
1670
+ * Emmited event when value change
1671
+ */
1672
+ "onValue-change"?: (event: CustomEvent<string>) => void;
1673
+ /**
1674
+ * Define input pattern to validate
1675
+ */
1676
+ "pattern"?: string;
1677
+ /**
1678
+ * Define input pattern error message
1679
+ */
1680
+ "patternErrorMessage"?: string;
1681
+ /**
1682
+ * 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.
1683
+ */
1684
+ "placeholder"?: string;
1685
+ /**
1686
+ * Define if input is readonly
1687
+ */
1688
+ "readonly"?: boolean;
1689
+ /**
1690
+ * Define if input is required
1691
+ */
1692
+ "required"?: boolean;
1693
+ /**
1694
+ * Define input pattern error message
1695
+ */
1696
+ "rows"?: number;
1697
+ /**
1698
+ * Add a tooltip message next to the input
1699
+ */
1700
+ "tooltip"?: string;
1701
+ /**
1702
+ * Define input pattern to validate
1703
+ */
1704
+ "valid"?: boolean;
1705
+ /**
1706
+ * Component value
1707
+ */
1708
+ "value"?: string;
1709
+ /**
1710
+ * Define input width
1711
+ */
1712
+ "width"?: Width;
1713
+ }
1714
+ interface MgInputTitle {
1715
+ /**
1716
+ * Label input id
1717
+ */
1718
+ "identifier": string;
1719
+ /**
1720
+ * Switch from label to fieldset sementic
1721
+ */
1722
+ "isLegend"?: boolean;
1723
+ /**
1724
+ * If input is required an asterisk is added at the end of the label
1725
+ */
1726
+ "required"?: boolean;
1727
+ }
1728
+ interface MgInputToggle {
1729
+ /**
1730
+ * Define if input is disabled
1731
+ */
1732
+ "disabled"?: boolean;
1733
+ /**
1734
+ * Add a help text under the input, usually expected data format and example
1735
+ */
1736
+ "helpText"?: string;
1737
+ /**
1738
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
1739
+ */
1740
+ "identifier"?: string;
1741
+ /**
1742
+ * Define if toggle display icon
1743
+ */
1744
+ "isIcon"?: boolean;
1745
+ /**
1746
+ * Define if toggle have on/off style
1747
+ */
1748
+ "isOnOff"?: boolean;
1749
+ /**
1750
+ * Items are the possible options to select Required
1751
+ */
1752
+ "items": string[] | ToggleValue[];
1753
+ /**
1754
+ * Input label Required
1755
+ */
1756
+ "label": string;
1757
+ /**
1758
+ * Define if label is visible
1759
+ */
1760
+ "labelHide"?: boolean;
1761
+ /**
1762
+ * Define if label is displayed on top
1763
+ */
1764
+ "labelOnTop"?: boolean;
1765
+ /**
1766
+ * Input name If not set the value equals the identifier
1767
+ */
1768
+ "name"?: string;
1769
+ /**
1770
+ * Emmited event when value change
1771
+ */
1772
+ "onValue-change"?: (event: CustomEvent<any>) => void;
1773
+ /**
1774
+ * Define if input is readonly
1775
+ */
1776
+ "readonly"?: boolean;
1777
+ /**
1778
+ * Add a tooltip message next to the input
1779
+ */
1780
+ "tooltip"?: string;
1781
+ /**
1782
+ * Component value
1783
+ */
1784
+ "value"?: any;
1785
+ }
1786
+ interface MgMessage {
1787
+ /**
1788
+ * Define if message has a cross button RG 01: https://jira.mgdis.fr/browse/PDA9-140
1789
+ */
1790
+ "closeButton"?: boolean;
1791
+ /**
1792
+ * Add a delay to hide/close message when it passed Value is defined in seconds and must greater than 2 seconds (PDA9-314 RG-06)
1793
+ */
1794
+ "delay"?: number;
1795
+ /**
1796
+ * Define if message is hidden
1797
+ */
1798
+ "hide"?: boolean;
1799
+ /**
1800
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
1801
+ */
1802
+ "identifier"?: string;
1803
+ /**
1804
+ * Emmited event when message is hidden
1805
+ */
1806
+ "onComponent-hide"?: (event: CustomEvent<string>) => void;
1807
+ /**
1808
+ * Emmited event when message is diplayed
1809
+ */
1810
+ "onComponent-show"?: (event: CustomEvent<string>) => void;
1811
+ /**
1812
+ * Message variant
1813
+ */
1814
+ "variant"?: string;
1815
+ }
1816
+ interface MgPagination {
1817
+ /**
1818
+ * Component current page
1819
+ */
1820
+ "currentPage"?: number;
1821
+ /**
1822
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
1823
+ */
1824
+ "identifier"?: string;
1825
+ /**
1826
+ * Panignation label. Is a short description. Customize default value can be usefull to improve accessibility
1827
+ */
1828
+ "label"?: string;
1829
+ /**
1830
+ * Emmited event when current page change
1831
+ */
1832
+ "onCurrent-page-change"?: (event: CustomEvent<number>) => void;
1833
+ /**
1834
+ * Component total pages
1835
+ */
1836
+ "totalPages"?: number;
1837
+ }
1838
+ interface MgPopover {
1839
+ /**
1840
+ * Define if popover has a cross button
1841
+ */
1842
+ "closeButton"?: boolean;
1843
+ /**
1844
+ * Disable popover
1845
+ */
1846
+ "disabled"?: boolean;
1847
+ /**
1848
+ * Display popover
1849
+ */
1850
+ "display"?: boolean;
1851
+ /**
1852
+ * Sets an `id` attribute. Needed by the input for accessibility `aria-decribedby`.
1853
+ */
1854
+ "identifier"?: string;
1855
+ /**
1856
+ * Popover placement
1857
+ */
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';
1873
+ }
1874
+ interface MgTabs {
1875
+ /**
1876
+ * Active tab number default: first is 1
1877
+ */
1878
+ "activeTab"?: number;
1879
+ /**
1880
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js) If not set, it will be created.
1881
+ */
1882
+ "identifier"?: string;
1883
+ /**
1884
+ * Tabs items Required
1885
+ */
1886
+ "items": string[] | TabItem[];
1887
+ /**
1888
+ * Tabs label. Include short tabs description. Required for accessibility
1889
+ */
1890
+ "label": string;
1891
+ }
1892
+ interface MgTag {
1893
+ /**
1894
+ * Define if button is using outline style
1895
+ */
1896
+ "outline"?: boolean;
1897
+ /**
1898
+ * Define button variant
1899
+ */
1900
+ "variant"?: string;
1901
+ }
1902
+ interface MgTooltip {
1903
+ /**
1904
+ * Disable tooltip
1905
+ */
1906
+ "disabled"?: boolean;
1907
+ /**
1908
+ * Display tooltip
1909
+ */
1910
+ "display"?: boolean;
1911
+ /**
1912
+ * Sets an `id` attribute. Needed by the input for accessibility `aria-decribedby`.
1913
+ */
1914
+ "identifier"?: string;
1915
+ /**
1916
+ * Displayed message in the tooltip
1917
+ */
1918
+ "message": string;
1919
+ /**
1920
+ * Tooltip placement
1921
+ */
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';
1937
+ }
1938
+ interface IntrinsicElements {
1939
+ "mg-badge": MgBadge;
1940
+ "mg-button": MgButton;
1941
+ "mg-character-left": MgCharacterLeft;
1942
+ "mg-icon": MgIcon;
1943
+ "mg-input-checkbox": MgInputCheckbox;
1944
+ "mg-input-date": MgInputDate;
1945
+ "mg-input-numeric": MgInputNumeric;
1946
+ "mg-input-password": MgInputPassword;
1947
+ "mg-input-radio": MgInputRadio;
1948
+ "mg-input-select": MgInputSelect;
1949
+ "mg-input-text": MgInputText;
1950
+ "mg-input-textarea": MgInputTextarea;
1951
+ "mg-input-title": MgInputTitle;
1952
+ "mg-input-toggle": MgInputToggle;
1953
+ "mg-message": MgMessage;
1954
+ "mg-pagination": MgPagination;
1955
+ "mg-popover": MgPopover;
1956
+ "mg-tabs": MgTabs;
1957
+ "mg-tag": MgTag;
1958
+ "mg-tooltip": MgTooltip;
1959
+ }
1960
+ }
1961
+ export { LocalJSX as JSX };
1962
+ declare module "@stencil/core" {
1963
+ export namespace JSX {
1964
+ interface IntrinsicElements {
1965
+ "mg-badge": LocalJSX.MgBadge & JSXBase.HTMLAttributes<HTMLMgBadgeElement>;
1966
+ "mg-button": LocalJSX.MgButton & JSXBase.HTMLAttributes<HTMLMgButtonElement>;
1967
+ "mg-character-left": LocalJSX.MgCharacterLeft & JSXBase.HTMLAttributes<HTMLMgCharacterLeftElement>;
1968
+ "mg-icon": LocalJSX.MgIcon & JSXBase.HTMLAttributes<HTMLMgIconElement>;
1969
+ "mg-input-checkbox": LocalJSX.MgInputCheckbox & JSXBase.HTMLAttributes<HTMLMgInputCheckboxElement>;
1970
+ "mg-input-date": LocalJSX.MgInputDate & JSXBase.HTMLAttributes<HTMLMgInputDateElement>;
1971
+ "mg-input-numeric": LocalJSX.MgInputNumeric & JSXBase.HTMLAttributes<HTMLMgInputNumericElement>;
1972
+ "mg-input-password": LocalJSX.MgInputPassword & JSXBase.HTMLAttributes<HTMLMgInputPasswordElement>;
1973
+ "mg-input-radio": LocalJSX.MgInputRadio & JSXBase.HTMLAttributes<HTMLMgInputRadioElement>;
1974
+ "mg-input-select": LocalJSX.MgInputSelect & JSXBase.HTMLAttributes<HTMLMgInputSelectElement>;
1975
+ "mg-input-text": LocalJSX.MgInputText & JSXBase.HTMLAttributes<HTMLMgInputTextElement>;
1976
+ "mg-input-textarea": LocalJSX.MgInputTextarea & JSXBase.HTMLAttributes<HTMLMgInputTextareaElement>;
1977
+ "mg-input-title": LocalJSX.MgInputTitle & JSXBase.HTMLAttributes<HTMLMgInputTitleElement>;
1978
+ "mg-input-toggle": LocalJSX.MgInputToggle & JSXBase.HTMLAttributes<HTMLMgInputToggleElement>;
1979
+ "mg-message": LocalJSX.MgMessage & JSXBase.HTMLAttributes<HTMLMgMessageElement>;
1980
+ "mg-pagination": LocalJSX.MgPagination & JSXBase.HTMLAttributes<HTMLMgPaginationElement>;
1981
+ "mg-popover": LocalJSX.MgPopover & JSXBase.HTMLAttributes<HTMLMgPopoverElement>;
1982
+ "mg-tabs": LocalJSX.MgTabs & JSXBase.HTMLAttributes<HTMLMgTabsElement>;
1983
+ "mg-tag": LocalJSX.MgTag & JSXBase.HTMLAttributes<HTMLMgTagElement>;
1984
+ "mg-tooltip": LocalJSX.MgTooltip & JSXBase.HTMLAttributes<HTMLMgTooltipElement>;
1985
+ }
1986
+ }
1987
+ }