@mgdis/mg-components 6.4.0 → 6.5.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 (132) hide show
  1. package/dist/cjs/{index-911898e4.js → index-1a5a1081.js} +266 -241
  2. package/dist/cjs/index-1a5a1081.js.map +1 -0
  3. package/dist/cjs/{index-a3269bfc.js → index-ede3b3dc.js} +3 -3
  4. package/dist/cjs/{index-a3269bfc.js.map → index-ede3b3dc.js.map} +1 -1
  5. package/dist/cjs/{index.es-325100d7.js → index.es-a112f649.js} +36 -36
  6. package/dist/cjs/index.es-a112f649.js.map +1 -0
  7. package/dist/cjs/loader.cjs.js +2 -2
  8. package/dist/cjs/mg-action-more_36.cjs.entry.js +2260 -1872
  9. package/dist/cjs/mg-action-more_36.cjs.entry.js.map +1 -1
  10. package/dist/cjs/mg-alert.cjs.entry.js +7 -7
  11. package/dist/cjs/mg-components.cjs.js +3 -3
  12. package/dist/cjs/mg-components.cjs.js.map +1 -1
  13. package/dist/cjs/mg-loader.cjs.entry.js +5 -5
  14. package/dist/cjs/mg-progress.cjs.entry.js +11 -11
  15. package/dist/collection/collection-manifest.json +1 -1
  16. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.conf.js +1 -0
  17. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.conf.js.map +1 -1
  18. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +68 -38
  19. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js.map +1 -1
  20. package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.js +14 -6
  21. package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.js.map +1 -1
  22. package/dist/collection/components/molecules/mg-details/mg-details.js +6 -1
  23. package/dist/collection/components/molecules/mg-details/mg-details.js.map +1 -1
  24. package/dist/collection/components/molecules/mg-popover/mg-popover.conf.js +2 -0
  25. package/dist/collection/components/molecules/mg-popover/mg-popover.conf.js.map +1 -0
  26. package/dist/collection/components/molecules/mg-popover/mg-popover.js +90 -46
  27. package/dist/collection/components/molecules/mg-popover/mg-popover.js.map +1 -1
  28. package/dist/collection/utils/floating-ui.utils.js +33 -0
  29. package/dist/collection/utils/floating-ui.utils.js.map +1 -0
  30. package/dist/components/floating-ui.utils.js +2099 -0
  31. package/dist/components/floating-ui.utils.js.map +1 -0
  32. package/dist/components/index.es.js +29 -29
  33. package/dist/components/index.es.js.map +1 -1
  34. package/dist/components/index2.js +2 -2
  35. package/dist/components/mg-action-more.js +6 -6
  36. package/dist/components/mg-alert.js +5 -5
  37. package/dist/components/mg-badge2.js +6 -6
  38. package/dist/components/mg-button2.js +6 -6
  39. package/dist/components/mg-card2.js +1 -1
  40. package/dist/components/mg-card2.js.map +1 -1
  41. package/dist/components/mg-character-left2.js +4 -4
  42. package/dist/components/mg-details.js +8 -3
  43. package/dist/components/mg-details.js.map +1 -1
  44. package/dist/components/mg-form.js +7 -7
  45. package/dist/components/mg-icon2.js +6 -6
  46. package/dist/components/mg-illustrated-message.js +2 -2
  47. package/dist/components/mg-input-checkbox.js +9 -9
  48. package/dist/components/mg-input-date.js +13 -13
  49. package/dist/components/mg-input-numeric.js +12 -12
  50. package/dist/components/mg-input-password.js +3 -3
  51. package/dist/components/mg-input-radio.js +7 -7
  52. package/dist/components/mg-input-select2.js +7 -7
  53. package/dist/components/mg-input-text2.js +9 -9
  54. package/dist/components/mg-input-textarea.js +7 -7
  55. package/dist/components/mg-input-title2.js +4 -4
  56. package/dist/components/mg-input-toggle.js +6 -6
  57. package/dist/components/mg-input2.js +8 -8
  58. package/dist/components/mg-item-more2.js +8 -8
  59. package/dist/components/mg-item-more2.js.map +1 -1
  60. package/dist/components/mg-loader.js +3 -3
  61. package/dist/components/mg-menu-item2.js +24 -16
  62. package/dist/components/mg-menu-item2.js.map +1 -1
  63. package/dist/components/mg-message2.js +5 -5
  64. package/dist/components/mg-message2.js.map +1 -1
  65. package/dist/components/mg-modal.js +9 -9
  66. package/dist/components/mg-modal.js.map +1 -1
  67. package/dist/components/mg-pagination2.js +6 -6
  68. package/dist/components/mg-panel.js +10 -10
  69. package/dist/components/mg-panel.js.map +1 -1
  70. package/dist/components/mg-popover-content2.js +4 -4
  71. package/dist/components/mg-popover-content2.js.map +1 -1
  72. package/dist/components/mg-popover2.js +89 -47
  73. package/dist/components/mg-popover2.js.map +1 -1
  74. package/dist/components/mg-progress.js +10 -10
  75. package/dist/components/mg-skip-links.js +2 -2
  76. package/dist/components/mg-tabs.js +12 -12
  77. package/dist/components/mg-tag.js +4 -4
  78. package/dist/components/mg-tooltip-content2.js +1 -1
  79. package/dist/components/mg-tooltip-content2.js.map +1 -1
  80. package/dist/components/mg-tooltip2.js +71 -42
  81. package/dist/components/mg-tooltip2.js.map +1 -1
  82. package/dist/esm/{index-1f32332a.js → index-5059254f.js} +266 -241
  83. package/dist/esm/index-5059254f.js.map +1 -0
  84. package/dist/esm/{index-9bd10f5d.js → index-a7c3b5c5.js} +3 -3
  85. package/dist/esm/{index-9bd10f5d.js.map → index-a7c3b5c5.js.map} +1 -1
  86. package/dist/esm/{index.es-a2587b72.js → index.es-5e0101ac.js} +30 -30
  87. package/dist/esm/index.es-5e0101ac.js.map +1 -0
  88. package/dist/esm/loader.js +3 -3
  89. package/dist/esm/mg-action-more_36.entry.js +2260 -1872
  90. package/dist/esm/mg-action-more_36.entry.js.map +1 -1
  91. package/dist/esm/mg-alert.entry.js +7 -7
  92. package/dist/esm/mg-components.js +4 -4
  93. package/dist/esm/mg-components.js.map +1 -1
  94. package/dist/esm/mg-loader.entry.js +5 -5
  95. package/dist/esm/mg-progress.entry.js +11 -11
  96. package/dist/mg-components/mg-components.esm.js +1 -1
  97. package/dist/mg-components/mg-components.esm.js.map +1 -1
  98. package/dist/mg-components/{p-0ead5317.entry.js → p-1a162791.entry.js} +2 -2
  99. package/dist/mg-components/{p-f48d964f.entry.js → p-2403e01d.entry.js} +2 -2
  100. package/dist/mg-components/p-6c831a83.entry.js +2 -0
  101. package/dist/mg-components/p-6c831a83.entry.js.map +1 -0
  102. package/dist/mg-components/{p-3b052ac0.entry.js → p-ad64ab4a.entry.js} +2 -2
  103. package/dist/mg-components/{p-b986c107.js → p-b6c1a6ce.js} +2 -2
  104. package/dist/mg-components/p-b6c1a6ce.js.map +1 -0
  105. package/dist/mg-components/{p-dc436f3c.js → p-d9731ebc.js} +2 -2
  106. package/dist/mg-components/p-e39791fa.js +3 -0
  107. package/dist/mg-components/p-e39791fa.js.map +1 -0
  108. package/dist/types/components/atoms/mg-tooltip/mg-tooltip.conf.d.ts +6 -0
  109. package/dist/types/components/atoms/mg-tooltip/mg-tooltip.d.ts +7 -6
  110. package/dist/types/components/molecules/menu/mg-menu-item/mg-menu-item.d.ts +10 -4
  111. package/dist/types/components/molecules/mg-details/mg-details.d.ts +4 -0
  112. package/dist/types/components/molecules/mg-popover/mg-popover.conf.d.ts +6 -0
  113. package/dist/types/components/molecules/mg-popover/mg-popover.d.ts +13 -8
  114. package/dist/types/components.d.ts +8 -6
  115. package/dist/types/utils/floating-ui.utils.d.ts +19 -0
  116. package/ide/intellij/web-types.json +1 -1
  117. package/package.json +21 -21
  118. package/dist/cjs/index-911898e4.js.map +0 -1
  119. package/dist/cjs/index.es-325100d7.js.map +0 -1
  120. package/dist/components/popper.js +0 -1794
  121. package/dist/components/popper.js.map +0 -1
  122. package/dist/esm/index-1f32332a.js.map +0 -1
  123. package/dist/esm/index.es-a2587b72.js.map +0 -1
  124. package/dist/mg-components/p-35898742.js +0 -3
  125. package/dist/mg-components/p-35898742.js.map +0 -1
  126. package/dist/mg-components/p-6810a565.entry.js +0 -2
  127. package/dist/mg-components/p-6810a565.entry.js.map +0 -1
  128. package/dist/mg-components/p-b986c107.js.map +0 -1
  129. /package/dist/mg-components/{p-0ead5317.entry.js.map → p-1a162791.entry.js.map} +0 -0
  130. /package/dist/mg-components/{p-f48d964f.entry.js.map → p-2403e01d.entry.js.map} +0 -0
  131. /package/dist/mg-components/{p-3b052ac0.entry.js.map → p-ad64ab4a.entry.js.map} +0 -0
  132. /package/dist/mg-components/{p-dc436f3c.js.map → p-d9731ebc.js.map} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement } from '@stencil/core/internal/client';
2
- import { G as Ge, J as Je } from './index.es.js';
2
+ import { K as Ke, V as Ve } from './index.es.js';
3
3
 
4
4
  /**
5
5
  * List of all possibles sizes
@@ -35,7 +35,7 @@ const MgIcon = /*@__PURE__*/ proxyCustomElement(class MgIcon extends HTMLElement
35
35
  /**
36
36
  * Component classes
37
37
  */
38
- this.classCollection = new Ge(['mg-c-icon']);
38
+ this.classCollection = new Ke(['mg-c-icon']);
39
39
  /**
40
40
  * Method to set default varianStyle props
41
41
  * needeed has stencil doesn't know that props is mutated when updated in prop watcher
@@ -59,7 +59,7 @@ const MgIcon = /*@__PURE__*/ proxyCustomElement(class MgIcon extends HTMLElement
59
59
  }
60
60
  validateIcon(newValue, oldValue) {
61
61
  if (!Object.keys(icons).includes(newValue))
62
- throw new Error(`<mg-icon> prop "icon" must be one of: ${Object.keys(icons).join(', ')}. Passed value: ${Je(newValue)}.`);
62
+ throw new Error(`<mg-icon> prop "icon" must be one of: ${Object.keys(icons).join(', ')}. Passed value: ${Ve(newValue)}.`);
63
63
  else {
64
64
  if (oldValue !== undefined)
65
65
  this.classCollection.delete(`mg-c-icon--${oldValue}`);
@@ -69,7 +69,7 @@ const MgIcon = /*@__PURE__*/ proxyCustomElement(class MgIcon extends HTMLElement
69
69
  }
70
70
  validateSize(newValue, oldValue) {
71
71
  if (!sizes.includes(newValue))
72
- throw new Error(`<mg-icon> prop "size" must be one of: ${sizes.join(', ')}. Passed value: ${Je(newValue)}.`);
72
+ throw new Error(`<mg-icon> prop "size" must be one of: ${sizes.join(', ')}. Passed value: ${Ve(newValue)}.`);
73
73
  else {
74
74
  if (oldValue !== undefined)
75
75
  this.classCollection.delete(`mg-c-icon--size-${oldValue}`);
@@ -79,7 +79,7 @@ const MgIcon = /*@__PURE__*/ proxyCustomElement(class MgIcon extends HTMLElement
79
79
  validateVariant(newValue, oldValue) {
80
80
  if (newValue !== undefined) {
81
81
  if (!variants.includes(newValue))
82
- throw new Error(`<mg-icon> prop "variant" must be one of: ${variants.join(', ')}. Passed value: ${Je(newValue)}.`);
82
+ throw new Error(`<mg-icon> prop "variant" must be one of: ${variants.join(', ')}. Passed value: ${Ve(newValue)}.`);
83
83
  else {
84
84
  this.setDefaultVariantStyle();
85
85
  if (oldValue !== undefined)
@@ -91,7 +91,7 @@ const MgIcon = /*@__PURE__*/ proxyCustomElement(class MgIcon extends HTMLElement
91
91
  validateVariantStyle(newValue, oldValue) {
92
92
  if (newValue !== undefined) {
93
93
  if (!variantStyles.includes(newValue))
94
- throw new Error(`<mg-icon> prop "variantStyle" must be one of: ${variantStyles.join(', ')}. Passed value: ${Je(newValue)}.`);
94
+ throw new Error(`<mg-icon> prop "variantStyle" must be one of: ${variantStyles.join(', ')}. Passed value: ${Ve(newValue)}.`);
95
95
  else {
96
96
  if (oldValue !== undefined)
97
97
  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 { K as Ke } from './index.es.js';
2
+ import { Z as Ze } from './index.es.js';
3
3
 
4
4
  const mgIllustratedMessageCss = "/*!\n * @prop --mg-c-illustrated-message-spacing-vertical: Defines the vertical padding of the illustrated message. Default value: `--mg-b-size-40`.\n */.mg-c-illustrated-message{display:flex;max-width:calc(60*var(--mg-b-size-8));box-sizing:border-box;flex-direction:column;justify-content:center;padding:var(--mg-c-illustrated-message-spacing-vertical) var(--mg-b-size-16);margin:auto;gap:var(--mg-b-size-32) var(--mg-b-size-64);text-align:center}.mg-c-illustrated-message__illustration{max-height:calc(23*var(--mg-b-size-8))}.mg-c-illustrated-message__illustration ::slotted([slot=illustration]){width:100%;max-width:100%;height:auto;max-height:calc(23*var(--mg-b-size-8))}.mg-c-illustrated-message__illustration.mg-c-illustrated-message__illustration--small{max-height:var(--mg-b-size-64)}.mg-c-illustrated-message__illustration.mg-c-illustrated-message__illustration--small ::slotted([slot=illustration]){max-height:var(--mg-b-size-64)}.mg-c-illustrated-message.mg-c-illustrated-message--horizontal{max-width:unset;flex-flow:row wrap;align-items:center}.mg-c-illustrated-message.mg-c-illustrated-message--horizontal .mg-c-illustrated-message__slots,.mg-c-illustrated-message.mg-c-illustrated-message--horizontal .mg-c-illustrated-message__illustration{max-width:calc(60*var(--mg-b-size-8))}.mg-c-illustrated-message__title ::slotted([slot=title]){margin:0;font-family:var(--mg-b-font-family) !important;font-size:var(--mg-b-font-size-h2) !important;font-weight:400 !important}.mg-c-illustrated-message__details ::slotted([slot=details]){margin:var(--mg-b-size-16) 0 0}";
5
5
  const MgIllustratedMessageStyle0 = mgIllustratedMessageCss;
@@ -27,7 +27,7 @@ const MgIllustratedMessage$1 = /*@__PURE__*/ proxyCustomElement(class MgIllustra
27
27
  componentDidLoad() {
28
28
  const headingTags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
29
29
  const slottedIllustrations = this.element.querySelectorAll('[slot="illustration"]');
30
- if (!Ke(this.element.querySelector('[slot="title"]'), headingTags)) {
30
+ if (!Ze(this.element.querySelector('[slot="title"]'), headingTags)) {
31
31
  throw new Error(`<mg-illustrated-message> Slotted title must be a heading: ${headingTags.join(', ')}.`);
32
32
  }
33
33
  else if (slottedIllustrations.length !== 1) {
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
- import { G as Ge, V as Ve, y as ye, J as Je } from './index.es.js';
2
+ import { K as Ke, t as tt, m as me, V as Ve } from './index.es.js';
3
3
  import { d as defineCustomElement$a, S as SectionKind, M as MgInputCheckboxList, c as checkboxTypes } from './mg-input-checkbox-paginated2.js';
4
4
  import { d as defineCustomElement$b, c as classFieldset, a as classVerticalList, b as classReadonly, e as classDisabled } from './mg-input2.js';
5
5
  import { i as initLocales } from './index2.js';
@@ -78,7 +78,7 @@ const MgInputCheckbox$1 = /*@__PURE__*/ proxyCustomElement(class MgInputCheckbox
78
78
  /**
79
79
  * Component classes
80
80
  */
81
- this.classCollection = new Ge([this.baseClassName, classFieldset]);
81
+ this.classCollection = new Ke([this.baseClassName, classFieldset]);
82
82
  /**
83
83
  * Formated value to display in list
84
84
  */
@@ -196,7 +196,7 @@ const MgInputCheckbox$1 = /*@__PURE__*/ proxyCustomElement(class MgInputCheckbox
196
196
  * Method to update searchResults
197
197
  */
198
198
  this.updateSearchResults = () => {
199
- this.searchResults = this.checkboxItems.filter(item => Ve(item.title).includes(Ve(this.searchValue)));
199
+ this.searchResults = this.checkboxItems.filter(item => tt(item.title).includes(tt(this.searchValue)));
200
200
  };
201
201
  /**
202
202
  * Method to validate if one of inputs value is checked id required
@@ -228,13 +228,13 @@ const MgInputCheckbox$1 = /*@__PURE__*/ proxyCustomElement(class MgInputCheckbox
228
228
  * @returns message to display
229
229
  */
230
230
  this.getSelectValuesButtonMessage = () => {
231
- if (this.selectValuesButtonKey === 'editButton' && ye(this.editButtonMessage)) {
231
+ if (this.selectValuesButtonKey === 'editButton' && me(this.editButtonMessage)) {
232
232
  return this.editButtonMessage;
233
233
  }
234
- else if (this.selectValuesButtonKey === 'showButton' && ye(this.showButtonMessage)) {
234
+ else if (this.selectValuesButtonKey === 'showButton' && me(this.showButtonMessage)) {
235
235
  return this.showButtonMessage;
236
236
  }
237
- else if (this.selectValuesButtonKey === 'selectButton' && ye(this.selectButtonMessage)) {
237
+ else if (this.selectValuesButtonKey === 'selectButton' && me(this.selectButtonMessage)) {
238
238
  return this.selectButtonMessage;
239
239
  }
240
240
  else {
@@ -290,12 +290,12 @@ const MgInputCheckbox$1 = /*@__PURE__*/ proxyCustomElement(class MgInputCheckbox
290
290
  this.valueChange.emit(newValue);
291
291
  }
292
292
  else {
293
- throw new Error(`<mg-input-checkbox> prop "value" is required and all values must be the same type, CheckboxItem. Passed value: ${Je(newValue)}.`);
293
+ throw new Error(`<mg-input-checkbox> prop "value" is required and all values must be the same type, CheckboxItem. Passed value: ${Ve(newValue)}.`);
294
294
  }
295
295
  }
296
296
  validateType(newValue) {
297
297
  if (newValue !== undefined && !checkboxTypes.includes(newValue)) {
298
- throw new Error(`<mg-input-checkbox> prop "type" must be a CheckboxType. Passed value: ${Je(newValue)}.`);
298
+ throw new Error(`<mg-input-checkbox> prop "type" must be a CheckboxType. Passed value: ${Ve(newValue)}.`);
299
299
  }
300
300
  else if (newValue === undefined) {
301
301
  this.mode = 'auto';
@@ -395,7 +395,7 @@ const MgInputCheckbox$1 = /*@__PURE__*/ proxyCustomElement(class MgInputCheckbox
395
395
  if (typeof valid !== 'boolean') {
396
396
  throw new Error('<mg-input-checkbox> method "setError()" param "valid" must be a boolean.');
397
397
  }
398
- else if (!ye(errorMessage)) {
398
+ else if (!me(errorMessage)) {
399
399
  throw new Error('<mg-input-checkbox> method "setError()" param "errorMessage" must be a string.');
400
400
  }
401
401
  else {
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
- import { G as Ge, y as ye, B as Be, P as Pe, c as ct, a as at, J as Je } from './index.es.js';
2
+ import { K as Ke, m as me, q as qe, W as We, u as ut, f as ft, V as Ve } from './index.es.js';
3
3
  import { d as defineCustomElement$5, b as classReadonly, e 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';
@@ -52,13 +52,13 @@ const MgInputDate$1 = /*@__PURE__*/ proxyCustomElement(class MgInputDate extends
52
52
  /**
53
53
  * Component classes
54
54
  */
55
- this.classCollection = new Ge(['mg-c-input--date']);
55
+ this.classCollection = new Ke(['mg-c-input--date']);
56
56
  /**
57
57
  * Method to validate date pattern string
58
58
  * @param value - value to test
59
59
  * @returns truthy when value match the pattern
60
60
  */
61
- this.isValidPattern = (value) => ye(value) && Be.test(value);
61
+ this.isValidPattern = (value) => me(value) && qe.test(value);
62
62
  /**
63
63
  * Format help text to display
64
64
  * @param helpText - help text format
@@ -66,10 +66,10 @@ const MgInputDate$1 = /*@__PURE__*/ proxyCustomElement(class MgInputDate extends
66
66
  */
67
67
  this.formatHelpText = (helpText) => {
68
68
  const defaultHelpTextVariable = '{defaultHelpText}';
69
- let text = ye(helpText) ? helpText : this.messages.input.date.helpText;
69
+ let text = me(helpText) ? helpText : this.messages.input.date.helpText;
70
70
  if (text.includes(defaultHelpTextVariable))
71
71
  text = text.replace(defaultHelpTextVariable, this.formatHelpText(this.messages.input.date.helpText));
72
- return text.replace('{pattern}', this.renderPattern()).replace('{date}', Pe(ct(new Date('2023-12-24')), this.systemLocale));
72
+ return text.replace('{pattern}', this.renderPattern()).replace('{date}', We(ut(new Date('2023-12-24')), this.systemLocale));
73
73
  };
74
74
  /**
75
75
  * Handle input event
@@ -161,8 +161,8 @@ const MgInputDate$1 = /*@__PURE__*/ proxyCustomElement(class MgInputDate extends
161
161
  // min, max & minMax
162
162
  else if (['min', 'max', 'minMax'].includes(inputError)) {
163
163
  this.errorMessage = this.messages.errors.date[inputError]
164
- .replace('{min}', Pe(this.min, this.systemLocale))
165
- .replace('{max}', Pe(this.max, this.systemLocale));
164
+ .replace('{min}', We(this.min, this.systemLocale))
165
+ .replace('{max}', We(this.max, this.systemLocale));
166
166
  }
167
167
  // wrong date format
168
168
  // element.validity.badInput is default error message
@@ -176,7 +176,7 @@ const MgInputDate$1 = /*@__PURE__*/ proxyCustomElement(class MgInputDate extends
176
176
  * @returns translated html pattern
177
177
  */
178
178
  this.renderPattern = () => {
179
- let patternLocal = at(this.systemLocale);
179
+ let patternLocal = ft(this.systemLocale);
180
180
  for (const key in this.messages.input.date.pattern) {
181
181
  patternLocal = patternLocal.replace(key, this.messages.input.date.pattern[key]);
182
182
  }
@@ -191,9 +191,9 @@ const MgInputDate$1 = /*@__PURE__*/ proxyCustomElement(class MgInputDate extends
191
191
  // - `undefined` is not allowed in CustomEvent['detail']
192
192
  this.value = null;
193
193
  }
194
- else if (newValue && !ye(newValue)) {
194
+ else if (newValue && !me(newValue)) {
195
195
  // check value validity
196
- throw new Error(`<mg-input-date> props 'value' must be a valid string. Passed value: ${Je(newValue)}.`);
196
+ throw new Error(`<mg-input-date> props 'value' must be a valid string. Passed value: ${Ve(newValue)}.`);
197
197
  }
198
198
  else if (newValue === null || this.isValidPattern(newValue)) {
199
199
  this.valueChange.emit(newValue);
@@ -210,7 +210,7 @@ const MgInputDate$1 = /*@__PURE__*/ proxyCustomElement(class MgInputDate extends
210
210
  }
211
211
  validateMinMax(newValue) {
212
212
  if (newValue && !this.isValidPattern(newValue)) {
213
- throw new Error(`<mg-input-date> props 'min/max' doesn't match pattern: 'yyyy-mm-dd'. Passed value: ${Je(newValue)}.`);
213
+ throw new Error(`<mg-input-date> props 'min/max' doesn't match pattern: 'yyyy-mm-dd'. Passed value: ${Ve(newValue)}.`);
214
214
  }
215
215
  }
216
216
  handleValidityChange(newValue, _oldValue, prop) {
@@ -260,7 +260,7 @@ const MgInputDate$1 = /*@__PURE__*/ proxyCustomElement(class MgInputDate extends
260
260
  if (typeof valid !== 'boolean') {
261
261
  throw new Error('<mg-input-date> method "setError()" param "valid" must be a boolean.');
262
262
  }
263
- else if (!ye(errorMessage)) {
263
+ else if (!me(errorMessage)) {
264
264
  throw new Error('<mg-input-date> method "setError()" param "errorMessage" must be a string.');
265
265
  }
266
266
  else {
@@ -326,7 +326,7 @@ const MgInputDate$1 = /*@__PURE__*/ proxyCustomElement(class MgInputDate extends
326
326
  * @returns HTML Element
327
327
  */
328
328
  render() {
329
- return (h("mg-input", { key: '09d07883b178cd1196c2be110c8fcfdde8fef01d', 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" }, Pe(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) => {
329
+ return (h("mg-input", { key: '09d07883b178cd1196c2be110c8fcfdde8fef01d', 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" }, We(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) => {
330
330
  if (el !== null)
331
331
  this.input = el;
332
332
  } }))));
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
- import { G as Ge, u as ut, $ as $t, d as dt, f as ft, J as Je, y as ye } from './index.es.js';
2
+ import { K as Ke, $ as $t, g as gt, p as pt, d as dt, V as Ve, m as me } from './index.es.js';
3
3
  import { d as defineCustomElement$5, b as classReadonly, e 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';
@@ -80,7 +80,7 @@ const MgInputNumeric$1 = /*@__PURE__*/ proxyCustomElement(class MgInputNumeric e
80
80
  /**
81
81
  * Component classes
82
82
  */
83
- this.classCollection = new Ge(['mg-c-input--numeric']);
83
+ this.classCollection = new Ke(['mg-c-input--numeric']);
84
84
  /**
85
85
  * Handle input event
86
86
  */
@@ -123,7 +123,7 @@ const MgInputNumeric$1 = /*@__PURE__*/ proxyCustomElement(class MgInputNumeric e
123
123
  * @param value - value to format
124
124
  * @returns formatted value according to locale
125
125
  */
126
- this.formatErrorValue = (value) => ut(value, this.locale, !Number.isInteger(value) && this.type === 'decimal' ? this.decimalLength : 0);
126
+ this.formatErrorValue = (value) => $t(value, this.locale, !Number.isInteger(value) && this.type === 'decimal' ? this.decimalLength : 0);
127
127
  /**
128
128
  * Set input error message
129
129
  * @param errorMessage - errorMessage override
@@ -180,13 +180,13 @@ const MgInputNumeric$1 = /*@__PURE__*/ proxyCustomElement(class MgInputNumeric e
180
180
  this.formatValue = (value) => {
181
181
  switch (this.format) {
182
182
  case 'number':
183
- return ut(value, this.locale, this.type === 'decimal' ? this.decimalLength : undefined);
183
+ return $t(value, this.locale, this.type === 'decimal' ? this.decimalLength : undefined);
184
184
  case 'currency':
185
- return ft(value, this.locale, this.currency);
185
+ return dt(value, this.locale, this.currency);
186
186
  case 'percent':
187
- return dt(value / 100, this.locale, this.type === 'decimal' ? this.decimalLength : undefined);
187
+ return pt(value / 100, this.locale, this.type === 'decimal' ? this.decimalLength : undefined);
188
188
  case 'unit':
189
- return $t(value, this.locale, this.unit, this.unitDisplay, this.type === 'decimal' ? this.decimalLength : undefined);
189
+ return gt(value, this.locale, this.unit, this.unitDisplay, this.type === 'decimal' ? this.decimalLength : undefined);
190
190
  case 'none':
191
191
  return value.toString();
192
192
  }
@@ -265,22 +265,22 @@ const MgInputNumeric$1 = /*@__PURE__*/ proxyCustomElement(class MgInputNumeric e
265
265
  }
266
266
  validateType(newValue) {
267
267
  if (!types.includes(newValue)) {
268
- throw new Error(`<mg-input-numeric> prop "type" must be one of: ${types.join(', ')}. Passed value: ${Je(newValue)}.`);
268
+ throw new Error(`<mg-input-numeric> prop "type" must be one of: ${types.join(', ')}. Passed value: ${Ve(newValue)}.`);
269
269
  }
270
270
  }
271
271
  watchFormat(newValue) {
272
272
  if (!formats.includes(newValue)) {
273
- throw new Error(`<mg-input-numeric> prop "format" must be one of: ${formats.join(', ')}. Passed value: ${Je(newValue)}.`);
273
+ throw new Error(`<mg-input-numeric> prop "format" must be one of: ${formats.join(', ')}. Passed value: ${Ve(newValue)}.`);
274
274
  }
275
275
  }
276
276
  validateIntegerLength(newValue) {
277
277
  if (newValue < 1) {
278
- throw new Error(`<mg-input-numeric> prop "integer-length" must be a positive number. Passed value: ${Je(newValue)}.`);
278
+ throw new Error(`<mg-input-numeric> prop "integer-length" must be a positive number. Passed value: ${Ve(newValue)}.`);
279
279
  }
280
280
  }
281
281
  validateDecimalLength(newValue) {
282
282
  if (newValue < 1) {
283
- throw new Error(`<mg-input-numeric> prop "decimal-length" must be a positive number, consider using prop "type" to "integer" instead. Passed value: ${Je(newValue)}.`);
283
+ throw new Error(`<mg-input-numeric> prop "decimal-length" must be a positive number, consider using prop "type" to "integer" instead. Passed value: ${Ve(newValue)}.`);
284
284
  }
285
285
  }
286
286
  /**
@@ -314,7 +314,7 @@ const MgInputNumeric$1 = /*@__PURE__*/ proxyCustomElement(class MgInputNumeric e
314
314
  if (typeof valid !== 'boolean') {
315
315
  throw new Error('<mg-input-numeric> method "setError()" param "valid" must be a boolean.');
316
316
  }
317
- else if (!ye(errorMessage)) {
317
+ else if (!me(errorMessage)) {
318
318
  throw new Error('<mg-input-numeric> method "setError()" param "errorMessage" must be a string.');
319
319
  }
320
320
  else {
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
- import { G as Ge, y as ye } from './index.es.js';
2
+ import { K as Ke, m as me } from './index.es.js';
3
3
  import { d as defineCustomElement$5, b as classReadonly, e 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';
@@ -52,7 +52,7 @@ const MgInputPassword$1 = /*@__PURE__*/ proxyCustomElement(class MgInputPassword
52
52
  /**
53
53
  * Component classes
54
54
  */
55
- this.classCollection = new Ge(['mg-c-input--password']);
55
+ this.classCollection = new Ke(['mg-c-input--password']);
56
56
  /**
57
57
  * Indicates if password is displayed or not
58
58
  */
@@ -172,7 +172,7 @@ const MgInputPassword$1 = /*@__PURE__*/ proxyCustomElement(class MgInputPassword
172
172
  if (typeof valid !== 'boolean') {
173
173
  throw new Error('<mg-input-password> method "setError()" param "valid" must be a boolean.');
174
174
  }
175
- else if (!ye(errorMessage)) {
175
+ else if (!me(errorMessage)) {
176
176
  throw new Error('<mg-input-password> method "setError()" param "errorMessage" must be a string.');
177
177
  }
178
178
  else {
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
- import { G as Ge, X as Xe, J as Je, y as ye } from './index.es.js';
2
+ import { K as Ke, Q as Qe, V as Ve, m as me } from './index.es.js';
3
3
  import { d as defineCustomElement$5, c as classFieldset, b as classReadonly, e 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';
@@ -68,7 +68,7 @@ const MgInputRadio$1 = /*@__PURE__*/ proxyCustomElement(class MgInputRadio exten
68
68
  /**
69
69
  * Component classes
70
70
  */
71
- this.classCollection = new Ge(['mg-c-input--radio', classFieldset]);
71
+ this.classCollection = new Ke(['mg-c-input--radio', classFieldset]);
72
72
  /**
73
73
  * Handle input event
74
74
  * @param event - input event
@@ -119,7 +119,7 @@ const MgInputRadio$1 = /*@__PURE__*/ proxyCustomElement(class MgInputRadio exten
119
119
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
120
120
  watchValue(newValue) {
121
121
  var _a;
122
- if (Xe(this.items) && typeof newValue === 'string') {
122
+ if (Qe(this.items) && typeof newValue === 'string') {
123
123
  this.readonlyValue = newValue;
124
124
  }
125
125
  else if (Array.isArray(this.items) && this.items.every(isOption)) {
@@ -133,10 +133,10 @@ const MgInputRadio$1 = /*@__PURE__*/ proxyCustomElement(class MgInputRadio exten
133
133
  validateItems(newValue) {
134
134
  // Validate if items have required min length
135
135
  if (typeof newValue === 'object' && newValue.length < 2) {
136
- throw new Error(`<mg-input-radio> prop "items" require at least 2 items. Passed value: ${Je(newValue)}.`);
136
+ throw new Error(`<mg-input-radio> prop "items" require at least 2 items. Passed value: ${Ve(newValue)}.`);
137
137
  }
138
138
  // String array
139
- else if (Xe(newValue)) {
139
+ else if (Qe(newValue)) {
140
140
  this.options = newValue.map(item => ({ title: item, value: item, disabled: this.disabled }));
141
141
  }
142
142
  // Object array
@@ -144,7 +144,7 @@ const MgInputRadio$1 = /*@__PURE__*/ proxyCustomElement(class MgInputRadio exten
144
144
  this.options = newValue;
145
145
  }
146
146
  else {
147
- throw new Error(`<mg-input-radio> prop "items" is required and all items must be the same type, string or RadioOption. Passed value: ${Je(newValue)}.`);
147
+ throw new Error(`<mg-input-radio> prop "items" is required and all items must be the same type, string or RadioOption. Passed value: ${Ve(newValue)}.`);
148
148
  }
149
149
  }
150
150
  watchInputVerticalList(newValue) {
@@ -206,7 +206,7 @@ const MgInputRadio$1 = /*@__PURE__*/ proxyCustomElement(class MgInputRadio exten
206
206
  if (typeof valid !== 'boolean') {
207
207
  throw new Error('<mg-input-radio> method "setError()" param "valid" must be a boolean.');
208
208
  }
209
- else if (!ye(errorMessage)) {
209
+ else if (!me(errorMessage)) {
210
210
  throw new Error('<mg-input-radio> method "setError()" param "errorMessage" must be a string.');
211
211
  }
212
212
  else {
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
- import { G as Ge, X as Xe, J as Je, y as ye } from './index.es.js';
2
+ import { K as Ke, Q as Qe, V as Ve, m as me } from './index.es.js';
3
3
  import { d as defineCustomElement$4, b as classReadonly, e as classDisabled, w as widths } from './mg-input2.js';
4
4
  import { i as initLocales } from './index2.js';
5
5
  import { d as defineCustomElement$5 } from './mg-icon2.js';
@@ -97,7 +97,7 @@ const MgInputSelect = /*@__PURE__*/ proxyCustomElement(class MgInputSelect exten
97
97
  /**
98
98
  * Component classes
99
99
  */
100
- this.classCollection = new Ge(['mg-c-input--select']);
100
+ this.classCollection = new Ke(['mg-c-input--select']);
101
101
  /**
102
102
  * Handle input event
103
103
  */
@@ -127,7 +127,7 @@ const MgInputSelect = /*@__PURE__*/ proxyCustomElement(class MgInputSelect exten
127
127
  if (this.input.value === '') {
128
128
  this.setValue(null);
129
129
  }
130
- else if (Xe(this.items) && this.items.includes(this.input.value)) {
130
+ else if (Qe(this.items) && this.items.includes(this.input.value)) {
131
131
  this.setValue(this.input.value);
132
132
  }
133
133
  else if (allItemsAreOptions(this.items) && typeof this.input.value === 'string' && this.items.some(this.isInputValue)) {
@@ -185,7 +185,7 @@ const MgInputSelect = /*@__PURE__*/ proxyCustomElement(class MgInputSelect exten
185
185
  }
186
186
  validateValue(newValue) {
187
187
  var _a, _b;
188
- if (Xe(this.items) && typeof newValue === 'string') {
188
+ if (Qe(this.items) && typeof newValue === 'string') {
189
189
  this.readonlyValue = ((_a = this.input) === null || _a === void 0 ? void 0 : _a.value) !== undefined ? this.input.value : newValue;
190
190
  }
191
191
  else if (allItemsAreOptions(this.items)) {
@@ -202,7 +202,7 @@ const MgInputSelect = /*@__PURE__*/ proxyCustomElement(class MgInputSelect exten
202
202
  this.options = [];
203
203
  }
204
204
  // String array
205
- else if (Xe(newValue)) {
205
+ else if (Qe(newValue)) {
206
206
  if (typeof this.value === 'string')
207
207
  this.valueExist = newValue.includes(this.value);
208
208
  this.options = newValue.map(item => ({ title: item, value: item }));
@@ -220,7 +220,7 @@ const MgInputSelect = /*@__PURE__*/ proxyCustomElement(class MgInputSelect exten
220
220
  }
221
221
  }
222
222
  else {
223
- throw new Error(`<mg-input-select> prop "items" is required, can be an empty Array or all items must be the same type: string or Option. Passed value: ${Je(newValue)}.`);
223
+ throw new Error(`<mg-input-select> prop "items" is required, can be an empty Array or all items must be the same type: string or Option. Passed value: ${Ve(newValue)}.`);
224
224
  }
225
225
  }
226
226
  watchReadonly(newValue) {
@@ -285,7 +285,7 @@ const MgInputSelect = /*@__PURE__*/ proxyCustomElement(class MgInputSelect exten
285
285
  if (typeof valid !== 'boolean') {
286
286
  throw new Error('<mg-input-select> method "setError()" param "valid" must be a boolean.');
287
287
  }
288
- else if (!ye(errorMessage)) {
288
+ else if (!me(errorMessage)) {
289
289
  throw new Error('<mg-input-select> method "setError()" param "errorMessage" must be a string.');
290
290
  }
291
291
  else {
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
- import { G as Ge, X as Xe, J as Je, y as ye } from './index.es.js';
2
+ import { K as Ke, Q as Qe, V as Ve, m as me } from './index.es.js';
3
3
  import { d as defineCustomElement$4, b as classReadonly, e 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-character-left2.js';
@@ -22,7 +22,7 @@ const isOption = (option) => typeof option === 'object' && typeof option.title =
22
22
  * @param options - Datalist options to check.
23
23
  * @returns True if datalist is well structured.
24
24
  */
25
- const isDatalistOptions = (options) => Xe(options) || (Array.isArray(options) && options.every(isOption));
25
+ const isDatalistOptions = (options) => Qe(options) || (Array.isArray(options) && options.every(isOption));
26
26
  const MgInputText = /*@__PURE__*/ proxyCustomElement(class MgInputText extends HTMLElement {
27
27
  constructor() {
28
28
  super();
@@ -85,7 +85,7 @@ const MgInputText = /*@__PURE__*/ proxyCustomElement(class MgInputText extends H
85
85
  /**
86
86
  * Component classes
87
87
  */
88
- this.classCollection = new Ge(['mg-c-input--text']);
88
+ this.classCollection = new Ke(['mg-c-input--text']);
89
89
  /**
90
90
  * Handle input event
91
91
  */
@@ -101,7 +101,7 @@ const MgInputText = /*@__PURE__*/ proxyCustomElement(class MgInputText extends H
101
101
  */
102
102
  this.handleFocus = () => {
103
103
  this.classCollection.add(this.classFocus);
104
- this.classCollection = new Ge(this.classCollection.classes);
104
+ this.classCollection = new Ke(this.classCollection.classes);
105
105
  };
106
106
  /**
107
107
  * Handle blur event
@@ -109,7 +109,7 @@ const MgInputText = /*@__PURE__*/ proxyCustomElement(class MgInputText extends H
109
109
  this.handleBlur = () => {
110
110
  // Manage focus
111
111
  this.classCollection.delete(this.classFocus);
112
- this.classCollection = new Ge(this.classCollection.classes);
112
+ this.classCollection = new Ke(this.classCollection.classes);
113
113
  // Display Error
114
114
  this.handlerInProgress = 'blur';
115
115
  this.displayError().finally(() => {
@@ -194,7 +194,7 @@ const MgInputText = /*@__PURE__*/ proxyCustomElement(class MgInputText extends H
194
194
  }
195
195
  validateDatalistoptions(newValue) {
196
196
  if (Boolean(newValue) && !isDatalistOptions(newValue)) {
197
- throw new Error(`<mg-input-text> prop "datalistoptions" values must be the same type, string or OptionType. Passed value: ${Je(newValue)}.`);
197
+ throw new Error(`<mg-input-text> prop "datalistoptions" values must be the same type, string or OptionType. Passed value: ${Ve(newValue)}.`);
198
198
  }
199
199
  }
200
200
  watchReadonly(newValue) {
@@ -229,8 +229,8 @@ const MgInputText = /*@__PURE__*/ proxyCustomElement(class MgInputText extends H
229
229
  this.classCollection.add(`mg-c-input--width-${this.mgWidth}`);
230
230
  }
231
231
  validatePattern(newValue) {
232
- if (newValue !== undefined && !(ye(this.pattern) && ye(this.patternErrorMessage))) {
233
- throw new Error(`<mg-input-text> props "pattern" and "patternErrorMessage" must be non-empty string and paired. Passed value: "pattern='${Je(this.pattern)}'" and "patternErrorMessage='${Je(this.patternErrorMessage)}'".`);
232
+ if (newValue !== undefined && !(me(this.pattern) && me(this.patternErrorMessage))) {
233
+ throw new Error(`<mg-input-text> props "pattern" and "patternErrorMessage" must be non-empty string and paired. Passed value: "pattern='${Ve(this.pattern)}'" and "patternErrorMessage='${Ve(this.patternErrorMessage)}'".`);
234
234
  }
235
235
  }
236
236
  /**
@@ -270,7 +270,7 @@ const MgInputText = /*@__PURE__*/ proxyCustomElement(class MgInputText extends H
270
270
  if (typeof valid !== 'boolean') {
271
271
  throw new Error('<mg-input-text> method "setError()" param "valid" must be a boolean.');
272
272
  }
273
- else if (!ye(errorMessage)) {
273
+ else if (!me(errorMessage)) {
274
274
  throw new Error('<mg-input-text> method "setError()" param "errorMessage" must be a string.');
275
275
  }
276
276
  else {
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
- import { G as Ge, y as ye, J as Je } from './index.es.js';
2
+ import { K as Ke, m as me, V as Ve } from './index.es.js';
3
3
  import { d as defineCustomElement$5, b as classReadonly, e 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-character-left2.js';
@@ -74,7 +74,7 @@ const MgInputTextarea$1 = /*@__PURE__*/ proxyCustomElement(class MgInputTextarea
74
74
  /**
75
75
  * Component classes
76
76
  */
77
- this.classCollection = new Ge(['mg-c-input--textarea']);
77
+ this.classCollection = new Ke(['mg-c-input--textarea']);
78
78
  /**
79
79
  * Handle input event
80
80
  */
@@ -90,7 +90,7 @@ const MgInputTextarea$1 = /*@__PURE__*/ proxyCustomElement(class MgInputTextarea
90
90
  */
91
91
  this.handleFocus = () => {
92
92
  this.classCollection.add(this.classFocus);
93
- this.classCollection = new Ge(this.classCollection.classes);
93
+ this.classCollection = new Ke(this.classCollection.classes);
94
94
  };
95
95
  /**
96
96
  * Handle blur event
@@ -98,7 +98,7 @@ const MgInputTextarea$1 = /*@__PURE__*/ proxyCustomElement(class MgInputTextarea
98
98
  this.handleBlur = () => {
99
99
  // Manage focus
100
100
  this.classCollection.delete(this.classFocus);
101
- this.classCollection = new Ge(this.classCollection.classes);
101
+ this.classCollection = new Ke(this.classCollection.classes);
102
102
  // Display Error
103
103
  this.handlerInProgress = 'blur';
104
104
  this.displayError().finally(() => {
@@ -176,8 +176,8 @@ const MgInputTextarea$1 = /*@__PURE__*/ proxyCustomElement(class MgInputTextarea
176
176
  this.classCollection.add(`mg-c-input--width-${this.mgWidth}`);
177
177
  }
178
178
  validatePattern(newValue) {
179
- if (newValue !== undefined && !(ye(this.pattern) && ye(this.patternErrorMessage))) {
180
- throw new Error(`<mg-input-textarea> props "pattern" and "patternErrorMessage" must be non-empty string and paired. Passed value: "pattern='${Je(this.pattern)}'" and "patternErrorMessage='${Je(this.patternErrorMessage)}'".`);
179
+ if (newValue !== undefined && !(me(this.pattern) && me(this.patternErrorMessage))) {
180
+ throw new Error(`<mg-input-textarea> props "pattern" and "patternErrorMessage" must be non-empty string and paired. Passed value: "pattern='${Ve(this.pattern)}'" and "patternErrorMessage='${Ve(this.patternErrorMessage)}'".`);
181
181
  }
182
182
  }
183
183
  validatecharacterLeftHide(newValue) {
@@ -219,7 +219,7 @@ const MgInputTextarea$1 = /*@__PURE__*/ proxyCustomElement(class MgInputTextarea
219
219
  if (typeof valid !== 'boolean') {
220
220
  throw new Error('<mg-input-textarea> method "setError()" param "valid" must be a boolean.');
221
221
  }
222
- else if (!ye(errorMessage)) {
222
+ else if (!me(errorMessage)) {
223
223
  throw new Error('<mg-input-textarea> method "setError()" param "errorMessage" must be a string.');
224
224
  }
225
225
  else {
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
- import { y as ye, I as Ie, J as Je } from './index.es.js';
2
+ import { m as me, X as Xe, V as Ve } from './index.es.js';
3
3
 
4
4
  const mgInputTitleCss = ".mg-u-form-legacy.sc-mg-input-title{--mg-c-form-inputs-title-width:calc(100% / 3 - 20px)}.mg-u-is-asterisk.sc-mg-input-title{color:var(--mg-b-color-danger)}legend.mg-c-input-title.sc-mg-input-title{padding-right:0;padding-left:0}.mg-c-input-title__required.sc-mg-input-title{display:var(--mg-c-input-title-display, unset)}";
5
5
  const MgInputTitleStyle0 = mgInputTitleCss;
@@ -18,11 +18,11 @@ const MgInputTitle = /*@__PURE__*/ proxyCustomElement(class MgInputTitle extends
18
18
  this.tagName = 'label';
19
19
  }
20
20
  validateIdentifier(newValue) {
21
- if (!ye(newValue)) {
21
+ if (!me(newValue)) {
22
22
  throw new Error('<mg-input-title> prop "identifier" is required.');
23
23
  }
24
- else if (!Ie(newValue)) {
25
- console.error(`<mg-input-title> prop "identifier" value is invalid. Passed value: ${Je(newValue)}.`);
24
+ else if (!Xe(newValue)) {
25
+ console.error(`<mg-input-title> prop "identifier" value is invalid. Passed value: ${Ve(newValue)}.`);
26
26
  }
27
27
  }
28
28
  validateIsLegend(newValue) {