@mgdis/mg-components 6.10.0 → 6.10.1

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 (114) hide show
  1. package/dist/cjs/{index-CfIlskRh.js → index-CL_COdxv.js} +4 -4
  2. package/dist/cjs/{index-CfIlskRh.js.map → index-CL_COdxv.js.map} +1 -1
  3. package/dist/cjs/{index.es-BCLy9yYb.js → index.es-DaPqByCe.js} +82 -82
  4. package/dist/cjs/index.es-DaPqByCe.js.map +1 -0
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/mg-action-more_37.cjs.entry.js +1881 -1874
  7. package/dist/cjs/mg-action-more_37.cjs.entry.js.map +1 -1
  8. package/dist/cjs/mg-alert.cjs.entry.js +6 -6
  9. package/dist/cjs/mg-components.cjs.js +1 -1
  10. package/dist/cjs/mg-input-combobox.cjs.entry.js +33 -33
  11. package/dist/cjs/mg-input-rich-text-editor.cjs.entry.js +12 -12
  12. package/dist/cjs/mg-loader.cjs.entry.js +4 -4
  13. package/dist/cjs/mg-progress.cjs.entry.js +10 -10
  14. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.conf.js +0 -1
  15. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.conf.js.map +1 -1
  16. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +43 -63
  17. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js.map +1 -1
  18. package/dist/collection/components/molecules/mg-popover/mg-popover.js +47 -97
  19. package/dist/collection/components/molecules/mg-popover/mg-popover.js.map +1 -1
  20. package/dist/components/index.es.js +71 -71
  21. package/dist/components/index.es.js.map +1 -1
  22. package/dist/components/index2.js +2 -2
  23. package/dist/components/mg-action-more.js +6 -6
  24. package/dist/components/mg-alert.js +5 -5
  25. package/dist/components/mg-badge2.js +6 -6
  26. package/dist/components/mg-button2.js +6 -6
  27. package/dist/components/mg-character-left2.js +4 -4
  28. package/dist/components/mg-details.js +2 -2
  29. package/dist/components/mg-form.js +7 -7
  30. package/dist/components/mg-icon2.js +6 -6
  31. package/dist/components/mg-illustrated-message.js +5 -5
  32. package/dist/components/mg-input-checkbox.js +9 -9
  33. package/dist/components/mg-input-combobox.js +32 -32
  34. package/dist/components/mg-input-date.js +17 -17
  35. package/dist/components/mg-input-numeric.js +13 -13
  36. package/dist/components/mg-input-password.js +3 -3
  37. package/dist/components/mg-input-radio.js +7 -7
  38. package/dist/components/mg-input-rich-text-editor.js +11 -11
  39. package/dist/components/mg-input-select2.js +7 -7
  40. package/dist/components/mg-input-text2.js +9 -9
  41. package/dist/components/mg-input-textarea.js +7 -7
  42. package/dist/components/mg-input-title2.js +4 -4
  43. package/dist/components/mg-input-toggle.js +6 -6
  44. package/dist/components/mg-input2.js +8 -8
  45. package/dist/components/mg-item-more2.js +7 -7
  46. package/dist/components/mg-loader2.js +3 -3
  47. package/dist/components/mg-menu-item2.js +11 -11
  48. package/dist/components/mg-message2.js +4 -4
  49. package/dist/components/mg-modal.js +8 -8
  50. package/dist/components/mg-pagination2.js +6 -6
  51. package/dist/components/mg-panel.js +9 -9
  52. package/dist/components/mg-popover-content2.js +4 -4
  53. package/dist/components/mg-popover-content2.js.map +1 -1
  54. package/dist/components/mg-popover2.js +48 -96
  55. package/dist/components/mg-popover2.js.map +1 -1
  56. package/dist/components/mg-progress.js +10 -10
  57. package/dist/components/mg-skip-links.js +2 -2
  58. package/dist/components/mg-table.js +6 -6
  59. package/dist/components/mg-tabs.js +12 -12
  60. package/dist/components/mg-tag.js +4 -4
  61. package/dist/components/mg-tooltip-content2.js +1 -1
  62. package/dist/components/mg-tooltip-content2.js.map +1 -1
  63. package/dist/components/mg-tooltip2.js +47 -66
  64. package/dist/components/mg-tooltip2.js.map +1 -1
  65. package/dist/components/popper.js +1793 -0
  66. package/dist/components/popper.js.map +1 -0
  67. package/dist/esm/{index-DmsGewMC.js → index-DALWFL9i.js} +4 -4
  68. package/dist/esm/{index-DmsGewMC.js.map → index-DALWFL9i.js.map} +1 -1
  69. package/dist/esm/{index.es-rLV3KFPd.js → index.es-hNwGkhG6.js} +73 -73
  70. package/dist/esm/index.es-hNwGkhG6.js.map +1 -0
  71. package/dist/esm/loader.js +1 -1
  72. package/dist/esm/mg-action-more_37.entry.js +1881 -1874
  73. package/dist/esm/mg-action-more_37.entry.js.map +1 -1
  74. package/dist/esm/mg-alert.entry.js +6 -6
  75. package/dist/esm/mg-components.js +1 -1
  76. package/dist/esm/mg-input-combobox.entry.js +33 -33
  77. package/dist/esm/mg-input-rich-text-editor.entry.js +12 -12
  78. package/dist/esm/mg-loader.entry.js +4 -4
  79. package/dist/esm/mg-progress.entry.js +10 -10
  80. package/dist/mg-components/mg-components.esm.js +1 -1
  81. package/dist/mg-components/{p-88f77de2.entry.js → p-352cfc01.entry.js} +2 -2
  82. package/dist/mg-components/{p-0f761c6c.entry.js → p-68f7de47.entry.js} +2 -2
  83. package/dist/mg-components/{p-DK9teKTo.js → p-Cg3R_y_o.js} +2 -2
  84. package/dist/mg-components/{p-DK9teKTo.js.map → p-Cg3R_y_o.js.map} +1 -1
  85. package/dist/mg-components/{p-cdbe689e.entry.js → p-a52a168c.entry.js} +2 -2
  86. package/dist/mg-components/{p-ad66e7b3.entry.js → p-bf5de898.entry.js} +2 -2
  87. package/dist/mg-components/{p-d3a868f0.entry.js → p-dcefa0b0.entry.js} +2 -2
  88. package/dist/mg-components/p-dcefa0b0.entry.js.map +1 -0
  89. package/dist/mg-components/{p-73099ed7.entry.js → p-e33557f9.entry.js} +2 -2
  90. package/dist/mg-components/{p-rLV3KFPd.js → p-hNwGkhG6.js} +2 -2
  91. package/dist/mg-components/p-hNwGkhG6.js.map +1 -0
  92. package/dist/types/components/atoms/mg-tooltip/mg-tooltip.conf.d.ts +0 -6
  93. package/dist/types/components/atoms/mg-tooltip/mg-tooltip.d.ts +6 -8
  94. package/dist/types/components/molecules/mg-popover/mg-popover.d.ts +8 -22
  95. package/dist/types/components.d.ts +6 -8
  96. package/ide/intellij/web-types.json +1 -1
  97. package/package.json +9 -9
  98. package/dist/cjs/index.es-BCLy9yYb.js.map +0 -1
  99. package/dist/collection/components/molecules/mg-popover/mg-popover.conf.js +0 -2
  100. package/dist/collection/components/molecules/mg-popover/mg-popover.conf.js.map +0 -1
  101. package/dist/collection/utils/floating-ui.utils.js +0 -74
  102. package/dist/collection/utils/floating-ui.utils.js.map +0 -1
  103. package/dist/components/floating-ui.utils.js +0 -1721
  104. package/dist/components/floating-ui.utils.js.map +0 -1
  105. package/dist/esm/index.es-rLV3KFPd.js.map +0 -1
  106. package/dist/mg-components/p-d3a868f0.entry.js.map +0 -1
  107. package/dist/mg-components/p-rLV3KFPd.js.map +0 -1
  108. package/dist/types/components/molecules/mg-popover/mg-popover.conf.d.ts +0 -6
  109. package/dist/types/utils/floating-ui.utils.d.ts +0 -28
  110. /package/dist/mg-components/{p-88f77de2.entry.js.map → p-352cfc01.entry.js.map} +0 -0
  111. /package/dist/mg-components/{p-0f761c6c.entry.js.map → p-68f7de47.entry.js.map} +0 -0
  112. /package/dist/mg-components/{p-cdbe689e.entry.js.map → p-a52a168c.entry.js.map} +0 -0
  113. /package/dist/mg-components/{p-ad66e7b3.entry.js.map → p-bf5de898.entry.js.map} +0 -0
  114. /package/dist/mg-components/{p-73099ed7.entry.js.map → p-e33557f9.entry.js.map} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement } from '@stencil/core/internal/client';
2
- import { Z as Zt, G as Gt } from './index.es.js';
2
+ import { H as Ht, X as Xt } from './index.es.js';
3
3
 
4
4
  /**
5
5
  * List of all possibles sizes
@@ -34,7 +34,7 @@ const MgIcon = /*@__PURE__*/ proxyCustomElement(class MgIcon extends HTMLElement
34
34
  /**
35
35
  * Component classes
36
36
  */
37
- this.classCollection = new Zt(['mg-c-icon']);
37
+ this.classCollection = new Ht(['mg-c-icon']);
38
38
  /**
39
39
  * Method to set default varianStyle props
40
40
  * needeed has stencil doesn't know that props is mutated when updated in prop watcher
@@ -65,7 +65,7 @@ const MgIcon = /*@__PURE__*/ proxyCustomElement(class MgIcon extends HTMLElement
65
65
  }
66
66
  validateIcon(newValue, oldValue) {
67
67
  if (!Object.keys(icons).includes(newValue)) {
68
- throw new Error(`<mg-icon> prop "icon" must be one of: ${Object.keys(icons).join(', ')}. Passed value: ${Gt(newValue)}.`);
68
+ throw new Error(`<mg-icon> prop "icon" must be one of: ${Object.keys(icons).join(', ')}. Passed value: ${Xt(newValue)}.`);
69
69
  }
70
70
  else {
71
71
  if (oldValue !== undefined) {
@@ -81,7 +81,7 @@ const MgIcon = /*@__PURE__*/ proxyCustomElement(class MgIcon extends HTMLElement
81
81
  newValue = 'medium';
82
82
  }
83
83
  if (!sizes.includes(newValue)) {
84
- throw new Error(`<mg-icon> prop "size" must be one of: ${sizes.join(', ')}. Passed value: ${Gt(newValue)}.`);
84
+ throw new Error(`<mg-icon> prop "size" must be one of: ${sizes.join(', ')}. Passed value: ${Xt(newValue)}.`);
85
85
  }
86
86
  else {
87
87
  if (oldValue !== undefined) {
@@ -93,7 +93,7 @@ const MgIcon = /*@__PURE__*/ proxyCustomElement(class MgIcon extends HTMLElement
93
93
  validateVariant(newValue, oldValue) {
94
94
  if (newValue !== undefined) {
95
95
  if (!variants.includes(newValue))
96
- throw new Error(`<mg-icon> prop "variant" must be one of: ${variants.join(', ')}. Passed value: ${Gt(newValue)}.`);
96
+ throw new Error(`<mg-icon> prop "variant" must be one of: ${variants.join(', ')}. Passed value: ${Xt(newValue)}.`);
97
97
  else {
98
98
  this.setDefaultVariantStyle();
99
99
  if (oldValue !== undefined)
@@ -105,7 +105,7 @@ const MgIcon = /*@__PURE__*/ proxyCustomElement(class MgIcon extends HTMLElement
105
105
  validateVariantStyle(newValue, oldValue) {
106
106
  if (newValue !== undefined) {
107
107
  if (!variantStyles.includes(newValue))
108
- throw new Error(`<mg-icon> prop "variantStyle" must be one of: ${variantStyles.join(', ')}. Passed value: ${Gt(newValue)}.`);
108
+ throw new Error(`<mg-icon> prop "variantStyle" must be one of: ${variantStyles.join(', ')}. Passed value: ${Xt(newValue)}.`);
109
109
  else {
110
110
  if (oldValue !== undefined)
111
111
  this.classCollection.delete(`mg-c-icon--variant-style-${oldValue}`);
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
- import { Z as Zt, G as Gt, q as qt } from './index.es.js';
2
+ import { H as Ht, X as Xt, B as Bt } from './index.es.js';
3
3
 
4
4
  /**
5
5
  * List of all possibles sizes
@@ -28,11 +28,11 @@ const MgIllustratedMessage$1 = /*@__PURE__*/ proxyCustomElement(class MgIllustra
28
28
  /**
29
29
  * Component classes
30
30
  */
31
- this.classCollection = new Zt(['mg-c-illustrated-message']);
31
+ this.classCollection = new Ht(['mg-c-illustrated-message']);
32
32
  }
33
33
  watchSize(newValue, oldValue) {
34
34
  if (!sizes.includes(newValue)) {
35
- throw new Error(`<mg-illustrated-message> prop "size" must be one of: ${sizes.join(', ')}. Passed value: ${Gt(newValue)}.`);
35
+ throw new Error(`<mg-illustrated-message> prop "size" must be one of: ${sizes.join(', ')}. Passed value: ${Xt(newValue)}.`);
36
36
  }
37
37
  else {
38
38
  if (oldValue !== undefined) {
@@ -43,7 +43,7 @@ const MgIllustratedMessage$1 = /*@__PURE__*/ proxyCustomElement(class MgIllustra
43
43
  }
44
44
  watchDirection(newValue, oldValue) {
45
45
  if (newValue !== undefined && !directions.includes(newValue)) {
46
- throw new Error(`<mg-illustrated-message> prop "direction" must be one of: ${directions.join(', ')}. Passed value: ${Gt(newValue)}.`);
46
+ throw new Error(`<mg-illustrated-message> prop "direction" must be one of: ${directions.join(', ')}. Passed value: ${Xt(newValue)}.`);
47
47
  }
48
48
  else if (newValue === 'horizontal') {
49
49
  this.classCollection.add('mg-c-illustrated-message--direction-horizontal');
@@ -66,7 +66,7 @@ const MgIllustratedMessage$1 = /*@__PURE__*/ proxyCustomElement(class MgIllustra
66
66
  if (slottedDetails.length === 0 && slottedTitle === null) {
67
67
  throw new Error('<mg-illustrated-message> Slot "title" or "details" must be present.');
68
68
  }
69
- else if (slottedTitle !== null && !qt(slottedTitle, headingTags)) {
69
+ else if (slottedTitle !== null && !Bt(slottedTitle, headingTags)) {
70
70
  throw new Error(`<mg-illustrated-message> Slotted title must be a heading: ${headingTags.join(', ')}.`);
71
71
  }
72
72
  else if (slottedIllustrations.length !== 1) {
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
- import { Z as Zt, J as Jt, D as De, G as Gt } from './index.es.js';
2
+ import { H as Ht, Y as Yt, q as qe, X as Xt } from './index.es.js';
3
3
  import { d as defineCustomElement$a, S as SectionKind, a as MgInputCheckboxList, c as checkboxTypes } from './mg-input-checkbox-paginated2.js';
4
4
  import { d as defineCustomElement$b, b as classFieldset, e as classVerticalList, c as classReadonly, a as classDisabled } from './mg-input2.js';
5
5
  import { i as initLocales } from './index2.js';
@@ -86,7 +86,7 @@ const MgInputCheckbox$1 = /*@__PURE__*/ proxyCustomElement(class MgInputCheckbox
86
86
  /**
87
87
  * Component classes
88
88
  */
89
- this.classCollection = new Zt([this.baseClassName, classFieldset]);
89
+ this.classCollection = new Ht([this.baseClassName, classFieldset]);
90
90
  /**
91
91
  * Formated value to display in list
92
92
  */
@@ -204,7 +204,7 @@ const MgInputCheckbox$1 = /*@__PURE__*/ proxyCustomElement(class MgInputCheckbox
204
204
  * Method to update searchResults
205
205
  */
206
206
  this.updateSearchResults = () => {
207
- this.searchResults = this.checkboxItems.filter(item => Jt(item.title).includes(Jt(this.searchValue)));
207
+ this.searchResults = this.checkboxItems.filter(item => Yt(item.title).includes(Yt(this.searchValue)));
208
208
  };
209
209
  /**
210
210
  * Method to validate if one of inputs value is checked id required
@@ -236,13 +236,13 @@ const MgInputCheckbox$1 = /*@__PURE__*/ proxyCustomElement(class MgInputCheckbox
236
236
  * @returns message to display
237
237
  */
238
238
  this.getSelectValuesButtonMessage = () => {
239
- if (this.selectValuesButtonKey === 'editButton' && De(this.editButtonMessage)) {
239
+ if (this.selectValuesButtonKey === 'editButton' && qe(this.editButtonMessage)) {
240
240
  return this.editButtonMessage;
241
241
  }
242
- else if (this.selectValuesButtonKey === 'showButton' && De(this.showButtonMessage)) {
242
+ else if (this.selectValuesButtonKey === 'showButton' && qe(this.showButtonMessage)) {
243
243
  return this.showButtonMessage;
244
244
  }
245
- else if (this.selectValuesButtonKey === 'selectButton' && De(this.selectButtonMessage)) {
245
+ else if (this.selectValuesButtonKey === 'selectButton' && qe(this.selectButtonMessage)) {
246
246
  return this.selectButtonMessage;
247
247
  }
248
248
  else {
@@ -298,12 +298,12 @@ const MgInputCheckbox$1 = /*@__PURE__*/ proxyCustomElement(class MgInputCheckbox
298
298
  this.valueChange.emit(newValue);
299
299
  }
300
300
  else {
301
- throw new Error(`<mg-input-checkbox> prop "value" is required and all values must be the same type, CheckboxItem. Passed value: ${Gt(newValue)}.`);
301
+ throw new Error(`<mg-input-checkbox> prop "value" is required and all values must be the same type, CheckboxItem. Passed value: ${Xt(newValue)}.`);
302
302
  }
303
303
  }
304
304
  validateType(newValue) {
305
305
  if (newValue !== undefined && !checkboxTypes.includes(newValue)) {
306
- throw new Error(`<mg-input-checkbox> prop "type" must be a CheckboxType. Passed value: ${Gt(newValue)}.`);
306
+ throw new Error(`<mg-input-checkbox> prop "type" must be a CheckboxType. Passed value: ${Xt(newValue)}.`);
307
307
  }
308
308
  else if (newValue === undefined) {
309
309
  this.mode = 'auto';
@@ -403,7 +403,7 @@ const MgInputCheckbox$1 = /*@__PURE__*/ proxyCustomElement(class MgInputCheckbox
403
403
  if (typeof valid !== 'boolean') {
404
404
  throw new Error('<mg-input-checkbox> method "setError()" param "valid" must be a boolean.');
405
405
  }
406
- else if (!De(errorMessage)) {
406
+ else if (!qe(errorMessage)) {
407
407
  throw new Error('<mg-input-checkbox> method "setError()" param "errorMessage" must be a string.');
408
408
  }
409
409
  else {
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
- import { Y as Yt, Z as Zt, K as Kt, X as Xt, H as He, b as qe, G as Gt, a as Dt, i as ie, D as De } from './index.es.js';
2
+ import { e as er, H as Ht, V as Vt, Q as Qt, G as Ge, b as Be, X as Xt, a as qt, n as ne, q as qe } from './index.es.js';
3
3
  import { d as defineCustomElement$8, c as classReadonly, a as classDisabled, w as widths } from './mg-input2.js';
4
4
  import { i as initLocales } from './index2.js';
5
5
  import { K as Keys } from './events.utils.js';
@@ -33,10 +33,10 @@ const isItems = (items) => Array.isArray(items) && items.every(isItem);
33
33
  * @returns truthy if mapping is valid
34
34
  */
35
35
  const isFetchmappings = (value) => {
36
- const isValidRoot = ie(value) && Object.hasOwn(value, 'request') && Object.hasOwn(value, 'response');
36
+ const isValidRoot = ne(value) && Object.hasOwn(value, 'request') && Object.hasOwn(value, 'response');
37
37
  if (isValidRoot) {
38
38
  const { request, response } = value;
39
- if ([request, response].some(property => !ie(property)))
39
+ if ([request, response].some(property => !ne(property)))
40
40
  return false;
41
41
  const isValidRequest = typeof request.filter === 'string';
42
42
  const isValidResponse = typeof response === 'object' &&
@@ -125,7 +125,7 @@ const MgInputCombobox$1 = /*@__PURE__*/ proxyCustomElement(class MgInputCombobox
125
125
  /**
126
126
  * Formated items for display
127
127
  */
128
- this.options = new Yt([]);
128
+ this.options = new er([]);
129
129
  /**
130
130
  * Option filter
131
131
  */
@@ -133,7 +133,7 @@ const MgInputCombobox$1 = /*@__PURE__*/ proxyCustomElement(class MgInputCombobox
133
133
  /**
134
134
  * Component classes
135
135
  */
136
- this.classCollection = new Zt(['mg-c-input--combobox', 'mg-c-input--has-icon', 'mg-c-input--input-append']);
136
+ this.classCollection = new Ht(['mg-c-input--combobox', 'mg-c-input--has-icon', 'mg-c-input--input-append']);
137
137
  /**
138
138
  * Popover display state
139
139
  */
@@ -200,7 +200,7 @@ const MgInputCombobox$1 = /*@__PURE__*/ proxyCustomElement(class MgInputCombobox
200
200
  * Handle load-more <mg-button> `click`
201
201
  */
202
202
  this.handleLoadMoreButton = () => {
203
- this.loadingWrapper({ name: 'load-more', cursor: Kt.NEXT }).then(() => {
203
+ this.loadingWrapper({ name: 'load-more', cursor: Vt.NEXT }).then(() => {
204
204
  this.input.focus();
205
205
  });
206
206
  };
@@ -246,14 +246,14 @@ const MgInputCombobox$1 = /*@__PURE__*/ proxyCustomElement(class MgInputCombobox
246
246
  // If the filter is empty and the popover is not displayed, opens the popover and moves visual focus to the first option.
247
247
  // Moves visual focus to the next option.
248
248
  // If visual focus is on the last option, moves visual focus to the first option.
249
- cursor = isNavigationStart ? Kt.NEXT : Kt.FIRST;
249
+ cursor = isNavigationStart ? Vt.NEXT : Vt.FIRST;
250
250
  }
251
251
  else if ([Keys.UP, Keys.ARROWUP].includes(event.key)) {
252
252
  // If the filter is not empty and the popover is displayed, moves visual focus to the last suggested value.
253
253
  // If the filter is empty, first opens the popover if it is not already displayed and then moves visual focus to the last option.
254
254
  // Moves visual focus to the previous option.
255
255
  // If visual focus is on the first option, moves visual focus to the last option.
256
- cursor = isNavigationStart ? Kt.PREVIOUS : Kt.LAST;
256
+ cursor = isNavigationStart ? Vt.PREVIOUS : Vt.LAST;
257
257
  }
258
258
  // update scroll and visual focused option in wrapper
259
259
  this.loadingWrapper({ name: 'scroll', cursor });
@@ -390,7 +390,7 @@ const MgInputCombobox$1 = /*@__PURE__*/ proxyCustomElement(class MgInputCombobox
390
390
  this.isLoading = true;
391
391
  promise = this.goToNextPage;
392
392
  }
393
- else if (action.cursor === Kt.NEXT &&
393
+ else if (action.cursor === Vt.NEXT &&
394
394
  this.page.items.length <= this.page.total &&
395
395
  index + this.page.baseIndex === this.page.items.length &&
396
396
  index + this.page.baseIndex < this.page.total) {
@@ -399,7 +399,7 @@ const MgInputCombobox$1 = /*@__PURE__*/ proxyCustomElement(class MgInputCombobox
399
399
  return;
400
400
  }
401
401
  else if (action.name === 'scroll') {
402
- promise = Xt;
402
+ promise = Qt;
403
403
  }
404
404
  else {
405
405
  promise = this.updatePage;
@@ -437,14 +437,14 @@ const MgInputCombobox$1 = /*@__PURE__*/ proxyCustomElement(class MgInputCombobox
437
437
  // merge items from current page and next page
438
438
  const items = [...this.page.items, ...nextPage.items];
439
439
  // create new options pagination withe merged items
440
- this.options = new Yt(items, { total: nextPage.total, next: nextPage.next, top: items.length });
440
+ this.options = new er(items, { total: nextPage.total, next: nextPage.next, top: items.length });
441
441
  });
442
442
  }
443
443
  else {
444
- return Xt(() => {
444
+ return Qt(() => {
445
445
  if (typeof this.page.next === 'function') {
446
446
  const nextPage = this.page.next();
447
- this.page = new He(Object.assign(Object.assign({}, nextPage), { items: [...this.page.items, ...nextPage.items] }));
447
+ this.page = new Ge(Object.assign(Object.assign({}, nextPage), { items: [...this.page.items, ...nextPage.items] }));
448
448
  }
449
449
  });
450
450
  }
@@ -459,7 +459,7 @@ const MgInputCombobox$1 = /*@__PURE__*/ proxyCustomElement(class MgInputCombobox
459
459
  if (!Boolean(page))
460
460
  return;
461
461
  // reset current options pagination from API response
462
- this.options = new Yt(page.items, { total: page.total, next: page.next, top: page.top });
462
+ this.options = new er(page.items, { total: page.total, next: page.next, top: page.top });
463
463
  });
464
464
  }
465
465
  else {
@@ -478,12 +478,12 @@ const MgInputCombobox$1 = /*@__PURE__*/ proxyCustomElement(class MgInputCombobox
478
478
  const response = await fetch(updateUrl, this.fetchoptions).then(response => response.json());
479
479
  if (!response)
480
480
  return null;
481
- const items = qe(response, this.fetchmappings.response.items).map((item) => ({
482
- title: qe(item, this.fetchmappings.response.itemTitle),
483
- value: qe(item, this.fetchmappings.response.itemValue),
481
+ const items = Be(response, this.fetchmappings.response.items).map((item) => ({
482
+ title: Be(item, this.fetchmappings.response.itemTitle),
483
+ value: Be(item, this.fetchmappings.response.itemValue),
484
484
  }));
485
- const total = Number(qe(response, this.fetchmappings.response.total, 0));
486
- const next = mapUrl(qe(response, this.fetchmappings.response.next), this.fetchurl.toString());
485
+ const total = Number(Be(response, this.fetchmappings.response.total, 0));
486
+ const next = mapUrl(Be(response, this.fetchmappings.response.next), this.fetchurl.toString());
487
487
  return { items, total, next, top: items.length };
488
488
  }
489
489
  catch (_a) { }
@@ -499,22 +499,22 @@ const MgInputCombobox$1 = /*@__PURE__*/ proxyCustomElement(class MgInputCombobox
499
499
  return;
500
500
  }
501
501
  else if (Boolean(this.fetchurl) && Boolean(newValue)) {
502
- throw new Error(`<mg-input-combobox> prop "items" values cannot be use with "fetchurl" prop defined. Passed value: ${Gt(newValue)}.`);
502
+ throw new Error(`<mg-input-combobox> prop "items" values cannot be use with "fetchurl" prop defined. Passed value: ${Xt(newValue)}.`);
503
503
  }
504
504
  // Empty options
505
505
  else if (Array.isArray(newValue) && newValue.length === 0) {
506
- this.options = new Yt([]);
506
+ this.options = new er([]);
507
507
  }
508
508
  // String array
509
- else if (Dt(newValue)) {
510
- this.options = new Yt(newValue.map(item => ({ title: item, value: item })), { total: newValue.length });
509
+ else if (qt(newValue)) {
510
+ this.options = new er(newValue.map(item => ({ title: item, value: item })), { total: newValue.length });
511
511
  }
512
512
  // Object array
513
513
  else if (isItems(newValue)) {
514
- this.options = new Yt(newValue, { total: newValue.length });
514
+ this.options = new er(newValue, { total: newValue.length });
515
515
  }
516
516
  else {
517
- throw new Error(`<mg-input-combobox> prop "items" values must be the same type, string or Option. Passed value: ${Gt(newValue)}.`);
517
+ throw new Error(`<mg-input-combobox> prop "items" values must be the same type, string or Option. Passed value: ${Xt(newValue)}.`);
518
518
  }
519
519
  }
520
520
  watchIdentifier(newValue) {
@@ -555,16 +555,16 @@ const MgInputCombobox$1 = /*@__PURE__*/ proxyCustomElement(class MgInputCombobox
555
555
  // apply new width
556
556
  if (newValue !== undefined)
557
557
  this.classCollection.add(`mg-c-input--width-${this.mgWidth}`);
558
- this.classCollection = new Zt(this.classCollection.classes);
558
+ this.classCollection = new Ht(this.classCollection.classes);
559
559
  }
560
560
  watchFetchUrl(newValue) {
561
561
  if (newValue && !URL.canParse(newValue)) {
562
- throw new Error(`<mg-input-combobox> prop "fetchurl" value must be URL or string. Passed value: ${Gt(newValue)}.`);
562
+ throw new Error(`<mg-input-combobox> prop "fetchurl" value must be URL or string. Passed value: ${Xt(newValue)}.`);
563
563
  }
564
564
  }
565
565
  watchFetchOptions(newValue) {
566
- if (this.fetchurl && newValue && !ie(newValue)) {
567
- throw new Error(`<mg-input-combobox> prop "fetchoptions" value must be a valid RequestInit. Passed value: ${Gt(newValue)}.`);
566
+ if (this.fetchurl && newValue && !ne(newValue)) {
567
+ throw new Error(`<mg-input-combobox> prop "fetchoptions" value must be a valid RequestInit. Passed value: ${Xt(newValue)}.`);
568
568
  }
569
569
  else {
570
570
  new Request(this.fetchurl, newValue);
@@ -575,7 +575,7 @@ const MgInputCombobox$1 = /*@__PURE__*/ proxyCustomElement(class MgInputCombobox
575
575
  throw new Error(`<mg-input-combobox> prop "fetchmappings" is required with "fetchurl" prop.`);
576
576
  }
577
577
  else if (Boolean(newValue) && !isFetchmappings(newValue)) {
578
- throw new Error(`<mg-input-combobox> prop "fetchmappings" value must be { request: RequestMappingType, response: ResponseMappingType }. Passed value: ${Gt(newValue)}.`);
578
+ throw new Error(`<mg-input-combobox> prop "fetchmappings" value must be { request: RequestMappingType, response: ResponseMappingType }. Passed value: ${Xt(newValue)}.`);
579
579
  }
580
580
  }
581
581
  watchOptions(newValue) {
@@ -641,7 +641,7 @@ const MgInputCombobox$1 = /*@__PURE__*/ proxyCustomElement(class MgInputCombobox
641
641
  if (typeof valid !== 'boolean') {
642
642
  throw new Error('<mg-input-combobox> method "setError()" param "valid" must be a boolean.');
643
643
  }
644
- else if (!De(errorMessage)) {
644
+ else if (!qe(errorMessage)) {
645
645
  throw new Error('<mg-input-combobox> method "setError()" param "errorMessage" must be a string.');
646
646
  }
647
647
  else {
@@ -672,7 +672,7 @@ const MgInputCombobox$1 = /*@__PURE__*/ proxyCustomElement(class MgInputCombobox
672
672
  this.value = '';
673
673
  }
674
674
  else {
675
- this.value = Dt(this.items || this.options.items) ? newValue.title : Object.assign({}, newValue);
675
+ this.value = qt(this.items || this.options.items) ? newValue.title : Object.assign({}, newValue);
676
676
  }
677
677
  }
678
678
  /**
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
- import { Z as Zt, D as De, L as Lt, F as Ft, d as ar, e as ir, G as Gt } from './index.es.js';
2
+ import { H as Ht, q as qe, C as Ct, P as Pt, d as cr, l as lr, X as Xt } from './index.es.js';
3
3
  import { d as defineCustomElement$5, c as classReadonly, a as classDisabled } from './mg-input2.js';
4
4
  import { i as initLocales } from './index2.js';
5
5
  import { d as defineCustomElement$6 } from './mg-icon2.js';
@@ -57,13 +57,13 @@ const MgInputDate$1 = /*@__PURE__*/ proxyCustomElement(class MgInputDate extends
57
57
  /**
58
58
  * Component classes
59
59
  */
60
- this.classCollection = new Zt(['mg-c-input--date']);
60
+ this.classCollection = new Ht(['mg-c-input--date']);
61
61
  /**
62
62
  * Method to validate date pattern string
63
63
  * @param value - value to test
64
64
  * @returns truthy when value match the pattern
65
65
  */
66
- this.isValidPattern = (value) => De(value) && Lt.test(value);
66
+ this.isValidPattern = (value) => qe(value) && Ct.test(value);
67
67
  /**
68
68
  * Format help text to display
69
69
  * @param helpText - help text format
@@ -77,23 +77,23 @@ const MgInputDate$1 = /*@__PURE__*/ proxyCustomElement(class MgInputDate extends
77
77
  }
78
78
  const defaultHelpTextVariable = '{defaultHelpText}';
79
79
  // If a custom helpText is provided, store it but don't return it directly
80
- let text = De(helpText) ? helpText : this.messages.input.date.helpText.expectedFormat;
80
+ let text = qe(helpText) ? helpText : this.messages.input.date.helpText.expectedFormat;
81
81
  // Handle defaultHelpText
82
82
  if (text.includes(defaultHelpTextVariable)) {
83
83
  text = text.replace(defaultHelpTextVariable, this.formatHelpText(this.messages.input.date.helpText.expectedFormat));
84
84
  }
85
85
  // Replace pattern and date variables
86
- text = text.replace('{pattern}', this.renderPattern()).replace('{date}', Ft(ar(new Date('2025-12-24')), this.systemLocale));
86
+ text = text.replace('{pattern}', this.renderPattern()).replace('{date}', Pt(cr(new Date('2025-12-24')), this.systemLocale));
87
87
  // Add additional message for min/max if necessary
88
88
  let rangeMessage;
89
89
  if (((_a = this.min) === null || _a === void 0 ? void 0 : _a.length) > 0 && this.max !== DEFAULT_MAX_DATE) {
90
- rangeMessage = this.messages.input.date.helpText.minMax.replace('{min}', Ft(this.min, this.systemLocale)).replace('{max}', Ft(this.max, this.systemLocale));
90
+ rangeMessage = this.messages.input.date.helpText.minMax.replace('{min}', Pt(this.min, this.systemLocale)).replace('{max}', Pt(this.max, this.systemLocale));
91
91
  }
92
92
  else if (((_b = this.min) === null || _b === void 0 ? void 0 : _b.length) > 0) {
93
- rangeMessage = this.messages.input.date.helpText.min.replace('{min}', Ft(this.min, this.systemLocale));
93
+ rangeMessage = this.messages.input.date.helpText.min.replace('{min}', Pt(this.min, this.systemLocale));
94
94
  }
95
95
  else if (this.max !== DEFAULT_MAX_DATE) {
96
- rangeMessage = this.messages.input.date.helpText.max.replace('{max}', Ft(this.max, this.systemLocale));
96
+ rangeMessage = this.messages.input.date.helpText.max.replace('{max}', Pt(this.max, this.systemLocale));
97
97
  }
98
98
  // Combine custom helpText with range message if both exist
99
99
  if (text !== undefined && rangeMessage !== undefined) {
@@ -190,15 +190,15 @@ const MgInputDate$1 = /*@__PURE__*/ proxyCustomElement(class MgInputDate extends
190
190
  // min, max & minMax
191
191
  else if (['min', 'max', 'minMax'].includes(inputError)) {
192
192
  this.errorMessage = this.messages.input.date.helpText[inputError]
193
- .replace('{min}', Ft(this.min, this.systemLocale))
194
- .replace('{max}', Ft(this.max, this.systemLocale));
193
+ .replace('{min}', Pt(this.min, this.systemLocale))
194
+ .replace('{max}', Pt(this.max, this.systemLocale));
195
195
  }
196
196
  // wrong date format
197
197
  // element.validity.badInput is default error message
198
198
  else {
199
199
  this.errorMessage = this.messages.input.date.error.badInput
200
200
  .replace('{pattern}', this.renderPattern())
201
- .replace('{date}', Ft(ar(new Date('2025-12-24')), this.systemLocale));
201
+ .replace('{date}', Pt(cr(new Date('2025-12-24')), this.systemLocale));
202
202
  }
203
203
  }
204
204
  };
@@ -207,7 +207,7 @@ const MgInputDate$1 = /*@__PURE__*/ proxyCustomElement(class MgInputDate extends
207
207
  * @returns translated html pattern
208
208
  */
209
209
  this.renderPattern = () => {
210
- let patternLocal = ir(this.systemLocale);
210
+ let patternLocal = lr(this.systemLocale);
211
211
  for (const key in this.messages.input.date.pattern) {
212
212
  patternLocal = patternLocal.replace(key, this.messages.input.date.pattern[key]);
213
213
  }
@@ -222,9 +222,9 @@ const MgInputDate$1 = /*@__PURE__*/ proxyCustomElement(class MgInputDate extends
222
222
  // - `undefined` is not allowed in CustomEvent['detail']
223
223
  this.value = null;
224
224
  }
225
- else if (newValue && !De(newValue)) {
225
+ else if (newValue && !qe(newValue)) {
226
226
  // check value validity
227
- throw new Error(`<mg-input-date> props 'value' must be a valid string. Passed value: ${Gt(newValue)}.`);
227
+ throw new Error(`<mg-input-date> props 'value' must be a valid string. Passed value: ${Xt(newValue)}.`);
228
228
  }
229
229
  else if (newValue === null || this.isValidPattern(newValue)) {
230
230
  this.valueChange.emit(newValue);
@@ -241,7 +241,7 @@ const MgInputDate$1 = /*@__PURE__*/ proxyCustomElement(class MgInputDate extends
241
241
  }
242
242
  validateMinMax(newValue) {
243
243
  if (newValue && !this.isValidPattern(newValue)) {
244
- throw new Error(`<mg-input-date> props 'min/max' doesn't match pattern: 'yyyy-mm-dd'. Passed value: ${Gt(newValue)}.`);
244
+ throw new Error(`<mg-input-date> props 'min/max' doesn't match pattern: 'yyyy-mm-dd'. Passed value: ${Xt(newValue)}.`);
245
245
  }
246
246
  }
247
247
  handleValidityChange(newValue, _oldValue, prop) {
@@ -291,7 +291,7 @@ const MgInputDate$1 = /*@__PURE__*/ proxyCustomElement(class MgInputDate extends
291
291
  if (typeof valid !== 'boolean') {
292
292
  throw new Error('<mg-input-date> method "setError()" param "valid" must be a boolean.');
293
293
  }
294
- else if (!De(errorMessage)) {
294
+ else if (!qe(errorMessage)) {
295
295
  throw new Error('<mg-input-date> method "setError()" param "errorMessage" must be a string.');
296
296
  }
297
297
  else {
@@ -357,7 +357,7 @@ const MgInputDate$1 = /*@__PURE__*/ proxyCustomElement(class MgInputDate extends
357
357
  * @returns HTML Element
358
358
  */
359
359
  render() {
360
- return (h("mg-input", { key: '504777cb807b9747a6c854d7056cb5420eb2cdcf', label: this.label, identifier: this.identifier, class: this.classCollection.join(), ariaDescribedbyIDs: [], labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: this.required, tooltip: this.tooltip, tooltipPosition: this.readonly && this.value === null ? 'label' : this.tooltipPosition, helpText: this.formatHelpText(this.helpText), errorMessage: this.errorMessage }, this.readonly ? (this.value && h("b", { class: "mg-c-input__readonly-value" }, Ft(this.value, this.locale))) : (h("input", { type: "date", class: "mg-c-input__box", min: this.min, max: this.max, value: this.value, id: this.identifier, name: this.name, disabled: this.disabled, required: this.required, "aria-invalid": (this.invalid === true).toString(), onInput: this.handleInput, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, ref: (el) => {
360
+ return (h("mg-input", { key: '504777cb807b9747a6c854d7056cb5420eb2cdcf', label: this.label, identifier: this.identifier, class: this.classCollection.join(), ariaDescribedbyIDs: [], labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: this.required, tooltip: this.tooltip, tooltipPosition: this.readonly && this.value === null ? 'label' : this.tooltipPosition, helpText: this.formatHelpText(this.helpText), errorMessage: this.errorMessage }, this.readonly ? (this.value && h("b", { class: "mg-c-input__readonly-value" }, Pt(this.value, this.locale))) : (h("input", { type: "date", class: "mg-c-input__box", min: this.min, max: this.max, value: this.value, id: this.identifier, name: this.name, disabled: this.disabled, required: this.required, "aria-invalid": (this.invalid === true).toString(), onInput: this.handleInput, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, ref: (el) => {
361
361
  if (el !== null)
362
362
  this.input = el;
363
363
  } }))));
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
- import { Z as Zt, l as lr, f as fr, g as cr, o as or, D as De, G as Gt } from './index.es.js';
2
+ import { H as Ht, u as ur, g as gr, p as pr, f as fr, q as qe, X as Xt } from './index.es.js';
3
3
  import { d as defineCustomElement$5, c as classReadonly, a as classDisabled, w as widths } from './mg-input2.js';
4
4
  import { i as initLocales } from './index2.js';
5
5
  import { d as defineCustomElement$6 } from './mg-icon2.js';
@@ -83,7 +83,7 @@ const MgInputNumeric$1 = /*@__PURE__*/ proxyCustomElement(class MgInputNumeric e
83
83
  /**
84
84
  * Component classes
85
85
  */
86
- this.classCollection = new Zt(['mg-c-input--numeric']);
86
+ this.classCollection = new Ht(['mg-c-input--numeric']);
87
87
  /**
88
88
  * Handle input event
89
89
  */
@@ -126,7 +126,7 @@ const MgInputNumeric$1 = /*@__PURE__*/ proxyCustomElement(class MgInputNumeric e
126
126
  * @param value - value to format
127
127
  * @returns formatted value according to locale
128
128
  */
129
- this.formatErrorValue = (value) => lr(value, this.locale, !Number.isInteger(value) && this.type === 'decimal' ? this.decimalLength : 0);
129
+ this.formatErrorValue = (value) => ur(value, this.locale, !Number.isInteger(value) && this.type === 'decimal' ? this.decimalLength : 0);
130
130
  /**
131
131
  * Set input error message
132
132
  * @param errorMessage - errorMessage override
@@ -181,13 +181,13 @@ const MgInputNumeric$1 = /*@__PURE__*/ proxyCustomElement(class MgInputNumeric e
181
181
  this.formatValue = (value) => {
182
182
  switch (this.format) {
183
183
  case 'number':
184
- return lr(value, this.locale, this.type === 'decimal' ? this.decimalLength : undefined);
184
+ return ur(value, this.locale, this.type === 'decimal' ? this.decimalLength : undefined);
185
185
  case 'currency':
186
- return or(value, this.locale, this.currency);
186
+ return fr(value, this.locale, this.currency);
187
187
  case 'percent':
188
- return cr(value / 100, this.locale, this.type === 'decimal' ? this.decimalLength : undefined);
188
+ return pr(value / 100, this.locale, this.type === 'decimal' ? this.decimalLength : undefined);
189
189
  case 'unit':
190
- return fr(value, this.locale, this.unit, this.unitDisplay, this.type === 'decimal' ? this.decimalLength : undefined);
190
+ return gr(value, this.locale, this.unit, this.unitDisplay, this.type === 'decimal' ? this.decimalLength : undefined);
191
191
  case 'none':
192
192
  return value.toString();
193
193
  }
@@ -218,7 +218,7 @@ const MgInputNumeric$1 = /*@__PURE__*/ proxyCustomElement(class MgInputNumeric e
218
218
  return undefined;
219
219
  }
220
220
  // If a custom helpText is provided, store it but don't return it directly
221
- const text = De(helpText) ? helpText : undefined;
221
+ const text = qe(helpText) ? helpText : undefined;
222
222
  // If neither min nor max are defined, and there's no custom helpText,
223
223
  // we can return undefined as there's no message to display
224
224
  if (this.min === undefined && this.max === undefined && text === undefined) {
@@ -302,22 +302,22 @@ const MgInputNumeric$1 = /*@__PURE__*/ proxyCustomElement(class MgInputNumeric e
302
302
  }
303
303
  validateType(newValue) {
304
304
  if (!types.includes(newValue)) {
305
- throw new Error(`<mg-input-numeric> prop "type" must be one of: ${types.join(', ')}. Passed value: ${Gt(newValue)}.`);
305
+ throw new Error(`<mg-input-numeric> prop "type" must be one of: ${types.join(', ')}. Passed value: ${Xt(newValue)}.`);
306
306
  }
307
307
  }
308
308
  watchFormat(newValue) {
309
309
  if (!formats.includes(newValue)) {
310
- throw new Error(`<mg-input-numeric> prop "format" must be one of: ${formats.join(', ')}. Passed value: ${Gt(newValue)}.`);
310
+ throw new Error(`<mg-input-numeric> prop "format" must be one of: ${formats.join(', ')}. Passed value: ${Xt(newValue)}.`);
311
311
  }
312
312
  }
313
313
  validateIntegerLength(newValue) {
314
314
  if (newValue < 1) {
315
- throw new Error(`<mg-input-numeric> prop "integer-length" must be a positive number. Passed value: ${Gt(newValue)}.`);
315
+ throw new Error(`<mg-input-numeric> prop "integer-length" must be a positive number. Passed value: ${Xt(newValue)}.`);
316
316
  }
317
317
  }
318
318
  validateDecimalLength(newValue) {
319
319
  if (newValue < 1) {
320
- throw new Error(`<mg-input-numeric> prop "decimal-length" must be a positive number, consider using prop "type" to "integer" instead. Passed value: ${Gt(newValue)}.`);
320
+ throw new Error(`<mg-input-numeric> prop "decimal-length" must be a positive number, consider using prop "type" to "integer" instead. Passed value: ${Xt(newValue)}.`);
321
321
  }
322
322
  }
323
323
  /**
@@ -351,7 +351,7 @@ const MgInputNumeric$1 = /*@__PURE__*/ proxyCustomElement(class MgInputNumeric e
351
351
  if (typeof valid !== 'boolean') {
352
352
  throw new Error('<mg-input-numeric> method "setError()" param "valid" must be a boolean.');
353
353
  }
354
- else if (!De(errorMessage)) {
354
+ else if (!qe(errorMessage)) {
355
355
  throw new Error('<mg-input-numeric> method "setError()" param "errorMessage" must be a string.');
356
356
  }
357
357
  else {
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
- import { Z as Zt, D as De } from './index.es.js';
2
+ import { H as Ht, q as qe } from './index.es.js';
3
3
  import { d as defineCustomElement$5, c as classReadonly, a as classDisabled, w as widths } from './mg-input2.js';
4
4
  import { i as initLocales } from './index2.js';
5
5
  import { d as defineCustomElement$7 } from './mg-button2.js';
@@ -55,7 +55,7 @@ const MgInputPassword$1 = /*@__PURE__*/ proxyCustomElement(class MgInputPassword
55
55
  /**
56
56
  * Component classes
57
57
  */
58
- this.classCollection = new Zt(['mg-c-input--password']);
58
+ this.classCollection = new Ht(['mg-c-input--password']);
59
59
  /**
60
60
  * Indicates if password is displayed or not
61
61
  */
@@ -175,7 +175,7 @@ const MgInputPassword$1 = /*@__PURE__*/ proxyCustomElement(class MgInputPassword
175
175
  if (typeof valid !== 'boolean') {
176
176
  throw new Error('<mg-input-password> method "setError()" param "valid" must be a boolean.');
177
177
  }
178
- else if (!De(errorMessage)) {
178
+ else if (!qe(errorMessage)) {
179
179
  throw new Error('<mg-input-password> method "setError()" param "errorMessage" must be a string.');
180
180
  }
181
181
  else {