@mgdis/mg-components 5.10.0 → 5.11.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 (159) hide show
  1. package/dist/cjs/{index-9e1091ab.js → index-03d2557d.js} +3 -0
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/mg-action-more_31.cjs.entry.js +444 -455
  4. package/dist/cjs/mg-components.cjs.js +2 -2
  5. package/dist/cjs/mg-item-more.cjs.entry.js +20 -29
  6. package/dist/cjs/{mg-menu.conf-1942ac70.js → mg-menu.conf-05ec32a3.js} +30 -16
  7. package/dist/collection/components/atoms/mg-badge/mg-badge.js +8 -9
  8. package/dist/collection/components/atoms/mg-button/mg-button.js +16 -20
  9. package/dist/collection/components/atoms/mg-card/mg-card.css +2 -0
  10. package/dist/collection/components/atoms/mg-card/mg-card.js +10 -12
  11. package/dist/collection/components/atoms/mg-character-left/mg-character-left.js +1 -2
  12. package/dist/collection/components/atoms/mg-divider/mg-divider.js +1 -1
  13. package/dist/collection/components/atoms/mg-icon/mg-icon.js +17 -19
  14. package/dist/collection/components/atoms/mg-input-title/mg-input-title.js +1 -2
  15. package/dist/collection/components/atoms/mg-tag/mg-tag.js +11 -13
  16. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +20 -25
  17. package/dist/collection/components/molecules/inputs/MgInput.conf.js +4 -1
  18. package/dist/collection/components/molecules/inputs/MgInput.js +26 -18
  19. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.js +4 -1
  20. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.css +18 -1
  21. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +126 -19
  22. package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.css +1 -1
  23. package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +7 -12
  24. package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.css +1 -1
  25. package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +14 -22
  26. package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.css +1 -1
  27. package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +6 -10
  28. package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.css +1 -1
  29. package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +10 -18
  30. package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.css +1 -1
  31. package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +21 -32
  32. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.css +1 -1
  33. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +16 -31
  34. package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.css +1 -1
  35. package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +13 -17
  36. package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.css +1 -1
  37. package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +17 -23
  38. package/dist/collection/components/molecules/menu/mg-menu/mg-menu.js +11 -18
  39. package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.js +20 -29
  40. package/dist/collection/components/molecules/mg-action-more/mg-action-more.js +11 -15
  41. package/dist/collection/components/molecules/mg-details/mg-details.js +1 -3
  42. package/dist/collection/components/molecules/mg-form/mg-form.js +8 -19
  43. package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js +1 -2
  44. package/dist/collection/components/molecules/mg-item-more/mg-item-more.js +4 -7
  45. package/dist/collection/components/molecules/mg-message/mg-message.css +1 -0
  46. package/dist/collection/components/molecules/mg-message/mg-message.js +11 -14
  47. package/dist/collection/components/molecules/mg-modal/mg-modal.css +1 -0
  48. package/dist/collection/components/molecules/mg-modal/mg-modal.js +7 -11
  49. package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +11 -13
  50. package/dist/collection/components/molecules/mg-panel/mg-panel.css +1 -0
  51. package/dist/collection/components/molecules/mg-panel/mg-panel.js +6 -15
  52. package/dist/collection/components/molecules/mg-popover/mg-popover.css +2 -0
  53. package/dist/collection/components/molecules/mg-popover/mg-popover.js +16 -16
  54. package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.js +2 -4
  55. package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +20 -24
  56. package/dist/collection/locales/en/messages.json +7 -0
  57. package/dist/collection/locales/fr/messages.json +7 -0
  58. package/dist/collection/locales/index.js +2 -2
  59. package/dist/collection/styles/reset-mg-card-slotted-variables.scss +1 -0
  60. package/dist/collection/utils/behaviors.utils.js +16 -22
  61. package/dist/collection/utils/components.utils.js +21 -23
  62. package/dist/collection/utils/locale.utils.js +14 -14
  63. package/dist/collection/utils/unit.test.utils.js +7 -10
  64. package/dist/components/MgInput.js +30 -18
  65. package/dist/components/components.utils.js +21 -23
  66. package/dist/components/index2.js +30 -16
  67. package/dist/components/mg-action-more.js +9 -13
  68. package/dist/components/mg-badge2.js +8 -9
  69. package/dist/components/mg-button2.js +16 -20
  70. package/dist/components/mg-card2.js +9 -11
  71. package/dist/components/mg-character-left2.js +1 -2
  72. package/dist/components/mg-details.js +1 -3
  73. package/dist/components/mg-divider.js +1 -1
  74. package/dist/components/mg-form.js +7 -15
  75. package/dist/components/mg-icon2.js +17 -19
  76. package/dist/components/mg-illustrated-message.js +1 -2
  77. package/dist/components/mg-input-checkbox.js +126 -21
  78. package/dist/components/mg-input-date.js +7 -9
  79. package/dist/components/mg-input-numeric.js +14 -19
  80. package/dist/components/mg-input-password.js +6 -7
  81. package/dist/components/mg-input-radio.js +10 -15
  82. package/dist/components/mg-input-select2.js +21 -29
  83. package/dist/components/mg-input-text2.js +15 -24
  84. package/dist/components/mg-input-textarea.js +13 -14
  85. package/dist/components/mg-input-title2.js +1 -2
  86. package/dist/components/mg-input-toggle.js +17 -20
  87. package/dist/components/mg-item-more.js +18 -27
  88. package/dist/components/mg-menu-item2.js +17 -26
  89. package/dist/components/mg-menu2.js +9 -16
  90. package/dist/components/mg-message.js +12 -15
  91. package/dist/components/mg-modal.js +8 -12
  92. package/dist/components/mg-pagination.js +11 -13
  93. package/dist/components/mg-panel.js +7 -16
  94. package/dist/components/mg-popover2.js +17 -17
  95. package/dist/components/mg-skip-links.js +2 -4
  96. package/dist/components/mg-tabs.js +20 -24
  97. package/dist/components/mg-tag.js +11 -13
  98. package/dist/components/mg-tooltip2.js +20 -25
  99. package/dist/esm/{index-3249671d.js → index-407d5211.js} +3 -0
  100. package/dist/esm/loader.js +3 -3
  101. package/dist/esm/mg-action-more_31.entry.js +444 -455
  102. package/dist/esm/mg-components.js +3 -3
  103. package/dist/esm/mg-item-more.entry.js +20 -29
  104. package/dist/esm/{mg-menu.conf-2cc1bb67.js → mg-menu.conf-c8aa56ce.js} +30 -16
  105. package/dist/mg-components/locales/en/messages.json +7 -0
  106. package/dist/mg-components/locales/fr/messages.json +7 -0
  107. package/dist/mg-components/mg-components.css +1 -1
  108. package/dist/mg-components/mg-components.esm.js +1 -1
  109. package/dist/mg-components/p-3bf533f7.js +2 -0
  110. package/dist/mg-components/p-51c2def3.entry.js +1 -0
  111. package/dist/mg-components/p-b14be68b.js +1 -0
  112. package/dist/mg-components/{p-a56a3157.entry.js → p-d3ed97d3.entry.js} +1 -1
  113. package/dist/mg-components/styles/reset-mg-card-slotted-variables.scss +1 -0
  114. package/dist/types/components/atoms/mg-badge/mg-badge.d.ts +2 -3
  115. package/dist/types/components/atoms/mg-button/mg-button.d.ts +5 -9
  116. package/dist/types/components/atoms/mg-card/mg-card.d.ts +2 -6
  117. package/dist/types/components/atoms/mg-character-left/mg-character-left.d.ts +1 -2
  118. package/dist/types/components/atoms/mg-divider/mg-divider.d.ts +1 -1
  119. package/dist/types/components/atoms/mg-icon/mg-icon.d.ts +3 -5
  120. package/dist/types/components/atoms/mg-input-title/mg-input-title.d.ts +1 -2
  121. package/dist/types/components/atoms/mg-tag/mg-tag.d.ts +3 -5
  122. package/dist/types/components/atoms/mg-tooltip/mg-tooltip.d.ts +15 -21
  123. package/dist/types/components/molecules/inputs/MgInput.conf.d.ts +2 -1
  124. package/dist/types/components/molecules/inputs/MgInput.d.ts +5 -5
  125. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.d.ts +8 -0
  126. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.d.ts +40 -7
  127. package/dist/types/components/molecules/inputs/mg-input-date/mg-input-date.d.ts +4 -6
  128. package/dist/types/components/molecules/inputs/mg-input-numeric/mg-input-numeric.d.ts +7 -14
  129. package/dist/types/components/molecules/inputs/mg-input-password/mg-input-password.d.ts +3 -4
  130. package/dist/types/components/molecules/inputs/mg-input-radio/mg-input-radio.d.ts +5 -10
  131. package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.conf.d.ts +2 -2
  132. package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.d.ts +9 -13
  133. package/dist/types/components/molecules/inputs/mg-input-text/mg-input-text.d.ts +3 -12
  134. package/dist/types/components/molecules/inputs/mg-input-textarea/mg-input-textarea.d.ts +4 -5
  135. package/dist/types/components/molecules/inputs/mg-input-toggle/mg-input-toggle.d.ts +2 -6
  136. package/dist/types/components/molecules/menu/mg-menu/mg-menu.d.ts +10 -18
  137. package/dist/types/components/molecules/menu/mg-menu-item/mg-menu-item.d.ts +21 -31
  138. package/dist/types/components/molecules/mg-action-more/mg-action-more.d.ts +3 -10
  139. package/dist/types/components/molecules/mg-details/mg-details.d.ts +1 -3
  140. package/dist/types/components/molecules/mg-form/mg-form.d.ts +3 -11
  141. package/dist/types/components/molecules/mg-illustrated-message/mg-illustrated-message.d.ts +1 -2
  142. package/dist/types/components/molecules/mg-item-more/mg-item-more.d.ts +2 -7
  143. package/dist/types/components/molecules/mg-message/mg-message.d.ts +4 -7
  144. package/dist/types/components/molecules/mg-modal/mg-modal.d.ts +3 -7
  145. package/dist/types/components/molecules/mg-pagination/mg-pagination.d.ts +5 -9
  146. package/dist/types/components/molecules/mg-panel/mg-panel.d.ts +4 -13
  147. package/dist/types/components/molecules/mg-popover/mg-popover.d.ts +7 -9
  148. package/dist/types/components/molecules/mg-skip-links/mg-skip-links.d.ts +2 -4
  149. package/dist/types/components/molecules/mg-tabs/mg-tabs.d.ts +15 -19
  150. package/dist/types/components.d.ts +31 -35
  151. package/dist/types/locales/index.d.ts +16 -2
  152. package/dist/types/utils/behaviors.utils.d.ts +14 -20
  153. package/dist/types/utils/components.utils.d.ts +18 -20
  154. package/dist/types/utils/locale.utils.d.ts +14 -14
  155. package/dist/types/utils/unit.test.utils.d.ts +11 -17
  156. package/package.json +4 -4
  157. package/dist/mg-components/p-73156ac9.js +0 -1
  158. package/dist/mg-components/p-8fbc0d87.js +0 -2
  159. package/dist/mg-components/p-eb32bb18.entry.js +0 -1
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-9e1091ab.js');
5
+ const index = require('./index-03d2557d.js');
6
6
 
7
7
  /*
8
8
  Stencil Client Patch Browser v2.22.1 | MIT Licensed | https://stenciljs.com
@@ -17,7 +17,7 @@ const patchBrowser = () => {
17
17
  };
18
18
 
19
19
  patchBrowser().then(options => {
20
- return index.bootstrapLazy([["mg-action-more_31.cjs",[[1,"mg-action-more",{"icon":[16],"button":[16],"items":[16],"displayChevron":[4,"display-chevron"],"expanded":[32]}],[1,"mg-panel",{"identifier":[1],"panelTitle":[1025,"panel-title"],"titlePattern":[1,"title-pattern"],"titlePatternErrorMessage":[1,"title-pattern-error-message"],"expanded":[1028],"expandToggleDisabled":[4,"expand-toggle-disabled"],"titleEditable":[4,"title-editable"],"classList":[32],"isEditing":[32],"updatedPanelTitle":[32]}],[1,"mg-pagination",{"identifier":[1],"label":[1025],"hideNavigationLabels":[4,"hide-navigation-labels"],"totalPages":[2,"total-pages"],"currentPage":[1538,"current-page"]}],[1,"mg-input-textarea",{"value":[1537],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1],"maxlength":[2],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[8,"mg-width"],"pattern":[1],"patternErrorMessage":[1,"pattern-error-message"],"rows":[2],"tooltip":[1],"displayCharacterLeft":[4,"display-character-left"],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"resizable":[1],"classList":[32],"errorMessage":[32],"displayError":[64]}],[1,"mg-input-checkbox",{"value":[1040],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"inputVerticalList":[4,"input-vertical-list"],"required":[4],"readonly":[4],"disabled":[4],"tooltip":[1],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classList":[32],"errorMessage":[32],"checkboxItems":[32],"displayError":[64]}],[1,"mg-input-date",{"value":[1537],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"required":[4],"readonly":[4],"disabled":[4],"tooltip":[1],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"min":[1],"max":[1],"classList":[32],"errorMessage":[32],"displayError":[64]}],[1,"mg-input-numeric",{"value":[1537],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[8,"mg-width"],"tooltip":[1],"helpText":[1,"help-text"],"type":[1],"currency":[1],"max":[2],"min":[2],"integerLength":[2,"integer-length"],"decimalLength":[2,"decimal-length"],"valid":[1028],"invalid":[1028],"classList":[32],"errorMessage":[32],"hasFocus":[32],"displayError":[64]}],[1,"mg-input-password",{"value":[1537],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[8,"mg-width"],"tooltip":[1],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classList":[32],"errorMessage":[32],"displayError":[64]}],[1,"mg-input-radio",{"value":[1032],"items":[16],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"inputVerticalList":[4,"input-vertical-list"],"required":[4],"readonly":[4],"disabled":[4],"tooltip":[1],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classList":[32],"errorMessage":[32],"options":[32],"displayError":[64]}],[1,"mg-input-toggle",{"value":[1032],"items":[16],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"isOnOff":[4,"is-on-off"],"isIcon":[4,"is-icon"],"readonly":[4],"disabled":[4],"tooltip":[1],"helpText":[1,"help-text"],"classList":[32],"options":[32],"checked":[32]}],[1,"mg-message",{"identifier":[1],"delay":[2],"variant":[1],"closeButton":[1028,"close-button"],"hide":[1028],"classList":[32],"hasActions":[32]}],[1,"mg-modal",{"identifier":[1],"modalTitle":[1,"modal-title"],"closeButton":[4,"close-button"],"hide":[1028],"hasActions":[32],"hasContent":[32],"classList":[32]},[[8,"keydown","handleKeyDown"]]],[1,"mg-tabs",{"identifier":[1],"label":[1],"size":[1],"items":[16],"activeTab":[1538,"active-tab"],"tabs":[32],"classList":[32]}],[1,"mg-details",{"toggleClosed":[1,"toggle-closed"],"toggleOpened":[1,"toggle-opened"],"hideSummary":[4,"hide-summary"],"expanded":[1028]}],[1,"mg-divider",{"size":[1]}],[1,"mg-form",{"identifier":[1],"name":[1],"readonly":[4],"disabled":[4],"valid":[1028],"invalid":[1028],"classList":[32],"requiredMessage":[32],"displayError":[64]}],[1,"mg-illustrated-message",{"size":[1],"direction":[1]}],[1,"mg-skip-links",{"links":[16]}],[1,"mg-tag",{"variant":[1],"outline":[4],"soft":[4],"classList":[32]}],[1,"mg-input-text",{"value":[1537],"identifier":[1],"name":[1],"label":[1],"type":[1],"icon":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1],"maxlength":[2],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[8,"mg-width"],"pattern":[1],"patternErrorMessage":[1,"pattern-error-message"],"tooltip":[1],"displayCharacterLeft":[4,"display-character-left"],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classList":[32],"errorMessage":[32],"setFocus":[64],"displayError":[64]}],[1,"mg-input-select",{"value":[1032],"items":[16],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1025],"placeholderHide":[4,"placeholder-hide"],"placeholderDisabled":[4,"placeholder-disabled"],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[8,"mg-width"],"tooltip":[1],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classList":[32],"errorMessage":[32],"options":[32],"valueExist":[32],"readonlyValue":[32],"displayError":[64]}],[1,"mg-menu-item",{"identifier":[1],"href":[1],"status":[1537],"expanded":[1028],"size":[32],"navigationButtonClassList":[32],"direction":[32],"isInMainMenu":[32],"isItemMore":[32],"hasChildren":[32],"displayNotificationBadge":[32]}],[1,"mg-menu",{"label":[1],"direction":[513],"itemmore":[16],"size":[1],"isChildMenu":[32]}],[1,"mg-popover",{"identifier":[1],"placement":[1],"arrowHide":[4,"arrow-hide"],"closeButton":[4,"close-button"],"display":[1028],"disabled":[4],"classList":[32]}],[2,"mg-character-left",{"identifier":[1],"characters":[1],"maxlength":[2]}],[1,"mg-badge",{"value":[8],"label":[1],"variant":[1],"outline":[4],"classList":[32]}],[1,"mg-card",{"variant":[1],"variantStyle":[1025,"variant-style"],"classList":[32]}],[1,"mg-button",{"variant":[1],"identifier":[1],"label":[1],"type":[1],"fullWidth":[4,"full-width"],"form":[1],"disabled":[1028],"isIcon":[4,"is-icon"],"disableOnClick":[4,"disable-on-click"],"loading":[32],"classList":[32]}],[6,"mg-input-title",{"identifier":[1],"required":[4],"isLegend":[4,"is-legend"],"tagName":[32]}],[1,"mg-tooltip",{"identifier":[1],"message":[1],"placement":[1],"display":[1028],"disabled":[4]}],[1,"mg-icon",{"icon":[1],"size":[1],"variant":[1],"variantStyle":[1025,"variant-style"],"spin":[4],"classList":[32]}]]],["mg-item-more.cjs",[[1,"mg-item-more",{"icon":[16],"slotlabel":[16],"size":[1],"parentMenu":[32]}]]]], options);
20
+ return index.bootstrapLazy([["mg-action-more_31.cjs",[[1,"mg-action-more",{"icon":[16],"button":[16],"items":[16],"displayChevron":[4,"display-chevron"],"expanded":[32]}],[1,"mg-panel",{"identifier":[1],"panelTitle":[1025,"panel-title"],"titlePattern":[1,"title-pattern"],"titlePatternErrorMessage":[1,"title-pattern-error-message"],"expanded":[1028],"expandToggleDisabled":[4,"expand-toggle-disabled"],"titleEditable":[4,"title-editable"],"classCollection":[32],"isEditing":[32],"updatedPanelTitle":[32]}],[1,"mg-input-checkbox",{"value":[1040],"type":[1],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"inputVerticalList":[4,"input-vertical-list"],"required":[4],"readonly":[4],"disabled":[4],"tooltip":[1],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classCollection":[32],"errorMessage":[32],"checkboxItems":[32],"displayError":[64]}],[1,"mg-pagination",{"identifier":[1],"label":[1025],"hideNavigationLabels":[4,"hide-navigation-labels"],"totalPages":[2,"total-pages"],"currentPage":[1538,"current-page"]}],[1,"mg-input-textarea",{"value":[1537],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1],"maxlength":[2],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[8,"mg-width"],"pattern":[1],"patternErrorMessage":[1,"pattern-error-message"],"rows":[2],"tooltip":[1],"displayCharacterLeft":[4,"display-character-left"],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"resizable":[1],"classCollection":[32],"errorMessage":[32],"displayError":[64]}],[1,"mg-input-date",{"value":[1537],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"required":[4],"readonly":[4],"disabled":[4],"tooltip":[1],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"min":[1],"max":[1],"classCollection":[32],"errorMessage":[32],"displayError":[64]}],[1,"mg-input-numeric",{"value":[1537],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[8,"mg-width"],"tooltip":[1],"helpText":[1,"help-text"],"type":[1],"currency":[1],"max":[2],"min":[2],"integerLength":[2,"integer-length"],"decimalLength":[2,"decimal-length"],"valid":[1028],"invalid":[1028],"classCollection":[32],"errorMessage":[32],"hasFocus":[32],"displayError":[64]}],[1,"mg-input-password",{"value":[1537],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[8,"mg-width"],"tooltip":[1],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classCollection":[32],"errorMessage":[32],"displayError":[64]}],[1,"mg-input-radio",{"value":[1032],"items":[16],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"inputVerticalList":[4,"input-vertical-list"],"required":[4],"readonly":[4],"disabled":[4],"tooltip":[1],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classCollection":[32],"errorMessage":[32],"options":[32],"displayError":[64]}],[1,"mg-input-toggle",{"value":[1032],"items":[16],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"isOnOff":[4,"is-on-off"],"isIcon":[4,"is-icon"],"readonly":[4],"disabled":[4],"tooltip":[1],"helpText":[1,"help-text"],"classCollection":[32],"options":[32],"checked":[32]}],[1,"mg-message",{"identifier":[1],"delay":[2],"variant":[1],"closeButton":[1028,"close-button"],"hide":[1028],"classCollection":[32],"hasActions":[32]}],[1,"mg-modal",{"identifier":[1],"modalTitle":[1,"modal-title"],"closeButton":[4,"close-button"],"hide":[1028],"hasActions":[32],"hasContent":[32],"classCollection":[32]},[[8,"keydown","handleKeyDown"]]],[1,"mg-tabs",{"identifier":[1],"label":[1],"size":[1],"items":[16],"activeTab":[1538,"active-tab"],"tabs":[32],"classCollection":[32]}],[1,"mg-details",{"toggleClosed":[1,"toggle-closed"],"toggleOpened":[1,"toggle-opened"],"hideSummary":[4,"hide-summary"],"expanded":[1028]}],[1,"mg-divider",{"size":[1]}],[1,"mg-form",{"identifier":[1],"name":[1],"readonly":[4],"disabled":[4],"valid":[1028],"invalid":[1028],"classCollection":[32],"requiredMessage":[32],"displayError":[64]}],[1,"mg-illustrated-message",{"size":[1],"direction":[1]}],[1,"mg-skip-links",{"links":[16]}],[1,"mg-tag",{"variant":[1],"outline":[4],"soft":[4],"classCollection":[32]}],[1,"mg-input-text",{"value":[1537],"identifier":[1],"name":[1],"label":[1],"type":[1],"icon":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1],"maxlength":[2],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[8,"mg-width"],"pattern":[1],"patternErrorMessage":[1,"pattern-error-message"],"tooltip":[1],"displayCharacterLeft":[4,"display-character-left"],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classCollection":[32],"errorMessage":[32],"setFocus":[64],"displayError":[64]}],[1,"mg-input-select",{"value":[1032],"items":[16],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1025],"placeholderHide":[4,"placeholder-hide"],"placeholderDisabled":[4,"placeholder-disabled"],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[8,"mg-width"],"tooltip":[1],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classCollection":[32],"errorMessage":[32],"options":[32],"valueExist":[32],"readonlyValue":[32],"displayError":[64]}],[1,"mg-menu-item",{"identifier":[1],"href":[1],"status":[1537],"expanded":[1028],"size":[32],"navigationButtonClassList":[32],"direction":[32],"isInMainMenu":[32],"isItemMore":[32],"hasChildren":[32],"displayNotificationBadge":[32]}],[1,"mg-menu",{"label":[1],"direction":[513],"itemmore":[16],"size":[1],"isChildMenu":[32]}],[2,"mg-character-left",{"identifier":[1],"characters":[1],"maxlength":[2]}],[1,"mg-popover",{"identifier":[1],"placement":[1],"arrowHide":[4,"arrow-hide"],"closeButton":[4,"close-button"],"display":[1028],"disabled":[4],"classCollection":[32]}],[1,"mg-badge",{"value":[8],"label":[1],"variant":[1],"outline":[4],"classCollection":[32]}],[1,"mg-card",{"variant":[1],"variantStyle":[1025,"variant-style"],"classCollection":[32]}],[1,"mg-button",{"variant":[1],"identifier":[1],"label":[1],"type":[1],"fullWidth":[4,"full-width"],"form":[1],"disabled":[1028],"isIcon":[4,"is-icon"],"disableOnClick":[4,"disable-on-click"],"loading":[32],"classCollection":[32]}],[6,"mg-input-title",{"identifier":[1],"required":[4],"isLegend":[4,"is-legend"],"tagName":[32]}],[1,"mg-tooltip",{"identifier":[1],"message":[1],"placement":[1],"display":[1028],"disabled":[4]}],[1,"mg-icon",{"icon":[1],"size":[1],"variant":[1],"variantStyle":[1025,"variant-style"],"spin":[4],"classCollection":[32]}]]],["mg-item-more.cjs",[[1,"mg-item-more",{"icon":[16],"slotlabel":[16],"size":[1],"parentMenu":[32]}]]]], options);
21
21
  });
22
22
 
23
23
  exports.setNonce = index.setNonce;
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-9e1091ab.js');
6
- const mgMenu_conf = require('./mg-menu.conf-1942ac70.js');
5
+ const index = require('./index-03d2557d.js');
6
+ const mgMenu_conf = require('./mg-menu.conf-05ec32a3.js');
7
7
 
8
8
  /**
9
9
  * MgItemMore type guard
10
- * @param {HTMLElement} element element to control type
11
- * @returns {boolean} truthy if element is mg-item-more
10
+ * @param element - element to control type
11
+ * @returns truthy if element is mg-item-more
12
12
  */
13
13
  const isMgItemMore = (element) => element.nodeName === 'MG-ITEM-MORE';
14
14
  var OverflowBehaviorElements;
@@ -25,7 +25,6 @@ class OverflowBehavior {
25
25
  **********/
26
26
  /**
27
27
  * Disconnect ResizeObserver
28
- * @returns {void}
29
28
  */
30
29
  this.disconnect = () => {
31
30
  this._resizeObserver.disconnect();
@@ -35,8 +34,7 @@ class OverflowBehavior {
35
34
  ************/
36
35
  /**
37
36
  * run overflow behavior
38
- * @param {number} width width of the container. Optional.
39
- * @returns {void}
37
+ * @param width - width of the container. Optional.
40
38
  */
41
39
  this.run = (width) => {
42
40
  if (this._moreElement === undefined) {
@@ -59,14 +57,13 @@ class OverflowBehavior {
59
57
  };
60
58
  /**
61
59
  * Get interactive children filtred by authorized nodeName ['MG-MENU-ITEM', 'MG-BUTTON']
62
- * @param {Element} element element to parse
63
- * @returns {Element[]} children
60
+ * @param element - element to parse
61
+ * @returns children
64
62
  */
65
63
  this.getInteractiveItems = (element) => { var _a; return (((_a = element.children) === null || _a === void 0 ? void 0 : _a.length) > 0 ? Array.from(element.children) : []).filter(element => ['MG-MENU-ITEM', 'MG-BUTTON'].includes(element.nodeName)); };
66
64
  /**
67
65
  * Update displayed items in container from a given available space
68
- * @param {number} availableWidth available width in container to display child items
69
- * @returns {void}
66
+ * @param availableWidth - available width in container to display child items
70
67
  */
71
68
  this.updateDisplayedItems = (availableWidth) => {
72
69
  this.restoreItems();
@@ -85,10 +82,10 @@ class OverflowBehavior {
85
82
  };
86
83
  /**
87
84
  * Utility method to know if item overflow partialy or totaly in the container
88
- * @param {number} cumulateWidth previous sibling elements cumulate width + item width
89
- * @param {HTMLElement} item item HTML element
90
- * @param {number} availableWidth container available width
91
- * @returns {boolean} truthy if element is overflow
85
+ * @param cumulateWidth - previous sibling elements cumulate width + item width
86
+ * @param item - item HTML element
87
+ * @param availableWidth - container available width
88
+ * @returns truthy if element is overflow
92
89
  */
93
90
  this.isOverflowElement = (cumulateWidth, item, availableWidth) => {
94
91
  if (item.previousElementSibling === null || this.isMoreElement(item))
@@ -100,15 +97,14 @@ class OverflowBehavior {
100
97
  };
101
98
  /**
102
99
  * Utility method to know if a given element is the 'MORE' element
103
- * @param {Element} element element to match with 'MORE' element
104
- * @returns {boolean} truthy if element is the 'MORE' element
100
+ * @param element - element to match with 'MORE' element
101
+ * @returns truthy if element is the 'MORE' element
105
102
  */
106
103
  this.isMoreElement = (element) => element.nodeName === 'MG-ITEM-MORE';
107
104
  /**
108
105
  * Toggle display item element
109
- * @param {HTMLElement} item item to control
110
- * @param {boolean} isHidden is item hidden
111
- * @returns {void}
106
+ * @param item - item to control
107
+ * @param isHidden - is item hidden
112
108
  */
113
109
  this.toggleItem = (item, isHidden) => {
114
110
  const mgActionMenuindex = Number(item.getAttribute(OverflowBehaviorElements.BASE_INDEX));
@@ -121,9 +117,8 @@ class OverflowBehavior {
121
117
  };
122
118
  /**
123
119
  * Toggle element's hidde attribute
124
- * @param {Element} element element to toggle
125
- * @param {boolean} isHidden element is hidden
126
- * @returns {void}
120
+ * @param element - element to toggle
121
+ * @param isHidden - element is hidden
127
122
  */
128
123
  this.toggleElement = (element, isHidden) => {
129
124
  if (isHidden)
@@ -133,7 +128,6 @@ class OverflowBehavior {
133
128
  };
134
129
  /**
135
130
  * Remove hidden attributes on all items
136
- * @returns {void}
137
131
  */
138
132
  this.restoreItems = () => {
139
133
  [...this._baseChildren, this._moreElement].forEach(item => item.removeAttribute('hidden'));
@@ -165,7 +159,7 @@ const MgItemMore = class {
165
159
  ***********/
166
160
  /**
167
161
  * render mg-item-more overflow element
168
- * @returns {HTMLMgItemMoreElement} mg-item-more element
162
+ * @returns mg-item-more element
169
163
  */
170
164
  this.renderMgMenuItemOverflowElement = () => {
171
165
  // create menu items proxy element from item clones
@@ -214,14 +208,12 @@ const MgItemMore = class {
214
208
  *************/
215
209
  /**
216
210
  * Disconnect overflow ResizeObserver
217
- * @returns {void} run overflow resize obeserver disconnexion
218
211
  */
219
212
  disconnectedCallback() {
220
213
  this.overflowBehavior.disconnect();
221
214
  }
222
215
  /**
223
216
  * Set variables and validate props
224
- * @returns {void}
225
217
  */
226
218
  componentWillLoad() {
227
219
  // init variables
@@ -235,14 +227,13 @@ const MgItemMore = class {
235
227
  }
236
228
  /**
237
229
  * Add overflow behavior
238
- * @returns {void}
239
230
  */
240
231
  componentDidLoad() {
241
232
  this.overflowBehavior = new OverflowBehavior(this.parentMenu, this.renderMgMenuItemOverflowElement);
242
233
  }
243
234
  /**
244
235
  * Render
245
- * @returns {HTMLElement} HTML Element
236
+ * @returns HTML Element
246
237
  */
247
238
  render() {
248
239
  return (index.h(index.Host, { role: "menuitem", "aria-haspopup": "true" }, index.h("mg-menu-item", { "data-overflow-more": true, "data-size": this.parentMenu.size }, index.h("mg-icon", { icon: this.icon.icon, slot: "image" }), index.h("span", { class: { 'sr-only': !this.slotlabel.display }, slot: "label" }, this.slotlabel.label), index.h("mg-menu", { direction: mgMenu_conf.Direction.VERTICAL, label: this.messages.moreLabel, size: this.size }))));
@@ -18,6 +18,13 @@ const nbCharLeft$1 = "{counter} characters left.";
18
18
  const input$1 = {
19
19
  select: {
20
20
  placeholder: "Select a value"
21
+ },
22
+ checkbox: {
23
+ selectedValues: "{nb} selected values",
24
+ selectedValue: "{nb} selected value",
25
+ editButton: "Edit",
26
+ selectButton: "Select values",
27
+ showButton: "Show"
21
28
  }
22
29
  };
23
30
  const form$1 = {
@@ -93,6 +100,13 @@ const nbCharLeft = "{counter} caractères disponibles.";
93
100
  const input = {
94
101
  select: {
95
102
  placeholder: "Sélectionnez une valeur"
103
+ },
104
+ checkbox: {
105
+ selectedValues: "{nb} valeurs selectionnées",
106
+ selectedValue: "{nb} valeur selectionnée",
107
+ editButton: "Modifier",
108
+ selectButton: "Sélectionner des valeurs",
109
+ showButton: "Voir"
96
110
  }
97
111
  };
98
112
  const form = {
@@ -152,19 +166,19 @@ const fr = {
152
166
 
153
167
  /**
154
168
  * Format number to the locale currency
155
- * @param {number} number number to format
156
- * @param {string} locale locale to apply
157
- * @param {string} currency currency to apply
158
- * @returns {string} formatted currency
169
+ * @param number - number to format
170
+ * @param locale - locale to apply
171
+ * @param currency - currency to apply
172
+ * @returns formatted currency
159
173
  */
160
174
  const localeCurrency = (number, locale, currency) => {
161
175
  return new Intl.NumberFormat(locale, { style: 'currency', currency }).format(number);
162
176
  };
163
177
  /**
164
178
  * Format number to locale
165
- * @param {number} number number to format
166
- * @param {string} locale locale to apply
167
- * @returns {string} formatted number
179
+ * @param number - number to format
180
+ * @param locale - locale to apply
181
+ * @returns formatted number
168
182
  */
169
183
  const localeNumber = (number, locale) => {
170
184
  return new Intl.NumberFormat(locale).format(number);
@@ -175,9 +189,9 @@ const localeNumber = (number, locale) => {
175
189
  const dateRegExp = /^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/;
176
190
  /**
177
191
  * Locale date format
178
- * @param {string} date date to format
179
- * @param {string} locale locale to apply
180
- * @returns {string} formatted date
192
+ * @param date - date to format
193
+ * @param locale - locale to apply
194
+ * @returns formatted date
181
195
  */
182
196
  const localeDate = (date, locale) => {
183
197
  if (typeof date !== 'string' || date === '' || !dateRegExp.test(date)) {
@@ -188,10 +202,10 @@ const localeDate = (date, locale) => {
188
202
  /**
189
203
  * Get locale and messages
190
204
  * We load the defined locale but for now we only support the first subtag for messages
191
- * @param {HTMLElement} element element we need to get the language
192
- * @param {unknown} messages messages to use
193
- * @param {string} defaultLocale default messages locale
194
- * @returns {{ locale: string; messages: Record<string, unknown> }} messages object
205
+ * @param element - element we need to get the language
206
+ * @param messages - messages to use
207
+ * @param defaultLocale - default messages locale
208
+ * @returns messages object
195
209
  */
196
210
  const getLocaleMessages = (element, messages, defaultLocale) => {
197
211
  // Get local
@@ -211,8 +225,8 @@ const defaultLocale = 'en';
211
225
  const messages = { en, fr };
212
226
  /**
213
227
  * Get Intl object
214
- * @param {HTMLElement} element element we need to get the language
215
- * @returns {{ locale: string; messages: Record<string, unknown> }} messages object
228
+ * @param element - element we need to get the language
229
+ * @returns messages object
216
230
  */
217
231
  const initLocales = (element) => getLocaleMessages(element, messages, defaultLocale);
218
232
 
@@ -12,7 +12,7 @@ export class MgBadge {
12
12
  this.label = undefined;
13
13
  this.variant = variants[0];
14
14
  this.outline = undefined;
15
- this.classList = new ClassList(['mg-badge']);
15
+ this.classCollection = new ClassList(['mg-badge']);
16
16
  }
17
17
  validateValue(newValue) {
18
18
  if (`${newValue}`.match(/^(\d+\+*|[?*!a-z])$/i) === null) {
@@ -30,20 +30,19 @@ export class MgBadge {
30
30
  }
31
31
  else {
32
32
  if (oldValue !== undefined) {
33
- this.classList.delete(`mg-badge--${oldValue}`);
33
+ this.classCollection.delete(`mg-badge--${oldValue}`);
34
34
  }
35
- this.classList.add(`mg-badge--${newValue}`);
35
+ this.classCollection.add(`mg-badge--${newValue}`);
36
36
  }
37
37
  }
38
38
  validateOutline(newValue) {
39
39
  if (newValue)
40
- this.classList.add(this.classOutline);
40
+ this.classCollection.add(this.classOutline);
41
41
  else
42
- this.classList.delete(this.classOutline);
42
+ this.classCollection.delete(this.classOutline);
43
43
  }
44
44
  /**
45
45
  * Check if props are well configured on init
46
- * @returns {void}
47
46
  */
48
47
  componentWillLoad() {
49
48
  this.validateValue(this.value);
@@ -53,10 +52,10 @@ export class MgBadge {
53
52
  }
54
53
  /**
55
54
  * Render
56
- * @returns {HTMLElement} HTML Element
55
+ * @returns HTML Element
57
56
  */
58
57
  render() {
59
- return (h("span", { class: this.classList.join() }, h("span", { class: "mg-badge__value" }, this.value), h("span", { class: "sr-only" }, this.label)));
58
+ return (h("span", { class: this.classCollection.join() }, h("span", { class: "mg-badge__value" }, this.value), h("span", { class: "sr-only" }, this.label)));
60
59
  }
61
60
  static get is() { return "mg-badge"; }
62
61
  static get encapsulation() { return "shadow"; }
@@ -150,7 +149,7 @@ export class MgBadge {
150
149
  }
151
150
  static get states() {
152
151
  return {
153
- "classList": {}
152
+ "classCollection": {}
154
153
  };
155
154
  }
156
155
  static get watchers() {
@@ -12,8 +12,7 @@ export class MgButton {
12
12
  this.classFullWidth = 'mg-button--full-width';
13
13
  /**
14
14
  * Trigger actions onClick event
15
- * @param {MouseEvent} event click event
16
- * @returns {void}
15
+ * @param event - click event
17
16
  */
18
17
  this.handleClick = (event) => {
19
18
  if (this.disabled)
@@ -26,8 +25,7 @@ export class MgButton {
26
25
  };
27
26
  /**
28
27
  * Handle onKeydown event
29
- * @param {KeyboardEvent} event keyboard event
30
- * @returns {void}
28
+ * @param event - keyboard event
31
29
  */
32
30
  this.handleKeydown = (event) => {
33
31
  if (!this.disabled && event.key === ' ') {
@@ -40,8 +38,7 @@ export class MgButton {
40
38
  };
41
39
  /**
42
40
  * Handle onKeyup event
43
- * @param {KeyboardEvent} event keyboard event
44
- * @returns {void}
41
+ * @param event - keyboard event
45
42
  */
46
43
  this.handleKeyup = (event) => {
47
44
  if (!this.disabled && event.key === ' ') {
@@ -59,7 +56,7 @@ export class MgButton {
59
56
  this.isIcon = false;
60
57
  this.disableOnClick = false;
61
58
  this.loading = false;
62
- this.classList = new ClassList(['mg-button']);
59
+ this.classCollection = new ClassList(['mg-button']);
63
60
  }
64
61
  validateVariant(newValue, oldValue) {
65
62
  if (!variants.includes(newValue)) {
@@ -67,9 +64,9 @@ export class MgButton {
67
64
  }
68
65
  else {
69
66
  if (oldValue !== undefined) {
70
- this.classList.delete(`mg-button--${oldValue}`);
67
+ this.classCollection.delete(`mg-button--${oldValue}`);
71
68
  }
72
- this.classList.add(`mg-button--${newValue}`);
69
+ this.classCollection.add(`mg-button--${newValue}`);
73
70
  }
74
71
  }
75
72
  validateFullWidth(newValue) {
@@ -77,10 +74,10 @@ export class MgButton {
77
74
  throw new Error('<mg-button> prop "fullWidth" cannot be used with prop "isIcon".');
78
75
  }
79
76
  else if (newValue) {
80
- this.classList.add(this.classFullWidth);
77
+ this.classCollection.add(this.classFullWidth);
81
78
  }
82
79
  else {
83
- this.classList.delete(this.classFullWidth);
80
+ this.classCollection.delete(this.classFullWidth);
84
81
  }
85
82
  }
86
83
  disabledHandler(isDisabled) {
@@ -93,10 +90,10 @@ export class MgButton {
93
90
  this.element.onclick = isDisabled ? undefined : this.onClickElementFn;
94
91
  // apply style
95
92
  if (isDisabled) {
96
- this.classList.add(this.classDisabled);
93
+ this.classCollection.add(this.classDisabled);
97
94
  }
98
95
  else {
99
- this.classList.delete(this.classDisabled);
96
+ this.classCollection.delete(this.classDisabled);
100
97
  }
101
98
  // emit value update
102
99
  this.disabledChange.emit(isDisabled);
@@ -104,21 +101,20 @@ export class MgButton {
104
101
  loadingHandler(newValue) {
105
102
  // we add loading style if it newvalue is true else we remove it
106
103
  if (newValue) {
107
- this.classList.add(this.classLoading);
104
+ this.classCollection.add(this.classLoading);
108
105
  }
109
106
  else {
110
- this.classList.delete(this.classLoading);
107
+ this.classCollection.delete(this.classLoading);
111
108
  }
112
109
  }
113
110
  /**
114
111
  * Check if props are well configured on init
115
- * @returns {void}
116
112
  */
117
113
  componentWillLoad() {
118
114
  this.validateVariant(this.variant);
119
115
  this.validateFullWidth(this.fullWidth);
120
116
  if (this.isIcon) {
121
- this.classList.add(`mg-button--icon`);
117
+ this.classCollection.add(`mg-button--icon`);
122
118
  if (typeof this.label !== 'string' || this.label.trim() === '') {
123
119
  throw new Error(`<mg-button> prop "label" is mandatory when prop "isIcon" is set to true.`);
124
120
  }
@@ -129,10 +125,10 @@ export class MgButton {
129
125
  }
130
126
  /**
131
127
  * Render component
132
- * @returns {HTMLElement} html element
128
+ * @returns html element
133
129
  */
134
130
  render() {
135
- return (h(Host, { role: "button", tabIndex: 0, type: this.type, form: this.form, "full-width": this.fullWidth, "aria-label": this.label, "aria-disabled": this.disabled !== undefined && this.disabled.toString(), onClick: this.handleClick, onKeyup: this.handleKeyup, onKeydown: this.handleKeydown }, h("div", { class: this.classList.join(), id: this.identifier }, this.loading && h("mg-icon", { icon: "loader", spin: true }), h("div", { class: "mg-button__content" }, h("slot", null)))));
131
+ return (h(Host, { role: "button", tabIndex: 0, type: this.type, form: this.form, "full-width": this.fullWidth, "aria-label": this.label, "aria-disabled": this.disabled !== undefined && this.disabled.toString(), onClick: this.handleClick, onKeyup: this.handleKeyup, onKeydown: this.handleKeydown }, h("div", { class: this.classCollection.join(), id: this.identifier }, this.loading && h("mg-icon", { icon: "loader", spin: true }), h("div", { class: "mg-button__content" }, h("slot", null)))));
136
132
  }
137
133
  static get is() { return "mg-button"; }
138
134
  static get encapsulation() { return "shadow"; }
@@ -320,7 +316,7 @@ export class MgButton {
320
316
  static get states() {
321
317
  return {
322
318
  "loading": {},
323
- "classList": {}
319
+ "classCollection": {}
324
320
  };
325
321
  }
326
322
  static get events() {
@@ -2,6 +2,7 @@
2
2
  position: relative;
3
3
  width: 100%;
4
4
  max-width: var(--mg-card-max-width);
5
+ min-width: var(--mg-card-min-width);
5
6
  padding: var(--mg-card-padding, var(--mg-card-padding-default));
6
7
  overflow: var(--mg-card-overflow, var(--mg-card-overflow-default));
7
8
  box-sizing: border-box;
@@ -18,6 +19,7 @@
18
19
  --mg-card-background: var(--mg-card-background-default);
19
20
  --mg-card-box-shadow: var(--mg-card-box-shadow-default);
20
21
  --mg-card-max-width: unset;
22
+ --mg-card-min-width: unset;
21
23
  }
22
24
  .mg-card.mg-card--info {
23
25
  overflow: hidden;
@@ -11,7 +11,6 @@ export class MgCard {
11
11
  /**
12
12
  * Methode to set default varianStyle props
13
13
  * needeed has stencil doesn't know that props is mutated when updated in prop watcher
14
- * @returns {void}
15
14
  */
16
15
  this.setDefaultVariantStyle = () => {
17
16
  if (this.variantStyle === undefined)
@@ -19,17 +18,17 @@ export class MgCard {
19
18
  };
20
19
  this.variant = undefined;
21
20
  this.variantStyle = undefined;
22
- this.classList = new ClassList([this.baseClass]);
21
+ this.classCollection = new ClassList([this.baseClass]);
23
22
  }
24
23
  validateVariant(newValue, oldValue) {
25
24
  if (newValue && !variants.includes(newValue))
26
25
  throw new Error(`<${this.name}> prop "variant" must match VariantType type.`);
27
26
  if (Boolean(newValue)) {
28
27
  this.setDefaultVariantStyle();
29
- this.classList.add(`${this.baseClass}--${newValue}`);
28
+ this.classCollection.add(`${this.baseClass}--${newValue}`);
30
29
  }
31
30
  if (Boolean(oldValue))
32
- this.classList.delete(`${this.baseClass}--${oldValue}`);
31
+ this.classCollection.delete(`${this.baseClass}--${oldValue}`);
33
32
  }
34
33
  validateVariantStyle(newValue, oldValue) {
35
34
  if (newValue && !variantStyles.includes(newValue))
@@ -37,16 +36,15 @@ export class MgCard {
37
36
  else if (Boolean(newValue) && !variants.includes(this.variant))
38
37
  throw new Error(`<${this.name}> prop "variantStyle" must be paired with ${JSON.stringify(variants)} "variant" prop.`);
39
38
  if (Boolean(newValue))
40
- this.classList.add(`${this.baseClass}--${newValue}`);
39
+ this.classCollection.add(`${this.baseClass}--${newValue}`);
41
40
  if (Boolean(oldValue))
42
- this.classList.delete(`${this.baseClass}--${oldValue}`);
41
+ this.classCollection.delete(`${this.baseClass}--${oldValue}`);
43
42
  }
44
43
  /*************
45
44
  * Lifecycle *
46
45
  *************/
47
46
  /**
48
47
  * Check if props are well configured on init
49
- * @returns {void}
50
48
  */
51
49
  componentWillLoad() {
52
50
  this.validateVariant(this.variant);
@@ -54,11 +52,11 @@ export class MgCard {
54
52
  }
55
53
  /**
56
54
  * Render
57
- * @returns {HTMLElement} HTML Element
55
+ * @returns HTML Element
58
56
  */
59
57
  render() {
60
58
  var _a;
61
- return (h("div", { class: this.classList.join() }, ((_a = this.variantStyle) === null || _a === void 0 ? void 0 : _a.startsWith('bar-')) && h("span", { class: "mg-card__bar" }), h("slot", null)));
59
+ return (h("div", { class: this.classCollection.join() }, ((_a = this.variantStyle) === null || _a === void 0 ? void 0 : _a.startsWith('bar-')) && h("span", { class: "mg-card__bar" }), h("slot", null)));
62
60
  }
63
61
  static get is() { return "mg-card"; }
64
62
  static get encapsulation() { return "shadow"; }
@@ -91,7 +89,7 @@ export class MgCard {
91
89
  "optional": false,
92
90
  "docs": {
93
91
  "tags": [],
94
- "text": "Define variant prop\nDefault: undefined"
92
+ "text": "Define variant prop"
95
93
  },
96
94
  "attribute": "variant",
97
95
  "reflect": false
@@ -113,7 +111,7 @@ export class MgCard {
113
111
  "optional": false,
114
112
  "docs": {
115
113
  "tags": [],
116
- "text": "Define variantStyle prop\nDefault: undefined"
114
+ "text": "Define variantStyle prop"
117
115
  },
118
116
  "attribute": "variant-style",
119
117
  "reflect": false
@@ -122,7 +120,7 @@ export class MgCard {
122
120
  }
123
121
  static get states() {
124
122
  return {
125
- "classList": {}
123
+ "classCollection": {}
126
124
  };
127
125
  }
128
126
  static get watchers() {
@@ -16,7 +16,6 @@ export class MgCharacterLeft {
16
16
  *************/
17
17
  /**
18
18
  * Check if props are well configured on init
19
- * @returns {void}
20
19
  */
21
20
  componentWillLoad() {
22
21
  this.validateMaxlength(this.maxlength);
@@ -24,7 +23,7 @@ export class MgCharacterLeft {
24
23
  }
25
24
  /**
26
25
  * Render component
27
- * @returns {HTMLElement} HTML Element
26
+ * @returns HTML Element
28
27
  */
29
28
  render() {
30
29
  return (h("span", { id: this.identifier, "aria-live": "polite" }, h("span", { "aria-hidden": "true" }, this.maxlength - this.characters.length, "/", this.maxlength), h("span", { class: "sr-only" }, this.messages.nbCharLeft.replace('{counter}', this.maxlength - this.characters.length))));
@@ -5,7 +5,7 @@ export class MgDivider {
5
5
  }
6
6
  /**
7
7
  * Render
8
- * @returns {HTMLElement} HTML Element
8
+ * @returns HTML Element
9
9
  */
10
10
  render() {
11
11
  return (h("div", { class: {