@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,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
- import { Z as Zt, H as Ht, q as qe, D as Dt, X as Xt, Q as Qt } from './index.es.js';
2
+ import { D as Dt, a as qt, q as qe, B as Bt, Y as Yt, e as er } from './index.es.js';
3
3
  import { i as initLocales } from './index2.js';
4
4
  import { d as defineCustomElement$6 } from './mg-badge2.js';
5
5
  import { d as defineCustomElement$5 } from './mg-button2.js';
@@ -54,7 +54,7 @@ const MgMenuItem = /*@__PURE__*/ proxyCustomElement(class MgMenuItem extends HTM
54
54
  /**
55
55
  * Identifier is used to control mg-popover
56
56
  */
57
- this.identifier = Zt('mg-menu-item');
57
+ this.identifier = Dt('mg-menu-item');
58
58
  /**
59
59
  * Define menu-item status.
60
60
  */
@@ -73,7 +73,7 @@ const MgMenuItem = /*@__PURE__*/ proxyCustomElement(class MgMenuItem extends HTM
73
73
  /**
74
74
  * Component button classes
75
75
  */
76
- this.navigationButtonClassList = new Ht([this.navigationButton]);
76
+ this.navigationButtonClassList = new qt([this.navigationButton]);
77
77
  /**
78
78
  * Does component have children.
79
79
  */
@@ -232,8 +232,8 @@ const MgMenuItem = /*@__PURE__*/ proxyCustomElement(class MgMenuItem extends HTM
232
232
  this.renderSlot = () => h("slot", null);
233
233
  }
234
234
  watchIdentifier(newValue) {
235
- if (!Dt(newValue)) {
236
- console.error(`<mg-menu-item> prop "identifier" value is invalid. Passed value: ${Xt(newValue)}.`);
235
+ if (!Bt(newValue)) {
236
+ console.error(`<mg-menu-item> prop "identifier" value is invalid. Passed value: ${Yt(newValue)}.`);
237
237
  }
238
238
  else {
239
239
  this.popoverIdentifier = `${this.identifier}-popover`;
@@ -241,7 +241,7 @@ const MgMenuItem = /*@__PURE__*/ proxyCustomElement(class MgMenuItem extends HTM
241
241
  }
242
242
  watchTarget(newValue) {
243
243
  if (newValue && !targets.includes(newValue)) {
244
- throw new Error(`<mg-link> prop "target" must be one of: ${targets.join(', ')}. Passed value: ${Xt(newValue)}.`);
244
+ throw new Error(`<mg-link> prop "target" must be one of: ${targets.join(', ')}. Passed value: ${Yt(newValue)}.`);
245
245
  }
246
246
  }
247
247
  watchStatus(newValue, oldValue) {
@@ -251,7 +251,7 @@ const MgMenuItem = /*@__PURE__*/ proxyCustomElement(class MgMenuItem extends HTM
251
251
  }
252
252
  watchExpanded(newValue) {
253
253
  if (typeof newValue !== 'boolean') {
254
- throw new Error(`<${this.name}> prop "expanded" must be a boolean. Passed value: ${Xt(newValue)}.`);
254
+ throw new Error(`<${this.name}> prop "expanded" must be a boolean. Passed value: ${Yt(newValue)}.`);
255
255
  }
256
256
  else {
257
257
  this.updateExpanded(newValue);
@@ -366,7 +366,7 @@ const MgMenuItem = /*@__PURE__*/ proxyCustomElement(class MgMenuItem extends HTM
366
366
  * @returns promise process wich emit the 'item-updated' event
367
367
  */
368
368
  componentShouldUpdate() {
369
- return Qt(() => {
369
+ return er(() => {
370
370
  this.itemUpdated.emit();
371
371
  });
372
372
  }
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
- import { H as Ht, X as Xt } from './index.es.js';
2
+ import { a as qt, Y as Yt } from './index.es.js';
3
3
  import { d as defineCustomElement$2 } from './mg-card2.js';
4
4
  import { d as defineCustomElement$1 } from './mg-icon2.js';
5
5
 
@@ -34,7 +34,7 @@ const MgMessage = /*@__PURE__*/ proxyCustomElement(class MgMessage extends HTMLE
34
34
  /**
35
35
  * Component classes
36
36
  */
37
- this.classCollection = new Ht(['mg-c-message']);
37
+ this.classCollection = new qt(['mg-c-message']);
38
38
  /**
39
39
  * Define if component is using actions slot
40
40
  */
@@ -58,7 +58,7 @@ const MgMessage = /*@__PURE__*/ proxyCustomElement(class MgMessage extends HTMLE
58
58
  }
59
59
  watchVariant(newValue, oldValue) {
60
60
  if (!variants.includes(newValue)) {
61
- throw new Error(`<mg-message> prop "variant" must be one of: ${variants.join(', ')}. Passed value: ${Xt(newValue)}.`);
61
+ throw new Error(`<mg-message> prop "variant" must be one of: ${variants.join(', ')}. Passed value: ${Yt(newValue)}.`);
62
62
  }
63
63
  else {
64
64
  if (newValue !== undefined)
@@ -69,7 +69,7 @@ const MgMessage = /*@__PURE__*/ proxyCustomElement(class MgMessage extends HTMLE
69
69
  }
70
70
  watchVariantStyle(newValue, oldValue) {
71
71
  if (!variantStyles.includes(newValue)) {
72
- throw new Error(`<mg-message> prop "variantStyle" must be one of: ${variantStyles.join(', ')}. Passed value: ${Xt(newValue)}.`);
72
+ throw new Error(`<mg-message> prop "variantStyle" must be one of: ${variantStyles.join(', ')}. Passed value: ${Yt(newValue)}.`);
73
73
  }
74
74
  else {
75
75
  if (newValue !== undefined)
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
- import { Z as Zt, H as Ht, D as Dt, X as Xt, q as qe } from './index.es.js';
2
+ import { D as Dt, a as qt, B as Bt, Y as Yt, q as qe } from './index.es.js';
3
3
  import { i as initLocales } from './index2.js';
4
4
  import { d as defineCustomElement$4 } from './mg-button2.js';
5
5
  import { d as defineCustomElement$3 } from './mg-card2.js';
@@ -26,7 +26,7 @@ const MgModal$1 = /*@__PURE__*/ proxyCustomElement(class MgModal extends HTMLEle
26
26
  * Identifier is used for the element ID (id is a reserved prop in Stencil.js)
27
27
  * If not set, it will be created.
28
28
  */
29
- this.identifier = Zt('mg-modal');
29
+ this.identifier = Dt('mg-modal');
30
30
  /**
31
31
  * Modal dialog role.
32
32
  */
@@ -46,7 +46,7 @@ const MgModal$1 = /*@__PURE__*/ proxyCustomElement(class MgModal extends HTMLEle
46
46
  /**
47
47
  * Component classes
48
48
  */
49
- this.classCollection = new Ht(['mg-c-modal']);
49
+ this.classCollection = new qt(['mg-c-modal']);
50
50
  /***********
51
51
  * Handles *
52
52
  ***********/
@@ -59,17 +59,17 @@ const MgModal$1 = /*@__PURE__*/ proxyCustomElement(class MgModal extends HTMLEle
59
59
  };
60
60
  }
61
61
  watchIdentifier(newValue) {
62
- if (!Dt(newValue)) {
63
- throw new Error(`<mg-modal> prop "identifier" value is invalid. Passed value: ${Xt(newValue)}.`);
62
+ if (!Bt(newValue)) {
63
+ throw new Error(`<mg-modal> prop "identifier" value is invalid. Passed value: ${Yt(newValue)}.`);
64
64
  }
65
65
  }
66
66
  validateDialogRole(newValue) {
67
67
  if (!dialogRoles.includes(newValue))
68
- throw new Error(`<mg-modal> prop "dialogRole" must be one of: ${dialogRoles.join(', ')}. Passed value: ${Xt(newValue)}.`);
68
+ throw new Error(`<mg-modal> prop "dialogRole" must be one of: ${dialogRoles.join(', ')}. Passed value: ${Yt(newValue)}.`);
69
69
  }
70
70
  validateModalTitle(newValue) {
71
71
  if (!qe(newValue)) {
72
- throw new Error(`<mg-modal> prop "modalTitle" is required. Passed value: ${Xt(newValue)}.`);
72
+ throw new Error(`<mg-modal> prop "modalTitle" is required. Passed value: ${Yt(newValue)}.`);
73
73
  }
74
74
  }
75
75
  watchOpen(newValue) {
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
- import { Z as Zt, D as Dt, X as Xt } from './index.es.js';
2
+ import { D as Dt, B as Bt, Y as Yt } from './index.es.js';
3
3
  import { i as initLocales } from './index2.js';
4
4
  import { d as defineCustomElement$7 } from './mg-button2.js';
5
5
  import { d as defineCustomElement$6 } from './mg-icon2.js';
@@ -48,7 +48,7 @@ const MgPagination = /*@__PURE__*/ proxyCustomElement(class MgPagination extends
48
48
  * Identifier is used for the element ID (id is a reserved prop in Stencil.js)
49
49
  * If not set, it will be created.
50
50
  */
51
- this.identifier = Zt('mg-pagination');
51
+ this.identifier = Dt('mg-pagination');
52
52
  /**
53
53
  * Hide navigation label
54
54
  */
@@ -93,18 +93,18 @@ const MgPagination = /*@__PURE__*/ proxyCustomElement(class MgPagination extends
93
93
  };
94
94
  }
95
95
  watchIdentifier(newValue) {
96
- if (!Dt(newValue)) {
97
- console.error(`<mg-pagination> prop "identifier" value is invalid. Passed value: ${Xt(newValue)}.`);
96
+ if (!Bt(newValue)) {
97
+ console.error(`<mg-pagination> prop "identifier" value is invalid. Passed value: ${Yt(newValue)}.`);
98
98
  }
99
99
  }
100
100
  validateTotalPages(newValue) {
101
101
  if (newValue < 1) {
102
- throw new Error(`<mg-pagination> prop "totalPages" must be greater than 0. Passed value: ${Xt(newValue)}.`);
102
+ throw new Error(`<mg-pagination> prop "totalPages" must be greater than 0. Passed value: ${Yt(newValue)}.`);
103
103
  }
104
104
  }
105
105
  validateCurrentPage(newValue) {
106
106
  if (newValue < 1) {
107
- throw new Error(`<mg-pagination> prop "currentPage" must be greater than 0. Passed value: ${Xt(newValue)}.`);
107
+ throw new Error(`<mg-pagination> prop "currentPage" must be greater than 0. Passed value: ${Yt(newValue)}.`);
108
108
  }
109
109
  else if (newValue > this.totalPages) {
110
110
  throw new Error('<mg-pagination> prop "currentPage" can not be greater than total page.');
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
- import { Z as Zt, H as Ht, D as Dt, X as Xt, q as qe } from './index.es.js';
2
+ import { D as Dt, a as qt, B as Bt, Y as Yt, q as qe } from './index.es.js';
3
3
  import { i as initLocales } from './index2.js';
4
4
  import { d as defineCustomElement$a } from './mg-button2.js';
5
5
  import { d as defineCustomElement$9 } from './mg-card2.js';
@@ -33,7 +33,7 @@ const MgPanel$1 = /*@__PURE__*/ proxyCustomElement(class MgPanel extends HTMLEle
33
33
  * Identifier is used for the element ID (id is a reserved prop in Stencil.js)
34
34
  * If not set, it will be created.
35
35
  */
36
- this.identifier = Zt('mg-panel');
36
+ this.identifier = Dt('mg-panel');
37
37
  /**
38
38
  * Define if panel title is editable
39
39
  */
@@ -57,7 +57,7 @@ const MgPanel$1 = /*@__PURE__*/ proxyCustomElement(class MgPanel extends HTMLEle
57
57
  /**
58
58
  * Component classes
59
59
  */
60
- this.classCollection = new Ht(['mg-c-panel']);
60
+ this.classCollection = new qt(['mg-c-panel']);
61
61
  /**
62
62
  * Title is in edition mode
63
63
  */
@@ -156,13 +156,13 @@ const MgPanel$1 = /*@__PURE__*/ proxyCustomElement(class MgPanel extends HTMLEle
156
156
  };
157
157
  }
158
158
  watchIdentifier(newValue) {
159
- if (!Dt(newValue)) {
160
- console.error(`<mg-panel> prop "identifier" value is invalid. Passed value: ${Xt(newValue)}.`);
159
+ if (!Bt(newValue)) {
160
+ console.error(`<mg-panel> prop "identifier" value is invalid. Passed value: ${Yt(newValue)}.`);
161
161
  }
162
162
  }
163
163
  validatePanelTitle(newValue) {
164
164
  if (!qe(newValue))
165
- throw new Error(`<mg-panel> prop "panelTitle" is required and must be a string. Passed value: ${Xt(newValue)}.`);
165
+ throw new Error(`<mg-panel> prop "panelTitle" is required and must be a string. Passed value: ${Yt(newValue)}.`);
166
166
  this.titleChange.emit(newValue);
167
167
  }
168
168
  validateTitlePattern(newValue) {
@@ -171,14 +171,14 @@ const MgPanel$1 = /*@__PURE__*/ proxyCustomElement(class MgPanel extends HTMLEle
171
171
  }
172
172
  validateTitlePosition(newValue) {
173
173
  if (!titlePositions.includes(newValue))
174
- throw new Error(`<mg-panel> prop "titlePosition" must be one of: ${titlePositions.join(', ')}. Passed value: ${Xt(newValue)}.`);
174
+ throw new Error(`<mg-panel> prop "titlePosition" must be one of: ${titlePositions.join(', ')}. Passed value: ${Yt(newValue)}.`);
175
175
  }
176
176
  handleExpanded(newValue) {
177
177
  this.expandedChange.emit(newValue);
178
178
  }
179
179
  validateExpandToggleDisplay(newValue) {
180
180
  if (!expandToggleDisplays.includes(newValue))
181
- throw new Error(`<mg-panel> prop "expandToggleDisplay" must be one of: ${expandToggleDisplays.join(', ')}. Passed value: ${Xt(newValue)}.`);
181
+ throw new Error(`<mg-panel> prop "expandToggleDisplay" must be one of: ${expandToggleDisplays.join(', ')}. Passed value: ${Yt(newValue)}.`);
182
182
  if (newValue === 'icon' && this.titleEditable)
183
183
  this.titleEditable = false;
184
184
  }
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
- import { H as Ht, B as Bt } from './index.es.js';
2
+ import { a as qt, J as Jt } from './index.es.js';
3
3
  import { i as initLocales } from './index2.js';
4
4
  import { d as defineCustomElement$3 } from './mg-button2.js';
5
5
  import { d as defineCustomElement$2 } from './mg-card2.js';
@@ -20,7 +20,7 @@ const MgPopoverContent = /*@__PURE__*/ proxyCustomElement(class MgPopoverContent
20
20
  /**
21
21
  * Component classes
22
22
  */
23
- this.classCollection = new Ht(['mg-c-popover-content']);
23
+ this.classCollection = new qt(['mg-c-popover-content']);
24
24
  /**
25
25
  * Handle action for close button
26
26
  */
@@ -44,7 +44,7 @@ const MgPopoverContent = /*@__PURE__*/ proxyCustomElement(class MgPopoverContent
44
44
  componentDidLoad() {
45
45
  const headingTags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
46
46
  const slottedTitleElement = this.element.querySelector('[slot="title"]');
47
- if (slottedTitleElement && !Bt(slottedTitleElement, headingTags)) {
47
+ if (slottedTitleElement && !Jt(slottedTitleElement, headingTags)) {
48
48
  throw new Error(`<mg-popover> Slotted title must be a heading: ${headingTags.join(', ')}.`);
49
49
  }
50
50
  }
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
- import { Z as Zt, D as Dt, X as Xt, J as Jt } from './index.es.js';
2
+ import { D as Dt, B as Bt, Y as Yt, K as Kt } from './index.es.js';
3
3
  import { d as defineCustomElement$4 } from './mg-button2.js';
4
4
  import { d as defineCustomElement$3 } from './mg-card2.js';
5
5
  import { d as defineCustomElement$2 } from './mg-icon2.js';
@@ -19,7 +19,7 @@ const MgPopover = /*@__PURE__*/ proxyCustomElement(class MgPopover extends HTMLE
19
19
  * Sets an `id` attribute.
20
20
  * Needed by the input for accessibility `aria-decribedby`.
21
21
  */
22
- this.identifier = Zt('mg-popover');
22
+ this.identifier = Dt('mg-popover');
23
23
  /**
24
24
  * Popover placement
25
25
  */
@@ -138,8 +138,8 @@ const MgPopover = /*@__PURE__*/ proxyCustomElement(class MgPopover extends HTMLE
138
138
  };
139
139
  }
140
140
  validateIdentifier(newValue) {
141
- if (!Dt(newValue)) {
142
- throw new Error(`<mg-popover> prop "identifier" value is invalid. Passed value: ${Xt(newValue)}.`);
141
+ if (!Bt(newValue)) {
142
+ throw new Error(`<mg-popover> prop "identifier" value is invalid. Passed value: ${Yt(newValue)}.`);
143
143
  }
144
144
  // use renderPopoverContent to update popover-content id
145
145
  this.renderPopoverContent();
@@ -176,7 +176,7 @@ const MgPopover = /*@__PURE__*/ proxyCustomElement(class MgPopover extends HTMLE
176
176
  */
177
177
  componentWillLoad() {
178
178
  // Get windows to attach events
179
- this.windows = Jt(window);
179
+ this.windows = Kt(window);
180
180
  // render mg-popover-content slot
181
181
  this.renderPopoverContent();
182
182
  this.validateCloseButton(this.closeButton);
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
- import { q as qe, X as Xt, K as Kt } from './index.es.js';
2
+ import { q as qe, Y as Yt, Q as Qt } from './index.es.js';
3
3
 
4
4
  /**
5
5
  * List of all possibles roles
@@ -36,25 +36,25 @@ const MgProgress$1 = /*@__PURE__*/ proxyCustomElement(class MgProgress extends H
36
36
  }
37
37
  watchLabel(newValue) {
38
38
  if (!qe(newValue)) {
39
- throw new Error(`<mg-progress> prop "label" must be a valid string. Passed value: ${Xt(newValue)}.`);
39
+ throw new Error(`<mg-progress> prop "label" must be a valid string. Passed value: ${Yt(newValue)}.`);
40
40
  }
41
41
  }
42
42
  watchAriaRole(newValue) {
43
43
  if (newValue && !roles.includes(newValue)) {
44
- throw new Error(`<mg-progress> prop "ariaRole" must be one of: ${roles.join(', ')}. Passed value: ${Xt(newValue)}.`);
44
+ throw new Error(`<mg-progress> prop "ariaRole" must be one of: ${roles.join(', ')}. Passed value: ${Yt(newValue)}.`);
45
45
  }
46
46
  }
47
47
  watchValue(newValue) {
48
- if (newValue !== undefined && (!Kt(newValue) || !(newValue >= this.min && newValue <= this.max)))
49
- throw new Error(`<mg-progress> prop “value” must be a number within the range ${this.min} to ${this.max}. Passed value: ${Xt(newValue)}.`);
48
+ if (newValue !== undefined && (!Qt(newValue) || !(newValue >= this.min && newValue <= this.max)))
49
+ throw new Error(`<mg-progress> prop “value” must be a number within the range ${this.min} to ${this.max}. Passed value: ${Yt(newValue)}.`);
50
50
  }
51
51
  watchMin(newValue) {
52
- if (newValue !== 0 && newValue !== undefined && (!Kt(newValue) || newValue >= this.max))
53
- throw new Error(`<mg-progress> prop “min” must be a number lower than: ${this.max}. Passed value: ${Xt(newValue)}.`);
52
+ if (newValue !== 0 && newValue !== undefined && (!Qt(newValue) || newValue >= this.max))
53
+ throw new Error(`<mg-progress> prop “min” must be a number lower than: ${this.max}. Passed value: ${Yt(newValue)}.`);
54
54
  }
55
55
  watchMax(newValue) {
56
- if (newValue !== 100 && newValue !== undefined && (!Kt(newValue) || newValue <= this.min))
57
- throw new Error(`<mg-progress> prop “max” must be a number greater than: ${this.min}. Passed value: ${Xt(newValue)}.`);
56
+ if (newValue !== 100 && newValue !== undefined && (!Qt(newValue) || newValue <= this.min))
57
+ throw new Error(`<mg-progress> prop “max” must be a number greater than: ${this.min}. Passed value: ${Yt(newValue)}.`);
58
58
  }
59
59
  /*************
60
60
  * Lifecycle *
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement } from '@stencil/core/internal/client';
2
- import { H as Ht, X as Xt, q as qe, Z as Zt } from './index.es.js';
2
+ import { a as qt, Y as Yt, q as qe, D as Dt } from './index.es.js';
3
3
  import { i as initLocales } from './index2.js';
4
4
  import { d as defineCustomElement$2 } from './mg-icon2.js';
5
5
 
@@ -83,11 +83,11 @@ const MgTable$1 = /*@__PURE__*/ proxyCustomElement(class MgTable extends HTMLEle
83
83
  /**
84
84
  * Class collection
85
85
  */
86
- this.classCollection = new Ht([this.componentClass]);
86
+ this.classCollection = new qt([this.componentClass]);
87
87
  }
88
88
  watchSize(newValue, oldValue) {
89
89
  if (!sizes.includes(newValue)) {
90
- throw new Error(`<mg-table> prop "size" must be one of: ${sizes.join(', ')}. Passed value: ${Xt(newValue)}.`);
90
+ throw new Error(`<mg-table> prop "size" must be one of: ${sizes.join(', ')}. Passed value: ${Yt(newValue)}.`);
91
91
  }
92
92
  else {
93
93
  if (oldValue !== undefined) {
@@ -106,7 +106,7 @@ const MgTable$1 = /*@__PURE__*/ proxyCustomElement(class MgTable extends HTMLEle
106
106
  }
107
107
  watchColumns(newValue) {
108
108
  if (newValue !== undefined && !isValidColumnsObject(newValue)) {
109
- throw new Error(`<mg-table> prop "columns" must be a ColumnsType object. Passed value: ${Xt(newValue)}.`);
109
+ throw new Error(`<mg-table> prop "columns" must be a ColumnsType object. Passed value: ${Yt(newValue)}.`);
110
110
  }
111
111
  }
112
112
  /**
@@ -236,7 +236,7 @@ const MgTable$1 = /*@__PURE__*/ proxyCustomElement(class MgTable extends HTMLEle
236
236
  captionTable.className = 'mg-u-visually-hidden';
237
237
  // Link caption to div
238
238
  if (!qe(captionTable.id)) {
239
- captionTable.setAttribute('id', Zt(`${this.componentClass}-caption`));
239
+ captionTable.setAttribute('id', Dt(`${this.componentClass}-caption`));
240
240
  }
241
241
  divWrapper.setAttribute('aria-labelledby', captionTable.id);
242
242
  // Add sortable caption if neeeded
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
- import { Z as Zt, H as Ht, Q as Qt, D as Dt, X as Xt, q as qe, a as qt } from './index.es.js';
2
+ import { D as Dt, a as qt, e as er, B as Bt, Y as Yt, q as qe, G as Gt } from './index.es.js';
3
3
  import { K as Keys } from './events.utils.js';
4
4
  import { d as defineCustomElement$3 } from './mg-badge2.js';
5
5
  import { d as defineCustomElement$2 } from './mg-icon2.js';
@@ -43,7 +43,7 @@ const MgTabs$1 = /*@__PURE__*/ proxyCustomElement(class MgTabs extends HTMLEleme
43
43
  * Identifier is used for the element ID (id is a reserved prop in Stencil.js)
44
44
  * If not set, it will be created.
45
45
  */
46
- this.identifier = Zt('mg-tabs');
46
+ this.identifier = Dt('mg-tabs');
47
47
  /**
48
48
  * Define tabs size
49
49
  */
@@ -55,7 +55,7 @@ const MgTabs$1 = /*@__PURE__*/ proxyCustomElement(class MgTabs extends HTMLEleme
55
55
  /**
56
56
  * Component classes
57
57
  */
58
- this.classCollection = new Ht(['mg-c-tabs']);
58
+ this.classCollection = new qt(['mg-c-tabs']);
59
59
  /**
60
60
  * Validate that new tab status can be `Status.ACTIVE`
61
61
  * @param tab - tab item
@@ -153,7 +153,7 @@ const MgTabs$1 = /*@__PURE__*/ proxyCustomElement(class MgTabs extends HTMLEleme
153
153
  */
154
154
  this.resetFocus = () => {
155
155
  // update asynchronously tabindex to prevent get focus on new tabindex at then end of event process
156
- Qt(() => {
156
+ er(() => {
157
157
  this.tabFocus = undefined;
158
158
  Array.from(this.element.shadowRoot.querySelectorAll('[data-index]')).forEach((tab, index) => {
159
159
  tab.setAttribute('tabindex', this.activeTab - this.startIndex !== index ? '-1' : '0');
@@ -170,30 +170,30 @@ const MgTabs$1 = /*@__PURE__*/ proxyCustomElement(class MgTabs extends HTMLEleme
170
170
  };
171
171
  }
172
172
  watchIdentifier(newValue) {
173
- if (!Dt(newValue)) {
174
- console.error(`<mg-tabs> prop "identifier" value is invalid. Passed value: ${Xt(newValue)}.`);
173
+ if (!Bt(newValue)) {
174
+ console.error(`<mg-tabs> prop "identifier" value is invalid. Passed value: ${Yt(newValue)}.`);
175
175
  }
176
176
  }
177
177
  validateLabel(newValue) {
178
178
  if (!qe(newValue)) {
179
- throw new Error(`<mg-tabs> prop "label" is required and must be a string. Passed value: ${Xt(newValue)}.`);
179
+ throw new Error(`<mg-tabs> prop "label" is required and must be a string. Passed value: ${Yt(newValue)}.`);
180
180
  }
181
181
  }
182
182
  validateSize(newValue) {
183
183
  if (!sizes.includes(newValue)) {
184
- throw new Error(`<mg-tabs> prop "size" must be one of: ${sizes.join(', ')}. Passed value: ${Xt(newValue)}.`);
184
+ throw new Error(`<mg-tabs> prop "size" must be one of: ${sizes.join(', ')}. Passed value: ${Yt(newValue)}.`);
185
185
  }
186
186
  this.classCollection.add(`mg-c-tabs--size-${this.size}`);
187
187
  }
188
188
  validateItems(newValue) {
189
189
  // String array
190
- if (qt(newValue))
190
+ if (Gt(newValue))
191
191
  this.tabs = newValue.map(item => ({ label: item, status: Status.VISIBLE }));
192
192
  // Object array
193
193
  else if (Array.isArray(newValue) && newValue.length > 0 && newValue.every(isTabItem))
194
194
  this.tabs = newValue;
195
195
  else
196
- throw new Error(`<mg-tabs> prop "items" is required and all items must be the same type: TabItem. Passed value: ${Xt(newValue)}.`);
196
+ throw new Error(`<mg-tabs> prop "items" is required and all items must be the same type: TabItem. Passed value: ${Yt(newValue)}.`);
197
197
  }
198
198
  validateActiveTab(newValue) {
199
199
  // when `active-tab` is undefined we set default value by searching an item with `Status.ACTIVE` or we use the `startIndex` has fallback value
@@ -218,7 +218,7 @@ const MgTabs$1 = /*@__PURE__*/ proxyCustomElement(class MgTabs extends HTMLEleme
218
218
  this.activeTabChange.emit(newValue);
219
219
  }
220
220
  else {
221
- 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: ${Xt(newValue)}.`);
221
+ 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: ${Yt(newValue)}.`);
222
222
  }
223
223
  }
224
224
  /*************
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
- import { H as Ht, X as Xt, q as qe } from './index.es.js';
2
+ import { a as qt, Y as Yt, q as qe } from './index.es.js';
3
3
 
4
4
  /**
5
5
  * List of all possibles variants
@@ -34,11 +34,11 @@ const MgTag$1 = /*@__PURE__*/ proxyCustomElement(class MgTag extends HTMLElement
34
34
  /**
35
35
  * Component classes
36
36
  */
37
- this.classCollection = new Ht(['mg-c-tag']);
37
+ this.classCollection = new qt(['mg-c-tag']);
38
38
  }
39
39
  validateVariant(newValue, oldValue) {
40
40
  if (!variants.includes(newValue)) {
41
- throw new Error(`<mg-tag> prop "variant" must be one of: ${variants.join(', ')}. Passed value: ${Xt(newValue)}.`);
41
+ throw new Error(`<mg-tag> prop "variant" must be one of: ${variants.join(', ')}. Passed value: ${Yt(newValue)}.`);
42
42
  }
43
43
  else {
44
44
  if (oldValue !== undefined) {
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
- import { Z as Zt, Q as Qt, D as Dt, X as Xt, q as qe, J as Jt, c as Gt } from './index.es.js';
2
+ import { D as Dt, e as er, B as Bt, Y as Yt, q as qe, K as Kt, X as Xt } from './index.es.js';
3
3
  import { d as defineCustomElement$1 } from './mg-tooltip-content2.js';
4
4
  import { c as createPopper } from './popper.js';
5
5
 
@@ -27,7 +27,7 @@ const MgTooltip = /*@__PURE__*/ proxyCustomElement(class MgTooltip extends HTMLE
27
27
  * Sets an `id` attribute.
28
28
  * Needed by the input for accessibility `aria-decribedby`.
29
29
  */
30
- this.identifier = Zt('mg-tooltip');
30
+ this.identifier = Dt('mg-tooltip');
31
31
  /**
32
32
  * Tooltip placement
33
33
  */
@@ -49,7 +49,7 @@ const MgTooltip = /*@__PURE__*/ proxyCustomElement(class MgTooltip extends HTMLE
49
49
  // Enable the event listeners
50
50
  this.popper.setOptions(options => (Object.assign(Object.assign({}, options), { modifiers: [...options.modifiers, { name: 'eventListeners', enabled: true }] })));
51
51
  // hide when click outside on nextTick to prevent event to trigger after creation
52
- Qt(() => {
52
+ er(() => {
53
53
  this.windows.forEach((localWindow) => {
54
54
  localWindow.addEventListener('click', this.handleClickOutside, false);
55
55
  localWindow.addEventListener('keydown', this.handlePressEscape, false);
@@ -247,15 +247,15 @@ const MgTooltip = /*@__PURE__*/ proxyCustomElement(class MgTooltip extends HTMLE
247
247
  };
248
248
  }
249
249
  watchIdentifier(newValue) {
250
- if (!Dt(newValue)) {
251
- throw new Error(`<mg-tooltip> prop "identifier" value is invalid. Passed value: ${Xt(newValue)}.`);
250
+ if (!Bt(newValue)) {
251
+ throw new Error(`<mg-tooltip> prop "identifier" value is invalid. Passed value: ${Yt(newValue)}.`);
252
252
  }
253
253
  // use renderTooltipContent to update tooltip-content id
254
254
  this.renderTooltipContent();
255
255
  }
256
256
  watchMessage(newValue) {
257
257
  if (!qe(newValue)) {
258
- throw new Error(`<mg-tooltip> prop "message" is required and must be a string. Passed value: ${Xt(newValue)}.`);
258
+ throw new Error(`<mg-tooltip> prop "message" is required and must be a string. Passed value: ${Yt(newValue)}.`);
259
259
  }
260
260
  if (this.mgTooltipContent !== undefined)
261
261
  this.mgTooltipContent.message = newValue;
@@ -310,7 +310,7 @@ const MgTooltip = /*@__PURE__*/ proxyCustomElement(class MgTooltip extends HTMLE
310
310
  */
311
311
  componentWillLoad() {
312
312
  // Get windows to attach events
313
- this.windows = Jt(window);
313
+ this.windows = Kt(window);
314
314
  // Get tooltip element
315
315
  this.renderTooltipContent();
316
316
  //validate properties
@@ -328,7 +328,7 @@ const MgTooltip = /*@__PURE__*/ proxyCustomElement(class MgTooltip extends HTMLE
328
328
  // get slotted element wich is not the tooltip
329
329
  const slotElement = this.element.querySelector(`*:not(#${this.identifier})`);
330
330
  // Get interactive element
331
- const interactiveElement = slotElement.matches(Gt) ? slotElement : (_a = slotElement.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(Gt);
331
+ const interactiveElement = slotElement.matches(Xt) ? slotElement : (_a = slotElement.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(Xt);
332
332
  this.setTooltipedElement(interactiveElement || slotElement);
333
333
  // Check if slotted element is a disabled mg-button
334
334
  // In this case we wrap the mg-button into a div to enable the tooltip
@@ -1,4 +1,4 @@
1
- import { $ as $r } from './index.es-hNwGkhG6.js';
1
+ import { h as hr } from './index.es-lyrZ9KRh.js';
2
2
 
3
3
  const errors$1 = {
4
4
  required: "This field is required."
@@ -307,9 +307,9 @@ const messages = { en, fr };
307
307
  * @param element - element we need to get the language
308
308
  * @returns messages object
309
309
  */
310
- const initLocales = $r(messages, defaultLocale);
310
+ const initLocales = hr(messages, defaultLocale);
311
311
 
312
312
  export { initLocales as i };
313
- //# sourceMappingURL=index-DALWFL9i.js.map
313
+ //# sourceMappingURL=index-DHpyFawS.js.map
314
314
 
315
- //# sourceMappingURL=index-DALWFL9i.js.map
315
+ //# sourceMappingURL=index-DHpyFawS.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-DALWFL9i.js","sources":["src/locales/index.ts"],"sourcesContent":["import en from './en/messages.json';\nimport fr from './fr/messages.json';\nimport { defineLocales } from '@mgdis/stencil-helpers';\n\nconst defaultLocale = 'en';\nconst messages = { en, fr };\n\n/**\n * Get Intl object\n * @param element - element we need to get the language\n * @returns messages object\n */\nexport const initLocales = defineLocales(messages, defaultLocale);\n"],"names":["defineLocales"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,MAAM,aAAa,GAAG,IAAI;AAC1B,MAAM,QAAQ,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE;AAE3B;;;;AAIG;AACU,MAAA,WAAW,GAAGA,EAAa,CAAC,QAAQ,EAAE,aAAa;;;;"}
1
+ {"version":3,"file":"index-DHpyFawS.js","sources":["src/locales/index.ts"],"sourcesContent":["import en from './en/messages.json';\nimport fr from './fr/messages.json';\nimport { defineLocales } from '@mgdis/stencil-helpers';\n\nconst defaultLocale = 'en';\nconst messages = { en, fr };\n\n/**\n * Get Intl object\n * @param element - element we need to get the language\n * @returns messages object\n */\nexport const initLocales = defineLocales(messages, defaultLocale);\n"],"names":["defineLocales"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,MAAM,aAAa,GAAG,IAAI;AAC1B,MAAM,QAAQ,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE;AAE3B;;;;AAIG;AACU,MAAA,WAAW,GAAGA,EAAa,CAAC,QAAQ,EAAE,aAAa;;;;"}