@mgdis/mg-components 6.22.0 → 6.23.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 (158) hide show
  1. package/dist/cjs/{index-C2viYwrR.js → index-BEF-cqV9.js} +325 -1789
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/{mg-action-more_37.cjs.entry.js → mg-action-more_36.cjs.entry.js} +242 -172
  4. package/dist/cjs/mg-alert.cjs.entry.js +6 -2
  5. package/dist/cjs/mg-breadcrumb.cjs.entry.js +2 -2
  6. package/dist/cjs/mg-components.cjs.js +3 -3
  7. package/dist/cjs/mg-fieldset.cjs.entry.js +4 -3
  8. package/dist/cjs/mg-input-combobox.cjs.entry.js +4 -3
  9. package/dist/cjs/mg-input-file.cjs.entry.js +5 -4
  10. package/dist/cjs/mg-input-rich-text-editor.cjs.entry.js +7491 -6367
  11. package/dist/cjs/mg-input.conf-wgTh7iBb.js +84 -0
  12. package/dist/cjs/mg-loader.cjs.entry.js +2 -2
  13. package/dist/cjs/mg-progress.cjs.entry.js +2 -2
  14. package/dist/collection/assets/icons/index.js +1 -1
  15. package/dist/collection/collection-manifest.json +2 -2
  16. package/dist/collection/components/atoms/internals/mg-input-title/mg-input-title.js +5 -2
  17. package/dist/collection/components/atoms/mg-badge/mg-badge.js +12 -3
  18. package/dist/collection/components/atoms/mg-button/mg-button.js +9 -4
  19. package/dist/collection/components/atoms/mg-card/mg-card.js +16 -7
  20. package/dist/collection/components/atoms/mg-icon/mg-icon.js +16 -9
  21. package/dist/collection/components/atoms/mg-tag/mg-tag.js +2 -1
  22. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +9 -3
  23. package/dist/collection/components/molecules/inputs/mg-input/mg-input.js +15 -13
  24. package/dist/collection/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxPaginated.js +38 -0
  25. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.js +3 -2
  26. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +49 -26
  27. package/dist/collection/components/molecules/inputs/mg-input-combobox/mg-input-combobox.js +16 -8
  28. package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +6 -3
  29. package/dist/collection/components/molecules/inputs/mg-input-file/mg-input-file.js +7 -4
  30. package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +11 -5
  31. package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +7 -3
  32. package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +7 -3
  33. package/dist/collection/components/molecules/inputs/mg-input-rich-text-editor/mg-input-rich-text-editor.js +9 -4
  34. package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +61 -19
  35. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +15 -8
  36. package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +7 -3
  37. package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +9 -4
  38. package/dist/collection/components/molecules/internals/mg-item-more/mg-item-more.js +5 -3
  39. package/dist/collection/components/molecules/menus/mg-menu/mg-menu.js +5 -3
  40. package/dist/collection/components/molecules/menus/mg-menu-item/mg-menu-item.js +8 -4
  41. package/dist/collection/components/molecules/mg-action-more/mg-action-more.js +11 -7
  42. package/dist/collection/components/molecules/mg-alert/mg-alert.js +29 -3
  43. package/dist/collection/components/molecules/mg-breadcrumb/mg-breadcrumb.js +3 -2
  44. package/dist/collection/components/molecules/mg-details/mg-details.js +3 -1
  45. package/dist/collection/components/molecules/mg-fieldset/mg-fieldset.js +5 -2
  46. package/dist/collection/components/molecules/mg-form/mg-form.js +8 -4
  47. package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js +5 -3
  48. package/dist/collection/components/molecules/mg-loader/mg-loader.js +1 -1
  49. package/dist/collection/components/molecules/mg-message/mg-message.js +43 -4
  50. package/dist/collection/components/molecules/mg-modal/mg-modal.js +4 -3
  51. package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +2 -1
  52. package/dist/collection/components/molecules/mg-panel/mg-panel.js +20 -6
  53. package/dist/collection/components/molecules/mg-popover/mg-popover-content/mg-popover-content.js +1 -1
  54. package/dist/collection/components/molecules/mg-popover/mg-popover.js +3 -2
  55. package/dist/collection/components/molecules/mg-progress/mg-progress.js +3 -2
  56. package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.js +3 -2
  57. package/dist/collection/components/molecules/mg-table/mg-table.js +4 -2
  58. package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +3 -2
  59. package/dist/components/index2.js +1 -1
  60. package/dist/components/index3.js +1 -1
  61. package/dist/components/index4.js +1 -0
  62. package/dist/components/mg-action-more.js +1 -1
  63. package/dist/components/mg-alert.js +1 -1
  64. package/dist/components/mg-badge2.js +1 -1
  65. package/dist/components/mg-breadcrumb.js +1 -1
  66. package/dist/components/mg-button2.js +1 -1
  67. package/dist/components/mg-card2.js +1 -1
  68. package/dist/components/mg-character-left2.js +1 -1
  69. package/dist/components/mg-details.js +1 -1
  70. package/dist/components/mg-divider2.js +1 -1
  71. package/dist/components/mg-fieldset.js +1 -1
  72. package/dist/components/mg-form.js +1 -1
  73. package/dist/components/mg-icon2.js +1 -1
  74. package/dist/components/mg-illustrated-message.js +1 -1
  75. package/dist/components/mg-input-checkbox.js +1 -1
  76. package/dist/components/mg-input-combobox.js +1 -1
  77. package/dist/components/mg-input-date.js +1 -1
  78. package/dist/components/mg-input-file.js +1 -1
  79. package/dist/components/mg-input-numeric.js +1 -1
  80. package/dist/components/mg-input-password.js +1 -1
  81. package/dist/components/mg-input-radio.js +1 -1
  82. package/dist/components/mg-input-rich-text-editor.js +284 -284
  83. package/dist/components/mg-input-select2.js +1 -1
  84. package/dist/components/mg-input-text2.js +1 -1
  85. package/dist/components/mg-input-textarea.js +1 -1
  86. package/dist/components/mg-input-title2.js +1 -1
  87. package/dist/components/mg-input-toggle.js +1 -1
  88. package/dist/components/mg-input2.js +1 -1
  89. package/dist/components/mg-item-more2.js +1 -1
  90. package/dist/components/mg-loader2.js +1 -1
  91. package/dist/components/mg-menu-item2.js +1 -1
  92. package/dist/components/mg-message2.js +1 -1
  93. package/dist/components/mg-modal.js +1 -1
  94. package/dist/components/mg-pagination.js +1 -1
  95. package/dist/components/mg-panel.js +1 -1
  96. package/dist/components/mg-popover-content2.js +1 -1
  97. package/dist/components/mg-popover2.js +1 -1
  98. package/dist/components/mg-progress.js +1 -1
  99. package/dist/components/mg-skip-links.js +1 -1
  100. package/dist/components/mg-table.js +1 -1
  101. package/dist/components/mg-tabs2.js +1 -1
  102. package/dist/components/mg-tooltip2.js +1 -1
  103. package/dist/custom-elements.json +8828 -0
  104. package/dist/esm/{index-DFwaH2hS.js → index-DshvCiTL.js} +325 -1789
  105. package/dist/esm/loader.js +3 -3
  106. package/dist/esm/{mg-action-more_37.entry.js → mg-action-more_36.entry.js} +244 -173
  107. package/dist/esm/mg-alert.entry.js +6 -2
  108. package/dist/esm/mg-breadcrumb.entry.js +2 -2
  109. package/dist/esm/mg-components.js +4 -4
  110. package/dist/esm/mg-fieldset.entry.js +4 -3
  111. package/dist/esm/mg-input-combobox.entry.js +4 -3
  112. package/dist/esm/mg-input-file.entry.js +5 -4
  113. package/dist/esm/mg-input-rich-text-editor.entry.js +7491 -6367
  114. package/dist/esm/mg-input.conf-DOi9lJXy.js +73 -0
  115. package/dist/esm/mg-loader.entry.js +2 -2
  116. package/dist/esm/mg-progress.entry.js +2 -2
  117. package/dist/mg-components/mg-components.esm.js +1 -1
  118. package/dist/mg-components/{p-d5e69c95.entry.js → p-13feb37a.entry.js} +1 -1
  119. package/dist/mg-components/{p-c8c8cfc1.entry.js → p-236bb1d2.entry.js} +1 -1
  120. package/dist/mg-components/p-79265ad3.entry.js +1 -0
  121. package/dist/mg-components/{p-adec7fcc.entry.js → p-7c63e469.entry.js} +1 -1
  122. package/dist/mg-components/p-7fd3e519.entry.js +1 -0
  123. package/dist/mg-components/p-DOi9lJXy.js +1 -0
  124. package/dist/mg-components/p-DshvCiTL.js +2 -0
  125. package/dist/mg-components/p-a0e2c886.entry.js +1 -0
  126. package/dist/mg-components/p-cdb01923.entry.js +1 -0
  127. package/dist/mg-components/p-d0b6d8f5.entry.js +1 -0
  128. package/dist/mg-components/{p-c63f97f0.entry.js → p-d698fa67.entry.js} +283 -283
  129. package/dist/types/assets/icons/index.d.ts +2 -0
  130. package/dist/types/components/atoms/internals/mg-input-title/mg-input-title.d.ts +4 -0
  131. package/dist/types/components/atoms/mg-badge/mg-badge.d.ts +4 -0
  132. package/dist/types/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxList.d.ts +2 -2
  133. package/dist/types/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxPaginated.d.ts +8 -0
  134. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.d.ts +16 -8
  135. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.d.ts +15 -5
  136. package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.d.ts +12 -6
  137. package/dist/types/components/molecules/mg-alert/mg-alert.d.ts +4 -0
  138. package/dist/types/components/molecules/mg-message/mg-message.d.ts +6 -0
  139. package/dist/types/components.d.ts +547 -170
  140. package/dist/types/stencil-public-runtime.d.ts +53 -2
  141. package/ide/intellij/web-types.json +211 -3476
  142. package/ide/vscode/css-custom-data.json +1 -1
  143. package/ide/vscode/html-custom-data.json +58 -314
  144. package/package.json +30 -25
  145. package/dist/cjs/mg-input.conf-BNpeATnq.js +0 -35
  146. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.js +0 -245
  147. package/dist/components/mg-input-checkbox-paginated.d.ts +0 -11
  148. package/dist/components/mg-input-checkbox-paginated.js +0 -1
  149. package/dist/components/mg-input-checkbox-paginated2.js +0 -1
  150. package/dist/esm/mg-input.conf-C9rmNQIL.js +0 -25
  151. package/dist/mg-components/p-0482eb9f.entry.js +0 -1
  152. package/dist/mg-components/p-2ee92f38.entry.js +0 -1
  153. package/dist/mg-components/p-3b653226.entry.js +0 -1
  154. package/dist/mg-components/p-5745fbea.entry.js +0 -1
  155. package/dist/mg-components/p-C9rmNQIL.js +0 -1
  156. package/dist/mg-components/p-DFwaH2hS.js +0 -2
  157. package/dist/mg-components/p-cc793586.entry.js +0 -1
  158. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.d.ts +0 -77
@@ -141,7 +141,7 @@ export class MgActionMore {
141
141
  [`${this.classBase}__chevron--rotate`]: this.expanded === true,
142
142
  } }, h("mg-icon", { icon: "chevron-down" })));
143
143
  }
144
- return (h(Host, { key: 'bef7d0e0c5a991f321ca930d65fa458873fc7564', "data-mg-popover-guard": this.mgPopoverIdentifier }, h("span", { key: '4e47d1513749cc1ac15ef8febd2fb914e362bbee', class: this.classBase }, h("mg-popover", { key: 'ab6dfc93422f03b49a78d2896196aa6901841aef', identifier: this.mgPopoverIdentifier, display: this.expanded, "onDisplay-change": this.handleDisplayChange }, h("mg-button", { key: '921f17c4ede5f1783dc336429539b0b082902fdd', variant: this.button.variant, isIcon: this.button.isIcon, disabled: this.button.disabled, type: "button", label: buttonLabel, onClick: this.handleButton }, this.icon && h("mg-icon", Object.assign({ key: '19bf9e015cbd82d8dffc62269de735607ab4f2bb' }, this.icon)), !this.button.isIcon && buttonContent), h("div", { key: '56a43a5adebd31264742c0ef8905ccb0bd8fb581', slot: "content" }, h("mg-menu", { key: '70520957ac07a3190ef753ee435996af96dbc5b5', direction: directions.VERTICAL, label: this.messages.label }, this.items.map(item => {
144
+ return (h(Host, { key: '184355435ec346d682c2df4aa8b33bf5f54e77e7', "data-mg-popover-guard": this.mgPopoverIdentifier }, h("span", { key: '8176489e5dd7741311745d015b8ef7f2a4f63ea9', class: this.classBase }, h("mg-popover", { key: '3ee64b21556ee9e910939ad2fc9e3fbf8e4bd964', identifier: this.mgPopoverIdentifier, display: this.expanded, "onDisplay-change": this.handleDisplayChange }, h("mg-button", { key: 'cf8f7f4f736d6a8338a4f6eebce04b4e2be49825', variant: this.button.variant, isIcon: this.button.isIcon, disabled: this.button.disabled, type: "button", label: buttonLabel, onClick: this.handleButton }, this.icon && h("mg-icon", Object.assign({ key: 'ee8b4f13bac85ccdd5e9d72edbaa957054c304ec' }, this.icon)), !this.button.isIcon && buttonContent), h("div", { key: '1c78fb9a98d59fa5422c5105ecb13d2f2884c7d2', slot: "content" }, h("mg-menu", { key: '522d915d4a38529f7709640bb96eebb81ccc86af', direction: directions.VERTICAL, label: this.messages.label }, this.items.map(item => {
145
145
  var _a, _b;
146
146
  return isMgActionMoreDivider(item) ? (h("mg-divider", { class: "mg-c-action-more__divider", key: "divider", "full-width": true })) : (h("mg-menu-item", { key: item.label, status: item.status || Status.VISIBLE, target: item.target, href: item.href,
147
147
  // eslint-disable-next-line react/jsx-no-bind
@@ -172,12 +172,14 @@ export class MgActionMore {
172
172
  "MgActionMoreItemType": {
173
173
  "location": "import",
174
174
  "path": "./mg-action-more.conf",
175
- "id": "src/components/molecules/mg-action-more/mg-action-more.conf.ts::MgActionMoreItemType"
175
+ "id": "src/components/molecules/mg-action-more/mg-action-more.conf.ts::MgActionMoreItemType",
176
+ "referenceLocation": "MgActionMoreItemType"
176
177
  },
177
178
  "MgActionMoreDividerType": {
178
179
  "location": "import",
179
180
  "path": "./mg-action-more.conf",
180
- "id": "src/components/molecules/mg-action-more/mg-action-more.conf.ts::MgActionMoreDividerType"
181
+ "id": "src/components/molecules/mg-action-more/mg-action-more.conf.ts::MgActionMoreDividerType",
182
+ "referenceLocation": "MgActionMoreDividerType"
181
183
  }
182
184
  }
183
185
  },
@@ -195,12 +197,13 @@ export class MgActionMore {
195
197
  "mutable": true,
196
198
  "complexType": {
197
199
  "original": "MgActionMoreIconType",
198
- "resolved": "{ icon: \"filter\" | \"link\" | \"picture\" | \"table\" | \"circle\" | \"download\" | \"key\" | \"list\" | \"copy\" | \"history\" | \"location\" | \"pause\" | \"loader\" | \"address-card\" | \"address-card-outline\" | \"align-center\" | \"align-justify\" | \"align-left\" | \"align-right\" | \"api\" | \"archive\" | \"archive-outline\" | \"arrow-clock\" | \"arrow-down\" | \"arrow-down-a-z\" | \"arrow-down-right\" | \"arrow-left\" | \"arrow-right\" | \"arrow-rotate\" | \"arrow-rotate-backward\" | \"arrow-up\" | \"arrow-up-right\" | \"arrow-up-right-square\" | \"arrow-up-z-a\" | \"arrows-compare\" | \"arrows-right-down\" | \"arrows-right-left\" | \"arrows-rotate\" | \"arrows-rotate-backward\" | \"arrows-up-down\" | \"ban\" | \"bell\" | \"bell-outline\" | \"book\" | \"book-outline\" | \"briefcase\" | \"briefcase-outline\" | \"building\" | \"building-outline\" | \"calculator\" | \"calculator-outline\" | \"calendar\" | \"calendar-euro\" | \"calendar-euro-outline\" | \"calendar-outline\" | \"check\" | \"check-circle\" | \"check-circle-outline\" | \"chevron-down\" | \"chevron-down-circle\" | \"chevron-left\" | \"chevron-left-circle\" | \"chevron-right\" | \"chevron-right-circle\" | \"chevron-up\" | \"chevron-up-circle\" | \"clock\" | \"clock-outline\" | \"code-square-outline\" | \"cog\" | \"cog-outline\" | \"comment\" | \"comment-exclamation\" | \"comment-exclamation-outline\" | \"comment-outline\" | \"comment-question\" | \"comment-question-outline\" | \"comment-sms\" | \"comment-sms-outline\" | \"conversation\" | \"conversation-outline\" | \"copy-file\" | \"copy-file-outline\" | \"copy-outline\" | \"credit-card\" | \"cross\" | \"cross-circle\" | \"cross-circle-outline\" | \"dashboard\" | \"dashboard-outline\" | \"earth\" | \"earth-outline\" | \"ellipsis\" | \"ellipsis-vertical\" | \"euro\" | \"euro-circle\" | \"exclamation-circle\" | \"exclamation-circle-outline\" | \"exclamation-stamp\" | \"exclamation-triangle\" | \"exclamation-triangle-outline\" | \"eye\" | \"eye-outline\" | \"eye-slash\" | \"eye-slash-outline\" | \"fax\" | \"fax-outline\" | \"file\" | \"file-cog\" | \"file-cog-outline\" | \"file-download\" | \"file-download-outline\" | \"file-excel\" | \"file-excel-outline\" | \"file-outline\" | \"file-pdf\" | \"file-pdf-outline\" | \"file-text\" | \"file-text-outline\" | \"file-upload\" | \"file-upload-outline\" | \"file-word\" | \"file-word-outline\" | \"filter-outline\" | \"floppy-disk\" | \"floppy-disk-checked\" | \"floppy-disk-checked-outline\" | \"floppy-disk-outline\" | \"folder\" | \"folder-check\" | \"folder-check-outline\" | \"folder-lines\" | \"folder-lines-outline\" | \"folder-link\" | \"folder-link-outline\" | \"folder-outline\" | \"folder-star\" | \"folder-star-outline\" | \"folders\" | \"folders-outline\" | \"gavel\" | \"gavel-outline\" | \"graduation-cap\" | \"graduation-cap-outline\" | \"hand-euro\" | \"hand-euro-outline\" | \"hand-up\" | \"home\" | \"home-outline\" | \"info-circle\" | \"info-circle-outline\" | \"interrogation-circle\" | \"interrogation-circle-outline\" | \"laptop\" | \"layers\" | \"life-ring\" | \"lines-rectangle\" | \"lines-rectangle-outline\" | \"location-outline\" | \"lock\" | \"lock-outline\" | \"log-in\" | \"log-out\" | \"magnifying-glass\" | \"mail\" | \"mail-open\" | \"mail-open-outline\" | \"mail-outline\" | \"messages-square\" | \"messages-square-outline\" | \"mobile\" | \"mobile-outline\" | \"notes\" | \"notes-outline\" | \"paper-plane\" | \"paper-plane-outline\" | \"paper-plane-slash\" | \"paper-plane-slash-outline\" | \"paperclip\" | \"pause-outline\" | \"pen\" | \"pen-circle\" | \"pen-fancy\" | \"pen-fancy-files-outline\" | \"pen-fancy-outline\" | \"pen-outline\" | \"phone\" | \"phone-outline\" | \"picture-outline\" | \"play-circle\" | \"plus\" | \"plus-circle\" | \"plus-circle-outline\" | \"share\" | \"share-outline\" | \"shuffle\" | \"sidebar-arrow-left\" | \"sidebar-arrow-right\" | \"sitemap\" | \"sliders\" | \"sliders-outline\" | \"squares\" | \"star\" | \"star-outline\" | \"tag\" | \"tag-outline\" | \"tags\" | \"tags-outline\" | \"thumb-down\" | \"thumb-down-outline\" | \"thumb-up\" | \"thumb-up-outline\" | \"thumbtack\" | \"thumbtack-outline\" | \"trash\" | \"trash-outline\" | \"universal-access\" | \"universal-access-outline\" | \"unlink\" | \"unlock\" | \"unlock-outline\" | \"upload\" | \"user\" | \"user-circle\" | \"user-group\" | \"user-group-outline\" | \"user-lock\" | \"user-outline\" | \"user-pen-fancy-outline\" | \"user-plus\" | \"user-question-outline\" | \"user-shield\" | \"user-shield-outline\" | \"users\" | \"users-outline\" | \"wallet\" | \"wallet-outline\"; }",
200
+ "resolved": "{ icon: \"filter\" | \"address-card\" | \"address-card-outline\" | \"align-center\" | \"align-justify\" | \"align-left\" | \"align-right\" | \"api\" | \"archive\" | \"archive-outline\" | \"arrow-clock\" | \"arrow-down\" | \"arrow-down-a-z\" | \"arrow-down-right\" | \"arrow-left\" | \"arrow-right\" | \"arrow-rotate\" | \"arrow-rotate-backward\" | \"arrow-up\" | \"arrow-up-right\" | \"arrow-up-right-square\" | \"arrow-up-z-a\" | \"arrows-compare\" | \"arrows-right-down\" | \"arrows-right-left\" | \"arrows-rotate\" | \"arrows-rotate-backward\" | \"arrows-up-down\" | \"ban\" | \"bell\" | \"bell-outline\" | \"book\" | \"book-outline\" | \"briefcase\" | \"briefcase-outline\" | \"building\" | \"building-outline\" | \"calculator\" | \"calculator-outline\" | \"calendar\" | \"calendar-euro\" | \"calendar-euro-outline\" | \"calendar-outline\" | \"check\" | \"check-circle\" | \"check-circle-outline\" | \"chevron-down\" | \"chevron-down-circle\" | \"chevron-left\" | \"chevron-left-circle\" | \"chevron-right\" | \"chevron-right-circle\" | \"chevron-up\" | \"chevron-up-circle\" | \"circle\" | \"clock\" | \"clock-outline\" | \"code-square-outline\" | \"cog\" | \"cog-outline\" | \"comment\" | \"comment-exclamation\" | \"comment-exclamation-outline\" | \"comment-outline\" | \"comment-question\" | \"comment-question-outline\" | \"comment-sms\" | \"comment-sms-outline\" | \"conversation\" | \"conversation-outline\" | \"copy\" | \"copy-file\" | \"copy-file-outline\" | \"copy-outline\" | \"credit-card\" | \"cross\" | \"cross-circle\" | \"cross-circle-outline\" | \"dashboard\" | \"dashboard-outline\" | \"download\" | \"earth\" | \"earth-outline\" | \"ellipsis\" | \"ellipsis-vertical\" | \"euro\" | \"euro-circle\" | \"exclamation-circle\" | \"exclamation-circle-outline\" | \"exclamation-stamp\" | \"exclamation-triangle\" | \"exclamation-triangle-outline\" | \"eye\" | \"eye-outline\" | \"eye-slash\" | \"eye-slash-outline\" | \"fax\" | \"fax-outline\" | \"file\" | \"file-cog\" | \"file-cog-outline\" | \"file-download\" | \"file-download-outline\" | \"file-excel\" | \"file-excel-outline\" | \"file-outline\" | \"file-pdf\" | \"file-pdf-outline\" | \"file-text\" | \"file-text-outline\" | \"file-upload\" | \"file-upload-outline\" | \"file-word\" | \"file-word-outline\" | \"filter-outline\" | \"floppy-disk\" | \"floppy-disk-checked\" | \"floppy-disk-checked-outline\" | \"floppy-disk-outline\" | \"folder\" | \"folder-check\" | \"folder-check-outline\" | \"folder-lines\" | \"folder-lines-outline\" | \"folder-link\" | \"folder-link-outline\" | \"folder-outline\" | \"folder-star\" | \"folder-star-outline\" | \"folders\" | \"folders-outline\" | \"gavel\" | \"gavel-outline\" | \"glitters\" | \"glitters-outline\" | \"graduation-cap\" | \"graduation-cap-outline\" | \"hand-euro\" | \"hand-euro-outline\" | \"hand-up\" | \"history\" | \"home\" | \"home-outline\" | \"info-circle\" | \"info-circle-outline\" | \"interrogation-circle\" | \"interrogation-circle-outline\" | \"key\" | \"laptop\" | \"layers\" | \"life-ring\" | \"lines-rectangle\" | \"lines-rectangle-outline\" | \"link\" | \"list\" | \"loader\" | \"location\" | \"location-outline\" | \"lock\" | \"lock-outline\" | \"log-in\" | \"log-out\" | \"magnifying-glass\" | \"mail\" | \"mail-open\" | \"mail-open-outline\" | \"mail-outline\" | \"messages-square\" | \"messages-square-outline\" | \"mobile\" | \"mobile-outline\" | \"notes\" | \"notes-outline\" | \"paper-plane\" | \"paper-plane-outline\" | \"paper-plane-slash\" | \"paper-plane-slash-outline\" | \"paperclip\" | \"pause\" | \"pause-outline\" | \"pen\" | \"pen-circle\" | \"pen-fancy\" | \"pen-fancy-files-outline\" | \"pen-fancy-outline\" | \"pen-outline\" | \"phone\" | \"phone-outline\" | \"picture\" | \"picture-outline\" | \"play-circle\" | \"plus\" | \"plus-circle\" | \"plus-circle-outline\" | \"share\" | \"share-outline\" | \"shuffle\" | \"sidebar-arrow-left\" | \"sidebar-arrow-right\" | \"sitemap\" | \"sliders\" | \"sliders-outline\" | \"squares\" | \"star\" | \"star-outline\" | \"table\" | \"tag\" | \"tag-outline\" | \"tags\" | \"tags-outline\" | \"thumb-down\" | \"thumb-down-outline\" | \"thumb-up\" | \"thumb-up-outline\" | \"thumbtack\" | \"thumbtack-outline\" | \"trash\" | \"trash-outline\" | \"universal-access\" | \"universal-access-outline\" | \"unlink\" | \"unlock\" | \"unlock-outline\" | \"upload\" | \"user\" | \"user-circle\" | \"user-group\" | \"user-group-outline\" | \"user-lock\" | \"user-outline\" | \"user-pen-fancy-outline\" | \"user-plus\" | \"user-question-outline\" | \"user-shield\" | \"user-shield-outline\" | \"users\" | \"users-outline\" | \"wallet\" | \"wallet-outline\"; }",
199
201
  "references": {
200
202
  "MgActionMoreIconType": {
201
203
  "location": "import",
202
204
  "path": "./mg-action-more.conf",
203
- "id": "src/components/molecules/mg-action-more/mg-action-more.conf.ts::MgActionMoreIconType"
205
+ "id": "src/components/molecules/mg-action-more/mg-action-more.conf.ts::MgActionMoreIconType",
206
+ "referenceLocation": "MgActionMoreIconType"
204
207
  }
205
208
  }
206
209
  },
@@ -218,12 +221,13 @@ export class MgActionMore {
218
221
  "mutable": false,
219
222
  "complexType": {
220
223
  "original": "MgActionMoreButtonType",
221
- "resolved": "{ label?: string; disabled?: boolean; variant: \"flat\" | \"info\" | \"link\" | \"success\" | \"danger\" | \"danger-alt\" | \"primary\" | \"secondary\"; isIcon: boolean; }",
224
+ "resolved": "{ variant: \"flat\" | \"info\" | \"link\" | \"success\" | \"danger\" | \"danger-alt\" | \"primary\" | \"secondary\"; label?: string; disabled?: boolean; isIcon: boolean; }",
222
225
  "references": {
223
226
  "MgActionMoreButtonType": {
224
227
  "location": "import",
225
228
  "path": "./mg-action-more.conf",
226
- "id": "src/components/molecules/mg-action-more/mg-action-more.conf.ts::MgActionMoreButtonType"
229
+ "id": "src/components/molecules/mg-action-more/mg-action-more.conf.ts::MgActionMoreButtonType",
230
+ "referenceLocation": "MgActionMoreButtonType"
227
231
  }
228
232
  }
229
233
  },
@@ -26,6 +26,10 @@ export class MgAlert {
26
26
  * Define variant style
27
27
  */
28
28
  this.variantStyle = 'bar-left';
29
+ /**
30
+ * Define if alert fits its parent element
31
+ */
32
+ this.fullWidth = false;
29
33
  /**
30
34
  * Component classes
31
35
  */
@@ -142,7 +146,7 @@ export class MgAlert {
142
146
  * @returns HTML Element
143
147
  */
144
148
  render() {
145
- return (h("mg-message", { key: '6085a45d00c4762bae88d98e89f44c20d5f9b6c4', class: this.classCollection.join(), role: ['info', 'success'].includes(this.variant) ? 'status' : 'alert', variant: this.variant, variantStyle: this.variantStyle }, h("slot", { key: '55491d1b41609883958680c14a2ddb8dd84a3bd4' }), this.hasActions ? (h("span", { slot: "actions" }, h("slot", { name: "actions" }))) : (h("span", { class: "mg-c-alert__close-button" }, h("mg-button", { "is-icon": true, variant: "flat", label: this.messages.alert.closeButton, onClick: this.handleClose }, h("mg-icon", { icon: "cross" }))))));
149
+ return (h("mg-message", { key: '8d10696cd86b00304d8ae409e36691a41a16702e', class: this.classCollection.join(), role: ['info', 'success'].includes(this.variant) ? 'status' : 'alert', variant: this.variant, variantStyle: this.variantStyle, fullWidth: this.fullWidth }, h("slot", { key: '598a86d657b77006f5a9e9dbf33e7969669be125' }), this.hasActions ? (h("span", { slot: "actions" }, h("slot", { name: "actions" }))) : (h("span", { class: "mg-c-alert__close-button" }, h("mg-button", { "is-icon": true, variant: "flat", label: this.messages.alert.closeButton, onClick: this.handleClose }, h("mg-icon", { icon: "cross" }))))));
146
150
  }
147
151
  static get is() { return "mg-alert"; }
148
152
  static get encapsulation() { return "shadow"; }
@@ -187,7 +191,8 @@ export class MgAlert {
187
191
  "VariantType": {
188
192
  "location": "import",
189
193
  "path": "./mg-alert.conf",
190
- "id": "src/components/molecules/mg-alert/mg-alert.conf.ts::VariantType"
194
+ "id": "src/components/molecules/mg-alert/mg-alert.conf.ts::VariantType",
195
+ "referenceLocation": "VariantType"
191
196
  }
192
197
  }
193
198
  },
@@ -213,7 +218,8 @@ export class MgAlert {
213
218
  "VariantStyleType": {
214
219
  "location": "import",
215
220
  "path": "./mg-alert.conf",
216
- "id": "src/components/molecules/mg-alert/mg-alert.conf.ts::VariantStyleType"
221
+ "id": "src/components/molecules/mg-alert/mg-alert.conf.ts::VariantStyleType",
222
+ "referenceLocation": "VariantStyleType"
217
223
  }
218
224
  }
219
225
  },
@@ -228,6 +234,26 @@ export class MgAlert {
228
234
  "reflect": false,
229
235
  "attribute": "variant-style",
230
236
  "defaultValue": "'bar-left'"
237
+ },
238
+ "fullWidth": {
239
+ "type": "boolean",
240
+ "mutable": false,
241
+ "complexType": {
242
+ "original": "boolean",
243
+ "resolved": "boolean",
244
+ "references": {}
245
+ },
246
+ "required": false,
247
+ "optional": false,
248
+ "docs": {
249
+ "tags": [],
250
+ "text": "Define if alert fits its parent element"
251
+ },
252
+ "getter": false,
253
+ "setter": false,
254
+ "reflect": false,
255
+ "attribute": "full-width",
256
+ "defaultValue": "false"
231
257
  }
232
258
  };
233
259
  }
@@ -38,7 +38,7 @@ export class MgBreadcrumb {
38
38
  this.messages = initLocales(this.element).messages.breadcrumb;
39
39
  }
40
40
  render() {
41
- return (h("nav", { key: '5181512072a7de6e161adcbb9988ae3407f61301', "aria-label": this.messages.label, class: "mg-c-breadcrumb" }, h("ol", { key: '2a4cec366a72027091ebcbccd78d552884005b93', class: "mg-c-breadcrumb__list" }, this.items.map((item, index) => {
41
+ return (h("nav", { key: 'af5c541e6a268af67762eb9d384269511fe0be17', "aria-label": this.messages.label, class: "mg-c-breadcrumb" }, h("ol", { key: 'b5fdfe61eb2c826b3462bdd65cacfb73d4f00484', class: "mg-c-breadcrumb__list" }, this.items.map((item, index) => {
42
42
  var _a;
43
43
  return (h("li", { key: `${index}-${(_a = item.href) !== null && _a !== void 0 ? _a : item.label}`, class: "mg-c-breadcrumb__list-item" }, this.renderItem(item, index === this.items.length - 1)));
44
44
  }))));
@@ -67,7 +67,8 @@ export class MgBreadcrumb {
67
67
  "BreadcrumbItemType": {
68
68
  "location": "import",
69
69
  "path": "./mg-breadcrumb.conf",
70
- "id": "src/components/molecules/mg-breadcrumb/mg-breadcrumb.conf.ts::BreadcrumbItemType"
70
+ "id": "src/components/molecules/mg-breadcrumb/mg-breadcrumb.conf.ts::BreadcrumbItemType",
71
+ "referenceLocation": "BreadcrumbItemType"
71
72
  }
72
73
  }
73
74
  },
@@ -1,5 +1,6 @@
1
1
  import { h } from "@stencil/core";
2
2
  import { isValidString } from "@mgdis/core-ui-helpers/dist/utils";
3
+ import { normalizeBooleanAttributes } from "@mgdis/core-ui-helpers/dist/stencil";
3
4
  /**
4
5
  * @slot summary - Summary content
5
6
  * @slot details - Details content
@@ -36,6 +37,7 @@ export class MgDetails {
36
37
  * Check if component props are well configured on init
37
38
  */
38
39
  componentWillLoad() {
40
+ normalizeBooleanAttributes(this);
39
41
  this.validateTitles(this.toggleClosed);
40
42
  this.validateTitles(this.toggleOpened);
41
43
  // Check if summary slot is empty
@@ -53,7 +55,7 @@ export class MgDetails {
53
55
  * @returns HTML Element
54
56
  */
55
57
  render() {
56
- return (h("details", { key: '4da17afd7a964a14b5b101bcfadc241be569d55a', class: { 'mg-c-details': true, 'mg-c-details--empty-summary': this.isEmptySummary }, onToggle: this.handleToggle, open: this.expanded, ref: (el) => (this.details = el) }, h("summary", { key: '515d6c4e117b547fe80a310fb90e114900f645e8' }, h("slot", { key: '0c9c0dcc47dd418e34e541d878bfc03ca137c68d', name: "summary" }), h("span", { key: 'c94f52994843b10c1161c0d85f38f8cb917ea806', class: "mg-c-details__toggle" }, h("mg-icon", { key: '9421452572af3deb03146a8dfd189369b249ba2d', icon: "chevron-up", class: { 'mg-c-details__toggle-icon': true, 'mg-c-details__toggle-icon--reverse': !this.expanded } }), h("span", { key: 'dbfb0b34da00e37f55ec07236611c2babdd6b7c5', class: { 'mg-u-visually-hidden': this.hideSummary } }, this.expanded ? this.toggleOpened : this.toggleClosed))), h("div", { key: '1b18b65a98e39a8663fa5d7e51eef5fbe2b92f76', class: "mg-c-details__details" }, h("slot", { key: '81c213594b1b67747db439624090784eaa5e6fcd', name: "details" }))));
58
+ return (h("details", { key: 'b4a342010e903cfd2a670e46257e889fd74ddf1e', class: { 'mg-c-details': true, 'mg-c-details--empty-summary': this.isEmptySummary }, onToggle: this.handleToggle, open: this.expanded, ref: (el) => (this.details = el) }, h("summary", { key: '85fbd6f675e20881a8eb8df776d827e25859e0b7' }, h("slot", { key: '56491b2e4fa9f4772efd5ec66825e897b90cfde3', name: "summary" }), h("span", { key: '43f913504670d8f592479d5929e6901e9f9e9a9a', class: "mg-c-details__toggle" }, h("mg-icon", { key: '268cfc8d4b9e55d87303e6a85dead205ecdd7ce1', icon: "chevron-up", class: { 'mg-c-details__toggle-icon': true, 'mg-c-details__toggle-icon--reverse': !this.expanded } }), h("span", { key: 'e3d7c794f7a8d83a31c02302a06bbe0db1e8b63d', class: { 'mg-u-visually-hidden': this.hideSummary } }, this.expanded ? this.toggleOpened : this.toggleClosed))), h("div", { key: 'e5230b49934c2b3e9a0c31821e53ea52084b2b26', class: "mg-c-details__details" }, h("slot", { key: '0355f1596c85ab869b3658276ee156a7aadc50d1', name: "details" }))));
57
59
  }
58
60
  static get is() { return "mg-details"; }
59
61
  static get encapsulation() { return "shadow"; }
@@ -1,5 +1,6 @@
1
1
  import { h } from "@stencil/core";
2
2
  import { ClassList, isValidString } from "@mgdis/core-ui-helpers/dist/utils";
3
+ import { normalizeBooleanAttributes } from "@mgdis/core-ui-helpers/dist/stencil";
3
4
  import { classReadonly, isMgInputFile } from "../inputs/mg-input/mg-input.conf";
4
5
  export class MgFieldset {
5
6
  constructor() {
@@ -112,6 +113,7 @@ export class MgFieldset {
112
113
  * Check if component props are well configured on init
113
114
  */
114
115
  componentWillLoad() {
116
+ normalizeBooleanAttributes(this);
115
117
  this.watchReadonly(this.readonly);
116
118
  this.watchLegendBorderDisplay(this.legendBorderDisplay);
117
119
  this.setMgInputs();
@@ -133,7 +135,7 @@ export class MgFieldset {
133
135
  * @returns HTML Element
134
136
  */
135
137
  render() {
136
- return (h("mg-input", { key: 'b0b16a170de87de91fa02a38371eb3dd6fe995d7', label: this.legend, identifier: this.identifier, class: this.classCollection.join(), labelOnTop: !this.legendHide, labelHeading: this.legendHeading, labelBorderDisplay: this.legendHeading && this.legendBorderDisplay, labelHide: this.legendHide, inputsOnBottom: this.legendHeading !== undefined, tooltip: this.tooltip, tooltipPosition: 'label', helpText: this.helpText, errorMessage: !this.valid && isValidString(this.errorMessage) ? this.errorMessage : undefined }, h("span", { key: 'c449a5235da7b190d8d311469d15cebcfaf3badc', class: "mg-c-input__input-group" }, h("slot", { key: '6d8c60e2555bfd65c8c146233dc840a2d73597d5' }))));
138
+ return (h("mg-input", { key: '547bdc6c4c35ae9949f185f110a24c5a6437cea7', label: this.legend, identifier: this.identifier, class: this.classCollection.join(), labelOnTop: !this.legendHide, labelHeading: this.legendHeading, labelBorderDisplay: this.legendHeading && this.legendBorderDisplay, labelHide: this.legendHide, inputsOnBottom: this.legendHeading !== undefined, tooltip: this.tooltip, tooltipPosition: 'label', helpText: this.helpText, errorMessage: !this.valid && isValidString(this.errorMessage) ? this.errorMessage : undefined }, h("span", { key: '4fe4ec0d810cf46192e61b5052caf3694c3444be', class: "mg-c-input__input-group" }, h("slot", { key: '030481c1c7536b9d5e20975f77a86d3dda853582' }))));
137
139
  }
138
140
  static get is() { return "mg-fieldset"; }
139
141
  static get encapsulation() { return "shadow"; }
@@ -227,7 +229,8 @@ export class MgFieldset {
227
229
  "labelHeading": {
228
230
  "location": "import",
229
231
  "path": "../inputs/mg-input/mg-input.conf",
230
- "id": "src/components/molecules/inputs/mg-input/mg-input.conf.ts::labelHeading"
232
+ "id": "src/components/molecules/inputs/mg-input/mg-input.conf.ts::labelHeading",
233
+ "referenceLocation": "labelHeading"
231
234
  }
232
235
  }
233
236
  },
@@ -1,5 +1,6 @@
1
1
  import { h } from "@stencil/core";
2
- import { createID, ClassList, toString, isValideID } from "@mgdis/core-ui-helpers/dist/utils";
2
+ import { ClassList, createID, isValideID, toString } from "@mgdis/core-ui-helpers/dist/utils";
3
+ import { normalizeBooleanAttributes } from "@mgdis/core-ui-helpers/dist/stencil";
3
4
  import { initLocales } from "../../../locales";
4
5
  import { isMgInputFile } from "../inputs/mg-input/mg-input.conf";
5
6
  import { requiredMessageStatus, roles } from "./mg-form.conf";
@@ -196,6 +197,7 @@ export class MgForm {
196
197
  componentWillLoad() {
197
198
  // Get locales
198
199
  this.messages = initLocales(this.element).messages;
200
+ normalizeBooleanAttributes(this);
199
201
  this.watchIdentifier(this.identifier);
200
202
  this.validateAriaRole(this.ariaRole);
201
203
  this.validateRequiredMessage(this.requiredMessage);
@@ -242,7 +244,7 @@ export class MgForm {
242
244
  * @returns HTML Element
243
245
  */
244
246
  render() {
245
- return (h("form", { key: 'b1a6b50f2bbb9b71cecd23d419771cf1b40e13b4', class: this.classCollection.join(), id: this.identifier, name: this.name, onSubmit: this.handleFormSubmit, role: this.ariaRole }, this.requiredMessageText && h("p", { key: '9c878f3730a06e1b683240057511b588edf5e887', innerHTML: this.requiredMessageText }), h("slot", { key: '3cf5ca0f07e2f3573615cf6566e230f4d5678b31' }), !this.readonly && !this.disabled && h("slot", { key: '6cbfd58e9600f7a9d9b55ec23bdd64877c03f0d7', name: "actions" })));
247
+ return (h("form", { key: 'bb340dafd9e9d987b4de94f718f81a63749b183c', class: this.classCollection.join(), id: this.identifier, name: this.name, onSubmit: this.handleFormSubmit, role: this.ariaRole }, this.requiredMessageText && h("p", { key: '5cdfc883ecd9a1e9759f952beac2c17f4d9a3237', innerHTML: this.requiredMessageText }), h("slot", { key: 'd5879767bc1d23a7c31b119b2fa2a29b9f8bc76f' }), !this.readonly && !this.disabled && h("slot", { key: 'c47af6bccd71ee51e1725c5592001d09add966b8', name: "actions" })));
246
248
  }
247
249
  static get is() { return "mg-form"; }
248
250
  static get encapsulation() { return "shadow"; }
@@ -328,7 +330,8 @@ export class MgForm {
328
330
  "RequiredMessageStatusType": {
329
331
  "location": "import",
330
332
  "path": "./mg-form.conf",
331
- "id": "src/components/molecules/mg-form/mg-form.conf.ts::RequiredMessageStatusType"
333
+ "id": "src/components/molecules/mg-form/mg-form.conf.ts::RequiredMessageStatusType",
334
+ "referenceLocation": "RequiredMessageStatusType"
332
335
  }
333
336
  }
334
337
  },
@@ -353,7 +356,8 @@ export class MgForm {
353
356
  "AriaRoleType": {
354
357
  "location": "import",
355
358
  "path": "./mg-form.conf",
356
- "id": "src/components/molecules/mg-form/mg-form.conf.ts::AriaRoleType"
359
+ "id": "src/components/molecules/mg-form/mg-form.conf.ts::AriaRoleType",
360
+ "referenceLocation": "AriaRoleType"
357
361
  }
358
362
  }
359
363
  },
@@ -81,7 +81,7 @@ export class MgIllustratedMessage {
81
81
  * @returns HTML Element
82
82
  */
83
83
  render() {
84
- return (h("div", { key: 'ed3b924f5c5a75706aef03ef8798cb699679012d', class: this.classCollection.join() }, h("div", { key: '59b7f7b3fe4ad808377094f93e8b6e86ba2f49ec', class: "mg-c-illustrated-message__illustration" }, h("slot", { key: 'd28aa873cd7025647f56f3a4ed62d9e35dde25d3', name: "illustration" })), h("div", { key: '3b150411a26531827c988a2d34e2990a2302f982', class: "mg-c-illustrated-message__slots" }, h("slot", { key: '8ffea6e50bf5dc4b870d414cb710fc88e0984f61', name: "title" }), h("slot", { key: 'ec85b4a50d28ddf14dbd6b0feff59e2030348b68', name: "details" }))));
84
+ return (h("div", { key: 'c9d8c8bfd2792b1cf5e78ab9d168d597b20e9a1e', class: this.classCollection.join() }, h("div", { key: 'cc8fa03147b9e59e6e8e015be9ed2b8dddd92ded', class: "mg-c-illustrated-message__illustration" }, h("slot", { key: '83a4ec2223c4e74511beb7c0abfa10e77cee425d', name: "illustration" })), h("div", { key: 'dbb4d13ca5324cab889fa2acc9b9b22522d7a8ec', class: "mg-c-illustrated-message__slots" }, h("slot", { key: '9e74d84becf29539ec9c37e8ad1e317714f3c86c', name: "title" }), h("slot", { key: 'ae97d25c19b76ca092560d2555ebd6a87f542ffe', name: "details" }))));
85
85
  }
86
86
  static get is() { return "mg-illustrated-message"; }
87
87
  static get encapsulation() { return "shadow"; }
@@ -107,7 +107,8 @@ export class MgIllustratedMessage {
107
107
  "IllustratedMessageSizeType": {
108
108
  "location": "import",
109
109
  "path": "./mg-illustrated-message.conf",
110
- "id": "src/components/molecules/mg-illustrated-message/mg-illustrated-message.conf.ts::IllustratedMessageSizeType"
110
+ "id": "src/components/molecules/mg-illustrated-message/mg-illustrated-message.conf.ts::IllustratedMessageSizeType",
111
+ "referenceLocation": "IllustratedMessageSizeType"
111
112
  }
112
113
  }
113
114
  },
@@ -133,7 +134,8 @@ export class MgIllustratedMessage {
133
134
  "IllustratedMessageDirectionType": {
134
135
  "location": "import",
135
136
  "path": "./mg-illustrated-message.conf",
136
- "id": "src/components/molecules/mg-illustrated-message/mg-illustrated-message.conf.ts::IllustratedMessageDirectionType"
137
+ "id": "src/components/molecules/mg-illustrated-message/mg-illustrated-message.conf.ts::IllustratedMessageDirectionType",
138
+ "referenceLocation": "IllustratedMessageDirectionType"
137
139
  }
138
140
  }
139
141
  },
@@ -29,7 +29,7 @@ export class MgLoader {
29
29
  * @returns HTML Element
30
30
  */
31
31
  render() {
32
- return (h("div", { key: 'da82988810c1e2916a2464299844cad674cd1f12', class: "mg-c-loader", "aria-live": "polite" }, h("mg-icon", { key: '45588ae8dd55ca582a4872d4c1e731bb00681c28', icon: "loader", spin: true }), h("span", { key: '3bc07f4bbf8995de61c019942c33c8076793096a', class: { 'mg-u-visually-hidden': this.messageHide } }, this.message || this.messages.loader.inProgress)));
32
+ return (h("div", { key: '739b4cbacd8a8da056dbb1445c40fac2cf26766a', class: "mg-c-loader", "aria-live": "polite" }, h("mg-icon", { key: '95d3cbf26fcd6dbf0dad4853bf55aa66385f1aba', icon: "loader", spin: true }), h("span", { key: 'f6322cd3054d8976bd2ec24f86a2d6bb60ca7ae1', class: { 'mg-u-visually-hidden': this.messageHide } }, this.message || this.messages.loader.inProgress)));
33
33
  }
34
34
  static get is() { return "mg-loader"; }
35
35
  static get encapsulation() { return "shadow"; }
@@ -11,6 +11,7 @@ export class MgMessage {
11
11
  * Internal *
12
12
  ************/
13
13
  this.classBase = 'mg-c-message';
14
+ this.classFullWidth = 'mg-c-message--full-width';
14
15
  /**
15
16
  * Define variant
16
17
  */
@@ -19,6 +20,10 @@ export class MgMessage {
19
20
  * Define variant style
20
21
  */
21
22
  this.variantStyle = 'bar-left';
23
+ /**
24
+ * Define if message fits its parent element
25
+ */
26
+ this.fullWidth = false;
22
27
  /**
23
28
  * Component classes
24
29
  */
@@ -68,6 +73,14 @@ export class MgMessage {
68
73
  this.classCollection.delete(`${this.classBase}--${oldValue}`);
69
74
  }
70
75
  }
76
+ watchFullWidth(newValue) {
77
+ if (newValue) {
78
+ this.classCollection.add(this.classFullWidth);
79
+ }
80
+ else {
81
+ this.classCollection.delete(this.classFullWidth);
82
+ }
83
+ }
71
84
  /*************
72
85
  * Lifecycle *
73
86
  *************/
@@ -78,6 +91,7 @@ export class MgMessage {
78
91
  // Validate
79
92
  this.watchVariant(this.variant);
80
93
  this.watchVariantStyle(this.variantStyle);
94
+ this.watchFullWidth(this.fullWidth);
81
95
  // Check if component has actions slot
82
96
  this.hasActions = this.element.querySelector('[slot="actions"]') !== null;
83
97
  }
@@ -86,9 +100,9 @@ export class MgMessage {
86
100
  * @returns HTML Element
87
101
  */
88
102
  render() {
89
- return (h("div", { key: '516691c613b30edf92d43fb9596169459dd8058a', class: this.classCollection.join() }, h("mg-card", { key: '2be929dd6ed5458927b155d2f4c94fa15f9717e9', shadow: true }, this.variantStyle === 'bar-left' && h("span", { key: '604d5a7bd37abc571b40f8be09ac5dadbde69ec1', class: "mg-c-message__bar" }), h("span", { key: '837cce7c506997955de6efb4cffc53e5107fb602', class: "mg-c-message__icon" }, h("mg-icon", { key: '3fd70f747cad5605f129bec491aa1bfd5ea42a95', icon: this.getIcon() })), h("div", { key: 'bf0b166fee2c94014fc35980b06a45dfc91b8596', class: "mg-c-message__content" }, h("span", { key: '305f79545b87055a954831c7355e7685340d1aa6', class: "mg-c-message__content-slot" }, h("slot", { key: 'd25113f6305d8ceaa39d12672fecc4e4bf6ffb49' })), this.hasActions && [
103
+ return (h("div", { key: '7a91fbc1a334d006013cdc8dd8ce6bce52947b90', class: this.classCollection.join() }, h("mg-card", { key: '34117431721f271fa96ac729376c1af6178dcedf', shadow: true }, this.variantStyle === 'bar-left' && h("span", { key: 'b68b15e7bb5c48b53f3aafea30c50a1db42db87c', class: "mg-c-message__bar" }), h("span", { key: 'efb2fd983a68f252312c3266879cd37666c17707', class: "mg-c-message__icon" }, h("mg-icon", { key: 'de7df68e25a5c581407b2a88dd7c268c4e6977cd', icon: this.getIcon() })), h("div", { key: '10afb1b7e6b8bea33ed18cf17dfbdaf6b35b3b89', class: "mg-c-message__content" }, h("span", { key: '5f7c5d7429a143f44c992fe79f0c42649fb695a7', class: "mg-c-message__content-slot" }, h("slot", { key: 'c20cbe2a91eb487bdebd5c049c33b7d50148a7b0' })), this.hasActions && [
90
104
  h("span", { class: "mg-c-message__content-separator", key: "content-separator" }),
91
- h("span", { class: "mg-c-message__content-actions-slot", key: "content-actions-slot" }, h("slot", { key: '744098ecfdcc8bb5f5e0b913884126498c21d3f0', name: "actions" })),
105
+ h("span", { class: "mg-c-message__content-actions-slot", key: "content-actions-slot" }, h("slot", { key: 'cdf59d5cb43793c7d8be40cf9d8d43b7d03d0a02', name: "actions" })),
92
106
  ]))));
93
107
  }
94
108
  static get is() { return "mg-message"; }
@@ -115,7 +129,8 @@ export class MgMessage {
115
129
  "VariantType": {
116
130
  "location": "import",
117
131
  "path": "./mg-message.conf",
118
- "id": "src/components/molecules/mg-message/mg-message.conf.ts::VariantType"
132
+ "id": "src/components/molecules/mg-message/mg-message.conf.ts::VariantType",
133
+ "referenceLocation": "VariantType"
119
134
  }
120
135
  }
121
136
  },
@@ -141,7 +156,8 @@ export class MgMessage {
141
156
  "VariantStyleType": {
142
157
  "location": "import",
143
158
  "path": "./mg-message.conf",
144
- "id": "src/components/molecules/mg-message/mg-message.conf.ts::VariantStyleType"
159
+ "id": "src/components/molecules/mg-message/mg-message.conf.ts::VariantStyleType",
160
+ "referenceLocation": "VariantStyleType"
145
161
  }
146
162
  }
147
163
  },
@@ -156,6 +172,26 @@ export class MgMessage {
156
172
  "reflect": false,
157
173
  "attribute": "variant-style",
158
174
  "defaultValue": "'bar-left'"
175
+ },
176
+ "fullWidth": {
177
+ "type": "boolean",
178
+ "mutable": false,
179
+ "complexType": {
180
+ "original": "boolean",
181
+ "resolved": "boolean",
182
+ "references": {}
183
+ },
184
+ "required": false,
185
+ "optional": false,
186
+ "docs": {
187
+ "tags": [],
188
+ "text": "Define if message fits its parent element"
189
+ },
190
+ "getter": false,
191
+ "setter": false,
192
+ "reflect": false,
193
+ "attribute": "full-width",
194
+ "defaultValue": "false"
159
195
  }
160
196
  };
161
197
  }
@@ -173,6 +209,9 @@ export class MgMessage {
173
209
  }, {
174
210
  "propName": "variantStyle",
175
211
  "methodName": "watchVariantStyle"
212
+ }, {
213
+ "propName": "fullWidth",
214
+ "methodName": "watchFullWidth"
176
215
  }];
177
216
  }
178
217
  }
@@ -106,11 +106,11 @@ export class MgModal {
106
106
  * @returns HTML Element
107
107
  */
108
108
  render() {
109
- return (h("dialog", { key: 'fe7c7abaf53fbc5c87d2855cc72de2212dfe8642', role: this.dialogRole, id: this.identifier, class: this.classCollection.join(), "aria-labelledby": this.titleId, ref: (el) => {
109
+ return (h("dialog", { key: '2d99322fd3c80b8cbfea70589cf579e0c1c6f06b', role: this.dialogRole, id: this.identifier, class: this.classCollection.join(), "aria-labelledby": this.titleId, ref: (el) => {
110
110
  if (el !== null) {
111
111
  this.dialog = el;
112
112
  }
113
- } }, h("mg-card", { key: '4b361ad45cd0b20253cf82e8f68c574429dd451c', shadow: true }, h("div", { key: '90f5490fb82f2900403f0a7549b338e884eea171', class: "mg-c-modal__dialog" }, h("header", { key: 'a58be90f41ad4448c387b1d18372aa31522d8d35', class: "mg-c-modal__header" }, this.closeButton && (h("span", { key: 'd9a0f9c1944b89b4a64f35fc9c1b70bea60f5423', class: "mg-c-modal__close-button" }, h("mg-button", { key: 'd7ecae6a2c2b2b094fea6b4a6d3c761f0f975b29', "is-icon": true, variant: "flat", label: this.messages.modal.closeButton, onClick: this.handleClose }, h("mg-icon", { key: '54b91decfd0deb5e452e03c23f68bac58d97677a', icon: "cross" })))), h("h1", { key: '7dc2519bdf97ebc5cc18505fbbd347c7b1a4c336', class: "mg-c-modal__title", id: this.titleId }, this.modalTitle)), h("article", { key: 'b6a27c0bb6e5a350e10addbd0325b04626b07239', class: "mg-c-modal__content" }, h("slot", { key: '41acebdafae6289d2f03fc3226eb7f3c4334e33f' })), this.hasActions && (h("footer", { key: '04a934a044bfbfa64f65642361e1962d2f599bf9', class: "mg-c-modal__footer" }, h("slot", { key: '8d72488a4095c245b638d7d0e5fdbda77fa5ab01', name: "actions" })))))));
113
+ } }, h("mg-card", { key: '32692a6d41ef30b3d3e61ddcfea47350d374ed09', shadow: true }, h("div", { key: 'c87bb43bb069671b65a9759ee293e77975707597', class: "mg-c-modal__dialog" }, h("header", { key: '1272a946878efcf8c69f3b09852ba6938cbe31b0', class: "mg-c-modal__header" }, this.closeButton && (h("span", { key: '0704656c7c5ac4c8d405f2cd673e91f72763ee8f', class: "mg-c-modal__close-button" }, h("mg-button", { key: '4402971c763ee34145de5bd69d367fde68f9d1a2', "is-icon": true, variant: "flat", label: this.messages.modal.closeButton, onClick: this.handleClose }, h("mg-icon", { key: '9e16add6a3e387971507a252671c895b6c94a586', icon: "cross" })))), h("h1", { key: '3e4fc2b4419398528565d382b728b8b752758ddd', class: "mg-c-modal__title", id: this.titleId }, this.modalTitle)), h("article", { key: '170ff6bd9592687baa4c561615f540ad1c7400e4', class: "mg-c-modal__content" }, h("slot", { key: 'cb710e2a57e4c997deac367169b56047af1200b1' })), this.hasActions && (h("footer", { key: '1e08d67caeaaaf75eb97faa11528719ea537c24c', class: "mg-c-modal__footer" }, h("slot", { key: '461ec8e4117477aef08dc6d346ad0bf6007ec12d', name: "actions" })))))));
114
114
  }
115
115
  static get is() { return "mg-modal"; }
116
116
  static get encapsulation() { return "shadow"; }
@@ -156,7 +156,8 @@ export class MgModal {
156
156
  "DialogRoleType": {
157
157
  "location": "import",
158
158
  "path": "./mg-modal.conf",
159
- "id": "src/components/molecules/mg-modal/mg-modal.conf.ts::DialogRoleType"
159
+ "id": "src/components/molecules/mg-modal/mg-modal.conf.ts::DialogRoleType",
160
+ "referenceLocation": "DialogRoleType"
160
161
  }
161
162
  }
162
163
  },
@@ -279,7 +279,8 @@ export class MgPagination {
279
279
  "PaginationMessagesType": {
280
280
  "location": "import",
281
281
  "path": "./mg-pagination.conf",
282
- "id": "src/components/molecules/mg-pagination/mg-pagination.conf.ts::PaginationMessagesType"
282
+ "id": "src/components/molecules/mg-pagination/mg-pagination.conf.ts::PaginationMessagesType",
283
+ "referenceLocation": "PaginationMessagesType"
283
284
  }
284
285
  }
285
286
  },
@@ -1,5 +1,6 @@
1
1
  import { h } from "@stencil/core";
2
- import { createID, ClassList, isValidString, toString, isValideID } from "@mgdis/core-ui-helpers/dist/utils";
2
+ import { ClassList, createID, isValidString, isValideID, toString } from "@mgdis/core-ui-helpers/dist/utils";
3
+ import { normalizeBooleanAttributes } from "@mgdis/core-ui-helpers/dist/stencil";
3
4
  import { initLocales } from "../../../locales";
4
5
  import { expandToggleDisplays, titlePositions } from "./mg-panel.conf";
5
6
  /**
@@ -172,6 +173,11 @@ export class MgPanel {
172
173
  }
173
174
  }
174
175
  validateTitlePosition(newValue) {
176
+ if (String(newValue) === '') {
177
+ // Reactive frameworks (e.g. Vue) may pass "" instead of undefined when the prop is reset.
178
+ this.titlePosition = 'left';
179
+ return;
180
+ }
175
181
  if (!titlePositions.includes(newValue))
176
182
  throw new Error(`<mg-panel> prop "titlePosition" must be one of: ${titlePositions.join(', ')}. Passed value: ${toString(newValue)}.`);
177
183
  }
@@ -179,6 +185,11 @@ export class MgPanel {
179
185
  this.expandedChange.emit(newValue);
180
186
  }
181
187
  validateExpandToggleDisplay(newValue) {
188
+ if (String(newValue) === '') {
189
+ // Reactive frameworks (e.g. Vue) may pass "" instead of undefined when the prop is reset.
190
+ this.expandToggleDisplay = 'text';
191
+ return;
192
+ }
182
193
  if (!expandToggleDisplays.includes(newValue))
183
194
  throw new Error(`<mg-panel> prop "expandToggleDisplay" must be one of: ${expandToggleDisplays.join(', ')}. Passed value: ${toString(newValue)}.`);
184
195
  if (newValue === 'icon' && this.titleEditable)
@@ -196,6 +207,7 @@ export class MgPanel {
196
207
  componentWillLoad() {
197
208
  // Get locales
198
209
  this.messages = initLocales(this.element).messages;
210
+ normalizeBooleanAttributes(this);
199
211
  // Validate
200
212
  this.watchIdentifier(this.identifier);
201
213
  this.validateTitlePattern(this.titlePattern);
@@ -224,7 +236,7 @@ export class MgPanel {
224
236
  */
225
237
  render() {
226
238
  const headerId = `${this.identifier}-header`;
227
- return (h("section", { key: 'e92b270e15717a1b6ab7d938674ccd785fe3ee97', class: this.classCollection.join(), id: this.identifier }, h("mg-card", { key: '40647ea277463f5e915c2fb5aa982f22527545ea', shadow: this.shadow }, h("header", { key: '604611af47d683cf1f0d3ffc8b5873be390e3fb9', class: { 'mg-c-panel__header': true, 'mg-c-panel__header--reverse': this.titlePosition === 'right' }, id: headerId }, this.renderHeaderChildren()), h("article", { key: 'ff640071dd4813aa113f5928b2a0350f4528a22c', class: "mg-c-panel__content", id: `${this.identifier}-content`, "aria-labelledby": headerId, hidden: !this.expanded }, h("slot", { key: 'fe54d2ca332c573e8dfa782a3e72454501b47adf' })))));
239
+ return (h("section", { key: '62efd2c00306fef33b5aace98c7b226aac19663f', class: this.classCollection.join(), id: this.identifier }, h("mg-card", { key: '9958310f59b455d6a70d4948cb62daa0b27150ee', shadow: this.shadow }, h("header", { key: '593119bbcb5c1204928fe0ba640a04d3af97a13d', class: { 'mg-c-panel__header': true, 'mg-c-panel__header--reverse': this.titlePosition === 'right' }, id: headerId }, this.renderHeaderChildren()), h("article", { key: 'b71801233980b6a871be253061463a2148cf7f2c', class: "mg-c-panel__content", id: `${this.identifier}-content`, "aria-labelledby": headerId, hidden: !this.expanded }, h("slot", { key: 'efc3235a2a0600f55ac51eee7fd932f87ace2a47' })))));
228
240
  }
229
241
  static get is() { return "mg-panel"; }
230
242
  static get encapsulation() { return "shadow"; }
@@ -339,7 +351,7 @@ export class MgPanel {
339
351
  },
340
352
  "titlePosition": {
341
353
  "type": "string",
342
- "mutable": false,
354
+ "mutable": true,
343
355
  "complexType": {
344
356
  "original": "TitlePositionType",
345
357
  "resolved": "\"left\" | \"right\"",
@@ -347,7 +359,8 @@ export class MgPanel {
347
359
  "TitlePositionType": {
348
360
  "location": "import",
349
361
  "path": "./mg-panel.conf",
350
- "id": "src/components/molecules/mg-panel/mg-panel.conf.ts::TitlePositionType"
362
+ "id": "src/components/molecules/mg-panel/mg-panel.conf.ts::TitlePositionType",
363
+ "referenceLocation": "TitlePositionType"
351
364
  }
352
365
  }
353
366
  },
@@ -385,7 +398,7 @@ export class MgPanel {
385
398
  },
386
399
  "expandToggleDisplay": {
387
400
  "type": "string",
388
- "mutable": false,
401
+ "mutable": true,
389
402
  "complexType": {
390
403
  "original": "ExpandToggleDisplayType",
391
404
  "resolved": "\"icon\" | \"text\"",
@@ -393,7 +406,8 @@ export class MgPanel {
393
406
  "ExpandToggleDisplayType": {
394
407
  "location": "import",
395
408
  "path": "./mg-panel.conf",
396
- "id": "src/components/molecules/mg-panel/mg-panel.conf.ts::ExpandToggleDisplayType"
409
+ "id": "src/components/molecules/mg-panel/mg-panel.conf.ts::ExpandToggleDisplayType",
410
+ "referenceLocation": "ExpandToggleDisplayType"
397
411
  }
398
412
  }
399
413
  },
@@ -46,7 +46,7 @@ export class MgPopoverContent {
46
46
  * @returns HTML Element
47
47
  */
48
48
  render() {
49
- return (h(Host, { key: '56962c792e0015e1b52f8121914829b7da136283' }, h("mg-card", { key: '05b557704fd10e1be87e1931fe672f5c29d3afc4', class: this.classCollection.join(), shadow: true }, this.closeButton && (h("mg-button", { key: 'd2fc38c5be7ea92d0d0efc36133d6c683baa4e68', "is-icon": true, variant: "flat", label: this.messages.general.close, onClick: this.handleCloseButton }, h("mg-icon", { key: '5d2091d064f3908a291af3b90acaddc59e2b9268', icon: "cross" }))), h("div", { key: 'd599231cfe330cdbc73f4bf7553b2cc66baf4889', class: "mg-c-popover-content__title" }, h("slot", { key: 'fbb836bac9d9f5f2327ecba13ddc3b1cab974930', name: "title" })), h("slot", { key: 'bdb29d255f35931efa24be57c13c4303ba326778', name: "content" })), h("slot", { key: 'b09b667ea04096baaeac07fac9097a3a22335f2b', name: "arrow" })));
49
+ return (h(Host, { key: '054fc82954b39a488f7fe5cb391d89b5fa4a61fe' }, h("mg-card", { key: 'bb89bada37069b50295bd93d988667c3b85eada3', class: this.classCollection.join(), shadow: true }, this.closeButton && (h("mg-button", { key: 'a59d6610574b964be1e2ce34ccd8e31c1395b6ff', "is-icon": true, variant: "flat", label: this.messages.general.close, onClick: this.handleCloseButton }, h("mg-icon", { key: '5bcc9e4eb21396f4fc66a6f1e4d6c5cdf68ec1f4', icon: "cross" }))), h("div", { key: '57be2022f3b61220e1249faeaf2acee9960027fe', class: "mg-c-popover-content__title" }, h("slot", { key: 'c7870e86a9f105cf6b9d4520c77874bce9235d72', name: "title" })), h("slot", { key: '5af8462232625d9c7d694bab46351d5e646f62ca', name: "content" })), h("slot", { key: '599863410dd7d751e82c440cd6c4fb7f2c48d9f3', name: "arrow" })));
50
50
  }
51
51
  static get is() { return "mg-popover-content"; }
52
52
  static get encapsulation() { return "shadow"; }
@@ -242,7 +242,7 @@ export class MgPopover {
242
242
  * @returns HTML Element
243
243
  */
244
244
  render() {
245
- return (h(Host, { key: '530971c84be3edae39c5aed0013d0c5b9005a1c1' }, h("slot", { key: '6e717bc8c5aa3d58fc048c4232e706cc78ab66ec' }), h("slot", { key: 'e779db01e55a28ffaedde21e9944f5ef3c79fa29', name: "content" })));
245
+ return (h(Host, { key: '2c1506b8e2da100519aeeae75fc5c378a81c473c' }, h("slot", { key: 'f9aea885e8cbc168614c05761829f0a0740eba9e' }), h("slot", { key: 'fa6106a660a73b3761d4783f8d46d401c47b4eb6', name: "content" })));
246
246
  }
247
247
  static get is() { return "mg-popover"; }
248
248
  static get encapsulation() { return "shadow"; }
@@ -288,7 +288,8 @@ export class MgPopover {
288
288
  "Placement": {
289
289
  "location": "import",
290
290
  "path": "@popperjs/core",
291
- "id": "../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/index.d.ts::Placement"
291
+ "id": "../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/index.d.ts::Placement",
292
+ "referenceLocation": "Placement"
292
293
  }
293
294
  }
294
295
  },