@mgdis/mg-components 5.27.1 → 5.27.2

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 (144) hide show
  1. package/dist/cjs/{index-4b43c17b.js → index-00072168.js} +43 -43
  2. package/dist/cjs/index-00072168.js.map +1 -0
  3. package/dist/cjs/{index-83102ab3.js → index-7e27c7ae.js} +26 -3
  4. package/dist/cjs/index-7e27c7ae.js.map +1 -0
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/mg-action-more_36.cjs.entry.js +138 -138
  7. package/dist/cjs/mg-action-more_36.cjs.entry.js.map +1 -1
  8. package/dist/cjs/mg-components.cjs.js +2 -2
  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 +1 -1
  39. package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.js +1 -1
  40. package/dist/collection/components/molecules/mg-action-more/mg-action-more.js +3 -3
  41. package/dist/collection/components/molecules/mg-action-more/mg-action-more.js.map +1 -1
  42. package/dist/collection/components/molecules/mg-details/mg-details.js +1 -1
  43. package/dist/collection/components/molecules/mg-form/mg-form.js +1 -1
  44. package/dist/collection/components/molecules/mg-form/mg-form.js.map +1 -1
  45. package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js +3 -3
  46. package/dist/collection/components/molecules/mg-item-more/mg-item-more.js +2 -2
  47. package/dist/collection/components/molecules/mg-item-more/mg-item-more.js.map +1 -1
  48. package/dist/collection/components/molecules/mg-loader/mg-loader.js +1 -1
  49. package/dist/collection/components/molecules/mg-message/mg-message.js +1 -1
  50. package/dist/collection/components/molecules/mg-message/mg-message.js.map +1 -1
  51. package/dist/collection/components/molecules/mg-modal/mg-modal.js +2 -2
  52. package/dist/collection/components/molecules/mg-modal/mg-modal.js.map +1 -1
  53. package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +3 -3
  54. package/dist/collection/components/molecules/mg-pagination/mg-pagination.js.map +1 -1
  55. package/dist/collection/components/molecules/mg-panel/mg-panel.js +1 -1
  56. package/dist/collection/components/molecules/mg-popover/mg-popover-content/mg-popover-content.js +1 -1
  57. package/dist/collection/components/molecules/mg-popover/mg-popover-content/mg-popover-content.js.map +1 -1
  58. package/dist/collection/components/molecules/mg-popover/mg-popover.js +1 -1
  59. package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.js +1 -1
  60. package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +1 -1
  61. package/dist/components/index.es.js +39 -39
  62. package/dist/components/index.es.js.map +1 -1
  63. package/dist/components/index2.js +2 -2
  64. package/dist/components/mg-action-more.js +5 -5
  65. package/dist/components/mg-action-more.js.map +1 -1
  66. package/dist/components/mg-badge2.js +3 -3
  67. package/dist/components/mg-button2.js +5 -5
  68. package/dist/components/mg-button2.js.map +1 -1
  69. package/dist/components/mg-card2.js +3 -3
  70. package/dist/components/mg-card2.js.map +1 -1
  71. package/dist/components/mg-character-left2.js +1 -1
  72. package/dist/components/mg-details.js +3 -3
  73. package/dist/components/mg-divider.js +1 -1
  74. package/dist/components/mg-form.js +4 -4
  75. package/dist/components/mg-form.js.map +1 -1
  76. package/dist/components/mg-icon2.js +2 -2
  77. package/dist/components/mg-illustrated-message.js +5 -5
  78. package/dist/components/mg-input-checkbox-paginated2.js +2 -2
  79. package/dist/components/mg-input-checkbox-paginated2.js.map +1 -1
  80. package/dist/components/mg-input-checkbox.js +5 -5
  81. package/dist/components/mg-input-date.js +11 -11
  82. package/dist/components/mg-input-numeric.js +7 -7
  83. package/dist/components/mg-input-password.js +5 -5
  84. package/dist/components/mg-input-radio.js +5 -5
  85. package/dist/components/mg-input-select2.js +8 -8
  86. package/dist/components/mg-input-select2.js.map +1 -1
  87. package/dist/components/mg-input-text2.js +9 -9
  88. package/dist/components/mg-input-text2.js.map +1 -1
  89. package/dist/components/mg-input-textarea.js +8 -8
  90. package/dist/components/mg-input-textarea.js.map +1 -1
  91. package/dist/components/mg-input-title2.js +3 -3
  92. package/dist/components/mg-input-title2.js.map +1 -1
  93. package/dist/components/mg-input-toggle.js +5 -5
  94. package/dist/components/mg-input2.js +4 -4
  95. package/dist/components/mg-item-more2.js +5 -5
  96. package/dist/components/mg-item-more2.js.map +1 -1
  97. package/dist/components/mg-loader.js +3 -3
  98. package/dist/components/mg-menu-item2.js +6 -6
  99. package/dist/components/mg-message.js +4 -4
  100. package/dist/components/mg-message.js.map +1 -1
  101. package/dist/components/mg-modal.js +8 -8
  102. package/dist/components/mg-modal.js.map +1 -1
  103. package/dist/components/mg-pagination2.js +5 -5
  104. package/dist/components/mg-pagination2.js.map +1 -1
  105. package/dist/components/mg-panel.js +5 -5
  106. package/dist/components/mg-popover-content2.js +4 -4
  107. package/dist/components/mg-popover-content2.js.map +1 -1
  108. package/dist/components/mg-popover2.js +4 -4
  109. package/dist/components/mg-skip-links.js +3 -3
  110. package/dist/components/mg-tabs.js +7 -7
  111. package/dist/components/mg-tag.js +4 -4
  112. package/dist/components/mg-tooltip-content2.js +1 -1
  113. package/dist/components/mg-tooltip2.js +7 -7
  114. package/dist/esm/{index-c4ed16b2.js → index-8d5d1bfd.js} +41 -41
  115. package/dist/esm/index-8d5d1bfd.js.map +1 -0
  116. package/dist/esm/{index-d43d1c5d.js → index-e479d5ae.js} +26 -3
  117. package/dist/esm/index-e479d5ae.js.map +1 -0
  118. package/dist/esm/loader.js +2 -2
  119. package/dist/esm/mg-action-more_36.entry.js +138 -138
  120. package/dist/esm/mg-action-more_36.entry.js.map +1 -1
  121. package/dist/esm/mg-components.js +3 -3
  122. package/dist/esm/mg-components.js.map +1 -1
  123. package/dist/esm/mg-loader.entry.js +4 -4
  124. package/dist/mg-components/mg-components.esm.js +1 -1
  125. package/dist/mg-components/mg-components.esm.js.map +1 -1
  126. package/dist/mg-components/p-7315d4a6.js +3 -0
  127. package/dist/mg-components/p-7315d4a6.js.map +1 -0
  128. package/dist/mg-components/{p-350454b9.js → p-8800813b.js} +2 -2
  129. package/dist/mg-components/p-8800813b.js.map +1 -0
  130. package/dist/mg-components/{p-d4084a15.entry.js → p-99e2f42a.entry.js} +2 -2
  131. package/dist/mg-components/p-f9ac8927.entry.js +2 -0
  132. package/dist/mg-components/{p-9cdd1bc9.entry.js.map → p-f9ac8927.entry.js.map} +1 -1
  133. package/ide/intellij/web-types.json +1 -1
  134. package/ide/vscode/html-custom-data.json +1 -1
  135. package/package.json +10 -10
  136. package/dist/cjs/index-4b43c17b.js.map +0 -1
  137. package/dist/cjs/index-83102ab3.js.map +0 -1
  138. package/dist/esm/index-c4ed16b2.js.map +0 -1
  139. package/dist/esm/index-d43d1c5d.js.map +0 -1
  140. package/dist/mg-components/p-350454b9.js.map +0 -1
  141. package/dist/mg-components/p-9cdd1bc9.entry.js +0 -2
  142. package/dist/mg-components/p-cf0b0988.js +0 -3
  143. package/dist/mg-components/p-cf0b0988.js.map +0 -1
  144. /package/dist/mg-components/{p-d4084a15.entry.js.map → p-99e2f42a.entry.js.map} +0 -0
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-d43d1c5d.js';
2
- import { R as Re, i as initLocales, M as Me, B as Be, U as Ue, F as Fe, N as Ne, d as de, g as ge, W as We, P as Pe, z as ze, q as qe, O as Oe, D as De, _ as _e } from './index-c4ed16b2.js';
1
+ import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-e479d5ae.js';
2
+ import { M as Me, i as initLocales, O as Oe, N as Ne, C as Ce, D as De, U as Ue, g as ge, p as pe, z as ze, W as We, q as qe, w as we, F as Fe, _ as _e, B as Be } from './index-8d5d1bfd.js';
3
3
 
4
4
  /**
5
5
  * Available menu-item positions
@@ -75,7 +75,7 @@ const MgActionMore = class {
75
75
  ************/
76
76
  this.name = 'mg-action-more';
77
77
  this.classBase = 'mg-c-action-more';
78
- this.mgPopoverIdentifier = Re(this.name);
78
+ this.mgPopoverIdentifier = Me(this.name);
79
79
  /************
80
80
  * Methods *
81
81
  ***********/
@@ -157,12 +157,12 @@ const MgActionMore = class {
157
157
  const buttonLabel = this.button.label || this.messages.label;
158
158
  const buttonContent = [buttonLabel];
159
159
  if (!this.button.isIcon && this.displayChevron) {
160
- buttonContent.push(h("span", { key: '9d7980e769806efa8da21b233aa8039fea6e1321', class: {
160
+ buttonContent.push(h("span", { class: {
161
161
  [`${this.classBase}__chevron`]: true,
162
162
  [`${this.classBase}__chevron--rotate`]: this.expanded === true,
163
- } }, h("mg-icon", { key: '40cd8ad011debcda6794b5a3f6ae6a42ea6c385d', icon: "chevron-down", size: "small" })));
163
+ } }, h("mg-icon", { icon: "chevron-down", size: "small" })));
164
164
  }
165
- return (h(Host, { key: '3a0959e16e76ab50c857e489ddb91a9ed9758fbd', "data-mg-popover-guard": this.mgPopoverIdentifier }, h("span", { key: '1e37a919b19563aab4333a94f1676cb6b9d60289', class: "mg-action-more" }, h("mg-popover", { key: 'd539fd10e3cf38774c05180e906b35840b37f11a', identifier: this.mgPopoverIdentifier, display: this.expanded, "onDisplay-change": this.handleDisplayChange }, 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 && h("mg-icon", Object.assign({}, this.icon)), !this.button.isIcon && buttonContent), h("div", { key: 'e09d81146a0d5188a90d4e1204852608ea74d433', slot: "content" }, h("mg-menu", { key: '00949f8628192c04d537ed9c4c4261b33fb06c71', direction: Direction.VERTICAL, label: this.messages.label }, this.items.map(item => {
165
+ return (h(Host, { key: '3833ffe89499015c991ac366c5bb87283948962b', "data-mg-popover-guard": this.mgPopoverIdentifier }, h("span", { key: '3393bfd576f5bbef7570090a5813a4eecc944559', class: "mg-action-more" }, h("mg-popover", { key: '6c589e9efbbfef4adba6f2c59eb3f562c621daf1', identifier: this.mgPopoverIdentifier, display: this.expanded, "onDisplay-change": this.handleDisplayChange }, 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 && h("mg-icon", Object.assign({ key: 'd385d7c69f118b8f20d59547357dad7d8a56766d' }, this.icon)), !this.button.isIcon && buttonContent), h("div", { key: '553f7704a5fc0b1a89062ce234607296d8bf53f2', slot: "content" }, h("mg-menu", { key: '4a161502b2d1dec2b17cd7c44cd492ec745cb7dd', direction: Direction.VERTICAL, label: this.messages.label }, this.items.map(item => {
166
166
  var _a;
167
167
  return (
168
168
  // eslint-disable-next-line react/jsx-no-bind
@@ -199,7 +199,7 @@ const MgBadge = class {
199
199
  this.label = undefined;
200
200
  this.variant = variants$5[0];
201
201
  this.outline = undefined;
202
- this.classCollection = new Me(['mg-c-badge']);
202
+ this.classCollection = new Oe(['mg-c-badge']);
203
203
  }
204
204
  validateValue(newValue) {
205
205
  if (/^(\d+\+*|[?*!a-z])$/i.exec(`${newValue}`) === null) {
@@ -207,7 +207,7 @@ const MgBadge = class {
207
207
  }
208
208
  }
209
209
  validateLabel(newValue) {
210
- if (!Be(newValue)) {
210
+ if (!Ne(newValue)) {
211
211
  throw new Error('<mg-badge> prop "label" is required.');
212
212
  }
213
213
  }
@@ -318,7 +318,7 @@ const MgButton = class {
318
318
  this.isIcon = false;
319
319
  this.disableOnClick = false;
320
320
  this.loading = false;
321
- this.classCollection = new Me(['mg-c-button']);
321
+ this.classCollection = new Oe(['mg-c-button']);
322
322
  }
323
323
  validateVariant(newValue, oldValue) {
324
324
  if (!variants$4.includes(newValue)) {
@@ -377,7 +377,7 @@ const MgButton = class {
377
377
  this.validateFullWidth(this.fullWidth);
378
378
  if (this.isIcon) {
379
379
  this.classCollection.add(`mg-c-button--icon`);
380
- if (!Be(this.label)) {
380
+ if (!Ne(this.label)) {
381
381
  throw new Error(`<mg-button> prop "label" is mandatory when prop "isIcon" is set to true.`);
382
382
  }
383
383
  }
@@ -389,7 +389,7 @@ const MgButton = class {
389
389
  * Add listners
390
390
  */
391
391
  componentDidLoad() {
392
- Ue(() => {
392
+ Ce(() => {
393
393
  var _a;
394
394
  const closestForm = this.element.closest('form') || ((_a = this.element.closest('mg-form')) === null || _a === void 0 ? void 0 : _a.shadowRoot.querySelector('form'));
395
395
  // submit buttons should trigger form submition;
@@ -406,7 +406,7 @@ const MgButton = class {
406
406
  */
407
407
  render() {
408
408
  var _a;
409
- return (h(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 }, h("div", { key: '9743ead1b9fd1f70ef0690087806a1767c5825b0', class: this.classCollection.join(), id: this.identifier }, this.loading && h("mg-icon", { icon: "loader", spin: true }), h("div", { key: '7070995c17ecedb4223475cce662e115e8d72510', class: "mg-c-button__content" }, h("slot", { key: 'cb0ad8aa02d634f0a3dfa9b584ec8fb26da88271' })))));
409
+ return (h(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 }, h("div", { key: '9743ead1b9fd1f70ef0690087806a1767c5825b0', class: this.classCollection.join(), id: this.identifier }, this.loading && h("mg-icon", { key: '543718fe45ad3e1901c4ef0c39b98705aa9fd64e', icon: "loader", spin: true }), h("div", { key: '21bc8c1a14f93db8b2373864a18da5c651e1ac4d', class: "mg-c-button__content" }, h("slot", { key: 'd16d710b4cb94ec1b7e3dfee2d4a70ee059528b4' })))));
410
410
  }
411
411
  get element() { return getElement(this); }
412
412
  static get watchers() { return {
@@ -448,7 +448,7 @@ const MgCard = class {
448
448
  };
449
449
  this.variant = undefined;
450
450
  this.variantStyle = undefined;
451
- this.classCollection = new Me([this.classBase]);
451
+ this.classCollection = new Oe([this.classBase]);
452
452
  }
453
453
  validateVariant(newValue, oldValue) {
454
454
  if (newValue && !variants$3.includes(newValue))
@@ -486,7 +486,7 @@ const MgCard = class {
486
486
  */
487
487
  render() {
488
488
  var _a;
489
- return (h("div", { key: '9e604fe7b06f19797c6841b1902b56684a4bdc69', class: this.classCollection.join() }, ((_a = this.variantStyle) === null || _a === void 0 ? void 0 : _a.startsWith('bar-')) && h("span", { class: "mg-c-card__bar" }), h("slot", { key: '44d9092aaa6bbdf0b20a1fffe0edad15150cd8cb' })));
489
+ return (h("div", { key: 'b786a9ff3b706dcb24f6b3218feef97e284e2b9a', class: this.classCollection.join() }, ((_a = this.variantStyle) === null || _a === void 0 ? void 0 : _a.startsWith('bar-')) && h("span", { key: '11a3b421c49864667832919e6d2cbe9ea19f9344', class: "mg-c-card__bar" }), h("slot", { key: '7421932644500c619d34cbe003a0f0bb50b612a7' })));
490
490
  }
491
491
  static get watchers() { return {
492
492
  "variant": ["validateVariant"],
@@ -525,7 +525,7 @@ const MgCharacterLeft = class {
525
525
  * @returns HTML Element
526
526
  */
527
527
  render() {
528
- return (h("span", { key: 'fafe1f542f085f5f910a7b43cf6fa7e9fe9fd302', id: this.identifier, "aria-live": "polite" }, h("span", { key: '54b74d3a1161c583e47b0ad96845664e3ad9623d', "aria-hidden": "true" }, this.maxlength - this.characters.length, "/", this.maxlength), h("span", { key: '390ad6cd724c66230fb726a307391922ddfe7c2c', class: "mg-u-visually-hidden" }, this.messages.nbCharLeft.replace('{counter}', this.maxlength - this.characters.length))));
528
+ return (h("span", { key: 'd67db2514f27a2c0de9c187036f8f7e192761ce2', id: this.identifier, "aria-live": "polite" }, h("span", { key: 'e0622c110944075e1d659347965b20a9bfb5ebac', "aria-hidden": "true" }, this.maxlength - this.characters.length, "/", this.maxlength), h("span", { key: '82a7deaf6f6f2ad32a8d2cfe57787b2b7a20fd4b', class: "mg-u-visually-hidden" }, this.messages.nbCharLeft.replace('{counter}', this.maxlength - this.characters.length))));
529
529
  }
530
530
  get element() { return getElement(this); }
531
531
  static get watchers() { return {
@@ -553,7 +553,7 @@ const MgDetails = class {
553
553
  this.expanded = false;
554
554
  }
555
555
  validateTitles(newValue) {
556
- if (!Be(newValue)) {
556
+ if (!Ne(newValue)) {
557
557
  throw new Error('<mg-details> prop "toggleClosed" and "toggleOpened" must be defined.');
558
558
  }
559
559
  }
@@ -575,7 +575,7 @@ const MgDetails = class {
575
575
  * @returns HTML Element
576
576
  */
577
577
  render() {
578
- return (h("details", { key: '28d18aa44daec76231b80e2f8c48b475bb318d10', class: "mg-c-details", onToggle: this.handleToggle, open: this.expanded, ref: (el) => (this.details = el) }, h("summary", { key: 'a998fadad2ee592b632ab19c0fe69f142211156a' }, h("slot", { key: '7e5b636e9ed6f05904ed13c06cff14a5353de74b', name: "summary" }), h("span", { key: '770f0cfd6f70127a61f6ffab1c30e4d8d83c70bb', class: "mg-c-details__toggle" }, 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 } }), h("span", { key: '1d0dc92242080d172d226bf013ae56ffe6e4a717', class: { 'mg-u-visually-hidden': this.hideSummary } }, this.expanded ? this.toggleOpened : this.toggleClosed))), h("div", { key: 'd6b973893a807d2ef94a7c3d131e3ca0c9a675e3', class: "mg-c-details__details" }, h("slot", { key: 'ae1928a7aad8d986f44cb36e02648680dea074a4', name: "details" }))));
578
+ return (h("details", { key: '9c629e03b5286afb8b9139aa4e182f10a1005c81', class: "mg-c-details", onToggle: this.handleToggle, open: this.expanded, ref: (el) => (this.details = el) }, h("summary", { key: 'a525137281cb20fe8b74db56fe0e6f4f59427e4d' }, h("slot", { key: '7fb96692cfa339e904894bbddffd2211ff7741b5', name: "summary" }), h("span", { key: 'b322eb9e02173a24bcff738d6f1333ce6ab68912', class: "mg-c-details__toggle" }, 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 } }), h("span", { key: '10b0a8a350f857296ae5600de5f68a9b528a3739', class: { 'mg-u-visually-hidden': this.hideSummary } }, this.expanded ? this.toggleOpened : this.toggleClosed))), h("div", { key: 'e54fe3d881a04ccbb3d394b0492f6ab906eac1f8', class: "mg-c-details__details" }, h("slot", { key: 'ae05e78c61d9fa8e1d90aa58ac7d6ce8862128ff', name: "details" }))));
579
579
  }
580
580
  static get watchers() { return {
581
581
  "toggleClosed": ["validateTitles"],
@@ -598,7 +598,7 @@ const MgDivider = class {
598
598
  * @returns HTML Element
599
599
  */
600
600
  render() {
601
- return (h("div", { key: '7250dfa7ca66ea0831292a25ea7e76c29ca36500', class: {
601
+ return (h("div", { key: '92413bf42dc057ea1dfd645b4d619a7f180e5aca', class: {
602
602
  'mg-c-divider': true,
603
603
  'mg-c-divider--full': this.size === 'full',
604
604
  } }));
@@ -711,7 +711,7 @@ const MgForm = class {
711
711
  }
712
712
  });
713
713
  };
714
- this.identifier = Re('mg-form');
714
+ this.identifier = Me('mg-form');
715
715
  this.name = this.identifier;
716
716
  this.readonly = false;
717
717
  this.requiredMessage = undefined;
@@ -720,7 +720,7 @@ const MgForm = class {
720
720
  this.disabled = false;
721
721
  this.valid = undefined;
722
722
  this.invalid = undefined;
723
- this.classCollection = new Me(['mg-c-form']);
723
+ this.classCollection = new Oe(['mg-c-form']);
724
724
  this.requiredMessageText = undefined;
725
725
  }
726
726
  validateRequiredMessage(newValue) {
@@ -802,7 +802,7 @@ const MgForm = class {
802
802
  * @returns HTML Element
803
803
  */
804
804
  render() {
805
- return (h("form", { key: 'cfcf6da7026b3e3703903090773ecf69e57034cc', class: this.classCollection.join(), id: this.identifier, name: this.name, onSubmit: this.handleFormSubmit, role: this.ariaRole }, this.requiredMessageText && h("p", { innerHTML: this.requiredMessageText }), h("slot", { key: '2f0c489e6ce31580cbb66f144749f5c3e2ad18eb' }), !this.readonly && !this.disabled && h("slot", { name: "actions" })));
805
+ return (h("form", { key: '498fe7564261b0aad99bab2686a6f0f4624785cc', class: this.classCollection.join(), id: this.identifier, name: this.name, onSubmit: this.handleFormSubmit, role: this.ariaRole }, this.requiredMessageText && h("p", { key: 'd0d0f1f6373eff660de65104afb3ba40835a58e3', innerHTML: this.requiredMessageText }), h("slot", { key: '9e98e1b0fda2a8b69f8efb8bacccb6cd1173ba4f' }), !this.readonly && !this.disabled && h("slot", { key: '083f5490c17548defa713bb697b731b02fad9198', name: "actions" })));
806
806
  }
807
807
  get element() { return getElement(this); }
808
808
  static get watchers() { return {
@@ -861,7 +861,7 @@ const MgIcon = class {
861
861
  this.variant = undefined;
862
862
  this.variantStyle = undefined;
863
863
  this.spin = false;
864
- this.classCollection = new Me(['mg-c-icon']);
864
+ this.classCollection = new Oe(['mg-c-icon']);
865
865
  }
866
866
  validateIcon(newValue, oldValue) {
867
867
  if (!Object.keys(icons).includes(newValue))
@@ -960,7 +960,7 @@ const MgIllustratedMessage = class {
960
960
  componentDidLoad() {
961
961
  const headingTags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
962
962
  const slottedIllustrations = this.element.querySelectorAll('[slot="illustration"]');
963
- if (!Fe(this.element.querySelector('[slot="title"]'), headingTags)) {
963
+ if (!De(this.element.querySelector('[slot="title"]'), headingTags)) {
964
964
  throw new Error(`<mg-illustrated-message> Slotted title must be a heading: ${headingTags.join(', ')}`);
965
965
  }
966
966
  else if (slottedIllustrations.length !== 1) {
@@ -973,13 +973,13 @@ const MgIllustratedMessage = class {
973
973
  * @returns HTML Element
974
974
  */
975
975
  render() {
976
- return (h("div", { key: '566da859acf529d2389b892db469a2293f85c67e', class: {
976
+ return (h("div", { key: '042f4e43323c30176c3d2b4d596d55a25a4382b7', class: {
977
977
  'mg-c-illustrated-message': true,
978
978
  'mg-c-illustrated-message--horizontal': this.direction === 'horizontal',
979
- } }, h("div", { key: '7d2d44156ae0c8c0ac2364e6f1fc7c41242f7d6c', class: {
979
+ } }, h("div", { key: 'ebda1c1ca89ac40ff69820f96c10c0515ab9590a', class: {
980
980
  'mg-c-illustrated-message__illustration': true,
981
981
  'mg-c-illustrated-message__illustration--small': this.size === 'small',
982
- } }, h("slot", { key: '3a477be62f6866dece99be8882f89dcd2a620c5e', name: "illustration" })), h("div", { key: 'd6d8950d4bb5b8c6cafe1c148978bed1291f5768', class: "mg-c-illustrated-message__slots" }, h("div", { key: '47d0406a0d5eb2ea2388472defdc44411ba2977d', class: "mg-c-illustrated-message__title" }, h("slot", { key: '8126236dfce191b268f84f45183cc8304019c129', name: "title" })), h("div", { key: '64641dadca2ed82f3ad4b24d677ee01cc002dabf', class: "mg-c-illustrated-message__details" }, h("slot", { key: '65b61b0c16c9dde9cd2eab062b97fe189f53e5a2', name: "details" })))));
982
+ } }, h("slot", { key: 'aa65a2f9ea28bba75b7b7ad8c0816ea9efe4c180', name: "illustration" })), h("div", { key: '8173740ede93f2800ef9de9645fd4cc05ee66e3b', class: "mg-c-illustrated-message__slots" }, h("div", { key: '970bba9668cd3ab806399cee83e6a8c9648adff0', class: "mg-c-illustrated-message__title" }, h("slot", { key: '590d7970e1845e48658ae6287fdf91e782fcfe57', name: "title" })), h("div", { key: '0c49e0842c7d12e6810fbf95404d8a66f7139320', class: "mg-c-illustrated-message__details" }, h("slot", { key: 'efec02b5d379d2a042591e4a02896691be8d67cb', name: "details" })))));
983
983
  }
984
984
  get element() { return getElement(this); }
985
985
  };
@@ -1060,7 +1060,7 @@ const MgInput = class {
1060
1060
  this.isVerticalList = false;
1061
1061
  }
1062
1062
  watchIdentifier(newValue) {
1063
- if (!Be(newValue)) {
1063
+ if (!Ne(newValue)) {
1064
1064
  throw new Error('<mg-input> prop "identifier" is required.');
1065
1065
  }
1066
1066
  else {
@@ -1145,7 +1145,7 @@ const MgInput = class {
1145
1145
  */
1146
1146
  // eslint-disable-next-line @stencil-community/no-unused-watch
1147
1147
  watchLabel() {
1148
- if (!Be(this.label)) {
1148
+ if (!Ne(this.label)) {
1149
1149
  throw new Error('<mg-input> prop "label" is required.');
1150
1150
  }
1151
1151
  else {
@@ -1239,7 +1239,7 @@ const MgInput = class {
1239
1239
  render() {
1240
1240
  const readonlyValue = this.getReadonlyValues();
1241
1241
  const isGroup = this.isFieldset && !this.isReadonly;
1242
- return (h(Host, { key: '5eedfac460913f23f71a3fbba43af958afc63e0d', class: this.element.classList.toString(), role: isGroup ? 'group' : undefined, "aria-labelledby": isGroup ? `${this.identifier}-title` : undefined }, h("div", { key: '9335584ba10e2bc199accb9b4200b45252c848a9', class: { 'mg-c-input__title': true, 'mg-u-visually-hidden': this.labelHide } }, h("slot", { key: '7c5de08476008bfe6cbcfa07706cee30f16bc059', name: this.slotLabel }), this.tooltip && !this.isReadonly && (this.tooltipPosition === 'label' || this.labelOnTop) && !this.labelHide && this.renderTooltip()), h("div", { key: '5cf88a0ea68aaf2d8f1c96c4593ef6ea0133beb6', class: "mg-c-input__input-container" }, this.isReadonly
1242
+ return (h(Host, { key: '7a344b1c43f967771a6a3460adf83d60aa7fcc7e', class: this.element.classList.toString(), role: isGroup ? 'group' : undefined, "aria-labelledby": isGroup ? `${this.identifier}-title` : undefined }, h("div", { key: 'e88dbd6ad81f94b6ab3fdd2d73986b06f05f233d', class: { 'mg-c-input__title': true, 'mg-u-visually-hidden': this.labelHide } }, h("slot", { key: '12f3e23bd14c710ef5ecad3dedeb4f3d058c49d7', name: this.slotLabel }), this.tooltip && !this.isReadonly && (this.tooltipPosition === 'label' || this.labelOnTop) && !this.labelHide && this.renderTooltip()), h("div", { key: 'd7adace17ac5d68597dd5ece286ec04e405abccd', class: "mg-c-input__input-container" }, this.isReadonly
1243
1243
  ? [
1244
1244
  Array.isArray(readonlyValue) ? (h("ul", { key: "readonly-value-list" }, readonlyValue.map(value => (h("li", { key: value }, h("strong", null, value)))))) : (h("strong", { key: "readonly-value" }, readonlyValue)),
1245
1245
  h("slot", { key: "default-slot" }),
@@ -1441,7 +1441,7 @@ const MgInputCheckbox = class {
1441
1441
  * Method to update searchResults
1442
1442
  */
1443
1443
  this.updateSearchResults = () => {
1444
- this.searchResults = this.checkboxItems.filter(item => Ne(item.title).includes(Ne(this.searchValue)));
1444
+ this.searchResults = this.checkboxItems.filter(item => Ue(item.title).includes(Ue(this.searchValue)));
1445
1445
  };
1446
1446
  /**
1447
1447
  * Method to validate if one of inputs value is checked id required
@@ -1515,7 +1515,7 @@ const MgInputCheckbox = class {
1515
1515
  this.helpText = undefined;
1516
1516
  this.valid = undefined;
1517
1517
  this.invalid = undefined;
1518
- this.classCollection = new Me([this.baseClassName, classFieldset]);
1518
+ this.classCollection = new Oe([this.baseClassName, classFieldset]);
1519
1519
  this.errorMessage = undefined;
1520
1520
  this.checkboxItems = [];
1521
1521
  this.displaySearchInput = undefined;
@@ -1623,7 +1623,7 @@ const MgInputCheckbox = class {
1623
1623
  if (typeof valid !== 'boolean') {
1624
1624
  throw new Error('<mg-input-checkbox> method "setError()" param "valid" must be a boolean');
1625
1625
  }
1626
- else if (!Be(errorMessage)) {
1626
+ else if (!Ne(errorMessage)) {
1627
1627
  throw new Error('<mg-input-checkbox> method "setError()" param "errorMessage" must be a string');
1628
1628
  }
1629
1629
  else {
@@ -1736,7 +1736,7 @@ const MgInputCheckbox = class {
1736
1736
  * @returns HTML Element
1737
1737
  */
1738
1738
  render() {
1739
- return (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 ? (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())));
1739
+ return (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 ? (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())));
1740
1740
  }
1741
1741
  get element() { return getElement(this); }
1742
1742
  static get watchers() { return {
@@ -1851,10 +1851,10 @@ const MgInputCheckboxPaginated = class {
1851
1851
  * @returns HTML Element
1852
1852
  */
1853
1853
  render() {
1854
- const getText = (checkboxes) => (h("em", { key: 'd1377fde2a3fdf69077a52d9b81e38b7c52881ec', class: "mg-c-input__section-header-title-label" }, `${this.messages[checkboxes.length > 1 ? 'titlePlurial' : 'title']} (${checkboxes.length})`));
1854
+ const getText = (checkboxes) => (h("em", { key: '0a1e9d02d508a27fda294b25d835f44b73d4c443', class: "mg-c-input__section-header-title-label" }, `${this.messages[checkboxes.length > 1 ? 'titlePlurial' : 'title']} (${checkboxes.length})`));
1855
1855
  const [from, to] = this.getFromToIndexes();
1856
1856
  const itemsContainerId = `items-${this.sectionKind}-container`;
1857
- return (h(Host, { key: '782f416233239ad46f653bfb34bc2adf2bf5c7b7', hidden: this.checkboxes.length < 1 }, h("div", { key: 'cbcc808b0aa6701cccf3dd23c78ad7c763dcedd5', class: "mg-c-input__section-header" }, this.titleKind === SectionTitleKind.BUTTON ? (h("mg-button", { variant: "flat", onClick: this.handleToggleClick, "aria-controls": itemsContainerId, "aria-expanded": this.expanded.toString() }, h("mg-icon", { icon: this.expanded ? 'chevron-up' : 'chevron-down', size: "small" }), h("span", { class: "mg-c-input__section-header-title" }, getText(this.checkboxes)))) : (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) && (h("mg-tooltip", { class: "mg-c-input__section-header-tootlip", message: this.messages.tooltip, "data-popper-strategy": "absolute" }, h("mg-button", { variant: "link", onClick: this.massActionHandler }, this.messages.action))), this.expanded && this.getPageCount(this.checkboxes) > 1 && (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}` }))), h("div", { key: 'e3a31d6c97ec062b80932a6d22c422e1b42f3866', hidden: !this.expanded, id: itemsContainerId, class: "mg-c-input__section-content" }, 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 }))));
1857
+ return (h(Host, { key: '71c72a433b984a609046fdce7cf4c6130c8e1ada', hidden: this.checkboxes.length < 1 }, h("div", { key: 'b2bd73e01db4db0edca92c5e7fc64edfda9d3b6d', class: "mg-c-input__section-header" }, this.titleKind === SectionTitleKind.BUTTON ? (h("mg-button", { variant: "flat", onClick: this.handleToggleClick, "aria-controls": itemsContainerId, "aria-expanded": this.expanded.toString() }, h("mg-icon", { icon: this.expanded ? 'chevron-up' : 'chevron-down', size: "small" }), h("span", { class: "mg-c-input__section-header-title" }, getText(this.checkboxes)))) : (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) && (h("mg-tooltip", { key: 'dcc6b405032e5b59cc748f1cbc87ab087c37cc31', class: "mg-c-input__section-header-tootlip", message: this.messages.tooltip, "data-popper-strategy": "absolute" }, h("mg-button", { key: 'a1d38aedc328d81ac8139f70e8564538f7e4b4c4', variant: "link", onClick: this.massActionHandler }, this.messages.action))), this.expanded && this.getPageCount(this.checkboxes) > 1 && (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}` }))), h("div", { key: 'd9913a7ceeac5d91f0c58e5021a88f1bf37b1387', hidden: !this.expanded, id: itemsContainerId, class: "mg-c-input__section-content" }, 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 }))));
1858
1858
  }
1859
1859
  static get watchers() { return {
1860
1860
  "checkboxes": ["validateCheckboxes"],
@@ -1886,7 +1886,7 @@ const MgInputDate = class {
1886
1886
  * @param value - value to test
1887
1887
  * @returns truthy when value match the pattern
1888
1888
  */
1889
- this.isValidPattern = (value) => Be(value) && de.test(value);
1889
+ this.isValidPattern = (value) => Ne(value) && ge.test(value);
1890
1890
  /**
1891
1891
  * Format help text to display
1892
1892
  * @param helpText - help text format
@@ -1894,10 +1894,10 @@ const MgInputDate = class {
1894
1894
  */
1895
1895
  this.formatHelpText = (helpText) => {
1896
1896
  const defaultHelpTextVariable = '{defaultHelpText}';
1897
- let text = Be(helpText) ? helpText : this.messages.input.date.helpText;
1897
+ let text = Ne(helpText) ? helpText : this.messages.input.date.helpText;
1898
1898
  if (text.includes(defaultHelpTextVariable))
1899
1899
  text = text.replace(defaultHelpTextVariable, this.formatHelpText(this.messages.input.date.helpText));
1900
- return text.replace('{pattern}', this.renderPattern()).replace('{date}', ge(We(new Date('2023-12-24')), this.systemLocale));
1900
+ return text.replace('{pattern}', this.renderPattern()).replace('{date}', pe(ze(new Date('2023-12-24')), this.systemLocale));
1901
1901
  };
1902
1902
  /**
1903
1903
  * Handle input event
@@ -1989,8 +1989,8 @@ const MgInputDate = class {
1989
1989
  // min, max & minMax
1990
1990
  else if ([InputError$1.MIN, InputError$1.MAX, InputError$1.MINMAX].includes(inputError)) {
1991
1991
  this.errorMessage = this.messages.errors.date[inputError]
1992
- .replace('{min}', ge(this.min, this.systemLocale))
1993
- .replace('{max}', ge(this.max, this.systemLocale));
1992
+ .replace('{min}', pe(this.min, this.systemLocale))
1993
+ .replace('{max}', pe(this.max, this.systemLocale));
1994
1994
  }
1995
1995
  // wrong date format
1996
1996
  // element.validity.badInput is default error message
@@ -2004,7 +2004,7 @@ const MgInputDate = class {
2004
2004
  * @returns translated html pattern
2005
2005
  */
2006
2006
  this.renderPattern = () => {
2007
- let patternLocal = Pe(this.systemLocale);
2007
+ let patternLocal = We(this.systemLocale);
2008
2008
  for (const key in this.messages.input.date.pattern) {
2009
2009
  patternLocal = patternLocal.replace(key, this.messages.input.date.pattern[key]);
2010
2010
  }
@@ -2026,7 +2026,7 @@ const MgInputDate = class {
2026
2026
  this.helpText = undefined;
2027
2027
  this.valid = undefined;
2028
2028
  this.invalid = undefined;
2029
- this.classCollection = new Me(['mg-c-input--date']);
2029
+ this.classCollection = new Oe(['mg-c-input--date']);
2030
2030
  this.errorMessage = undefined;
2031
2031
  }
2032
2032
  validateValue(newValue) {
@@ -2034,7 +2034,7 @@ const MgInputDate = class {
2034
2034
  if (newValue === '')
2035
2035
  newValue = null;
2036
2036
  // check value validity
2037
- if (newValue && !Be(newValue)) {
2037
+ if (newValue && !Ne(newValue)) {
2038
2038
  throw new Error("<mg-input-date> props 'value' must be a valid string");
2039
2039
  }
2040
2040
  else if (!newValue || (newValue && this.isValidPattern(newValue))) {
@@ -2091,7 +2091,7 @@ const MgInputDate = class {
2091
2091
  if (typeof valid !== 'boolean') {
2092
2092
  throw new Error('<mg-input-date> method "setError()" param "valid" must be a boolean');
2093
2093
  }
2094
- else if (!Be(errorMessage)) {
2094
+ else if (!Ne(errorMessage)) {
2095
2095
  throw new Error('<mg-input-date> method "setError()" param "errorMessage" must be a string');
2096
2096
  }
2097
2097
  else {
@@ -2145,7 +2145,7 @@ const MgInputDate = class {
2145
2145
  * @returns HTML Element
2146
2146
  */
2147
2147
  render() {
2148
- return (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: ge(this.value, this.locale), tooltip: this.tooltip, tooltipPosition: this.tooltipPosition, helpText: this.formatHelpText(this.helpText), errorMessage: this.errorMessage }, 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) => {
2148
+ return (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: pe(this.value, this.locale), tooltip: this.tooltip, tooltipPosition: this.tooltipPosition, helpText: this.formatHelpText(this.helpText), errorMessage: this.errorMessage }, 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) => {
2149
2149
  if (el !== null)
2150
2150
  this.input = el;
2151
2151
  } })));
@@ -2276,9 +2276,9 @@ const MgInputNumeric = class {
2276
2276
  this.formatValue = (value) => {
2277
2277
  switch (this.format) {
2278
2278
  case 'number':
2279
- return qe(value, this.locale, this.type === 'decimal' ? this.decimalLength : undefined);
2279
+ return we(value, this.locale, this.type === 'decimal' ? this.decimalLength : undefined);
2280
2280
  case 'currency':
2281
- return ze(value, this.locale, this.currency);
2281
+ return qe(value, this.locale, this.currency);
2282
2282
  case 'none':
2283
2283
  return value.toString();
2284
2284
  }
@@ -2315,7 +2315,7 @@ const MgInputNumeric = class {
2315
2315
  this.decimalLength = 2;
2316
2316
  this.valid = undefined;
2317
2317
  this.invalid = undefined;
2318
- this.classCollection = new Me(['mg-c-input--numeric']);
2318
+ this.classCollection = new Oe(['mg-c-input--numeric']);
2319
2319
  this.errorMessage = undefined;
2320
2320
  this.hasFocus = undefined;
2321
2321
  }
@@ -2411,7 +2411,7 @@ const MgInputNumeric = class {
2411
2411
  if (typeof valid !== 'boolean') {
2412
2412
  throw new Error('<mg-input-numeric> method "setError()" param "valid" must be a boolean');
2413
2413
  }
2414
- else if (!Be(errorMessage)) {
2414
+ else if (!Ne(errorMessage)) {
2415
2415
  throw new Error('<mg-input-numeric> method "setError()" param "errorMessage" must be a string');
2416
2416
  }
2417
2417
  else {
@@ -2506,10 +2506,10 @@ const MgInputNumeric = class {
2506
2506
  * @returns HTML Element
2507
2507
  */
2508
2508
  render() {
2509
- return (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 }, 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) => {
2509
+ return (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 }, 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) => {
2510
2510
  if (el !== null)
2511
2511
  this.input = el;
2512
- } }), h("slot", { key: 'd2484bde61ff7962bb8b060f448a656160edd3f9', name: "append-input" })));
2512
+ } }), h("slot", { key: '6b6ae5ae8aa3de2c1d0360c2ddef962a7b3e6bc0', name: "append-input" })));
2513
2513
  }
2514
2514
  get element() { return getElement(this); }
2515
2515
  static get watchers() { return {
@@ -2603,7 +2603,7 @@ const MgInputPassword = class {
2603
2603
  this.helpText = undefined;
2604
2604
  this.valid = undefined;
2605
2605
  this.invalid = undefined;
2606
- this.classCollection = new Me(['mg-c-input--password']);
2606
+ this.classCollection = new Oe(['mg-c-input--password']);
2607
2607
  this.errorMessage = undefined;
2608
2608
  this.displayPassword = false;
2609
2609
  }
@@ -2661,7 +2661,7 @@ const MgInputPassword = class {
2661
2661
  if (typeof valid !== 'boolean') {
2662
2662
  throw new Error('<mg-input-password> method "setError()" param "valid" must be a boolean');
2663
2663
  }
2664
- else if (!Be(errorMessage)) {
2664
+ else if (!Ne(errorMessage)) {
2665
2665
  throw new Error('<mg-input-password> method "setError()" param "errorMessage" must be a string');
2666
2666
  }
2667
2667
  else {
@@ -2707,10 +2707,10 @@ const MgInputPassword = class {
2707
2707
  * @returns HTML Element
2708
2708
  */
2709
2709
  render() {
2710
- return (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 }, h("span", { key: '35c61d84248fe5b65c91afcb932d8e71aa0db71f', class: "mg-c-input__input-group" }, 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) => {
2710
+ return (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 }, h("span", { key: 'd85a4240b6d178cde418ee72164f337c4986aeff', class: "mg-c-input__input-group" }, 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) => {
2711
2711
  if (el !== null)
2712
2712
  this.input = el;
2713
- } }), 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 }, h("mg-icon", { key: '48f1d7921294675f036439364bc73d1c730573c9', icon: this.displayPassword ? 'eye-slash' : 'eye' })))));
2713
+ } }), 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 }, h("mg-icon", { key: '22db9c43220335f258b8fa5978cb66a5d4c14c61', icon: this.displayPassword ? 'eye-slash' : 'eye' })))));
2714
2714
  }
2715
2715
  get element() { return getElement(this); }
2716
2716
  static get watchers() { return {
@@ -2808,7 +2808,7 @@ const MgInputRadio = class {
2808
2808
  this.helpText = undefined;
2809
2809
  this.valid = undefined;
2810
2810
  this.invalid = undefined;
2811
- this.classCollection = new Me(['mg-c-input--radio', classFieldset]);
2811
+ this.classCollection = new Oe(['mg-c-input--radio', classFieldset]);
2812
2812
  this.errorMessage = undefined;
2813
2813
  this.options = undefined;
2814
2814
  }
@@ -2821,7 +2821,7 @@ const MgInputRadio = class {
2821
2821
  throw new Error('<mg-input-radio> prop "items" require at least 2 items.');
2822
2822
  }
2823
2823
  // String array
2824
- else if (Oe(newValue)) {
2824
+ else if (Fe(newValue)) {
2825
2825
  this.options = newValue.map(item => ({ title: item, value: item, disabled: this.disabled }));
2826
2826
  }
2827
2827
  // Object array
@@ -2880,7 +2880,7 @@ const MgInputRadio = class {
2880
2880
  if (typeof valid !== 'boolean') {
2881
2881
  throw new Error('<mg-input-radio> method "setError()" param "valid" must be a boolean');
2882
2882
  }
2883
- else if (!Be(errorMessage)) {
2883
+ else if (!Ne(errorMessage)) {
2884
2884
  throw new Error('<mg-input-radio> method "setError()" param "errorMessage" must be a string');
2885
2885
  }
2886
2886
  else {
@@ -2929,7 +2929,7 @@ const MgInputRadio = class {
2929
2929
  */
2930
2930
  render() {
2931
2931
  var _a;
2932
- return (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 }, h("ul", { key: '28cf4fa269394ec663e05355eb1b6158da1d8328', class: "mg-c-input__input-group-container", role: "list" }, this.options.map((input, index) => (h("li", { key: input.title, class: { 'mg-c-input__input-group': true, 'mg-c-input__input-group--disabled': this.disabled || input.disabled } }, h("input", { type: "radio", id: this.identifier + '_' + index, name: this.identifier, value: index, checked: JSON.stringify(this.value) === JSON.stringify(this.options[index].value), disabled: this.disabled || input.disabled, required: this.required, onBlur: this.handleBlur, onInput: this.handleInput, ref: (el) => {
2932
+ return (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 }, h("ul", { key: 'e5e249a744ecb1f09cdbe7f9ec9d8f44b8b20ece', class: "mg-c-input__input-group-container", role: "list" }, this.options.map((input, index) => (h("li", { key: input.title, class: { 'mg-c-input__input-group': true, 'mg-c-input__input-group--disabled': this.disabled || input.disabled } }, h("input", { type: "radio", id: this.identifier + '_' + index, name: this.identifier, value: index, checked: JSON.stringify(this.value) === JSON.stringify(this.options[index].value), disabled: this.disabled || input.disabled, required: this.required, onBlur: this.handleBlur, onInput: this.handleInput, ref: (el) => {
2933
2933
  if (el !== null)
2934
2934
  this.inputs[index] = el;
2935
2935
  } }), h("label", { htmlFor: this.identifier + '_' + index }, input.title)))))));
@@ -3027,7 +3027,7 @@ const MgInputSelect = class {
3027
3027
  if (this.input.value === '') {
3028
3028
  this.setValue(null);
3029
3029
  }
3030
- else if (Oe(this.items) && this.items.includes(this.input.value)) {
3030
+ else if (Fe(this.items) && this.items.includes(this.input.value)) {
3031
3031
  this.setValue(this.input.value);
3032
3032
  }
3033
3033
  else if (allItemsAreOptions(this.items) && typeof this.input.value === 'string' && this.items.some(this.isInputValue)) {
@@ -3101,7 +3101,7 @@ const MgInputSelect = class {
3101
3101
  this.helpText = undefined;
3102
3102
  this.valid = undefined;
3103
3103
  this.invalid = undefined;
3104
- this.classCollection = new Me(['mg-c-input--select']);
3104
+ this.classCollection = new Oe(['mg-c-input--select']);
3105
3105
  this.errorMessage = undefined;
3106
3106
  this.options = undefined;
3107
3107
  this.valueExist = undefined;
@@ -3109,7 +3109,7 @@ const MgInputSelect = class {
3109
3109
  }
3110
3110
  validateValue(newValue) {
3111
3111
  var _a, _b;
3112
- if (Oe(this.items) && typeof newValue === 'string') {
3112
+ if (Fe(this.items) && typeof newValue === 'string') {
3113
3113
  this.readonlyValue = ((_a = this.input) === null || _a === void 0 ? void 0 : _a.value) ? this.input.value : newValue;
3114
3114
  }
3115
3115
  else if (allItemsAreOptions(this.items)) {
@@ -3126,7 +3126,7 @@ const MgInputSelect = class {
3126
3126
  this.options = [];
3127
3127
  }
3128
3128
  // String array
3129
- else if (Oe(newValue)) {
3129
+ else if (Fe(newValue)) {
3130
3130
  if (typeof this.value === 'string')
3131
3131
  this.valueExist = newValue.includes(this.value);
3132
3132
  this.options = newValue.map(item => ({ title: item, value: item }));
@@ -3198,7 +3198,7 @@ const MgInputSelect = class {
3198
3198
  if (typeof valid !== 'boolean') {
3199
3199
  throw new Error('<mg-input-select> method "setError()" param "valid" must be a boolean');
3200
3200
  }
3201
- else if (!Be(errorMessage)) {
3201
+ else if (!Ne(errorMessage)) {
3202
3202
  throw new Error('<mg-input-select> method "setError()" param "errorMessage" must be a string');
3203
3203
  }
3204
3204
  else {
@@ -3251,11 +3251,11 @@ const MgInputSelect = class {
3251
3251
  * @returns HTML Element
3252
3252
  */
3253
3253
  render() {
3254
- return (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 }, 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) => {
3254
+ return (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 }, 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) => {
3255
3255
  if (el !== null)
3256
3256
  this.input = el;
3257
3257
  } }, (!this.placeholderHide || !this.valueExist) && ( // In case passed value does not match any option we display the placeholder
3258
- h("option", { value: "", disabled: this.placeholderDisabled && this.valueExist }, this.placeholder)), this.options.map(option => isOptGroup(option) ? (h("optgroup", { label: option.group, key: option.group }, option.options.map(this.renderOption))) : (isOption$1(option) && this.renderOption(option))))));
3258
+ h("option", { key: '9c24f8983858810541a0a626a5705ac9d05e26e0', value: "", disabled: this.placeholderDisabled && this.valueExist }, this.placeholder)), this.options.map(option => isOptGroup(option) ? (h("optgroup", { label: option.group, key: option.group }, option.options.map(this.renderOption))) : (isOption$1(option) && this.renderOption(option))))));
3259
3259
  }
3260
3260
  get element() { return getElement(this); }
3261
3261
  static get watchers() { return {
@@ -3310,7 +3310,7 @@ const MgInputText = class {
3310
3310
  */
3311
3311
  this.handleFocus = () => {
3312
3312
  this.classCollection.add(this.classFocus);
3313
- this.classCollection = new Me(this.classCollection.classes);
3313
+ this.classCollection = new Oe(this.classCollection.classes);
3314
3314
  };
3315
3315
  /**
3316
3316
  * Handle blur event
@@ -3318,7 +3318,7 @@ const MgInputText = class {
3318
3318
  this.handleBlur = () => {
3319
3319
  // Manage focus
3320
3320
  this.classCollection.delete(this.classFocus);
3321
- this.classCollection = new Me(this.classCollection.classes);
3321
+ this.classCollection = new Oe(this.classCollection.classes);
3322
3322
  // Display Error
3323
3323
  this.handlerInProgress = Handler.BLUR;
3324
3324
  this.displayError().finally(() => {
@@ -3393,7 +3393,7 @@ const MgInputText = class {
3393
3393
  this.helpText = undefined;
3394
3394
  this.valid = undefined;
3395
3395
  this.invalid = undefined;
3396
- this.classCollection = new Me(['mg-c-input--text']);
3396
+ this.classCollection = new Oe(['mg-c-input--text']);
3397
3397
  this.errorMessage = undefined;
3398
3398
  }
3399
3399
  handleValue(newValue) {
@@ -3444,7 +3444,7 @@ const MgInputText = class {
3444
3444
  this.classCollection.add(`mg-c-input--width-${this.mgWidth}`);
3445
3445
  }
3446
3446
  validatePattern(newValue) {
3447
- if (newValue !== undefined && !(Be(this.pattern) && Be(this.patternErrorMessage))) {
3447
+ if (newValue !== undefined && !(Ne(this.pattern) && Ne(this.patternErrorMessage))) {
3448
3448
  throw new Error('<mg-input-text> props "pattern" and "patternErrorMessage" must be non-empty string and paired.');
3449
3449
  }
3450
3450
  }
@@ -3474,7 +3474,7 @@ const MgInputText = class {
3474
3474
  if (typeof valid !== 'boolean') {
3475
3475
  throw new Error('<mg-input-text> method "setError()" param "valid" must be a boolean');
3476
3476
  }
3477
- else if (!Be(errorMessage)) {
3477
+ else if (!Ne(errorMessage)) {
3478
3478
  throw new Error('<mg-input-text> method "setError()" param "errorMessage" must be a string');
3479
3479
  }
3480
3480
  else {
@@ -3528,14 +3528,14 @@ const MgInputText = class {
3528
3528
  * @returns HTML Element
3529
3529
  */
3530
3530
  render() {
3531
- return (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 }, h("div", { key: 'fdbfcdc5be2946e3c25b4ea1bc3e1824a205e4fe', class: "mg-c-input__with-character-left", style: {
3531
+ return (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 }, h("div", { key: 'e348db67a88f9941c549cb190aaca88c93aac54c', class: "mg-c-input__with-character-left", style: {
3532
3532
  '--mg-character-left-message-length': (this.displayCharacterLeft
3533
3533
  ? (this.maxlength - (this.value || '').length).toString().length + this.maxlength.toString().length + 1
3534
3534
  : 0).toString(),
3535
- } }, this.icon !== undefined && h("mg-icon", { icon: this.icon }), 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) => {
3535
+ } }, this.icon !== undefined && h("mg-icon", { key: 'dfe0ce7e271c40d4da20f00b35ad4fe104e08c91', icon: this.icon }), 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) => {
3536
3536
  if (el !== null)
3537
3537
  this.input = el;
3538
- } }), this.hasDatalist() && (h("datalist", { id: this.datalistId }, this.datalistoptions.map(option => (h("option", { value: option, key: option }))))), this.displayCharacterLeft && this.maxlength > 0 && (h("mg-character-left", { identifier: this.characterLeftId, characters: this.value, maxlength: this.maxlength }))), h("slot", { key: 'e6e209266d3525fb2dcd3eecf1dc054d2d7750b4', name: "append-input" })));
3538
+ } }), this.hasDatalist() && (h("datalist", { key: '387530d84dd29575c5e8985ad40211e490bb04e4', id: this.datalistId }, this.datalistoptions.map(option => (h("option", { value: option, key: option }))))), this.displayCharacterLeft && this.maxlength > 0 && (h("mg-character-left", { key: 'e0278d4295d5c923f21f617bbf37ee09bd907b54', identifier: this.characterLeftId, characters: this.value, maxlength: this.maxlength }))), h("slot", { key: '3d896e5ad21380c04c58fe925b8186e9f0a9207b', name: "append-input" })));
3539
3539
  }
3540
3540
  get element() { return getElement(this); }
3541
3541
  static get watchers() { return {
@@ -3583,7 +3583,7 @@ const MgInputTextarea = class {
3583
3583
  */
3584
3584
  this.handleFocus = () => {
3585
3585
  this.classCollection.add(this.classFocus);
3586
- this.classCollection = new Me(this.classCollection.classes);
3586
+ this.classCollection = new Oe(this.classCollection.classes);
3587
3587
  };
3588
3588
  /**
3589
3589
  * Handle blur event
@@ -3591,7 +3591,7 @@ const MgInputTextarea = class {
3591
3591
  this.handleBlur = () => {
3592
3592
  // Manage focus
3593
3593
  this.classCollection.delete(this.classFocus);
3594
- this.classCollection = new Me(this.classCollection.classes);
3594
+ this.classCollection = new Oe(this.classCollection.classes);
3595
3595
  // Display Error
3596
3596
  this.handlerInProgress = Handler.BLUR;
3597
3597
  this.displayError().finally(() => {
@@ -3654,7 +3654,7 @@ const MgInputTextarea = class {
3654
3654
  this.valid = undefined;
3655
3655
  this.invalid = undefined;
3656
3656
  this.resizable = 'none';
3657
- this.classCollection = new Me(['mg-c-input--textarea']);
3657
+ this.classCollection = new Oe(['mg-c-input--textarea']);
3658
3658
  this.errorMessage = undefined;
3659
3659
  }
3660
3660
  handleValue(newValue) {
@@ -3693,7 +3693,7 @@ const MgInputTextarea = class {
3693
3693
  this.classCollection.add(`mg-c-input--width-${this.mgWidth}`);
3694
3694
  }
3695
3695
  validatePattern(newValue) {
3696
- if (newValue !== undefined && !(Be(this.pattern) && Be(this.patternErrorMessage))) {
3696
+ if (newValue !== undefined && !(Ne(this.pattern) && Ne(this.patternErrorMessage))) {
3697
3697
  throw new Error('<mg-input-textarea> props "pattern" and "patternErrorMessage" must be non-empty string and paired.');
3698
3698
  }
3699
3699
  }
@@ -3725,7 +3725,7 @@ const MgInputTextarea = class {
3725
3725
  if (typeof valid !== 'boolean') {
3726
3726
  throw new Error('<mg-input-textarea> method "setError()" param "valid" must be a boolean');
3727
3727
  }
3728
- else if (!Be(errorMessage)) {
3728
+ else if (!Ne(errorMessage)) {
3729
3729
  throw new Error('<mg-input-textarea> method "setError()" param "errorMessage" must be a string');
3730
3730
  }
3731
3731
  else {
@@ -3776,7 +3776,7 @@ const MgInputTextarea = class {
3776
3776
  * @returns HTML Element
3777
3777
  */
3778
3778
  render() {
3779
- return (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 }, h("div", { key: '2e5a57ef5a936618685d65251d9445a5e25f8149', class: "mg-c-input__with-character-left" }, h("textarea", { key: 'a7deac1e7a713db46e285e73785eed01f2961639', class: {
3779
+ return (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 }, h("div", { key: '2d30db0ea21becffcdce57e46734e76877dc4858', class: "mg-c-input__with-character-left" }, h("textarea", { key: 'bc95d0db89014cafbb4e45893974e1ad09a41bf9', class: {
3780
3780
  'mg-c-input__box': true,
3781
3781
  'mg-c-input__box--width': true,
3782
3782
  'mg-c-input__box--resizable': this.resizable === 'both',
@@ -3785,7 +3785,7 @@ const MgInputTextarea = class {
3785
3785
  }, 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) => {
3786
3786
  if (el !== null)
3787
3787
  this.input = el;
3788
- } }), this.displayCharacterLeft && this.maxlength > 0 && (h("mg-character-left", { identifier: this.characterLeftId, characters: this.value, maxlength: this.maxlength })))));
3788
+ } }), this.displayCharacterLeft && this.maxlength > 0 && (h("mg-character-left", { key: '522f8440ff28f9767c7273f56936cc994dfa17da', identifier: this.characterLeftId, characters: this.value, maxlength: this.maxlength })))));
3789
3789
  }
3790
3790
  get element() { return getElement(this); }
3791
3791
  static get watchers() { return {
@@ -3814,7 +3814,7 @@ const MgInputTitle = class {
3814
3814
  this.tagName = 'label';
3815
3815
  }
3816
3816
  validateIdentifier(newValue) {
3817
- if (!Be(newValue)) {
3817
+ if (!Ne(newValue)) {
3818
3818
  throw new Error('<mg-input-title> prop "identifier" is required.');
3819
3819
  }
3820
3820
  }
@@ -3838,7 +3838,7 @@ const MgInputTitle = class {
3838
3838
  render() {
3839
3839
  const TagName = this.readonly ? 'span' : this.tagName;
3840
3840
  // \u00A0 represent a &nbsp;
3841
- return (h(TagName, { key: '3042d844802f32bc180f7fa2a94b6d6b72e3fc85', class: "mg-c-input-title", htmlFor: !this.isLegend && this.identifier, id: this.isLegend ? `${this.identifier}-title` : undefined }, h("slot", { key: 'b95a542c64ab1deddcae5d2cf5185a5748303926' }), this.required && !this.readonly && (h("span", { class: "mg-c-input-title__required" }, "\u00A0", h("span", { class: "mg-u-is-asterisk" }, "*")))));
3841
+ return (h(TagName, { key: '217fcd80f25886c71c9ec8da6673e3ba5dbb78f7', class: "mg-c-input-title", htmlFor: !this.isLegend && this.identifier, id: this.isLegend ? `${this.identifier}-title` : undefined }, h("slot", { key: '0efdaadd578a4a557e96f76ebfe1182af2ffdfac' }), this.required && !this.readonly && (h("span", { key: 'ebb62ba6769b0e6c8807d67aa0d4bcb80db76ac7', class: "mg-c-input-title__required" }, "\u00A0", h("span", { key: '9945e1bff4ec58e1c705a25cef538b2dab806fab', class: "mg-u-is-asterisk" }, "*")))));
3842
3842
  }
3843
3843
  static get watchers() { return {
3844
3844
  "identifier": ["validateIdentifier"],
@@ -3928,7 +3928,7 @@ const MgInputToggle = class {
3928
3928
  this.tooltip = undefined;
3929
3929
  this.tooltipPosition = 'input';
3930
3930
  this.helpText = undefined;
3931
- this.classCollection = new Me(['mg-c-input--toggle']);
3931
+ this.classCollection = new Oe(['mg-c-input--toggle']);
3932
3932
  this.options = undefined;
3933
3933
  this.errorMessage = undefined;
3934
3934
  this.valid = undefined;
@@ -3945,7 +3945,7 @@ const MgInputToggle = class {
3945
3945
  throw new Error('<mg-input-toggle> prop "items" require 2 items.');
3946
3946
  }
3947
3947
  // String array
3948
- else if (Oe(newValue)) {
3948
+ else if (Fe(newValue)) {
3949
3949
  this.options = newValue.map(item => ({ title: item, value: item }));
3950
3950
  }
3951
3951
  // Object array
@@ -4001,7 +4001,7 @@ const MgInputToggle = class {
4001
4001
  if (typeof valid !== 'boolean') {
4002
4002
  throw new Error('<mg-input-toggle> method "setError()" param "valid" must be a boolean');
4003
4003
  }
4004
- else if (!Be(errorMessage)) {
4004
+ else if (!Ne(errorMessage)) {
4005
4005
  throw new Error('<mg-input-toggle> method "setError()" param "errorMessage" must be a string');
4006
4006
  }
4007
4007
  else {
@@ -4057,7 +4057,7 @@ const MgInputToggle = class {
4057
4057
  */
4058
4058
  render() {
4059
4059
  var _a;
4060
- return (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 }, 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 }, h("span", { key: '395086e1a986767072db4e10b3afc5b4cc650bd8', "aria-hidden": "true", class: "mg-c-input__toggle-item-container" }, h("slot", { key: 'c39a37141d822e8ddfad1505039379b0b14d6490', name: "item-1" })), h("span", { key: 'fcc28290602815ace1d755e7ea1eede7d6fbcc10', "aria-hidden": "true", class: "mg-c-input__toggle-item-container" }, h("slot", { key: '7788fc760df5c002ca621c439902ff44fb7226db', name: "item-2" })))));
4060
+ return (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 }, 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 }, h("span", { key: '7b11e8151dc231718c81c73f7d99980eec4bb1ed', "aria-hidden": "true", class: "mg-c-input__toggle-item-container" }, h("slot", { key: '7efaeced52095c79b2d61f9b3628ec2f605d747b', name: "item-1" })), h("span", { key: 'd2e3775fbae5c6c679125ac99c56dfde431ecdc2', "aria-hidden": "true", class: "mg-c-input__toggle-item-container" }, h("slot", { key: 'edbb817680e42f7012f5b8d69e1c47626d97a161', name: "item-2" })))));
4061
4061
  }
4062
4062
  get element() { return getElement(this); }
4063
4063
  static get watchers() { return {
@@ -4247,7 +4247,7 @@ const MgItemMore = class {
4247
4247
  navElement.click();
4248
4248
  });
4249
4249
  // add id suffix to prevent duplicate key. default html id is: '';
4250
- if (Be(proxy.id))
4250
+ if (Ne(proxy.id))
4251
4251
  proxy.id = `${proxy.id}-proxy`;
4252
4252
  // update properties and DOM when proxyfied item is updated
4253
4253
  proxified.addEventListener('item-updated', (event) => {
@@ -4326,10 +4326,10 @@ const MgItemMore = class {
4326
4326
  * @returns HTML Element
4327
4327
  */
4328
4328
  render() {
4329
- return (h(Host, { key: 'c64a37d994cb6c3c388939b151588f2acf23e372', role: "listitem" }, this.parentMenu && (h("mg-menu-item", { "data-overflow-more": true, "data-size": this.parentMenu.size, ref: el => {
4329
+ return (h(Host, { key: '18e3ecec55a7078662bdb04ba6325a4d44ff1c78', role: "listitem" }, this.parentMenu && (h("mg-menu-item", { key: 'e04f4b62b1ce70eeae25f959ef6aeca2e4a2690d', "data-overflow-more": true, "data-size": this.parentMenu.size, ref: el => {
4330
4330
  if (el)
4331
4331
  this.moreElementMenuItem = el;
4332
- } }, h("mg-icon", { icon: this.icon.icon, slot: "image" }), h("span", { class: { 'mg-u-visually-hidden': !this.slotlabel.display }, slot: "label" }, this.slotlabel.label), h("mg-menu", { direction: Direction.VERTICAL, label: this.messages.menuLabel, size: this.size })))));
4332
+ } }, h("mg-icon", { key: '8f20ef688479578ebee9eabb63644837e1d45113', icon: this.icon.icon, slot: "image" }), h("span", { key: '7a4f08410d1e85682a8c3e1935525c418a4141de', class: { 'mg-u-visually-hidden': !this.slotlabel.display }, slot: "label" }, this.slotlabel.label), h("mg-menu", { key: 'f67f53d289cf65883a3534f17fb2baaa91314a66', direction: Direction.VERTICAL, label: this.messages.menuLabel, size: this.size })))));
4333
4333
  }
4334
4334
  get element() { return getElement(this); }
4335
4335
  static get watchers() { return {
@@ -4496,7 +4496,7 @@ const MgMenu = class {
4496
4496
  * @returns HTML Element
4497
4497
  */
4498
4498
  render() {
4499
- return (h(Host, { key: 'cf7e1a8ea713af4019295c4147d3023223fc8a79', role: "list", "aria-label": this.label }, h("slot", { key: 'dcb316d5c13b3b01bfd0c7b891cbd3728a37fa11' })));
4499
+ return (h(Host, { key: 'a5fe4a1a61b4255cc9a06217f30ef2f154fd797d', role: "list", "aria-label": this.label }, h("slot", { key: '37de5388d1cca3fa46dfbb73ab26ba6e299940b5' })));
4500
4500
  }
4501
4501
  get element() { return getElement(this); }
4502
4502
  static get watchers() { return {
@@ -4574,7 +4574,7 @@ const MgMenuItem = class {
4574
4574
  throw new Error(`<${this.name}> slot "label" is required.`);
4575
4575
  ['label', 'metadata'].forEach(slot => {
4576
4576
  Array.from(this.element.querySelectorAll(`[slot="${slot}"]`)).forEach(element => {
4577
- if (!Be(element.textContent))
4577
+ if (!Ne(element.textContent))
4578
4578
  throw new Error(`<${this.name}> slot "${slot}" must have text content.`);
4579
4579
  if ((guard && element.getAttribute('title') === null) || !guard)
4580
4580
  element.setAttribute('title', element.textContent);
@@ -4643,13 +4643,13 @@ const MgMenuItem = class {
4643
4643
  * @returns HTML Element
4644
4644
  */
4645
4645
  this.renderSlot = () => h("slot", null);
4646
- this.identifier = Re('mg-menu-item');
4646
+ this.identifier = Me('mg-menu-item');
4647
4647
  this.href = undefined;
4648
4648
  this.target = undefined;
4649
4649
  this.status = Status$1.VISIBLE;
4650
4650
  this.expanded = false;
4651
4651
  this.size = 'regular';
4652
- this.navigationButtonClassList = new Me([this.navigationButton]);
4652
+ this.navigationButtonClassList = new Oe([this.navigationButton]);
4653
4653
  this.direction = undefined;
4654
4654
  this.isInMainMenu = undefined;
4655
4655
  this.isItemMore = undefined;
@@ -4796,7 +4796,7 @@ const MgMenuItem = class {
4796
4796
  * Emit event when component is updated
4797
4797
  */
4798
4798
  componentShouldUpdate() {
4799
- return Ue(() => {
4799
+ return Ce(() => {
4800
4800
  this.itemUpdated.emit();
4801
4801
  });
4802
4802
  }
@@ -4809,7 +4809,7 @@ const MgMenuItem = class {
4809
4809
  ['mg-c-menu-item__collapse-container']: true,
4810
4810
  ['mg-c-menu-item__collapse-container--first-level']: (this.isInMainMenu || this.isItemMore) && this.isDirection(Direction.HORIZONTAL),
4811
4811
  });
4812
- return (h(Host, { key: 'a340655f5b46ed3019e1be29cfade7dfbc480ec2', role: this.isItemMore ? 'presentation' : 'listitem' }, this.displayPopover() ? (h("mg-popover", { display: this.expanded, placement: "bottom-start", arrowHide: true, "onDisplay-change": this.handlePopoverDisplay, identifier: this.getPopoverIdentifier() }, this.renderInteractiveElement(), h("div", { class: getContainerClasses(), slot: "content" }, this.renderSlot()))) : ([
4812
+ return (h(Host, { key: '10b41e1b90d01a0f0df082cd9fc50884e87c2e59', role: this.isItemMore ? 'presentation' : 'listitem' }, this.displayPopover() ? (h("mg-popover", { display: this.expanded, placement: "bottom-start", arrowHide: true, "onDisplay-change": this.handlePopoverDisplay, identifier: this.getPopoverIdentifier() }, this.renderInteractiveElement(), h("div", { class: getContainerClasses(), slot: "content" }, this.renderSlot()))) : ([
4813
4813
  this.renderInteractiveElement(),
4814
4814
  h("div", { key: "vertical-container", class: getContainerClasses(), hidden: !this.expanded }, this.renderSlot()),
4815
4815
  ])));
@@ -4902,13 +4902,13 @@ const MgMessage = class {
4902
4902
  return 'exclamation-circle';
4903
4903
  }
4904
4904
  };
4905
- this.identifier = Re('mg-message');
4905
+ this.identifier = Me('mg-message');
4906
4906
  this.delay = undefined;
4907
4907
  this.variant = variants$1[0];
4908
4908
  this.closeButton = false;
4909
4909
  this.hide = false;
4910
4910
  this.noAriaRole = undefined;
4911
- this.classCollection = new Me(['mg-c-message']);
4911
+ this.classCollection = new Oe(['mg-c-message']);
4912
4912
  this.hasActions = false;
4913
4913
  }
4914
4914
  validateDelay(newValue) {
@@ -4987,7 +4987,7 @@ const MgMessage = class {
4987
4987
  let role;
4988
4988
  if (!this.noAriaRole)
4989
4989
  role = this.variant === 'info' ? 'status' : 'alert';
4990
- return (h("div", { key: '2a2a66325834f5072ee6e89de0bcc40c3e0e6753', id: this.identifier, class: this.classCollection.join(), role: role }, h("mg-card", { key: '573448d09a88125eecf6b0c482cc589602238fea', variant: this.variant, "variant-style": "bar-left" }, h("span", { key: '81295346d39fdfeda74b9cdab5c468cce52cbc43', class: "mg-c-message__icon" }, h("mg-icon", { key: 'b8d655f6cffd963d601b8001f6b066e9e6ca379f', icon: this.getIcon() })), h("div", { key: '831938b7c2be97edb8dd37d2f28af6798bb32896', class: "mg-c-message__content" }, h("span", { key: '2c2d085285ec3feca97fa046ae038c725d0f05db', class: "mg-c-message__content-slot" }, h("slot", { key: '1907d1d60816a5e2d53e6ae87e60f66df253208b' })), this.hasActions && h("span", { class: "mg-c-message__content-separator" }), this.hasActions && (h("span", { class: "mg-c-message__content-actions-slot" }, h("slot", { name: "actions" })))), this.closeButton && (h("span", { class: "mg-c-message__close-button" }, h("mg-button", { identifier: this.closeButtonId, "is-icon": true, variant: "flat", label: this.messages.message.closeButton, onClick: this.handleClose }, h("mg-icon", { icon: "cross" })))))));
4990
+ return (h("div", { key: 'a30da97a75717852677dc66ba0e9bc0a000c8c35', id: this.identifier, class: this.classCollection.join(), role: role }, h("mg-card", { key: '9cea0e509146e245a91290e76bc3908fcf3e3806', variant: this.variant, "variant-style": "bar-left" }, h("span", { key: '0beb527b84230d6cafed7ac1d2c9caa59ad1f80f', class: "mg-c-message__icon" }, h("mg-icon", { key: 'e0346db73f7c2c4595bb09e1be93039763106a5d', icon: this.getIcon() })), h("div", { key: '128567f70f2d664688cf012ab995a57eea2bca17', class: "mg-c-message__content" }, h("span", { key: '2b1cc03309002908b6c54b95c6ad58bdc966e787', class: "mg-c-message__content-slot" }, h("slot", { key: 'fd7b3e74c3bd2a70d2cbbef0a9519cdee38da5ce' })), this.hasActions && h("span", { key: 'adb6d3b819226a5e6173f077650be05c64e69f13', class: "mg-c-message__content-separator" }), this.hasActions && (h("span", { key: '136b8a00d7b0dbb14750d7637bce7d83d8cfd112', class: "mg-c-message__content-actions-slot" }, h("slot", { key: '926939a26ee3fa4e3b4625cdc4003dccc9d2e2e3', name: "actions" })))), this.closeButton && (h("span", { key: '770a2313622d50f5dc027d65b878e2955a134ca3', class: "mg-c-message__close-button" }, h("mg-button", { key: '094652edc8aa518cb3c0322025b5bf5c66b3fa33', identifier: this.closeButtonId, "is-icon": true, variant: "flat", label: this.messages.message.closeButton, onClick: this.handleClose }, h("mg-icon", { key: '2b0ee538aec157e9507bf3c14026e71c422fc365', icon: "cross" })))))));
4991
4991
  }
4992
4992
  get element() { return getElement(this); }
4993
4993
  static get watchers() { return {
@@ -5051,12 +5051,12 @@ const MgModal = class {
5051
5051
  */
5052
5052
  this.setFocus = () => {
5053
5053
  // Get all focusable elements
5054
- const slottedFocusableElements = Array.from(this.element.querySelectorAll(De));
5054
+ const slottedFocusableElements = Array.from(this.element.querySelectorAll(_e));
5055
5055
  // If close button is enabled or at least one of the slotted element is focusable
5056
5056
  if (this.closeButton || slottedFocusableElements.length > 0) {
5057
5057
  // Check if slotted focusable elements have shadowDom with focusable elements
5058
5058
  this.modalFocusableElements = slottedFocusableElements.reduce((acc, focusableElement) => {
5059
- acc.push(focusableElement.shadowRoot !== null ? focusableElement.shadowRoot.querySelector(De) || focusableElement : focusableElement);
5059
+ acc.push(focusableElement.shadowRoot !== null ? focusableElement.shadowRoot.querySelector(_e) || focusableElement : focusableElement);
5060
5060
  return acc;
5061
5061
  }, []);
5062
5062
  // When close button is enabled it's the first focusable element.
@@ -5078,21 +5078,21 @@ const MgModal = class {
5078
5078
  this.handleClose = () => {
5079
5079
  this.hide = true;
5080
5080
  };
5081
- this.identifier = Re('mg-modal');
5081
+ this.identifier = Me('mg-modal');
5082
5082
  this.dialogRole = dialogRoles[0];
5083
5083
  this.modalTitle = undefined;
5084
5084
  this.closeButton = false;
5085
5085
  this.hide = undefined;
5086
5086
  this.hasActions = false;
5087
5087
  this.hasContent = false;
5088
- this.classCollection = new Me(['mg-c-modal']);
5088
+ this.classCollection = new Oe(['mg-c-modal']);
5089
5089
  }
5090
5090
  validateDialogRole(newValue) {
5091
5091
  if (!dialogRoles.includes(newValue))
5092
5092
  throw new Error(`<mg-modal> prop "dialogRole" must be one of: ${dialogRoles.join(', ')}.`);
5093
5093
  }
5094
5094
  validateModalTitle(newValue) {
5095
- if (!Be(newValue)) {
5095
+ if (!Ne(newValue)) {
5096
5096
  throw new Error('<mg-modal> prop "modalTitle" is required.');
5097
5097
  }
5098
5098
  }
@@ -5160,14 +5160,14 @@ const MgModal = class {
5160
5160
  * @returns HTML Element
5161
5161
  */
5162
5162
  render() {
5163
- return (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 }, h("mg-card", { key: 'd192af0bfa6105f8ddb43ec73cfffb1d0469aca8' }, h("div", { key: '4f4f5b08ce39f20ca4f65686da294487d955ebd4', class: "mg-c-modal__dialog" }, h("header", { key: 'fd87c3a17a5b2783f4ffb79d23c6005cbf82af53', class: "mg-c-modal__header" }, this.closeButton && (h("span", { class: "mg-c-modal__close-button" }, h("mg-button", { identifier: `${this.identifier}-close-button`, "is-icon": true, variant: "flat", label: this.messages.modal.closeButton, onClick: this.handleClose, ref: (el) => {
5163
+ return (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 }, h("mg-card", { key: '870e59e1126988fefe5c04380b5bbd593e8629af' }, h("div", { key: '9d49127cf8bf68b55549f379b760c6597b1a2d6c', class: "mg-c-modal__dialog" }, h("header", { key: 'b8629ece3524f5dd64b248080fa06f21980ddf7b', class: "mg-c-modal__header" }, this.closeButton && (h("span", { key: 'f38d648290d1db901fb2cc09ae8b8ed13bf7e0b6', class: "mg-c-modal__close-button" }, 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) => {
5164
5164
  if (el !== null) {
5165
5165
  // store closeButton Element
5166
5166
  this.closeButtonElement = el;
5167
5167
  // add close button element to modalFocusableElements when it is render
5168
5168
  this.modalFocusableElements.unshift(this.closeButtonElement);
5169
5169
  }
5170
- } }, h("mg-icon", { icon: "cross" })))), h("h1", { key: '363962112d7d1db2f13cf91a7964588c4c2be71f', class: "mg-c-modal__title", id: this.titleId }, this.modalTitle)), this.hasContent && (h("article", { class: "mg-c-modal__content" }, h("slot", { name: "content" }))), this.hasActions && (h("footer", { class: "mg-c-modal__footer" }, h("slot", { name: "actions" })))))));
5170
+ } }, h("mg-icon", { key: '2e5590b14d6b4da659f4f6d8630606a9bafdb9c6', icon: "cross" })))), h("h1", { key: '6ca12328af9955d0716c330c32004c68cca11b4c', class: "mg-c-modal__title", id: this.titleId }, this.modalTitle)), this.hasContent && (h("article", { key: '0873f01de1bfe75c2e91ea89b762d433006e7878', class: "mg-c-modal__content" }, h("slot", { key: 'dd8fd2e6527d640c40261dcbae76846d107337dc', name: "content" }))), this.hasActions && (h("footer", { key: 'e97c6d3ad9bbca892afcabeb5b15e63425d05070', class: "mg-c-modal__footer" }, h("slot", { key: 'c865f0b4244f5ea4ed5e7733813a8b10bc985504', name: "actions" })))))));
5171
5171
  }
5172
5172
  get element() { return getElement(this); }
5173
5173
  static get watchers() { return {
@@ -5239,7 +5239,7 @@ const MgPagination = class {
5239
5239
  this.handleGoToPage = (action, disabled) => {
5240
5240
  !disabled && this.goToPage(action === NavigationAction.NEXT ? this.currentPage + 1 : this.currentPage - 1);
5241
5241
  };
5242
- this.identifier = Re('mg-pagination');
5242
+ this.identifier = Me('mg-pagination');
5243
5243
  this.label = undefined;
5244
5244
  this.hideNavigationLabels = undefined;
5245
5245
  this.hidePageCount = undefined;
@@ -5282,10 +5282,10 @@ const MgPagination = class {
5282
5282
  * @returns HTML Element
5283
5283
  */
5284
5284
  render() {
5285
- const navigationActionButton = (disabled, action) => (h("mg-button", { key: '762b566216021bdfdcbfea249c7a1dbfa409c831', identifier: `${this.identifier}-button-${action}`, label: this.messages.pagination[`${action}Page`],
5285
+ const navigationActionButton = (disabled, action) => (h("mg-button", { key: 'b708c70615e0fb49d1628dc6cf83e54ea5ab0a61', identifier: `${this.identifier}-button-${action}`, label: this.messages.pagination[`${action}Page`],
5286
5286
  // eslint-disable-next-line react/jsx-no-bind
5287
- onClick: () => this.handleGoToPage(action, disabled), disabled: disabled, variant: "flat", isIcon: this.hideNavigationLabels }, action === NavigationAction.PREVIOUS && h("mg-icon", { icon: "chevron-left" }), !this.hideNavigationLabels && this.messages.general[action], action === NavigationAction.NEXT && h("mg-icon", { icon: "chevron-right" })));
5288
- return (h(Host, { key: '9bfc7cd582798b28f847f1be74bc966a10afaf01', hidden: this.totalPages < 2 }, 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 && (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 })), h("span", { key: '5e9cdd8126ee7d00db9199d5b738d76f651c8585', class: "mg-u-visually-hidden" }, this.messages.pagination.page, " ", this.currentPage), 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))));
5287
+ onClick: () => this.handleGoToPage(action, disabled), disabled: disabled, variant: "flat", isIcon: this.hideNavigationLabels }, action === NavigationAction.PREVIOUS && h("mg-icon", { key: '1c8375c68fd7729fb7ea91220ffb4f7267ac3a47', icon: "chevron-left" }), !this.hideNavigationLabels && this.messages.general[action], action === NavigationAction.NEXT && h("mg-icon", { key: '1af0c20c2d5ce86e593b2eca82dee410a782c193', icon: "chevron-right" })));
5288
+ return (h(Host, { key: '4490a0b9d3c0ac55519d052b4d76ab8f682f0f3a', hidden: this.totalPages < 2 }, 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 && (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 })), h("span", { key: '7877dbee55a509b13c8cf881154d96bbe1c5cee7', class: "mg-u-visually-hidden" }, this.messages.pagination.page, " ", this.currentPage), 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))));
5289
5289
  }
5290
5290
  get element() { return getElement(this); }
5291
5291
  static get watchers() { return {
@@ -5404,7 +5404,7 @@ const MgPanel = class {
5404
5404
  ];
5405
5405
  return this.titlePosition === 'right' ? children.reverse() : children;
5406
5406
  };
5407
- this.identifier = Re('mg-panel');
5407
+ this.identifier = Me('mg-panel');
5408
5408
  this.panelTitle = undefined;
5409
5409
  this.titlePattern = undefined;
5410
5410
  this.titlePatternErrorMessage = undefined;
@@ -5413,12 +5413,12 @@ const MgPanel = class {
5413
5413
  this.expanded = false;
5414
5414
  this.expandToggleDisplay = expandToggleDisplays[0];
5415
5415
  this.expandToggleDisabled = undefined;
5416
- this.classCollection = new Me(['mg-c-panel']);
5416
+ this.classCollection = new Oe(['mg-c-panel']);
5417
5417
  this.isEditing = false;
5418
5418
  this.updatedPanelTitle = undefined;
5419
5419
  }
5420
5420
  validatePanelTitle(newValue) {
5421
- if (!Be(newValue))
5421
+ if (!Ne(newValue))
5422
5422
  throw new Error('<mg-panel> prop "panelTitle" is required.');
5423
5423
  this.titleChange.emit(newValue);
5424
5424
  }
@@ -5469,7 +5469,7 @@ const MgPanel = class {
5469
5469
  */
5470
5470
  render() {
5471
5471
  const headerId = `${this.identifier}-header`;
5472
- return (h("section", { key: '75509a6a7fdba04cea71380d46f5d0b66bbc9602', class: this.classCollection.join(), id: this.identifier }, h("mg-card", { key: '8ec07f87babeae31db85b5181d5884119010e8ce' }, h("header", { key: '045e43ab54c95691e1c4b758504bffc995f63340', class: { 'mg-c-panel__header': true, 'mg-c-panel__header--reverse': this.titlePosition === 'right' }, id: headerId }, this.renderHeaderChildren()), h("article", { key: '096d93e147c30c6ece4a6a3f5ee3acff05dc5143', class: "mg-c-panel__content", id: `${this.identifier}-content`, "aria-labelledby": headerId, hidden: !this.expanded }, h("slot", { key: '37f2d61903662b519e583eca0ca90c044386e539' })))));
5472
+ return (h("section", { key: 'd01136210425cb7790aab87d6c137ba74fc02af5', class: this.classCollection.join(), id: this.identifier }, h("mg-card", { key: '84084da775de623fd20c069de5e49d2542755907' }, h("header", { key: '9f3ef1d0d7b2dc275d0c7b39175e0f775cbb1e1b', class: { 'mg-c-panel__header': true, 'mg-c-panel__header--reverse': this.titlePosition === 'right' }, id: headerId }, this.renderHeaderChildren()), h("article", { key: '4b6cd2b1b604515d657368642fe21b21eb33b55b', class: "mg-c-panel__content", id: `${this.identifier}-content`, "aria-labelledby": headerId, hidden: !this.expanded }, h("slot", { key: '45db8591e0b85ed5e9704dc1a42fa75d24e96e39' })))));
5473
5473
  }
5474
5474
  get element() { return getElement(this); }
5475
5475
  static get watchers() { return {
@@ -7369,7 +7369,7 @@ const MgPopover = class {
7369
7369
  mgPopoverContent.setAttribute('id', this.identifier);
7370
7370
  }
7371
7371
  };
7372
- this.identifier = Re('mg-popover');
7372
+ this.identifier = Me('mg-popover');
7373
7373
  this.placement = 'bottom';
7374
7374
  this.arrowHide = false;
7375
7375
  this.closeButton = false;
@@ -7412,7 +7412,7 @@ const MgPopover = class {
7412
7412
  */
7413
7413
  componentWillLoad() {
7414
7414
  // Get windows to attach events
7415
- this.windows = _e(window);
7415
+ this.windows = Be(window);
7416
7416
  // render mg-popover-content slot
7417
7417
  this.renderPopoverContent();
7418
7418
  this.validateCloseButton(this.closeButton);
@@ -7474,7 +7474,7 @@ const MgPopover = class {
7474
7474
  * @returns HTML Element
7475
7475
  */
7476
7476
  render() {
7477
- return (h(Host, { key: '2faad932884b3c0a13e42f960470096ad7c2a4e9' }, h("slot", { key: '270b328576a6772d54d4cff826f2b7c63a9a6cda' }), h("slot", { key: '9fc11feb085c19562bdef1966135edee44799e21', name: "content" })));
7477
+ return (h(Host, { key: '788fd2a8f759f8ae9188b05395cbfc33b5b06c69' }, h("slot", { key: '9109948237f93d375e6d1b234274f8283c0260d3' }), h("slot", { key: 'e76a1093edab91746a4d3302d7976129ed7c6042', name: "content" })));
7478
7478
  }
7479
7479
  get element() { return getElement(this); }
7480
7480
  static get watchers() { return {
@@ -7500,7 +7500,7 @@ const MgPopoverContent = class {
7500
7500
  this.hideContent.emit();
7501
7501
  };
7502
7502
  this.closeButton = false;
7503
- this.classCollection = new Me(['mg-c-popover-content']);
7503
+ this.classCollection = new Oe(['mg-c-popover-content']);
7504
7504
  }
7505
7505
  /*************
7506
7506
  * Lifecycle *
@@ -7518,7 +7518,7 @@ const MgPopoverContent = class {
7518
7518
  componentDidLoad() {
7519
7519
  const headingTags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
7520
7520
  const slottedTitleElement = this.element.querySelector('[slot="title"]');
7521
- if (slottedTitleElement && !Fe(slottedTitleElement, headingTags)) {
7521
+ if (slottedTitleElement && !De(slottedTitleElement, headingTags)) {
7522
7522
  throw new Error(`<mg-popover> Slotted title must be a heading: ${headingTags.join(', ')}`);
7523
7523
  }
7524
7524
  }
@@ -7527,7 +7527,7 @@ const MgPopoverContent = class {
7527
7527
  * @returns HTML Element
7528
7528
  */
7529
7529
  render() {
7530
- return (h(Host, { key: 'e2ec01fc83727038047673eb89fa7a1fc6b90abe' }, h("mg-card", { key: '2ba199e78605edc19a6a0ddefb5a6749d80f6119', class: this.classCollection.join() }, this.closeButton && (h("mg-button", { "is-icon": true, variant: "flat", label: this.messages.general.close, onClick: this.handleCloseButton }, h("mg-icon", { icon: "cross" }))), h("div", { key: '1b6275e0da818d3f5606a9a49974f85b2aedda8a', class: "mg-c-popover-content__title" }, h("slot", { key: '6205bd6ccfba59e5526388b2f24251f5ff6cb6dc', name: "title" })), h("slot", { key: 'f1bc97234ef01af903e1c507bc79805ad252f02e', name: "content" })), h("slot", { key: '5f1a1a4fd2b0e86384b2b3d46da2d408fcec2e4e', name: "arrow" })));
7530
+ return (h(Host, { key: 'ffe73fca1c2d8ffa0f5ac2359b50a453b37df7be' }, h("mg-card", { key: 'f6e04d90892104abf496cf3ca3a601cb747346c9', class: this.classCollection.join() }, this.closeButton && (h("mg-button", { key: '53b6f7360b07321c0433fb2f44f1b1dd9016f204', "is-icon": true, variant: "flat", label: this.messages.general.close, onClick: this.handleCloseButton }, h("mg-icon", { key: 'aa638786bca9af815d36e1de905559d60e68e44c', icon: "cross" }))), h("div", { key: '0b9f1319e409a0b1d75d16236806fd024c8b804e', class: "mg-c-popover-content__title" }, h("slot", { key: '7f52704d2ed49ea048ffd06b763a238d288ccaf3', name: "title" })), h("slot", { key: '7a2fd6b013e592acb616793439b2f4e8458ec372', name: "content" })), h("slot", { key: 'ceb0a6453ece1b861fe5ab3d63e803b1f41cb148', name: "arrow" })));
7531
7531
  }
7532
7532
  get element() { return getElement(this); }
7533
7533
  };
@@ -7554,7 +7554,7 @@ const MgSkipLinks = class {
7554
7554
  this.links = undefined;
7555
7555
  }
7556
7556
  validateLinks(links) {
7557
- if (links === undefined || links.length === 0 || links.some(link => !Be(link.href) || !link.href.startsWith('#') || !Be(link.label))) {
7557
+ if (links === undefined || links.length === 0 || links.some(link => !Ne(link.href) || !link.href.startsWith('#') || !Ne(link.label))) {
7558
7558
  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.`);
7559
7559
  }
7560
7560
  }
@@ -7573,7 +7573,7 @@ const MgSkipLinks = class {
7573
7573
  * @returns HTML Element
7574
7574
  */
7575
7575
  render() {
7576
- return (h("nav", { key: 'c66cf3fb09a459865bb10f21a7f1b7c1c04eec87', class: "mg-c-skip-links", role: "navigation", "aria-label": this.messages.skipLinks.navLabel }, h("ul", { key: 'a8855a047dc8352df52ac16ca9c9a4b7ccf100c0', class: "mg-c-skip-links__list", role: "list" }, this.links.map(link => (h("li", { key: link.href }, h("a", { class: "mg-c-skip-links__link", href: link.href, onClick: this.handleLinkCLick }, link.label)))))));
7576
+ return (h("nav", { key: '2dac1b6dab0eb2634b803240325822ea3c8bae63', class: "mg-c-skip-links", role: "navigation", "aria-label": this.messages.skipLinks.navLabel }, h("ul", { key: 'e050de2426d080ede6a2b983ec0f9452b0e0f43b', class: "mg-c-skip-links__list", role: "list" }, this.links.map(link => (h("li", { key: link.href }, h("a", { class: "mg-c-skip-links__link", href: link.href, onClick: this.handleLinkCLick }, link.label)))))));
7577
7577
  }
7578
7578
  get element() { return getElement(this); }
7579
7579
  static get watchers() { return {
@@ -7706,7 +7706,7 @@ const MgTabs = class {
7706
7706
  */
7707
7707
  this.resetFocus = () => {
7708
7708
  // update asynchronously tabindex to prevent get focus on new tabindex at then end of event process
7709
- Ue(() => {
7709
+ Ce(() => {
7710
7710
  this.tabFocus = undefined;
7711
7711
  Array.from(this.element.shadowRoot.querySelectorAll('[data-index]')).forEach((tab, index) => {
7712
7712
  tab.setAttribute('tabindex', this.activeTab - this.startIndex !== index ? '-1' : '0');
@@ -7721,16 +7721,16 @@ const MgTabs = class {
7721
7721
  if (slots.length !== this.tabs.length)
7722
7722
  throw new Error('<mg-tabs> Must have slots counts equal to tabs count.');
7723
7723
  };
7724
- this.identifier = Re('mg-tabs');
7724
+ this.identifier = Me('mg-tabs');
7725
7725
  this.label = undefined;
7726
7726
  this.size = 'regular';
7727
7727
  this.items = undefined;
7728
7728
  this.activeTab = undefined;
7729
7729
  this.tabs = [];
7730
- this.classCollection = new Me(['mg-c-tabs']);
7730
+ this.classCollection = new Oe(['mg-c-tabs']);
7731
7731
  }
7732
7732
  validateLabel(newValue) {
7733
- if (!Be(newValue)) {
7733
+ if (!Ne(newValue)) {
7734
7734
  throw new Error('<mg-tabs> prop "label" is required.');
7735
7735
  }
7736
7736
  }
@@ -7742,7 +7742,7 @@ const MgTabs = class {
7742
7742
  }
7743
7743
  validateItems(newValue) {
7744
7744
  // String array
7745
- if (Oe(newValue))
7745
+ if (Fe(newValue))
7746
7746
  this.tabs = newValue.map(item => ({ label: item, status: Status.VISIBLE }));
7747
7747
  // Object array
7748
7748
  else if (Array.isArray(newValue) && newValue.length > 0 && newValue.every(isTabItem))
@@ -7804,7 +7804,7 @@ const MgTabs = class {
7804
7804
  * @returns HTML Element
7805
7805
  */
7806
7806
  render() {
7807
- return (h("div", { key: '6aa138347fc29ccb2ebadc034a50ad6daa61fcee', class: this.classCollection.join() }, h("header", { key: 'c5a350bd2e66f3fad27eec61d51dcd7aebd8e5c2', role: "tablist", "aria-label": this.label, class: "mg-c-tabs__header" }, this.tabs.map((tab, index) => (h("button", { key: tab.label, role: "tab", id: this.getElementId(this.identifier, index), class: {
7807
+ return (h("div", { key: '9327c6fb0d13d41d82b50e2f4f79696916ef142f', class: this.classCollection.join() }, h("header", { key: 'b783c343af1e817a2ab231d803e8ecf32df52566', role: "tablist", "aria-label": this.label, class: "mg-c-tabs__header" }, this.tabs.map((tab, index) => (h("button", { key: tab.label, role: "tab", id: this.getElementId(this.identifier, index), class: {
7808
7808
  [`${this.buttonTabBaseClass}`]: true,
7809
7809
  [`${this.buttonTabBaseClass}--horizontal`]: true,
7810
7810
  [`${this.getNavigationButtonClass(Status.ACTIVE)}`]: this.tabHasStatus(tab, Status.ACTIVE),
@@ -7842,7 +7842,7 @@ const MgTag = class {
7842
7842
  this.variant = variants[0];
7843
7843
  this.outline = undefined;
7844
7844
  this.soft = undefined;
7845
- this.classCollection = new Me(['mg-c-tag']);
7845
+ this.classCollection = new Oe(['mg-c-tag']);
7846
7846
  }
7847
7847
  validateVariant(newValue, oldValue) {
7848
7848
  if (!variants.includes(newValue)) {
@@ -7879,7 +7879,7 @@ const MgTag = class {
7879
7879
  * @param textContent - html element textContent property
7880
7880
  */
7881
7881
  validateTextContent(textContent) {
7882
- if (!Be(textContent))
7882
+ if (!Ne(textContent))
7883
7883
  throw new Error('<mg-tag> slot must contain a text content.');
7884
7884
  }
7885
7885
  /*************
@@ -7899,7 +7899,7 @@ const MgTag = class {
7899
7899
  * @returns HTML Element
7900
7900
  */
7901
7901
  render() {
7902
- return (h("span", { key: 'f107390f5fb47c34faac9de08a08739499d0e409', class: this.classCollection.join() }, h("slot", { key: '04b346f71dff32aa32f52b96553154434ba231eb' })));
7902
+ return (h("span", { key: '0746ab46695d72da229ea6b899c5ec9d4d09b0f0', class: this.classCollection.join() }, h("slot", { key: 'c1b246aaf9b5b199726c856b7e6a67be54e55b7c' })));
7903
7903
  }
7904
7904
  get element() { return getElement(this); }
7905
7905
  static get watchers() { return {
@@ -7939,7 +7939,7 @@ const MgTooltip = class {
7939
7939
  // Enable the event listeners
7940
7940
  this.popper.setOptions(options => (Object.assign(Object.assign({}, options), { modifiers: [...options.modifiers, { name: 'eventListeners', enabled: true }] })));
7941
7941
  // hide when click outside on nextTick to prevent event to trigger after creation
7942
- Ue(() => {
7942
+ Ce(() => {
7943
7943
  this.windows.forEach((localWindow) => {
7944
7944
  localWindow.addEventListener('click', this.clickOutside, false);
7945
7945
  localWindow.addEventListener('keydown', this.pressEscape, false);
@@ -8110,7 +8110,7 @@ const MgTooltip = class {
8110
8110
  });
8111
8111
  });
8112
8112
  };
8113
- this.identifier = Re('mg-tooltip');
8113
+ this.identifier = Me('mg-tooltip');
8114
8114
  this.message = undefined;
8115
8115
  this.placement = 'bottom';
8116
8116
  this.display = false;
@@ -8121,7 +8121,7 @@ const MgTooltip = class {
8121
8121
  this.renderTooltipContent();
8122
8122
  }
8123
8123
  validateMessage(newValue) {
8124
- if (!Be(newValue)) {
8124
+ if (!Ne(newValue)) {
8125
8125
  throw new Error('<mg-tooltip> prop "message" is required.');
8126
8126
  }
8127
8127
  this.mgTooltipContent.message = newValue;
@@ -8170,7 +8170,7 @@ const MgTooltip = class {
8170
8170
  */
8171
8171
  componentWillLoad() {
8172
8172
  // Get windows to attach events
8173
- this.windows = _e(window);
8173
+ this.windows = Be(window);
8174
8174
  // Get tooltip element
8175
8175
  this.renderTooltipContent();
8176
8176
  this.mgTooltipContent = this.element.querySelector(`#${this.identifier}`);
@@ -8189,7 +8189,7 @@ const MgTooltip = class {
8189
8189
  // get slotted element wich is not the tooltip
8190
8190
  const slotElement = this.element.querySelector(`*:not(#${this.identifier})`);
8191
8191
  // Get interactive element
8192
- const interactiveElement = slotElement.matches(De) ? slotElement : (_a = slotElement.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(De);
8192
+ const interactiveElement = slotElement.matches(_e) ? slotElement : (_a = slotElement.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(_e);
8193
8193
  // define selected element to become tooltip selector
8194
8194
  this.tooltipedElement = interactiveElement || slotElement;
8195
8195
  // Check if slotted element is a disabled mg-button
@@ -8221,7 +8221,7 @@ const MgTooltip = class {
8221
8221
  * @returns HTML Element
8222
8222
  */
8223
8223
  render() {
8224
- return (h(Host, { key: '1e78ccb946f44e44298b967286535bd5cb74f00d' }, h("slot", { key: 'cbc51e25225889f1b151499e98ab903a7daed059' }), h("slot", { key: '3e45bf6b40fc00b245f36d1cead2cb2659786ef9', name: "content" })));
8224
+ return (h(Host, { key: 'bc92b38b5934945abf8657aeb56804c81274a11e' }, h("slot", { key: '5fca70b68f35c72c92252106d4b26766e2f671bb' }), h("slot", { key: '4426a5f6f55f549791ff22cc7220d728d2cca04f', name: "content" })));
8225
8225
  }
8226
8226
  get element() { return getElement(this); }
8227
8227
  static get watchers() { return {
@@ -8249,7 +8249,7 @@ const MgTooltipContent = class {
8249
8249
  * @returns HTML Element
8250
8250
  */
8251
8251
  render() {
8252
- return (h(Host, { key: '81cff61f9230149078ace113a6661ae15ab6482e', role: "tooltip" }, h("span", { key: '11c2076354834ff3e51055197422726933154540', innerHTML: this.message, class: "mg-tooltip-content__message" }), h("slot", { key: 'ce2da739d5ac72a4ae3927a0b528a760f3f6422e', name: "arrow" })));
8252
+ return (h(Host, { key: '749056e11074a73ef0bbe1aab102c334f0de8fed', role: "tooltip" }, h("span", { key: 'e7db4c4ab009e7ebd9908c86d151216919c59e9a', innerHTML: this.message, class: "mg-tooltip-content__message" }), h("slot", { key: 'f260fbe909763b8e221acd4178df0880f650a3a5', name: "arrow" })));
8253
8253
  }
8254
8254
  };
8255
8255
  MgTooltipContent.style = MgTooltipContentStyle0;