@mgdis/mg-components 5.28.0 → 5.28.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/dist/cjs/{index-d8721674.js → index-792fd1c1.js} +48 -47
  2. package/dist/cjs/index-792fd1c1.js.map +1 -0
  3. package/dist/cjs/mg-action-more_36.cjs.entry.js +91 -91
  4. package/dist/cjs/mg-action-more_36.cjs.entry.js.map +1 -1
  5. package/dist/cjs/mg-loader.cjs.entry.js +2 -2
  6. package/dist/collection/components/atoms/mg-button/mg-button.js +2 -2
  7. package/dist/collection/components/atoms/mg-button/mg-button.js.map +1 -1
  8. package/dist/components/index.es.js +41 -40
  9. package/dist/components/index.es.js.map +1 -1
  10. package/dist/components/index2.js +2 -2
  11. package/dist/components/mg-action-more.js +2 -2
  12. package/dist/components/mg-badge2.js +3 -3
  13. package/dist/components/mg-button2.js +5 -5
  14. package/dist/components/mg-button2.js.map +1 -1
  15. package/dist/components/mg-card2.js +2 -2
  16. package/dist/components/mg-details.js +2 -2
  17. package/dist/components/mg-form.js +3 -3
  18. package/dist/components/mg-icon2.js +2 -2
  19. package/dist/components/mg-illustrated-message.js +2 -2
  20. package/dist/components/mg-input-checkbox.js +4 -4
  21. package/dist/components/mg-input-date.js +11 -11
  22. package/dist/components/mg-input-numeric.js +5 -5
  23. package/dist/components/mg-input-password.js +3 -3
  24. package/dist/components/mg-input-radio.js +4 -4
  25. package/dist/components/mg-input-select2.js +6 -6
  26. package/dist/components/mg-input-text2.js +6 -6
  27. package/dist/components/mg-input-textarea.js +6 -6
  28. package/dist/components/mg-input-title2.js +2 -2
  29. package/dist/components/mg-input-toggle.js +4 -4
  30. package/dist/components/mg-input2.js +3 -3
  31. package/dist/components/mg-item-more2.js +3 -3
  32. package/dist/components/mg-loader.js +2 -2
  33. package/dist/components/mg-menu-item2.js +5 -5
  34. package/dist/components/mg-message.js +3 -3
  35. package/dist/components/mg-modal.js +6 -6
  36. package/dist/components/mg-pagination2.js +2 -2
  37. package/dist/components/mg-panel.js +4 -4
  38. package/dist/components/mg-popover-content2.js +3 -3
  39. package/dist/components/mg-popover2.js +3 -3
  40. package/dist/components/mg-skip-links.js +2 -2
  41. package/dist/components/mg-tabs.js +6 -6
  42. package/dist/components/mg-tag.js +3 -3
  43. package/dist/components/mg-tooltip2.js +6 -6
  44. package/dist/esm/{index-817d7645.js → index-2667a5c4.js} +43 -42
  45. package/dist/esm/index-2667a5c4.js.map +1 -0
  46. package/dist/esm/mg-action-more_36.entry.js +91 -91
  47. package/dist/esm/mg-action-more_36.entry.js.map +1 -1
  48. package/dist/esm/mg-loader.entry.js +2 -2
  49. package/dist/mg-components/mg-components.esm.js +1 -1
  50. package/dist/mg-components/{p-ef541188.entry.js → p-56cce4ec.entry.js} +2 -2
  51. package/dist/mg-components/p-56cce4ec.entry.js.map +1 -0
  52. package/dist/mg-components/{p-c4207303.entry.js → p-64eaef9e.entry.js} +2 -2
  53. package/dist/mg-components/p-7cda52b6.js +2 -0
  54. package/dist/mg-components/p-7cda52b6.js.map +1 -0
  55. package/dist/types/components/atoms/mg-button/mg-button.d.ts +1 -1
  56. package/dist/types/components.d.ts +2 -2
  57. package/ide/intellij/web-types.json +4 -4
  58. package/ide/vscode/html-custom-data.json +3 -3
  59. package/package.json +26 -27
  60. package/dist/cjs/index-d8721674.js.map +0 -1
  61. package/dist/esm/index-817d7645.js.map +0 -1
  62. package/dist/mg-components/p-eb6ec303.js +0 -2
  63. package/dist/mg-components/p-eb6ec303.js.map +0 -1
  64. package/dist/mg-components/p-ef541188.entry.js.map +0 -1
  65. /package/dist/mg-components/{p-c4207303.entry.js.map → p-64eaef9e.entry.js.map} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-9ed65b6d.js';
2
- import { C as Ce, i as initLocales, H as He, I as Ie, G as Ge, B as Be, q as qe, h as he, y as ye, Z as Ze, Q as Qe, J as Je, Y as Ye, P as Pe, W as We, z as ze } from './index-817d7645.js';
2
+ import { z as ze, i as initLocales, I as Ie, Z as Ze, Y as Ye, X as Xe, J as Je, H as He, B as Be, l as lt, n as nt, a as it, b as at, G as Ge, K as Ke, Q as Qe } from './index-2667a5c4.js';
3
3
 
4
4
  /**
5
5
  * Available menu-item positions
@@ -75,7 +75,7 @@ const MgActionMore = class {
75
75
  ************/
76
76
  this.name = 'mg-action-more';
77
77
  this.classBase = 'mg-c-action-more';
78
- this.mgPopoverIdentifier = Ce(this.name);
78
+ this.mgPopoverIdentifier = ze(this.name);
79
79
  /************
80
80
  * Methods *
81
81
  ***********/
@@ -199,7 +199,7 @@ const MgBadge = class {
199
199
  this.label = undefined;
200
200
  this.variant = variants$5[0];
201
201
  this.outline = undefined;
202
- this.classCollection = new He(['mg-c-badge']);
202
+ this.classCollection = new Ie(['mg-c-badge']);
203
203
  }
204
204
  validateValue(newValue) {
205
205
  if (/^(\d+\+*|[?*!a-z])$/i.exec(`${newValue}`) === null) {
@@ -207,7 +207,7 @@ const MgBadge = class {
207
207
  }
208
208
  }
209
209
  validateLabel(newValue) {
210
- if (!Ie(newValue)) {
210
+ if (!Ze(newValue)) {
211
211
  throw new Error('<mg-badge> prop "label" is required.');
212
212
  }
213
213
  }
@@ -318,7 +318,7 @@ const MgButton = class {
318
318
  this.isIcon = false;
319
319
  this.disableOnClick = false;
320
320
  this.loading = false;
321
- this.classCollection = new He(['mg-c-button']);
321
+ this.classCollection = new Ie(['mg-c-button']);
322
322
  }
323
323
  validateVariant(newValue, oldValue) {
324
324
  if (!variants$4.includes(newValue)) {
@@ -377,7 +377,7 @@ const MgButton = class {
377
377
  this.validateFullWidth(this.fullWidth);
378
378
  if (this.isIcon) {
379
379
  this.classCollection.add(`mg-c-button--icon`);
380
- if (!Ie(this.label)) {
380
+ if (!Ze(this.label)) {
381
381
  throw new Error(`<mg-button> prop "label" is mandatory when prop "isIcon" is set to true.`);
382
382
  }
383
383
  }
@@ -389,7 +389,7 @@ const MgButton = class {
389
389
  * Add listners
390
390
  */
391
391
  componentDidLoad() {
392
- Ge(() => {
392
+ Ye(() => {
393
393
  var _a;
394
394
  const closestForm = this.element.closest('form') || ((_a = this.element.closest('mg-form')) === null || _a === void 0 ? void 0 : _a.shadowRoot.querySelector('form'));
395
395
  // submit buttons should trigger form submition;
@@ -406,7 +406,7 @@ const MgButton = class {
406
406
  */
407
407
  render() {
408
408
  var _a;
409
- return (h(Host, { key: '8aa45a51510eccbb021e452d540c77844f3f4792', role: "button", tabIndex: 0, type: this.type, form: this.form, "full-width": this.fullWidth, "aria-label": this.label, "aria-disabled": (_a = this.disabled) === null || _a === void 0 ? void 0 : _a.toString(), onClick: this.handleClick, onKeyup: this.handleKeyup, onKeydown: this.handleKeydown }, h("div", { key: '9743ead1b9fd1f70ef0690087806a1767c5825b0', class: this.classCollection.join(), id: this.identifier }, this.loading && h("mg-icon", { key: '543718fe45ad3e1901c4ef0c39b98705aa9fd64e', icon: "loader", spin: true }), h("div", { key: '21bc8c1a14f93db8b2373864a18da5c651e1ac4d', class: "mg-c-button__content" }, h("slot", { key: 'd16d710b4cb94ec1b7e3dfee2d4a70ee059528b4' })))));
409
+ return (h(Host, { key: '1b54d5a3ae7656215f0f60dcebf13caed4afe09e', role: "button", tabIndex: 0, type: this.type, form: this.form, "full-width": this.fullWidth, "aria-label": this.label, "aria-disabled": (_a = this.disabled) === null || _a === void 0 ? void 0 : _a.toString(), onClick: this.handleClick, onKeyup: this.handleKeyup, onKeydown: this.handleKeydown }, h("div", { key: 'ee66e5b1d78d7344634e736b39e29640de8c5755', class: this.classCollection.join(), id: this.identifier }, this.loading && h("mg-icon", { key: '6da3bfa9accafda3cf1d960d229bf3d75abc9250', icon: "loader", spin: true }), h("div", { key: '9ab6e8910210543fc7c0745d63f0e260003aa000', class: "mg-c-button__content" }, h("slot", { key: '44ba371bb96f86632f084610cdffb0b0fafa3980' })))));
410
410
  }
411
411
  get element() { return getElement(this); }
412
412
  static get watchers() { return {
@@ -448,7 +448,7 @@ const MgCard = class {
448
448
  };
449
449
  this.variant = undefined;
450
450
  this.variantStyle = undefined;
451
- this.classCollection = new He([this.classBase]);
451
+ this.classCollection = new Ie([this.classBase]);
452
452
  }
453
453
  validateVariant(newValue, oldValue) {
454
454
  if (newValue && !variants$3.includes(newValue))
@@ -553,7 +553,7 @@ const MgDetails = class {
553
553
  this.expanded = false;
554
554
  }
555
555
  validateTitles(newValue) {
556
- if (!Ie(newValue)) {
556
+ if (!Ze(newValue)) {
557
557
  throw new Error('<mg-details> prop "toggleClosed" and "toggleOpened" must be defined.');
558
558
  }
559
559
  }
@@ -711,7 +711,7 @@ const MgForm = class {
711
711
  }
712
712
  });
713
713
  };
714
- this.identifier = Ce('mg-form');
714
+ this.identifier = ze('mg-form');
715
715
  this.name = this.identifier;
716
716
  this.readonly = false;
717
717
  this.requiredMessage = undefined;
@@ -720,7 +720,7 @@ const MgForm = class {
720
720
  this.disabled = false;
721
721
  this.valid = undefined;
722
722
  this.invalid = undefined;
723
- this.classCollection = new He(['mg-c-form']);
723
+ this.classCollection = new Ie(['mg-c-form']);
724
724
  this.requiredMessageText = undefined;
725
725
  }
726
726
  validateRequiredMessage(newValue) {
@@ -861,7 +861,7 @@ const MgIcon = class {
861
861
  this.variant = undefined;
862
862
  this.variantStyle = undefined;
863
863
  this.spin = false;
864
- this.classCollection = new He(['mg-c-icon']);
864
+ this.classCollection = new Ie(['mg-c-icon']);
865
865
  }
866
866
  validateIcon(newValue, oldValue) {
867
867
  if (!Object.keys(icons).includes(newValue))
@@ -960,7 +960,7 @@ const MgIllustratedMessage = class {
960
960
  componentDidLoad() {
961
961
  const headingTags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
962
962
  const slottedIllustrations = this.element.querySelectorAll('[slot="illustration"]');
963
- if (!Be(this.element.querySelector('[slot="title"]'), headingTags)) {
963
+ if (!Xe(this.element.querySelector('[slot="title"]'), headingTags)) {
964
964
  throw new Error(`<mg-illustrated-message> Slotted title must be a heading: ${headingTags.join(', ')}`);
965
965
  }
966
966
  else if (slottedIllustrations.length !== 1) {
@@ -1061,7 +1061,7 @@ const MgInput = class {
1061
1061
  this.isVerticalList = false;
1062
1062
  }
1063
1063
  watchIdentifier(newValue) {
1064
- if (!Ie(newValue)) {
1064
+ if (!Ze(newValue)) {
1065
1065
  throw new Error('<mg-input> prop "identifier" is required.');
1066
1066
  }
1067
1067
  else {
@@ -1146,7 +1146,7 @@ const MgInput = class {
1146
1146
  */
1147
1147
  // eslint-disable-next-line @stencil-community/no-unused-watch
1148
1148
  watchLabel() {
1149
- if (!Ie(this.label)) {
1149
+ if (!Ze(this.label)) {
1150
1150
  throw new Error('<mg-input> prop "label" is required.');
1151
1151
  }
1152
1152
  else {
@@ -1460,7 +1460,7 @@ const MgInputCheckbox = class {
1460
1460
  * Method to update searchResults
1461
1461
  */
1462
1462
  this.updateSearchResults = () => {
1463
- this.searchResults = this.checkboxItems.filter(item => qe(item.title).includes(qe(this.searchValue)));
1463
+ this.searchResults = this.checkboxItems.filter(item => Je(item.title).includes(Je(this.searchValue)));
1464
1464
  };
1465
1465
  /**
1466
1466
  * Method to validate if one of inputs value is checked id required
@@ -1534,7 +1534,7 @@ const MgInputCheckbox = class {
1534
1534
  this.helpText = undefined;
1535
1535
  this.valid = undefined;
1536
1536
  this.invalid = undefined;
1537
- this.classCollection = new He([this.baseClassName, classFieldset]);
1537
+ this.classCollection = new Ie([this.baseClassName, classFieldset]);
1538
1538
  this.errorMessage = undefined;
1539
1539
  this.checkboxItems = [];
1540
1540
  this.displaySearchInput = undefined;
@@ -1642,7 +1642,7 @@ const MgInputCheckbox = class {
1642
1642
  if (typeof valid !== 'boolean') {
1643
1643
  throw new Error('<mg-input-checkbox> method "setError()" param "valid" must be a boolean');
1644
1644
  }
1645
- else if (!Ie(errorMessage)) {
1645
+ else if (!Ze(errorMessage)) {
1646
1646
  throw new Error('<mg-input-checkbox> method "setError()" param "errorMessage" must be a string');
1647
1647
  }
1648
1648
  else {
@@ -1905,7 +1905,7 @@ const MgInputDate = class {
1905
1905
  * @param value - value to test
1906
1906
  * @returns truthy when value match the pattern
1907
1907
  */
1908
- this.isValidPattern = (value) => Ie(value) && he.test(value);
1908
+ this.isValidPattern = (value) => Ze(value) && He.test(value);
1909
1909
  /**
1910
1910
  * Format help text to display
1911
1911
  * @param helpText - help text format
@@ -1913,10 +1913,10 @@ const MgInputDate = class {
1913
1913
  */
1914
1914
  this.formatHelpText = (helpText) => {
1915
1915
  const defaultHelpTextVariable = '{defaultHelpText}';
1916
- let text = Ie(helpText) ? helpText : this.messages.input.date.helpText;
1916
+ let text = Ze(helpText) ? helpText : this.messages.input.date.helpText;
1917
1917
  if (text.includes(defaultHelpTextVariable))
1918
1918
  text = text.replace(defaultHelpTextVariable, this.formatHelpText(this.messages.input.date.helpText));
1919
- return text.replace('{pattern}', this.renderPattern()).replace('{date}', ye(Ze(new Date('2023-12-24')), this.systemLocale));
1919
+ return text.replace('{pattern}', this.renderPattern()).replace('{date}', Be(lt(new Date('2023-12-24')), this.systemLocale));
1920
1920
  };
1921
1921
  /**
1922
1922
  * Handle input event
@@ -2008,8 +2008,8 @@ const MgInputDate = class {
2008
2008
  // min, max & minMax
2009
2009
  else if ([InputError$1.MIN, InputError$1.MAX, InputError$1.MINMAX].includes(inputError)) {
2010
2010
  this.errorMessage = this.messages.errors.date[inputError]
2011
- .replace('{min}', ye(this.min, this.systemLocale))
2012
- .replace('{max}', ye(this.max, this.systemLocale));
2011
+ .replace('{min}', Be(this.min, this.systemLocale))
2012
+ .replace('{max}', Be(this.max, this.systemLocale));
2013
2013
  }
2014
2014
  // wrong date format
2015
2015
  // element.validity.badInput is default error message
@@ -2023,7 +2023,7 @@ const MgInputDate = class {
2023
2023
  * @returns translated html pattern
2024
2024
  */
2025
2025
  this.renderPattern = () => {
2026
- let patternLocal = Qe(this.systemLocale);
2026
+ let patternLocal = nt(this.systemLocale);
2027
2027
  for (const key in this.messages.input.date.pattern) {
2028
2028
  patternLocal = patternLocal.replace(key, this.messages.input.date.pattern[key]);
2029
2029
  }
@@ -2045,7 +2045,7 @@ const MgInputDate = class {
2045
2045
  this.helpText = undefined;
2046
2046
  this.valid = undefined;
2047
2047
  this.invalid = undefined;
2048
- this.classCollection = new He(['mg-c-input--date']);
2048
+ this.classCollection = new Ie(['mg-c-input--date']);
2049
2049
  this.errorMessage = undefined;
2050
2050
  }
2051
2051
  validateValue(newValue) {
@@ -2053,7 +2053,7 @@ const MgInputDate = class {
2053
2053
  if (newValue === '')
2054
2054
  newValue = null;
2055
2055
  // check value validity
2056
- if (newValue && !Ie(newValue)) {
2056
+ if (newValue && !Ze(newValue)) {
2057
2057
  throw new Error("<mg-input-date> props 'value' must be a valid string");
2058
2058
  }
2059
2059
  else if (!newValue || (newValue && this.isValidPattern(newValue))) {
@@ -2110,7 +2110,7 @@ const MgInputDate = class {
2110
2110
  if (typeof valid !== 'boolean') {
2111
2111
  throw new Error('<mg-input-date> method "setError()" param "valid" must be a boolean');
2112
2112
  }
2113
- else if (!Ie(errorMessage)) {
2113
+ else if (!Ze(errorMessage)) {
2114
2114
  throw new Error('<mg-input-date> method "setError()" param "errorMessage" must be a string');
2115
2115
  }
2116
2116
  else {
@@ -2164,7 +2164,7 @@ const MgInputDate = class {
2164
2164
  * @returns HTML Element
2165
2165
  */
2166
2166
  render() {
2167
- return (h("mg-input", { key: 'f38d79cb71311149b4d15885b65cd8f025dde15d', label: this.label, identifier: this.identifier, class: this.classCollection.join(), ariaDescribedbyIDs: [], labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: this.required, readonlyValue: ye(this.value, this.locale), tooltip: this.tooltip, tooltipPosition: this.tooltipPosition, helpText: this.formatHelpText(this.helpText), errorMessage: this.errorMessage }, h("input", { key: '67bf6f0ad58ee1a506ffd0d3d41d5954db68465c', type: "date", class: "mg-c-input__box", min: this.min, max: this.max, value: this.value, id: this.identifier, name: this.name, disabled: this.disabled, required: this.required, "aria-invalid": (this.invalid === true).toString(), onInput: this.handleInput, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, ref: (el) => {
2167
+ return (h("mg-input", { key: 'f38d79cb71311149b4d15885b65cd8f025dde15d', label: this.label, identifier: this.identifier, class: this.classCollection.join(), ariaDescribedbyIDs: [], labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: this.required, readonlyValue: Be(this.value, this.locale), tooltip: this.tooltip, tooltipPosition: this.tooltipPosition, helpText: this.formatHelpText(this.helpText), errorMessage: this.errorMessage }, h("input", { key: '67bf6f0ad58ee1a506ffd0d3d41d5954db68465c', type: "date", class: "mg-c-input__box", min: this.min, max: this.max, value: this.value, id: this.identifier, name: this.name, disabled: this.disabled, required: this.required, "aria-invalid": (this.invalid === true).toString(), onInput: this.handleInput, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, ref: (el) => {
2168
2168
  if (el !== null)
2169
2169
  this.input = el;
2170
2170
  } })));
@@ -2295,9 +2295,9 @@ const MgInputNumeric = class {
2295
2295
  this.formatValue = (value) => {
2296
2296
  switch (this.format) {
2297
2297
  case 'number':
2298
- return Ye(value, this.locale, this.type === 'decimal' ? this.decimalLength : undefined);
2298
+ return at(value, this.locale, this.type === 'decimal' ? this.decimalLength : undefined);
2299
2299
  case 'currency':
2300
- return Je(value, this.locale, this.currency);
2300
+ return it(value, this.locale, this.currency);
2301
2301
  case 'none':
2302
2302
  return value.toString();
2303
2303
  }
@@ -2334,7 +2334,7 @@ const MgInputNumeric = class {
2334
2334
  this.decimalLength = 2;
2335
2335
  this.valid = undefined;
2336
2336
  this.invalid = undefined;
2337
- this.classCollection = new He(['mg-c-input--numeric']);
2337
+ this.classCollection = new Ie(['mg-c-input--numeric']);
2338
2338
  this.errorMessage = undefined;
2339
2339
  this.hasFocus = undefined;
2340
2340
  }
@@ -2430,7 +2430,7 @@ const MgInputNumeric = class {
2430
2430
  if (typeof valid !== 'boolean') {
2431
2431
  throw new Error('<mg-input-numeric> method "setError()" param "valid" must be a boolean');
2432
2432
  }
2433
- else if (!Ie(errorMessage)) {
2433
+ else if (!Ze(errorMessage)) {
2434
2434
  throw new Error('<mg-input-numeric> method "setError()" param "errorMessage" must be a string');
2435
2435
  }
2436
2436
  else {
@@ -2623,7 +2623,7 @@ const MgInputPassword = class {
2623
2623
  this.helpText = undefined;
2624
2624
  this.valid = undefined;
2625
2625
  this.invalid = undefined;
2626
- this.classCollection = new He(['mg-c-input--password']);
2626
+ this.classCollection = new Ie(['mg-c-input--password']);
2627
2627
  this.errorMessage = undefined;
2628
2628
  this.displayPassword = false;
2629
2629
  }
@@ -2681,7 +2681,7 @@ const MgInputPassword = class {
2681
2681
  if (typeof valid !== 'boolean') {
2682
2682
  throw new Error('<mg-input-password> method "setError()" param "valid" must be a boolean');
2683
2683
  }
2684
- else if (!Ie(errorMessage)) {
2684
+ else if (!Ze(errorMessage)) {
2685
2685
  throw new Error('<mg-input-password> method "setError()" param "errorMessage" must be a string');
2686
2686
  }
2687
2687
  else {
@@ -2828,7 +2828,7 @@ const MgInputRadio = class {
2828
2828
  this.helpText = undefined;
2829
2829
  this.valid = undefined;
2830
2830
  this.invalid = undefined;
2831
- this.classCollection = new He(['mg-c-input--radio', classFieldset]);
2831
+ this.classCollection = new Ie(['mg-c-input--radio', classFieldset]);
2832
2832
  this.errorMessage = undefined;
2833
2833
  this.options = undefined;
2834
2834
  }
@@ -2841,7 +2841,7 @@ const MgInputRadio = class {
2841
2841
  throw new Error('<mg-input-radio> prop "items" require at least 2 items.');
2842
2842
  }
2843
2843
  // String array
2844
- else if (Pe(newValue)) {
2844
+ else if (Ge(newValue)) {
2845
2845
  this.options = newValue.map(item => ({ title: item, value: item, disabled: this.disabled }));
2846
2846
  }
2847
2847
  // Object array
@@ -2900,7 +2900,7 @@ const MgInputRadio = class {
2900
2900
  if (typeof valid !== 'boolean') {
2901
2901
  throw new Error('<mg-input-radio> method "setError()" param "valid" must be a boolean');
2902
2902
  }
2903
- else if (!Ie(errorMessage)) {
2903
+ else if (!Ze(errorMessage)) {
2904
2904
  throw new Error('<mg-input-radio> method "setError()" param "errorMessage" must be a string');
2905
2905
  }
2906
2906
  else {
@@ -3047,7 +3047,7 @@ const MgInputSelect = class {
3047
3047
  if (this.input.value === '') {
3048
3048
  this.setValue(null);
3049
3049
  }
3050
- else if (Pe(this.items) && this.items.includes(this.input.value)) {
3050
+ else if (Ge(this.items) && this.items.includes(this.input.value)) {
3051
3051
  this.setValue(this.input.value);
3052
3052
  }
3053
3053
  else if (allItemsAreOptions(this.items) && typeof this.input.value === 'string' && this.items.some(this.isInputValue)) {
@@ -3121,7 +3121,7 @@ const MgInputSelect = class {
3121
3121
  this.helpText = undefined;
3122
3122
  this.valid = undefined;
3123
3123
  this.invalid = undefined;
3124
- this.classCollection = new He(['mg-c-input--select']);
3124
+ this.classCollection = new Ie(['mg-c-input--select']);
3125
3125
  this.errorMessage = undefined;
3126
3126
  this.options = undefined;
3127
3127
  this.valueExist = undefined;
@@ -3129,7 +3129,7 @@ const MgInputSelect = class {
3129
3129
  }
3130
3130
  validateValue(newValue) {
3131
3131
  var _a, _b;
3132
- if (Pe(this.items) && typeof newValue === 'string') {
3132
+ if (Ge(this.items) && typeof newValue === 'string') {
3133
3133
  this.readonlyValue = ((_a = this.input) === null || _a === void 0 ? void 0 : _a.value) ? this.input.value : newValue;
3134
3134
  }
3135
3135
  else if (allItemsAreOptions(this.items)) {
@@ -3146,7 +3146,7 @@ const MgInputSelect = class {
3146
3146
  this.options = [];
3147
3147
  }
3148
3148
  // String array
3149
- else if (Pe(newValue)) {
3149
+ else if (Ge(newValue)) {
3150
3150
  if (typeof this.value === 'string')
3151
3151
  this.valueExist = newValue.includes(this.value);
3152
3152
  this.options = newValue.map(item => ({ title: item, value: item }));
@@ -3218,7 +3218,7 @@ const MgInputSelect = class {
3218
3218
  if (typeof valid !== 'boolean') {
3219
3219
  throw new Error('<mg-input-select> method "setError()" param "valid" must be a boolean');
3220
3220
  }
3221
- else if (!Ie(errorMessage)) {
3221
+ else if (!Ze(errorMessage)) {
3222
3222
  throw new Error('<mg-input-select> method "setError()" param "errorMessage" must be a string');
3223
3223
  }
3224
3224
  else {
@@ -3330,7 +3330,7 @@ const MgInputText = class {
3330
3330
  */
3331
3331
  this.handleFocus = () => {
3332
3332
  this.classCollection.add(this.classFocus);
3333
- this.classCollection = new He(this.classCollection.classes);
3333
+ this.classCollection = new Ie(this.classCollection.classes);
3334
3334
  };
3335
3335
  /**
3336
3336
  * Handle blur event
@@ -3338,7 +3338,7 @@ const MgInputText = class {
3338
3338
  this.handleBlur = () => {
3339
3339
  // Manage focus
3340
3340
  this.classCollection.delete(this.classFocus);
3341
- this.classCollection = new He(this.classCollection.classes);
3341
+ this.classCollection = new Ie(this.classCollection.classes);
3342
3342
  // Display Error
3343
3343
  this.handlerInProgress = Handler.BLUR;
3344
3344
  this.displayError().finally(() => {
@@ -3413,7 +3413,7 @@ const MgInputText = class {
3413
3413
  this.helpText = undefined;
3414
3414
  this.valid = undefined;
3415
3415
  this.invalid = undefined;
3416
- this.classCollection = new He(['mg-c-input--text']);
3416
+ this.classCollection = new Ie(['mg-c-input--text']);
3417
3417
  this.errorMessage = undefined;
3418
3418
  }
3419
3419
  handleValue(newValue) {
@@ -3464,7 +3464,7 @@ const MgInputText = class {
3464
3464
  this.classCollection.add(`mg-c-input--width-${this.mgWidth}`);
3465
3465
  }
3466
3466
  validatePattern(newValue) {
3467
- if (newValue !== undefined && !(Ie(this.pattern) && Ie(this.patternErrorMessage))) {
3467
+ if (newValue !== undefined && !(Ze(this.pattern) && Ze(this.patternErrorMessage))) {
3468
3468
  throw new Error('<mg-input-text> props "pattern" and "patternErrorMessage" must be non-empty string and paired.');
3469
3469
  }
3470
3470
  }
@@ -3494,7 +3494,7 @@ const MgInputText = class {
3494
3494
  if (typeof valid !== 'boolean') {
3495
3495
  throw new Error('<mg-input-text> method "setError()" param "valid" must be a boolean');
3496
3496
  }
3497
- else if (!Ie(errorMessage)) {
3497
+ else if (!Ze(errorMessage)) {
3498
3498
  throw new Error('<mg-input-text> method "setError()" param "errorMessage" must be a string');
3499
3499
  }
3500
3500
  else {
@@ -3603,7 +3603,7 @@ const MgInputTextarea = class {
3603
3603
  */
3604
3604
  this.handleFocus = () => {
3605
3605
  this.classCollection.add(this.classFocus);
3606
- this.classCollection = new He(this.classCollection.classes);
3606
+ this.classCollection = new Ie(this.classCollection.classes);
3607
3607
  };
3608
3608
  /**
3609
3609
  * Handle blur event
@@ -3611,7 +3611,7 @@ const MgInputTextarea = class {
3611
3611
  this.handleBlur = () => {
3612
3612
  // Manage focus
3613
3613
  this.classCollection.delete(this.classFocus);
3614
- this.classCollection = new He(this.classCollection.classes);
3614
+ this.classCollection = new Ie(this.classCollection.classes);
3615
3615
  // Display Error
3616
3616
  this.handlerInProgress = Handler.BLUR;
3617
3617
  this.displayError().finally(() => {
@@ -3674,7 +3674,7 @@ const MgInputTextarea = class {
3674
3674
  this.valid = undefined;
3675
3675
  this.invalid = undefined;
3676
3676
  this.resizable = 'none';
3677
- this.classCollection = new He(['mg-c-input--textarea']);
3677
+ this.classCollection = new Ie(['mg-c-input--textarea']);
3678
3678
  this.errorMessage = undefined;
3679
3679
  }
3680
3680
  handleValue(newValue) {
@@ -3713,7 +3713,7 @@ const MgInputTextarea = class {
3713
3713
  this.classCollection.add(`mg-c-input--width-${this.mgWidth}`);
3714
3714
  }
3715
3715
  validatePattern(newValue) {
3716
- if (newValue !== undefined && !(Ie(this.pattern) && Ie(this.patternErrorMessage))) {
3716
+ if (newValue !== undefined && !(Ze(this.pattern) && Ze(this.patternErrorMessage))) {
3717
3717
  throw new Error('<mg-input-textarea> props "pattern" and "patternErrorMessage" must be non-empty string and paired.');
3718
3718
  }
3719
3719
  }
@@ -3745,7 +3745,7 @@ const MgInputTextarea = class {
3745
3745
  if (typeof valid !== 'boolean') {
3746
3746
  throw new Error('<mg-input-textarea> method "setError()" param "valid" must be a boolean');
3747
3747
  }
3748
- else if (!Ie(errorMessage)) {
3748
+ else if (!Ze(errorMessage)) {
3749
3749
  throw new Error('<mg-input-textarea> method "setError()" param "errorMessage" must be a string');
3750
3750
  }
3751
3751
  else {
@@ -3834,7 +3834,7 @@ const MgInputTitle = class {
3834
3834
  this.tagName = 'label';
3835
3835
  }
3836
3836
  validateIdentifier(newValue) {
3837
- if (!Ie(newValue)) {
3837
+ if (!Ze(newValue)) {
3838
3838
  throw new Error('<mg-input-title> prop "identifier" is required.');
3839
3839
  }
3840
3840
  }
@@ -3948,7 +3948,7 @@ const MgInputToggle = class {
3948
3948
  this.tooltip = undefined;
3949
3949
  this.tooltipPosition = 'input';
3950
3950
  this.helpText = undefined;
3951
- this.classCollection = new He(['mg-c-input--toggle']);
3951
+ this.classCollection = new Ie(['mg-c-input--toggle']);
3952
3952
  this.options = undefined;
3953
3953
  this.errorMessage = undefined;
3954
3954
  this.valid = undefined;
@@ -3965,7 +3965,7 @@ const MgInputToggle = class {
3965
3965
  throw new Error('<mg-input-toggle> prop "items" require 2 items.');
3966
3966
  }
3967
3967
  // String array
3968
- else if (Pe(newValue)) {
3968
+ else if (Ge(newValue)) {
3969
3969
  this.options = newValue.map(item => ({ title: item, value: item }));
3970
3970
  }
3971
3971
  // Object array
@@ -4021,7 +4021,7 @@ const MgInputToggle = class {
4021
4021
  if (typeof valid !== 'boolean') {
4022
4022
  throw new Error('<mg-input-toggle> method "setError()" param "valid" must be a boolean');
4023
4023
  }
4024
- else if (!Ie(errorMessage)) {
4024
+ else if (!Ze(errorMessage)) {
4025
4025
  throw new Error('<mg-input-toggle> method "setError()" param "errorMessage" must be a string');
4026
4026
  }
4027
4027
  else {
@@ -4252,7 +4252,7 @@ const MgItemMore = class {
4252
4252
  if (!proxy)
4253
4253
  return;
4254
4254
  // remove proxy id to prevent duplicate key. default html id is: '';
4255
- if (Ie(proxy.id))
4255
+ if (Ze(proxy.id))
4256
4256
  proxy.id = '';
4257
4257
  const proxyClickHandler = () => {
4258
4258
  this.parentMenu
@@ -4296,7 +4296,7 @@ const MgItemMore = class {
4296
4296
  // create item-more menu items element from main menu-items clones
4297
4297
  this.moreElementMenuItem.querySelector('mg-menu').appendChild(child.cloneNode(true));
4298
4298
  // we need to get all `mg-menu-item` linked to the cloned one to set mirror process
4299
- Ge(() => {
4299
+ Ye(() => {
4300
4300
  if (child.querySelector('mg-menu')) {
4301
4301
  child.querySelectorAll('mg-menu-item').forEach(this.setProxyElement);
4302
4302
  }
@@ -4622,7 +4622,7 @@ const MgMenuItem = class {
4622
4622
  throw new Error(`<${this.name}> slot "label" is required.`);
4623
4623
  ['label', 'metadata'].forEach(slot => {
4624
4624
  Array.from(this.element.querySelectorAll(`[slot="${slot}"]`)).forEach(element => {
4625
- if (!Ie(element.textContent))
4625
+ if (!Ze(element.textContent))
4626
4626
  throw new Error(`<${this.name}> slot "${slot}" must have text content.`);
4627
4627
  if ((guard && element.getAttribute('title') === null) || !guard)
4628
4628
  element.setAttribute('title', element.textContent);
@@ -4691,13 +4691,13 @@ const MgMenuItem = class {
4691
4691
  * @returns HTML Element
4692
4692
  */
4693
4693
  this.renderSlot = () => h("slot", null);
4694
- this.identifier = Ce('mg-menu-item');
4694
+ this.identifier = ze('mg-menu-item');
4695
4695
  this.href = undefined;
4696
4696
  this.target = undefined;
4697
4697
  this.status = Status$1.VISIBLE;
4698
4698
  this.expanded = false;
4699
4699
  this.size = 'regular';
4700
- this.navigationButtonClassList = new He([this.navigationButton]);
4700
+ this.navigationButtonClassList = new Ie([this.navigationButton]);
4701
4701
  this.direction = undefined;
4702
4702
  this.isInMainMenu = undefined;
4703
4703
  this.isItemMore = undefined;
@@ -4844,7 +4844,7 @@ const MgMenuItem = class {
4844
4844
  * Emit event when component is updated
4845
4845
  */
4846
4846
  componentShouldUpdate() {
4847
- return Ge(() => {
4847
+ return Ye(() => {
4848
4848
  this.itemUpdated.emit();
4849
4849
  });
4850
4850
  }
@@ -4951,13 +4951,13 @@ const MgMessage = class {
4951
4951
  return 'exclamation-circle';
4952
4952
  }
4953
4953
  };
4954
- this.identifier = Ce('mg-message');
4954
+ this.identifier = ze('mg-message');
4955
4955
  this.delay = undefined;
4956
4956
  this.variant = variants$1[0];
4957
4957
  this.closeButton = false;
4958
4958
  this.hide = false;
4959
4959
  this.noAriaRole = undefined;
4960
- this.classCollection = new He(['mg-c-message']);
4960
+ this.classCollection = new Ie(['mg-c-message']);
4961
4961
  this.hasActions = false;
4962
4962
  }
4963
4963
  validateDelay(newValue) {
@@ -5100,12 +5100,12 @@ const MgModal = class {
5100
5100
  */
5101
5101
  this.setFocus = () => {
5102
5102
  // Get all focusable elements
5103
- const slottedFocusableElements = Array.from(this.element.querySelectorAll(We));
5103
+ const slottedFocusableElements = Array.from(this.element.querySelectorAll(Ke));
5104
5104
  // If close button is enabled or at least one of the slotted element is focusable
5105
5105
  if (this.closeButton || slottedFocusableElements.length > 0) {
5106
5106
  // Check if slotted focusable elements have shadowDom with focusable elements
5107
5107
  this.modalFocusableElements = slottedFocusableElements.reduce((acc, focusableElement) => {
5108
- acc.push(focusableElement.shadowRoot !== null ? focusableElement.shadowRoot.querySelector(We) || focusableElement : focusableElement);
5108
+ acc.push(focusableElement.shadowRoot !== null ? focusableElement.shadowRoot.querySelector(Ke) || focusableElement : focusableElement);
5109
5109
  return acc;
5110
5110
  }, []);
5111
5111
  // When close button is enabled it's the first focusable element.
@@ -5127,21 +5127,21 @@ const MgModal = class {
5127
5127
  this.handleClose = () => {
5128
5128
  this.hide = true;
5129
5129
  };
5130
- this.identifier = Ce('mg-modal');
5130
+ this.identifier = ze('mg-modal');
5131
5131
  this.dialogRole = dialogRoles[0];
5132
5132
  this.modalTitle = undefined;
5133
5133
  this.closeButton = false;
5134
5134
  this.hide = undefined;
5135
5135
  this.hasActions = false;
5136
5136
  this.hasContent = false;
5137
- this.classCollection = new He(['mg-c-modal']);
5137
+ this.classCollection = new Ie(['mg-c-modal']);
5138
5138
  }
5139
5139
  validateDialogRole(newValue) {
5140
5140
  if (!dialogRoles.includes(newValue))
5141
5141
  throw new Error(`<mg-modal> prop "dialogRole" must be one of: ${dialogRoles.join(', ')}.`);
5142
5142
  }
5143
5143
  validateModalTitle(newValue) {
5144
- if (!Ie(newValue)) {
5144
+ if (!Ze(newValue)) {
5145
5145
  throw new Error('<mg-modal> prop "modalTitle" is required.');
5146
5146
  }
5147
5147
  }
@@ -5288,7 +5288,7 @@ const MgPagination = class {
5288
5288
  this.handleGoToPage = (action, disabled) => {
5289
5289
  !disabled && this.goToPage(action === NavigationAction.NEXT ? this.currentPage + 1 : this.currentPage - 1);
5290
5290
  };
5291
- this.identifier = Ce('mg-pagination');
5291
+ this.identifier = ze('mg-pagination');
5292
5292
  this.label = undefined;
5293
5293
  this.hideNavigationLabels = undefined;
5294
5294
  this.hidePageCount = undefined;
@@ -5453,7 +5453,7 @@ const MgPanel = class {
5453
5453
  ];
5454
5454
  return this.titlePosition === 'right' ? children.reverse() : children;
5455
5455
  };
5456
- this.identifier = Ce('mg-panel');
5456
+ this.identifier = ze('mg-panel');
5457
5457
  this.panelTitle = undefined;
5458
5458
  this.titlePattern = undefined;
5459
5459
  this.titlePatternErrorMessage = undefined;
@@ -5462,12 +5462,12 @@ const MgPanel = class {
5462
5462
  this.expanded = false;
5463
5463
  this.expandToggleDisplay = expandToggleDisplays[0];
5464
5464
  this.expandToggleDisabled = undefined;
5465
- this.classCollection = new He(['mg-c-panel']);
5465
+ this.classCollection = new Ie(['mg-c-panel']);
5466
5466
  this.isEditing = false;
5467
5467
  this.updatedPanelTitle = undefined;
5468
5468
  }
5469
5469
  validatePanelTitle(newValue) {
5470
- if (!Ie(newValue))
5470
+ if (!Ze(newValue))
5471
5471
  throw new Error('<mg-panel> prop "panelTitle" is required.');
5472
5472
  this.titleChange.emit(newValue);
5473
5473
  }
@@ -7418,7 +7418,7 @@ const MgPopover = class {
7418
7418
  mgPopoverContent.setAttribute('id', this.identifier);
7419
7419
  }
7420
7420
  };
7421
- this.identifier = Ce('mg-popover');
7421
+ this.identifier = ze('mg-popover');
7422
7422
  this.placement = 'bottom';
7423
7423
  this.arrowHide = false;
7424
7424
  this.closeButton = false;
@@ -7461,7 +7461,7 @@ const MgPopover = class {
7461
7461
  */
7462
7462
  componentWillLoad() {
7463
7463
  // Get windows to attach events
7464
- this.windows = ze(window);
7464
+ this.windows = Qe(window);
7465
7465
  // render mg-popover-content slot
7466
7466
  this.renderPopoverContent();
7467
7467
  this.validateCloseButton(this.closeButton);
@@ -7553,7 +7553,7 @@ const MgPopoverContent = class {
7553
7553
  this.hideContent.emit();
7554
7554
  };
7555
7555
  this.closeButton = false;
7556
- this.classCollection = new He(['mg-c-popover-content']);
7556
+ this.classCollection = new Ie(['mg-c-popover-content']);
7557
7557
  }
7558
7558
  /*************
7559
7559
  * Lifecycle *
@@ -7571,7 +7571,7 @@ const MgPopoverContent = class {
7571
7571
  componentDidLoad() {
7572
7572
  const headingTags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
7573
7573
  const slottedTitleElement = this.element.querySelector('[slot="title"]');
7574
- if (slottedTitleElement && !Be(slottedTitleElement, headingTags)) {
7574
+ if (slottedTitleElement && !Xe(slottedTitleElement, headingTags)) {
7575
7575
  throw new Error(`<mg-popover> Slotted title must be a heading: ${headingTags.join(', ')}`);
7576
7576
  }
7577
7577
  }
@@ -7607,7 +7607,7 @@ const MgSkipLinks = class {
7607
7607
  this.links = undefined;
7608
7608
  }
7609
7609
  validateLinks(links) {
7610
- if (links === undefined || links.length === 0 || links.some(link => !Ie(link.href) || !link.href.startsWith('#') || !Ie(link.label))) {
7610
+ if (links === undefined || links.length === 0 || links.some(link => !Ze(link.href) || !link.href.startsWith('#') || !Ze(link.label))) {
7611
7611
  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.`);
7612
7612
  }
7613
7613
  }
@@ -7759,7 +7759,7 @@ const MgTabs = class {
7759
7759
  */
7760
7760
  this.resetFocus = () => {
7761
7761
  // update asynchronously tabindex to prevent get focus on new tabindex at then end of event process
7762
- Ge(() => {
7762
+ Ye(() => {
7763
7763
  this.tabFocus = undefined;
7764
7764
  Array.from(this.element.shadowRoot.querySelectorAll('[data-index]')).forEach((tab, index) => {
7765
7765
  tab.setAttribute('tabindex', this.activeTab - this.startIndex !== index ? '-1' : '0');
@@ -7774,16 +7774,16 @@ const MgTabs = class {
7774
7774
  if (slots.length !== this.tabs.length)
7775
7775
  throw new Error('<mg-tabs> Must have slots counts equal to tabs count.');
7776
7776
  };
7777
- this.identifier = Ce('mg-tabs');
7777
+ this.identifier = ze('mg-tabs');
7778
7778
  this.label = undefined;
7779
7779
  this.size = 'regular';
7780
7780
  this.items = undefined;
7781
7781
  this.activeTab = undefined;
7782
7782
  this.tabs = [];
7783
- this.classCollection = new He(['mg-c-tabs']);
7783
+ this.classCollection = new Ie(['mg-c-tabs']);
7784
7784
  }
7785
7785
  validateLabel(newValue) {
7786
- if (!Ie(newValue)) {
7786
+ if (!Ze(newValue)) {
7787
7787
  throw new Error('<mg-tabs> prop "label" is required.');
7788
7788
  }
7789
7789
  }
@@ -7795,7 +7795,7 @@ const MgTabs = class {
7795
7795
  }
7796
7796
  validateItems(newValue) {
7797
7797
  // String array
7798
- if (Pe(newValue))
7798
+ if (Ge(newValue))
7799
7799
  this.tabs = newValue.map(item => ({ label: item, status: Status.VISIBLE }));
7800
7800
  // Object array
7801
7801
  else if (Array.isArray(newValue) && newValue.length > 0 && newValue.every(isTabItem))
@@ -7895,7 +7895,7 @@ const MgTag = class {
7895
7895
  this.variant = variants[0];
7896
7896
  this.outline = undefined;
7897
7897
  this.soft = undefined;
7898
- this.classCollection = new He(['mg-c-tag']);
7898
+ this.classCollection = new Ie(['mg-c-tag']);
7899
7899
  }
7900
7900
  validateVariant(newValue, oldValue) {
7901
7901
  if (!variants.includes(newValue)) {
@@ -7932,7 +7932,7 @@ const MgTag = class {
7932
7932
  * @param textContent - html element textContent property
7933
7933
  */
7934
7934
  validateTextContent(textContent) {
7935
- if (!Ie(textContent))
7935
+ if (!Ze(textContent))
7936
7936
  throw new Error('<mg-tag> slot must contain a text content.');
7937
7937
  }
7938
7938
  /*************
@@ -7992,7 +7992,7 @@ const MgTooltip = class {
7992
7992
  // Enable the event listeners
7993
7993
  this.popper.setOptions(options => (Object.assign(Object.assign({}, options), { modifiers: [...options.modifiers, { name: 'eventListeners', enabled: true }] })));
7994
7994
  // hide when click outside on nextTick to prevent event to trigger after creation
7995
- Ge(() => {
7995
+ Ye(() => {
7996
7996
  this.windows.forEach((localWindow) => {
7997
7997
  localWindow.addEventListener('click', this.handleClickOutside, false);
7998
7998
  localWindow.addEventListener('keydown', this.handlePressEscape, false);
@@ -8182,7 +8182,7 @@ const MgTooltip = class {
8182
8182
  element.setAttribute('aria-describedby', `${[...new Set([...ariaDescribedby.split(' '), this.identifier])].join(' ')}`);
8183
8183
  }
8184
8184
  };
8185
- this.identifier = Ce('mg-tooltip');
8185
+ this.identifier = ze('mg-tooltip');
8186
8186
  this.message = undefined;
8187
8187
  this.placement = 'bottom';
8188
8188
  this.display = false;
@@ -8193,7 +8193,7 @@ const MgTooltip = class {
8193
8193
  this.renderTooltipContent();
8194
8194
  }
8195
8195
  watchMessage(newValue) {
8196
- if (!Ie(newValue)) {
8196
+ if (!Ze(newValue)) {
8197
8197
  throw new Error('<mg-tooltip> prop "message" is required.');
8198
8198
  }
8199
8199
  this.mgTooltipContent.message = newValue;
@@ -8248,7 +8248,7 @@ const MgTooltip = class {
8248
8248
  */
8249
8249
  componentWillLoad() {
8250
8250
  // Get windows to attach events
8251
- this.windows = ze(window);
8251
+ this.windows = Qe(window);
8252
8252
  // Get tooltip element
8253
8253
  this.renderTooltipContent();
8254
8254
  //validate properties
@@ -8266,7 +8266,7 @@ const MgTooltip = class {
8266
8266
  // get slotted element wich is not the tooltip
8267
8267
  const slotElement = this.element.querySelector(`*:not(#${this.identifier})`);
8268
8268
  // Get interactive element
8269
- const interactiveElement = slotElement.matches(We) ? slotElement : (_a = slotElement.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(We);
8269
+ const interactiveElement = slotElement.matches(Ke) ? slotElement : (_a = slotElement.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(Ke);
8270
8270
  this.setTooltipedElement(interactiveElement || slotElement);
8271
8271
  // Check if slotted element is a disabled mg-button
8272
8272
  // In this case we wrap the mg-button into a div to enable the tooltip