@mgdis/mg-components 6.10.1 → 6.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/dist/cjs/{index-CL_COdxv.js → index-B_WwxtkQ.js} +4 -4
  2. package/dist/cjs/{index-CL_COdxv.js.map → index-B_WwxtkQ.js.map} +1 -1
  3. package/dist/cjs/{index.es-DaPqByCe.js → index.es-C-3Gv8Eu.js} +47 -43
  4. package/dist/cjs/index.es-C-3Gv8Eu.js.map +1 -0
  5. package/dist/cjs/mg-action-more_37.cjs.entry.js +186 -187
  6. package/dist/cjs/mg-action-more_37.cjs.entry.js.map +1 -1
  7. package/dist/cjs/mg-alert.cjs.entry.js +6 -6
  8. package/dist/cjs/mg-input-combobox.cjs.entry.js +74 -71
  9. package/dist/cjs/mg-input-combobox.cjs.entry.js.map +1 -1
  10. package/dist/cjs/mg-input-combobox.entry.cjs.js.map +1 -1
  11. package/dist/cjs/mg-input-rich-text-editor.cjs.entry.js +6 -6
  12. package/dist/cjs/mg-loader.cjs.entry.js +3 -3
  13. package/dist/cjs/mg-progress.cjs.entry.js +9 -9
  14. package/dist/collection/components/atoms/mg-button/mg-button.js +1 -1
  15. package/dist/collection/components/atoms/mg-button/mg-button.js.map +1 -1
  16. package/dist/collection/components/molecules/inputs/mg-input-combobox/mg-input-combobox.conf.js.map +1 -1
  17. package/dist/collection/components/molecules/inputs/mg-input-combobox/mg-input-combobox.js +67 -45
  18. package/dist/collection/components/molecules/inputs/mg-input-combobox/mg-input-combobox.js.map +1 -1
  19. package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +25 -30
  20. package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js.map +1 -1
  21. package/dist/collection/components/molecules/mg-details/mg-details.js +5 -1
  22. package/dist/collection/components/molecules/mg-details/mg-details.js.map +1 -1
  23. package/dist/components/index.es.js +40 -37
  24. package/dist/components/index.es.js.map +1 -1
  25. package/dist/components/index2.js +2 -2
  26. package/dist/components/mg-action-more.js +6 -6
  27. package/dist/components/mg-alert.js +5 -5
  28. package/dist/components/mg-badge2.js +5 -5
  29. package/dist/components/mg-button2.js +6 -6
  30. package/dist/components/mg-button2.js.map +1 -1
  31. package/dist/components/mg-character-left2.js +4 -4
  32. package/dist/components/mg-details.js +6 -2
  33. package/dist/components/mg-details.js.map +1 -1
  34. package/dist/components/mg-form.js +7 -7
  35. package/dist/components/mg-icon2.js +6 -6
  36. package/dist/components/mg-illustrated-message.js +5 -5
  37. package/dist/components/mg-input-checkbox.js +5 -5
  38. package/dist/components/mg-input-combobox.js +73 -70
  39. package/dist/components/mg-input-combobox.js.map +1 -1
  40. package/dist/components/mg-input-date.js +14 -14
  41. package/dist/components/mg-input-numeric.js +11 -11
  42. package/dist/components/mg-input-password.js +2 -2
  43. package/dist/components/mg-input-radio.js +6 -6
  44. package/dist/components/mg-input-rich-text-editor.js +5 -5
  45. package/dist/components/mg-input-select2.js +31 -36
  46. package/dist/components/mg-input-select2.js.map +1 -1
  47. package/dist/components/mg-input-text2.js +6 -6
  48. package/dist/components/mg-input-textarea.js +5 -5
  49. package/dist/components/mg-input-title2.js +3 -3
  50. package/dist/components/mg-input-toggle.js +5 -5
  51. package/dist/components/mg-input2.js +6 -6
  52. package/dist/components/mg-item-more2.js +7 -7
  53. package/dist/components/mg-loader2.js +2 -2
  54. package/dist/components/mg-menu-item2.js +8 -8
  55. package/dist/components/mg-message2.js +4 -4
  56. package/dist/components/mg-modal.js +7 -7
  57. package/dist/components/mg-pagination2.js +6 -6
  58. package/dist/components/mg-panel.js +8 -8
  59. package/dist/components/mg-popover-content2.js +3 -3
  60. package/dist/components/mg-popover2.js +5 -5
  61. package/dist/components/mg-progress.js +9 -9
  62. package/dist/components/mg-table.js +5 -5
  63. package/dist/components/mg-tabs.js +11 -11
  64. package/dist/components/mg-tag.js +3 -3
  65. package/dist/components/mg-tooltip2.js +8 -8
  66. package/dist/esm/{index-DALWFL9i.js → index-DHpyFawS.js} +4 -4
  67. package/dist/esm/{index-DALWFL9i.js.map → index-DHpyFawS.js.map} +1 -1
  68. package/dist/esm/{index.es-hNwGkhG6.js → index.es-lyrZ9KRh.js} +42 -39
  69. package/dist/esm/index.es-lyrZ9KRh.js.map +1 -0
  70. package/dist/esm/mg-action-more_37.entry.js +186 -187
  71. package/dist/esm/mg-action-more_37.entry.js.map +1 -1
  72. package/dist/esm/mg-alert.entry.js +6 -6
  73. package/dist/esm/mg-input-combobox.entry.js +74 -71
  74. package/dist/esm/mg-input-combobox.entry.js.map +1 -1
  75. package/dist/esm/mg-input-rich-text-editor.entry.js +6 -6
  76. package/dist/esm/mg-loader.entry.js +3 -3
  77. package/dist/esm/mg-progress.entry.js +9 -9
  78. package/dist/mg-components/mg-components.esm.js +1 -1
  79. package/dist/mg-components/mg-input-combobox.entry.esm.js.map +1 -1
  80. package/dist/mg-components/{p-bf5de898.entry.js → p-596c0e08.entry.js} +2 -2
  81. package/dist/mg-components/p-8a3bd8ad.entry.js +2 -0
  82. package/dist/mg-components/p-8a3bd8ad.entry.js.map +1 -0
  83. package/dist/mg-components/p-98a74b62.entry.js +2 -0
  84. package/dist/mg-components/{p-a52a168c.entry.js.map → p-98a74b62.entry.js.map} +1 -1
  85. package/dist/mg-components/{p-Cg3R_y_o.js → p-C-vIqOyI.js} +2 -2
  86. package/dist/mg-components/{p-Cg3R_y_o.js.map → p-C-vIqOyI.js.map} +1 -1
  87. package/dist/mg-components/{p-e33557f9.entry.js → p-d4ed3aad.entry.js} +2 -2
  88. package/dist/mg-components/p-e822bd96.entry.js +2 -0
  89. package/dist/mg-components/{p-352cfc01.entry.js.map → p-e822bd96.entry.js.map} +1 -1
  90. package/dist/mg-components/p-fc7b96e6.entry.js +2 -0
  91. package/dist/mg-components/p-fc7b96e6.entry.js.map +1 -0
  92. package/dist/mg-components/p-lyrZ9KRh.js +2 -0
  93. package/dist/mg-components/p-lyrZ9KRh.js.map +1 -0
  94. package/dist/types/components/molecules/inputs/mg-input-combobox/mg-input-combobox.conf.d.ts +1 -1
  95. package/dist/types/components/molecules/inputs/mg-input-combobox/mg-input-combobox.d.ts +5 -0
  96. package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.d.ts +0 -9
  97. package/dist/types/components/molecules/mg-details/mg-details.d.ts +1 -0
  98. package/dist/types/components.d.ts +5 -0
  99. package/ide/intellij/web-types.json +6 -2
  100. package/ide/vscode/html-custom-data.json +1 -1
  101. package/package.json +8 -8
  102. package/dist/cjs/index.es-DaPqByCe.js.map +0 -1
  103. package/dist/esm/index.es-hNwGkhG6.js.map +0 -1
  104. package/dist/mg-components/p-352cfc01.entry.js +0 -2
  105. package/dist/mg-components/p-68f7de47.entry.js +0 -2
  106. package/dist/mg-components/p-68f7de47.entry.js.map +0 -1
  107. package/dist/mg-components/p-a52a168c.entry.js +0 -2
  108. package/dist/mg-components/p-dcefa0b0.entry.js +0 -2
  109. package/dist/mg-components/p-dcefa0b0.entry.js.map +0 -1
  110. package/dist/mg-components/p-hNwGkhG6.js +0 -2
  111. package/dist/mg-components/p-hNwGkhG6.js.map +0 -1
  112. /package/dist/mg-components/{p-bf5de898.entry.js.map → p-596c0e08.entry.js.map} +0 -0
  113. /package/dist/mg-components/{p-e33557f9.entry.js.map → p-d4ed3aad.entry.js.map} +0 -0
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-CATFkm3O.js');
4
- var index_es = require('./index.es-DaPqByCe.js');
5
- var index$1 = require('./index-CL_COdxv.js');
4
+ var index_es = require('./index.es-C-3Gv8Eu.js');
5
+ var index$1 = require('./index-B_WwxtkQ.js');
6
6
  var events_utils = require('./events.utils-D5SAtkpQ.js');
7
7
  var mgInput_conf = require('./mg-input.conf-WTsvDfpC.js');
8
8
 
@@ -76,7 +76,7 @@ const MgActionMore = class {
76
76
  ************/
77
77
  this.name = 'mg-action-more';
78
78
  this.classBase = 'mg-c-action-more';
79
- this.mgPopoverIdentifier = index_es.Zt(this.name);
79
+ this.mgPopoverIdentifier = index_es.Dt(this.name);
80
80
  /**
81
81
  * Define button properties
82
82
  */
@@ -123,15 +123,15 @@ const MgActionMore = class {
123
123
  }
124
124
  validateItems(newValue) {
125
125
  if (!isMgActionMoreItems(newValue)) {
126
- throw new Error(`<${this.name}> prop "items" is required and all values must be the same type, MgActionMoreItemType or MgActionMoreDividerType. Passed value: ${index_es.Xt(newValue)}.`);
126
+ throw new Error(`<${this.name}> prop "items" is required and all values must be the same type, MgActionMoreItemType or MgActionMoreDividerType. Passed value: ${index_es.Yt(newValue)}.`);
127
127
  }
128
128
  else if (isMgActionMoreItems(newValue) && newValue.length > 0 && (isMgActionMoreDivider(newValue[0]) || isMgActionMoreDivider(newValue[newValue.length - 1]))) {
129
- throw new Error(`<${this.name}> prop "items" can’t have a divider at the beginning or the end of the array. Passed value: ${index_es.Xt(newValue)}.`);
129
+ throw new Error(`<${this.name}> prop "items" can’t have a divider at the beginning or the end of the array. Passed value: ${index_es.Yt(newValue)}.`);
130
130
  }
131
131
  }
132
132
  validateIcon(newValue) {
133
133
  if (newValue && !isMgActionMoreIcon(newValue)) {
134
- throw new Error(`<${this.name}> prop "icon" must match MgActionMoreIconType. Passed value: ${index_es.Xt(newValue)}.`);
134
+ throw new Error(`<${this.name}> prop "icon" must match MgActionMoreIconType. Passed value: ${index_es.Yt(newValue)}.`);
135
135
  }
136
136
  else if ((newValue === null || newValue === void 0 ? void 0 : newValue.icon) === undefined && Boolean(this.button.isIcon)) {
137
137
  this.icon = { icon: 'ellipsis' };
@@ -139,7 +139,7 @@ const MgActionMore = class {
139
139
  }
140
140
  validateButton(newValue) {
141
141
  if (newValue && !isMgActionMoreButton(newValue)) {
142
- throw new Error(`<${this.name}> prop "button" must match MgActionMoreButtonType. Passed value: ${index_es.Xt(newValue)}.`);
142
+ throw new Error(`<${this.name}> prop "button" must match MgActionMoreButtonType. Passed value: ${index_es.Yt(newValue)}.`);
143
143
  }
144
144
  }
145
145
  validateDisplayChevron(newValue) {
@@ -216,21 +216,21 @@ const MgBadge = class {
216
216
  /**
217
217
  * Component classes
218
218
  */
219
- this.classCollection = new index_es.Ht(['mg-c-badge']);
219
+ this.classCollection = new index_es.qt(['mg-c-badge']);
220
220
  }
221
221
  validateValue(newValue) {
222
222
  if (/^[^A-Z]+$/i.exec(`${newValue}`) === null) {
223
- throw new Error(`<mg-badge> prop "value" is required and must be integer and/or special character. Passed value: ${index_es.Xt(newValue)}.`);
223
+ throw new Error(`<mg-badge> prop "value" is required and must be integer and/or special character. Passed value: ${index_es.Yt(newValue)}.`);
224
224
  }
225
225
  }
226
226
  validateLabel(newValue) {
227
227
  if (!index_es.qe(newValue)) {
228
- throw new Error(`<mg-badge> prop "label" is required and must be a string. Passed value: ${index_es.Xt(newValue)}.`);
228
+ throw new Error(`<mg-badge> prop "label" is required and must be a string. Passed value: ${index_es.Yt(newValue)}.`);
229
229
  }
230
230
  }
231
231
  validateVariant(newValue, oldValue) {
232
232
  if (!variants$4.includes(newValue)) {
233
- throw new Error(`<mg-badge> prop "variant" must be one of: ${variants$4.join(', ')}. Passed value: ${index_es.Xt(newValue)}.`);
233
+ throw new Error(`<mg-badge> prop "variant" must be one of: ${variants$4.join(', ')}. Passed value: ${index_es.Yt(newValue)}.`);
234
234
  }
235
235
  else {
236
236
  if (oldValue !== undefined) {
@@ -323,7 +323,7 @@ const MgButton = class {
323
323
  /**
324
324
  * Component classes
325
325
  */
326
- this.classCollection = new index_es.Ht(['mg-c-button']);
326
+ this.classCollection = new index_es.qt(['mg-c-button']);
327
327
  /**
328
328
  * Trigger actions onClick event
329
329
  * @param event - click event
@@ -381,7 +381,7 @@ const MgButton = class {
381
381
  this.variant = variants$3[0];
382
382
  return;
383
383
  }
384
- throw new Error(`<mg-button> prop "variant" must be one of: ${variants$3.join(', ')}. Passed value: ${index_es.Xt(newValue)}.`);
384
+ throw new Error(`<mg-button> prop "variant" must be one of: ${variants$3.join(', ')}. Passed value: ${index_es.Yt(newValue)}.`);
385
385
  }
386
386
  else {
387
387
  if (oldValue !== undefined) {
@@ -393,7 +393,7 @@ const MgButton = class {
393
393
  validateSize(newValue, oldValue) {
394
394
  // validate new value
395
395
  if (!sizes$4.includes(newValue)) {
396
- throw new Error(`<mg-button> prop "size" must be one of: ${sizes$4.join(', ')}. Passed value: ${index_es.Xt(newValue)}.`);
396
+ throw new Error(`<mg-button> prop "size" must be one of: ${sizes$4.join(', ')}. Passed value: ${index_es.Yt(newValue)}.`);
397
397
  }
398
398
  else {
399
399
  if (oldValue !== undefined) {
@@ -466,7 +466,7 @@ const MgButton = class {
466
466
  * Add listners
467
467
  */
468
468
  componentDidLoad() {
469
- index_es.Qt(() => {
469
+ index_es.er(() => {
470
470
  var _a;
471
471
  const closestForm = this.element.closest('form') || ((_a = this.element.closest('mg-form')) === null || _a === void 0 ? void 0 : _a.shadowRoot.querySelector('form'));
472
472
  // submit buttons should trigger form submition;
@@ -483,7 +483,7 @@ const MgButton = class {
483
483
  */
484
484
  render() {
485
485
  var _a;
486
- return (index.h(index.Host, { key: '9cf0c234da7c2f0ca5ab1d6578fc1a00b7b6aa71', role: "button", tabIndex: 0, type: this.type, form: this.form, "full-width": this.fullWidth, "aria-label": this.label, "aria-disabled": (_a = this.disabled) === null || _a === void 0 ? void 0 : _a.toString(), onClick: this.handleClick, onKeyup: this.handleKeyup, onKeydown: this.handleKeydown }, index.h("div", { key: 'e4fc763ce10eb5958ebd9330f778380bb93100d6', class: this.classCollection.join() }, this.loading && index.h("mg-icon", { key: '6796487254b12a33339ac6b3a5f6c67000d8fe04', icon: "loader", spin: true }), index.h("div", { key: '469136ef8519825ebff3e6ee2bfe8c55e64a807d', class: "mg-c-button__content" }, index.h("slot", { key: 'eda514d71eaab7f7cf5cd3a65b64ffb6c9ed2e02' })))));
486
+ return (index.h(index.Host, { key: '75cfc1c3626cb040323feaccc4d6926a142a1cec', role: "button", tabIndex: this.element.getAttribute('tabindex') || 0, type: this.type, form: this.form, "full-width": this.fullWidth, "aria-label": this.label, "aria-disabled": (_a = this.disabled) === null || _a === void 0 ? void 0 : _a.toString(), onClick: this.handleClick, onKeyup: this.handleKeyup, onKeydown: this.handleKeydown }, index.h("div", { key: 'cf20f508a4ee0e9674fde4bc5307f2e16cf2894e', class: this.classCollection.join() }, this.loading && index.h("mg-icon", { key: 'b378739392aa99ed04299c702aed4d87a2e81a72', icon: "loader", spin: true }), index.h("div", { key: '02dcdb164ca3963c0f1740fd3742d178c2b951b5', class: "mg-c-button__content" }, index.h("slot", { key: 'fb29ea2b9a9a9bf3d22b283227fe60b7a0ce697e' })))));
487
487
  }
488
488
  get element() { return index.getElement(this); }
489
489
  static get watchers() { return {
@@ -527,13 +527,13 @@ const MgCharacterLeft = class {
527
527
  this.characters = '';
528
528
  }
529
529
  watchIdentifier(newValue) {
530
- if (newValue !== undefined && !index_es.Dt(newValue)) {
531
- console.error(`<mg-character-left> prop "identifier" value is invalid. Passed value: ${index_es.Xt(newValue)}.`);
530
+ if (newValue !== undefined && !index_es.Bt(newValue)) {
531
+ console.error(`<mg-character-left> prop "identifier" value is invalid. Passed value: ${index_es.Yt(newValue)}.`);
532
532
  }
533
533
  }
534
534
  validateMaxlength(newValue) {
535
535
  if (typeof newValue !== 'number') {
536
- throw new Error(`<mg-character-left> prop "maxlength" is required and must be a number. Passed value: ${index_es.Xt(newValue)}.`);
536
+ throw new Error(`<mg-character-left> prop "maxlength" is required and must be a number. Passed value: ${index_es.Yt(newValue)}.`);
537
537
  }
538
538
  }
539
539
  /*************
@@ -562,7 +562,7 @@ const MgCharacterLeft = class {
562
562
  };
563
563
  MgCharacterLeft.style = mgCharacterLeftCss;
564
564
 
565
- const mgDetailsCss = ".mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}/*!\n * @prop --mg-c-details-spacing: Defines the spacing between the summary and the details. Default value: `--mg-b-size-8`.\n */.mg-c-details summary{display:inline-flex;align-items:baseline;cursor:pointer;gap:var(--mg-b-size-16)}.mg-c-details summary::-webkit-details-marker{display:none}.mg-c-details__toggle{display:flex;min-height:calc(var(--mg-b-font-size)*var(--mg-b-line-height));flex-shrink:0;align-items:center;align-self:flex-start;gap:var(--mg-b-size-4)}.mg-c-details__toggle-icon.mg-c-details__toggle-icon--reverse{transform:rotate(180deg)}.mg-c-details__details{margin-top:var(--mg-c-details-spacing)}@media (width < 43.75rem){.mg-c-details__toggle>span{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}}";
565
+ const mgDetailsCss = ".mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}/*!\n * @prop --mg-c-details-spacing: Defines the spacing between the summary and the details. Default value: `--mg-b-size-8`.\n */.mg-c-details summary{display:inline-flex;align-items:baseline;cursor:pointer;gap:var(--mg-b-size-16)}.mg-c-details summary::-webkit-details-marker{display:none}.mg-c-details.mg-c-details--empty-summary summary{gap:unset}.mg-c-details__toggle{display:flex;min-height:calc(var(--mg-b-font-size)*var(--mg-b-line-height));flex-shrink:0;align-items:center;align-self:flex-start;gap:var(--mg-b-size-4)}.mg-c-details__toggle-icon.mg-c-details__toggle-icon--reverse{transform:rotate(180deg)}.mg-c-details__details{margin-top:var(--mg-c-details-spacing)}@media (width < 43.75rem){.mg-c-details:not(.mg-c-details--empty-summary) .mg-c-details__toggle>span{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}}";
566
566
 
567
567
  const MgDetails = class {
568
568
  constructor(hostRef) {
@@ -600,6 +600,10 @@ const MgDetails = class {
600
600
  componentWillLoad() {
601
601
  this.validateTitles(this.toggleClosed);
602
602
  this.validateTitles(this.toggleOpened);
603
+ // Check if summary slot is empty
604
+ const summarySlot = this.element.querySelector('[slot="summary"]');
605
+ this.isEmptySummary = summarySlot === null || !index_es.qe(summarySlot.textContent);
606
+ // Add event listener to prevent default action on summary click
603
607
  this.element.addEventListener('click', (event) => {
604
608
  if (event.target.closest('[slot="summary"] mg-button, mg-button[slot="summary"]') !== null) {
605
609
  event.preventDefault();
@@ -611,7 +615,7 @@ const MgDetails = class {
611
615
  * @returns HTML Element
612
616
  */
613
617
  render() {
614
- return (index.h("details", { key: 'e43aa4f4262d7006b9fdd0e75666649498081d55', class: "mg-c-details", onToggle: this.handleToggle, open: this.expanded, ref: (el) => (this.details = el) }, index.h("summary", { key: '050d5c0a645a017aaa784a4034201122b27238f0' }, index.h("slot", { key: 'e0d7ed83952bdd74a23ecabe93c4d0c922cda286', name: "summary" }), index.h("span", { key: '27238089072f0f0ca8f3263ec39e41291ab89907', class: "mg-c-details__toggle" }, index.h("mg-icon", { key: 'f1702911d70e2a95ecaac17a7a0c43a075ea8c18', icon: "chevron-up", class: { 'mg-c-details__toggle-icon': true, 'mg-c-details__toggle-icon--reverse': !this.expanded } }), index.h("span", { key: '6854f4ecd77d04e297b807060a0d064401d6537f', class: { 'mg-u-visually-hidden': this.hideSummary } }, this.expanded ? this.toggleOpened : this.toggleClosed))), index.h("div", { key: '85e57b346ff8327d31f92a1e86c42fd8f131f6dc', class: "mg-c-details__details" }, index.h("slot", { key: 'bd016ab29d695bb1ccd99b9fd402ed23bbdc19ea', name: "details" }))));
618
+ return (index.h("details", { key: '7ec633056f7e127154b9d8f30f77bd9d03a78591', class: { 'mg-c-details': true, 'mg-c-details--empty-summary': this.isEmptySummary }, onToggle: this.handleToggle, open: this.expanded, ref: (el) => (this.details = el) }, index.h("summary", { key: '4947a7a5d1971feb4f7b27c5bc161b0599b640c1' }, index.h("slot", { key: '6505ae282f5cc53ac3b5f924caee6347e958b03f', name: "summary" }), index.h("span", { key: 'fcf391abf5a99f3ff9f5a006698e9ef646ca159e', class: "mg-c-details__toggle" }, index.h("mg-icon", { key: '5d02b782ce1f762612ae5881cd85d65680addaa9', icon: "chevron-up", class: { 'mg-c-details__toggle-icon': true, 'mg-c-details__toggle-icon--reverse': !this.expanded } }), index.h("span", { key: '0dbd12e051714756a633146a99303088cbab4fa7', class: { 'mg-u-visually-hidden': this.hideSummary } }, this.expanded ? this.toggleOpened : this.toggleClosed))), index.h("div", { key: '607ae907cce5efd3fa56d9ed62cf9f4091abf262', class: "mg-c-details__details" }, index.h("slot", { key: '0e1eda9ec27c618aee1929727676d9450e457b42', name: "details" }))));
615
619
  }
616
620
  get element() { return index.getElement(this); }
617
621
  static get watchers() { return {
@@ -671,7 +675,7 @@ const MgForm = class {
671
675
  * Identifier is used for the element ID (id is a reserved prop in Stencil.js)
672
676
  * If not set, it will be created.
673
677
  */
674
- this.identifier = index_es.Zt('mg-form');
678
+ this.identifier = index_es.Dt('mg-form');
675
679
  /**
676
680
  * Input name
677
681
  * If not set the value equals the identifier
@@ -692,7 +696,7 @@ const MgForm = class {
692
696
  /**
693
697
  * Component classes
694
698
  */
695
- this.classCollection = new index_es.Ht(['mg-c-form']);
699
+ this.classCollection = new index_es.qt(['mg-c-form']);
696
700
  /**
697
701
  * Define required message based on mg-inputs required elements
698
702
  */
@@ -780,18 +784,18 @@ const MgForm = class {
780
784
  };
781
785
  }
782
786
  watchIdentifier(newValue) {
783
- if (!index_es.Dt(newValue)) {
784
- console.error(`<mg-form> prop "identifier" value is invalid. Passed value: ${index_es.Xt(newValue)}.`);
787
+ if (!index_es.Bt(newValue)) {
788
+ console.error(`<mg-form> prop "identifier" value is invalid. Passed value: ${index_es.Yt(newValue)}.`);
785
789
  }
786
790
  }
787
791
  validateRequiredMessage(newValue) {
788
792
  if (newValue && !requiredMessageStatus.includes(newValue)) {
789
- throw new Error(`<mg-form> prop "requiredMessage" must be one of: ${requiredMessageStatus.join(', ')}. Passed value: ${index_es.Xt(newValue)}.`);
793
+ throw new Error(`<mg-form> prop "requiredMessage" must be one of: ${requiredMessageStatus.join(', ')}. Passed value: ${index_es.Yt(newValue)}.`);
790
794
  }
791
795
  }
792
796
  validateAriaRole(newValue) {
793
797
  if (newValue && !roles.includes(newValue)) {
794
- throw new Error(`<mg-form> prop "ariaRole" must be one of: ${roles.join(', ')}. Passed value: ${index_es.Xt(newValue)}.`);
798
+ throw new Error(`<mg-form> prop "ariaRole" must be one of: ${roles.join(', ')}. Passed value: ${index_es.Yt(newValue)}.`);
795
799
  }
796
800
  }
797
801
  handlelabelOnTop(newValue) {
@@ -925,7 +929,7 @@ const MgIcon = class {
925
929
  /**
926
930
  * Component classes
927
931
  */
928
- this.classCollection = new index_es.Ht(['mg-c-icon']);
932
+ this.classCollection = new index_es.qt(['mg-c-icon']);
929
933
  /**
930
934
  * Method to set default varianStyle props
931
935
  * needeed has stencil doesn't know that props is mutated when updated in prop watcher
@@ -956,7 +960,7 @@ const MgIcon = class {
956
960
  }
957
961
  validateIcon(newValue, oldValue) {
958
962
  if (!Object.keys(icons).includes(newValue)) {
959
- throw new Error(`<mg-icon> prop "icon" must be one of: ${Object.keys(icons).join(', ')}. Passed value: ${index_es.Xt(newValue)}.`);
963
+ throw new Error(`<mg-icon> prop "icon" must be one of: ${Object.keys(icons).join(', ')}. Passed value: ${index_es.Yt(newValue)}.`);
960
964
  }
961
965
  else {
962
966
  if (oldValue !== undefined) {
@@ -972,7 +976,7 @@ const MgIcon = class {
972
976
  newValue = 'medium';
973
977
  }
974
978
  if (!sizes$3.includes(newValue)) {
975
- throw new Error(`<mg-icon> prop "size" must be one of: ${sizes$3.join(', ')}. Passed value: ${index_es.Xt(newValue)}.`);
979
+ throw new Error(`<mg-icon> prop "size" must be one of: ${sizes$3.join(', ')}. Passed value: ${index_es.Yt(newValue)}.`);
976
980
  }
977
981
  else {
978
982
  if (oldValue !== undefined) {
@@ -984,7 +988,7 @@ const MgIcon = class {
984
988
  validateVariant(newValue, oldValue) {
985
989
  if (newValue !== undefined) {
986
990
  if (!variants$2.includes(newValue))
987
- throw new Error(`<mg-icon> prop "variant" must be one of: ${variants$2.join(', ')}. Passed value: ${index_es.Xt(newValue)}.`);
991
+ throw new Error(`<mg-icon> prop "variant" must be one of: ${variants$2.join(', ')}. Passed value: ${index_es.Yt(newValue)}.`);
988
992
  else {
989
993
  this.setDefaultVariantStyle();
990
994
  if (oldValue !== undefined)
@@ -996,7 +1000,7 @@ const MgIcon = class {
996
1000
  validateVariantStyle(newValue, oldValue) {
997
1001
  if (newValue !== undefined) {
998
1002
  if (!variantStyles$1.includes(newValue))
999
- throw new Error(`<mg-icon> prop "variantStyle" must be one of: ${variantStyles$1.join(', ')}. Passed value: ${index_es.Xt(newValue)}.`);
1003
+ throw new Error(`<mg-icon> prop "variantStyle" must be one of: ${variantStyles$1.join(', ')}. Passed value: ${index_es.Yt(newValue)}.`);
1000
1004
  else {
1001
1005
  if (oldValue !== undefined)
1002
1006
  this.classCollection.delete(`mg-c-icon--variant-style-${oldValue}`);
@@ -1066,11 +1070,11 @@ const MgIllustratedMessage = class {
1066
1070
  /**
1067
1071
  * Component classes
1068
1072
  */
1069
- this.classCollection = new index_es.Ht(['mg-c-illustrated-message']);
1073
+ this.classCollection = new index_es.qt(['mg-c-illustrated-message']);
1070
1074
  }
1071
1075
  watchSize(newValue, oldValue) {
1072
1076
  if (!sizes$2.includes(newValue)) {
1073
- throw new Error(`<mg-illustrated-message> prop "size" must be one of: ${sizes$2.join(', ')}. Passed value: ${index_es.Xt(newValue)}.`);
1077
+ throw new Error(`<mg-illustrated-message> prop "size" must be one of: ${sizes$2.join(', ')}. Passed value: ${index_es.Yt(newValue)}.`);
1074
1078
  }
1075
1079
  else {
1076
1080
  if (oldValue !== undefined) {
@@ -1081,7 +1085,7 @@ const MgIllustratedMessage = class {
1081
1085
  }
1082
1086
  watchDirection(newValue, oldValue) {
1083
1087
  if (newValue !== undefined && !directions.includes(newValue)) {
1084
- throw new Error(`<mg-illustrated-message> prop "direction" must be one of: ${directions.join(', ')}. Passed value: ${index_es.Xt(newValue)}.`);
1088
+ throw new Error(`<mg-illustrated-message> prop "direction" must be one of: ${directions.join(', ')}. Passed value: ${index_es.Yt(newValue)}.`);
1085
1089
  }
1086
1090
  else if (newValue === 'horizontal') {
1087
1091
  this.classCollection.add('mg-c-illustrated-message--direction-horizontal');
@@ -1104,7 +1108,7 @@ const MgIllustratedMessage = class {
1104
1108
  if (slottedDetails.length === 0 && slottedTitle === null) {
1105
1109
  throw new Error('<mg-illustrated-message> Slot "title" or "details" must be present.');
1106
1110
  }
1107
- else if (slottedTitle !== null && !index_es.Bt(slottedTitle, headingTags)) {
1111
+ else if (slottedTitle !== null && !index_es.Jt(slottedTitle, headingTags)) {
1108
1112
  throw new Error(`<mg-illustrated-message> Slotted title must be a heading: ${headingTags.join(', ')}.`);
1109
1113
  }
1110
1114
  else if (slottedIllustrations.length !== 1) {
@@ -1190,10 +1194,10 @@ const MgInput = class {
1190
1194
  }
1191
1195
  watchIdentifier(newValue) {
1192
1196
  if (!index_es.qe(newValue)) {
1193
- throw new Error(`<mg-input> prop "identifier" is required and must be a string. Passed value: ${index_es.Xt(newValue)}.`);
1197
+ throw new Error(`<mg-input> prop "identifier" is required and must be a string. Passed value: ${index_es.Yt(newValue)}.`);
1194
1198
  }
1195
- else if (!index_es.Dt(newValue)) {
1196
- console.error(`<mg-input> prop "identifier" value is invalid. Passed value: ${index_es.Xt(newValue)}.`);
1199
+ else if (!index_es.Bt(newValue)) {
1200
+ console.error(`<mg-input> prop "identifier" value is invalid. Passed value: ${index_es.Yt(newValue)}.`);
1197
1201
  }
1198
1202
  else {
1199
1203
  this.helpTextId = `${this.identifier}-help-text`;
@@ -1215,7 +1219,7 @@ const MgInput = class {
1215
1219
  }
1216
1220
  watchTooltipPosition(newValue) {
1217
1221
  if (!mgInput_conf.tooltipPositions.includes(newValue)) {
1218
- throw new Error(`<mg-input> prop "tooltipPosition" must be one of: ${mgInput_conf.tooltipPositions.join(', ')}. Passed value: ${index_es.Xt(newValue)}.`);
1222
+ throw new Error(`<mg-input> prop "tooltipPosition" must be one of: ${mgInput_conf.tooltipPositions.join(', ')}. Passed value: ${index_es.Yt(newValue)}.`);
1219
1223
  }
1220
1224
  }
1221
1225
  watchErrorMessage(newValue) {
@@ -1285,7 +1289,7 @@ const MgInput = class {
1285
1289
  // eslint-disable-next-line @stencil-community/no-unused-watch
1286
1290
  watchLabel() {
1287
1291
  if (!index_es.qe(this.label)) {
1288
- throw new Error(`<mg-input> prop "label" is required and must be a string. Passed value: ${index_es.Xt(this.label)}.`);
1292
+ throw new Error(`<mg-input> prop "label" is required and must be a string. Passed value: ${index_es.Yt(this.label)}.`);
1289
1293
  }
1290
1294
  else {
1291
1295
  this.watchAriaDescribedbyIDs();
@@ -1489,7 +1493,7 @@ const MgInputCheckbox = class {
1489
1493
  /**
1490
1494
  * Component classes
1491
1495
  */
1492
- this.classCollection = new index_es.Ht([this.baseClassName, mgInput_conf.classFieldset]);
1496
+ this.classCollection = new index_es.qt([this.baseClassName, mgInput_conf.classFieldset]);
1493
1497
  /**
1494
1498
  * Formated value to display in list
1495
1499
  */
@@ -1607,7 +1611,7 @@ const MgInputCheckbox = class {
1607
1611
  * Method to update searchResults
1608
1612
  */
1609
1613
  this.updateSearchResults = () => {
1610
- this.searchResults = this.checkboxItems.filter(item => index_es.Yt(item.title).includes(index_es.Yt(this.searchValue)));
1614
+ this.searchResults = this.checkboxItems.filter(item => index_es.Vt(item.title).includes(index_es.Vt(this.searchValue)));
1611
1615
  };
1612
1616
  /**
1613
1617
  * Method to validate if one of inputs value is checked id required
@@ -1701,12 +1705,12 @@ const MgInputCheckbox = class {
1701
1705
  this.valueChange.emit(newValue);
1702
1706
  }
1703
1707
  else {
1704
- throw new Error(`<mg-input-checkbox> prop "value" is required and all values must be the same type, CheckboxItem. Passed value: ${index_es.Xt(newValue)}.`);
1708
+ throw new Error(`<mg-input-checkbox> prop "value" is required and all values must be the same type, CheckboxItem. Passed value: ${index_es.Yt(newValue)}.`);
1705
1709
  }
1706
1710
  }
1707
1711
  validateType(newValue) {
1708
1712
  if (newValue !== undefined && !checkboxTypes.includes(newValue)) {
1709
- throw new Error(`<mg-input-checkbox> prop "type" must be a CheckboxType. Passed value: ${index_es.Xt(newValue)}.`);
1713
+ throw new Error(`<mg-input-checkbox> prop "type" must be a CheckboxType. Passed value: ${index_es.Yt(newValue)}.`);
1710
1714
  }
1711
1715
  else if (newValue === undefined) {
1712
1716
  this.mode = 'auto';
@@ -2124,13 +2128,13 @@ const MgInputDate = class {
2124
2128
  /**
2125
2129
  * Component classes
2126
2130
  */
2127
- this.classCollection = new index_es.Ht(['mg-c-input--date']);
2131
+ this.classCollection = new index_es.qt(['mg-c-input--date']);
2128
2132
  /**
2129
2133
  * Method to validate date pattern string
2130
2134
  * @param value - value to test
2131
2135
  * @returns truthy when value match the pattern
2132
2136
  */
2133
- this.isValidPattern = (value) => index_es.qe(value) && index_es.Ct.test(value);
2137
+ this.isValidPattern = (value) => index_es.qe(value) && index_es.Pt.test(value);
2134
2138
  /**
2135
2139
  * Format help text to display
2136
2140
  * @param helpText - help text format
@@ -2150,17 +2154,17 @@ const MgInputDate = class {
2150
2154
  text = text.replace(defaultHelpTextVariable, this.formatHelpText(this.messages.input.date.helpText.expectedFormat));
2151
2155
  }
2152
2156
  // Replace pattern and date variables
2153
- text = text.replace('{pattern}', this.renderPattern()).replace('{date}', index_es.Pt(index_es.cr(new Date('2025-12-24')), this.systemLocale));
2157
+ text = text.replace('{pattern}', this.renderPattern()).replace('{date}', index_es.Zt(index_es.ur(new Date('2025-12-24')), this.systemLocale));
2154
2158
  // Add additional message for min/max if necessary
2155
2159
  let rangeMessage;
2156
2160
  if (((_a = this.min) === null || _a === void 0 ? void 0 : _a.length) > 0 && this.max !== DEFAULT_MAX_DATE) {
2157
- rangeMessage = this.messages.input.date.helpText.minMax.replace('{min}', index_es.Pt(this.min, this.systemLocale)).replace('{max}', index_es.Pt(this.max, this.systemLocale));
2161
+ rangeMessage = this.messages.input.date.helpText.minMax.replace('{min}', index_es.Zt(this.min, this.systemLocale)).replace('{max}', index_es.Zt(this.max, this.systemLocale));
2158
2162
  }
2159
2163
  else if (((_b = this.min) === null || _b === void 0 ? void 0 : _b.length) > 0) {
2160
- rangeMessage = this.messages.input.date.helpText.min.replace('{min}', index_es.Pt(this.min, this.systemLocale));
2164
+ rangeMessage = this.messages.input.date.helpText.min.replace('{min}', index_es.Zt(this.min, this.systemLocale));
2161
2165
  }
2162
2166
  else if (this.max !== DEFAULT_MAX_DATE) {
2163
- rangeMessage = this.messages.input.date.helpText.max.replace('{max}', index_es.Pt(this.max, this.systemLocale));
2167
+ rangeMessage = this.messages.input.date.helpText.max.replace('{max}', index_es.Zt(this.max, this.systemLocale));
2164
2168
  }
2165
2169
  // Combine custom helpText with range message if both exist
2166
2170
  if (text !== undefined && rangeMessage !== undefined) {
@@ -2257,15 +2261,15 @@ const MgInputDate = class {
2257
2261
  // min, max & minMax
2258
2262
  else if (['min', 'max', 'minMax'].includes(inputError)) {
2259
2263
  this.errorMessage = this.messages.input.date.helpText[inputError]
2260
- .replace('{min}', index_es.Pt(this.min, this.systemLocale))
2261
- .replace('{max}', index_es.Pt(this.max, this.systemLocale));
2264
+ .replace('{min}', index_es.Zt(this.min, this.systemLocale))
2265
+ .replace('{max}', index_es.Zt(this.max, this.systemLocale));
2262
2266
  }
2263
2267
  // wrong date format
2264
2268
  // element.validity.badInput is default error message
2265
2269
  else {
2266
2270
  this.errorMessage = this.messages.input.date.error.badInput
2267
2271
  .replace('{pattern}', this.renderPattern())
2268
- .replace('{date}', index_es.Pt(index_es.cr(new Date('2025-12-24')), this.systemLocale));
2272
+ .replace('{date}', index_es.Zt(index_es.ur(new Date('2025-12-24')), this.systemLocale));
2269
2273
  }
2270
2274
  }
2271
2275
  };
@@ -2274,7 +2278,7 @@ const MgInputDate = class {
2274
2278
  * @returns translated html pattern
2275
2279
  */
2276
2280
  this.renderPattern = () => {
2277
- let patternLocal = index_es.lr(this.systemLocale);
2281
+ let patternLocal = index_es.fr(this.systemLocale);
2278
2282
  for (const key in this.messages.input.date.pattern) {
2279
2283
  patternLocal = patternLocal.replace(key, this.messages.input.date.pattern[key]);
2280
2284
  }
@@ -2291,7 +2295,7 @@ const MgInputDate = class {
2291
2295
  }
2292
2296
  else if (newValue && !index_es.qe(newValue)) {
2293
2297
  // check value validity
2294
- throw new Error(`<mg-input-date> props 'value' must be a valid string. Passed value: ${index_es.Xt(newValue)}.`);
2298
+ throw new Error(`<mg-input-date> props 'value' must be a valid string. Passed value: ${index_es.Yt(newValue)}.`);
2295
2299
  }
2296
2300
  else if (newValue === null || this.isValidPattern(newValue)) {
2297
2301
  this.valueChange.emit(newValue);
@@ -2308,7 +2312,7 @@ const MgInputDate = class {
2308
2312
  }
2309
2313
  validateMinMax(newValue) {
2310
2314
  if (newValue && !this.isValidPattern(newValue)) {
2311
- throw new Error(`<mg-input-date> props 'min/max' doesn't match pattern: 'yyyy-mm-dd'. Passed value: ${index_es.Xt(newValue)}.`);
2315
+ throw new Error(`<mg-input-date> props 'min/max' doesn't match pattern: 'yyyy-mm-dd'. Passed value: ${index_es.Yt(newValue)}.`);
2312
2316
  }
2313
2317
  }
2314
2318
  handleValidityChange(newValue, _oldValue, prop) {
@@ -2424,7 +2428,7 @@ const MgInputDate = class {
2424
2428
  * @returns HTML Element
2425
2429
  */
2426
2430
  render() {
2427
- return (index.h("mg-input", { key: '504777cb807b9747a6c854d7056cb5420eb2cdcf', label: this.label, identifier: this.identifier, class: this.classCollection.join(), ariaDescribedbyIDs: [], labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: this.required, tooltip: this.tooltip, tooltipPosition: this.readonly && this.value === null ? 'label' : this.tooltipPosition, helpText: this.formatHelpText(this.helpText), errorMessage: this.errorMessage }, this.readonly ? (this.value && index.h("b", { class: "mg-c-input__readonly-value" }, index_es.Pt(this.value, this.locale))) : (index.h("input", { 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) => {
2431
+ return (index.h("mg-input", { key: '504777cb807b9747a6c854d7056cb5420eb2cdcf', label: this.label, identifier: this.identifier, class: this.classCollection.join(), ariaDescribedbyIDs: [], labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: this.required, tooltip: this.tooltip, tooltipPosition: this.readonly && this.value === null ? 'label' : this.tooltipPosition, helpText: this.formatHelpText(this.helpText), errorMessage: this.errorMessage }, this.readonly ? (this.value && index.h("b", { class: "mg-c-input__readonly-value" }, index_es.Zt(this.value, this.locale))) : (index.h("input", { 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) => {
2428
2432
  if (el !== null)
2429
2433
  this.input = el;
2430
2434
  } }))));
@@ -2515,7 +2519,7 @@ const MgInputNumeric = class {
2515
2519
  /**
2516
2520
  * Component classes
2517
2521
  */
2518
- this.classCollection = new index_es.Ht(['mg-c-input--numeric']);
2522
+ this.classCollection = new index_es.qt(['mg-c-input--numeric']);
2519
2523
  /**
2520
2524
  * Handle input event
2521
2525
  */
@@ -2558,7 +2562,7 @@ const MgInputNumeric = class {
2558
2562
  * @param value - value to format
2559
2563
  * @returns formatted value according to locale
2560
2564
  */
2561
- this.formatErrorValue = (value) => index_es.ur(value, this.locale, !Number.isInteger(value) && this.type === 'decimal' ? this.decimalLength : 0);
2565
+ this.formatErrorValue = (value) => index_es.gr(value, this.locale, !Number.isInteger(value) && this.type === 'decimal' ? this.decimalLength : 0);
2562
2566
  /**
2563
2567
  * Set input error message
2564
2568
  * @param errorMessage - errorMessage override
@@ -2613,13 +2617,13 @@ const MgInputNumeric = class {
2613
2617
  this.formatValue = (value) => {
2614
2618
  switch (this.format) {
2615
2619
  case 'number':
2616
- return index_es.ur(value, this.locale, this.type === 'decimal' ? this.decimalLength : undefined);
2620
+ return index_es.gr(value, this.locale, this.type === 'decimal' ? this.decimalLength : undefined);
2617
2621
  case 'currency':
2618
- return index_es.fr(value, this.locale, this.currency);
2622
+ return index_es.pr(value, this.locale, this.currency);
2619
2623
  case 'percent':
2620
- return index_es.pr(value / 100, this.locale, this.type === 'decimal' ? this.decimalLength : undefined);
2624
+ return index_es.$r(value / 100, this.locale, this.type === 'decimal' ? this.decimalLength : undefined);
2621
2625
  case 'unit':
2622
- return index_es.gr(value, this.locale, this.unit, this.unitDisplay, this.type === 'decimal' ? this.decimalLength : undefined);
2626
+ return index_es.dr(value, this.locale, this.unit, this.unitDisplay, this.type === 'decimal' ? this.decimalLength : undefined);
2623
2627
  case 'none':
2624
2628
  return value.toString();
2625
2629
  }
@@ -2734,22 +2738,22 @@ const MgInputNumeric = class {
2734
2738
  }
2735
2739
  validateType(newValue) {
2736
2740
  if (!types.includes(newValue)) {
2737
- throw new Error(`<mg-input-numeric> prop "type" must be one of: ${types.join(', ')}. Passed value: ${index_es.Xt(newValue)}.`);
2741
+ throw new Error(`<mg-input-numeric> prop "type" must be one of: ${types.join(', ')}. Passed value: ${index_es.Yt(newValue)}.`);
2738
2742
  }
2739
2743
  }
2740
2744
  watchFormat(newValue) {
2741
2745
  if (!formats.includes(newValue)) {
2742
- throw new Error(`<mg-input-numeric> prop "format" must be one of: ${formats.join(', ')}. Passed value: ${index_es.Xt(newValue)}.`);
2746
+ throw new Error(`<mg-input-numeric> prop "format" must be one of: ${formats.join(', ')}. Passed value: ${index_es.Yt(newValue)}.`);
2743
2747
  }
2744
2748
  }
2745
2749
  validateIntegerLength(newValue) {
2746
2750
  if (newValue < 1) {
2747
- throw new Error(`<mg-input-numeric> prop "integer-length" must be a positive number. Passed value: ${index_es.Xt(newValue)}.`);
2751
+ throw new Error(`<mg-input-numeric> prop "integer-length" must be a positive number. Passed value: ${index_es.Yt(newValue)}.`);
2748
2752
  }
2749
2753
  }
2750
2754
  validateDecimalLength(newValue) {
2751
2755
  if (newValue < 1) {
2752
- throw new Error(`<mg-input-numeric> prop "decimal-length" must be a positive number, consider using prop "type" to "integer" instead. Passed value: ${index_es.Xt(newValue)}.`);
2756
+ throw new Error(`<mg-input-numeric> prop "decimal-length" must be a positive number, consider using prop "type" to "integer" instead. Passed value: ${index_es.Yt(newValue)}.`);
2753
2757
  }
2754
2758
  }
2755
2759
  /**
@@ -2956,7 +2960,7 @@ const MgInputPassword = class {
2956
2960
  /**
2957
2961
  * Component classes
2958
2962
  */
2959
- this.classCollection = new index_es.Ht(['mg-c-input--password']);
2963
+ this.classCollection = new index_es.qt(['mg-c-input--password']);
2960
2964
  /**
2961
2965
  * Indicates if password is displayed or not
2962
2966
  */
@@ -3207,7 +3211,7 @@ const MgInputRadio = class {
3207
3211
  /**
3208
3212
  * Component classes
3209
3213
  */
3210
- this.classCollection = new index_es.Ht(['mg-c-input--radio', mgInput_conf.classFieldset]);
3214
+ this.classCollection = new index_es.qt(['mg-c-input--radio', mgInput_conf.classFieldset]);
3211
3215
  /**
3212
3216
  * Handle input event
3213
3217
  * @param event - input event
@@ -3258,7 +3262,7 @@ const MgInputRadio = class {
3258
3262
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
3259
3263
  watchValue(newValue) {
3260
3264
  var _a;
3261
- if (index_es.qt(this.items) && typeof newValue === 'string') {
3265
+ if (index_es.Gt(this.items) && typeof newValue === 'string') {
3262
3266
  this.readonlyValue = newValue;
3263
3267
  }
3264
3268
  else if (Array.isArray(this.items) && this.items.every(isOption$3)) {
@@ -3272,10 +3276,10 @@ const MgInputRadio = class {
3272
3276
  validateItems(newValue) {
3273
3277
  // Validate if items have required min length
3274
3278
  if (typeof newValue === 'object' && newValue.length < 2) {
3275
- throw new Error(`<mg-input-radio> prop "items" require at least 2 items. Passed value: ${index_es.Xt(newValue)}.`);
3279
+ throw new Error(`<mg-input-radio> prop "items" require at least 2 items. Passed value: ${index_es.Yt(newValue)}.`);
3276
3280
  }
3277
3281
  // String array
3278
- else if (index_es.qt(newValue)) {
3282
+ else if (index_es.Gt(newValue)) {
3279
3283
  this.options = newValue.map(item => ({ title: item, value: item, disabled: this.disabled }));
3280
3284
  }
3281
3285
  // Object array
@@ -3283,7 +3287,7 @@ const MgInputRadio = class {
3283
3287
  this.options = newValue;
3284
3288
  }
3285
3289
  else {
3286
- throw new Error(`<mg-input-radio> prop "items" is required and all items must be the same type, string or RadioOption. Passed value: ${index_es.Xt(newValue)}.`);
3290
+ throw new Error(`<mg-input-radio> prop "items" is required and all items must be the same type, string or RadioOption. Passed value: ${index_es.Yt(newValue)}.`);
3287
3291
  }
3288
3292
  }
3289
3293
  watchInputVerticalList(newValue) {
@@ -3513,48 +3517,35 @@ const MgInputSelect = class {
3513
3517
  /**
3514
3518
  * Component classes
3515
3519
  */
3516
- this.classCollection = new index_es.Ht(['mg-c-input--select']);
3520
+ this.classCollection = new index_es.qt(['mg-c-input--select']);
3517
3521
  /**
3518
3522
  * Handle input event
3519
3523
  */
3520
3524
  this.handleInput = () => {
3521
- this.updateValue();
3522
- if (this.hasDisplayedError)
3523
- this.setErrorMessage();
3524
- };
3525
- /**
3526
- * Method to compare item.title with input.value
3527
- * @param item - item to compare with
3528
- * @returns truthy if input.value is an item
3529
- */
3530
- this.isInputValue = (item) => { var _a; return item.title === ((_a = this.input) === null || _a === void 0 ? void 0 : _a.value); };
3531
- /**
3532
- * value props setter
3533
- * @param newValue - value to update with
3534
- */
3535
- this.setValue = (newValue) => {
3536
- this.checkValidity();
3537
- this.value = newValue;
3538
- };
3539
- /**
3540
- * Update value from input.value
3541
- */
3542
- this.updateValue = () => {
3543
3525
  if (this.input.value === '') {
3544
- this.setValue(null);
3526
+ this.value = null;
3545
3527
  }
3546
- else if (index_es.qt(this.items) && this.items.includes(this.input.value)) {
3547
- this.setValue(this.input.value);
3528
+ else if (index_es.Gt(this.items) && this.items.includes(this.input.value)) {
3529
+ this.value = this.input.value;
3548
3530
  }
3549
3531
  else if (allItemsAreOptions(this.items) && typeof this.input.value === 'string' && this.items.some(this.isInputValue)) {
3550
- this.setValue(this.items.find(this.isInputValue).value);
3532
+ this.value = this.items.find(this.isInputValue).value;
3551
3533
  }
3552
3534
  else {
3553
- // before set newValue with push to options[] the unknown input.value with a disable satus
3535
+ // Add the unknown input.value to the options array as a disabled option before setting it as the new value
3554
3536
  this.options.push({ title: this.input.value, value: this.input.value, disabled: true });
3555
- this.setValue(this.input.value);
3537
+ this.value = this.input.value;
3538
+ }
3539
+ if (this.hasDisplayedError) {
3540
+ this.setErrorMessage();
3556
3541
  }
3557
3542
  };
3543
+ /**
3544
+ * Method to compare item.title with input.value
3545
+ * @param item - item to compare with
3546
+ * @returns truthy if input.value is an item
3547
+ */
3548
+ this.isInputValue = (item) => { var _a; return item.title === ((_a = this.input) === null || _a === void 0 ? void 0 : _a.value); };
3558
3549
  /**
3559
3550
  * Handle blur event
3560
3551
  */
@@ -3601,7 +3592,7 @@ const MgInputSelect = class {
3601
3592
  }
3602
3593
  validateValue(newValue) {
3603
3594
  var _a, _b;
3604
- if (index_es.qt(this.items) && typeof newValue === 'string') {
3595
+ if (index_es.Gt(this.items) && typeof newValue === 'string') {
3605
3596
  this.readonlyValue = ((_a = this.input) === null || _a === void 0 ? void 0 : _a.value) !== undefined ? this.input.value : newValue;
3606
3597
  }
3607
3598
  else if (allItemsAreOptions(this.items)) {
@@ -3610,6 +3601,12 @@ const MgInputSelect = class {
3610
3601
  else {
3611
3602
  this.readonlyValue = null;
3612
3603
  }
3604
+ setTimeout(() => {
3605
+ this.checkValidity();
3606
+ if (this.hasDisplayedError) {
3607
+ this.setErrorMessage();
3608
+ }
3609
+ }, 0);
3613
3610
  this.valueChange.emit(newValue);
3614
3611
  }
3615
3612
  validateItems(newValue) {
@@ -3618,9 +3615,10 @@ const MgInputSelect = class {
3618
3615
  this.options = [];
3619
3616
  }
3620
3617
  // String array
3621
- else if (index_es.qt(newValue)) {
3622
- if (typeof this.value === 'string')
3618
+ else if (index_es.Gt(newValue)) {
3619
+ if (typeof this.value === 'string') {
3623
3620
  this.valueExist = newValue.includes(this.value);
3621
+ }
3624
3622
  this.options = newValue.map(item => ({ title: item, value: item }));
3625
3623
  }
3626
3624
  // Object array
@@ -3636,7 +3634,7 @@ const MgInputSelect = class {
3636
3634
  }
3637
3635
  }
3638
3636
  else {
3639
- throw new Error(`<mg-input-select> prop "items" is required, can be an empty Array or all items must be the same type: string or Option. Passed value: ${index_es.Xt(newValue)}.`);
3637
+ throw new Error(`<mg-input-select> prop "items" is required, can be an empty Array or all items must be the same type: string or Option. Passed value: ${index_es.Yt(newValue)}.`);
3640
3638
  }
3641
3639
  }
3642
3640
  watchReadonly(newValue) {
@@ -3730,8 +3728,9 @@ const MgInputSelect = class {
3730
3728
  this.valid = newValue;
3731
3729
  this.invalid = !this.valid;
3732
3730
  // We need to send valid event even if it is the same value
3733
- if (this.handlerInProgress === undefined || (this.handlerInProgress === 'blur' && this.valid !== oldValidValue))
3731
+ if (this.handlerInProgress === undefined || (this.handlerInProgress === 'blur' && this.valid !== oldValidValue)) {
3734
3732
  this.inputValid.emit(this.valid);
3733
+ }
3735
3734
  }
3736
3735
  /*************
3737
3736
  * Lifecycle *
@@ -3765,7 +3764,7 @@ const MgInputSelect = class {
3765
3764
  * @returns HTML Element
3766
3765
  */
3767
3766
  render() {
3768
- return (index.h("mg-input", { key: '8fc77d20fe8fda510ea0352bc7246fafea31f8d8', label: this.label, identifier: this.identifier, class: this.classCollection.join(), ariaDescribedbyIDs: [], labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: this.required, tooltip: this.tooltip, tooltipPosition: this.readonly && this.readonlyValue === null ? 'label' : this.tooltipPosition, helpText: this.helpText, errorMessage: this.errorMessage }, this.readonly ? (this.readonlyValue && index.h("b", { class: "mg-c-input__readonly-value" }, this.readonlyValue)) : (index.h("select", { 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) => {
3767
+ return (index.h("mg-input", { key: 'e5f8f97d2ebe984532bc25b7be94053c2e6ddf43', label: this.label, identifier: this.identifier, class: this.classCollection.join(), ariaDescribedbyIDs: [], labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: this.required, tooltip: this.tooltip, tooltipPosition: this.readonly && this.readonlyValue === null ? 'label' : this.tooltipPosition, helpText: this.helpText, errorMessage: this.errorMessage }, this.readonly ? (this.readonlyValue && index.h("b", { class: "mg-c-input__readonly-value" }, this.readonlyValue)) : (index.h("select", { 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) => {
3769
3768
  if (el !== null)
3770
3769
  this.input = el;
3771
3770
  } }, (!this.placeholderHide || !this.valueExist) && ( // In case passed value does not match any option we display the placeholder
@@ -3804,7 +3803,7 @@ const isOption$1 = (option) => typeof option === 'object' && typeof option.title
3804
3803
  * @param options - Datalist options to check.
3805
3804
  * @returns True if datalist is well structured.
3806
3805
  */
3807
- const isDatalistOptions = (options) => index_es.qt(options) || (Array.isArray(options) && options.every(isOption$1));
3806
+ const isDatalistOptions = (options) => index_es.Gt(options) || (Array.isArray(options) && options.every(isOption$1));
3808
3807
  const MgInputText = class {
3809
3808
  constructor(hostRef) {
3810
3809
  index.registerInstance(this, hostRef);
@@ -3869,7 +3868,7 @@ const MgInputText = class {
3869
3868
  /**
3870
3869
  * Component classes
3871
3870
  */
3872
- this.classCollection = new index_es.Ht(['mg-c-input--text']);
3871
+ this.classCollection = new index_es.qt(['mg-c-input--text']);
3873
3872
  /**
3874
3873
  * Validate pattern configuration
3875
3874
  */
@@ -3895,7 +3894,7 @@ const MgInputText = class {
3895
3894
  */
3896
3895
  this.handleFocus = () => {
3897
3896
  this.classCollection.add(this.classFocus);
3898
- this.classCollection = new index_es.Ht(this.classCollection.classes);
3897
+ this.classCollection = new index_es.qt(this.classCollection.classes);
3899
3898
  };
3900
3899
  /**
3901
3900
  * Handle blur event
@@ -3903,7 +3902,7 @@ const MgInputText = class {
3903
3902
  this.handleBlur = () => {
3904
3903
  // Manage focus
3905
3904
  this.classCollection.delete(this.classFocus);
3906
- this.classCollection = new index_es.Ht(this.classCollection.classes);
3905
+ this.classCollection = new index_es.qt(this.classCollection.classes);
3907
3906
  // Display Error
3908
3907
  this.handlerInProgress = 'blur';
3909
3908
  this.displayError().finally(() => {
@@ -3998,7 +3997,7 @@ const MgInputText = class {
3998
3997
  }
3999
3998
  validateDatalistoptions(newValue) {
4000
3999
  if (Boolean(newValue) && !isDatalistOptions(newValue)) {
4001
- throw new Error(`<mg-input-text> prop "datalistoptions" values must be the same type, string or OptionType. Passed value: ${index_es.Xt(newValue)}.`);
4000
+ throw new Error(`<mg-input-text> prop "datalistoptions" values must be the same type, string or OptionType. Passed value: ${index_es.Yt(newValue)}.`);
4002
4001
  }
4003
4002
  }
4004
4003
  watchReadonly(newValue) {
@@ -4239,7 +4238,7 @@ const MgInputTextarea = class {
4239
4238
  /**
4240
4239
  * Component classes
4241
4240
  */
4242
- this.classCollection = new index_es.Ht(['mg-c-input--textarea']);
4241
+ this.classCollection = new index_es.qt(['mg-c-input--textarea']);
4243
4242
  /**
4244
4243
  * Handle input event
4245
4244
  */
@@ -4255,7 +4254,7 @@ const MgInputTextarea = class {
4255
4254
  */
4256
4255
  this.handleFocus = () => {
4257
4256
  this.classCollection.add(this.classFocus);
4258
- this.classCollection = new index_es.Ht(this.classCollection.classes);
4257
+ this.classCollection = new index_es.qt(this.classCollection.classes);
4259
4258
  };
4260
4259
  /**
4261
4260
  * Handle blur event
@@ -4263,7 +4262,7 @@ const MgInputTextarea = class {
4263
4262
  this.handleBlur = () => {
4264
4263
  // Manage focus
4265
4264
  this.classCollection.delete(this.classFocus);
4266
- this.classCollection = new index_es.Ht(this.classCollection.classes);
4265
+ this.classCollection = new index_es.qt(this.classCollection.classes);
4267
4266
  // Display Error
4268
4267
  this.handlerInProgress = 'blur';
4269
4268
  this.displayError().finally(() => {
@@ -4342,7 +4341,7 @@ const MgInputTextarea = class {
4342
4341
  }
4343
4342
  validatePattern(newValue) {
4344
4343
  if (newValue !== undefined && !(index_es.qe(this.pattern) && index_es.qe(this.patternErrorMessage))) {
4345
- throw new Error(`<mg-input-textarea> props "pattern" and "patternErrorMessage" must be non-empty string and paired. Passed value: "pattern='${index_es.Xt(this.pattern)}'" and "patternErrorMessage='${index_es.Xt(this.patternErrorMessage)}'".`);
4344
+ throw new Error(`<mg-input-textarea> props "pattern" and "patternErrorMessage" must be non-empty string and paired. Passed value: "pattern='${index_es.Yt(this.pattern)}'" and "patternErrorMessage='${index_es.Yt(this.patternErrorMessage)}'".`);
4346
4345
  }
4347
4346
  }
4348
4347
  validatecharacterLeftHide(newValue) {
@@ -4489,8 +4488,8 @@ const MgInputTitle = class {
4489
4488
  if (!index_es.qe(newValue)) {
4490
4489
  throw new Error('<mg-input-title> prop "identifier" is required.');
4491
4490
  }
4492
- else if (!index_es.Dt(newValue)) {
4493
- console.error(`<mg-input-title> prop "identifier" value is invalid. Passed value: ${index_es.Xt(newValue)}.`);
4491
+ else if (!index_es.Bt(newValue)) {
4492
+ console.error(`<mg-input-title> prop "identifier" value is invalid. Passed value: ${index_es.Yt(newValue)}.`);
4494
4493
  }
4495
4494
  }
4496
4495
  validateIsLegend(newValue) {
@@ -4578,7 +4577,7 @@ const MgInputToggle = class {
4578
4577
  /**
4579
4578
  * Component classes
4580
4579
  */
4581
- this.classCollection = new index_es.Ht(['mg-c-input--toggle']);
4580
+ this.classCollection = new index_es.qt(['mg-c-input--toggle']);
4582
4581
  /**
4583
4582
  * Checked internal value
4584
4583
  */
@@ -4639,10 +4638,10 @@ const MgInputToggle = class {
4639
4638
  }
4640
4639
  validateItems(newValue) {
4641
4640
  if (typeof newValue === 'object' && this.items.length !== 2) {
4642
- throw new Error(`<mg-input-toggle> prop "items" require 2 items. Passed value: ${index_es.Xt(newValue)}.`);
4641
+ throw new Error(`<mg-input-toggle> prop "items" require 2 items. Passed value: ${index_es.Yt(newValue)}.`);
4643
4642
  }
4644
4643
  // String array
4645
- else if (index_es.qt(newValue)) {
4644
+ else if (index_es.Gt(newValue)) {
4646
4645
  this.options = newValue.map(item => ({ title: item, value: item }));
4647
4646
  }
4648
4647
  // Object array
@@ -4650,7 +4649,7 @@ const MgInputToggle = class {
4650
4649
  this.options = newValue;
4651
4650
  }
4652
4651
  else {
4653
- throw new Error(`<mg-input-toggle> prop "items" is required and all items must be the same type: ToggleValue. Passed value: ${index_es.Xt(newValue)}.`);
4652
+ throw new Error(`<mg-input-toggle> prop "items" is required and all items must be the same type: ToggleValue. Passed value: ${index_es.Yt(newValue)}.`);
4654
4653
  }
4655
4654
  }
4656
4655
  watchIsOnOff(newValue) {
@@ -4880,17 +4879,17 @@ const MgItemMore = class {
4880
4879
  }
4881
4880
  validateIcon(newValue) {
4882
4881
  if (typeof newValue !== 'object' || (typeof newValue === 'object' && typeof newValue.icon !== 'string'))
4883
- throw new Error(`<${this.name}> prop "icon" must match MgItemMore['icon'] type. Passed value: ${index_es.Xt(newValue)}.`);
4882
+ throw new Error(`<${this.name}> prop "icon" must match MgItemMore['icon'] type. Passed value: ${index_es.Yt(newValue)}.`);
4884
4883
  }
4885
4884
  validateSlotLabel(newValue) {
4886
4885
  if (typeof newValue !== 'object' || (typeof newValue === 'object' && typeof newValue.display !== 'boolean'))
4887
- throw new Error(`<${this.name}> prop "slotlabel" must match MgItemMore['slotlabel'] type. Passed value: ${index_es.Xt(newValue)}.`);
4886
+ throw new Error(`<${this.name}> prop "slotlabel" must match MgItemMore['slotlabel'] type. Passed value: ${index_es.Yt(newValue)}.`);
4888
4887
  else if (typeof newValue.label !== 'string')
4889
4888
  this.slotlabel.label = this.messages.menuLabel;
4890
4889
  }
4891
4890
  validateSize(newValue) {
4892
4891
  if (newValue && !sizes$5.includes(newValue))
4893
- throw new Error(`<${this.name}> prop "size" must match MgItemMore['size'] type. Passed value: ${index_es.Xt(newValue)}.`);
4892
+ throw new Error(`<${this.name}> prop "size" must match MgItemMore['size'] type. Passed value: ${index_es.Yt(newValue)}.`);
4894
4893
  }
4895
4894
  /*************
4896
4895
  * Lifecycle *
@@ -5023,12 +5022,12 @@ const MgMenu = class {
5023
5022
  }
5024
5023
  validateLabel(newValue) {
5025
5024
  if (newValue === undefined && !this.element.hasAttribute('aria-label')) {
5026
- throw new Error(`<${this.name}> prop "label" is required. Passed value: ${index_es.Xt(newValue)}.`);
5025
+ throw new Error(`<${this.name}> prop "label" is required. Passed value: ${index_es.Yt(newValue)}.`);
5027
5026
  }
5028
5027
  }
5029
5028
  validateDirection(newValue) {
5030
5029
  if (![directions$1.VERTICAL, directions$1.HORIZONTAL].includes(newValue)) {
5031
- throw new Error(`<${this.name}> prop "direction" must be one of: ${directions$1.HORIZONTAL}, ${directions$1.VERTICAL}. Passed value: ${index_es.Xt(newValue)}.`);
5030
+ throw new Error(`<${this.name}> prop "direction" must be one of: ${directions$1.HORIZONTAL}, ${directions$1.VERTICAL}. Passed value: ${index_es.Yt(newValue)}.`);
5032
5031
  }
5033
5032
  else {
5034
5033
  this.updateMenuItems();
@@ -5044,7 +5043,7 @@ const MgMenu = class {
5044
5043
  }
5045
5044
  validateSize(newValue) {
5046
5045
  if (!sizes$5.includes(newValue)) {
5047
- throw new Error(`<${this.name}> prop "size" must be one of: ${sizes$5.join(', ')}. Passed value: ${index_es.Xt(newValue)}.`);
5046
+ throw new Error(`<${this.name}> prop "size" must be one of: ${sizes$5.join(', ')}. Passed value: ${index_es.Yt(newValue)}.`);
5048
5047
  }
5049
5048
  }
5050
5049
  /**
@@ -5142,7 +5141,7 @@ const MgMenuItem = class {
5142
5141
  /**
5143
5142
  * Identifier is used to control mg-popover
5144
5143
  */
5145
- this.identifier = index_es.Zt('mg-menu-item');
5144
+ this.identifier = index_es.Dt('mg-menu-item');
5146
5145
  /**
5147
5146
  * Define menu-item status.
5148
5147
  */
@@ -5161,7 +5160,7 @@ const MgMenuItem = class {
5161
5160
  /**
5162
5161
  * Component button classes
5163
5162
  */
5164
- this.navigationButtonClassList = new index_es.Ht([this.navigationButton]);
5163
+ this.navigationButtonClassList = new index_es.qt([this.navigationButton]);
5165
5164
  /**
5166
5165
  * Does component have children.
5167
5166
  */
@@ -5320,8 +5319,8 @@ const MgMenuItem = class {
5320
5319
  this.renderSlot = () => index.h("slot", null);
5321
5320
  }
5322
5321
  watchIdentifier(newValue) {
5323
- if (!index_es.Dt(newValue)) {
5324
- console.error(`<mg-menu-item> prop "identifier" value is invalid. Passed value: ${index_es.Xt(newValue)}.`);
5322
+ if (!index_es.Bt(newValue)) {
5323
+ console.error(`<mg-menu-item> prop "identifier" value is invalid. Passed value: ${index_es.Yt(newValue)}.`);
5325
5324
  }
5326
5325
  else {
5327
5326
  this.popoverIdentifier = `${this.identifier}-popover`;
@@ -5329,7 +5328,7 @@ const MgMenuItem = class {
5329
5328
  }
5330
5329
  watchTarget(newValue) {
5331
5330
  if (newValue && !targets.includes(newValue)) {
5332
- throw new Error(`<mg-link> prop "target" must be one of: ${targets.join(', ')}. Passed value: ${index_es.Xt(newValue)}.`);
5331
+ throw new Error(`<mg-link> prop "target" must be one of: ${targets.join(', ')}. Passed value: ${index_es.Yt(newValue)}.`);
5333
5332
  }
5334
5333
  }
5335
5334
  watchStatus(newValue, oldValue) {
@@ -5339,7 +5338,7 @@ const MgMenuItem = class {
5339
5338
  }
5340
5339
  watchExpanded(newValue) {
5341
5340
  if (typeof newValue !== 'boolean') {
5342
- throw new Error(`<${this.name}> prop "expanded" must be a boolean. Passed value: ${index_es.Xt(newValue)}.`);
5341
+ throw new Error(`<${this.name}> prop "expanded" must be a boolean. Passed value: ${index_es.Yt(newValue)}.`);
5343
5342
  }
5344
5343
  else {
5345
5344
  this.updateExpanded(newValue);
@@ -5454,7 +5453,7 @@ const MgMenuItem = class {
5454
5453
  * @returns promise process wich emit the 'item-updated' event
5455
5454
  */
5456
5455
  componentShouldUpdate() {
5457
- return index_es.Qt(() => {
5456
+ return index_es.er(() => {
5458
5457
  this.itemUpdated.emit();
5459
5458
  });
5460
5459
  }
@@ -5531,7 +5530,7 @@ const MgMessage = class {
5531
5530
  /**
5532
5531
  * Component classes
5533
5532
  */
5534
- this.classCollection = new index_es.Ht(['mg-c-message']);
5533
+ this.classCollection = new index_es.qt(['mg-c-message']);
5535
5534
  /**
5536
5535
  * Define if component is using actions slot
5537
5536
  */
@@ -5555,7 +5554,7 @@ const MgMessage = class {
5555
5554
  }
5556
5555
  watchVariant(newValue, oldValue) {
5557
5556
  if (!variants$1.includes(newValue)) {
5558
- throw new Error(`<mg-message> prop "variant" must be one of: ${variants$1.join(', ')}. Passed value: ${index_es.Xt(newValue)}.`);
5557
+ throw new Error(`<mg-message> prop "variant" must be one of: ${variants$1.join(', ')}. Passed value: ${index_es.Yt(newValue)}.`);
5559
5558
  }
5560
5559
  else {
5561
5560
  if (newValue !== undefined)
@@ -5566,7 +5565,7 @@ const MgMessage = class {
5566
5565
  }
5567
5566
  watchVariantStyle(newValue, oldValue) {
5568
5567
  if (!variantStyles.includes(newValue)) {
5569
- throw new Error(`<mg-message> prop "variantStyle" must be one of: ${variantStyles.join(', ')}. Passed value: ${index_es.Xt(newValue)}.`);
5568
+ throw new Error(`<mg-message> prop "variantStyle" must be one of: ${variantStyles.join(', ')}. Passed value: ${index_es.Yt(newValue)}.`);
5570
5569
  }
5571
5570
  else {
5572
5571
  if (newValue !== undefined)
@@ -5625,7 +5624,7 @@ const MgModal = class {
5625
5624
  * Identifier is used for the element ID (id is a reserved prop in Stencil.js)
5626
5625
  * If not set, it will be created.
5627
5626
  */
5628
- this.identifier = index_es.Zt('mg-modal');
5627
+ this.identifier = index_es.Dt('mg-modal');
5629
5628
  /**
5630
5629
  * Modal dialog role.
5631
5630
  */
@@ -5645,7 +5644,7 @@ const MgModal = class {
5645
5644
  /**
5646
5645
  * Component classes
5647
5646
  */
5648
- this.classCollection = new index_es.Ht(['mg-c-modal']);
5647
+ this.classCollection = new index_es.qt(['mg-c-modal']);
5649
5648
  /***********
5650
5649
  * Handles *
5651
5650
  ***********/
@@ -5658,17 +5657,17 @@ const MgModal = class {
5658
5657
  };
5659
5658
  }
5660
5659
  watchIdentifier(newValue) {
5661
- if (!index_es.Dt(newValue)) {
5662
- throw new Error(`<mg-modal> prop "identifier" value is invalid. Passed value: ${index_es.Xt(newValue)}.`);
5660
+ if (!index_es.Bt(newValue)) {
5661
+ throw new Error(`<mg-modal> prop "identifier" value is invalid. Passed value: ${index_es.Yt(newValue)}.`);
5663
5662
  }
5664
5663
  }
5665
5664
  validateDialogRole(newValue) {
5666
5665
  if (!dialogRoles.includes(newValue))
5667
- throw new Error(`<mg-modal> prop "dialogRole" must be one of: ${dialogRoles.join(', ')}. Passed value: ${index_es.Xt(newValue)}.`);
5666
+ throw new Error(`<mg-modal> prop "dialogRole" must be one of: ${dialogRoles.join(', ')}. Passed value: ${index_es.Yt(newValue)}.`);
5668
5667
  }
5669
5668
  validateModalTitle(newValue) {
5670
5669
  if (!index_es.qe(newValue)) {
5671
- throw new Error(`<mg-modal> prop "modalTitle" is required. Passed value: ${index_es.Xt(newValue)}.`);
5670
+ throw new Error(`<mg-modal> prop "modalTitle" is required. Passed value: ${index_es.Yt(newValue)}.`);
5672
5671
  }
5673
5672
  }
5674
5673
  watchOpen(newValue) {
@@ -5770,7 +5769,7 @@ const MgPagination = class {
5770
5769
  * Identifier is used for the element ID (id is a reserved prop in Stencil.js)
5771
5770
  * If not set, it will be created.
5772
5771
  */
5773
- this.identifier = index_es.Zt('mg-pagination');
5772
+ this.identifier = index_es.Dt('mg-pagination');
5774
5773
  /**
5775
5774
  * Hide navigation label
5776
5775
  */
@@ -5815,18 +5814,18 @@ const MgPagination = class {
5815
5814
  };
5816
5815
  }
5817
5816
  watchIdentifier(newValue) {
5818
- if (!index_es.Dt(newValue)) {
5819
- console.error(`<mg-pagination> prop "identifier" value is invalid. Passed value: ${index_es.Xt(newValue)}.`);
5817
+ if (!index_es.Bt(newValue)) {
5818
+ console.error(`<mg-pagination> prop "identifier" value is invalid. Passed value: ${index_es.Yt(newValue)}.`);
5820
5819
  }
5821
5820
  }
5822
5821
  validateTotalPages(newValue) {
5823
5822
  if (newValue < 1) {
5824
- throw new Error(`<mg-pagination> prop "totalPages" must be greater than 0. Passed value: ${index_es.Xt(newValue)}.`);
5823
+ throw new Error(`<mg-pagination> prop "totalPages" must be greater than 0. Passed value: ${index_es.Yt(newValue)}.`);
5825
5824
  }
5826
5825
  }
5827
5826
  validateCurrentPage(newValue) {
5828
5827
  if (newValue < 1) {
5829
- throw new Error(`<mg-pagination> prop "currentPage" must be greater than 0. Passed value: ${index_es.Xt(newValue)}.`);
5828
+ throw new Error(`<mg-pagination> prop "currentPage" must be greater than 0. Passed value: ${index_es.Yt(newValue)}.`);
5830
5829
  }
5831
5830
  else if (newValue > this.totalPages) {
5832
5831
  throw new Error('<mg-pagination> prop "currentPage" can not be greater than total page.');
@@ -5890,7 +5889,7 @@ const MgPanel = class {
5890
5889
  * Identifier is used for the element ID (id is a reserved prop in Stencil.js)
5891
5890
  * If not set, it will be created.
5892
5891
  */
5893
- this.identifier = index_es.Zt('mg-panel');
5892
+ this.identifier = index_es.Dt('mg-panel');
5894
5893
  /**
5895
5894
  * Define if panel title is editable
5896
5895
  */
@@ -5914,7 +5913,7 @@ const MgPanel = class {
5914
5913
  /**
5915
5914
  * Component classes
5916
5915
  */
5917
- this.classCollection = new index_es.Ht(['mg-c-panel']);
5916
+ this.classCollection = new index_es.qt(['mg-c-panel']);
5918
5917
  /**
5919
5918
  * Title is in edition mode
5920
5919
  */
@@ -6013,13 +6012,13 @@ const MgPanel = class {
6013
6012
  };
6014
6013
  }
6015
6014
  watchIdentifier(newValue) {
6016
- if (!index_es.Dt(newValue)) {
6017
- console.error(`<mg-panel> prop "identifier" value is invalid. Passed value: ${index_es.Xt(newValue)}.`);
6015
+ if (!index_es.Bt(newValue)) {
6016
+ console.error(`<mg-panel> prop "identifier" value is invalid. Passed value: ${index_es.Yt(newValue)}.`);
6018
6017
  }
6019
6018
  }
6020
6019
  validatePanelTitle(newValue) {
6021
6020
  if (!index_es.qe(newValue))
6022
- throw new Error(`<mg-panel> prop "panelTitle" is required and must be a string. Passed value: ${index_es.Xt(newValue)}.`);
6021
+ throw new Error(`<mg-panel> prop "panelTitle" is required and must be a string. Passed value: ${index_es.Yt(newValue)}.`);
6023
6022
  this.titleChange.emit(newValue);
6024
6023
  }
6025
6024
  validateTitlePattern(newValue) {
@@ -6028,14 +6027,14 @@ const MgPanel = class {
6028
6027
  }
6029
6028
  validateTitlePosition(newValue) {
6030
6029
  if (!titlePositions.includes(newValue))
6031
- throw new Error(`<mg-panel> prop "titlePosition" must be one of: ${titlePositions.join(', ')}. Passed value: ${index_es.Xt(newValue)}.`);
6030
+ throw new Error(`<mg-panel> prop "titlePosition" must be one of: ${titlePositions.join(', ')}. Passed value: ${index_es.Yt(newValue)}.`);
6032
6031
  }
6033
6032
  handleExpanded(newValue) {
6034
6033
  this.expandedChange.emit(newValue);
6035
6034
  }
6036
6035
  validateExpandToggleDisplay(newValue) {
6037
6036
  if (!expandToggleDisplays.includes(newValue))
6038
- throw new Error(`<mg-panel> prop "expandToggleDisplay" must be one of: ${expandToggleDisplays.join(', ')}. Passed value: ${index_es.Xt(newValue)}.`);
6037
+ throw new Error(`<mg-panel> prop "expandToggleDisplay" must be one of: ${expandToggleDisplays.join(', ')}. Passed value: ${index_es.Yt(newValue)}.`);
6039
6038
  if (newValue === 'icon' && this.titleEditable)
6040
6039
  this.titleEditable = false;
6041
6040
  }
@@ -7885,7 +7884,7 @@ const MgPopover = class {
7885
7884
  * Sets an `id` attribute.
7886
7885
  * Needed by the input for accessibility `aria-decribedby`.
7887
7886
  */
7888
- this.identifier = index_es.Zt('mg-popover');
7887
+ this.identifier = index_es.Dt('mg-popover');
7889
7888
  /**
7890
7889
  * Popover placement
7891
7890
  */
@@ -8004,8 +8003,8 @@ const MgPopover = class {
8004
8003
  };
8005
8004
  }
8006
8005
  validateIdentifier(newValue) {
8007
- if (!index_es.Dt(newValue)) {
8008
- throw new Error(`<mg-popover> prop "identifier" value is invalid. Passed value: ${index_es.Xt(newValue)}.`);
8006
+ if (!index_es.Bt(newValue)) {
8007
+ throw new Error(`<mg-popover> prop "identifier" value is invalid. Passed value: ${index_es.Yt(newValue)}.`);
8009
8008
  }
8010
8009
  // use renderPopoverContent to update popover-content id
8011
8010
  this.renderPopoverContent();
@@ -8042,7 +8041,7 @@ const MgPopover = class {
8042
8041
  */
8043
8042
  componentWillLoad() {
8044
8043
  // Get windows to attach events
8045
- this.windows = index_es.Jt(window);
8044
+ this.windows = index_es.Kt(window);
8046
8045
  // render mg-popover-content slot
8047
8046
  this.renderPopoverContent();
8048
8047
  this.validateCloseButton(this.closeButton);
@@ -8140,7 +8139,7 @@ const MgPopoverContent = class {
8140
8139
  /**
8141
8140
  * Component classes
8142
8141
  */
8143
- this.classCollection = new index_es.Ht(['mg-c-popover-content']);
8142
+ this.classCollection = new index_es.qt(['mg-c-popover-content']);
8144
8143
  /**
8145
8144
  * Handle action for close button
8146
8145
  */
@@ -8164,7 +8163,7 @@ const MgPopoverContent = class {
8164
8163
  componentDidLoad() {
8165
8164
  const headingTags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
8166
8165
  const slottedTitleElement = this.element.querySelector('[slot="title"]');
8167
- if (slottedTitleElement && !index_es.Bt(slottedTitleElement, headingTags)) {
8166
+ if (slottedTitleElement && !index_es.Jt(slottedTitleElement, headingTags)) {
8168
8167
  throw new Error(`<mg-popover> Slotted title must be a heading: ${headingTags.join(', ')}.`);
8169
8168
  }
8170
8169
  }
@@ -8304,11 +8303,11 @@ const MgTable = class {
8304
8303
  /**
8305
8304
  * Class collection
8306
8305
  */
8307
- this.classCollection = new index_es.Ht([this.componentClass]);
8306
+ this.classCollection = new index_es.qt([this.componentClass]);
8308
8307
  }
8309
8308
  watchSize(newValue, oldValue) {
8310
8309
  if (!sizes$1.includes(newValue)) {
8311
- throw new Error(`<mg-table> prop "size" must be one of: ${sizes$1.join(', ')}. Passed value: ${index_es.Xt(newValue)}.`);
8310
+ throw new Error(`<mg-table> prop "size" must be one of: ${sizes$1.join(', ')}. Passed value: ${index_es.Yt(newValue)}.`);
8312
8311
  }
8313
8312
  else {
8314
8313
  if (oldValue !== undefined) {
@@ -8327,7 +8326,7 @@ const MgTable = class {
8327
8326
  }
8328
8327
  watchColumns(newValue) {
8329
8328
  if (newValue !== undefined && !isValidColumnsObject(newValue)) {
8330
- throw new Error(`<mg-table> prop "columns" must be a ColumnsType object. Passed value: ${index_es.Xt(newValue)}.`);
8329
+ throw new Error(`<mg-table> prop "columns" must be a ColumnsType object. Passed value: ${index_es.Yt(newValue)}.`);
8331
8330
  }
8332
8331
  }
8333
8332
  /**
@@ -8457,7 +8456,7 @@ const MgTable = class {
8457
8456
  captionTable.className = 'mg-u-visually-hidden';
8458
8457
  // Link caption to div
8459
8458
  if (!index_es.qe(captionTable.id)) {
8460
- captionTable.setAttribute('id', index_es.Zt(`${this.componentClass}-caption`));
8459
+ captionTable.setAttribute('id', index_es.Dt(`${this.componentClass}-caption`));
8461
8460
  }
8462
8461
  divWrapper.setAttribute('aria-labelledby', captionTable.id);
8463
8462
  // Add sortable caption if neeeded
@@ -8541,7 +8540,7 @@ const MgTabs = class {
8541
8540
  * Identifier is used for the element ID (id is a reserved prop in Stencil.js)
8542
8541
  * If not set, it will be created.
8543
8542
  */
8544
- this.identifier = index_es.Zt('mg-tabs');
8543
+ this.identifier = index_es.Dt('mg-tabs');
8545
8544
  /**
8546
8545
  * Define tabs size
8547
8546
  */
@@ -8553,7 +8552,7 @@ const MgTabs = class {
8553
8552
  /**
8554
8553
  * Component classes
8555
8554
  */
8556
- this.classCollection = new index_es.Ht(['mg-c-tabs']);
8555
+ this.classCollection = new index_es.qt(['mg-c-tabs']);
8557
8556
  /**
8558
8557
  * Validate that new tab status can be `Status.ACTIVE`
8559
8558
  * @param tab - tab item
@@ -8651,7 +8650,7 @@ const MgTabs = class {
8651
8650
  */
8652
8651
  this.resetFocus = () => {
8653
8652
  // update asynchronously tabindex to prevent get focus on new tabindex at then end of event process
8654
- index_es.Qt(() => {
8653
+ index_es.er(() => {
8655
8654
  this.tabFocus = undefined;
8656
8655
  Array.from(this.element.shadowRoot.querySelectorAll('[data-index]')).forEach((tab, index) => {
8657
8656
  tab.setAttribute('tabindex', this.activeTab - this.startIndex !== index ? '-1' : '0');
@@ -8668,30 +8667,30 @@ const MgTabs = class {
8668
8667
  };
8669
8668
  }
8670
8669
  watchIdentifier(newValue) {
8671
- if (!index_es.Dt(newValue)) {
8672
- console.error(`<mg-tabs> prop "identifier" value is invalid. Passed value: ${index_es.Xt(newValue)}.`);
8670
+ if (!index_es.Bt(newValue)) {
8671
+ console.error(`<mg-tabs> prop "identifier" value is invalid. Passed value: ${index_es.Yt(newValue)}.`);
8673
8672
  }
8674
8673
  }
8675
8674
  validateLabel(newValue) {
8676
8675
  if (!index_es.qe(newValue)) {
8677
- throw new Error(`<mg-tabs> prop "label" is required and must be a string. Passed value: ${index_es.Xt(newValue)}.`);
8676
+ throw new Error(`<mg-tabs> prop "label" is required and must be a string. Passed value: ${index_es.Yt(newValue)}.`);
8678
8677
  }
8679
8678
  }
8680
8679
  validateSize(newValue) {
8681
8680
  if (!sizes.includes(newValue)) {
8682
- throw new Error(`<mg-tabs> prop "size" must be one of: ${sizes.join(', ')}. Passed value: ${index_es.Xt(newValue)}.`);
8681
+ throw new Error(`<mg-tabs> prop "size" must be one of: ${sizes.join(', ')}. Passed value: ${index_es.Yt(newValue)}.`);
8683
8682
  }
8684
8683
  this.classCollection.add(`mg-c-tabs--size-${this.size}`);
8685
8684
  }
8686
8685
  validateItems(newValue) {
8687
8686
  // String array
8688
- if (index_es.qt(newValue))
8687
+ if (index_es.Gt(newValue))
8689
8688
  this.tabs = newValue.map(item => ({ label: item, status: Status.VISIBLE }));
8690
8689
  // Object array
8691
8690
  else if (Array.isArray(newValue) && newValue.length > 0 && newValue.every(isTabItem))
8692
8691
  this.tabs = newValue;
8693
8692
  else
8694
- throw new Error(`<mg-tabs> prop "items" is required and all items must be the same type: TabItem. Passed value: ${index_es.Xt(newValue)}.`);
8693
+ throw new Error(`<mg-tabs> prop "items" is required and all items must be the same type: TabItem. Passed value: ${index_es.Yt(newValue)}.`);
8695
8694
  }
8696
8695
  validateActiveTab(newValue) {
8697
8696
  // when `active-tab` is undefined we set default value by searching an item with `Status.ACTIVE` or we use the `startIndex` has fallback value
@@ -8716,7 +8715,7 @@ const MgTabs = class {
8716
8715
  this.activeTabChange.emit(newValue);
8717
8716
  }
8718
8717
  else {
8719
- throw new Error(`<mg-tabs> prop "activeTab" must be a number between ${this.startIndex} and ${this.tabs.length} and new value must be "activable". Passed value: ${index_es.Xt(newValue)}.`);
8718
+ throw new Error(`<mg-tabs> prop "activeTab" must be a number between ${this.startIndex} and ${this.tabs.length} and new value must be "activable". Passed value: ${index_es.Yt(newValue)}.`);
8720
8719
  }
8721
8720
  }
8722
8721
  /*************
@@ -8801,11 +8800,11 @@ const MgTag = class {
8801
8800
  /**
8802
8801
  * Component classes
8803
8802
  */
8804
- this.classCollection = new index_es.Ht(['mg-c-tag']);
8803
+ this.classCollection = new index_es.qt(['mg-c-tag']);
8805
8804
  }
8806
8805
  validateVariant(newValue, oldValue) {
8807
8806
  if (!variants.includes(newValue)) {
8808
- throw new Error(`<mg-tag> prop "variant" must be one of: ${variants.join(', ')}. Passed value: ${index_es.Xt(newValue)}.`);
8807
+ throw new Error(`<mg-tag> prop "variant" must be one of: ${variants.join(', ')}. Passed value: ${index_es.Yt(newValue)}.`);
8809
8808
  }
8810
8809
  else {
8811
8810
  if (oldValue !== undefined) {
@@ -8891,7 +8890,7 @@ const MgTooltip = class {
8891
8890
  * Sets an `id` attribute.
8892
8891
  * Needed by the input for accessibility `aria-decribedby`.
8893
8892
  */
8894
- this.identifier = index_es.Zt('mg-tooltip');
8893
+ this.identifier = index_es.Dt('mg-tooltip');
8895
8894
  /**
8896
8895
  * Tooltip placement
8897
8896
  */
@@ -8913,7 +8912,7 @@ const MgTooltip = class {
8913
8912
  // Enable the event listeners
8914
8913
  this.popper.setOptions(options => (Object.assign(Object.assign({}, options), { modifiers: [...options.modifiers, { name: 'eventListeners', enabled: true }] })));
8915
8914
  // hide when click outside on nextTick to prevent event to trigger after creation
8916
- index_es.Qt(() => {
8915
+ index_es.er(() => {
8917
8916
  this.windows.forEach((localWindow) => {
8918
8917
  localWindow.addEventListener('click', this.handleClickOutside, false);
8919
8918
  localWindow.addEventListener('keydown', this.handlePressEscape, false);
@@ -9111,15 +9110,15 @@ const MgTooltip = class {
9111
9110
  };
9112
9111
  }
9113
9112
  watchIdentifier(newValue) {
9114
- if (!index_es.Dt(newValue)) {
9115
- throw new Error(`<mg-tooltip> prop "identifier" value is invalid. Passed value: ${index_es.Xt(newValue)}.`);
9113
+ if (!index_es.Bt(newValue)) {
9114
+ throw new Error(`<mg-tooltip> prop "identifier" value is invalid. Passed value: ${index_es.Yt(newValue)}.`);
9116
9115
  }
9117
9116
  // use renderTooltipContent to update tooltip-content id
9118
9117
  this.renderTooltipContent();
9119
9118
  }
9120
9119
  watchMessage(newValue) {
9121
9120
  if (!index_es.qe(newValue)) {
9122
- throw new Error(`<mg-tooltip> prop "message" is required and must be a string. Passed value: ${index_es.Xt(newValue)}.`);
9121
+ throw new Error(`<mg-tooltip> prop "message" is required and must be a string. Passed value: ${index_es.Yt(newValue)}.`);
9123
9122
  }
9124
9123
  if (this.mgTooltipContent !== undefined)
9125
9124
  this.mgTooltipContent.message = newValue;
@@ -9174,7 +9173,7 @@ const MgTooltip = class {
9174
9173
  */
9175
9174
  componentWillLoad() {
9176
9175
  // Get windows to attach events
9177
- this.windows = index_es.Jt(window);
9176
+ this.windows = index_es.Kt(window);
9178
9177
  // Get tooltip element
9179
9178
  this.renderTooltipContent();
9180
9179
  //validate properties
@@ -9192,7 +9191,7 @@ const MgTooltip = class {
9192
9191
  // get slotted element wich is not the tooltip
9193
9192
  const slotElement = this.element.querySelector(`*:not(#${this.identifier})`);
9194
9193
  // Get interactive element
9195
- const interactiveElement = slotElement.matches(index_es.Gt) ? slotElement : (_a = slotElement.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(index_es.Gt);
9194
+ const interactiveElement = slotElement.matches(index_es.Xt) ? slotElement : (_a = slotElement.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(index_es.Xt);
9196
9195
  this.setTooltipedElement(interactiveElement || slotElement);
9197
9196
  // Check if slotted element is a disabled mg-button
9198
9197
  // In this case we wrap the mg-button into a div to enable the tooltip