@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,211 @@
1
+ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
+ import { I as InputClass, M as MgInput } from './MgInput.js';
3
+ import { c as createID, C as ClassList, a as allItemsAreString } from './components.utils.js';
4
+ import { m as messages } from './index2.js';
5
+ import { d as defineCustomElement$5 } from './mg-character-left2.js';
6
+ import { d as defineCustomElement$4 } from './mg-icon2.js';
7
+ import { d as defineCustomElement$3 } from './mg-input-title2.js';
8
+ import { d as defineCustomElement$2 } from './mg-tooltip2.js';
9
+
10
+ const mgInputRadioCss = ":host{display:block}.mg-input{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;min-height:var(--default-size);max-width:100%;}.mg-input.is-not-valid{color:hsl(var(--color-danger))}.mg-input.is-not-valid .mg-input__box{border-color:hsl(var(--color-danger))}.mg-input mg-input-title{-ms-flex-negative:var(--mg-inputs-shrink, 1);flex-shrink:var(--mg-inputs-shrink, 1);width:var(--mg-inputs-title-width, auto);margin-top:calc((var(--default-size) - var(--font-size) * var(--line-height)) / 2);margin-right:var(--mg-inputs-title-horizontal-space, var(--mg-inputs-spacer));text-align:right}.mg-input.mg-input--label-on-top{-ms-flex-direction:column;flex-direction:column}.mg-input.mg-input--label-on-top .mg-input__input-container{width:100%}.mg-input__title{display:-ms-flexbox;display:flex;-ms-flex-align:baseline;align-items:baseline;margin-bottom:0.3rem}.mg-input__title mg-input-title{-ms-flex-negative:1;flex-shrink:1;width:auto;margin-top:0;margin-right:var(--mg-inputs-spacer);text-align:left}.mg-input__title mg-tooltip{margin-top:0}.mg-input__title mg-icon{display:-ms-inline-flexbox;display:inline-flex;vertical-align:text-bottom}.mg-input__input-container{min-height:var(--default-size);}.mg-input__input-container>strong{display:inline-block;margin-top:calc((var(--default-size) - var(--font-size) * var(--line-height)) / 2);min-height:var(--font-size)}.mg-input__input-container mg-tooltip{display:-ms-inline-flexbox;display:inline-flex;width:var(--mg-icon-regular-size);height:var(--mg-icon-regular-size);margin-left:var(--mg-inputs-spacer)}.mg-input__input-container mg-icon{display:-ms-flexbox;display:flex}.mg-input__input{display:-ms-flexbox;display:flex;}.mg-input__input mg-tooltip{margin-top:calc((var(--default-size) - var(--mg-icon-regular-size)) / 2)}.mg-input__input+*{text-align:start;margin-top:0.5rem}fieldset.mg-input{border:0;margin:0;padding:0}fieldset.mg-input input[type=radio],fieldset.mg-input input[type=checkbox]{-ms-flex-negative:0;flex-shrink:0;width:var(--mg-input-check-size);height:var(--mg-input-check-size);margin-top:calc((var(--font-size) * var(--line-height) - var(--mg-input-check-size)) / 2);margin-right:0.6rem;margin-bottom:0;margin-left:0}fieldset.mg-input.mg-input--label-on-top .mg-input__input-group-container{margin-top:0.7rem}.mg-input__input-container mg-tooltip{margin-left:2rem}.mg-input__input-group-container{margin:0;padding:0;list-style:none;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-column-gap:2.3rem;-moz-column-gap:2.3rem;column-gap:2.3rem;row-gap:1rem;margin-top:calc((var(--default-size) - var(--font-size) * var(--line-height)) / 2)}.mg-input__input-group-container--vertical{-ms-flex-direction:column;flex-direction:column}.mg-input__input-group{display:-ms-flexbox;display:flex;-ms-flex-align:top;align-items:top}.sr-only{border:0 !important;clip:rect(1px, 1px, 1px, 1px) !important;-webkit-clip-path:inset(50%) !important;clip-path:inset(50%) !important;height:1px !important;margin:-1px !important;overflow:hidden !important;padding:0 !important;position:absolute !important;width:1px !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}";
11
+
12
+ /**
13
+ * type Option validation function
14
+ * @param option
15
+ * @returns {boolean}
16
+ */
17
+ const isOption = (option) => typeof option === 'object' && typeof option.title === 'string' && option.value !== undefined;
18
+ const MgInputRadio$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
19
+ constructor() {
20
+ super();
21
+ this.__registerHost();
22
+ this.__attachShadow();
23
+ this.valueChange = createEvent(this, "value-change", 7);
24
+ /************
25
+ * Internal *
26
+ ************/
27
+ // classes
28
+ this.classError = InputClass.ERROR;
29
+ // HTML selector
30
+ this.inputs = [];
31
+ /**
32
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js)
33
+ * If not set, it will be created.
34
+ */
35
+ this.identifier = createID('mg-input-radio');
36
+ /**
37
+ * Input name
38
+ * If not set the value equals the identifier
39
+ */
40
+ this.name = this.identifier;
41
+ /**
42
+ * Define if label is displayed on top
43
+ */
44
+ this.labelOnTop = false;
45
+ /**
46
+ * Define if label is visible
47
+ */
48
+ this.labelHide = false;
49
+ /**
50
+ * Define if inputs are display verticaly
51
+ */
52
+ this.inputVerticalList = false;
53
+ /**
54
+ * Define if input is required
55
+ */
56
+ this.required = false;
57
+ /**
58
+ * Define if input is readonly
59
+ */
60
+ this.readonly = false;
61
+ /**
62
+ * Define if input is disabled
63
+ */
64
+ this.disabled = false;
65
+ /**
66
+ * Component classes
67
+ */
68
+ this.classList = new ClassList(['mg-input--radio']);
69
+ /**
70
+ * Handle input event
71
+ */
72
+ this.handleInput = (event) => {
73
+ this.checkValidity();
74
+ this.value = this.options[event.target.value].value;
75
+ this.valueChange.emit(this.value);
76
+ };
77
+ /**
78
+ * Handle blur event
79
+ */
80
+ this.handleBlur = () => {
81
+ this.checkValidity();
82
+ this.checkError();
83
+ };
84
+ /**
85
+ * get invalid element
86
+ * @returns element: HTMLInputElement
87
+ */
88
+ this.getInvalidElement = () => this.inputs.find((element) => !element.disabled && !element.checkValidity());
89
+ }
90
+ validateItems(newValue) {
91
+ // Validate if items have required min length
92
+ if (typeof newValue === 'object' && newValue.length < 2) {
93
+ throw new Error('<mg-input-radio> prop "items" require at least 2 items.');
94
+ }
95
+ // String array
96
+ else if (allItemsAreString(newValue)) {
97
+ this.options = newValue.map(item => ({ title: item, value: item, disabled: this.disabled }));
98
+ }
99
+ // Object array
100
+ else if (newValue && newValue.every(item => isOption(item))) {
101
+ this.options = newValue;
102
+ }
103
+ else {
104
+ throw new Error('<mg-input-radio> prop "items" is required and all items must be the same type, string or RadioOption.');
105
+ }
106
+ }
107
+ /**
108
+ * Check if input is valid
109
+ */
110
+ checkValidity() {
111
+ if (!this.readonly) {
112
+ const validity = this.getInvalidElement() === undefined;
113
+ // Set validity
114
+ this.valid = validity;
115
+ this.invalid = !validity;
116
+ }
117
+ }
118
+ /**
119
+ * Check input errors
120
+ */
121
+ checkError() {
122
+ const invalidElement = this.getInvalidElement();
123
+ // Set error message
124
+ this.errorMessage = undefined;
125
+ if (!this.valid && invalidElement.validity.valueMissing) {
126
+ this.errorMessage = messages.errors.required;
127
+ }
128
+ // Update class
129
+ if (this.valid) {
130
+ this.classList.delete(this.classError);
131
+ }
132
+ else {
133
+ this.classList.add(this.classError);
134
+ }
135
+ }
136
+ /*************
137
+ * Lifecycle *
138
+ *************/
139
+ componentWillLoad() {
140
+ // Check items format
141
+ this.validateItems(this.items);
142
+ // return a promise to process action only in the FIRST render().
143
+ // https://stenciljs.com/docs/component-lifecycle#componentwillload
144
+ return setTimeout(() => this.checkValidity(), 0);
145
+ }
146
+ render() {
147
+ return (h(MgInput, { identifier: this.identifier, classList: this.classList, label: this.label, labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: this.required, disabled: this.disabled, readonly: this.readonly, width: undefined, value: this.value && this.value.toString(), readonlyValue: this.value && this.value.toString(), tooltip: this.tooltip, displayCharacterLeft: undefined, characterLeftTemplate: undefined, maxlength: undefined, helpText: this.helpText, errorMessage: this.errorMessage, isFieldset: true }, h("ul", { class: `mg-input__input-group-container${this.inputVerticalList ? ' mg-input__input-group-container--vertical' : ''}` }, this.options.map((input, index) => (h("li", { class: "mg-input__input-group" }, h("input", { type: "radio", id: this.identifier + '_' + index, name: this.identifier, value: index, checked: JSON.stringify(this.value) === JSON.stringify(this.options[index].value), disabled: this.disabled || input.disabled, required: this.required, onBlur: this.handleBlur, onInput: this.handleInput, ref: el => this.inputs.push(el) }), h("label", { htmlFor: this.identifier + '_' + index }, input.title)))))));
148
+ }
149
+ static get watchers() { return {
150
+ "items": ["validateItems"]
151
+ }; }
152
+ static get style() { return mgInputRadioCss; }
153
+ }, [1, "mg-input-radio", {
154
+ "value": [1032],
155
+ "items": [16],
156
+ "identifier": [1],
157
+ "name": [1],
158
+ "label": [1],
159
+ "labelOnTop": [4, "label-on-top"],
160
+ "labelHide": [4, "label-hide"],
161
+ "inputVerticalList": [4, "input-vertical-list"],
162
+ "required": [4],
163
+ "readonly": [4],
164
+ "disabled": [4],
165
+ "tooltip": [1],
166
+ "helpText": [1, "help-text"],
167
+ "valid": [1028],
168
+ "invalid": [1028],
169
+ "classList": [32],
170
+ "errorMessage": [32],
171
+ "options": [32]
172
+ }]);
173
+ function defineCustomElement$1() {
174
+ if (typeof customElements === "undefined") {
175
+ return;
176
+ }
177
+ const components = ["mg-input-radio", "mg-character-left", "mg-icon", "mg-input-title", "mg-tooltip"];
178
+ components.forEach(tagName => { switch (tagName) {
179
+ case "mg-input-radio":
180
+ if (!customElements.get(tagName)) {
181
+ customElements.define(tagName, MgInputRadio$1);
182
+ }
183
+ break;
184
+ case "mg-character-left":
185
+ if (!customElements.get(tagName)) {
186
+ defineCustomElement$5();
187
+ }
188
+ break;
189
+ case "mg-icon":
190
+ if (!customElements.get(tagName)) {
191
+ defineCustomElement$4();
192
+ }
193
+ break;
194
+ case "mg-input-title":
195
+ if (!customElements.get(tagName)) {
196
+ defineCustomElement$3();
197
+ }
198
+ break;
199
+ case "mg-tooltip":
200
+ if (!customElements.get(tagName)) {
201
+ defineCustomElement$2();
202
+ }
203
+ break;
204
+ } });
205
+ }
206
+ defineCustomElement$1();
207
+
208
+ const MgInputRadio = MgInputRadio$1;
209
+ const defineCustomElement = defineCustomElement$1;
210
+
211
+ export { MgInputRadio, defineCustomElement };
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface MgInputSelect extends Components.MgInputSelect, HTMLElement {}
4
+ export const MgInputSelect: {
5
+ prototype: MgInputSelect;
6
+ new (): MgInputSelect;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,6 @@
1
+ import { M as MgInputSelect$1, d as defineCustomElement$1 } from './mg-input-select2.js';
2
+
3
+ const MgInputSelect = MgInputSelect$1;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { MgInputSelect, defineCustomElement };
@@ -0,0 +1,243 @@
1
+ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
+ import { I as InputClass, M as MgInput } from './MgInput.js';
3
+ import { c as createID, C as ClassList, a as allItemsAreString } from './components.utils.js';
4
+ import { m as messages } from './index2.js';
5
+ import { d as defineCustomElement$4 } from './mg-character-left2.js';
6
+ import { d as defineCustomElement$3 } from './mg-icon2.js';
7
+ import { d as defineCustomElement$2 } from './mg-input-title2.js';
8
+ import { d as defineCustomElement$1 } from './mg-tooltip2.js';
9
+
10
+ const mgInputSelectCss = ":host{display:block}.mg-input{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;min-height:var(--default-size);max-width:100%;}.mg-input.is-not-valid{color:hsl(var(--color-danger))}.mg-input.is-not-valid .mg-input__box{border-color:hsl(var(--color-danger))}.mg-input mg-input-title{-ms-flex-negative:var(--mg-inputs-shrink, 1);flex-shrink:var(--mg-inputs-shrink, 1);width:var(--mg-inputs-title-width, auto);margin-top:calc((var(--default-size) - var(--font-size) * var(--line-height)) / 2);margin-right:var(--mg-inputs-title-horizontal-space, var(--mg-inputs-spacer));text-align:right}.mg-input.mg-input--label-on-top{-ms-flex-direction:column;flex-direction:column}.mg-input.mg-input--label-on-top .mg-input__input-container{width:100%}.mg-input__title{display:-ms-flexbox;display:flex;-ms-flex-align:baseline;align-items:baseline;margin-bottom:0.3rem}.mg-input__title mg-input-title{-ms-flex-negative:1;flex-shrink:1;width:auto;margin-top:0;margin-right:var(--mg-inputs-spacer);text-align:left}.mg-input__title mg-tooltip{margin-top:0}.mg-input__title mg-icon{display:-ms-inline-flexbox;display:inline-flex;vertical-align:text-bottom}.mg-input__input-container{min-height:var(--default-size);}.mg-input__input-container>strong{display:inline-block;margin-top:calc((var(--default-size) - var(--font-size) * var(--line-height)) / 2);min-height:var(--font-size)}.mg-input__input-container mg-tooltip{display:-ms-inline-flexbox;display:inline-flex;width:var(--mg-icon-regular-size);height:var(--mg-icon-regular-size);margin-left:var(--mg-inputs-spacer)}.mg-input__input-container mg-icon{display:-ms-flexbox;display:flex}.mg-input__input{display:-ms-flexbox;display:flex;}.mg-input__input mg-tooltip{margin-top:calc((var(--default-size) - var(--mg-icon-regular-size)) / 2)}.mg-input__input+*{text-align:start;margin-top:0.5rem}.mg-input__box{padding:calc((var(--default-size) - var(--font-size) * var(--line-height)) / 2) var(--mg-inputs-spacer);height:var(--default-size);-webkit-box-sizing:border-box;box-sizing:border-box;border-width:var(--mg-inputs-border-width);border-style:solid;border-color:var(--mg-inputs-color);border-radius:var(--mg-inputs-border-radius);background-color:hsl(var(--color-light));font-family:inherit;color:hsl(var(--color-dark));font-size:var(--font-size)}.mg-input__box::-webkit-input-placeholder{color:var(--mg-inputs-color);font-style:italic}.mg-input__box::-moz-placeholder{color:var(--mg-inputs-color);font-style:italic}.mg-input__box:-ms-input-placeholder{color:var(--mg-inputs-color);font-style:italic}.mg-input__box::-ms-input-placeholder{color:var(--mg-inputs-color);font-style:italic}.mg-input__box::placeholder{color:var(--mg-inputs-color);font-style:italic}.mg-input__box:focus{-webkit-box-shadow:0 0 0.6rem hsla(var(--mg-inputs-color-shadow-focus-hsl), 0.5);box-shadow:0 0 0.6rem hsla(var(--mg-inputs-color-shadow-focus-hsl), 0.5)}.mg-input__box:disabled{opacity:0.3}.mg-input.mg-input--is-input-group-append{--mg-button-border-radius-top-left:0;--mg-button-border-radius-bottom-left:0;}.mg-input.mg-input--is-input-group-append .mg-input__box{margin-right:-0.1rem;border-top-right-radius:0%;border-bottom-right-radius:0%}.mg-input.mg-input--is-input-group-append .mg-input__box:focus-visible{outline-style:solid;outline-offset:-0.2rem;outline-width:0.2rem}.mg-input.mg-input--is-input-group-append.mg-input--readonly slot[name=append-input]{display:none}.mg-input.mg-input--is-append-input-slot-content:not(.mg-input--readonly) ::slotted([slot=append-input]){padding-top:calc((var(--default-size) - var(--mg-icon-regular-size)) / 2)}.mg-input.mg-input--width-full:not(.mg-input--label-on-top){-ms-flex-pack:justify;justify-content:space-between}.mg-input.mg-input--width-full .mg-input__input-container{-ms-flex:auto;flex:auto;width:100%}.mg-input.mg-input--width-full .mg-input__input-container .mg-input__box{width:100%}.mg-input.mg-input--width-16 .mg-input__box{width:21rem}.mg-input.mg-input--width-4 .mg-input__box{width:7rem}.mg-input.mg-input--width-2 .mg-input__box{width:5rem}.sr-only{border:0 !important;clip:rect(1px, 1px, 1px, 1px) !important;-webkit-clip-path:inset(50%) !important;clip-path:inset(50%) !important;height:1px !important;margin:-1px !important;overflow:hidden !important;padding:0 !important;position:absolute !important;width:1px !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}.mg-input__box{padding-top:0;padding-bottom:0;padding-right:0}";
11
+
12
+ /**
13
+ * Check if item is a well configured option
14
+ * @param option
15
+ * @returns {boolean}
16
+ */
17
+ const isOption = (option) => typeof option === 'object' && typeof option.title === 'string' && option.value !== undefined;
18
+ /**
19
+ * Group options
20
+ * @param acc
21
+ * @param {SelectOption} item
22
+ * @param {string} item.group
23
+ * @param {string} item.title
24
+ * @param {any} item.value
25
+ * @param {boolean} item.disabled
26
+ * @returns {OptGroup} grouped options
27
+ */
28
+ const groupOptions = (acc, { group, title, value, disabled }) => {
29
+ if (group !== undefined) {
30
+ // Check if group is already created
31
+ const optgroup = acc.find((grp) => grp.group === group);
32
+ // Add to group
33
+ if (optgroup) {
34
+ optgroup.options.push({ title, value, disabled });
35
+ }
36
+ // Create group
37
+ else {
38
+ acc.push({ group, options: [{ title, value, disabled }] });
39
+ }
40
+ }
41
+ else {
42
+ acc.push({ title, value, disabled });
43
+ }
44
+ return acc;
45
+ };
46
+ const MgInputSelect = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
47
+ constructor() {
48
+ super();
49
+ this.__registerHost();
50
+ this.__attachShadow();
51
+ this.valueChange = createEvent(this, "value-change", 7);
52
+ /************
53
+ * Internal *
54
+ ************/
55
+ // classes
56
+ this.classError = InputClass.ERROR;
57
+ /**
58
+ * Identifier is used for the element ID (id is a reserved prop in Stencil.js)
59
+ * If not set, it will be created.
60
+ */
61
+ this.identifier = createID('mg-input-select');
62
+ /**
63
+ * Input name
64
+ * If not set the value equals the identifier
65
+ */
66
+ this.name = this.identifier;
67
+ /**
68
+ * Define if label is visible
69
+ */
70
+ this.labelHide = false;
71
+ /**
72
+ * Input placeholder.
73
+ * It should be a word or short phrase that demonstrates the expected type of data, not a replacement for labels or help text.
74
+ */
75
+ this.placeholder = messages.input.select.placeholder;
76
+ /**
77
+ * Option to remove placeholder
78
+ */
79
+ this.placeholderHide = false;
80
+ /**
81
+ * Option to disable placeholder
82
+ */
83
+ this.placeholderDisabled = false;
84
+ /**
85
+ * Define if input is required
86
+ */
87
+ this.required = false;
88
+ /**
89
+ * Define if input is readonly
90
+ */
91
+ this.readonly = false;
92
+ /**
93
+ * Define if input is disabled
94
+ */
95
+ this.disabled = false;
96
+ /**
97
+ * Component classes
98
+ */
99
+ this.classList = new ClassList(['mg-input--select']);
100
+ /**
101
+ * Handle input event
102
+ */
103
+ this.handleInput = () => {
104
+ this.checkValidity();
105
+ this.value = this.input.value !== '' ? this.options[this.input.value].value : null;
106
+ this.valueChange.emit(this.value);
107
+ };
108
+ /**
109
+ * Handle blur event
110
+ */
111
+ this.handleBlur = () => {
112
+ this.checkValidity();
113
+ this.checkError();
114
+ };
115
+ }
116
+ validateItems(newValue) {
117
+ // String array
118
+ if (allItemsAreString(newValue)) {
119
+ this.valueExist = newValue.includes(this.value);
120
+ this.options = newValue.map(item => ({ title: item, value: item }));
121
+ }
122
+ // Object array
123
+ else if (newValue && newValue.every(item => isOption(item))) {
124
+ this.valueExist = newValue.map(item => item.value).includes(this.value);
125
+ // Grouped object options
126
+ if (newValue.some((item) => item.group !== undefined)) {
127
+ this.options = newValue.reduce(groupOptions, []);
128
+ }
129
+ // Standart object options
130
+ else {
131
+ this.options = newValue;
132
+ }
133
+ }
134
+ else {
135
+ throw new Error('<mg-input-select> prop "items" is required and all items must be the same type, string or Option.');
136
+ }
137
+ }
138
+ /**
139
+ * Check if input is valid
140
+ */
141
+ checkValidity() {
142
+ if (!this.readonly && this.input !== undefined) {
143
+ const validity = this.input.checkValidity && this.input.checkValidity();
144
+ // Set validity
145
+ this.valid = validity;
146
+ this.invalid = !validity;
147
+ }
148
+ }
149
+ /**
150
+ * Check input errors
151
+ */
152
+ checkError() {
153
+ // Set error message
154
+ this.errorMessage = undefined;
155
+ if (!this.valid && this.input.validity.valueMissing) {
156
+ this.errorMessage = messages.errors.required;
157
+ }
158
+ // Update class
159
+ if (this.valid) {
160
+ this.classList.delete(this.classError);
161
+ }
162
+ else {
163
+ this.classList.add(this.classError);
164
+ }
165
+ }
166
+ /*************
167
+ * Lifecycle *
168
+ *************/
169
+ componentWillLoad() {
170
+ // Check items format
171
+ this.validateItems(this.items);
172
+ // return a promise to process action only in the FIRST render().
173
+ // https://stenciljs.com/docs/component-lifecycle#componentwillload
174
+ return setTimeout(() => this.checkValidity(), 0);
175
+ }
176
+ render() {
177
+ return (h(MgInput, { identifier: this.identifier, classList: this.classList, label: this.label, labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: this.required, readonly: this.readonly, width: this.width, disabled: this.disabled, value: this.value, readonlyValue: undefined, tooltip: this.tooltip, displayCharacterLeft: undefined, characterLeftTemplate: undefined, maxlength: undefined, helpText: this.helpText, errorMessage: this.errorMessage, isFieldset: false }, h("select", { class: "mg-input__box", id: this.identifier, name: this.name, title: this.placeholder, disabled: this.disabled, required: this.required, onInput: this.handleInput, onBlur: this.handleBlur, ref: el => (this.input = el) }, (!this.placeholderHide || !this.valueExist) && ( // In case passed value does not match any option we display the placeholder
178
+ h("option", { value: "", disabled: this.placeholderDisabled && this.valueExist }, this.placeholder)), this.options.map((option, optionIndex) => option.group !== undefined ? (h("optgroup", { label: option.group }, option.options.map((optgroup, optgroupIndex) => (h("option", { value: optgroupIndex, selected: JSON.stringify(this.value) === JSON.stringify(optgroup.value), disabled: optgroup.disabled }, optgroup.title))))) : (h("option", { value: optionIndex, selected: JSON.stringify(this.value) === JSON.stringify(option.value), disabled: option.disabled }, option.title))))));
179
+ }
180
+ static get watchers() { return {
181
+ "items": ["validateItems"]
182
+ }; }
183
+ static get style() { return mgInputSelectCss; }
184
+ }, [1, "mg-input-select", {
185
+ "value": [1032],
186
+ "items": [16],
187
+ "identifier": [1],
188
+ "name": [1],
189
+ "label": [1],
190
+ "labelOnTop": [4, "label-on-top"],
191
+ "labelHide": [4, "label-hide"],
192
+ "placeholder": [1],
193
+ "placeholderHide": [4, "placeholder-hide"],
194
+ "placeholderDisabled": [4, "placeholder-disabled"],
195
+ "required": [4],
196
+ "readonly": [4],
197
+ "disabled": [4],
198
+ "width": [8],
199
+ "tooltip": [1],
200
+ "helpText": [1, "help-text"],
201
+ "valid": [1028],
202
+ "invalid": [1028],
203
+ "classList": [32],
204
+ "errorMessage": [32],
205
+ "options": [32],
206
+ "valueExist": [32]
207
+ }]);
208
+ function defineCustomElement() {
209
+ if (typeof customElements === "undefined") {
210
+ return;
211
+ }
212
+ const components = ["mg-input-select", "mg-character-left", "mg-icon", "mg-input-title", "mg-tooltip"];
213
+ components.forEach(tagName => { switch (tagName) {
214
+ case "mg-input-select":
215
+ if (!customElements.get(tagName)) {
216
+ customElements.define(tagName, MgInputSelect);
217
+ }
218
+ break;
219
+ case "mg-character-left":
220
+ if (!customElements.get(tagName)) {
221
+ defineCustomElement$4();
222
+ }
223
+ break;
224
+ case "mg-icon":
225
+ if (!customElements.get(tagName)) {
226
+ defineCustomElement$3();
227
+ }
228
+ break;
229
+ case "mg-input-title":
230
+ if (!customElements.get(tagName)) {
231
+ defineCustomElement$2();
232
+ }
233
+ break;
234
+ case "mg-tooltip":
235
+ if (!customElements.get(tagName)) {
236
+ defineCustomElement$1();
237
+ }
238
+ break;
239
+ } });
240
+ }
241
+ defineCustomElement();
242
+
243
+ export { MgInputSelect as M, defineCustomElement as d };
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface MgInputText extends Components.MgInputText, HTMLElement {}
4
+ export const MgInputText: {
5
+ prototype: MgInputText;
6
+ new (): MgInputText;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;