@mgdis/mg-components 5.27.1 → 5.27.3

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 (154) hide show
  1. package/dist/cjs/index-7bb96ccc.js +1636 -0
  2. package/dist/cjs/index-7bb96ccc.js.map +1 -0
  3. package/dist/cjs/{index-4b43c17b.js → index-8e9b0d9b.js} +89 -49
  4. package/dist/cjs/index-8e9b0d9b.js.map +1 -0
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/mg-action-more_36.cjs.entry.js +164 -156
  7. package/dist/cjs/mg-action-more_36.cjs.entry.js.map +1 -1
  8. package/dist/cjs/mg-components.cjs.js +9 -9
  9. package/dist/cjs/mg-components.cjs.js.map +1 -1
  10. package/dist/cjs/mg-loader.cjs.entry.js +4 -4
  11. package/dist/collection/collection-manifest.json +2 -2
  12. package/dist/collection/components/atoms/mg-button/mg-button.js +1 -1
  13. package/dist/collection/components/atoms/mg-button/mg-button.js.map +1 -1
  14. package/dist/collection/components/atoms/mg-card/mg-card.js +1 -1
  15. package/dist/collection/components/atoms/mg-card/mg-card.js.map +1 -1
  16. package/dist/collection/components/atoms/mg-character-left/mg-character-left.js +1 -1
  17. package/dist/collection/components/atoms/mg-divider/mg-divider.js +1 -1
  18. package/dist/collection/components/atoms/mg-input-title/mg-input-title.js +1 -1
  19. package/dist/collection/components/atoms/mg-input-title/mg-input-title.js.map +1 -1
  20. package/dist/collection/components/atoms/mg-tag/mg-tag.js +1 -1
  21. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip-content/mg-tooltip-content.js +1 -1
  22. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +1 -1
  23. package/dist/collection/components/molecules/inputs/mg-input/mg-input.js +1 -1
  24. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.js +2 -2
  25. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.js.map +1 -1
  26. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +1 -1
  27. package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +1 -1
  28. package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +2 -2
  29. package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +2 -2
  30. package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +1 -1
  31. package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +2 -2
  32. package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js.map +1 -1
  33. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +3 -3
  34. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js.map +1 -1
  35. package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +2 -2
  36. package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js.map +1 -1
  37. package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +1 -1
  38. package/dist/collection/components/molecules/menu/mg-menu/mg-menu.js +21 -18
  39. package/dist/collection/components/molecules/menu/mg-menu/mg-menu.js.map +1 -1
  40. package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.js +2 -1
  41. package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.js.map +1 -1
  42. package/dist/collection/components/molecules/mg-action-more/mg-action-more.js +3 -3
  43. package/dist/collection/components/molecules/mg-action-more/mg-action-more.js.map +1 -1
  44. package/dist/collection/components/molecules/mg-details/mg-details.js +1 -1
  45. package/dist/collection/components/molecules/mg-form/mg-form.js +1 -1
  46. package/dist/collection/components/molecules/mg-form/mg-form.js.map +1 -1
  47. package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js +3 -3
  48. package/dist/collection/components/molecules/mg-item-more/mg-item-more.js +4 -4
  49. package/dist/collection/components/molecules/mg-item-more/mg-item-more.js.map +1 -1
  50. package/dist/collection/components/molecules/mg-loader/mg-loader.js +1 -1
  51. package/dist/collection/components/molecules/mg-message/mg-message.js +1 -1
  52. package/dist/collection/components/molecules/mg-message/mg-message.js.map +1 -1
  53. package/dist/collection/components/molecules/mg-modal/mg-modal.js +2 -2
  54. package/dist/collection/components/molecules/mg-modal/mg-modal.js.map +1 -1
  55. package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +3 -3
  56. package/dist/collection/components/molecules/mg-pagination/mg-pagination.js.map +1 -1
  57. package/dist/collection/components/molecules/mg-panel/mg-panel.js +1 -1
  58. package/dist/collection/components/molecules/mg-popover/mg-popover-content/mg-popover-content.js +1 -1
  59. package/dist/collection/components/molecules/mg-popover/mg-popover-content/mg-popover-content.js.map +1 -1
  60. package/dist/collection/components/molecules/mg-popover/mg-popover.js +6 -2
  61. package/dist/collection/components/molecules/mg-popover/mg-popover.js.map +1 -1
  62. package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.js +1 -1
  63. package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +1 -1
  64. package/dist/components/index.es.js +80 -40
  65. package/dist/components/index.es.js.map +1 -1
  66. package/dist/components/index2.js +2 -2
  67. package/dist/components/mg-action-more.js +5 -5
  68. package/dist/components/mg-action-more.js.map +1 -1
  69. package/dist/components/mg-badge2.js +3 -3
  70. package/dist/components/mg-button2.js +5 -5
  71. package/dist/components/mg-button2.js.map +1 -1
  72. package/dist/components/mg-card2.js +3 -3
  73. package/dist/components/mg-card2.js.map +1 -1
  74. package/dist/components/mg-character-left2.js +1 -1
  75. package/dist/components/mg-details.js +3 -3
  76. package/dist/components/mg-divider.js +1 -1
  77. package/dist/components/mg-form.js +4 -4
  78. package/dist/components/mg-form.js.map +1 -1
  79. package/dist/components/mg-icon2.js +2 -2
  80. package/dist/components/mg-illustrated-message.js +5 -5
  81. package/dist/components/mg-input-checkbox-paginated2.js +2 -2
  82. package/dist/components/mg-input-checkbox-paginated2.js.map +1 -1
  83. package/dist/components/mg-input-checkbox.js +5 -5
  84. package/dist/components/mg-input-date.js +9 -9
  85. package/dist/components/mg-input-numeric.js +7 -7
  86. package/dist/components/mg-input-password.js +5 -5
  87. package/dist/components/mg-input-radio.js +5 -5
  88. package/dist/components/mg-input-select2.js +8 -8
  89. package/dist/components/mg-input-select2.js.map +1 -1
  90. package/dist/components/mg-input-text2.js +9 -9
  91. package/dist/components/mg-input-text2.js.map +1 -1
  92. package/dist/components/mg-input-textarea.js +8 -8
  93. package/dist/components/mg-input-textarea.js.map +1 -1
  94. package/dist/components/mg-input-title2.js +3 -3
  95. package/dist/components/mg-input-title2.js.map +1 -1
  96. package/dist/components/mg-input-toggle.js +5 -5
  97. package/dist/components/mg-input2.js +4 -4
  98. package/dist/components/mg-item-more2.js +26 -23
  99. package/dist/components/mg-item-more2.js.map +1 -1
  100. package/dist/components/mg-loader.js +3 -3
  101. package/dist/components/mg-menu-item2.js +8 -7
  102. package/dist/components/mg-menu-item2.js.map +1 -1
  103. package/dist/components/mg-message.js +4 -4
  104. package/dist/components/mg-message.js.map +1 -1
  105. package/dist/components/mg-modal.js +8 -8
  106. package/dist/components/mg-modal.js.map +1 -1
  107. package/dist/components/mg-pagination2.js +5 -5
  108. package/dist/components/mg-pagination2.js.map +1 -1
  109. package/dist/components/mg-panel.js +5 -5
  110. package/dist/components/mg-popover-content2.js +4 -4
  111. package/dist/components/mg-popover-content2.js.map +1 -1
  112. package/dist/components/mg-popover2.js +9 -5
  113. package/dist/components/mg-popover2.js.map +1 -1
  114. package/dist/components/mg-skip-links.js +3 -3
  115. package/dist/components/mg-tabs.js +7 -7
  116. package/dist/components/mg-tag.js +4 -4
  117. package/dist/components/mg-tooltip-content2.js +1 -1
  118. package/dist/components/mg-tooltip2.js +7 -7
  119. package/dist/esm/{index-c4ed16b2.js → index-138ea119.js} +82 -42
  120. package/dist/esm/index-138ea119.js.map +1 -0
  121. package/dist/esm/index-c4faef56.js +1607 -0
  122. package/dist/esm/index-c4faef56.js.map +1 -0
  123. package/dist/esm/loader.js +2 -2
  124. package/dist/esm/mg-action-more_36.entry.js +164 -156
  125. package/dist/esm/mg-action-more_36.entry.js.map +1 -1
  126. package/dist/esm/mg-components.js +10 -10
  127. package/dist/esm/mg-components.js.map +1 -1
  128. package/dist/esm/mg-loader.entry.js +4 -4
  129. package/dist/mg-components/mg-components.esm.js +1 -1
  130. package/dist/mg-components/mg-components.esm.js.map +1 -1
  131. package/dist/mg-components/p-284c8327.entry.js +2 -0
  132. package/dist/mg-components/p-284c8327.entry.js.map +1 -0
  133. package/dist/mg-components/p-4c68f6ea.js +3 -0
  134. package/dist/mg-components/p-4c68f6ea.js.map +1 -0
  135. package/dist/mg-components/{p-d4084a15.entry.js → p-bac6ca1f.entry.js} +2 -2
  136. package/dist/mg-components/p-e9433a87.js +2 -0
  137. package/dist/mg-components/p-e9433a87.js.map +1 -0
  138. package/dist/types/components/molecules/menu/mg-menu/mg-menu.d.ts +1 -5
  139. package/ide/intellij/web-types.json +1 -1
  140. package/ide/vscode/html-custom-data.json +1 -1
  141. package/package.json +22 -22
  142. package/dist/cjs/index-4b43c17b.js.map +0 -1
  143. package/dist/cjs/index-83102ab3.js +0 -2538
  144. package/dist/cjs/index-83102ab3.js.map +0 -1
  145. package/dist/esm/index-c4ed16b2.js.map +0 -1
  146. package/dist/esm/index-d43d1c5d.js +0 -2509
  147. package/dist/esm/index-d43d1c5d.js.map +0 -1
  148. package/dist/mg-components/p-350454b9.js +0 -2
  149. package/dist/mg-components/p-350454b9.js.map +0 -1
  150. package/dist/mg-components/p-9cdd1bc9.entry.js +0 -2
  151. package/dist/mg-components/p-9cdd1bc9.entry.js.map +0 -1
  152. package/dist/mg-components/p-cf0b0988.js +0 -3
  153. package/dist/mg-components/p-cf0b0988.js.map +0 -1
  154. /package/dist/mg-components/{p-d4084a15.entry.js.map → p-bac6ca1f.entry.js.map} +0 -0
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-83102ab3.js');
6
- const index$1 = require('./index-4b43c17b.js');
5
+ const index = require('./index-7bb96ccc.js');
6
+ const index$1 = require('./index-8e9b0d9b.js');
7
7
 
8
8
  /**
9
9
  * Available menu-item positions
@@ -79,7 +79,7 @@ const MgActionMore = class {
79
79
  ************/
80
80
  this.name = 'mg-action-more';
81
81
  this.classBase = 'mg-c-action-more';
82
- this.mgPopoverIdentifier = index$1.Re(this.name);
82
+ this.mgPopoverIdentifier = index$1.Ne(this.name);
83
83
  /************
84
84
  * Methods *
85
85
  ***********/
@@ -161,12 +161,12 @@ const MgActionMore = class {
161
161
  const buttonLabel = this.button.label || this.messages.label;
162
162
  const buttonContent = [buttonLabel];
163
163
  if (!this.button.isIcon && this.displayChevron) {
164
- buttonContent.push(index.h("span", { key: '9d7980e769806efa8da21b233aa8039fea6e1321', class: {
164
+ buttonContent.push(index.h("span", { class: {
165
165
  [`${this.classBase}__chevron`]: true,
166
166
  [`${this.classBase}__chevron--rotate`]: this.expanded === true,
167
- } }, index.h("mg-icon", { key: '40cd8ad011debcda6794b5a3f6ae6a42ea6c385d', icon: "chevron-down", size: "small" })));
167
+ } }, index.h("mg-icon", { icon: "chevron-down", size: "small" })));
168
168
  }
169
- return (index.h(index.Host, { key: '3a0959e16e76ab50c857e489ddb91a9ed9758fbd', "data-mg-popover-guard": this.mgPopoverIdentifier }, index.h("span", { key: '1e37a919b19563aab4333a94f1676cb6b9d60289', class: "mg-action-more" }, index.h("mg-popover", { key: 'd539fd10e3cf38774c05180e906b35840b37f11a', identifier: this.mgPopoverIdentifier, display: this.expanded, "onDisplay-change": this.handleDisplayChange }, index.h("mg-button", { key: 'e2fb983a112fe074ca9e9fd8629181274aaddd17', variant: this.button.variant, isIcon: this.button.isIcon, disabled: this.button.disabled, type: "button", label: buttonLabel, onClick: this.handleButton }, this.icon && index.h("mg-icon", Object.assign({}, this.icon)), !this.button.isIcon && buttonContent), index.h("div", { key: 'e09d81146a0d5188a90d4e1204852608ea74d433', slot: "content" }, index.h("mg-menu", { key: '00949f8628192c04d537ed9c4c4261b33fb06c71', direction: Direction.VERTICAL, label: this.messages.label }, this.items.map(item => {
169
+ return (index.h(index.Host, { key: '3833ffe89499015c991ac366c5bb87283948962b', "data-mg-popover-guard": this.mgPopoverIdentifier }, index.h("span", { key: '3393bfd576f5bbef7570090a5813a4eecc944559', class: "mg-action-more" }, index.h("mg-popover", { key: '6c589e9efbbfef4adba6f2c59eb3f562c621daf1', identifier: this.mgPopoverIdentifier, display: this.expanded, "onDisplay-change": this.handleDisplayChange }, index.h("mg-button", { key: '485538eb6f660de92c372ebd395e18ff7ef66c96', variant: this.button.variant, isIcon: this.button.isIcon, disabled: this.button.disabled, type: "button", label: buttonLabel, onClick: this.handleButton }, this.icon && index.h("mg-icon", Object.assign({ key: 'd385d7c69f118b8f20d59547357dad7d8a56766d' }, this.icon)), !this.button.isIcon && buttonContent), index.h("div", { key: '553f7704a5fc0b1a89062ce234607296d8bf53f2', slot: "content" }, index.h("mg-menu", { key: '4a161502b2d1dec2b17cd7c44cd492ec745cb7dd', direction: Direction.VERTICAL, label: this.messages.label }, this.items.map(item => {
170
170
  var _a;
171
171
  return (
172
172
  // eslint-disable-next-line react/jsx-no-bind
@@ -203,7 +203,7 @@ const MgBadge = class {
203
203
  this.label = undefined;
204
204
  this.variant = variants$5[0];
205
205
  this.outline = undefined;
206
- this.classCollection = new index$1.Me(['mg-c-badge']);
206
+ this.classCollection = new index$1.Be(['mg-c-badge']);
207
207
  }
208
208
  validateValue(newValue) {
209
209
  if (/^(\d+\+*|[?*!a-z])$/i.exec(`${newValue}`) === null) {
@@ -211,7 +211,7 @@ const MgBadge = class {
211
211
  }
212
212
  }
213
213
  validateLabel(newValue) {
214
- if (!index$1.Be(newValue)) {
214
+ if (!index$1.Pe(newValue)) {
215
215
  throw new Error('<mg-badge> prop "label" is required.');
216
216
  }
217
217
  }
@@ -322,7 +322,7 @@ const MgButton = class {
322
322
  this.isIcon = false;
323
323
  this.disableOnClick = false;
324
324
  this.loading = false;
325
- this.classCollection = new index$1.Me(['mg-c-button']);
325
+ this.classCollection = new index$1.Be(['mg-c-button']);
326
326
  }
327
327
  validateVariant(newValue, oldValue) {
328
328
  if (!variants$4.includes(newValue)) {
@@ -381,7 +381,7 @@ const MgButton = class {
381
381
  this.validateFullWidth(this.fullWidth);
382
382
  if (this.isIcon) {
383
383
  this.classCollection.add(`mg-c-button--icon`);
384
- if (!index$1.Be(this.label)) {
384
+ if (!index$1.Pe(this.label)) {
385
385
  throw new Error(`<mg-button> prop "label" is mandatory when prop "isIcon" is set to true.`);
386
386
  }
387
387
  }
@@ -393,7 +393,7 @@ const MgButton = class {
393
393
  * Add listners
394
394
  */
395
395
  componentDidLoad() {
396
- index$1.Ue(() => {
396
+ index$1.ze(() => {
397
397
  var _a;
398
398
  const closestForm = this.element.closest('form') || ((_a = this.element.closest('mg-form')) === null || _a === void 0 ? void 0 : _a.shadowRoot.querySelector('form'));
399
399
  // submit buttons should trigger form submition;
@@ -410,7 +410,7 @@ const MgButton = class {
410
410
  */
411
411
  render() {
412
412
  var _a;
413
- return (index.h(index.Host, { key: '8aa45a51510eccbb021e452d540c77844f3f4792', role: "button", tabIndex: 0, type: this.type, form: this.form, "full-width": this.fullWidth, "aria-label": this.label, "aria-disabled": (_a = this.disabled) === null || _a === void 0 ? void 0 : _a.toString(), onClick: this.handleClick, onKeyup: this.handleKeyup, onKeydown: this.handleKeydown }, index.h("div", { key: '9743ead1b9fd1f70ef0690087806a1767c5825b0', class: this.classCollection.join(), id: this.identifier }, this.loading && index.h("mg-icon", { icon: "loader", spin: true }), index.h("div", { key: '7070995c17ecedb4223475cce662e115e8d72510', class: "mg-c-button__content" }, index.h("slot", { key: 'cb0ad8aa02d634f0a3dfa9b584ec8fb26da88271' })))));
413
+ return (index.h(index.Host, { key: '8aa45a51510eccbb021e452d540c77844f3f4792', role: "button", tabIndex: 0, type: this.type, form: this.form, "full-width": this.fullWidth, "aria-label": this.label, "aria-disabled": (_a = this.disabled) === null || _a === void 0 ? void 0 : _a.toString(), onClick: this.handleClick, onKeyup: this.handleKeyup, onKeydown: this.handleKeydown }, index.h("div", { key: '9743ead1b9fd1f70ef0690087806a1767c5825b0', class: this.classCollection.join(), id: this.identifier }, this.loading && index.h("mg-icon", { key: '543718fe45ad3e1901c4ef0c39b98705aa9fd64e', icon: "loader", spin: true }), index.h("div", { key: '21bc8c1a14f93db8b2373864a18da5c651e1ac4d', class: "mg-c-button__content" }, index.h("slot", { key: 'd16d710b4cb94ec1b7e3dfee2d4a70ee059528b4' })))));
414
414
  }
415
415
  get element() { return index.getElement(this); }
416
416
  static get watchers() { return {
@@ -452,7 +452,7 @@ const MgCard = class {
452
452
  };
453
453
  this.variant = undefined;
454
454
  this.variantStyle = undefined;
455
- this.classCollection = new index$1.Me([this.classBase]);
455
+ this.classCollection = new index$1.Be([this.classBase]);
456
456
  }
457
457
  validateVariant(newValue, oldValue) {
458
458
  if (newValue && !variants$3.includes(newValue))
@@ -490,7 +490,7 @@ const MgCard = class {
490
490
  */
491
491
  render() {
492
492
  var _a;
493
- return (index.h("div", { key: '9e604fe7b06f19797c6841b1902b56684a4bdc69', class: this.classCollection.join() }, ((_a = this.variantStyle) === null || _a === void 0 ? void 0 : _a.startsWith('bar-')) && index.h("span", { class: "mg-c-card__bar" }), index.h("slot", { key: '44d9092aaa6bbdf0b20a1fffe0edad15150cd8cb' })));
493
+ return (index.h("div", { key: 'b786a9ff3b706dcb24f6b3218feef97e284e2b9a', class: this.classCollection.join() }, ((_a = this.variantStyle) === null || _a === void 0 ? void 0 : _a.startsWith('bar-')) && index.h("span", { key: '11a3b421c49864667832919e6d2cbe9ea19f9344', class: "mg-c-card__bar" }), index.h("slot", { key: '7421932644500c619d34cbe003a0f0bb50b612a7' })));
494
494
  }
495
495
  static get watchers() { return {
496
496
  "variant": ["validateVariant"],
@@ -529,7 +529,7 @@ const MgCharacterLeft = class {
529
529
  * @returns HTML Element
530
530
  */
531
531
  render() {
532
- return (index.h("span", { key: 'fafe1f542f085f5f910a7b43cf6fa7e9fe9fd302', id: this.identifier, "aria-live": "polite" }, index.h("span", { key: '54b74d3a1161c583e47b0ad96845664e3ad9623d', "aria-hidden": "true" }, this.maxlength - this.characters.length, "/", this.maxlength), index.h("span", { key: '390ad6cd724c66230fb726a307391922ddfe7c2c', class: "mg-u-visually-hidden" }, this.messages.nbCharLeft.replace('{counter}', this.maxlength - this.characters.length))));
532
+ return (index.h("span", { key: 'd67db2514f27a2c0de9c187036f8f7e192761ce2', id: this.identifier, "aria-live": "polite" }, index.h("span", { key: 'e0622c110944075e1d659347965b20a9bfb5ebac', "aria-hidden": "true" }, this.maxlength - this.characters.length, "/", this.maxlength), index.h("span", { key: '82a7deaf6f6f2ad32a8d2cfe57787b2b7a20fd4b', class: "mg-u-visually-hidden" }, this.messages.nbCharLeft.replace('{counter}', this.maxlength - this.characters.length))));
533
533
  }
534
534
  get element() { return index.getElement(this); }
535
535
  static get watchers() { return {
@@ -557,7 +557,7 @@ const MgDetails = class {
557
557
  this.expanded = false;
558
558
  }
559
559
  validateTitles(newValue) {
560
- if (!index$1.Be(newValue)) {
560
+ if (!index$1.Pe(newValue)) {
561
561
  throw new Error('<mg-details> prop "toggleClosed" and "toggleOpened" must be defined.');
562
562
  }
563
563
  }
@@ -579,7 +579,7 @@ const MgDetails = class {
579
579
  * @returns HTML Element
580
580
  */
581
581
  render() {
582
- return (index.h("details", { key: '28d18aa44daec76231b80e2f8c48b475bb318d10', class: "mg-c-details", onToggle: this.handleToggle, open: this.expanded, ref: (el) => (this.details = el) }, index.h("summary", { key: 'a998fadad2ee592b632ab19c0fe69f142211156a' }, index.h("slot", { key: '7e5b636e9ed6f05904ed13c06cff14a5353de74b', name: "summary" }), index.h("span", { key: '770f0cfd6f70127a61f6ffab1c30e4d8d83c70bb', class: "mg-c-details__toggle" }, index.h("mg-icon", { key: '2f996b8793388b6606706459352a9b540e45f120', icon: "chevron-up", size: "small", class: { 'mg-c-details__toggle-icon': true, 'mg-c-details__toggle-icon--reverse': !this.expanded } }), index.h("span", { key: '1d0dc92242080d172d226bf013ae56ffe6e4a717', class: { 'mg-u-visually-hidden': this.hideSummary } }, this.expanded ? this.toggleOpened : this.toggleClosed))), index.h("div", { key: 'd6b973893a807d2ef94a7c3d131e3ca0c9a675e3', class: "mg-c-details__details" }, index.h("slot", { key: 'ae1928a7aad8d986f44cb36e02648680dea074a4', name: "details" }))));
582
+ return (index.h("details", { key: '9c629e03b5286afb8b9139aa4e182f10a1005c81', class: "mg-c-details", onToggle: this.handleToggle, open: this.expanded, ref: (el) => (this.details = el) }, index.h("summary", { key: 'a525137281cb20fe8b74db56fe0e6f4f59427e4d' }, index.h("slot", { key: '7fb96692cfa339e904894bbddffd2211ff7741b5', name: "summary" }), index.h("span", { key: 'b322eb9e02173a24bcff738d6f1333ce6ab68912', class: "mg-c-details__toggle" }, index.h("mg-icon", { key: 'fd952a2abf6b689360faa0ef5219eb400b1a6f61', icon: "chevron-up", size: "small", class: { 'mg-c-details__toggle-icon': true, 'mg-c-details__toggle-icon--reverse': !this.expanded } }), index.h("span", { key: '10b0a8a350f857296ae5600de5f68a9b528a3739', class: { 'mg-u-visually-hidden': this.hideSummary } }, this.expanded ? this.toggleOpened : this.toggleClosed))), index.h("div", { key: 'e54fe3d881a04ccbb3d394b0492f6ab906eac1f8', class: "mg-c-details__details" }, index.h("slot", { key: 'ae05e78c61d9fa8e1d90aa58ac7d6ce8862128ff', name: "details" }))));
583
583
  }
584
584
  static get watchers() { return {
585
585
  "toggleClosed": ["validateTitles"],
@@ -602,7 +602,7 @@ const MgDivider = class {
602
602
  * @returns HTML Element
603
603
  */
604
604
  render() {
605
- return (index.h("div", { key: '7250dfa7ca66ea0831292a25ea7e76c29ca36500', class: {
605
+ return (index.h("div", { key: '92413bf42dc057ea1dfd645b4d619a7f180e5aca', class: {
606
606
  'mg-c-divider': true,
607
607
  'mg-c-divider--full': this.size === 'full',
608
608
  } }));
@@ -715,7 +715,7 @@ const MgForm = class {
715
715
  }
716
716
  });
717
717
  };
718
- this.identifier = index$1.Re('mg-form');
718
+ this.identifier = index$1.Ne('mg-form');
719
719
  this.name = this.identifier;
720
720
  this.readonly = false;
721
721
  this.requiredMessage = undefined;
@@ -724,7 +724,7 @@ const MgForm = class {
724
724
  this.disabled = false;
725
725
  this.valid = undefined;
726
726
  this.invalid = undefined;
727
- this.classCollection = new index$1.Me(['mg-c-form']);
727
+ this.classCollection = new index$1.Be(['mg-c-form']);
728
728
  this.requiredMessageText = undefined;
729
729
  }
730
730
  validateRequiredMessage(newValue) {
@@ -806,7 +806,7 @@ const MgForm = class {
806
806
  * @returns HTML Element
807
807
  */
808
808
  render() {
809
- return (index.h("form", { key: 'cfcf6da7026b3e3703903090773ecf69e57034cc', class: this.classCollection.join(), id: this.identifier, name: this.name, onSubmit: this.handleFormSubmit, role: this.ariaRole }, this.requiredMessageText && index.h("p", { innerHTML: this.requiredMessageText }), index.h("slot", { key: '2f0c489e6ce31580cbb66f144749f5c3e2ad18eb' }), !this.readonly && !this.disabled && index.h("slot", { name: "actions" })));
809
+ return (index.h("form", { key: '498fe7564261b0aad99bab2686a6f0f4624785cc', class: this.classCollection.join(), id: this.identifier, name: this.name, onSubmit: this.handleFormSubmit, role: this.ariaRole }, this.requiredMessageText && index.h("p", { key: 'd0d0f1f6373eff660de65104afb3ba40835a58e3', innerHTML: this.requiredMessageText }), index.h("slot", { key: '9e98e1b0fda2a8b69f8efb8bacccb6cd1173ba4f' }), !this.readonly && !this.disabled && index.h("slot", { key: '083f5490c17548defa713bb697b731b02fad9198', name: "actions" })));
810
810
  }
811
811
  get element() { return index.getElement(this); }
812
812
  static get watchers() { return {
@@ -865,7 +865,7 @@ const MgIcon = class {
865
865
  this.variant = undefined;
866
866
  this.variantStyle = undefined;
867
867
  this.spin = false;
868
- this.classCollection = new index$1.Me(['mg-c-icon']);
868
+ this.classCollection = new index$1.Be(['mg-c-icon']);
869
869
  }
870
870
  validateIcon(newValue, oldValue) {
871
871
  if (!Object.keys(icons).includes(newValue))
@@ -964,7 +964,7 @@ const MgIllustratedMessage = class {
964
964
  componentDidLoad() {
965
965
  const headingTags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
966
966
  const slottedIllustrations = this.element.querySelectorAll('[slot="illustration"]');
967
- if (!index$1.Fe(this.element.querySelector('[slot="title"]'), headingTags)) {
967
+ if (!index$1.Ce(this.element.querySelector('[slot="title"]'), headingTags)) {
968
968
  throw new Error(`<mg-illustrated-message> Slotted title must be a heading: ${headingTags.join(', ')}`);
969
969
  }
970
970
  else if (slottedIllustrations.length !== 1) {
@@ -977,13 +977,13 @@ const MgIllustratedMessage = class {
977
977
  * @returns HTML Element
978
978
  */
979
979
  render() {
980
- return (index.h("div", { key: '566da859acf529d2389b892db469a2293f85c67e', class: {
980
+ return (index.h("div", { key: '042f4e43323c30176c3d2b4d596d55a25a4382b7', class: {
981
981
  'mg-c-illustrated-message': true,
982
982
  'mg-c-illustrated-message--horizontal': this.direction === 'horizontal',
983
- } }, index.h("div", { key: '7d2d44156ae0c8c0ac2364e6f1fc7c41242f7d6c', class: {
983
+ } }, index.h("div", { key: 'ebda1c1ca89ac40ff69820f96c10c0515ab9590a', class: {
984
984
  'mg-c-illustrated-message__illustration': true,
985
985
  'mg-c-illustrated-message__illustration--small': this.size === 'small',
986
- } }, index.h("slot", { key: '3a477be62f6866dece99be8882f89dcd2a620c5e', name: "illustration" })), index.h("div", { key: 'd6d8950d4bb5b8c6cafe1c148978bed1291f5768', class: "mg-c-illustrated-message__slots" }, index.h("div", { key: '47d0406a0d5eb2ea2388472defdc44411ba2977d', class: "mg-c-illustrated-message__title" }, index.h("slot", { key: '8126236dfce191b268f84f45183cc8304019c129', name: "title" })), index.h("div", { key: '64641dadca2ed82f3ad4b24d677ee01cc002dabf', class: "mg-c-illustrated-message__details" }, index.h("slot", { key: '65b61b0c16c9dde9cd2eab062b97fe189f53e5a2', name: "details" })))));
986
+ } }, index.h("slot", { key: 'aa65a2f9ea28bba75b7b7ad8c0816ea9efe4c180', name: "illustration" })), index.h("div", { key: '8173740ede93f2800ef9de9645fd4cc05ee66e3b', class: "mg-c-illustrated-message__slots" }, index.h("div", { key: '970bba9668cd3ab806399cee83e6a8c9648adff0', class: "mg-c-illustrated-message__title" }, index.h("slot", { key: '590d7970e1845e48658ae6287fdf91e782fcfe57', name: "title" })), index.h("div", { key: '0c49e0842c7d12e6810fbf95404d8a66f7139320', class: "mg-c-illustrated-message__details" }, index.h("slot", { key: 'efec02b5d379d2a042591e4a02896691be8d67cb', name: "details" })))));
987
987
  }
988
988
  get element() { return index.getElement(this); }
989
989
  };
@@ -1064,7 +1064,7 @@ const MgInput = class {
1064
1064
  this.isVerticalList = false;
1065
1065
  }
1066
1066
  watchIdentifier(newValue) {
1067
- if (!index$1.Be(newValue)) {
1067
+ if (!index$1.Pe(newValue)) {
1068
1068
  throw new Error('<mg-input> prop "identifier" is required.');
1069
1069
  }
1070
1070
  else {
@@ -1149,7 +1149,7 @@ const MgInput = class {
1149
1149
  */
1150
1150
  // eslint-disable-next-line @stencil-community/no-unused-watch
1151
1151
  watchLabel() {
1152
- if (!index$1.Be(this.label)) {
1152
+ if (!index$1.Pe(this.label)) {
1153
1153
  throw new Error('<mg-input> prop "label" is required.');
1154
1154
  }
1155
1155
  else {
@@ -1243,7 +1243,7 @@ const MgInput = class {
1243
1243
  render() {
1244
1244
  const readonlyValue = this.getReadonlyValues();
1245
1245
  const isGroup = this.isFieldset && !this.isReadonly;
1246
- return (index.h(index.Host, { key: '5eedfac460913f23f71a3fbba43af958afc63e0d', class: this.element.classList.toString(), role: isGroup ? 'group' : undefined, "aria-labelledby": isGroup ? `${this.identifier}-title` : undefined }, index.h("div", { key: '9335584ba10e2bc199accb9b4200b45252c848a9', class: { 'mg-c-input__title': true, 'mg-u-visually-hidden': this.labelHide } }, index.h("slot", { key: '7c5de08476008bfe6cbcfa07706cee30f16bc059', name: this.slotLabel }), this.tooltip && !this.isReadonly && (this.tooltipPosition === 'label' || this.labelOnTop) && !this.labelHide && this.renderTooltip()), index.h("div", { key: '5cf88a0ea68aaf2d8f1c96c4593ef6ea0133beb6', class: "mg-c-input__input-container" }, this.isReadonly
1246
+ return (index.h(index.Host, { key: '7a344b1c43f967771a6a3460adf83d60aa7fcc7e', class: this.element.classList.toString(), role: isGroup ? 'group' : undefined, "aria-labelledby": isGroup ? `${this.identifier}-title` : undefined }, index.h("div", { key: 'e88dbd6ad81f94b6ab3fdd2d73986b06f05f233d', class: { 'mg-c-input__title': true, 'mg-u-visually-hidden': this.labelHide } }, index.h("slot", { key: '12f3e23bd14c710ef5ecad3dedeb4f3d058c49d7', name: this.slotLabel }), this.tooltip && !this.isReadonly && (this.tooltipPosition === 'label' || this.labelOnTop) && !this.labelHide && this.renderTooltip()), index.h("div", { key: 'd7adace17ac5d68597dd5ece286ec04e405abccd', class: "mg-c-input__input-container" }, this.isReadonly
1247
1247
  ? [
1248
1248
  Array.isArray(readonlyValue) ? (index.h("ul", { key: "readonly-value-list" }, readonlyValue.map(value => (index.h("li", { key: value }, index.h("strong", null, value)))))) : (index.h("strong", { key: "readonly-value" }, readonlyValue)),
1249
1249
  index.h("slot", { key: "default-slot" }),
@@ -1445,7 +1445,7 @@ const MgInputCheckbox = class {
1445
1445
  * Method to update searchResults
1446
1446
  */
1447
1447
  this.updateSearchResults = () => {
1448
- this.searchResults = this.checkboxItems.filter(item => index$1.Ne(item.title).includes(index$1.Ne(this.searchValue)));
1448
+ this.searchResults = this.checkboxItems.filter(item => index$1.We(item.title).includes(index$1.We(this.searchValue)));
1449
1449
  };
1450
1450
  /**
1451
1451
  * Method to validate if one of inputs value is checked id required
@@ -1519,7 +1519,7 @@ const MgInputCheckbox = class {
1519
1519
  this.helpText = undefined;
1520
1520
  this.valid = undefined;
1521
1521
  this.invalid = undefined;
1522
- this.classCollection = new index$1.Me([this.baseClassName, classFieldset]);
1522
+ this.classCollection = new index$1.Be([this.baseClassName, classFieldset]);
1523
1523
  this.errorMessage = undefined;
1524
1524
  this.checkboxItems = [];
1525
1525
  this.displaySearchInput = undefined;
@@ -1627,7 +1627,7 @@ const MgInputCheckbox = class {
1627
1627
  if (typeof valid !== 'boolean') {
1628
1628
  throw new Error('<mg-input-checkbox> method "setError()" param "valid" must be a boolean');
1629
1629
  }
1630
- else if (!index$1.Be(errorMessage)) {
1630
+ else if (!index$1.Pe(errorMessage)) {
1631
1631
  throw new Error('<mg-input-checkbox> method "setError()" param "errorMessage" must be a string');
1632
1632
  }
1633
1633
  else {
@@ -1740,7 +1740,7 @@ const MgInputCheckbox = class {
1740
1740
  * @returns HTML Element
1741
1741
  */
1742
1742
  render() {
1743
- return (index.h("mg-input", { key: '97f239b0bb233a2ea1afb4124f810a54c0be09f9', label: this.label, identifier: this.identifier, class: this.classCollection.join(), ariaDescribedbyIDs: [], labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: !this.readonly ? this.required : undefined, readonlyValue: this.value.filter(({ value }) => value).map(({ title }) => title), tooltip: !this.readonly ? this.tooltip : undefined, tooltipPosition: this.tooltipPosition, helpText: !this.readonly ? this.helpText : undefined, errorMessage: !this.readonly ? this.errorMessage : undefined }, this.type === 'checkbox' || this.readonly ? (index.h(MgInputCheckboxList, { checkboxes: this.checkboxItems, displaySearchInput: this.displaySearchInput, messages: this.messages.input.checkbox, id: "checkboxes-list", disabled: this.disabled, name: this.name, invalid: this.invalid })) : (this.renderCheckboxMulti())));
1743
+ return (index.h("mg-input", { key: 'b695390b3a9525ba849c4442c6c6b0e643ec7348', label: this.label, identifier: this.identifier, class: this.classCollection.join(), ariaDescribedbyIDs: [], labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: !this.readonly ? this.required : undefined, readonlyValue: this.value.filter(({ value }) => value).map(({ title }) => title), tooltip: !this.readonly ? this.tooltip : undefined, tooltipPosition: this.tooltipPosition, helpText: !this.readonly ? this.helpText : undefined, errorMessage: !this.readonly ? this.errorMessage : undefined }, this.type === 'checkbox' || this.readonly ? (index.h(MgInputCheckboxList, { checkboxes: this.checkboxItems, displaySearchInput: this.displaySearchInput, messages: this.messages.input.checkbox, id: "checkboxes-list", disabled: this.disabled, name: this.name, invalid: this.invalid })) : (this.renderCheckboxMulti())));
1744
1744
  }
1745
1745
  get element() { return index.getElement(this); }
1746
1746
  static get watchers() { return {
@@ -1855,10 +1855,10 @@ const MgInputCheckboxPaginated = class {
1855
1855
  * @returns HTML Element
1856
1856
  */
1857
1857
  render() {
1858
- const getText = (checkboxes) => (index.h("em", { key: 'd1377fde2a3fdf69077a52d9b81e38b7c52881ec', class: "mg-c-input__section-header-title-label" }, `${this.messages[checkboxes.length > 1 ? 'titlePlurial' : 'title']} (${checkboxes.length})`));
1858
+ const getText = (checkboxes) => (index.h("em", { key: '0a1e9d02d508a27fda294b25d835f44b73d4c443', class: "mg-c-input__section-header-title-label" }, `${this.messages[checkboxes.length > 1 ? 'titlePlurial' : 'title']} (${checkboxes.length})`));
1859
1859
  const [from, to] = this.getFromToIndexes();
1860
1860
  const itemsContainerId = `items-${this.sectionKind}-container`;
1861
- return (index.h(index.Host, { key: '782f416233239ad46f653bfb34bc2adf2bf5c7b7', hidden: this.checkboxes.length < 1 }, index.h("div", { key: 'cbcc808b0aa6701cccf3dd23c78ad7c763dcedd5', class: "mg-c-input__section-header" }, this.titleKind === SectionTitleKind.BUTTON ? (index.h("mg-button", { variant: "flat", onClick: this.handleToggleClick, "aria-controls": itemsContainerId, "aria-expanded": this.expanded.toString() }, index.h("mg-icon", { icon: this.expanded ? 'chevron-up' : 'chevron-down', size: "small" }), index.h("span", { class: "mg-c-input__section-header-title" }, getText(this.checkboxes)))) : (index.h("p", { class: "mg-c-input__section-header-title mg-c-input__section-header-title--static" }, getText(this.checkboxes))), ((this.sectionKind === SectionKind.SELECTED && this.expanded) || this.sectionKind === SectionKind.NOT_SELECTED) && (index.h("mg-tooltip", { class: "mg-c-input__section-header-tootlip", message: this.messages.tooltip, "data-popper-strategy": "absolute" }, index.h("mg-button", { variant: "link", onClick: this.massActionHandler }, this.messages.action))), this.expanded && this.getPageCount(this.checkboxes) > 1 && (index.h("mg-pagination", { key: "search-pagination", totalPages: this.getPageCount(this.checkboxes), currentPage: this.currentPage, "onCurrent-page-change": this.handleCurrentPageChange, hideNavigationLabels: true, hidePageCount: true, identifier: `input-checkbox-pagination-${this.sectionKind}` }))), index.h("div", { key: 'e3a31d6c97ec062b80932a6d22c422e1b42f3866', hidden: !this.expanded, id: itemsContainerId, class: "mg-c-input__section-content" }, index.h(MgInputCheckboxList, { key: '44c4a5908286e4ec4f477d6cddf05752f83e26c1', checkboxes: this.getArrayRange(this.checkboxes, from, to), displaySearchInput: true, messages: this.messages, id: `items-${this.sectionKind}`, disabled: this.disabled, name: this.name, invalid: this.invalid }))));
1861
+ return (index.h(index.Host, { key: '71c72a433b984a609046fdce7cf4c6130c8e1ada', hidden: this.checkboxes.length < 1 }, index.h("div", { key: 'b2bd73e01db4db0edca92c5e7fc64edfda9d3b6d', class: "mg-c-input__section-header" }, this.titleKind === SectionTitleKind.BUTTON ? (index.h("mg-button", { variant: "flat", onClick: this.handleToggleClick, "aria-controls": itemsContainerId, "aria-expanded": this.expanded.toString() }, index.h("mg-icon", { icon: this.expanded ? 'chevron-up' : 'chevron-down', size: "small" }), index.h("span", { class: "mg-c-input__section-header-title" }, getText(this.checkboxes)))) : (index.h("p", { class: "mg-c-input__section-header-title mg-c-input__section-header-title--static" }, getText(this.checkboxes))), ((this.sectionKind === SectionKind.SELECTED && this.expanded) || this.sectionKind === SectionKind.NOT_SELECTED) && (index.h("mg-tooltip", { key: 'dcc6b405032e5b59cc748f1cbc87ab087c37cc31', class: "mg-c-input__section-header-tootlip", message: this.messages.tooltip, "data-popper-strategy": "absolute" }, index.h("mg-button", { key: 'a1d38aedc328d81ac8139f70e8564538f7e4b4c4', variant: "link", onClick: this.massActionHandler }, this.messages.action))), this.expanded && this.getPageCount(this.checkboxes) > 1 && (index.h("mg-pagination", { key: "search-pagination", totalPages: this.getPageCount(this.checkboxes), currentPage: this.currentPage, "onCurrent-page-change": this.handleCurrentPageChange, hideNavigationLabels: true, hidePageCount: true, identifier: `input-checkbox-pagination-${this.sectionKind}` }))), index.h("div", { key: 'd9913a7ceeac5d91f0c58e5021a88f1bf37b1387', hidden: !this.expanded, id: itemsContainerId, class: "mg-c-input__section-content" }, index.h(MgInputCheckboxList, { key: 'f262b871762d3c3f3e9828ed04cd735a89f9f27d', checkboxes: this.getArrayRange(this.checkboxes, from, to), displaySearchInput: true, messages: this.messages, id: `items-${this.sectionKind}`, disabled: this.disabled, name: this.name, invalid: this.invalid }))));
1862
1862
  }
1863
1863
  static get watchers() { return {
1864
1864
  "checkboxes": ["validateCheckboxes"],
@@ -1890,7 +1890,7 @@ const MgInputDate = class {
1890
1890
  * @param value - value to test
1891
1891
  * @returns truthy when value match the pattern
1892
1892
  */
1893
- this.isValidPattern = (value) => index$1.Be(value) && index$1.de.test(value);
1893
+ this.isValidPattern = (value) => index$1.Pe(value) && index$1.pe.test(value);
1894
1894
  /**
1895
1895
  * Format help text to display
1896
1896
  * @param helpText - help text format
@@ -1898,10 +1898,10 @@ const MgInputDate = class {
1898
1898
  */
1899
1899
  this.formatHelpText = (helpText) => {
1900
1900
  const defaultHelpTextVariable = '{defaultHelpText}';
1901
- let text = index$1.Be(helpText) ? helpText : this.messages.input.date.helpText;
1901
+ let text = index$1.Pe(helpText) ? helpText : this.messages.input.date.helpText;
1902
1902
  if (text.includes(defaultHelpTextVariable))
1903
1903
  text = text.replace(defaultHelpTextVariable, this.formatHelpText(this.messages.input.date.helpText));
1904
- return text.replace('{pattern}', this.renderPattern()).replace('{date}', index$1.ge(index$1.We(new Date('2023-12-24')), this.systemLocale));
1904
+ return text.replace('{pattern}', this.renderPattern()).replace('{date}', index$1.ge(index$1.Xe(new Date('2023-12-24')), this.systemLocale));
1905
1905
  };
1906
1906
  /**
1907
1907
  * Handle input event
@@ -2008,7 +2008,7 @@ const MgInputDate = class {
2008
2008
  * @returns translated html pattern
2009
2009
  */
2010
2010
  this.renderPattern = () => {
2011
- let patternLocal = index$1.Pe(this.systemLocale);
2011
+ let patternLocal = index$1.Ge(this.systemLocale);
2012
2012
  for (const key in this.messages.input.date.pattern) {
2013
2013
  patternLocal = patternLocal.replace(key, this.messages.input.date.pattern[key]);
2014
2014
  }
@@ -2030,7 +2030,7 @@ const MgInputDate = class {
2030
2030
  this.helpText = undefined;
2031
2031
  this.valid = undefined;
2032
2032
  this.invalid = undefined;
2033
- this.classCollection = new index$1.Me(['mg-c-input--date']);
2033
+ this.classCollection = new index$1.Be(['mg-c-input--date']);
2034
2034
  this.errorMessage = undefined;
2035
2035
  }
2036
2036
  validateValue(newValue) {
@@ -2038,7 +2038,7 @@ const MgInputDate = class {
2038
2038
  if (newValue === '')
2039
2039
  newValue = null;
2040
2040
  // check value validity
2041
- if (newValue && !index$1.Be(newValue)) {
2041
+ if (newValue && !index$1.Pe(newValue)) {
2042
2042
  throw new Error("<mg-input-date> props 'value' must be a valid string");
2043
2043
  }
2044
2044
  else if (!newValue || (newValue && this.isValidPattern(newValue))) {
@@ -2095,7 +2095,7 @@ const MgInputDate = class {
2095
2095
  if (typeof valid !== 'boolean') {
2096
2096
  throw new Error('<mg-input-date> method "setError()" param "valid" must be a boolean');
2097
2097
  }
2098
- else if (!index$1.Be(errorMessage)) {
2098
+ else if (!index$1.Pe(errorMessage)) {
2099
2099
  throw new Error('<mg-input-date> method "setError()" param "errorMessage" must be a string');
2100
2100
  }
2101
2101
  else {
@@ -2149,7 +2149,7 @@ const MgInputDate = class {
2149
2149
  * @returns HTML Element
2150
2150
  */
2151
2151
  render() {
2152
- return (index.h("mg-input", { key: 'ff06e342e04a96ecc30ff064ace7c179b1db8425', label: this.label, identifier: this.identifier, class: this.classCollection.join(), ariaDescribedbyIDs: [], labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: this.required, readonlyValue: index$1.ge(this.value, this.locale), tooltip: this.tooltip, tooltipPosition: this.tooltipPosition, helpText: this.formatHelpText(this.helpText), errorMessage: this.errorMessage }, index.h("input", { key: 'bcecf05a95c3e812af6fc6d0b137afba726b2cb8', type: "date", class: "mg-c-input__box", min: this.min, max: this.max, value: this.value, id: this.identifier, name: this.name, disabled: this.disabled, required: this.required, "aria-invalid": (this.invalid === true).toString(), onInput: this.handleInput, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, ref: (el) => {
2152
+ return (index.h("mg-input", { key: 'f38d79cb71311149b4d15885b65cd8f025dde15d', label: this.label, identifier: this.identifier, class: this.classCollection.join(), ariaDescribedbyIDs: [], labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: this.required, readonlyValue: index$1.ge(this.value, this.locale), tooltip: this.tooltip, tooltipPosition: this.tooltipPosition, helpText: this.formatHelpText(this.helpText), errorMessage: this.errorMessage }, index.h("input", { key: '67bf6f0ad58ee1a506ffd0d3d41d5954db68465c', type: "date", class: "mg-c-input__box", min: this.min, max: this.max, value: this.value, id: this.identifier, name: this.name, disabled: this.disabled, required: this.required, "aria-invalid": (this.invalid === true).toString(), onInput: this.handleInput, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, ref: (el) => {
2153
2153
  if (el !== null)
2154
2154
  this.input = el;
2155
2155
  } })));
@@ -2280,9 +2280,9 @@ const MgInputNumeric = class {
2280
2280
  this.formatValue = (value) => {
2281
2281
  switch (this.format) {
2282
2282
  case 'number':
2283
- return index$1.qe(value, this.locale, this.type === 'decimal' ? this.decimalLength : undefined);
2283
+ return index$1.Qe(value, this.locale, this.type === 'decimal' ? this.decimalLength : undefined);
2284
2284
  case 'currency':
2285
- return index$1.ze(value, this.locale, this.currency);
2285
+ return index$1.Ke(value, this.locale, this.currency);
2286
2286
  case 'none':
2287
2287
  return value.toString();
2288
2288
  }
@@ -2319,7 +2319,7 @@ const MgInputNumeric = class {
2319
2319
  this.decimalLength = 2;
2320
2320
  this.valid = undefined;
2321
2321
  this.invalid = undefined;
2322
- this.classCollection = new index$1.Me(['mg-c-input--numeric']);
2322
+ this.classCollection = new index$1.Be(['mg-c-input--numeric']);
2323
2323
  this.errorMessage = undefined;
2324
2324
  this.hasFocus = undefined;
2325
2325
  }
@@ -2415,7 +2415,7 @@ const MgInputNumeric = class {
2415
2415
  if (typeof valid !== 'boolean') {
2416
2416
  throw new Error('<mg-input-numeric> method "setError()" param "valid" must be a boolean');
2417
2417
  }
2418
- else if (!index$1.Be(errorMessage)) {
2418
+ else if (!index$1.Pe(errorMessage)) {
2419
2419
  throw new Error('<mg-input-numeric> method "setError()" param "errorMessage" must be a string');
2420
2420
  }
2421
2421
  else {
@@ -2510,10 +2510,10 @@ const MgInputNumeric = class {
2510
2510
  * @returns HTML Element
2511
2511
  */
2512
2512
  render() {
2513
- return (index.h("mg-input", { key: 'c1b1a0cd22f0ed6597852ecd38bb97d9942565a1', label: this.label, identifier: this.identifier, class: this.classCollection.join(), ariaDescribedbyIDs: [], labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: this.required, readonlyValue: this.readonlyValue, tooltip: this.tooltip, tooltipPosition: this.tooltipPosition, helpText: this.helpText, errorMessage: this.errorMessage }, index.h("input", { key: '9e64e0096e3ab8212c6626fba772a7756cd4f144', type: "text", class: "mg-c-input__box mg-c-input__box--width", value: this.displayValue(), id: this.identifier, name: this.name, placeholder: this.placeholder, title: this.placeholder, disabled: this.disabled, required: this.required, "aria-invalid": (this.invalid === true).toString(), onInput: this.handleInput, onFocus: this.handleFocus, onBlur: this.handleBlur, ref: (el) => {
2513
+ return (index.h("mg-input", { key: '52a1e1cc7a6f16290a62c258e099cd8c0cc30567', label: this.label, identifier: this.identifier, class: this.classCollection.join(), ariaDescribedbyIDs: [], labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: this.required, readonlyValue: this.readonlyValue, tooltip: this.tooltip, tooltipPosition: this.tooltipPosition, helpText: this.helpText, errorMessage: this.errorMessage }, index.h("input", { key: 'a36bbe191ff0fcacbf7bd459ad7d743a623eba44', type: "text", class: "mg-c-input__box mg-c-input__box--width", value: this.displayValue(), id: this.identifier, name: this.name, placeholder: this.placeholder, title: this.placeholder, disabled: this.disabled, required: this.required, "aria-invalid": (this.invalid === true).toString(), onInput: this.handleInput, onFocus: this.handleFocus, onBlur: this.handleBlur, ref: (el) => {
2514
2514
  if (el !== null)
2515
2515
  this.input = el;
2516
- } }), index.h("slot", { key: 'd2484bde61ff7962bb8b060f448a656160edd3f9', name: "append-input" })));
2516
+ } }), index.h("slot", { key: '6b6ae5ae8aa3de2c1d0360c2ddef962a7b3e6bc0', name: "append-input" })));
2517
2517
  }
2518
2518
  get element() { return index.getElement(this); }
2519
2519
  static get watchers() { return {
@@ -2607,7 +2607,7 @@ const MgInputPassword = class {
2607
2607
  this.helpText = undefined;
2608
2608
  this.valid = undefined;
2609
2609
  this.invalid = undefined;
2610
- this.classCollection = new index$1.Me(['mg-c-input--password']);
2610
+ this.classCollection = new index$1.Be(['mg-c-input--password']);
2611
2611
  this.errorMessage = undefined;
2612
2612
  this.displayPassword = false;
2613
2613
  }
@@ -2665,7 +2665,7 @@ const MgInputPassword = class {
2665
2665
  if (typeof valid !== 'boolean') {
2666
2666
  throw new Error('<mg-input-password> method "setError()" param "valid" must be a boolean');
2667
2667
  }
2668
- else if (!index$1.Be(errorMessage)) {
2668
+ else if (!index$1.Pe(errorMessage)) {
2669
2669
  throw new Error('<mg-input-password> method "setError()" param "errorMessage" must be a string');
2670
2670
  }
2671
2671
  else {
@@ -2711,10 +2711,10 @@ const MgInputPassword = class {
2711
2711
  * @returns HTML Element
2712
2712
  */
2713
2713
  render() {
2714
- return (index.h("mg-input", { key: '0743de03e00b3eeeca1e155fefa6fa3fa8dd20e4', label: this.label, identifier: this.identifier, class: this.classCollection.join(), ariaDescribedbyIDs: [], labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: this.required, readonlyValue: this.value !== undefined ? '•'.repeat(this.value.length) : undefined, tooltip: this.tooltip, tooltipPosition: this.tooltipPosition, helpText: this.helpText, errorMessage: this.errorMessage }, index.h("span", { key: '35c61d84248fe5b65c91afcb932d8e71aa0db71f', class: "mg-c-input__input-group" }, index.h("input", { key: 'b546544ac71d8d29ea7ac18146faccfdb1d738de', type: this.displayPassword ? 'text' : 'password', class: "mg-c-input__box mg-c-input__box--width", value: this.value, id: this.identifier, name: this.name, placeholder: this.placeholder, title: this.placeholder, disabled: this.disabled, required: this.required, "aria-invalid": (this.invalid === true).toString(), onInput: this.handleInput, onBlur: this.handleBlur, ref: (el) => {
2714
+ return (index.h("mg-input", { key: '39c2a1a17b4b64cb79ed6ca7036dd304ed01a8e6', label: this.label, identifier: this.identifier, class: this.classCollection.join(), ariaDescribedbyIDs: [], labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: this.required, readonlyValue: this.value !== undefined ? '•'.repeat(this.value.length) : undefined, tooltip: this.tooltip, tooltipPosition: this.tooltipPosition, helpText: this.helpText, errorMessage: this.errorMessage }, index.h("span", { key: 'd85a4240b6d178cde418ee72164f337c4986aeff', class: "mg-c-input__input-group" }, index.h("input", { key: '2caccd24026632f5e65dd4cf12914bf71ca656d3', type: this.displayPassword ? 'text' : 'password', class: "mg-c-input__box mg-c-input__box--width", value: this.value, id: this.identifier, name: this.name, placeholder: this.placeholder, title: this.placeholder, disabled: this.disabled, required: this.required, "aria-invalid": (this.invalid === true).toString(), onInput: this.handleInput, onBlur: this.handleBlur, ref: (el) => {
2715
2715
  if (el !== null)
2716
2716
  this.input = el;
2717
- } }), index.h("mg-button", { key: 'fbe3f10fd8b9626d13d1e8ca9f3355e8af0d573e', label: this.messages.input.password[this.displayPassword ? 'hide' : 'display'], disabled: this.disabled, variant: "flat", class: "mg-c-input__append-button", "is-icon": true, onClick: this.toggleDisplayPassword, "aria-controls": this.identifier }, index.h("mg-icon", { key: '48f1d7921294675f036439364bc73d1c730573c9', icon: this.displayPassword ? 'eye-slash' : 'eye' })))));
2717
+ } }), index.h("mg-button", { key: '59bd6c94c412eb8bcd5ece82e569e7df6fadaf9a', label: this.messages.input.password[this.displayPassword ? 'hide' : 'display'], disabled: this.disabled, variant: "flat", class: "mg-c-input__append-button", "is-icon": true, onClick: this.toggleDisplayPassword, "aria-controls": this.identifier }, index.h("mg-icon", { key: '22db9c43220335f258b8fa5978cb66a5d4c14c61', icon: this.displayPassword ? 'eye-slash' : 'eye' })))));
2718
2718
  }
2719
2719
  get element() { return index.getElement(this); }
2720
2720
  static get watchers() { return {
@@ -2812,7 +2812,7 @@ const MgInputRadio = class {
2812
2812
  this.helpText = undefined;
2813
2813
  this.valid = undefined;
2814
2814
  this.invalid = undefined;
2815
- this.classCollection = new index$1.Me(['mg-c-input--radio', classFieldset]);
2815
+ this.classCollection = new index$1.Be(['mg-c-input--radio', classFieldset]);
2816
2816
  this.errorMessage = undefined;
2817
2817
  this.options = undefined;
2818
2818
  }
@@ -2825,7 +2825,7 @@ const MgInputRadio = class {
2825
2825
  throw new Error('<mg-input-radio> prop "items" require at least 2 items.');
2826
2826
  }
2827
2827
  // String array
2828
- else if (index$1.Oe(newValue)) {
2828
+ else if (index$1.Ue(newValue)) {
2829
2829
  this.options = newValue.map(item => ({ title: item, value: item, disabled: this.disabled }));
2830
2830
  }
2831
2831
  // Object array
@@ -2884,7 +2884,7 @@ const MgInputRadio = class {
2884
2884
  if (typeof valid !== 'boolean') {
2885
2885
  throw new Error('<mg-input-radio> method "setError()" param "valid" must be a boolean');
2886
2886
  }
2887
- else if (!index$1.Be(errorMessage)) {
2887
+ else if (!index$1.Pe(errorMessage)) {
2888
2888
  throw new Error('<mg-input-radio> method "setError()" param "errorMessage" must be a string');
2889
2889
  }
2890
2890
  else {
@@ -2933,7 +2933,7 @@ const MgInputRadio = class {
2933
2933
  */
2934
2934
  render() {
2935
2935
  var _a;
2936
- return (index.h("mg-input", { key: 'e09de122464247bc706e0ec83257cad72645406a', label: this.label, identifier: this.identifier, class: this.classCollection.join(), ariaDescribedbyIDs: [], labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: this.required, readonlyValue: (_a = this.value) === null || _a === void 0 ? void 0 : _a.toString(), tooltip: this.tooltip, tooltipPosition: this.tooltipPosition, helpText: this.helpText, errorMessage: this.errorMessage }, index.h("ul", { key: '28cf4fa269394ec663e05355eb1b6158da1d8328', class: "mg-c-input__input-group-container", role: "list" }, this.options.map((input, index$1) => (index.h("li", { key: input.title, class: { 'mg-c-input__input-group': true, 'mg-c-input__input-group--disabled': this.disabled || input.disabled } }, index.h("input", { type: "radio", id: this.identifier + '_' + index$1, name: this.identifier, value: index$1, checked: JSON.stringify(this.value) === JSON.stringify(this.options[index$1].value), disabled: this.disabled || input.disabled, required: this.required, onBlur: this.handleBlur, onInput: this.handleInput, ref: (el) => {
2936
+ return (index.h("mg-input", { key: 'a987bc86a4bf97aead796cd7c91110cc0e3c90df', label: this.label, identifier: this.identifier, class: this.classCollection.join(), ariaDescribedbyIDs: [], labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: this.required, readonlyValue: (_a = this.value) === null || _a === void 0 ? void 0 : _a.toString(), tooltip: this.tooltip, tooltipPosition: this.tooltipPosition, helpText: this.helpText, errorMessage: this.errorMessage }, index.h("ul", { key: 'e5e249a744ecb1f09cdbe7f9ec9d8f44b8b20ece', class: "mg-c-input__input-group-container", role: "list" }, this.options.map((input, index$1) => (index.h("li", { key: input.title, class: { 'mg-c-input__input-group': true, 'mg-c-input__input-group--disabled': this.disabled || input.disabled } }, index.h("input", { type: "radio", id: this.identifier + '_' + index$1, name: this.identifier, value: index$1, checked: JSON.stringify(this.value) === JSON.stringify(this.options[index$1].value), disabled: this.disabled || input.disabled, required: this.required, onBlur: this.handleBlur, onInput: this.handleInput, ref: (el) => {
2937
2937
  if (el !== null)
2938
2938
  this.inputs[index$1] = el;
2939
2939
  } }), index.h("label", { htmlFor: this.identifier + '_' + index$1 }, input.title)))))));
@@ -3031,7 +3031,7 @@ const MgInputSelect = class {
3031
3031
  if (this.input.value === '') {
3032
3032
  this.setValue(null);
3033
3033
  }
3034
- else if (index$1.Oe(this.items) && this.items.includes(this.input.value)) {
3034
+ else if (index$1.Ue(this.items) && this.items.includes(this.input.value)) {
3035
3035
  this.setValue(this.input.value);
3036
3036
  }
3037
3037
  else if (allItemsAreOptions(this.items) && typeof this.input.value === 'string' && this.items.some(this.isInputValue)) {
@@ -3105,7 +3105,7 @@ const MgInputSelect = class {
3105
3105
  this.helpText = undefined;
3106
3106
  this.valid = undefined;
3107
3107
  this.invalid = undefined;
3108
- this.classCollection = new index$1.Me(['mg-c-input--select']);
3108
+ this.classCollection = new index$1.Be(['mg-c-input--select']);
3109
3109
  this.errorMessage = undefined;
3110
3110
  this.options = undefined;
3111
3111
  this.valueExist = undefined;
@@ -3113,7 +3113,7 @@ const MgInputSelect = class {
3113
3113
  }
3114
3114
  validateValue(newValue) {
3115
3115
  var _a, _b;
3116
- if (index$1.Oe(this.items) && typeof newValue === 'string') {
3116
+ if (index$1.Ue(this.items) && typeof newValue === 'string') {
3117
3117
  this.readonlyValue = ((_a = this.input) === null || _a === void 0 ? void 0 : _a.value) ? this.input.value : newValue;
3118
3118
  }
3119
3119
  else if (allItemsAreOptions(this.items)) {
@@ -3130,7 +3130,7 @@ const MgInputSelect = class {
3130
3130
  this.options = [];
3131
3131
  }
3132
3132
  // String array
3133
- else if (index$1.Oe(newValue)) {
3133
+ else if (index$1.Ue(newValue)) {
3134
3134
  if (typeof this.value === 'string')
3135
3135
  this.valueExist = newValue.includes(this.value);
3136
3136
  this.options = newValue.map(item => ({ title: item, value: item }));
@@ -3202,7 +3202,7 @@ const MgInputSelect = class {
3202
3202
  if (typeof valid !== 'boolean') {
3203
3203
  throw new Error('<mg-input-select> method "setError()" param "valid" must be a boolean');
3204
3204
  }
3205
- else if (!index$1.Be(errorMessage)) {
3205
+ else if (!index$1.Pe(errorMessage)) {
3206
3206
  throw new Error('<mg-input-select> method "setError()" param "errorMessage" must be a string');
3207
3207
  }
3208
3208
  else {
@@ -3255,11 +3255,11 @@ const MgInputSelect = class {
3255
3255
  * @returns HTML Element
3256
3256
  */
3257
3257
  render() {
3258
- return (index.h("mg-input", { key: '66df624f7671f6403b623718110403a83c8282ad', label: this.label, identifier: this.identifier, class: this.classCollection.join(), ariaDescribedbyIDs: [], labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: this.required, readonlyValue: this.readonlyValue, tooltip: this.tooltip, tooltipPosition: this.tooltipPosition, helpText: this.helpText, errorMessage: this.errorMessage }, index.h("select", { key: '005b1893fb651cbaebfbb66ca816b4605d874808', class: "mg-c-input__box", id: this.identifier, name: this.name, title: this.placeholder, disabled: this.disabled, required: this.required, "aria-invalid": (this.invalid === true).toString(), onInput: this.handleInput, onBlur: this.handleBlur, ref: (el) => {
3258
+ return (index.h("mg-input", { key: 'b6e431b881062928dfff44b35b40e2c16a8c56fc', label: this.label, identifier: this.identifier, class: this.classCollection.join(), ariaDescribedbyIDs: [], labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: this.required, readonlyValue: this.readonlyValue, tooltip: this.tooltip, tooltipPosition: this.tooltipPosition, helpText: this.helpText, errorMessage: this.errorMessage }, index.h("select", { key: '964162aae800e85cf9801c67c264736061fd80c6', class: "mg-c-input__box", id: this.identifier, name: this.name, title: this.placeholder, disabled: this.disabled, required: this.required, "aria-invalid": (this.invalid === true).toString(), onInput: this.handleInput, onBlur: this.handleBlur, ref: (el) => {
3259
3259
  if (el !== null)
3260
3260
  this.input = el;
3261
3261
  } }, (!this.placeholderHide || !this.valueExist) && ( // In case passed value does not match any option we display the placeholder
3262
- index.h("option", { value: "", disabled: this.placeholderDisabled && this.valueExist }, this.placeholder)), this.options.map(option => isOptGroup(option) ? (index.h("optgroup", { label: option.group, key: option.group }, option.options.map(this.renderOption))) : (isOption$1(option) && this.renderOption(option))))));
3262
+ index.h("option", { key: '9c24f8983858810541a0a626a5705ac9d05e26e0', value: "", disabled: this.placeholderDisabled && this.valueExist }, this.placeholder)), this.options.map(option => isOptGroup(option) ? (index.h("optgroup", { label: option.group, key: option.group }, option.options.map(this.renderOption))) : (isOption$1(option) && this.renderOption(option))))));
3263
3263
  }
3264
3264
  get element() { return index.getElement(this); }
3265
3265
  static get watchers() { return {
@@ -3314,7 +3314,7 @@ const MgInputText = class {
3314
3314
  */
3315
3315
  this.handleFocus = () => {
3316
3316
  this.classCollection.add(this.classFocus);
3317
- this.classCollection = new index$1.Me(this.classCollection.classes);
3317
+ this.classCollection = new index$1.Be(this.classCollection.classes);
3318
3318
  };
3319
3319
  /**
3320
3320
  * Handle blur event
@@ -3322,7 +3322,7 @@ const MgInputText = class {
3322
3322
  this.handleBlur = () => {
3323
3323
  // Manage focus
3324
3324
  this.classCollection.delete(this.classFocus);
3325
- this.classCollection = new index$1.Me(this.classCollection.classes);
3325
+ this.classCollection = new index$1.Be(this.classCollection.classes);
3326
3326
  // Display Error
3327
3327
  this.handlerInProgress = Handler.BLUR;
3328
3328
  this.displayError().finally(() => {
@@ -3397,7 +3397,7 @@ const MgInputText = class {
3397
3397
  this.helpText = undefined;
3398
3398
  this.valid = undefined;
3399
3399
  this.invalid = undefined;
3400
- this.classCollection = new index$1.Me(['mg-c-input--text']);
3400
+ this.classCollection = new index$1.Be(['mg-c-input--text']);
3401
3401
  this.errorMessage = undefined;
3402
3402
  }
3403
3403
  handleValue(newValue) {
@@ -3448,7 +3448,7 @@ const MgInputText = class {
3448
3448
  this.classCollection.add(`mg-c-input--width-${this.mgWidth}`);
3449
3449
  }
3450
3450
  validatePattern(newValue) {
3451
- if (newValue !== undefined && !(index$1.Be(this.pattern) && index$1.Be(this.patternErrorMessage))) {
3451
+ if (newValue !== undefined && !(index$1.Pe(this.pattern) && index$1.Pe(this.patternErrorMessage))) {
3452
3452
  throw new Error('<mg-input-text> props "pattern" and "patternErrorMessage" must be non-empty string and paired.');
3453
3453
  }
3454
3454
  }
@@ -3478,7 +3478,7 @@ const MgInputText = class {
3478
3478
  if (typeof valid !== 'boolean') {
3479
3479
  throw new Error('<mg-input-text> method "setError()" param "valid" must be a boolean');
3480
3480
  }
3481
- else if (!index$1.Be(errorMessage)) {
3481
+ else if (!index$1.Pe(errorMessage)) {
3482
3482
  throw new Error('<mg-input-text> method "setError()" param "errorMessage" must be a string');
3483
3483
  }
3484
3484
  else {
@@ -3532,14 +3532,14 @@ const MgInputText = class {
3532
3532
  * @returns HTML Element
3533
3533
  */
3534
3534
  render() {
3535
- return (index.h("mg-input", { key: '0bcc765df96b4183f70e03f0579bc64f0d2455d2', label: this.label, identifier: this.identifier, class: this.classCollection.join(), ariaDescribedbyIDs: [this.characterLeftId], labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: this.required, readonlyValue: this.value, tooltip: this.tooltip, tooltipPosition: this.tooltipPosition, helpText: this.helpText, errorMessage: this.errorMessage }, index.h("div", { key: 'fdbfcdc5be2946e3c25b4ea1bc3e1824a205e4fe', class: "mg-c-input__with-character-left", style: {
3535
+ return (index.h("mg-input", { key: 'ee9b290a3c97af6c264b37958c3a6123d516f391', label: this.label, identifier: this.identifier, class: this.classCollection.join(), ariaDescribedbyIDs: [this.characterLeftId], labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: this.required, readonlyValue: this.value, tooltip: this.tooltip, tooltipPosition: this.tooltipPosition, helpText: this.helpText, errorMessage: this.errorMessage }, index.h("div", { key: 'e348db67a88f9941c549cb190aaca88c93aac54c', class: "mg-c-input__with-character-left", style: {
3536
3536
  '--mg-character-left-message-length': (this.displayCharacterLeft
3537
3537
  ? (this.maxlength - (this.value || '').length).toString().length + this.maxlength.toString().length + 1
3538
3538
  : 0).toString(),
3539
- } }, this.icon !== undefined && index.h("mg-icon", { icon: this.icon }), index.h("input", { key: '1fa97359a69a9ab7093dbcbe4349638f121931c7', type: this.type, class: "mg-c-input__box mg-c-input__box--width", value: this.value, id: this.identifier, list: this.hasDatalist() ? this.datalistId : undefined, autocomplete: this.hasDatalist() ? 'off' : undefined, name: this.name, placeholder: this.placeholder, title: this.placeholder, maxlength: this.maxlength, disabled: this.disabled, required: this.required, "aria-invalid": (this.invalid === true).toString(), pattern: this.pattern, onInput: this.handleInput, onFocus: this.handleFocus, onBlur: this.handleBlur, ref: (el) => {
3539
+ } }, this.icon !== undefined && index.h("mg-icon", { key: 'dfe0ce7e271c40d4da20f00b35ad4fe104e08c91', icon: this.icon }), index.h("input", { key: '451af2cff19f47d9b9d3de824546324b6bfaf235', type: this.type, class: "mg-c-input__box mg-c-input__box--width", value: this.value, id: this.identifier, list: this.hasDatalist() ? this.datalistId : undefined, autocomplete: this.hasDatalist() ? 'off' : undefined, name: this.name, placeholder: this.placeholder, title: this.placeholder, maxlength: this.maxlength, disabled: this.disabled, required: this.required, "aria-invalid": (this.invalid === true).toString(), pattern: this.pattern, onInput: this.handleInput, onFocus: this.handleFocus, onBlur: this.handleBlur, ref: (el) => {
3540
3540
  if (el !== null)
3541
3541
  this.input = el;
3542
- } }), this.hasDatalist() && (index.h("datalist", { id: this.datalistId }, this.datalistoptions.map(option => (index.h("option", { value: option, key: option }))))), this.displayCharacterLeft && this.maxlength > 0 && (index.h("mg-character-left", { identifier: this.characterLeftId, characters: this.value, maxlength: this.maxlength }))), index.h("slot", { key: 'e6e209266d3525fb2dcd3eecf1dc054d2d7750b4', name: "append-input" })));
3542
+ } }), this.hasDatalist() && (index.h("datalist", { key: '387530d84dd29575c5e8985ad40211e490bb04e4', id: this.datalistId }, this.datalistoptions.map(option => (index.h("option", { value: option, key: option }))))), this.displayCharacterLeft && this.maxlength > 0 && (index.h("mg-character-left", { key: 'e0278d4295d5c923f21f617bbf37ee09bd907b54', identifier: this.characterLeftId, characters: this.value, maxlength: this.maxlength }))), index.h("slot", { key: '3d896e5ad21380c04c58fe925b8186e9f0a9207b', name: "append-input" })));
3543
3543
  }
3544
3544
  get element() { return index.getElement(this); }
3545
3545
  static get watchers() { return {
@@ -3587,7 +3587,7 @@ const MgInputTextarea = class {
3587
3587
  */
3588
3588
  this.handleFocus = () => {
3589
3589
  this.classCollection.add(this.classFocus);
3590
- this.classCollection = new index$1.Me(this.classCollection.classes);
3590
+ this.classCollection = new index$1.Be(this.classCollection.classes);
3591
3591
  };
3592
3592
  /**
3593
3593
  * Handle blur event
@@ -3595,7 +3595,7 @@ const MgInputTextarea = class {
3595
3595
  this.handleBlur = () => {
3596
3596
  // Manage focus
3597
3597
  this.classCollection.delete(this.classFocus);
3598
- this.classCollection = new index$1.Me(this.classCollection.classes);
3598
+ this.classCollection = new index$1.Be(this.classCollection.classes);
3599
3599
  // Display Error
3600
3600
  this.handlerInProgress = Handler.BLUR;
3601
3601
  this.displayError().finally(() => {
@@ -3658,7 +3658,7 @@ const MgInputTextarea = class {
3658
3658
  this.valid = undefined;
3659
3659
  this.invalid = undefined;
3660
3660
  this.resizable = 'none';
3661
- this.classCollection = new index$1.Me(['mg-c-input--textarea']);
3661
+ this.classCollection = new index$1.Be(['mg-c-input--textarea']);
3662
3662
  this.errorMessage = undefined;
3663
3663
  }
3664
3664
  handleValue(newValue) {
@@ -3697,7 +3697,7 @@ const MgInputTextarea = class {
3697
3697
  this.classCollection.add(`mg-c-input--width-${this.mgWidth}`);
3698
3698
  }
3699
3699
  validatePattern(newValue) {
3700
- if (newValue !== undefined && !(index$1.Be(this.pattern) && index$1.Be(this.patternErrorMessage))) {
3700
+ if (newValue !== undefined && !(index$1.Pe(this.pattern) && index$1.Pe(this.patternErrorMessage))) {
3701
3701
  throw new Error('<mg-input-textarea> props "pattern" and "patternErrorMessage" must be non-empty string and paired.');
3702
3702
  }
3703
3703
  }
@@ -3729,7 +3729,7 @@ const MgInputTextarea = class {
3729
3729
  if (typeof valid !== 'boolean') {
3730
3730
  throw new Error('<mg-input-textarea> method "setError()" param "valid" must be a boolean');
3731
3731
  }
3732
- else if (!index$1.Be(errorMessage)) {
3732
+ else if (!index$1.Pe(errorMessage)) {
3733
3733
  throw new Error('<mg-input-textarea> method "setError()" param "errorMessage" must be a string');
3734
3734
  }
3735
3735
  else {
@@ -3780,7 +3780,7 @@ const MgInputTextarea = class {
3780
3780
  * @returns HTML Element
3781
3781
  */
3782
3782
  render() {
3783
- return (index.h("mg-input", { key: '4196a4eb5187ed2e644c23cf40ff24d6015d0f36', label: this.label, identifier: this.identifier, class: this.classCollection.join(), ariaDescribedbyIDs: [this.characterLeftId], labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: this.required, readonlyValue: this.value, tooltip: this.tooltip, tooltipPosition: this.tooltipPosition, helpText: this.helpText, errorMessage: this.errorMessage }, index.h("div", { key: '2e5a57ef5a936618685d65251d9445a5e25f8149', class: "mg-c-input__with-character-left" }, index.h("textarea", { key: 'a7deac1e7a713db46e285e73785eed01f2961639', class: {
3783
+ return (index.h("mg-input", { key: 'c4386e9b6efe517276d3cd55d213819ff90d7e20', label: this.label, identifier: this.identifier, class: this.classCollection.join(), ariaDescribedbyIDs: [this.characterLeftId], labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: this.required, readonlyValue: this.value, tooltip: this.tooltip, tooltipPosition: this.tooltipPosition, helpText: this.helpText, errorMessage: this.errorMessage }, index.h("div", { key: '2d30db0ea21becffcdce57e46734e76877dc4858', class: "mg-c-input__with-character-left" }, index.h("textarea", { key: 'bc95d0db89014cafbb4e45893974e1ad09a41bf9', class: {
3784
3784
  'mg-c-input__box': true,
3785
3785
  'mg-c-input__box--width': true,
3786
3786
  'mg-c-input__box--resizable': this.resizable === 'both',
@@ -3789,7 +3789,7 @@ const MgInputTextarea = class {
3789
3789
  }, value: this.value, id: this.identifier, name: this.name, placeholder: this.placeholder, title: this.placeholder, rows: this.rows, maxlength: this.maxlength, disabled: this.disabled, required: this.required, "aria-invalid": (this.invalid === true).toString(), onInput: this.handleInput, onFocus: this.handleFocus, onBlur: this.handleBlur, ref: (el) => {
3790
3790
  if (el !== null)
3791
3791
  this.input = el;
3792
- } }), this.displayCharacterLeft && this.maxlength > 0 && (index.h("mg-character-left", { identifier: this.characterLeftId, characters: this.value, maxlength: this.maxlength })))));
3792
+ } }), this.displayCharacterLeft && this.maxlength > 0 && (index.h("mg-character-left", { key: '522f8440ff28f9767c7273f56936cc994dfa17da', identifier: this.characterLeftId, characters: this.value, maxlength: this.maxlength })))));
3793
3793
  }
3794
3794
  get element() { return index.getElement(this); }
3795
3795
  static get watchers() { return {
@@ -3818,7 +3818,7 @@ const MgInputTitle = class {
3818
3818
  this.tagName = 'label';
3819
3819
  }
3820
3820
  validateIdentifier(newValue) {
3821
- if (!index$1.Be(newValue)) {
3821
+ if (!index$1.Pe(newValue)) {
3822
3822
  throw new Error('<mg-input-title> prop "identifier" is required.');
3823
3823
  }
3824
3824
  }
@@ -3842,7 +3842,7 @@ const MgInputTitle = class {
3842
3842
  render() {
3843
3843
  const TagName = this.readonly ? 'span' : this.tagName;
3844
3844
  // \u00A0 represent a &nbsp;
3845
- return (index.h(TagName, { key: '3042d844802f32bc180f7fa2a94b6d6b72e3fc85', class: "mg-c-input-title", htmlFor: !this.isLegend && this.identifier, id: this.isLegend ? `${this.identifier}-title` : undefined }, index.h("slot", { key: 'b95a542c64ab1deddcae5d2cf5185a5748303926' }), this.required && !this.readonly && (index.h("span", { class: "mg-c-input-title__required" }, "\u00A0", index.h("span", { class: "mg-u-is-asterisk" }, "*")))));
3845
+ return (index.h(TagName, { key: '217fcd80f25886c71c9ec8da6673e3ba5dbb78f7', class: "mg-c-input-title", htmlFor: !this.isLegend && this.identifier, id: this.isLegend ? `${this.identifier}-title` : undefined }, index.h("slot", { key: '0efdaadd578a4a557e96f76ebfe1182af2ffdfac' }), this.required && !this.readonly && (index.h("span", { key: 'ebb62ba6769b0e6c8807d67aa0d4bcb80db76ac7', class: "mg-c-input-title__required" }, "\u00A0", index.h("span", { key: '9945e1bff4ec58e1c705a25cef538b2dab806fab', class: "mg-u-is-asterisk" }, "*")))));
3846
3846
  }
3847
3847
  static get watchers() { return {
3848
3848
  "identifier": ["validateIdentifier"],
@@ -3932,7 +3932,7 @@ const MgInputToggle = class {
3932
3932
  this.tooltip = undefined;
3933
3933
  this.tooltipPosition = 'input';
3934
3934
  this.helpText = undefined;
3935
- this.classCollection = new index$1.Me(['mg-c-input--toggle']);
3935
+ this.classCollection = new index$1.Be(['mg-c-input--toggle']);
3936
3936
  this.options = undefined;
3937
3937
  this.errorMessage = undefined;
3938
3938
  this.valid = undefined;
@@ -3949,7 +3949,7 @@ const MgInputToggle = class {
3949
3949
  throw new Error('<mg-input-toggle> prop "items" require 2 items.');
3950
3950
  }
3951
3951
  // String array
3952
- else if (index$1.Oe(newValue)) {
3952
+ else if (index$1.Ue(newValue)) {
3953
3953
  this.options = newValue.map(item => ({ title: item, value: item }));
3954
3954
  }
3955
3955
  // Object array
@@ -4005,7 +4005,7 @@ const MgInputToggle = class {
4005
4005
  if (typeof valid !== 'boolean') {
4006
4006
  throw new Error('<mg-input-toggle> method "setError()" param "valid" must be a boolean');
4007
4007
  }
4008
- else if (!index$1.Be(errorMessage)) {
4008
+ else if (!index$1.Pe(errorMessage)) {
4009
4009
  throw new Error('<mg-input-toggle> method "setError()" param "errorMessage" must be a string');
4010
4010
  }
4011
4011
  else {
@@ -4061,7 +4061,7 @@ const MgInputToggle = class {
4061
4061
  */
4062
4062
  render() {
4063
4063
  var _a;
4064
- return (index.h("mg-input", { key: '560cd6ef008109c6dd8cee23d51c019b10feb7ff', label: this.label, helpText: this.helpText, identifier: this.identifier, class: this.classCollection.join(), ariaDescribedbyIDs: [], labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: undefined, readonlyValue: (_a = this.getCheckedItem(this.checked)) === null || _a === void 0 ? void 0 : _a.title, tooltip: !this.readonly && this.tooltip, tooltipPosition: this.tooltipPosition, errorMessage: this.errorMessage }, index.h("button", { key: '05bdaac2362591a6f9e250fc8703701fc5c91d2d', type: "button", role: "switch", "aria-checked": this.checked.toString(), "aria-readonly": this.disabled || this.readonly, id: this.identifier, class: "mg-c-input__button-toggle", disabled: this.disabled || this.readonly, onClick: this.toggleChecked }, index.h("span", { key: '395086e1a986767072db4e10b3afc5b4cc650bd8', "aria-hidden": "true", class: "mg-c-input__toggle-item-container" }, index.h("slot", { key: 'c39a37141d822e8ddfad1505039379b0b14d6490', name: "item-1" })), index.h("span", { key: 'fcc28290602815ace1d755e7ea1eede7d6fbcc10', "aria-hidden": "true", class: "mg-c-input__toggle-item-container" }, index.h("slot", { key: '7788fc760df5c002ca621c439902ff44fb7226db', name: "item-2" })))));
4064
+ return (index.h("mg-input", { key: '8d4b88c7a14660ee3cfc69c3fce7f35f41b8a199', label: this.label, helpText: this.helpText, identifier: this.identifier, class: this.classCollection.join(), ariaDescribedbyIDs: [], labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: undefined, readonlyValue: (_a = this.getCheckedItem(this.checked)) === null || _a === void 0 ? void 0 : _a.title, tooltip: !this.readonly && this.tooltip, tooltipPosition: this.tooltipPosition, errorMessage: this.errorMessage }, index.h("button", { key: '9af8b4159d4159894b9c37867cd5581296c48295', type: "button", role: "switch", "aria-checked": this.checked.toString(), "aria-readonly": this.disabled || this.readonly, id: this.identifier, class: "mg-c-input__button-toggle", disabled: this.disabled || this.readonly, onClick: this.toggleChecked }, index.h("span", { key: '7b11e8151dc231718c81c73f7d99980eec4bb1ed', "aria-hidden": "true", class: "mg-c-input__toggle-item-container" }, index.h("slot", { key: '7efaeced52095c79b2d61f9b3628ec2f605d747b', name: "item-1" })), index.h("span", { key: 'd2e3775fbae5c6c679125ac99c56dfde431ecdc2', "aria-hidden": "true", class: "mg-c-input__toggle-item-container" }, index.h("slot", { key: 'edbb817680e42f7012f5b8d69e1c47626d97a161', name: "item-2" })))));
4065
4065
  }
4066
4066
  get element() { return index.getElement(this); }
4067
4067
  static get watchers() { return {
@@ -4251,7 +4251,7 @@ const MgItemMore = class {
4251
4251
  navElement.click();
4252
4252
  });
4253
4253
  // add id suffix to prevent duplicate key. default html id is: '';
4254
- if (index$1.Be(proxy.id))
4254
+ if (index$1.Pe(proxy.id))
4255
4255
  proxy.id = `${proxy.id}-proxy`;
4256
4256
  // update properties and DOM when proxyfied item is updated
4257
4257
  proxified.addEventListener('item-updated', (event) => {
@@ -4281,7 +4281,7 @@ const MgItemMore = class {
4281
4281
  this.slotlabel.label = this.messages.menuLabel;
4282
4282
  }
4283
4283
  validateSize(newValue) {
4284
- if (newValue && typeof newValue !== 'string')
4284
+ if (newValue && !sizes$2.includes(newValue))
4285
4285
  throw new Error(`<${this.name}> prop "size" must match MgItemMore['size'] type.`);
4286
4286
  }
4287
4287
  /*************
@@ -4330,10 +4330,10 @@ const MgItemMore = class {
4330
4330
  * @returns HTML Element
4331
4331
  */
4332
4332
  render() {
4333
- return (index.h(index.Host, { key: 'c64a37d994cb6c3c388939b151588f2acf23e372', role: "listitem" }, this.parentMenu && (index.h("mg-menu-item", { "data-overflow-more": true, "data-size": this.parentMenu.size, ref: el => {
4333
+ return (index.h(index.Host, { key: 'b490696ded183a1db05673b3e9ba9744ee134382', role: "listitem" }, this.parentMenu && (index.h("mg-menu-item", { key: '6f8b1967da50e77d87355cedde8aeb2327ddd0ab', "data-overflow-more": true, "data-size": this.parentMenu.size, ref: el => {
4334
4334
  if (el)
4335
4335
  this.moreElementMenuItem = el;
4336
- } }, index.h("mg-icon", { icon: this.icon.icon, slot: "image" }), index.h("span", { class: { 'mg-u-visually-hidden': !this.slotlabel.display }, slot: "label" }, this.slotlabel.label), index.h("mg-menu", { direction: Direction.VERTICAL, label: this.messages.menuLabel, size: this.size })))));
4336
+ } }, index.h("mg-icon", { key: 'ddcf120831d42bc6cb9b8e147abac9ba7cbeedb6', icon: this.icon.icon, size: this.size, slot: "image" }), index.h("span", { key: 'fae667ee2f6ac8f4d4f85c5a8db91dede3f470e6', class: { 'mg-u-visually-hidden': !this.slotlabel.display }, slot: "label" }, this.slotlabel.label), index.h("mg-menu", { key: '912d544f80b84b4cffa28517ffbc91d60792a460', direction: Direction.VERTICAL, label: this.messages.menuLabel, size: this.size })))));
4337
4337
  }
4338
4338
  get element() { return index.getElement(this); }
4339
4339
  static get watchers() { return {
@@ -4369,16 +4369,11 @@ const MgMenu = class {
4369
4369
  item.expanded = false;
4370
4370
  }
4371
4371
  };
4372
- /**
4373
- * get mg-item-more element
4374
- * @returns mg-item-more element
4375
- */
4376
- this.getItemMore = () => this.element.querySelector('mg-item-more');
4377
4372
  /**
4378
4373
  * get mg-item-more child mg-menu-item element
4379
4374
  * @returns mg-menu-item element
4380
4375
  */
4381
- this.getItemMoreMenuItem = () => { var _a, _b; return (_b = (_a = this.getItemMore()) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('mg-menu-item'); };
4376
+ this.getItemMoreMenuItem = () => { var _a, _b; return (_b = (_a = this.itemMoreElement) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('mg-menu-item'); };
4382
4377
  /**
4383
4378
  * Set item listend
4384
4379
  * @param item - mg-menu-item element
@@ -4414,20 +4409,25 @@ const MgMenu = class {
4414
4409
  * render mg-item-more
4415
4410
  */
4416
4411
  this.renderMgItemMore = () => {
4417
- if (this.direction !== Direction.HORIZONTAL || this.isChildMenu) {
4412
+ if (this.direction !== Direction.HORIZONTAL || this.isChildMenu || this.element.children.length <= 1) {
4418
4413
  return;
4419
4414
  }
4420
- // /!\ externalise item tag name to get a string type and bypass type checking when value is used in next createElement
4421
- // by doing this we prevent stencil to generate a circular dependencies graph at build time with mg-item-more component.
4422
- let mgItemMore = this.getItemMore();
4423
- if (!mgItemMore) {
4424
- mgItemMore = document.createElement('mg-item-more');
4425
- mgItemMore.addEventListener('item-loaded', this.handleItemLoaded);
4426
- Object.assign(mgItemMore, this.itemmore || {});
4427
- this.element.appendChild(mgItemMore);
4415
+ // Insert mg-item-more outside the mg-menu shadowdom
4416
+ if (!this.itemMoreElement) {
4417
+ this.itemMoreElement = document.createElement('mg-item-more');
4418
+ this.itemMoreElement.addEventListener('item-loaded', this.handleItemLoaded);
4419
+ this.element.appendChild(this.itemMoreElement);
4428
4420
  }
4429
- else {
4430
- Object.defineProperties(mgItemMore, this.itemmore || {});
4421
+ // update mg-item-more props
4422
+ for (const attribute in this.itemmore) {
4423
+ const newValue = this.itemmore[attribute];
4424
+ // to improve rendering we use HTML attributes as much as possible
4425
+ if (['string', 'number'].includes(typeof newValue)) {
4426
+ this.itemMoreElement.setAttribute(attribute, newValue);
4427
+ }
4428
+ else {
4429
+ this.itemMoreElement[attribute] = newValue;
4430
+ }
4431
4431
  }
4432
4432
  };
4433
4433
  this.label = undefined;
@@ -4450,6 +4450,9 @@ const MgMenu = class {
4450
4450
  if (newValue !== undefined && this.direction !== Direction.HORIZONTAL) {
4451
4451
  throw new Error(`<${this.name}> prop "itemmore" must be paired with direction ${Direction.HORIZONTAL}.`);
4452
4452
  }
4453
+ else if (newValue) {
4454
+ this.renderMgItemMore();
4455
+ }
4453
4456
  }
4454
4457
  validateSize(newValue) {
4455
4458
  if (!sizes$2.includes(newValue)) {
@@ -4500,7 +4503,7 @@ const MgMenu = class {
4500
4503
  * @returns HTML Element
4501
4504
  */
4502
4505
  render() {
4503
- return (index.h(index.Host, { key: 'cf7e1a8ea713af4019295c4147d3023223fc8a79', role: "list", "aria-label": this.label }, index.h("slot", { key: 'dcb316d5c13b3b01bfd0c7b891cbd3728a37fa11' })));
4506
+ return (index.h(index.Host, { key: 'a29897d754b7cbb34cc8d63b5ecb025c0d252e12', role: "list", "aria-label": this.label }, index.h("slot", { key: '7fc9dbd765f529e17f0c7ca2012d1b6bf86a05d9' })));
4504
4507
  }
4505
4508
  get element() { return index.getElement(this); }
4506
4509
  static get watchers() { return {
@@ -4512,7 +4515,7 @@ const MgMenu = class {
4512
4515
  };
4513
4516
  MgMenu.style = MgMenuStyle0;
4514
4517
 
4515
- const mgMenuItemCss = ".mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}.mg-c-menu-item.mg-c-menu-item--size-regular .mg-c-menu-item__navigation-button,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-regular{height:3.8rem;padding:1rem 2rem}.mg-c-menu-item.mg-c-menu-item--size-regular .mg-c-menu-item__navigation-button,.mg-c-menu-item.mg-c-menu-item--size-regular .mg-c-menu-item__navigation-button ::slotted([slot=label]),.mg-c-menu-item.mg-c-menu-item--size-regular .mg-c-menu-item__navigation-button ::slotted([slot=metadata]),.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-regular,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-regular ::slotted([slot=label]),.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-regular ::slotted([slot=metadata]){font-size:var(--font-size)}.mg-c-menu-item.mg-c-menu-item--size-regular .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--horizontal,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-regular.mg-c-menu-item__navigation-button--horizontal{padding-bottom:calc(1rem - 0.3rem)}.mg-c-menu-item.mg-c-menu-item--size-regular .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--vertical,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-regular.mg-c-menu-item__navigation-button--vertical{padding-left:calc(2rem - 0.3rem)}.mg-c-menu-item.mg-c-menu-item--size-medium .mg-c-menu-item__navigation-button,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium{height:5.1rem;padding:1rem 3rem}.mg-c-menu-item.mg-c-menu-item--size-medium .mg-c-menu-item__navigation-button,.mg-c-menu-item.mg-c-menu-item--size-medium .mg-c-menu-item__navigation-button ::slotted([slot=label]),.mg-c-menu-item.mg-c-menu-item--size-medium .mg-c-menu-item__navigation-button ::slotted([slot=metadata]),.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium ::slotted([slot=label]),.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium ::slotted([slot=metadata]){font-size:calc(var(--font-size) + .2rem)}.mg-c-menu-item.mg-c-menu-item--size-medium .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--horizontal,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium.mg-c-menu-item__navigation-button--horizontal{padding-bottom:calc(1rem - 0.3rem)}.mg-c-menu-item.mg-c-menu-item--size-medium .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--vertical,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium.mg-c-menu-item__navigation-button--vertical{padding-left:calc(3rem - 0.3rem)}.mg-c-menu-item.mg-c-menu-item--size-large .mg-c-menu-item__navigation-button,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large{height:7.1rem;padding:1rem 4rem}.mg-c-menu-item.mg-c-menu-item--size-large .mg-c-menu-item__navigation-button,.mg-c-menu-item.mg-c-menu-item--size-large .mg-c-menu-item__navigation-button ::slotted([slot=label]),.mg-c-menu-item.mg-c-menu-item--size-large .mg-c-menu-item__navigation-button ::slotted([slot=metadata]),.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large ::slotted([slot=label]),.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large ::slotted([slot=metadata]){font-size:calc(var(--font-size) + .2rem)}.mg-c-menu-item.mg-c-menu-item--size-large .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--horizontal,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large.mg-c-menu-item__navigation-button--horizontal{padding-bottom:calc(1rem - 0.3rem)}.mg-c-menu-item.mg-c-menu-item--size-large .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--vertical,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large.mg-c-menu-item__navigation-button--vertical{padding-left:calc(4rem - 0.3rem)}.mg-c-menu-item__navigation-button{display:flex;box-sizing:border-box;align-items:center;border:none;background-color:unset;color:hsl(var(--mg-menu-item-color-hsl, var(--color-dark)));column-gap:var(--mg-menu-item-navigation-button-column-gap, 1rem);cursor:pointer;font-family:var(--font-family);font-weight:400;line-height:var(--line-height);text-decoration:none;white-space:nowrap}.mg-c-menu-item__navigation-button:disabled,.mg-c-menu-item__navigation-button--disabled{cursor:default;opacity:var(--mg-disabled-opacity)}.mg-c-menu-item__navigation-button:focus-visible{z-index:10}.mg-c-menu-item__navigation-button:hover:not(.mg-c-menu-item__navigation-button--disabled),.mg-c-menu-item__navigation-button:focus-visible:not(.mg-c-menu-item__navigation-button--disabled){background-color:hsl(var(--mg-menu-item-focused-background-color-hsl)/10%)}.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--active{color:hsl(var(--mg-menu-item-color-active-hsl));font-weight:600}.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--active.mg-c-menu-item__navigation-button--horizontal{border-bottom-color:hsl(var(--mg-menu-item-border-color-active-hsl))}.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--active.mg-c-menu-item__navigation-button--vertical{border-left-color:hsl(var(--mg-menu-item-border-color-active-hsl))}.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--hidden{display:none}.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--horizontal{border-bottom:.3rem solid rgba(0,0,0,0)}.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--vertical{border-left:.3rem solid rgba(0,0,0,0)}:host([data-style-direction=vertical][data-level=\"1\"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-regular{padding-left:calc(1*2rem - .3rem)}:host([data-level=\"1\"]) .mg-c-menu-item__collapse-container{z-index:calc(1*10)}:host([data-style-direction=vertical][data-level=\"2\"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-regular{padding-left:calc(2*2rem - .3rem)}:host([data-level=\"2\"]) .mg-c-menu-item__collapse-container{z-index:calc(2*10)}:host([data-style-direction=vertical][data-level=\"3\"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-regular{padding-left:calc(3*2rem - .3rem)}:host([data-level=\"3\"]) .mg-c-menu-item__collapse-container{z-index:calc(3*10)}:host([data-style-direction=vertical][data-level=\"4\"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-regular{padding-left:calc(4*2rem - .3rem)}:host([data-level=\"4\"]) .mg-c-menu-item__collapse-container{z-index:calc(4*10)}:host([data-style-direction=vertical][data-level=\"5\"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-regular{padding-left:calc(5*2rem - .3rem)}:host([data-level=\"5\"]) .mg-c-menu-item__collapse-container{z-index:calc(5*10)}:host([data-style-direction=vertical][data-level=\"6\"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-regular{padding-left:calc(6*2rem - .3rem)}:host([data-level=\"6\"]) .mg-c-menu-item__collapse-container{z-index:calc(6*10)}:host([data-style-direction=vertical][data-level=\"1\"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium{padding-left:calc(1*3rem - .3rem)}:host([data-level=\"1\"]) .mg-c-menu-item__collapse-container{z-index:calc(1*10)}:host([data-style-direction=vertical][data-level=\"2\"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium{padding-left:calc(2*3rem - .3rem)}:host([data-level=\"2\"]) .mg-c-menu-item__collapse-container{z-index:calc(2*10)}:host([data-style-direction=vertical][data-level=\"3\"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium{padding-left:calc(3*3rem - .3rem)}:host([data-level=\"3\"]) .mg-c-menu-item__collapse-container{z-index:calc(3*10)}:host([data-style-direction=vertical][data-level=\"4\"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium{padding-left:calc(4*3rem - .3rem)}:host([data-level=\"4\"]) .mg-c-menu-item__collapse-container{z-index:calc(4*10)}:host([data-style-direction=vertical][data-level=\"5\"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium{padding-left:calc(5*3rem - .3rem)}:host([data-level=\"5\"]) .mg-c-menu-item__collapse-container{z-index:calc(5*10)}:host([data-style-direction=vertical][data-level=\"6\"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium{padding-left:calc(6*3rem - .3rem)}:host([data-level=\"6\"]) .mg-c-menu-item__collapse-container{z-index:calc(6*10)}:host([data-style-direction=vertical][data-level=\"1\"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large{padding-left:calc(1*4rem - .3rem)}:host([data-level=\"1\"]) .mg-c-menu-item__collapse-container{z-index:calc(1*10)}:host([data-style-direction=vertical][data-level=\"2\"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large{padding-left:calc(2*4rem - .3rem)}:host([data-level=\"2\"]) .mg-c-menu-item__collapse-container{z-index:calc(2*10)}:host([data-style-direction=vertical][data-level=\"3\"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large{padding-left:calc(3*4rem - .3rem)}:host([data-level=\"3\"]) .mg-c-menu-item__collapse-container{z-index:calc(3*10)}:host([data-style-direction=vertical][data-level=\"4\"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large{padding-left:calc(4*4rem - .3rem)}:host([data-level=\"4\"]) .mg-c-menu-item__collapse-container{z-index:calc(4*10)}:host([data-style-direction=vertical][data-level=\"5\"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large{padding-left:calc(5*4rem - .3rem)}:host([data-level=\"5\"]) .mg-c-menu-item__collapse-container{z-index:calc(5*10)}:host([data-style-direction=vertical][data-level=\"6\"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large{padding-left:calc(6*4rem - .3rem)}:host([data-level=\"6\"]) .mg-c-menu-item__collapse-container{z-index:calc(6*10)}.mg-c-menu-item{max-width:var(--mg-menu-item-navigation-button-max-width)}.mg-c-menu-item__collapse-container{z-index:10;width:max-content}.mg-c-menu-item__navigation-button-center{min-width:0}.mg-c-menu-item__navigation-button-text-content{display:flex;width:100%;align-items:center}.mg-c-menu-item__navigation-button-text-content-notification,.mg-c-menu-item__navigation-button-text-content ::slotted([slot=information]){margin-left:1rem;font-size:var(--font-size)}.mg-c-menu-item__navigation-button-new-tab{margin-left:.6rem}.mg-c-menu-item__navigation-button-chevron{margin-left:auto;transition:200ms}.mg-c-menu-item__navigation-button-chevron--rotate.mg-c-menu-item__navigation-button-chevron{transform:rotate(180deg)}:host{position:relative;display:flex;--mg-popover-padding-vertical:0;--mg-popover-padding-horizontal:0;--mg-popover-max-width:unset}:host([data-style-direction=vertical]){flex-direction:column}:host([data-style-direction=vertical]) .mg-c-menu-item__navigation-button{width:100%}:host([data-style-direction=vertical]) .mg-c-menu-item__collapse-container{position:unset;top:unset;left:unset;width:unset}:host([data-style-direction=vertical]) .mg-c-menu-item-chevron{margin-left:auto}:host([data-overflow-more]){--mg-menu-item-navigation-button-column-gap:0}:host([data-overflow-more]) .mg-c-menu-item__navigation-button-chevron{display:none}:host([data-overflow-more]) .mg-c-menu-item__navigation-button-text-content ::slotted([slot=information]){margin-left:0}:host([data-overflow-more]) ::slotted(mg-menu){--mg-menu-item-navigation-button-column-gap:1rem}:host([data-style-direction=horizontal]) .mg-c-menu-item__collapse-container.mg-c-menu-item__collapse-container--first-level,:host([data-overflow-more]) .mg-c-menu-item__collapse-container.mg-c-menu-item__collapse-container--first-level{background-color:hsl(var(--color-light))}:host([data-style-direction=horizontal]) .mg-c-menu-item__collapse-container.mg-c-menu-item__collapse-container--first-level ::slotted(mg-menu),:host([data-overflow-more]) .mg-c-menu-item__collapse-container.mg-c-menu-item__collapse-container--first-level ::slotted(mg-menu){padding:1rem 0}::slotted([slot=label]),::slotted([slot=metadata]){display:block;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}::slotted(*){display:flex;flex-direction:column}:host([status=disabled]){pointer-events:none}:host([hidden]){display:none}";
4518
+ const mgMenuItemCss = ".mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}.mg-c-menu-item.mg-c-menu-item--size-regular .mg-c-menu-item__navigation-button,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-regular{height:3.8rem;padding:1rem 2rem}.mg-c-menu-item.mg-c-menu-item--size-regular .mg-c-menu-item__navigation-button,.mg-c-menu-item.mg-c-menu-item--size-regular .mg-c-menu-item__navigation-button ::slotted([slot=label]),.mg-c-menu-item.mg-c-menu-item--size-regular .mg-c-menu-item__navigation-button ::slotted([slot=metadata]),.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-regular,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-regular ::slotted([slot=label]),.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-regular ::slotted([slot=metadata]){font-size:var(--font-size)}.mg-c-menu-item.mg-c-menu-item--size-regular .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--horizontal,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-regular.mg-c-menu-item__navigation-button--horizontal{padding-bottom:calc(1rem - 0.3rem)}.mg-c-menu-item.mg-c-menu-item--size-regular .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--vertical,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-regular.mg-c-menu-item__navigation-button--vertical{padding-left:calc(2rem - 0.3rem)}.mg-c-menu-item.mg-c-menu-item--size-medium .mg-c-menu-item__navigation-button,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium{height:5.1rem;padding:1rem 3rem}.mg-c-menu-item.mg-c-menu-item--size-medium .mg-c-menu-item__navigation-button,.mg-c-menu-item.mg-c-menu-item--size-medium .mg-c-menu-item__navigation-button ::slotted([slot=label]),.mg-c-menu-item.mg-c-menu-item--size-medium .mg-c-menu-item__navigation-button ::slotted([slot=metadata]),.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium ::slotted([slot=label]),.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium ::slotted([slot=metadata]){font-size:calc(var(--font-size) + .2rem)}.mg-c-menu-item.mg-c-menu-item--size-medium .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--horizontal,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium.mg-c-menu-item__navigation-button--horizontal{padding-bottom:calc(1rem - 0.3rem)}.mg-c-menu-item.mg-c-menu-item--size-medium .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--vertical,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium.mg-c-menu-item__navigation-button--vertical{padding-left:calc(3rem - 0.3rem)}.mg-c-menu-item.mg-c-menu-item--size-large .mg-c-menu-item__navigation-button,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large{height:7.1rem;padding:1rem 4rem}.mg-c-menu-item.mg-c-menu-item--size-large .mg-c-menu-item__navigation-button,.mg-c-menu-item.mg-c-menu-item--size-large .mg-c-menu-item__navigation-button ::slotted([slot=label]),.mg-c-menu-item.mg-c-menu-item--size-large .mg-c-menu-item__navigation-button ::slotted([slot=metadata]),.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large ::slotted([slot=label]),.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large ::slotted([slot=metadata]){font-size:calc(var(--font-size) + .2rem)}.mg-c-menu-item.mg-c-menu-item--size-large .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--horizontal,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large.mg-c-menu-item__navigation-button--horizontal{padding-bottom:calc(1rem - 0.3rem)}.mg-c-menu-item.mg-c-menu-item--size-large .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--vertical,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large.mg-c-menu-item__navigation-button--vertical{padding-left:calc(4rem - 0.3rem)}.mg-c-menu-item__navigation-button{display:flex;box-sizing:border-box;align-items:center;border:none;background-color:unset;color:hsl(var(--mg-menu-item-color-hsl, var(--color-dark)));column-gap:var(--mg-menu-item-navigation-button-column-gap, 1rem);cursor:pointer;font-family:var(--font-family);font-weight:400;line-height:var(--line-height);text-decoration:none;white-space:nowrap}.mg-c-menu-item__navigation-button:disabled,.mg-c-menu-item__navigation-button--disabled{cursor:default;opacity:var(--mg-disabled-opacity)}.mg-c-menu-item__navigation-button:focus-visible{z-index:10}.mg-c-menu-item__navigation-button:hover:not(.mg-c-menu-item__navigation-button--disabled),.mg-c-menu-item__navigation-button:focus-visible:not(.mg-c-menu-item__navigation-button--disabled){background-color:hsl(var(--mg-menu-item-focused-background-color-hsl)/10%)}.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--active{color:hsl(var(--mg-menu-item-color-active-hsl));font-weight:600}.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--active.mg-c-menu-item__navigation-button--horizontal{border-bottom-color:hsl(var(--mg-menu-item-border-color-active-hsl))}.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--active.mg-c-menu-item__navigation-button--vertical{border-left-color:hsl(var(--mg-menu-item-border-color-active-hsl))}.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--hidden{display:none}.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--horizontal{border-bottom:.3rem solid rgba(0,0,0,0)}.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--vertical{border-left:.3rem solid rgba(0,0,0,0)}:host([data-style-direction=vertical][data-level=\"1\"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-regular{padding-left:calc(1*2rem - .3rem)}:host([data-level=\"1\"]) .mg-c-menu-item__collapse-container{z-index:calc(1*10)}:host([data-style-direction=vertical][data-level=\"2\"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-regular{padding-left:calc(2*2rem - .3rem)}:host([data-level=\"2\"]) .mg-c-menu-item__collapse-container{z-index:calc(2*10)}:host([data-style-direction=vertical][data-level=\"3\"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-regular{padding-left:calc(3*2rem - .3rem)}:host([data-level=\"3\"]) .mg-c-menu-item__collapse-container{z-index:calc(3*10)}:host([data-style-direction=vertical][data-level=\"4\"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-regular{padding-left:calc(4*2rem - .3rem)}:host([data-level=\"4\"]) .mg-c-menu-item__collapse-container{z-index:calc(4*10)}:host([data-style-direction=vertical][data-level=\"5\"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-regular{padding-left:calc(5*2rem - .3rem)}:host([data-level=\"5\"]) .mg-c-menu-item__collapse-container{z-index:calc(5*10)}:host([data-style-direction=vertical][data-level=\"6\"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-regular{padding-left:calc(6*2rem - .3rem)}:host([data-level=\"6\"]) .mg-c-menu-item__collapse-container{z-index:calc(6*10)}:host([data-style-direction=vertical][data-level=\"1\"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium{padding-left:calc(1*3rem - .3rem)}:host([data-level=\"1\"]) .mg-c-menu-item__collapse-container{z-index:calc(1*10)}:host([data-style-direction=vertical][data-level=\"2\"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium{padding-left:calc(2*3rem - .3rem)}:host([data-level=\"2\"]) .mg-c-menu-item__collapse-container{z-index:calc(2*10)}:host([data-style-direction=vertical][data-level=\"3\"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium{padding-left:calc(3*3rem - .3rem)}:host([data-level=\"3\"]) .mg-c-menu-item__collapse-container{z-index:calc(3*10)}:host([data-style-direction=vertical][data-level=\"4\"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium{padding-left:calc(4*3rem - .3rem)}:host([data-level=\"4\"]) .mg-c-menu-item__collapse-container{z-index:calc(4*10)}:host([data-style-direction=vertical][data-level=\"5\"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium{padding-left:calc(5*3rem - .3rem)}:host([data-level=\"5\"]) .mg-c-menu-item__collapse-container{z-index:calc(5*10)}:host([data-style-direction=vertical][data-level=\"6\"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium{padding-left:calc(6*3rem - .3rem)}:host([data-level=\"6\"]) .mg-c-menu-item__collapse-container{z-index:calc(6*10)}:host([data-style-direction=vertical][data-level=\"1\"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large{padding-left:calc(1*4rem - .3rem)}:host([data-level=\"1\"]) .mg-c-menu-item__collapse-container{z-index:calc(1*10)}:host([data-style-direction=vertical][data-level=\"2\"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large{padding-left:calc(2*4rem - .3rem)}:host([data-level=\"2\"]) .mg-c-menu-item__collapse-container{z-index:calc(2*10)}:host([data-style-direction=vertical][data-level=\"3\"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large{padding-left:calc(3*4rem - .3rem)}:host([data-level=\"3\"]) .mg-c-menu-item__collapse-container{z-index:calc(3*10)}:host([data-style-direction=vertical][data-level=\"4\"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large{padding-left:calc(4*4rem - .3rem)}:host([data-level=\"4\"]) .mg-c-menu-item__collapse-container{z-index:calc(4*10)}:host([data-style-direction=vertical][data-level=\"5\"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large{padding-left:calc(5*4rem - .3rem)}:host([data-level=\"5\"]) .mg-c-menu-item__collapse-container{z-index:calc(5*10)}:host([data-style-direction=vertical][data-level=\"6\"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large{padding-left:calc(6*4rem - .3rem)}:host([data-level=\"6\"]) .mg-c-menu-item__collapse-container{z-index:calc(6*10)}.mg-c-menu-item{max-width:var(--mg-menu-item-navigation-button-max-width)}.mg-c-menu-item__collapse-container{z-index:10;width:max-content}.mg-c-menu-item__navigation-button-center{min-width:0}.mg-c-menu-item__navigation-button-text-content{display:flex;width:100%;align-items:center}.mg-c-menu-item__navigation-button-text-content-notification,.mg-c-menu-item__navigation-button-text-content ::slotted([slot=information]){margin-left:1rem;font-size:var(--font-size)}.mg-c-menu-item__navigation-button-new-tab{margin-left:.6rem}.mg-c-menu-item__navigation-button-chevron{display:var(--mg-c-menu-item-chevron-display);margin-left:auto;transition:200ms}.mg-c-menu-item__navigation-button-chevron--rotate.mg-c-menu-item__navigation-button-chevron{transform:rotate(180deg)}:host{position:relative;display:flex;--mg-popover-padding-vertical:0;--mg-popover-padding-horizontal:0;--mg-popover-max-width:unset}:host([data-style-direction=vertical]){flex-direction:column}:host([data-style-direction=vertical]) .mg-c-menu-item__navigation-button{width:100%}:host([data-style-direction=vertical]) .mg-c-menu-item__collapse-container{position:unset;top:unset;left:unset;width:unset}:host([data-style-direction=vertical]) .mg-c-menu-item-chevron{margin-left:auto}:host([data-overflow-more]){--mg-menu-item-navigation-button-column-gap:0}:host([data-overflow-more]) .mg-c-menu-item__navigation-button-chevron{--mg-c-menu-item-chevron-display:none}:host([data-overflow-more]) .mg-c-menu-item__navigation-button-text-content ::slotted([slot=information]){margin-left:0}:host([data-overflow-more]) ::slotted(mg-menu){--mg-menu-item-navigation-button-column-gap:1rem}:host([data-style-direction=horizontal]) .mg-c-menu-item__collapse-container.mg-c-menu-item__collapse-container--first-level,:host([data-overflow-more]) .mg-c-menu-item__collapse-container.mg-c-menu-item__collapse-container--first-level{background-color:hsl(var(--color-light))}:host([data-style-direction=horizontal]) .mg-c-menu-item__collapse-container.mg-c-menu-item__collapse-container--first-level ::slotted(mg-menu),:host([data-overflow-more]) .mg-c-menu-item__collapse-container.mg-c-menu-item__collapse-container--first-level ::slotted(mg-menu){padding:1rem 0}::slotted([slot=label]),::slotted([slot=metadata]){display:block;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}::slotted(*){display:flex;flex-direction:column}:host([status=disabled]){pointer-events:none}:host([hidden]){display:none}";
4516
4519
  const MgMenuItemStyle0 = mgMenuItemCss;
4517
4520
 
4518
4521
  const MgMenuItem = class {
@@ -4578,7 +4581,7 @@ const MgMenuItem = class {
4578
4581
  throw new Error(`<${this.name}> slot "label" is required.`);
4579
4582
  ['label', 'metadata'].forEach(slot => {
4580
4583
  Array.from(this.element.querySelectorAll(`[slot="${slot}"]`)).forEach(element => {
4581
- if (!index$1.Be(element.textContent))
4584
+ if (!index$1.Pe(element.textContent))
4582
4585
  throw new Error(`<${this.name}> slot "${slot}" must have text content.`);
4583
4586
  if ((guard && element.getAttribute('title') === null) || !guard)
4584
4587
  element.setAttribute('title', element.textContent);
@@ -4647,13 +4650,13 @@ const MgMenuItem = class {
4647
4650
  * @returns HTML Element
4648
4651
  */
4649
4652
  this.renderSlot = () => index.h("slot", null);
4650
- this.identifier = index$1.Re('mg-menu-item');
4653
+ this.identifier = index$1.Ne('mg-menu-item');
4651
4654
  this.href = undefined;
4652
4655
  this.target = undefined;
4653
4656
  this.status = Status$1.VISIBLE;
4654
4657
  this.expanded = false;
4655
4658
  this.size = 'regular';
4656
- this.navigationButtonClassList = new index$1.Me([this.navigationButton]);
4659
+ this.navigationButtonClassList = new index$1.Be([this.navigationButton]);
4657
4660
  this.direction = undefined;
4658
4661
  this.isInMainMenu = undefined;
4659
4662
  this.isItemMore = undefined;
@@ -4800,7 +4803,7 @@ const MgMenuItem = class {
4800
4803
  * Emit event when component is updated
4801
4804
  */
4802
4805
  componentShouldUpdate() {
4803
- return index$1.Ue(() => {
4806
+ return index$1.ze(() => {
4804
4807
  this.itemUpdated.emit();
4805
4808
  });
4806
4809
  }
@@ -4813,7 +4816,8 @@ const MgMenuItem = class {
4813
4816
  ['mg-c-menu-item__collapse-container']: true,
4814
4817
  ['mg-c-menu-item__collapse-container--first-level']: (this.isInMainMenu || this.isItemMore) && this.isDirection(Direction.HORIZONTAL),
4815
4818
  });
4816
- return (index.h(index.Host, { key: 'a340655f5b46ed3019e1be29cfade7dfbc480ec2', role: this.isItemMore ? 'presentation' : 'listitem' }, this.displayPopover() ? (index.h("mg-popover", { display: this.expanded, placement: "bottom-start", arrowHide: true, "onDisplay-change": this.handlePopoverDisplay, identifier: this.getPopoverIdentifier() }, this.renderInteractiveElement(), index.h("div", { class: getContainerClasses(), slot: "content" }, this.renderSlot()))) : ([
4819
+ return (index.h(index.Host, { key: '10b41e1b90d01a0f0df082cd9fc50884e87c2e59', role: this.isItemMore ? 'presentation' : 'listitem' }, this.displayPopover() ? (index.h("mg-popover", { display: this.expanded, placement: "bottom-start", arrowHide: true, "onDisplay-change": this.handlePopoverDisplay, identifier: this.getPopoverIdentifier(), "data-fallback-placement": "bottom-end" // use for the last element of the menu if it is placed on the right side
4820
+ }, this.renderInteractiveElement(), index.h("div", { class: getContainerClasses(), slot: "content" }, this.renderSlot()))) : ([
4817
4821
  this.renderInteractiveElement(),
4818
4822
  index.h("div", { key: "vertical-container", class: getContainerClasses(), hidden: !this.expanded }, this.renderSlot()),
4819
4823
  ])));
@@ -4906,13 +4910,13 @@ const MgMessage = class {
4906
4910
  return 'exclamation-circle';
4907
4911
  }
4908
4912
  };
4909
- this.identifier = index$1.Re('mg-message');
4913
+ this.identifier = index$1.Ne('mg-message');
4910
4914
  this.delay = undefined;
4911
4915
  this.variant = variants$1[0];
4912
4916
  this.closeButton = false;
4913
4917
  this.hide = false;
4914
4918
  this.noAriaRole = undefined;
4915
- this.classCollection = new index$1.Me(['mg-c-message']);
4919
+ this.classCollection = new index$1.Be(['mg-c-message']);
4916
4920
  this.hasActions = false;
4917
4921
  }
4918
4922
  validateDelay(newValue) {
@@ -4991,7 +4995,7 @@ const MgMessage = class {
4991
4995
  let role;
4992
4996
  if (!this.noAriaRole)
4993
4997
  role = this.variant === 'info' ? 'status' : 'alert';
4994
- return (index.h("div", { key: '2a2a66325834f5072ee6e89de0bcc40c3e0e6753', id: this.identifier, class: this.classCollection.join(), role: role }, index.h("mg-card", { key: '573448d09a88125eecf6b0c482cc589602238fea', variant: this.variant, "variant-style": "bar-left" }, index.h("span", { key: '81295346d39fdfeda74b9cdab5c468cce52cbc43', class: "mg-c-message__icon" }, index.h("mg-icon", { key: 'b8d655f6cffd963d601b8001f6b066e9e6ca379f', icon: this.getIcon() })), index.h("div", { key: '831938b7c2be97edb8dd37d2f28af6798bb32896', class: "mg-c-message__content" }, index.h("span", { key: '2c2d085285ec3feca97fa046ae038c725d0f05db', class: "mg-c-message__content-slot" }, index.h("slot", { key: '1907d1d60816a5e2d53e6ae87e60f66df253208b' })), this.hasActions && index.h("span", { class: "mg-c-message__content-separator" }), this.hasActions && (index.h("span", { class: "mg-c-message__content-actions-slot" }, index.h("slot", { name: "actions" })))), this.closeButton && (index.h("span", { class: "mg-c-message__close-button" }, index.h("mg-button", { identifier: this.closeButtonId, "is-icon": true, variant: "flat", label: this.messages.message.closeButton, onClick: this.handleClose }, index.h("mg-icon", { icon: "cross" })))))));
4998
+ return (index.h("div", { key: 'a30da97a75717852677dc66ba0e9bc0a000c8c35', id: this.identifier, class: this.classCollection.join(), role: role }, index.h("mg-card", { key: '9cea0e509146e245a91290e76bc3908fcf3e3806', variant: this.variant, "variant-style": "bar-left" }, index.h("span", { key: '0beb527b84230d6cafed7ac1d2c9caa59ad1f80f', class: "mg-c-message__icon" }, index.h("mg-icon", { key: 'e0346db73f7c2c4595bb09e1be93039763106a5d', icon: this.getIcon() })), index.h("div", { key: '128567f70f2d664688cf012ab995a57eea2bca17', class: "mg-c-message__content" }, index.h("span", { key: '2b1cc03309002908b6c54b95c6ad58bdc966e787', class: "mg-c-message__content-slot" }, index.h("slot", { key: 'fd7b3e74c3bd2a70d2cbbef0a9519cdee38da5ce' })), this.hasActions && index.h("span", { key: 'adb6d3b819226a5e6173f077650be05c64e69f13', class: "mg-c-message__content-separator" }), this.hasActions && (index.h("span", { key: '136b8a00d7b0dbb14750d7637bce7d83d8cfd112', class: "mg-c-message__content-actions-slot" }, index.h("slot", { key: '926939a26ee3fa4e3b4625cdc4003dccc9d2e2e3', name: "actions" })))), this.closeButton && (index.h("span", { key: '770a2313622d50f5dc027d65b878e2955a134ca3', class: "mg-c-message__close-button" }, index.h("mg-button", { key: '094652edc8aa518cb3c0322025b5bf5c66b3fa33', identifier: this.closeButtonId, "is-icon": true, variant: "flat", label: this.messages.message.closeButton, onClick: this.handleClose }, index.h("mg-icon", { key: '2b0ee538aec157e9507bf3c14026e71c422fc365', icon: "cross" })))))));
4995
4999
  }
4996
5000
  get element() { return index.getElement(this); }
4997
5001
  static get watchers() { return {
@@ -5055,12 +5059,12 @@ const MgModal = class {
5055
5059
  */
5056
5060
  this.setFocus = () => {
5057
5061
  // Get all focusable elements
5058
- const slottedFocusableElements = Array.from(this.element.querySelectorAll(index$1.De));
5062
+ const slottedFocusableElements = Array.from(this.element.querySelectorAll(index$1.He));
5059
5063
  // If close button is enabled or at least one of the slotted element is focusable
5060
5064
  if (this.closeButton || slottedFocusableElements.length > 0) {
5061
5065
  // Check if slotted focusable elements have shadowDom with focusable elements
5062
5066
  this.modalFocusableElements = slottedFocusableElements.reduce((acc, focusableElement) => {
5063
- acc.push(focusableElement.shadowRoot !== null ? focusableElement.shadowRoot.querySelector(index$1.De) || focusableElement : focusableElement);
5067
+ acc.push(focusableElement.shadowRoot !== null ? focusableElement.shadowRoot.querySelector(index$1.He) || focusableElement : focusableElement);
5064
5068
  return acc;
5065
5069
  }, []);
5066
5070
  // When close button is enabled it's the first focusable element.
@@ -5082,21 +5086,21 @@ const MgModal = class {
5082
5086
  this.handleClose = () => {
5083
5087
  this.hide = true;
5084
5088
  };
5085
- this.identifier = index$1.Re('mg-modal');
5089
+ this.identifier = index$1.Ne('mg-modal');
5086
5090
  this.dialogRole = dialogRoles[0];
5087
5091
  this.modalTitle = undefined;
5088
5092
  this.closeButton = false;
5089
5093
  this.hide = undefined;
5090
5094
  this.hasActions = false;
5091
5095
  this.hasContent = false;
5092
- this.classCollection = new index$1.Me(['mg-c-modal']);
5096
+ this.classCollection = new index$1.Be(['mg-c-modal']);
5093
5097
  }
5094
5098
  validateDialogRole(newValue) {
5095
5099
  if (!dialogRoles.includes(newValue))
5096
5100
  throw new Error(`<mg-modal> prop "dialogRole" must be one of: ${dialogRoles.join(', ')}.`);
5097
5101
  }
5098
5102
  validateModalTitle(newValue) {
5099
- if (!index$1.Be(newValue)) {
5103
+ if (!index$1.Pe(newValue)) {
5100
5104
  throw new Error('<mg-modal> prop "modalTitle" is required.');
5101
5105
  }
5102
5106
  }
@@ -5164,14 +5168,14 @@ const MgModal = class {
5164
5168
  * @returns HTML Element
5165
5169
  */
5166
5170
  render() {
5167
- return (index.h("div", { key: 'a6d02e454214fe334e4fb9b7278b97b6713db306', role: this.dialogRole, id: this.identifier, class: this.classCollection.join(), tabindex: "-1", "aria-labelledby": this.titleId, "aria-modal": "true", "aria-hidden": this.hide }, index.h("mg-card", { key: 'd192af0bfa6105f8ddb43ec73cfffb1d0469aca8' }, index.h("div", { key: '4f4f5b08ce39f20ca4f65686da294487d955ebd4', class: "mg-c-modal__dialog" }, index.h("header", { key: 'fd87c3a17a5b2783f4ffb79d23c6005cbf82af53', class: "mg-c-modal__header" }, this.closeButton && (index.h("span", { class: "mg-c-modal__close-button" }, index.h("mg-button", { identifier: `${this.identifier}-close-button`, "is-icon": true, variant: "flat", label: this.messages.modal.closeButton, onClick: this.handleClose, ref: (el) => {
5171
+ return (index.h("div", { key: '472cae1bd3a5291e14265d00ee594c726f179a1f', role: this.dialogRole, id: this.identifier, class: this.classCollection.join(), tabindex: "-1", "aria-labelledby": this.titleId, "aria-modal": "true", "aria-hidden": this.hide }, index.h("mg-card", { key: '870e59e1126988fefe5c04380b5bbd593e8629af' }, index.h("div", { key: '9d49127cf8bf68b55549f379b760c6597b1a2d6c', class: "mg-c-modal__dialog" }, index.h("header", { key: 'b8629ece3524f5dd64b248080fa06f21980ddf7b', class: "mg-c-modal__header" }, this.closeButton && (index.h("span", { key: 'f38d648290d1db901fb2cc09ae8b8ed13bf7e0b6', class: "mg-c-modal__close-button" }, index.h("mg-button", { key: 'b12aecfd77b5fb7588c3b2f6487c10c2cba9f097', identifier: `${this.identifier}-close-button`, "is-icon": true, variant: "flat", label: this.messages.modal.closeButton, onClick: this.handleClose, ref: (el) => {
5168
5172
  if (el !== null) {
5169
5173
  // store closeButton Element
5170
5174
  this.closeButtonElement = el;
5171
5175
  // add close button element to modalFocusableElements when it is render
5172
5176
  this.modalFocusableElements.unshift(this.closeButtonElement);
5173
5177
  }
5174
- } }, index.h("mg-icon", { icon: "cross" })))), index.h("h1", { key: '363962112d7d1db2f13cf91a7964588c4c2be71f', class: "mg-c-modal__title", id: this.titleId }, this.modalTitle)), this.hasContent && (index.h("article", { class: "mg-c-modal__content" }, index.h("slot", { name: "content" }))), this.hasActions && (index.h("footer", { class: "mg-c-modal__footer" }, index.h("slot", { name: "actions" })))))));
5178
+ } }, index.h("mg-icon", { key: '2e5590b14d6b4da659f4f6d8630606a9bafdb9c6', icon: "cross" })))), index.h("h1", { key: '6ca12328af9955d0716c330c32004c68cca11b4c', class: "mg-c-modal__title", id: this.titleId }, this.modalTitle)), this.hasContent && (index.h("article", { key: '0873f01de1bfe75c2e91ea89b762d433006e7878', class: "mg-c-modal__content" }, index.h("slot", { key: 'dd8fd2e6527d640c40261dcbae76846d107337dc', name: "content" }))), this.hasActions && (index.h("footer", { key: 'e97c6d3ad9bbca892afcabeb5b15e63425d05070', class: "mg-c-modal__footer" }, index.h("slot", { key: 'c865f0b4244f5ea4ed5e7733813a8b10bc985504', name: "actions" })))))));
5175
5179
  }
5176
5180
  get element() { return index.getElement(this); }
5177
5181
  static get watchers() { return {
@@ -5243,7 +5247,7 @@ const MgPagination = class {
5243
5247
  this.handleGoToPage = (action, disabled) => {
5244
5248
  !disabled && this.goToPage(action === NavigationAction.NEXT ? this.currentPage + 1 : this.currentPage - 1);
5245
5249
  };
5246
- this.identifier = index$1.Re('mg-pagination');
5250
+ this.identifier = index$1.Ne('mg-pagination');
5247
5251
  this.label = undefined;
5248
5252
  this.hideNavigationLabels = undefined;
5249
5253
  this.hidePageCount = undefined;
@@ -5286,10 +5290,10 @@ const MgPagination = class {
5286
5290
  * @returns HTML Element
5287
5291
  */
5288
5292
  render() {
5289
- const navigationActionButton = (disabled, action) => (index.h("mg-button", { key: '762b566216021bdfdcbfea249c7a1dbfa409c831', identifier: `${this.identifier}-button-${action}`, label: this.messages.pagination[`${action}Page`],
5293
+ const navigationActionButton = (disabled, action) => (index.h("mg-button", { key: 'b708c70615e0fb49d1628dc6cf83e54ea5ab0a61', identifier: `${this.identifier}-button-${action}`, label: this.messages.pagination[`${action}Page`],
5290
5294
  // eslint-disable-next-line react/jsx-no-bind
5291
- onClick: () => this.handleGoToPage(action, disabled), disabled: disabled, variant: "flat", isIcon: this.hideNavigationLabels }, action === NavigationAction.PREVIOUS && index.h("mg-icon", { icon: "chevron-left" }), !this.hideNavigationLabels && this.messages.general[action], action === NavigationAction.NEXT && index.h("mg-icon", { icon: "chevron-right" })));
5292
- return (index.h(index.Host, { key: '9bfc7cd582798b28f847f1be74bc966a10afaf01', hidden: this.totalPages < 2 }, index.h("nav", { key: 'e79017c814781d4452868bb2f50a71682c4da1f1', role: "navigation", "aria-label": this.label, id: this.identifier, class: { 'mg-c-pagination': true, 'mg-c-pagination--hide-page-count': this.hidePageCount } }, navigationActionButton(this.currentPage <= 1, NavigationAction.PREVIOUS), !this.hidePageCount && (index.h("mg-input-select", { identifier: `${this.identifier}-select`, items: range(1, this.totalPages).map(page => page.toString()), label: this.messages.pagination.selectPage, "label-hide": true, "on-value-change": this.handleSelect, value: this.currentPage.toString(), "placeholder-hide": true })), index.h("span", { key: '5e9cdd8126ee7d00db9199d5b738d76f651c8585', class: "mg-u-visually-hidden" }, this.messages.pagination.page, " ", this.currentPage), index.h("span", { key: '55d248aabdc782a0e3a06b28fd2df36aca4733b0', class: { 'mg-u-visually-hidden': this.hidePageCount } }, "/ ", this.totalPages, " ", this.totalPages > 1 ? this.messages.pagination.pages : this.messages.pagination.page), navigationActionButton(this.currentPage >= this.totalPages, NavigationAction.NEXT))));
5295
+ onClick: () => this.handleGoToPage(action, disabled), disabled: disabled, variant: "flat", isIcon: this.hideNavigationLabels }, action === NavigationAction.PREVIOUS && index.h("mg-icon", { key: '1c8375c68fd7729fb7ea91220ffb4f7267ac3a47', icon: "chevron-left" }), !this.hideNavigationLabels && this.messages.general[action], action === NavigationAction.NEXT && index.h("mg-icon", { key: '1af0c20c2d5ce86e593b2eca82dee410a782c193', icon: "chevron-right" })));
5296
+ return (index.h(index.Host, { key: '4490a0b9d3c0ac55519d052b4d76ab8f682f0f3a', hidden: this.totalPages < 2 }, index.h("nav", { key: 'eaf362cd327e88290f3af5dcfd1d46fff6178ff9', role: "navigation", "aria-label": this.label, id: this.identifier, class: { 'mg-c-pagination': true, 'mg-c-pagination--hide-page-count': this.hidePageCount } }, navigationActionButton(this.currentPage <= 1, NavigationAction.PREVIOUS), !this.hidePageCount && (index.h("mg-input-select", { key: '06c9786c833302a4ee88ed7f2217875112ee7a20', identifier: `${this.identifier}-select`, items: range(1, this.totalPages).map(page => page.toString()), label: this.messages.pagination.selectPage, "label-hide": true, "on-value-change": this.handleSelect, value: this.currentPage.toString(), "placeholder-hide": true })), index.h("span", { key: '7877dbee55a509b13c8cf881154d96bbe1c5cee7', class: "mg-u-visually-hidden" }, this.messages.pagination.page, " ", this.currentPage), index.h("span", { key: 'd4615625b40108526f7aaa8f8a8505b2a61e43e9', class: { 'mg-u-visually-hidden': this.hidePageCount } }, "/ ", this.totalPages, " ", this.totalPages > 1 ? this.messages.pagination.pages : this.messages.pagination.page), navigationActionButton(this.currentPage >= this.totalPages, NavigationAction.NEXT))));
5293
5297
  }
5294
5298
  get element() { return index.getElement(this); }
5295
5299
  static get watchers() { return {
@@ -5408,7 +5412,7 @@ const MgPanel = class {
5408
5412
  ];
5409
5413
  return this.titlePosition === 'right' ? children.reverse() : children;
5410
5414
  };
5411
- this.identifier = index$1.Re('mg-panel');
5415
+ this.identifier = index$1.Ne('mg-panel');
5412
5416
  this.panelTitle = undefined;
5413
5417
  this.titlePattern = undefined;
5414
5418
  this.titlePatternErrorMessage = undefined;
@@ -5417,12 +5421,12 @@ const MgPanel = class {
5417
5421
  this.expanded = false;
5418
5422
  this.expandToggleDisplay = expandToggleDisplays[0];
5419
5423
  this.expandToggleDisabled = undefined;
5420
- this.classCollection = new index$1.Me(['mg-c-panel']);
5424
+ this.classCollection = new index$1.Be(['mg-c-panel']);
5421
5425
  this.isEditing = false;
5422
5426
  this.updatedPanelTitle = undefined;
5423
5427
  }
5424
5428
  validatePanelTitle(newValue) {
5425
- if (!index$1.Be(newValue))
5429
+ if (!index$1.Pe(newValue))
5426
5430
  throw new Error('<mg-panel> prop "panelTitle" is required.');
5427
5431
  this.titleChange.emit(newValue);
5428
5432
  }
@@ -5473,7 +5477,7 @@ const MgPanel = class {
5473
5477
  */
5474
5478
  render() {
5475
5479
  const headerId = `${this.identifier}-header`;
5476
- return (index.h("section", { key: '75509a6a7fdba04cea71380d46f5d0b66bbc9602', class: this.classCollection.join(), id: this.identifier }, index.h("mg-card", { key: '8ec07f87babeae31db85b5181d5884119010e8ce' }, index.h("header", { key: '045e43ab54c95691e1c4b758504bffc995f63340', class: { 'mg-c-panel__header': true, 'mg-c-panel__header--reverse': this.titlePosition === 'right' }, id: headerId }, this.renderHeaderChildren()), index.h("article", { key: '096d93e147c30c6ece4a6a3f5ee3acff05dc5143', class: "mg-c-panel__content", id: `${this.identifier}-content`, "aria-labelledby": headerId, hidden: !this.expanded }, index.h("slot", { key: '37f2d61903662b519e583eca0ca90c044386e539' })))));
5480
+ return (index.h("section", { key: 'd01136210425cb7790aab87d6c137ba74fc02af5', class: this.classCollection.join(), id: this.identifier }, index.h("mg-card", { key: '84084da775de623fd20c069de5e49d2542755907' }, index.h("header", { key: '9f3ef1d0d7b2dc275d0c7b39175e0f775cbb1e1b', class: { 'mg-c-panel__header': true, 'mg-c-panel__header--reverse': this.titlePosition === 'right' }, id: headerId }, this.renderHeaderChildren()), index.h("article", { key: '4b6cd2b1b604515d657368642fe21b21eb33b55b', class: "mg-c-panel__content", id: `${this.identifier}-content`, "aria-labelledby": headerId, hidden: !this.expanded }, index.h("slot", { key: '45db8591e0b85ed5e9704dc1a42fa75d24e96e39' })))));
5477
5481
  }
5478
5482
  get element() { return index.getElement(this); }
5479
5483
  static get watchers() { return {
@@ -7373,7 +7377,7 @@ const MgPopover = class {
7373
7377
  mgPopoverContent.setAttribute('id', this.identifier);
7374
7378
  }
7375
7379
  };
7376
- this.identifier = index$1.Re('mg-popover');
7380
+ this.identifier = index$1.Ne('mg-popover');
7377
7381
  this.placement = 'bottom';
7378
7382
  this.arrowHide = false;
7379
7383
  this.closeButton = false;
@@ -7416,7 +7420,7 @@ const MgPopover = class {
7416
7420
  */
7417
7421
  componentWillLoad() {
7418
7422
  // Get windows to attach events
7419
- this.windows = index$1._e(window);
7423
+ this.windows = index$1.we(window);
7420
7424
  // render mg-popover-content slot
7421
7425
  this.renderPopoverContent();
7422
7426
  this.validateCloseButton(this.closeButton);
@@ -7434,6 +7438,10 @@ const MgPopover = class {
7434
7438
  // Add aria attributes
7435
7439
  interactiveElement.setAttribute('aria-controls', this.identifier);
7436
7440
  interactiveElement.setAttribute('aria-expanded', `${this.display}`);
7441
+ const fallbackPlacements = [];
7442
+ if (this.element.dataset.fallbackPlacement) {
7443
+ fallbackPlacements.push(this.element.dataset.fallbackPlacement);
7444
+ }
7437
7445
  // Create popperjs popover
7438
7446
  this.popper = createPopper(interactiveElement, this.mgPopover, {
7439
7447
  placement: this.placement,
@@ -7448,7 +7456,7 @@ const MgPopover = class {
7448
7456
  {
7449
7457
  name: 'flip',
7450
7458
  options: {
7451
- fallbackPlacements: ['auto'],
7459
+ fallbackPlacements: [...fallbackPlacements, 'auto'],
7452
7460
  },
7453
7461
  },
7454
7462
  ],
@@ -7478,7 +7486,7 @@ const MgPopover = class {
7478
7486
  * @returns HTML Element
7479
7487
  */
7480
7488
  render() {
7481
- return (index.h(index.Host, { key: '2faad932884b3c0a13e42f960470096ad7c2a4e9' }, index.h("slot", { key: '270b328576a6772d54d4cff826f2b7c63a9a6cda' }), index.h("slot", { key: '9fc11feb085c19562bdef1966135edee44799e21', name: "content" })));
7489
+ return (index.h(index.Host, { key: 'a01aff00a17da32a72491629ba80ec51a34cdb0e' }, index.h("slot", { key: 'bb314190042b65bf899e34efac1781ce9230930f' }), index.h("slot", { key: 'daba0b8cb0b1b3b4637bb972da309a9afb73f99e', name: "content" })));
7482
7490
  }
7483
7491
  get element() { return index.getElement(this); }
7484
7492
  static get watchers() { return {
@@ -7504,7 +7512,7 @@ const MgPopoverContent = class {
7504
7512
  this.hideContent.emit();
7505
7513
  };
7506
7514
  this.closeButton = false;
7507
- this.classCollection = new index$1.Me(['mg-c-popover-content']);
7515
+ this.classCollection = new index$1.Be(['mg-c-popover-content']);
7508
7516
  }
7509
7517
  /*************
7510
7518
  * Lifecycle *
@@ -7522,7 +7530,7 @@ const MgPopoverContent = class {
7522
7530
  componentDidLoad() {
7523
7531
  const headingTags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
7524
7532
  const slottedTitleElement = this.element.querySelector('[slot="title"]');
7525
- if (slottedTitleElement && !index$1.Fe(slottedTitleElement, headingTags)) {
7533
+ if (slottedTitleElement && !index$1.Ce(slottedTitleElement, headingTags)) {
7526
7534
  throw new Error(`<mg-popover> Slotted title must be a heading: ${headingTags.join(', ')}`);
7527
7535
  }
7528
7536
  }
@@ -7531,7 +7539,7 @@ const MgPopoverContent = class {
7531
7539
  * @returns HTML Element
7532
7540
  */
7533
7541
  render() {
7534
- return (index.h(index.Host, { key: 'e2ec01fc83727038047673eb89fa7a1fc6b90abe' }, index.h("mg-card", { key: '2ba199e78605edc19a6a0ddefb5a6749d80f6119', class: this.classCollection.join() }, this.closeButton && (index.h("mg-button", { "is-icon": true, variant: "flat", label: this.messages.general.close, onClick: this.handleCloseButton }, index.h("mg-icon", { icon: "cross" }))), index.h("div", { key: '1b6275e0da818d3f5606a9a49974f85b2aedda8a', class: "mg-c-popover-content__title" }, index.h("slot", { key: '6205bd6ccfba59e5526388b2f24251f5ff6cb6dc', name: "title" })), index.h("slot", { key: 'f1bc97234ef01af903e1c507bc79805ad252f02e', name: "content" })), index.h("slot", { key: '5f1a1a4fd2b0e86384b2b3d46da2d408fcec2e4e', name: "arrow" })));
7542
+ return (index.h(index.Host, { key: 'ffe73fca1c2d8ffa0f5ac2359b50a453b37df7be' }, index.h("mg-card", { key: 'f6e04d90892104abf496cf3ca3a601cb747346c9', class: this.classCollection.join() }, this.closeButton && (index.h("mg-button", { key: '53b6f7360b07321c0433fb2f44f1b1dd9016f204', "is-icon": true, variant: "flat", label: this.messages.general.close, onClick: this.handleCloseButton }, index.h("mg-icon", { key: 'aa638786bca9af815d36e1de905559d60e68e44c', icon: "cross" }))), index.h("div", { key: '0b9f1319e409a0b1d75d16236806fd024c8b804e', class: "mg-c-popover-content__title" }, index.h("slot", { key: '7f52704d2ed49ea048ffd06b763a238d288ccaf3', name: "title" })), index.h("slot", { key: '7a2fd6b013e592acb616793439b2f4e8458ec372', name: "content" })), index.h("slot", { key: 'ceb0a6453ece1b861fe5ab3d63e803b1f41cb148', name: "arrow" })));
7535
7543
  }
7536
7544
  get element() { return index.getElement(this); }
7537
7545
  };
@@ -7558,7 +7566,7 @@ const MgSkipLinks = class {
7558
7566
  this.links = undefined;
7559
7567
  }
7560
7568
  validateLinks(links) {
7561
- if (links === undefined || links.length === 0 || links.some(link => !index$1.Be(link.href) || !link.href.startsWith('#') || !index$1.Be(link.label))) {
7569
+ if (links === undefined || links.length === 0 || links.some(link => !index$1.Pe(link.href) || !link.href.startsWith('#') || !index$1.Pe(link.label))) {
7562
7570
  throw new Error(`<mg-skip-links> prop "links": Cannot be empty and each link must contains an href starting with a "#" and a non empty label attributes.`);
7563
7571
  }
7564
7572
  }
@@ -7577,7 +7585,7 @@ const MgSkipLinks = class {
7577
7585
  * @returns HTML Element
7578
7586
  */
7579
7587
  render() {
7580
- return (index.h("nav", { key: 'c66cf3fb09a459865bb10f21a7f1b7c1c04eec87', class: "mg-c-skip-links", role: "navigation", "aria-label": this.messages.skipLinks.navLabel }, index.h("ul", { key: 'a8855a047dc8352df52ac16ca9c9a4b7ccf100c0', class: "mg-c-skip-links__list", role: "list" }, this.links.map(link => (index.h("li", { key: link.href }, index.h("a", { class: "mg-c-skip-links__link", href: link.href, onClick: this.handleLinkCLick }, link.label)))))));
7588
+ return (index.h("nav", { key: '2dac1b6dab0eb2634b803240325822ea3c8bae63', class: "mg-c-skip-links", role: "navigation", "aria-label": this.messages.skipLinks.navLabel }, index.h("ul", { key: 'e050de2426d080ede6a2b983ec0f9452b0e0f43b', class: "mg-c-skip-links__list", role: "list" }, this.links.map(link => (index.h("li", { key: link.href }, index.h("a", { class: "mg-c-skip-links__link", href: link.href, onClick: this.handleLinkCLick }, link.label)))))));
7581
7589
  }
7582
7590
  get element() { return index.getElement(this); }
7583
7591
  static get watchers() { return {
@@ -7710,7 +7718,7 @@ const MgTabs = class {
7710
7718
  */
7711
7719
  this.resetFocus = () => {
7712
7720
  // update asynchronously tabindex to prevent get focus on new tabindex at then end of event process
7713
- index$1.Ue(() => {
7721
+ index$1.ze(() => {
7714
7722
  this.tabFocus = undefined;
7715
7723
  Array.from(this.element.shadowRoot.querySelectorAll('[data-index]')).forEach((tab, index) => {
7716
7724
  tab.setAttribute('tabindex', this.activeTab - this.startIndex !== index ? '-1' : '0');
@@ -7725,16 +7733,16 @@ const MgTabs = class {
7725
7733
  if (slots.length !== this.tabs.length)
7726
7734
  throw new Error('<mg-tabs> Must have slots counts equal to tabs count.');
7727
7735
  };
7728
- this.identifier = index$1.Re('mg-tabs');
7736
+ this.identifier = index$1.Ne('mg-tabs');
7729
7737
  this.label = undefined;
7730
7738
  this.size = 'regular';
7731
7739
  this.items = undefined;
7732
7740
  this.activeTab = undefined;
7733
7741
  this.tabs = [];
7734
- this.classCollection = new index$1.Me(['mg-c-tabs']);
7742
+ this.classCollection = new index$1.Be(['mg-c-tabs']);
7735
7743
  }
7736
7744
  validateLabel(newValue) {
7737
- if (!index$1.Be(newValue)) {
7745
+ if (!index$1.Pe(newValue)) {
7738
7746
  throw new Error('<mg-tabs> prop "label" is required.');
7739
7747
  }
7740
7748
  }
@@ -7746,7 +7754,7 @@ const MgTabs = class {
7746
7754
  }
7747
7755
  validateItems(newValue) {
7748
7756
  // String array
7749
- if (index$1.Oe(newValue))
7757
+ if (index$1.Ue(newValue))
7750
7758
  this.tabs = newValue.map(item => ({ label: item, status: Status.VISIBLE }));
7751
7759
  // Object array
7752
7760
  else if (Array.isArray(newValue) && newValue.length > 0 && newValue.every(isTabItem))
@@ -7808,7 +7816,7 @@ const MgTabs = class {
7808
7816
  * @returns HTML Element
7809
7817
  */
7810
7818
  render() {
7811
- return (index.h("div", { key: '6aa138347fc29ccb2ebadc034a50ad6daa61fcee', class: this.classCollection.join() }, index.h("header", { key: 'c5a350bd2e66f3fad27eec61d51dcd7aebd8e5c2', role: "tablist", "aria-label": this.label, class: "mg-c-tabs__header" }, this.tabs.map((tab, index$1) => (index.h("button", { key: tab.label, role: "tab", id: this.getElementId(this.identifier, index$1), class: {
7819
+ return (index.h("div", { key: '9327c6fb0d13d41d82b50e2f4f79696916ef142f', class: this.classCollection.join() }, index.h("header", { key: 'b783c343af1e817a2ab231d803e8ecf32df52566', role: "tablist", "aria-label": this.label, class: "mg-c-tabs__header" }, this.tabs.map((tab, index$1) => (index.h("button", { key: tab.label, role: "tab", id: this.getElementId(this.identifier, index$1), class: {
7812
7820
  [`${this.buttonTabBaseClass}`]: true,
7813
7821
  [`${this.buttonTabBaseClass}--horizontal`]: true,
7814
7822
  [`${this.getNavigationButtonClass(Status.ACTIVE)}`]: this.tabHasStatus(tab, Status.ACTIVE),
@@ -7846,7 +7854,7 @@ const MgTag = class {
7846
7854
  this.variant = variants[0];
7847
7855
  this.outline = undefined;
7848
7856
  this.soft = undefined;
7849
- this.classCollection = new index$1.Me(['mg-c-tag']);
7857
+ this.classCollection = new index$1.Be(['mg-c-tag']);
7850
7858
  }
7851
7859
  validateVariant(newValue, oldValue) {
7852
7860
  if (!variants.includes(newValue)) {
@@ -7883,7 +7891,7 @@ const MgTag = class {
7883
7891
  * @param textContent - html element textContent property
7884
7892
  */
7885
7893
  validateTextContent(textContent) {
7886
- if (!index$1.Be(textContent))
7894
+ if (!index$1.Pe(textContent))
7887
7895
  throw new Error('<mg-tag> slot must contain a text content.');
7888
7896
  }
7889
7897
  /*************
@@ -7903,7 +7911,7 @@ const MgTag = class {
7903
7911
  * @returns HTML Element
7904
7912
  */
7905
7913
  render() {
7906
- return (index.h("span", { key: 'f107390f5fb47c34faac9de08a08739499d0e409', class: this.classCollection.join() }, index.h("slot", { key: '04b346f71dff32aa32f52b96553154434ba231eb' })));
7914
+ return (index.h("span", { key: '0746ab46695d72da229ea6b899c5ec9d4d09b0f0', class: this.classCollection.join() }, index.h("slot", { key: 'c1b246aaf9b5b199726c856b7e6a67be54e55b7c' })));
7907
7915
  }
7908
7916
  get element() { return index.getElement(this); }
7909
7917
  static get watchers() { return {
@@ -7943,7 +7951,7 @@ const MgTooltip = class {
7943
7951
  // Enable the event listeners
7944
7952
  this.popper.setOptions(options => (Object.assign(Object.assign({}, options), { modifiers: [...options.modifiers, { name: 'eventListeners', enabled: true }] })));
7945
7953
  // hide when click outside on nextTick to prevent event to trigger after creation
7946
- index$1.Ue(() => {
7954
+ index$1.ze(() => {
7947
7955
  this.windows.forEach((localWindow) => {
7948
7956
  localWindow.addEventListener('click', this.clickOutside, false);
7949
7957
  localWindow.addEventListener('keydown', this.pressEscape, false);
@@ -8114,7 +8122,7 @@ const MgTooltip = class {
8114
8122
  });
8115
8123
  });
8116
8124
  };
8117
- this.identifier = index$1.Re('mg-tooltip');
8125
+ this.identifier = index$1.Ne('mg-tooltip');
8118
8126
  this.message = undefined;
8119
8127
  this.placement = 'bottom';
8120
8128
  this.display = false;
@@ -8125,7 +8133,7 @@ const MgTooltip = class {
8125
8133
  this.renderTooltipContent();
8126
8134
  }
8127
8135
  validateMessage(newValue) {
8128
- if (!index$1.Be(newValue)) {
8136
+ if (!index$1.Pe(newValue)) {
8129
8137
  throw new Error('<mg-tooltip> prop "message" is required.');
8130
8138
  }
8131
8139
  this.mgTooltipContent.message = newValue;
@@ -8174,7 +8182,7 @@ const MgTooltip = class {
8174
8182
  */
8175
8183
  componentWillLoad() {
8176
8184
  // Get windows to attach events
8177
- this.windows = index$1._e(window);
8185
+ this.windows = index$1.we(window);
8178
8186
  // Get tooltip element
8179
8187
  this.renderTooltipContent();
8180
8188
  this.mgTooltipContent = this.element.querySelector(`#${this.identifier}`);
@@ -8193,7 +8201,7 @@ const MgTooltip = class {
8193
8201
  // get slotted element wich is not the tooltip
8194
8202
  const slotElement = this.element.querySelector(`*:not(#${this.identifier})`);
8195
8203
  // Get interactive element
8196
- const interactiveElement = slotElement.matches(index$1.De) ? slotElement : (_a = slotElement.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(index$1.De);
8204
+ const interactiveElement = slotElement.matches(index$1.He) ? slotElement : (_a = slotElement.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(index$1.He);
8197
8205
  // define selected element to become tooltip selector
8198
8206
  this.tooltipedElement = interactiveElement || slotElement;
8199
8207
  // Check if slotted element is a disabled mg-button
@@ -8225,7 +8233,7 @@ const MgTooltip = class {
8225
8233
  * @returns HTML Element
8226
8234
  */
8227
8235
  render() {
8228
- return (index.h(index.Host, { key: '1e78ccb946f44e44298b967286535bd5cb74f00d' }, index.h("slot", { key: 'cbc51e25225889f1b151499e98ab903a7daed059' }), index.h("slot", { key: '3e45bf6b40fc00b245f36d1cead2cb2659786ef9', name: "content" })));
8236
+ return (index.h(index.Host, { key: 'bc92b38b5934945abf8657aeb56804c81274a11e' }, index.h("slot", { key: '5fca70b68f35c72c92252106d4b26766e2f671bb' }), index.h("slot", { key: '4426a5f6f55f549791ff22cc7220d728d2cca04f', name: "content" })));
8229
8237
  }
8230
8238
  get element() { return index.getElement(this); }
8231
8239
  static get watchers() { return {
@@ -8253,7 +8261,7 @@ const MgTooltipContent = class {
8253
8261
  * @returns HTML Element
8254
8262
  */
8255
8263
  render() {
8256
- return (index.h(index.Host, { key: '81cff61f9230149078ace113a6661ae15ab6482e', role: "tooltip" }, index.h("span", { key: '11c2076354834ff3e51055197422726933154540', innerHTML: this.message, class: "mg-tooltip-content__message" }), index.h("slot", { key: 'ce2da739d5ac72a4ae3927a0b528a760f3f6422e', name: "arrow" })));
8264
+ return (index.h(index.Host, { key: '749056e11074a73ef0bbe1aab102c334f0de8fed', role: "tooltip" }, index.h("span", { key: 'e7db4c4ab009e7ebd9908c86d151216919c59e9a', innerHTML: this.message, class: "mg-tooltip-content__message" }), index.h("slot", { key: 'f260fbe909763b8e221acd4178df0880f650a3a5', name: "arrow" })));
8257
8265
  }
8258
8266
  };
8259
8267
  MgTooltipContent.style = MgTooltipContentStyle0;