@mgdis/mg-components 5.25.2 → 5.26.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 (83) hide show
  1. package/dist/cjs/{index-0256ee6d.js → index-0a2783ee.js} +1 -1
  2. package/dist/cjs/{index-0256ee6d.js.map → index-0a2783ee.js.map} +1 -1
  3. package/dist/cjs/{index-f699ee11.js → index-c585c382.js} +37 -37
  4. package/dist/cjs/index-c585c382.js.map +1 -0
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/mg-action-more_34.cjs.entry.js +89 -89
  7. package/dist/cjs/mg-action-more_34.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-item-more.cjs.entry.js +3 -3
  11. package/dist/cjs/mg-loader.cjs.entry.js +3 -3
  12. package/dist/collection/collection-manifest.json +1 -1
  13. package/dist/collection/components/atoms/mg-badge/mg-badge.js +2 -2
  14. package/dist/collection/components/atoms/mg-badge/mg-badge.js.map +1 -1
  15. package/dist/components/MgInput.js +3 -3
  16. package/dist/components/index.es.js +29 -29
  17. package/dist/components/index.es.js.map +1 -1
  18. package/dist/components/index2.js +2 -2
  19. package/dist/components/mg-action-more.js +2 -2
  20. package/dist/components/mg-badge2.js +4 -4
  21. package/dist/components/mg-badge2.js.map +1 -1
  22. package/dist/components/mg-button2.js +4 -4
  23. package/dist/components/mg-card2.js +2 -2
  24. package/dist/components/mg-details.js +2 -2
  25. package/dist/components/mg-form.js +3 -3
  26. package/dist/components/mg-icon2.js +2 -2
  27. package/dist/components/mg-illustrated-message.js +2 -2
  28. package/dist/components/mg-input-checkbox.js +4 -4
  29. package/dist/components/mg-input-date.js +11 -11
  30. package/dist/components/mg-input-numeric.js +5 -5
  31. package/dist/components/mg-input-password.js +3 -3
  32. package/dist/components/mg-input-radio.js +4 -4
  33. package/dist/components/mg-input-select2.js +6 -6
  34. package/dist/components/mg-input-text2.js +6 -6
  35. package/dist/components/mg-input-textarea.js +6 -6
  36. package/dist/components/mg-input-title2.js +2 -2
  37. package/dist/components/mg-input-toggle.js +4 -4
  38. package/dist/components/mg-item-more.js +2 -2
  39. package/dist/components/mg-loader.js +2 -2
  40. package/dist/components/mg-menu-item2.js +4 -4
  41. package/dist/components/mg-message.js +3 -3
  42. package/dist/components/mg-modal.js +6 -6
  43. package/dist/components/mg-pagination2.js +2 -2
  44. package/dist/components/mg-panel.js +4 -4
  45. package/dist/components/mg-popover-content2.js +3 -3
  46. package/dist/components/mg-popover2.js +3 -3
  47. package/dist/components/mg-skip-links.js +2 -2
  48. package/dist/components/mg-tabs.js +6 -6
  49. package/dist/components/mg-tag.js +3 -3
  50. package/dist/components/mg-tooltip2.js +6 -6
  51. package/dist/esm/{index-4ad17402.js → index-ad78ece7.js} +1 -1
  52. package/dist/esm/{index-4ad17402.js.map → index-ad78ece7.js.map} +1 -1
  53. package/dist/esm/{index-d2fc6ec0.js → index-bb17de92.js} +31 -31
  54. package/dist/esm/index-bb17de92.js.map +1 -0
  55. package/dist/esm/loader.js +2 -2
  56. package/dist/esm/mg-action-more_34.entry.js +89 -89
  57. package/dist/esm/mg-action-more_34.entry.js.map +1 -1
  58. package/dist/esm/mg-components.js +3 -3
  59. package/dist/esm/mg-components.js.map +1 -1
  60. package/dist/esm/mg-item-more.entry.js +3 -3
  61. package/dist/esm/mg-loader.entry.js +3 -3
  62. package/dist/mg-components/mg-components.esm.js +1 -1
  63. package/dist/mg-components/mg-components.esm.js.map +1 -1
  64. package/dist/mg-components/{p-568c9ea9.entry.js → p-2db8355d.entry.js} +2 -2
  65. package/dist/mg-components/p-95653110.entry.js +2 -0
  66. package/dist/mg-components/p-95653110.entry.js.map +1 -0
  67. package/dist/mg-components/{p-f761ebcd.js → p-bc62d75e.js} +1 -1
  68. package/dist/mg-components/{p-f761ebcd.js.map → p-bc62d75e.js.map} +1 -1
  69. package/dist/mg-components/{p-29b5a514.js → p-d41aa78b.js} +2 -2
  70. package/dist/mg-components/p-d41aa78b.js.map +1 -0
  71. package/dist/mg-components/{p-22f575c5.entry.js → p-d80b844d.entry.js} +2 -2
  72. package/dist/types/components/atoms/mg-badge/mg-badge.d.ts +1 -1
  73. package/dist/types/components.d.ts +2 -2
  74. package/ide/intellij/web-types.json +5810 -0
  75. package/ide/vscode/html-custom-data.json +5083 -0
  76. package/package.json +21 -14
  77. package/dist/cjs/index-f699ee11.js.map +0 -1
  78. package/dist/esm/index-d2fc6ec0.js.map +0 -1
  79. package/dist/mg-components/p-29b5a514.js.map +0 -1
  80. package/dist/mg-components/p-57614d95.entry.js +0 -2
  81. package/dist/mg-components/p-57614d95.entry.js.map +0 -1
  82. /package/dist/mg-components/{p-568c9ea9.entry.js.map → p-2db8355d.entry.js.map} +0 -0
  83. /package/dist/mg-components/{p-22f575c5.entry.js.map → p-d80b844d.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-4ad17402.js';
2
- import { j as je, i as initLocales, F as Fe, H as He, P as Pe, _ as _e, C as Ce, b as be, A as Ae, E as Ee, S as Se, R as Re, M as Me, D as De, B as Be, N as Ne } from './index-d2fc6ec0.js';
1
+ import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-ad78ece7.js';
2
+ import { R as Re, i as initLocales, M as Me, B as Be, U as Ue, F as Fe, N as Ne, g as ge, W as We, P as Pe, d as de, z as ze, q as qe, O as Oe, D as De, _ as _e } from './index-bb17de92.js';
3
3
  import { D as Direction, s as sizes$2 } from './mg-menu.conf-9609bcb2.js';
4
4
 
5
5
  /**
@@ -59,7 +59,7 @@ const MgActionMore = class {
59
59
  ************/
60
60
  this.name = 'mg-action-more';
61
61
  this.classBase = 'mg-c-action-more';
62
- this.mgPopoverIdentifier = je(this.name);
62
+ this.mgPopoverIdentifier = Re(this.name);
63
63
  /************
64
64
  * Methods *
65
65
  ***********/
@@ -183,7 +183,7 @@ const MgBadge = class {
183
183
  this.label = undefined;
184
184
  this.variant = variants$5[0];
185
185
  this.outline = undefined;
186
- this.classCollection = new Fe(['mg-c-badge']);
186
+ this.classCollection = new Me(['mg-c-badge']);
187
187
  }
188
188
  validateValue(newValue) {
189
189
  if (/^(\d+\+*|[?*!a-z])$/i.exec(`${newValue}`) === null) {
@@ -191,7 +191,7 @@ const MgBadge = class {
191
191
  }
192
192
  }
193
193
  validateLabel(newValue) {
194
- if (!He(newValue)) {
194
+ if (!Be(newValue)) {
195
195
  throw new Error('<mg-badge> prop "label" is required.');
196
196
  }
197
197
  }
@@ -226,7 +226,7 @@ const MgBadge = class {
226
226
  * @returns HTML Element
227
227
  */
228
228
  render() {
229
- return (h("span", { key: '570b40e6abb6c0da8b9b2b8825f862612531fe51', class: this.classCollection.join() }, h("span", { key: 'b2c9bb13d21cf985a02a8cb35d76014e4631a5e4', class: "mg-c-badge__value" }, this.value), h("span", { key: 'e8180432ca14df201d5ab94b13341795191452ce', class: "mg-u-visually-hidden" }, this.label)));
229
+ return (h("span", { key: 'f6f1baa91f4a9e55af711f0a84eaca74b97962b3', class: this.classCollection.join() }, h("span", { key: '9c61217b74129839f600617d5e6e6bc7a2863667', class: "mg-c-badge__value" }, this.value), h("span", { key: '2fd7529d5d9a9b32da2c4a80a70a09396ffb9100', class: "mg-u-visually-hidden" }, this.label)));
230
230
  }
231
231
  static get watchers() { return {
232
232
  "value": ["validateValue"],
@@ -302,7 +302,7 @@ const MgButton = class {
302
302
  this.isIcon = false;
303
303
  this.disableOnClick = false;
304
304
  this.loading = false;
305
- this.classCollection = new Fe(['mg-c-button']);
305
+ this.classCollection = new Me(['mg-c-button']);
306
306
  }
307
307
  validateVariant(newValue, oldValue) {
308
308
  if (!variants$4.includes(newValue)) {
@@ -361,7 +361,7 @@ const MgButton = class {
361
361
  this.validateFullWidth(this.fullWidth);
362
362
  if (this.isIcon) {
363
363
  this.classCollection.add(`mg-c-button--icon`);
364
- if (!He(this.label)) {
364
+ if (!Be(this.label)) {
365
365
  throw new Error(`<mg-button> prop "label" is mandatory when prop "isIcon" is set to true.`);
366
366
  }
367
367
  }
@@ -373,7 +373,7 @@ const MgButton = class {
373
373
  * Add listners
374
374
  */
375
375
  componentDidLoad() {
376
- Pe(() => {
376
+ Ue(() => {
377
377
  var _a;
378
378
  const closestForm = this.element.closest('form') || ((_a = this.element.closest('mg-form')) === null || _a === void 0 ? void 0 : _a.shadowRoot.querySelector('form'));
379
379
  // submit buttons should trigger form submition;
@@ -432,7 +432,7 @@ const MgCard = class {
432
432
  };
433
433
  this.variant = undefined;
434
434
  this.variantStyle = undefined;
435
- this.classCollection = new Fe([this.classBase]);
435
+ this.classCollection = new Me([this.classBase]);
436
436
  }
437
437
  validateVariant(newValue, oldValue) {
438
438
  if (newValue && !variants$3.includes(newValue))
@@ -537,7 +537,7 @@ const MgDetails = class {
537
537
  this.expanded = false;
538
538
  }
539
539
  validateTitles(newValue) {
540
- if (!He(newValue)) {
540
+ if (!Be(newValue)) {
541
541
  throw new Error('<mg-details> prop "toggleClosed" and "toggleOpened" must be defined.');
542
542
  }
543
543
  }
@@ -695,7 +695,7 @@ const MgForm = class {
695
695
  }
696
696
  });
697
697
  };
698
- this.identifier = je('mg-form');
698
+ this.identifier = Re('mg-form');
699
699
  this.name = this.identifier;
700
700
  this.readonly = false;
701
701
  this.requiredMessage = undefined;
@@ -704,7 +704,7 @@ const MgForm = class {
704
704
  this.disabled = false;
705
705
  this.valid = undefined;
706
706
  this.invalid = undefined;
707
- this.classCollection = new Fe(['mg-c-form']);
707
+ this.classCollection = new Me(['mg-c-form']);
708
708
  this.requiredMessageText = undefined;
709
709
  }
710
710
  validateRequiredMessage(newValue) {
@@ -1257,7 +1257,7 @@ const MgIcon = class {
1257
1257
  this.variant = undefined;
1258
1258
  this.variantStyle = undefined;
1259
1259
  this.spin = false;
1260
- this.classCollection = new Fe(['mg-c-icon']);
1260
+ this.classCollection = new Me(['mg-c-icon']);
1261
1261
  }
1262
1262
  validateIcon(newValue, oldValue) {
1263
1263
  if (!iconList.includes(newValue))
@@ -1356,7 +1356,7 @@ const MgIllustratedMessage = class {
1356
1356
  componentDidLoad() {
1357
1357
  const headingTags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
1358
1358
  const slottedIllustrations = this.element.querySelectorAll('[slot="illustration"]');
1359
- if (!_e(this.element.querySelector('[slot="title"]'), headingTags)) {
1359
+ if (!Fe(this.element.querySelector('[slot="title"]'), headingTags)) {
1360
1360
  throw new Error(`<mg-illustrated-message> Slotted title must be a heading: ${headingTags.join(', ')}`);
1361
1361
  }
1362
1362
  else if (slottedIllustrations.length !== 1) {
@@ -1436,10 +1436,10 @@ const manageClasses = (props) => {
1436
1436
  * @param props - MgInput Interface Props
1437
1437
  */
1438
1438
  const checkPropsConfig = (props) => {
1439
- if (!He(props.identifier)) {
1439
+ if (!Be(props.identifier)) {
1440
1440
  throw new Error('<mg-input> prop "identifier" is required.');
1441
1441
  }
1442
- if (!He(props.label)) {
1442
+ if (!Be(props.label)) {
1443
1443
  throw new Error('<mg-input> prop "label" is required.');
1444
1444
  }
1445
1445
  if (props.labelOnTop && props.labelHide) {
@@ -1716,7 +1716,7 @@ const MgInputCheckbox = class {
1716
1716
  * Method to update searchResults
1717
1717
  */
1718
1718
  this.updateSearchResults = () => {
1719
- this.searchResults = this.checkboxItems.filter(item => Ce(item.title).includes(Ce(this.searchValue)));
1719
+ this.searchResults = this.checkboxItems.filter(item => Ne(item.title).includes(Ne(this.searchValue)));
1720
1720
  };
1721
1721
  /**
1722
1722
  * Methode to validate if one of inputs value is checked id required
@@ -1790,7 +1790,7 @@ const MgInputCheckbox = class {
1790
1790
  this.helpText = undefined;
1791
1791
  this.valid = undefined;
1792
1792
  this.invalid = undefined;
1793
- this.classCollection = new Fe([this.baseClassName]);
1793
+ this.classCollection = new Me([this.baseClassName]);
1794
1794
  this.errorMessage = undefined;
1795
1795
  this.checkboxItems = [];
1796
1796
  this.displaySearchInput = undefined;
@@ -1877,7 +1877,7 @@ const MgInputCheckbox = class {
1877
1877
  if (typeof valid !== 'boolean') {
1878
1878
  throw new Error('<mg-input-checkbox> method "setError()" param "valid" must be a boolean');
1879
1879
  }
1880
- else if (!He(errorMessage)) {
1880
+ else if (!Be(errorMessage)) {
1881
1881
  throw new Error('<mg-input-checkbox> method "setError()" param "errorMessage" must be a string');
1882
1882
  }
1883
1883
  else {
@@ -2142,10 +2142,10 @@ const MgInputDate = class {
2142
2142
  */
2143
2143
  this.formatHelpText = (helpText) => {
2144
2144
  const defaultHelpTextVariable = '{defaultHelpText}';
2145
- let text = He(helpText) ? helpText : this.messages.input.date.helpText;
2145
+ let text = Be(helpText) ? helpText : this.messages.input.date.helpText;
2146
2146
  if (text.includes(defaultHelpTextVariable))
2147
2147
  text = text.replace(defaultHelpTextVariable, this.formatHelpText(this.messages.input.date.helpText));
2148
- return text.replace('{pattern}', this.renderPattern()).replace('{date}', be(Ae(new Date('2023-12-24')), this.systemLocale));
2148
+ return text.replace('{pattern}', this.renderPattern()).replace('{date}', ge(We(new Date('2023-12-24')), this.systemLocale));
2149
2149
  };
2150
2150
  /**
2151
2151
  * Handle input event
@@ -2218,8 +2218,8 @@ const MgInputDate = class {
2218
2218
  // min, max & minMax
2219
2219
  else if ([InputError$1.MIN, InputError$1.MAX, InputError$1.MINMAX].includes(inputError)) {
2220
2220
  this.errorMessage = this.messages.errors.date[inputError]
2221
- .replace('{min}', be(this.min, this.systemLocale))
2222
- .replace('{max}', be(this.max, this.systemLocale));
2221
+ .replace('{min}', ge(this.min, this.systemLocale))
2222
+ .replace('{max}', ge(this.max, this.systemLocale));
2223
2223
  }
2224
2224
  // wrong date format
2225
2225
  // element.validity.badInput is default error message
@@ -2233,7 +2233,7 @@ const MgInputDate = class {
2233
2233
  * @returns translated html pattern
2234
2234
  */
2235
2235
  this.renderPattern = () => {
2236
- let patternLocal = Ee(this.systemLocale);
2236
+ let patternLocal = Pe(this.systemLocale);
2237
2237
  for (const key in this.messages.input.date.pattern) {
2238
2238
  patternLocal = patternLocal.replace(key, this.messages.input.date.pattern[key]);
2239
2239
  }
@@ -2255,14 +2255,14 @@ const MgInputDate = class {
2255
2255
  this.helpText = undefined;
2256
2256
  this.valid = undefined;
2257
2257
  this.invalid = undefined;
2258
- this.classCollection = new Fe(['mg-c-input--date']);
2258
+ this.classCollection = new Me(['mg-c-input--date']);
2259
2259
  this.errorMessage = undefined;
2260
2260
  }
2261
2261
  validateValue(newValue) {
2262
2262
  // When the input is not fully completed or has been cleared, the value becomes an empty string.
2263
2263
  if (newValue === '')
2264
2264
  newValue = null;
2265
- if (newValue !== undefined && newValue !== null && (typeof newValue !== 'string' || !Se.test(newValue))) {
2265
+ if (newValue !== undefined && newValue !== null && (typeof newValue !== 'string' || !de.test(newValue))) {
2266
2266
  throw new Error("<mg-input-date> props 'value' doesn't match pattern: yyyy-mm-dd");
2267
2267
  }
2268
2268
  else {
@@ -2270,7 +2270,7 @@ const MgInputDate = class {
2270
2270
  }
2271
2271
  }
2272
2272
  validateMinMax(newValue) {
2273
- if ((newValue === null || newValue === void 0 ? void 0 : newValue.length) === 0 || ((newValue === null || newValue === void 0 ? void 0 : newValue.length) > 0 && !(typeof newValue === 'string' && Se.test(newValue)))) {
2273
+ if ((newValue === null || newValue === void 0 ? void 0 : newValue.length) === 0 || ((newValue === null || newValue === void 0 ? void 0 : newValue.length) > 0 && !(typeof newValue === 'string' && de.test(newValue)))) {
2274
2274
  throw new Error("<mg-input-date> props 'min/max' doesn't match pattern: yyyy-mm-dd");
2275
2275
  }
2276
2276
  }
@@ -2304,7 +2304,7 @@ const MgInputDate = class {
2304
2304
  if (typeof valid !== 'boolean') {
2305
2305
  throw new Error('<mg-input-date> method "setError()" param "valid" must be a boolean');
2306
2306
  }
2307
- else if (!He(errorMessage)) {
2307
+ else if (!Be(errorMessage)) {
2308
2308
  throw new Error('<mg-input-date> method "setError()" param "errorMessage" must be a string');
2309
2309
  }
2310
2310
  else {
@@ -2356,7 +2356,7 @@ const MgInputDate = class {
2356
2356
  * @returns HTML Element
2357
2357
  */
2358
2358
  render() {
2359
- return (h(MgInput, { key: 'd6e63d2f60d8c1b977181b35ad1c5393ebbf9f2d', identifier: this.identifier, classCollection: this.classCollection, ariaDescribedbyIDs: [], label: this.label, labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: this.required, readonly: this.readonly, mgWidth: undefined, disabled: this.disabled, value: this.value, readonlyValue: be(this.value, this.locale), tooltip: this.tooltip, tooltipPosition: this.tooltipPosition, helpText: this.formatHelpText(this.helpText), errorMessage: this.errorMessage, isFieldset: false }, h("input", { key: 'd94cfb21684af81db4dc3fc3ba1cc1fdfdaa2793', 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, ref: (el) => {
2359
+ return (h(MgInput, { key: 'd6e63d2f60d8c1b977181b35ad1c5393ebbf9f2d', identifier: this.identifier, classCollection: this.classCollection, ariaDescribedbyIDs: [], label: this.label, labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: this.required, readonly: this.readonly, mgWidth: undefined, disabled: this.disabled, value: this.value, readonlyValue: ge(this.value, this.locale), tooltip: this.tooltip, tooltipPosition: this.tooltipPosition, helpText: this.formatHelpText(this.helpText), errorMessage: this.errorMessage, isFieldset: false }, h("input", { key: 'd94cfb21684af81db4dc3fc3ba1cc1fdfdaa2793', 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, ref: (el) => {
2360
2360
  if (el !== null)
2361
2361
  this.input = el;
2362
2362
  } })));
@@ -2489,9 +2489,9 @@ const MgInputNumeric = class {
2489
2489
  this.formatValue = (value) => {
2490
2490
  switch (this.format) {
2491
2491
  case 'number':
2492
- return Me(value, this.locale);
2492
+ return qe(value, this.locale);
2493
2493
  case 'currency':
2494
- return Re(value, this.locale, this.currency);
2494
+ return ze(value, this.locale, this.currency);
2495
2495
  case 'none':
2496
2496
  return value.toString();
2497
2497
  }
@@ -2528,7 +2528,7 @@ const MgInputNumeric = class {
2528
2528
  this.decimalLength = 2;
2529
2529
  this.valid = undefined;
2530
2530
  this.invalid = undefined;
2531
- this.classCollection = new Fe(['mg-c-input--numeric']);
2531
+ this.classCollection = new Me(['mg-c-input--numeric']);
2532
2532
  this.errorMessage = undefined;
2533
2533
  this.hasFocus = undefined;
2534
2534
  }
@@ -2603,7 +2603,7 @@ const MgInputNumeric = class {
2603
2603
  if (typeof valid !== 'boolean') {
2604
2604
  throw new Error('<mg-input-numeric> method "setError()" param "valid" must be a boolean');
2605
2605
  }
2606
- else if (!He(errorMessage)) {
2606
+ else if (!Be(errorMessage)) {
2607
2607
  throw new Error('<mg-input-numeric> method "setError()" param "errorMessage" must be a string');
2608
2608
  }
2609
2609
  else {
@@ -2786,7 +2786,7 @@ const MgInputPassword = class {
2786
2786
  this.helpText = undefined;
2787
2787
  this.valid = undefined;
2788
2788
  this.invalid = undefined;
2789
- this.classCollection = new Fe(['mg-c-input--password']);
2789
+ this.classCollection = new Me(['mg-c-input--password']);
2790
2790
  this.errorMessage = undefined;
2791
2791
  }
2792
2792
  handleValue(newValue) {
@@ -2822,7 +2822,7 @@ const MgInputPassword = class {
2822
2822
  if (typeof valid !== 'boolean') {
2823
2823
  throw new Error('<mg-input-password> method "setError()" param "valid" must be a boolean');
2824
2824
  }
2825
- else if (!He(errorMessage)) {
2825
+ else if (!Be(errorMessage)) {
2826
2826
  throw new Error('<mg-input-password> method "setError()" param "errorMessage" must be a string');
2827
2827
  }
2828
2828
  else {
@@ -2963,7 +2963,7 @@ const MgInputRadio = class {
2963
2963
  this.helpText = undefined;
2964
2964
  this.valid = undefined;
2965
2965
  this.invalid = undefined;
2966
- this.classCollection = new Fe(['mg-c-input--radio']);
2966
+ this.classCollection = new Me(['mg-c-input--radio']);
2967
2967
  this.errorMessage = undefined;
2968
2968
  this.options = undefined;
2969
2969
  }
@@ -2976,7 +2976,7 @@ const MgInputRadio = class {
2976
2976
  throw new Error('<mg-input-radio> prop "items" require at least 2 items.');
2977
2977
  }
2978
2978
  // String array
2979
- else if (De(newValue)) {
2979
+ else if (Oe(newValue)) {
2980
2980
  this.options = newValue.map(item => ({ title: item, value: item, disabled: this.disabled }));
2981
2981
  }
2982
2982
  // Object array
@@ -3017,7 +3017,7 @@ const MgInputRadio = class {
3017
3017
  if (typeof valid !== 'boolean') {
3018
3018
  throw new Error('<mg-input-radio> method "setError()" param "valid" must be a boolean');
3019
3019
  }
3020
- else if (!He(errorMessage)) {
3020
+ else if (!Be(errorMessage)) {
3021
3021
  throw new Error('<mg-input-radio> method "setError()" param "errorMessage" must be a string');
3022
3022
  }
3023
3023
  else {
@@ -3159,7 +3159,7 @@ const MgInputSelect = class {
3159
3159
  if (this.input.value === '') {
3160
3160
  this.setValue(null);
3161
3161
  }
3162
- else if (De(this.items) && this.items.includes(this.input.value)) {
3162
+ else if (Oe(this.items) && this.items.includes(this.input.value)) {
3163
3163
  this.setValue(this.input.value);
3164
3164
  }
3165
3165
  else if (allItemsAreOptions(this.items) && typeof this.input.value === 'string' && this.items.some(this.isInputValue)) {
@@ -3234,7 +3234,7 @@ const MgInputSelect = class {
3234
3234
  this.helpText = undefined;
3235
3235
  this.valid = undefined;
3236
3236
  this.invalid = undefined;
3237
- this.classCollection = new Fe(['mg-c-input--select']);
3237
+ this.classCollection = new Me(['mg-c-input--select']);
3238
3238
  this.errorMessage = undefined;
3239
3239
  this.options = undefined;
3240
3240
  this.valueExist = undefined;
@@ -3242,7 +3242,7 @@ const MgInputSelect = class {
3242
3242
  }
3243
3243
  validateValue(newValue) {
3244
3244
  var _a, _b;
3245
- if (De(this.items) && typeof newValue === 'string') {
3245
+ if (Oe(this.items) && typeof newValue === 'string') {
3246
3246
  this.readonlyValue = ((_a = this.input) === null || _a === void 0 ? void 0 : _a.value) ? this.input.value : newValue;
3247
3247
  }
3248
3248
  else if (allItemsAreOptions(this.items)) {
@@ -3259,7 +3259,7 @@ const MgInputSelect = class {
3259
3259
  this.options = [];
3260
3260
  }
3261
3261
  // String array
3262
- else if (De(newValue)) {
3262
+ else if (Oe(newValue)) {
3263
3263
  if (typeof this.value === 'string')
3264
3264
  this.valueExist = newValue.includes(this.value);
3265
3265
  this.options = newValue.map(item => ({ title: item, value: item }));
@@ -3310,7 +3310,7 @@ const MgInputSelect = class {
3310
3310
  if (typeof valid !== 'boolean') {
3311
3311
  throw new Error('<mg-input-select> method "setError()" param "valid" must be a boolean');
3312
3312
  }
3313
- else if (!He(errorMessage)) {
3313
+ else if (!Be(errorMessage)) {
3314
3314
  throw new Error('<mg-input-select> method "setError()" param "errorMessage" must be a string');
3315
3315
  }
3316
3316
  else {
@@ -3410,7 +3410,7 @@ const MgInputText = class {
3410
3410
  */
3411
3411
  this.handleFocus = () => {
3412
3412
  this.classCollection.add(this.classFocus);
3413
- this.classCollection = new Fe(this.classCollection.classes);
3413
+ this.classCollection = new Me(this.classCollection.classes);
3414
3414
  };
3415
3415
  /**
3416
3416
  * Handle blur event
@@ -3418,7 +3418,7 @@ const MgInputText = class {
3418
3418
  this.handleBlur = () => {
3419
3419
  // Manage focus
3420
3420
  this.classCollection.delete(this.classFocus);
3421
- this.classCollection = new Fe(this.classCollection.classes);
3421
+ this.classCollection = new Me(this.classCollection.classes);
3422
3422
  // Display Error
3423
3423
  this.handlerInProgress = Handler.BLUR;
3424
3424
  this.displayError().finally(() => {
@@ -3494,7 +3494,7 @@ const MgInputText = class {
3494
3494
  this.helpText = undefined;
3495
3495
  this.valid = undefined;
3496
3496
  this.invalid = undefined;
3497
- this.classCollection = new Fe(['mg-c-input--text']);
3497
+ this.classCollection = new Me(['mg-c-input--text']);
3498
3498
  this.errorMessage = undefined;
3499
3499
  }
3500
3500
  handleValue(newValue) {
@@ -3524,7 +3524,7 @@ const MgInputText = class {
3524
3524
  }
3525
3525
  }
3526
3526
  validatePattern(newValue) {
3527
- if (newValue !== undefined && !(He(this.pattern) && He(this.patternErrorMessage))) {
3527
+ if (newValue !== undefined && !(Be(this.pattern) && Be(this.patternErrorMessage))) {
3528
3528
  throw new Error('<mg-input-text> props "pattern" and "patternErrorMessage" must be non-empty string and paired.');
3529
3529
  }
3530
3530
  }
@@ -3554,7 +3554,7 @@ const MgInputText = class {
3554
3554
  if (typeof valid !== 'boolean') {
3555
3555
  throw new Error('<mg-input-text> method "setError()" param "valid" must be a boolean');
3556
3556
  }
3557
- else if (!He(errorMessage)) {
3557
+ else if (!Be(errorMessage)) {
3558
3558
  throw new Error('<mg-input-text> method "setError()" param "errorMessage" must be a string');
3559
3559
  }
3560
3560
  else {
@@ -3659,7 +3659,7 @@ const MgInputTextarea = class {
3659
3659
  */
3660
3660
  this.handleFocus = () => {
3661
3661
  this.classCollection.add(this.classFocus);
3662
- this.classCollection = new Fe(this.classCollection.classes);
3662
+ this.classCollection = new Me(this.classCollection.classes);
3663
3663
  };
3664
3664
  /**
3665
3665
  * Handle blur event
@@ -3667,7 +3667,7 @@ const MgInputTextarea = class {
3667
3667
  this.handleBlur = () => {
3668
3668
  // Manage focus
3669
3669
  this.classCollection.delete(this.classFocus);
3670
- this.classCollection = new Fe(this.classCollection.classes);
3670
+ this.classCollection = new Me(this.classCollection.classes);
3671
3671
  // Display Error
3672
3672
  this.handlerInProgress = Handler.BLUR;
3673
3673
  this.displayError().finally(() => {
@@ -3731,7 +3731,7 @@ const MgInputTextarea = class {
3731
3731
  this.valid = undefined;
3732
3732
  this.invalid = undefined;
3733
3733
  this.resizable = 'none';
3734
- this.classCollection = new Fe(['mg-c-input--textarea']);
3734
+ this.classCollection = new Me(['mg-c-input--textarea']);
3735
3735
  this.errorMessage = undefined;
3736
3736
  }
3737
3737
  handleValue(newValue) {
@@ -3749,7 +3749,7 @@ const MgInputTextarea = class {
3749
3749
  }
3750
3750
  }
3751
3751
  validatePattern(newValue) {
3752
- if (newValue !== undefined && !(He(this.pattern) && He(this.patternErrorMessage))) {
3752
+ if (newValue !== undefined && !(Be(this.pattern) && Be(this.patternErrorMessage))) {
3753
3753
  throw new Error('<mg-input-textarea> props "pattern" and "patternErrorMessage" must be non-empty string and paired.');
3754
3754
  }
3755
3755
  }
@@ -3781,7 +3781,7 @@ const MgInputTextarea = class {
3781
3781
  if (typeof valid !== 'boolean') {
3782
3782
  throw new Error('<mg-input-textarea> method "setError()" param "valid" must be a boolean');
3783
3783
  }
3784
- else if (!He(errorMessage)) {
3784
+ else if (!Be(errorMessage)) {
3785
3785
  throw new Error('<mg-input-textarea> method "setError()" param "errorMessage" must be a string');
3786
3786
  }
3787
3787
  else {
@@ -3865,7 +3865,7 @@ const MgInputTitle = class {
3865
3865
  this.tagName = 'label';
3866
3866
  }
3867
3867
  validateIdentifier(newValue) {
3868
- if (!He(newValue)) {
3868
+ if (!Be(newValue)) {
3869
3869
  throw new Error('<mg-input-title> prop "identifier" is required.');
3870
3870
  }
3871
3871
  }
@@ -3980,7 +3980,7 @@ const MgInputToggle = class {
3980
3980
  this.tooltip = undefined;
3981
3981
  this.tooltipPosition = 'input';
3982
3982
  this.helpText = undefined;
3983
- this.classCollection = new Fe(['mg-c-input--toggle']);
3983
+ this.classCollection = new Me(['mg-c-input--toggle']);
3984
3984
  this.options = undefined;
3985
3985
  this.errorMessage = undefined;
3986
3986
  this.valid = undefined;
@@ -3997,7 +3997,7 @@ const MgInputToggle = class {
3997
3997
  throw new Error('<mg-input-toggle> prop "items" require 2 items.');
3998
3998
  }
3999
3999
  // String array
4000
- else if (De(newValue)) {
4000
+ else if (Oe(newValue)) {
4001
4001
  this.options = newValue.map(item => ({ title: item, value: item }));
4002
4002
  }
4003
4003
  // Object array
@@ -4047,7 +4047,7 @@ const MgInputToggle = class {
4047
4047
  if (typeof valid !== 'boolean') {
4048
4048
  throw new Error('<mg-input-toggle> method "setError()" param "valid" must be a boolean');
4049
4049
  }
4050
- else if (!He(errorMessage)) {
4050
+ else if (!Be(errorMessage)) {
4051
4051
  throw new Error('<mg-input-toggle> method "setError()" param "errorMessage" must be a string');
4052
4052
  }
4053
4053
  else {
@@ -4350,7 +4350,7 @@ const MgMenuItem = class {
4350
4350
  throw new Error(`<${this.name}> slot "label" is required.`);
4351
4351
  ['label', 'metadata'].forEach(slot => {
4352
4352
  Array.from(this.element.querySelectorAll(`[slot="${slot}"]`)).forEach(element => {
4353
- if (!He(element.textContent))
4353
+ if (!Be(element.textContent))
4354
4354
  throw new Error(`<${this.name}> slot "${slot}" must have text content.`);
4355
4355
  if ((guard && element.getAttribute('title') === null) || !guard)
4356
4356
  element.setAttribute('title', element.textContent);
@@ -4419,12 +4419,12 @@ const MgMenuItem = class {
4419
4419
  * @returns HTML Element
4420
4420
  */
4421
4421
  this.renderSlot = () => h("slot", null);
4422
- this.identifier = je('mg-menu-item');
4422
+ this.identifier = Re('mg-menu-item');
4423
4423
  this.href = undefined;
4424
4424
  this.status = Status$1.VISIBLE;
4425
4425
  this.expanded = false;
4426
4426
  this.size = 'regular';
4427
- this.navigationButtonClassList = new Fe([this.navigationButton]);
4427
+ this.navigationButtonClassList = new Me([this.navigationButton]);
4428
4428
  this.direction = undefined;
4429
4429
  this.isInMainMenu = undefined;
4430
4430
  this.isItemMore = undefined;
@@ -4658,13 +4658,13 @@ const MgMessage = class {
4658
4658
  return 'exclamation-circle';
4659
4659
  }
4660
4660
  };
4661
- this.identifier = je('mg-message');
4661
+ this.identifier = Re('mg-message');
4662
4662
  this.delay = undefined;
4663
4663
  this.variant = variants$1[0];
4664
4664
  this.closeButton = false;
4665
4665
  this.hide = false;
4666
4666
  this.noAriaRole = undefined;
4667
- this.classCollection = new Fe(['mg-c-message']);
4667
+ this.classCollection = new Me(['mg-c-message']);
4668
4668
  this.hasActions = false;
4669
4669
  }
4670
4670
  validateDelay(newValue) {
@@ -4807,12 +4807,12 @@ const MgModal = class {
4807
4807
  */
4808
4808
  this.setFocus = () => {
4809
4809
  // Get all focusable elements
4810
- const slottedFocusableElements = Array.from(this.element.querySelectorAll(Be));
4810
+ const slottedFocusableElements = Array.from(this.element.querySelectorAll(De));
4811
4811
  // If close button is enabled or at least one of the slotted element is focusable
4812
4812
  if (this.closeButton || slottedFocusableElements.length > 0) {
4813
4813
  // Check if slotted focusable elements have shadowDom with focusable elements
4814
4814
  this.modalFocusableElements = slottedFocusableElements.reduce((acc, focusableElement) => {
4815
- acc.push(focusableElement.shadowRoot !== null ? focusableElement.shadowRoot.querySelector(Be) || focusableElement : focusableElement);
4815
+ acc.push(focusableElement.shadowRoot !== null ? focusableElement.shadowRoot.querySelector(De) || focusableElement : focusableElement);
4816
4816
  return acc;
4817
4817
  }, []);
4818
4818
  // When close button is enabled it's the first focusable element.
@@ -4834,21 +4834,21 @@ const MgModal = class {
4834
4834
  this.handleClose = () => {
4835
4835
  this.hide = true;
4836
4836
  };
4837
- this.identifier = je('mg-modal');
4837
+ this.identifier = Re('mg-modal');
4838
4838
  this.dialogRole = dialogRoles[0];
4839
4839
  this.modalTitle = undefined;
4840
4840
  this.closeButton = false;
4841
4841
  this.hide = undefined;
4842
4842
  this.hasActions = false;
4843
4843
  this.hasContent = false;
4844
- this.classCollection = new Fe(['mg-c-modal']);
4844
+ this.classCollection = new Me(['mg-c-modal']);
4845
4845
  }
4846
4846
  validateDialogRole(newValue) {
4847
4847
  if (!dialogRoles.includes(newValue))
4848
4848
  throw new Error(`<mg-modal> prop "dialogRole" must be one of: ${dialogRoles.join(', ')}.`);
4849
4849
  }
4850
4850
  validateModalTitle(newValue) {
4851
- if (!He(newValue)) {
4851
+ if (!Be(newValue)) {
4852
4852
  throw new Error('<mg-modal> prop "modalTitle" is required.');
4853
4853
  }
4854
4854
  }
@@ -4995,7 +4995,7 @@ const MgPagination = class {
4995
4995
  this.handleGoToPage = (action, disabled) => {
4996
4996
  !disabled && this.goToPage(action === NavigationAction.NEXT ? this.currentPage + 1 : this.currentPage - 1);
4997
4997
  };
4998
- this.identifier = je('mg-pagination');
4998
+ this.identifier = Re('mg-pagination');
4999
4999
  this.label = undefined;
5000
5000
  this.hideNavigationLabels = undefined;
5001
5001
  this.hidePageCount = undefined;
@@ -5160,7 +5160,7 @@ const MgPanel = class {
5160
5160
  ];
5161
5161
  return this.titlePosition === 'right' ? children.reverse() : children;
5162
5162
  };
5163
- this.identifier = je('mg-panel');
5163
+ this.identifier = Re('mg-panel');
5164
5164
  this.panelTitle = undefined;
5165
5165
  this.titlePattern = undefined;
5166
5166
  this.titlePatternErrorMessage = undefined;
@@ -5169,12 +5169,12 @@ const MgPanel = class {
5169
5169
  this.expanded = false;
5170
5170
  this.expandToggleDisplay = expandToggleDisplays[0];
5171
5171
  this.expandToggleDisabled = undefined;
5172
- this.classCollection = new Fe(['mg-c-panel']);
5172
+ this.classCollection = new Me(['mg-c-panel']);
5173
5173
  this.isEditing = false;
5174
5174
  this.updatedPanelTitle = undefined;
5175
5175
  }
5176
5176
  validatePanelTitle(newValue) {
5177
- if (!He(newValue))
5177
+ if (!Be(newValue))
5178
5178
  throw new Error('<mg-panel> prop "panelTitle" is required.');
5179
5179
  this.titleChange.emit(newValue);
5180
5180
  }
@@ -7125,7 +7125,7 @@ const MgPopover = class {
7125
7125
  mgPopoverContent.setAttribute('id', this.identifier);
7126
7126
  }
7127
7127
  };
7128
- this.identifier = je('mg-popover');
7128
+ this.identifier = Re('mg-popover');
7129
7129
  this.placement = 'bottom';
7130
7130
  this.arrowHide = false;
7131
7131
  this.closeButton = false;
@@ -7168,7 +7168,7 @@ const MgPopover = class {
7168
7168
  */
7169
7169
  componentWillLoad() {
7170
7170
  // Get windows to attach events
7171
- this.windows = Ne(window);
7171
+ this.windows = _e(window);
7172
7172
  // render mg-popover-content slot
7173
7173
  this.renderPopoverContent();
7174
7174
  this.validateCloseButton(this.closeButton);
@@ -7256,7 +7256,7 @@ const MgPopoverContent = class {
7256
7256
  this.hideContent.emit();
7257
7257
  };
7258
7258
  this.closeButton = false;
7259
- this.classCollection = new Fe(['mg-c-popover-content']);
7259
+ this.classCollection = new Me(['mg-c-popover-content']);
7260
7260
  }
7261
7261
  /*************
7262
7262
  * Lifecycle *
@@ -7274,7 +7274,7 @@ const MgPopoverContent = class {
7274
7274
  componentDidLoad() {
7275
7275
  const headingTags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
7276
7276
  const slottedTitleElement = this.element.querySelector('[slot="title"]');
7277
- if (slottedTitleElement && !_e(slottedTitleElement, headingTags)) {
7277
+ if (slottedTitleElement && !Fe(slottedTitleElement, headingTags)) {
7278
7278
  throw new Error(`<mg-popover> Slotted title must be a heading: ${headingTags.join(', ')}`);
7279
7279
  }
7280
7280
  }
@@ -7310,7 +7310,7 @@ const MgSkipLinks = class {
7310
7310
  this.links = undefined;
7311
7311
  }
7312
7312
  validateLinks(links) {
7313
- if (links === undefined || links.length === 0 || links.some(link => !He(link.href) || !link.href.startsWith('#') || !He(link.label))) {
7313
+ if (links === undefined || links.length === 0 || links.some(link => !Be(link.href) || !link.href.startsWith('#') || !Be(link.label))) {
7314
7314
  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.`);
7315
7315
  }
7316
7316
  }
@@ -7462,7 +7462,7 @@ const MgTabs = class {
7462
7462
  */
7463
7463
  this.resetFocus = () => {
7464
7464
  // update asynchronously tabindex to prevent get focus on new tabindex at then end of event process
7465
- Pe(() => {
7465
+ Ue(() => {
7466
7466
  this.tabFocus = undefined;
7467
7467
  Array.from(this.element.shadowRoot.querySelectorAll('[data-index]')).forEach((tab, index) => {
7468
7468
  tab.setAttribute('tabindex', this.activeTab - this.startIndex !== index ? '-1' : '0');
@@ -7477,16 +7477,16 @@ const MgTabs = class {
7477
7477
  if (slots.length !== this.tabs.length)
7478
7478
  throw new Error('<mg-tabs> Must have slots counts equal to tabs count.');
7479
7479
  };
7480
- this.identifier = je('mg-tabs');
7480
+ this.identifier = Re('mg-tabs');
7481
7481
  this.label = undefined;
7482
7482
  this.size = 'regular';
7483
7483
  this.items = undefined;
7484
7484
  this.activeTab = undefined;
7485
7485
  this.tabs = [];
7486
- this.classCollection = new Fe(['mg-c-tabs']);
7486
+ this.classCollection = new Me(['mg-c-tabs']);
7487
7487
  }
7488
7488
  validateLabel(newValue) {
7489
- if (!He(newValue)) {
7489
+ if (!Be(newValue)) {
7490
7490
  throw new Error('<mg-tabs> prop "label" is required.');
7491
7491
  }
7492
7492
  }
@@ -7498,7 +7498,7 @@ const MgTabs = class {
7498
7498
  }
7499
7499
  validateItems(newValue) {
7500
7500
  // String array
7501
- if (De(newValue))
7501
+ if (Oe(newValue))
7502
7502
  this.tabs = newValue.map(item => ({ label: item, status: Status.VISIBLE }));
7503
7503
  // Object array
7504
7504
  else if (Array.isArray(newValue) && newValue.length > 0 && newValue.every(isTabItem))
@@ -7598,7 +7598,7 @@ const MgTag = class {
7598
7598
  this.variant = variants[0];
7599
7599
  this.outline = undefined;
7600
7600
  this.soft = undefined;
7601
- this.classCollection = new Fe(['mg-c-tag']);
7601
+ this.classCollection = new Me(['mg-c-tag']);
7602
7602
  }
7603
7603
  validateVariant(newValue, oldValue) {
7604
7604
  if (!variants.includes(newValue)) {
@@ -7635,7 +7635,7 @@ const MgTag = class {
7635
7635
  * @param textContent - html element textContent property
7636
7636
  */
7637
7637
  validateTextContent(textContent) {
7638
- if (!He(textContent))
7638
+ if (!Be(textContent))
7639
7639
  throw new Error('<mg-tag> slot must contain a text content.');
7640
7640
  }
7641
7641
  /*************
@@ -7694,7 +7694,7 @@ const MgTooltip = class {
7694
7694
  // Enable the event listeners
7695
7695
  this.popper.setOptions(options => (Object.assign(Object.assign({}, options), { modifiers: [...options.modifiers, { name: 'eventListeners', enabled: true }] })));
7696
7696
  // hide when click outside on nextTick to prevent event to trigger after creation
7697
- Pe(() => {
7697
+ Ue(() => {
7698
7698
  this.windows.forEach((localWindow) => {
7699
7699
  localWindow.addEventListener('click', this.clickOutside, false);
7700
7700
  localWindow.addEventListener('keydown', this.pressEscape, false);
@@ -7859,7 +7859,7 @@ const MgTooltip = class {
7859
7859
  });
7860
7860
  });
7861
7861
  };
7862
- this.identifier = je('mg-tooltip');
7862
+ this.identifier = Re('mg-tooltip');
7863
7863
  this.message = undefined;
7864
7864
  this.placement = 'bottom';
7865
7865
  this.display = false;
@@ -7870,7 +7870,7 @@ const MgTooltip = class {
7870
7870
  this.renderTooltipContent();
7871
7871
  }
7872
7872
  validateMessage(newValue) {
7873
- if (!He(newValue)) {
7873
+ if (!Be(newValue)) {
7874
7874
  throw new Error('<mg-tooltip> prop "message" is required.');
7875
7875
  }
7876
7876
  this.mgTooltipContent.message = newValue;
@@ -7919,7 +7919,7 @@ const MgTooltip = class {
7919
7919
  */
7920
7920
  componentWillLoad() {
7921
7921
  // Get windows to attach events
7922
- this.windows = Ne(window);
7922
+ this.windows = _e(window);
7923
7923
  // Get tooltip element
7924
7924
  this.renderTooltipContent();
7925
7925
  this.mgTooltipContent = this.element.querySelector(`#${this.identifier}`);
@@ -7938,7 +7938,7 @@ const MgTooltip = class {
7938
7938
  // get slotted element wich is not the tooltip
7939
7939
  const slotElement = this.element.querySelector(`*:not(#${this.identifier})`);
7940
7940
  // Get interactive element
7941
- const interactiveElement = slotElement.matches(Be) ? slotElement : (_a = slotElement.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(Be);
7941
+ const interactiveElement = slotElement.matches(De) ? slotElement : (_a = slotElement.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(De);
7942
7942
  // define selected element to become tooltip selector
7943
7943
  this.tooltipedElement = interactiveElement || slotElement;
7944
7944
  // Check if slotted element is a disabled mg-button