@mgdis/mg-components 5.9.1 → 5.10.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 (126) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/mg-action-more_31.cjs.entry.js +31 -225
  3. package/dist/cjs/mg-components.cjs.js +1 -1
  4. package/dist/cjs/mg-item-more.cjs.entry.js +1 -16
  5. package/dist/cjs/{mg-menu.conf-9afe6571.js → mg-menu.conf-1942ac70.js} +0 -5
  6. package/dist/collection/components/atoms/mg-badge/mg-badge.js +1 -3
  7. package/dist/collection/components/atoms/mg-button/mg-button.js +2 -7
  8. package/dist/collection/components/atoms/mg-card/mg-card.js +13 -4
  9. package/dist/collection/components/atoms/mg-character-left/mg-character-left.js +0 -2
  10. package/dist/collection/components/atoms/mg-divider/mg-divider.js +0 -1
  11. package/dist/collection/components/atoms/mg-icon/mg-icon.js +10 -5
  12. package/dist/collection/components/atoms/mg-input-title/mg-input-title.js +0 -2
  13. package/dist/collection/components/atoms/mg-tag/mg-tag.js +0 -3
  14. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +1 -13
  15. package/dist/collection/components/molecules/inputs/MgInput.js +0 -6
  16. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +0 -6
  17. package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +0 -5
  18. package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +0 -12
  19. package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +0 -3
  20. package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +0 -9
  21. package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +0 -13
  22. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +1 -12
  23. package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +1 -5
  24. package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +0 -5
  25. package/dist/collection/components/molecules/menu/mg-menu/mg-menu.js +0 -11
  26. package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.js +0 -18
  27. package/dist/collection/components/molecules/mg-action-more/mg-action-more.js +0 -8
  28. package/dist/collection/components/molecules/mg-details/mg-details.js +0 -3
  29. package/dist/collection/components/molecules/mg-form/mg-form.js +0 -8
  30. package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js +0 -2
  31. package/dist/collection/components/molecules/mg-item-more/mg-item-more.js +0 -5
  32. package/dist/collection/components/molecules/mg-message/mg-message.js +2 -7
  33. package/dist/collection/components/molecules/mg-modal/mg-modal.js +1 -6
  34. package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +0 -6
  35. package/dist/collection/components/molecules/mg-panel/mg-panel.js +5 -15
  36. package/dist/collection/components/molecules/mg-popover/mg-popover.js +1 -8
  37. package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.js +1 -4
  38. package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +0 -12
  39. package/dist/collection/locales/index.js +0 -1
  40. package/dist/collection/utils/behaviors.utils.js +0 -10
  41. package/dist/collection/utils/components.utils.js +1 -10
  42. package/dist/collection/utils/locale.utils.js +0 -4
  43. package/dist/collection/utils/unit.test.utils.js +0 -5
  44. package/dist/components/MgInput.js +0 -6
  45. package/dist/components/components.utils.js +1 -10
  46. package/dist/components/index2.js +0 -5
  47. package/dist/components/mg-action-more.js +0 -8
  48. package/dist/components/mg-badge2.js +1 -3
  49. package/dist/components/mg-button2.js +2 -7
  50. package/dist/components/mg-card2.js +13 -4
  51. package/dist/components/mg-character-left2.js +0 -2
  52. package/dist/components/mg-details.js +0 -3
  53. package/dist/components/mg-divider.js +0 -1
  54. package/dist/components/mg-form.js +0 -8
  55. package/dist/components/mg-icon2.js +10 -5
  56. package/dist/components/mg-illustrated-message.js +0 -2
  57. package/dist/components/mg-input-checkbox.js +0 -6
  58. package/dist/components/mg-input-date.js +0 -5
  59. package/dist/components/mg-input-numeric.js +0 -12
  60. package/dist/components/mg-input-password.js +0 -3
  61. package/dist/components/mg-input-radio.js +0 -9
  62. package/dist/components/mg-input-select2.js +0 -13
  63. package/dist/components/mg-input-text2.js +1 -12
  64. package/dist/components/mg-input-textarea.js +1 -5
  65. package/dist/components/mg-input-title2.js +0 -2
  66. package/dist/components/mg-input-toggle.js +0 -5
  67. package/dist/components/mg-item-more.js +0 -15
  68. package/dist/components/mg-menu-item2.js +0 -18
  69. package/dist/components/mg-menu2.js +0 -11
  70. package/dist/components/mg-message.js +2 -7
  71. package/dist/components/mg-modal.js +1 -6
  72. package/dist/components/mg-pagination.js +0 -6
  73. package/dist/components/mg-panel.js +5 -15
  74. package/dist/components/mg-popover2.js +1 -8
  75. package/dist/components/mg-skip-links.js +1 -4
  76. package/dist/components/mg-tabs.js +0 -12
  77. package/dist/components/mg-tag.js +0 -3
  78. package/dist/components/mg-tooltip2.js +1 -13
  79. package/dist/esm/loader.js +1 -1
  80. package/dist/esm/mg-action-more_31.entry.js +31 -225
  81. package/dist/esm/mg-components.js +1 -1
  82. package/dist/esm/mg-item-more.entry.js +1 -16
  83. package/dist/esm/{mg-menu.conf-881fbd82.js → mg-menu.conf-2cc1bb67.js} +0 -5
  84. package/dist/mg-components/mg-components.esm.js +1 -1
  85. package/dist/mg-components/{p-67ce7cb8.entry.js → p-a56a3157.entry.js} +1 -1
  86. package/dist/mg-components/{p-9a93b7af.entry.js → p-eb32bb18.entry.js} +1 -1
  87. package/dist/types/components/atoms/mg-badge/mg-badge.d.ts +0 -2
  88. package/dist/types/components/atoms/mg-button/mg-button.d.ts +0 -5
  89. package/dist/types/components/atoms/mg-card/mg-card.d.ts +10 -3
  90. package/dist/types/components/atoms/mg-character-left/mg-character-left.d.ts +0 -2
  91. package/dist/types/components/atoms/mg-divider/mg-divider.d.ts +0 -1
  92. package/dist/types/components/atoms/mg-icon/mg-icon.d.ts +6 -3
  93. package/dist/types/components/atoms/mg-input-title/mg-input-title.d.ts +0 -2
  94. package/dist/types/components/atoms/mg-tag/mg-tag.d.ts +0 -3
  95. package/dist/types/components/atoms/mg-tooltip/mg-tooltip.d.ts +0 -12
  96. package/dist/types/components/molecules/inputs/MgInput.d.ts +0 -1
  97. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.d.ts +0 -5
  98. package/dist/types/components/molecules/inputs/mg-input-date/mg-input-date.d.ts +0 -5
  99. package/dist/types/components/molecules/inputs/mg-input-numeric/mg-input-numeric.d.ts +0 -12
  100. package/dist/types/components/molecules/inputs/mg-input-password/mg-input-password.d.ts +0 -3
  101. package/dist/types/components/molecules/inputs/mg-input-radio/mg-input-radio.d.ts +0 -8
  102. package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.d.ts +0 -9
  103. package/dist/types/components/molecules/inputs/mg-input-text/mg-input-text.d.ts +0 -11
  104. package/dist/types/components/molecules/inputs/mg-input-textarea/mg-input-textarea.d.ts +0 -4
  105. package/dist/types/components/molecules/inputs/mg-input-toggle/mg-input-toggle.d.ts +0 -5
  106. package/dist/types/components/molecules/menu/mg-menu/mg-menu.d.ts +0 -11
  107. package/dist/types/components/molecules/menu/mg-menu-item/mg-menu-item.d.ts +0 -18
  108. package/dist/types/components/molecules/mg-action-more/mg-action-more.d.ts +0 -5
  109. package/dist/types/components/molecules/mg-details/mg-details.d.ts +0 -3
  110. package/dist/types/components/molecules/mg-form/mg-form.d.ts +0 -8
  111. package/dist/types/components/molecules/mg-illustrated-message/mg-illustrated-message.d.ts +0 -2
  112. package/dist/types/components/molecules/mg-item-more/mg-item-more.d.ts +0 -5
  113. package/dist/types/components/molecules/mg-message/mg-message.d.ts +1 -6
  114. package/dist/types/components/molecules/mg-modal/mg-modal.d.ts +0 -5
  115. package/dist/types/components/molecules/mg-pagination/mg-pagination.d.ts +0 -5
  116. package/dist/types/components/molecules/mg-panel/mg-panel.d.ts +0 -10
  117. package/dist/types/components/molecules/mg-popover/mg-popover.d.ts +0 -7
  118. package/dist/types/components/molecules/mg-skip-links/mg-skip-links.d.ts +0 -3
  119. package/dist/types/components/molecules/mg-tabs/mg-tabs.d.ts +0 -11
  120. package/dist/types/locales/index.d.ts +0 -1
  121. package/dist/types/utils/behaviors.utils.d.ts +0 -9
  122. package/dist/types/utils/components.utils.d.ts +1 -9
  123. package/dist/types/utils/locale.utils.d.ts +0 -4
  124. package/dist/types/utils/unit.test.utils.d.ts +0 -7
  125. package/package.json +11 -12
  126. /package/dist/mg-components/{p-367f92d2.js → p-73156ac9.js} +0 -0
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-9e1091ab.js');
6
- const mgMenu_conf = require('./mg-menu.conf-9afe6571.js');
6
+ const mgMenu_conf = require('./mg-menu.conf-1942ac70.js');
7
7
 
8
8
  /**
9
9
  * Available menu-item positions
@@ -26,7 +26,6 @@ var Status$1;
26
26
 
27
27
  /**
28
28
  * Create random ID
29
- *
30
29
  * @param {string} prefix add prefix to created ID
31
30
  * @param {number} length ID length
32
31
  * @returns {string} ID
@@ -48,7 +47,6 @@ class ClassList {
48
47
  constructor(classlist = []) {
49
48
  /**
50
49
  * Add class
51
- *
52
50
  * @param {string} className class name to add
53
51
  * @returns {void}
54
52
  */
@@ -59,7 +57,6 @@ class ClassList {
59
57
  };
60
58
  /**
61
59
  * Delete class
62
- *
63
60
  * @param {string} className class name to delete
64
61
  * @returns {void}
65
62
  */
@@ -71,7 +68,6 @@ class ClassList {
71
68
  };
72
69
  /**
73
70
  * Check if class exist in list
74
- *
75
71
  * @param {string} className class name to check
76
72
  * @returns {boolean} class name is in the list
77
73
  */
@@ -80,7 +76,6 @@ class ClassList {
80
76
  };
81
77
  /**
82
78
  * Join classes seperated by spaces
83
- *
84
79
  * @returns {string} joined values
85
80
  */
86
81
  this.join = () => {
@@ -91,14 +86,12 @@ class ClassList {
91
86
  }
92
87
  /**
93
88
  * Check if all items are string
94
- *
95
89
  * @param {unknown} items items to check
96
90
  * @returns {boolean} all items are string
97
91
  */
98
92
  const allItemsAreString = (items) => Array.isArray(items) && items.every(item => typeof item === 'string');
99
93
  /**
100
94
  * Check if element is a heading
101
- *
102
95
  * @param {Element} element slotted element
103
96
  * @param {string[]} tagNames allowed tag names list
104
97
  * @returns {boolean} element is a heading
@@ -111,7 +104,7 @@ const isTagName = (element, tagNames) => {
111
104
  */
112
105
  const focusableElements = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]), [identifier]';
113
106
  /**
114
- *
107
+ * Get windows
115
108
  * @param {Window} localWindow the window we are lookink for other windows
116
109
  * @returns {Window[]} The list of windows found
117
110
  */
@@ -122,7 +115,6 @@ const getWindows = (localWindow) => {
122
115
  };
123
116
  /**
124
117
  * Get parent windows
125
- *
126
118
  * @param {Window} localWindow the window we are lookink for parents
127
119
  * @param {Window[]} windows The list of allready found windows
128
120
  * @returns {Window[]} The list of windows found
@@ -145,7 +137,6 @@ const getParentWindows = (localWindow, windows = []) => {
145
137
  };
146
138
  /**
147
139
  * Get child windows
148
- *
149
140
  * @param {Window} localWindow the window we are lookink for children
150
141
  * @param {Window[]} windows The list of allready found windows
151
142
  * @returns {Window[]} The list of windows found
@@ -167,7 +158,6 @@ const mgActionMoreCss = ".sr-only{border:0 !important;clip:rect(1px, 1px, 1px, 1
167
158
 
168
159
  /**
169
160
  * MgActionMore['items'] type guard
170
- *
171
161
  * @param {unknown} prop commponent items prop
172
162
  * @returns {boolean} return true if type is valid
173
163
  */
@@ -177,7 +167,6 @@ const isMgActionMoreItems = (prop) => {
177
167
  };
178
168
  /**
179
169
  * MgActionMore['button'] type guard
180
- *
181
170
  * @param {unknown} prop commponent button prop
182
171
  * @returns {boolean} return true if type is valid
183
172
  */
@@ -187,7 +176,6 @@ const isMgActionMoreButton = (prop) => {
187
176
  };
188
177
  /**
189
178
  * MgActionMore['icon'] type guard
190
- *
191
179
  * @param {unknown} prop commponent icon prop
192
180
  * @returns {boolean} return true if type is valid
193
181
  */
@@ -208,7 +196,6 @@ const MgActionMore = class {
208
196
  ***********/
209
197
  /**
210
198
  * Toogle expanded props
211
- *
212
199
  * @returns {void}
213
200
  */
214
201
  this.toggleExpanded = () => {
@@ -216,7 +203,6 @@ const MgActionMore = class {
216
203
  };
217
204
  /**
218
205
  * Button click handler
219
- *
220
206
  * @returns {void}
221
207
  */
222
208
  this.handleButton = () => {
@@ -224,7 +210,6 @@ const MgActionMore = class {
224
210
  };
225
211
  /**
226
212
  * Item click handler
227
- *
228
213
  * @param {MouseEvent} event click event
229
214
  * @param {MgActionMoreItemType['mouseEventHandler']} customHandler item['mouseEventHandler']
230
215
  * @returns {void}
@@ -264,7 +249,6 @@ const MgActionMore = class {
264
249
  *************/
265
250
  /**
266
251
  * Validate props
267
- *
268
252
  * @returns {void}
269
253
  */
270
254
  componentWillLoad() {
@@ -276,7 +260,6 @@ const MgActionMore = class {
276
260
  }
277
261
  /**
278
262
  * Render
279
- *
280
263
  * @returns {HTMLElement} HTML Element
281
264
  */
282
265
  render() {
@@ -356,7 +339,6 @@ const MgBadge = class {
356
339
  }
357
340
  /**
358
341
  * Check if props are well configured on init
359
- *
360
342
  * @returns {void}
361
343
  */
362
344
  componentWillLoad() {
@@ -367,7 +349,6 @@ const MgBadge = class {
367
349
  }
368
350
  /**
369
351
  * Render
370
- *
371
352
  * @returns {HTMLElement} HTML Element
372
353
  */
373
354
  render() {
@@ -402,7 +383,6 @@ const MgButton = class {
402
383
  this.classFullWidth = 'mg-button--full-width';
403
384
  /**
404
385
  * Trigger actions onClick event
405
- *
406
386
  * @param {MouseEvent} event click event
407
387
  * @returns {void}
408
388
  */
@@ -417,7 +397,6 @@ const MgButton = class {
417
397
  };
418
398
  /**
419
399
  * Handle onKeydown event
420
- *
421
400
  * @param {KeyboardEvent} event keyboard event
422
401
  * @returns {void}
423
402
  */
@@ -432,7 +411,6 @@ const MgButton = class {
432
411
  };
433
412
  /**
434
413
  * Handle onKeyup event
435
- *
436
414
  * @param {KeyboardEvent} event keyboard event
437
415
  * @returns {void}
438
416
  */
@@ -505,7 +483,6 @@ const MgButton = class {
505
483
  }
506
484
  /**
507
485
  * Check if props are well configured on init
508
- *
509
486
  * @returns {void}
510
487
  */
511
488
  componentWillLoad() {
@@ -523,7 +500,6 @@ const MgButton = class {
523
500
  }
524
501
  /**
525
502
  * Render component
526
- *
527
503
  * @returns {HTMLElement} html element
528
504
  */
529
505
  render() {
@@ -558,6 +534,15 @@ const MgCard = class {
558
534
  *************/
559
535
  this.name = 'mg-card';
560
536
  this.baseClass = this.name;
537
+ /**
538
+ * Methode to set default varianStyle props
539
+ * needeed has stencil doesn't know that props is mutated when updated in prop watcher
540
+ * @returns {void}
541
+ */
542
+ this.setDefaultVariantStyle = () => {
543
+ if (this.variantStyle === undefined)
544
+ this.variantStyle = 'bar-left';
545
+ };
561
546
  this.variant = undefined;
562
547
  this.variantStyle = undefined;
563
548
  this.classList = new ClassList([this.baseClass]);
@@ -566,8 +551,7 @@ const MgCard = class {
566
551
  if (newValue && !variants$3.includes(newValue))
567
552
  throw new Error(`<${this.name}> prop "variant" must match VariantType type.`);
568
553
  if (Boolean(newValue)) {
569
- if (this.variantStyle === undefined)
570
- this.variantStyle = 'bar-left';
554
+ this.setDefaultVariantStyle();
571
555
  this.classList.add(`${this.baseClass}--${newValue}`);
572
556
  }
573
557
  if (Boolean(oldValue))
@@ -583,9 +567,11 @@ const MgCard = class {
583
567
  if (Boolean(oldValue))
584
568
  this.classList.delete(`${this.baseClass}--${oldValue}`);
585
569
  }
570
+ /*************
571
+ * Lifecycle *
572
+ *************/
586
573
  /**
587
574
  * Check if props are well configured on init
588
- *
589
575
  * @returns {void}
590
576
  */
591
577
  componentWillLoad() {
@@ -594,7 +580,6 @@ const MgCard = class {
594
580
  }
595
581
  /**
596
582
  * Render
597
- *
598
583
  * @returns {HTMLElement} HTML Element
599
584
  */
600
585
  render() {
@@ -627,7 +612,6 @@ const MgCharacterLeft = class {
627
612
  *************/
628
613
  /**
629
614
  * Check if props are well configured on init
630
- *
631
615
  * @returns {void}
632
616
  */
633
617
  componentWillLoad() {
@@ -636,7 +620,6 @@ const MgCharacterLeft = class {
636
620
  }
637
621
  /**
638
622
  * Render component
639
- *
640
623
  * @returns {HTMLElement} HTML Element
641
624
  */
642
625
  render() {
@@ -657,7 +640,6 @@ const MgDetails = class {
657
640
  this.expandedChange = index.createEvent(this, "expanded-change", 7);
658
641
  /**
659
642
  * Handle details toggle
660
- *
661
643
  * @returns {void}
662
644
  */
663
645
  this.handleToggle = () => {
@@ -681,7 +663,6 @@ const MgDetails = class {
681
663
  *************/
682
664
  /**
683
665
  * Check if component props are well configured on init
684
- *
685
666
  * @returns {void}
686
667
  */
687
668
  componentWillLoad() {
@@ -690,7 +671,6 @@ const MgDetails = class {
690
671
  }
691
672
  /**
692
673
  * Render
693
- *
694
674
  * @returns {HTMLElement} HTML Element
695
675
  */
696
676
  render() {
@@ -713,7 +693,6 @@ const MgDivider = class {
713
693
  }
714
694
  /**
715
695
  * Render
716
- *
717
696
  * @returns {HTMLElement} HTML Element
718
697
  */
719
698
  render() {
@@ -737,7 +716,6 @@ const MgForm = class {
737
716
  /**
738
717
  * Define required message based on mg-inputs required elements
739
718
  * Also
740
- *
741
719
  * @returns {void}
742
720
  */
743
721
  this.setRequiredMessage = () => {
@@ -763,7 +741,6 @@ const MgForm = class {
763
741
  };
764
742
  /**
765
743
  * Check if form is valid
766
- *
767
744
  * @returns {void}
768
745
  */
769
746
  this.checkValidity = () => {
@@ -776,7 +753,6 @@ const MgForm = class {
776
753
  };
777
754
  /**
778
755
  * Handle Form Submit
779
- *
780
756
  * @param {SubmitEvent} event submit event
781
757
  * @returns {void}
782
758
  */
@@ -786,7 +762,6 @@ const MgForm = class {
786
762
  };
787
763
  /**
788
764
  * Set mgInputs
789
- *
790
765
  * @returns {void}
791
766
  */
792
767
  this.setMgInputs = () => {
@@ -818,7 +793,6 @@ const MgForm = class {
818
793
  }
819
794
  /**
820
795
  * Public method to display errors
821
- *
822
796
  * @returns {Promise<void>}
823
797
  */
824
798
  async displayError() {
@@ -834,7 +808,6 @@ const MgForm = class {
834
808
  *************/
835
809
  /**
836
810
  * Check if component props are well configured on init
837
- *
838
811
  * @returns {void}
839
812
  */
840
813
  componentWillLoad() {
@@ -862,7 +835,6 @@ const MgForm = class {
862
835
  }
863
836
  /**
864
837
  * Add slot listeners
865
- *
866
838
  * @returns {void}
867
839
  */
868
840
  componentDidLoad() {
@@ -881,7 +853,6 @@ const MgForm = class {
881
853
  }
882
854
  /**
883
855
  * Render
884
- *
885
856
  * @returns {HTMLElement} HTML Element
886
857
  */
887
858
  render() {
@@ -1132,10 +1103,18 @@ const MgIcon = class {
1132
1103
  index.registerInstance(this, hostRef);
1133
1104
  /**
1134
1105
  * getIcon
1135
- *
1136
1106
  * @returns {HTMLElement} icon html
1137
1107
  */
1138
1108
  this.getIcon = () => icons[this.icon]();
1109
+ /**
1110
+ * Method to set default varianStyle props
1111
+ * needeed has stencil doesn't know that props is mutated when updated in prop watcher
1112
+ * @returns {void}
1113
+ */
1114
+ this.setDefaultVariantStyle = () => {
1115
+ if (this.variantStyle === undefined)
1116
+ this.variantStyle = 'background';
1117
+ };
1139
1118
  this.icon = undefined;
1140
1119
  this.size = 'regular';
1141
1120
  this.variant = undefined;
@@ -1166,8 +1145,7 @@ const MgIcon = class {
1166
1145
  if (!variants$2.includes(newValue))
1167
1146
  throw new Error(`<mg-icon> prop "variant" must be one of: ${variants$2.join(', ')}`);
1168
1147
  else {
1169
- if (this.variantStyle === undefined)
1170
- this.variantStyle = 'background';
1148
+ this.setDefaultVariantStyle();
1171
1149
  if (oldValue !== undefined)
1172
1150
  this.classList.delete(`mg-icon--variant-${oldValue}`);
1173
1151
  this.classList.add(`mg-icon--variant-${newValue}`);
@@ -1197,7 +1175,6 @@ const MgIcon = class {
1197
1175
  }
1198
1176
  /**
1199
1177
  * Check if props are well configured on init
1200
- *
1201
1178
  * @returns {void}
1202
1179
  */
1203
1180
  componentWillLoad() {
@@ -1209,7 +1186,6 @@ const MgIcon = class {
1209
1186
  }
1210
1187
  /**
1211
1188
  * Render component
1212
- *
1213
1189
  * @returns {HTMLElement} HTML Element
1214
1190
  */
1215
1191
  render() {
@@ -1238,7 +1214,6 @@ const MgIllustratedMessage = class {
1238
1214
  *************/
1239
1215
  /**
1240
1216
  * Check if component props are well configured on init
1241
- *
1242
1217
  * @returns {void}
1243
1218
  */
1244
1219
  componentDidLoad() {
@@ -1254,7 +1229,6 @@ const MgIllustratedMessage = class {
1254
1229
  }
1255
1230
  /**
1256
1231
  * Render
1257
- *
1258
1232
  * @returns {HTMLElement} HTML Element
1259
1233
  */
1260
1234
  render() {
@@ -1272,7 +1246,6 @@ MgIllustratedMessage.style = mgIllustratedMessageCss;
1272
1246
 
1273
1247
  /**
1274
1248
  * Apply in all input child node the aria-describedby attribute
1275
- *
1276
1249
  * @param {VNode[]} children Represent scoped elements
1277
1250
  * @param {Set<string>} ariaDescribedbyIDs List of IDs
1278
1251
  * @param {FunctionalUtilities} utils Stencil.js utils
@@ -1289,7 +1262,6 @@ const applyAriadescribedBy = (children, ariaDescribedbyIDs, utils) => utils.map(
1289
1262
  });
1290
1263
  /**
1291
1264
  * Add classes based on props
1292
- *
1293
1265
  * @param {MgInputProps} props MgInput Interface Props
1294
1266
  */
1295
1267
  const manageClasses = (props) => {
@@ -1303,14 +1275,12 @@ const manageClasses = (props) => {
1303
1275
  };
1304
1276
  /**
1305
1277
  * Get tagname
1306
- *
1307
1278
  * @param {boolean} isFieldset is fieldset
1308
1279
  * @returns {string} tag name
1309
1280
  */
1310
1281
  const getTagName = (isFieldset) => (isFieldset ? 'fieldset' : 'div');
1311
1282
  /**
1312
1283
  * Get input template
1313
- *
1314
1284
  * @param {MgInputProps} props MgInput Interface Props
1315
1285
  * @param {VNode[]} children Represent scoped elements
1316
1286
  * @param {FunctionalUtilities} utils Stencil.js utils
@@ -1370,7 +1340,6 @@ const MgInput = (props, children, utils) => {
1370
1340
  const TagName = getTagName(props.isFieldset);
1371
1341
  /**
1372
1342
  * Get tooltip node
1373
- *
1374
1343
  * @returns {VNode[]} mg-tooltip
1375
1344
  */
1376
1345
  const getTooltip = () => (index.h("mg-tooltip", { identifier: `${props.identifier}-tooltip`, message: props.tooltip },
@@ -1378,7 +1347,6 @@ const MgInput = (props, children, utils) => {
1378
1347
  /**
1379
1348
  * Get input title (label) node
1380
1349
  * Display asterisk only if not disabled and not readonly
1381
- *
1382
1350
  * @returns {VNode[]} mg-input-title
1383
1351
  */
1384
1352
  const getInputTitle = () => (index.h("mg-input-title", { identifier: props.identifier, class: props.labelHide ? 'sr-only' : undefined, required: props.required && !props.disabled && !props.readonly, "is-legend": props.isFieldset }, props.label));
@@ -1400,7 +1368,6 @@ const mgInputCheckboxCss = ":host{display:block}.mg-input{display:flex;align-ite
1400
1368
 
1401
1369
  /**
1402
1370
  * type CheckboxItem validation function
1403
- *
1404
1371
  * @param {unknown} items Checkbox item
1405
1372
  * @returns {boolean} match item type
1406
1373
  */
@@ -1420,7 +1387,6 @@ const MgInputCheckbox = class {
1420
1387
  this.hasDisplayedError = false;
1421
1388
  /**
1422
1389
  * Handle input event
1423
- *
1424
1390
  * @param {InputEvent} event input event
1425
1391
  */
1426
1392
  this.handleInput = (event) => {
@@ -1443,7 +1409,6 @@ const MgInputCheckbox = class {
1443
1409
  };
1444
1410
  /**
1445
1411
  * get invalid element
1446
- *
1447
1412
  * @returns {HTMLInputElement} element
1448
1413
  */
1449
1414
  this.getInvalidElement = () => this.inputs.find((input) => input !== null && !input.disabled && !input.checkValidity());
@@ -1511,7 +1476,6 @@ const MgInputCheckbox = class {
1511
1476
  }
1512
1477
  /**
1513
1478
  * Public method to display errors
1514
- *
1515
1479
  * @returns {Promise<void>}
1516
1480
  */
1517
1481
  async displayError() {
@@ -1524,7 +1488,6 @@ const MgInputCheckbox = class {
1524
1488
  *************/
1525
1489
  /**
1526
1490
  * Check if component props are well configured on init
1527
- *
1528
1491
  * @returns {ReturnType<typeof setTimeout>} timeout
1529
1492
  */
1530
1493
  componentWillLoad() {
@@ -1541,7 +1504,6 @@ const MgInputCheckbox = class {
1541
1504
  }
1542
1505
  /**
1543
1506
  * Render
1544
- *
1545
1507
  * @returns {HTMLElement} HTML Element
1546
1508
  */
1547
1509
  render() {
@@ -1609,7 +1571,6 @@ const MgInputDate = class {
1609
1571
  };
1610
1572
  /**
1611
1573
  * get input error code
1612
- *
1613
1574
  * @returns {null | InputError} error code
1614
1575
  */
1615
1576
  this.getInputError = () => {
@@ -1635,7 +1596,6 @@ const MgInputDate = class {
1635
1596
  };
1636
1597
  /**
1637
1598
  * Check input errors
1638
- *
1639
1599
  * @returns {void}
1640
1600
  */
1641
1601
  this.setErrorMessage = () => {
@@ -1705,7 +1665,6 @@ const MgInputDate = class {
1705
1665
  }
1706
1666
  /**
1707
1667
  * Public method to display errors
1708
- *
1709
1668
  * @returns {Promise<void>}
1710
1669
  */
1711
1670
  async displayError() {
@@ -1718,7 +1677,6 @@ const MgInputDate = class {
1718
1677
  *************/
1719
1678
  /**
1720
1679
  * Check if component props are well configured on init
1721
- *
1722
1680
  * @returns {ReturnType<typeof setTimeout>} timeout
1723
1681
  */
1724
1682
  componentWillLoad() {
@@ -1739,7 +1697,6 @@ const MgInputDate = class {
1739
1697
  }
1740
1698
  /**
1741
1699
  * Render
1742
- *
1743
1700
  * @returns {HTMLElement} HTML Element
1744
1701
  */
1745
1702
  render() {
@@ -1783,7 +1740,6 @@ const MgInputNumeric = class {
1783
1740
  this.hasDisplayedError = false;
1784
1741
  /**
1785
1742
  * Handle input event
1786
- *
1787
1743
  * @returns {void}
1788
1744
  */
1789
1745
  this.handleInput = () => {
@@ -1796,7 +1752,6 @@ const MgInputNumeric = class {
1796
1752
  };
1797
1753
  /**
1798
1754
  * Handle focus event
1799
- *
1800
1755
  * @returns {void}
1801
1756
  */
1802
1757
  this.handleFocus = () => {
@@ -1804,7 +1759,6 @@ const MgInputNumeric = class {
1804
1759
  };
1805
1760
  /**
1806
1761
  * Handle blur event
1807
- *
1808
1762
  * @returns {void}
1809
1763
  */
1810
1764
  this.handleBlur = () => {
@@ -1814,7 +1768,6 @@ const MgInputNumeric = class {
1814
1768
  };
1815
1769
  /**
1816
1770
  * Check if input is valid
1817
- *
1818
1771
  * @returns {void}
1819
1772
  */
1820
1773
  this.checkValidity = () => {
@@ -1825,7 +1778,6 @@ const MgInputNumeric = class {
1825
1778
  };
1826
1779
  /**
1827
1780
  * Set input error message
1828
- *
1829
1781
  * @returns {void}
1830
1782
  */
1831
1783
  this.setErrorMessage = () => {
@@ -1843,7 +1795,6 @@ const MgInputNumeric = class {
1843
1795
  };
1844
1796
  /**
1845
1797
  * Get input error code
1846
- *
1847
1798
  * @returns {null | InputError} error code
1848
1799
  */
1849
1800
  this.getInputError = () => {
@@ -1872,14 +1823,12 @@ const MgInputNumeric = class {
1872
1823
  };
1873
1824
  /**
1874
1825
  * Format value based on type
1875
- *
1876
1826
  * @param {number} value value to format
1877
1827
  * @returns {string} formated local value
1878
1828
  */
1879
1829
  this.formatValue = (value) => (this.type === 'currency' ? mgMenu_conf.localeCurrency(value, this.locale, this.currency) : mgMenu_conf.localeNumber(value, this.locale));
1880
1830
  /**
1881
1831
  * Validate append slot
1882
- *
1883
1832
  * @returns {void}
1884
1833
  */
1885
1834
  this.validateAppendSlot = () => {
@@ -1968,7 +1917,6 @@ const MgInputNumeric = class {
1968
1917
  }
1969
1918
  /**
1970
1919
  * Public method to display errors
1971
- *
1972
1920
  * @returns {Promise<void>}
1973
1921
  */
1974
1922
  async displayError() {
@@ -1979,7 +1927,6 @@ const MgInputNumeric = class {
1979
1927
  /**
1980
1928
  * Displayed value in input
1981
1929
  * Change on focus/blur
1982
- *
1983
1930
  * @returns {MgInputNumeric['value'] | MgInputNumeric['readonlyValue']} display value
1984
1931
  */
1985
1932
  displayValue() {
@@ -1990,7 +1937,6 @@ const MgInputNumeric = class {
1990
1937
  *************/
1991
1938
  /**
1992
1939
  * Check if component props are well configured on init
1993
- *
1994
1940
  * @returns {ReturnType<typeof setTimeout>} timeout
1995
1941
  */
1996
1942
  componentWillLoad() {
@@ -2014,7 +1960,6 @@ const MgInputNumeric = class {
2014
1960
  }
2015
1961
  /**
2016
1962
  * Render
2017
- *
2018
1963
  * @returns {HTMLElement} HTML Element
2019
1964
  */
2020
1965
  render() {
@@ -2115,7 +2060,6 @@ const MgInputPassword = class {
2115
2060
  }
2116
2061
  /**
2117
2062
  * Public method to display errors
2118
- *
2119
2063
  * @returns {Promise<void>}
2120
2064
  */
2121
2065
  async displayError() {
@@ -2128,7 +2072,6 @@ const MgInputPassword = class {
2128
2072
  *************/
2129
2073
  /**
2130
2074
  * Check if component props are well configured on init
2131
- *
2132
2075
  * @returns {ReturnType<typeof setTimeout>} timeout
2133
2076
  */
2134
2077
  componentWillLoad() {
@@ -2143,7 +2086,6 @@ const MgInputPassword = class {
2143
2086
  }
2144
2087
  /**
2145
2088
  * Render
2146
- *
2147
2089
  * @returns {HTMLElement} HTML Element
2148
2090
  */
2149
2091
  render() {
@@ -2166,7 +2108,6 @@ const mgInputRadioCss = ":host{display:block}.mg-input{display:flex;align-items:
2166
2108
 
2167
2109
  /**
2168
2110
  * type Option validation function
2169
- *
2170
2111
  * @param {RadioOption} option radio option
2171
2112
  * @returns {boolean} radio option type is valid
2172
2113
  */
@@ -2185,7 +2126,6 @@ const MgInputRadio = class {
2185
2126
  this.hasDisplayedError = false;
2186
2127
  /**
2187
2128
  * Handle input event
2188
- *
2189
2129
  * @param {event} event input event
2190
2130
  * @returns {void}
2191
2131
  */
@@ -2195,7 +2135,6 @@ const MgInputRadio = class {
2195
2135
  };
2196
2136
  /**
2197
2137
  * Handle blur event
2198
- *
2199
2138
  * @returns {void}
2200
2139
  */
2201
2140
  this.handleBlur = () => {
@@ -2204,7 +2143,6 @@ const MgInputRadio = class {
2204
2143
  };
2205
2144
  /**
2206
2145
  * Check if input is valid
2207
- *
2208
2146
  * @returns {void}
2209
2147
  */
2210
2148
  this.checkValidity = () => {
@@ -2215,7 +2153,6 @@ const MgInputRadio = class {
2215
2153
  };
2216
2154
  /**
2217
2155
  * Set input error message
2218
- *
2219
2156
  * @returns {void}
2220
2157
  */
2221
2158
  this.setErrorMessage = () => {
@@ -2228,7 +2165,6 @@ const MgInputRadio = class {
2228
2165
  };
2229
2166
  /**
2230
2167
  * get invalid element
2231
- *
2232
2168
  * @returns {HTMLInputElement} element
2233
2169
  */
2234
2170
  this.getInvalidElement = () => this.inputs.find((input) => !input.disabled && !input.readOnly && !input.checkValidity());
@@ -2283,7 +2219,6 @@ const MgInputRadio = class {
2283
2219
  }
2284
2220
  /**
2285
2221
  * Public method to display errors
2286
- *
2287
2222
  * @returns {Promise<void>}
2288
2223
  */
2289
2224
  async displayError() {
@@ -2296,7 +2231,6 @@ const MgInputRadio = class {
2296
2231
  *************/
2297
2232
  /**
2298
2233
  * Check if component props are well configured on init
2299
- *
2300
2234
  * @returns {ReturnType<typeof setTimeout>} timeout
2301
2235
  */
2302
2236
  componentWillLoad() {
@@ -2313,7 +2247,6 @@ const MgInputRadio = class {
2313
2247
  }
2314
2248
  /**
2315
2249
  * Render
2316
- *
2317
2250
  * @returns {HTMLElement} HTML Element
2318
2251
  */
2319
2252
  render() {
@@ -2337,28 +2270,24 @@ const mgInputSelectCss = ":host{display:block}.mg-input{display:flex;align-items
2337
2270
 
2338
2271
  /**
2339
2272
  * Check if item is a well configured option
2340
- *
2341
2273
  * @param {unknown} option select option
2342
2274
  * @returns {boolean} select option type is valid
2343
2275
  */
2344
2276
  const isOption$1 = (option) => typeof option === 'object' && typeof option.title === 'string';
2345
2277
  /**
2346
2278
  * Check if items[] is SelectOption
2347
- *
2348
2279
  * @param {unknown[]} items select option
2349
2280
  * @returns {boolean} select option array type is valid
2350
2281
  */
2351
2282
  const allItemsAreOptions = (items) => Array.isArray(items) && items.every(item => isOption$1(item));
2352
2283
  /**
2353
2284
  * Check if item is a well configured optgroup
2354
- *
2355
2285
  * @param {unknown} optgroup select option
2356
2286
  * @returns {boolean} select optgroup type is valid
2357
2287
  */
2358
2288
  const isOptGroup = (optgroup) => typeof optgroup === 'object' && typeof optgroup.group === 'string' && allItemsAreOptions(optgroup.options);
2359
2289
  /**
2360
2290
  * Group options
2361
- *
2362
2291
  * @param {(SelectOption | OptGroup)[]} acc reduce accumulator
2363
2292
  * @param {SelectOption} item item to add
2364
2293
  * @param {string} item.group item group
@@ -2394,7 +2323,6 @@ const MgInputSelect = class {
2394
2323
  this.hasDisplayedError = false;
2395
2324
  /**
2396
2325
  * Handle input event
2397
- *
2398
2326
  * @returns {void}
2399
2327
  */
2400
2328
  this.handleInput = () => {
@@ -2404,14 +2332,12 @@ const MgInputSelect = class {
2404
2332
  };
2405
2333
  /**
2406
2334
  * Method to compare item.title with input.value
2407
- *
2408
2335
  * @param {SelectOption} item item to compare with
2409
2336
  * @returns {boolean} truthy if input.value is an item
2410
2337
  */
2411
2338
  this.isInputValue = (item) => { var _a; return item.title === ((_a = this.input) === null || _a === void 0 ? void 0 : _a.value); };
2412
2339
  /**
2413
2340
  * value props setter
2414
- *
2415
2341
  * @param {MgInputSelect['value']} newValue value to update with
2416
2342
  * @returns {void}
2417
2343
  */
@@ -2421,7 +2347,6 @@ const MgInputSelect = class {
2421
2347
  };
2422
2348
  /**
2423
2349
  * Update value from input.value
2424
- *
2425
2350
  * @returns {void}
2426
2351
  */
2427
2352
  this.updateValue = () => {
@@ -2448,7 +2373,6 @@ const MgInputSelect = class {
2448
2373
  };
2449
2374
  /**
2450
2375
  * Input value is disabled
2451
- *
2452
2376
  * @returns {boolean} truthy if input value is disabled
2453
2377
  */
2454
2378
  this.isDisabledValue = () => { var _a; return allItemsAreOptions(this.options) && ((_a = this.options.find(this.isInputValue)) === null || _a === void 0 ? void 0 : _a.disabled) === true; };
@@ -2474,7 +2398,6 @@ const MgInputSelect = class {
2474
2398
  };
2475
2399
  /**
2476
2400
  * Render option
2477
- *
2478
2401
  * @param {SelectOption} option to render
2479
2402
  * @returns {HTMLElement} render option
2480
2403
  */
@@ -2555,7 +2478,6 @@ const MgInputSelect = class {
2555
2478
  }
2556
2479
  /**
2557
2480
  * Public method to display errors
2558
- *
2559
2481
  * @returns {Promise<void>}
2560
2482
  */
2561
2483
  async displayError() {
@@ -2568,7 +2490,6 @@ const MgInputSelect = class {
2568
2490
  *************/
2569
2491
  /**
2570
2492
  * Check if component props are well configured on init
2571
- *
2572
2493
  * @returns {ReturnType<typeof setTimeout>} timeout
2573
2494
  */
2574
2495
  componentWillLoad() {
@@ -2590,7 +2511,6 @@ const MgInputSelect = class {
2590
2511
  }
2591
2512
  /**
2592
2513
  * Render
2593
- *
2594
2514
  * @returns {HTMLElement} HTML Element
2595
2515
  */
2596
2516
  render() {
@@ -2629,7 +2549,6 @@ const MgInputText = class {
2629
2549
  this.hasDisplayedError = false;
2630
2550
  /**
2631
2551
  * Handle input event
2632
- *
2633
2552
  * @returns {void}
2634
2553
  */
2635
2554
  this.handleInput = () => {
@@ -2641,7 +2560,6 @@ const MgInputText = class {
2641
2560
  };
2642
2561
  /**
2643
2562
  * Handle focus event
2644
- *
2645
2563
  * @returns {void}
2646
2564
  */
2647
2565
  this.handleFocus = () => {
@@ -2650,7 +2568,6 @@ const MgInputText = class {
2650
2568
  };
2651
2569
  /**
2652
2570
  * Handle blur event
2653
- *
2654
2571
  * @returns {void}
2655
2572
  */
2656
2573
  this.handleBlur = () => {
@@ -2662,7 +2579,6 @@ const MgInputText = class {
2662
2579
  };
2663
2580
  /**
2664
2581
  * Check if input is valid
2665
- *
2666
2582
  * @returns {void}
2667
2583
  */
2668
2584
  this.checkValidity = () => {
@@ -2674,7 +2590,6 @@ const MgInputText = class {
2674
2590
  };
2675
2591
  /**
2676
2592
  * Set input error message
2677
- *
2678
2593
  * @returns {void}
2679
2594
  */
2680
2595
  this.setErrorMessage = () => {
@@ -2691,11 +2606,10 @@ const MgInputText = class {
2691
2606
  };
2692
2607
  /**
2693
2608
  * Validate pattern configuration
2694
- *
2695
2609
  * @returns {void}
2696
2610
  */
2697
2611
  this.validatePattern = () => {
2698
- if (this.pattern &&
2612
+ if (this.pattern !== undefined &&
2699
2613
  typeof this.pattern === 'string' &&
2700
2614
  this.pattern !== '' &&
2701
2615
  (this.patternErrorMessage === undefined || typeof this.patternErrorMessage !== 'string' || this.patternErrorMessage === '')) {
@@ -2704,7 +2618,6 @@ const MgInputText = class {
2704
2618
  };
2705
2619
  /**
2706
2620
  * Validate append slot
2707
- *
2708
2621
  * @returns {void}
2709
2622
  */
2710
2623
  this.validateAppendSlot = () => {
@@ -2764,7 +2677,6 @@ const MgInputText = class {
2764
2677
  }
2765
2678
  /**
2766
2679
  * Public method to play input focus
2767
- *
2768
2680
  * @returns {Promise<void>}
2769
2681
  */
2770
2682
  async setFocus() {
@@ -2772,7 +2684,6 @@ const MgInputText = class {
2772
2684
  }
2773
2685
  /**
2774
2686
  * Public method to display errors
2775
- *
2776
2687
  * @returns {Promise<void>}
2777
2688
  */
2778
2689
  async displayError() {
@@ -2785,7 +2696,6 @@ const MgInputText = class {
2785
2696
  *************/
2786
2697
  /**
2787
2698
  * Check if component props are well configured on init
2788
- *
2789
2699
  * @returns {ReturnType<typeof setTimeout>} timeout
2790
2700
  */
2791
2701
  componentWillLoad() {
@@ -2805,7 +2715,6 @@ const MgInputText = class {
2805
2715
  }
2806
2716
  /**
2807
2717
  * Render
2808
- *
2809
2718
  * @returns {HTMLElement} HTML Element
2810
2719
  */
2811
2720
  render() {
@@ -2874,7 +2783,6 @@ const MgInputTextarea = class {
2874
2783
  /**
2875
2784
  * Get pattern validity
2876
2785
  * Pattern is not defined on textarea field: https://developer.mozilla.org/fr/docs/Web/HTML/Element/Textarea
2877
- *
2878
2786
  * @returns {boolean} is pattern valid
2879
2787
  */
2880
2788
  this.getPatternValidity = () => this.pattern === undefined || new RegExp(`^${this.pattern}$`, 'u').test(this.value);
@@ -2907,7 +2815,7 @@ const MgInputTextarea = class {
2907
2815
  * Validate pattern configuration
2908
2816
  */
2909
2817
  this.validatePattern = () => {
2910
- if (this.pattern &&
2818
+ if (this.pattern !== undefined &&
2911
2819
  typeof this.pattern === 'string' &&
2912
2820
  this.pattern !== '' &&
2913
2821
  (this.patternErrorMessage === undefined || typeof this.patternErrorMessage !== 'string' || this.patternErrorMessage === '')) {
@@ -2962,7 +2870,6 @@ const MgInputTextarea = class {
2962
2870
  }
2963
2871
  /**
2964
2872
  * Public method to display errors
2965
- *
2966
2873
  * @returns {Promise<void>}
2967
2874
  */
2968
2875
  async displayError() {
@@ -2975,7 +2882,6 @@ const MgInputTextarea = class {
2975
2882
  *************/
2976
2883
  /**
2977
2884
  * Check if component props are well configured on init
2978
- *
2979
2885
  * @returns {ReturnType<typeof setTimeout>} timeout
2980
2886
  */
2981
2887
  componentWillLoad() {
@@ -2994,7 +2900,6 @@ const MgInputTextarea = class {
2994
2900
  }
2995
2901
  /**
2996
2902
  * Render
2997
- *
2998
2903
  * @returns {HTMLElement} HTML Element
2999
2904
  */
3000
2905
  render() {
@@ -3042,7 +2947,6 @@ const MgInputTitle = class {
3042
2947
  *************/
3043
2948
  /**
3044
2949
  * Init tag name
3045
- *
3046
2950
  * @returns {void}
3047
2951
  */
3048
2952
  componentWillLoad() {
@@ -3051,7 +2955,6 @@ const MgInputTitle = class {
3051
2955
  }
3052
2956
  /**
3053
2957
  * Render
3054
- *
3055
2958
  * @returns {HTMLElement} HTML Element
3056
2959
  */
3057
2960
  render() {
@@ -3069,7 +2972,6 @@ const mgInputToggleCss = ":host{display:block}.mg-input{display:flex;align-items
3069
2972
 
3070
2973
  /**
3071
2974
  * type Option validation function
3072
- *
3073
2975
  * @param {ToggleValue} option radio option
3074
2976
  * @returns {boolean} toggle option type is valid
3075
2977
  */
@@ -3090,7 +2992,6 @@ const MgInputToggle = class {
3090
2992
  this.classIcon = 'mg-input--toggle-icon';
3091
2993
  /**
3092
2994
  * Change checked value
3093
- *
3094
2995
  * @returns {void}
3095
2996
  */
3096
2997
  this.toggleChecked = () => {
@@ -3098,7 +2999,6 @@ const MgInputToggle = class {
3098
2999
  };
3099
3000
  /**
3100
3001
  * Slots validation
3101
- *
3102
3002
  * @returns {void}
3103
3003
  */
3104
3004
  this.validateSlots = () => {
@@ -3186,7 +3086,6 @@ const MgInputToggle = class {
3186
3086
  }
3187
3087
  /**
3188
3088
  * set checked state
3189
- *
3190
3089
  * @returns {void}
3191
3090
  */
3192
3091
  setChecked() {
@@ -3229,7 +3128,6 @@ const MgInputToggle = class {
3229
3128
  }
3230
3129
  /**
3231
3130
  * Render
3232
- *
3233
3131
  * @returns {HTMLElement} HTML Element
3234
3132
  */
3235
3133
  render() {
@@ -3264,7 +3162,6 @@ const MgMenu = class {
3264
3162
  *************/
3265
3163
  /**
3266
3164
  * Close matching menu-item
3267
- *
3268
3165
  * @param {HTMLElement} item menu-item to close
3269
3166
  * @param {boolean} condition addionnal condition
3270
3167
  * @returns {void}
@@ -3276,19 +3173,16 @@ const MgMenu = class {
3276
3173
  };
3277
3174
  /**
3278
3175
  * get mg-item-more element
3279
- *
3280
3176
  * @returns {HTMLMgItemMoreElement} mg-item-more element
3281
3177
  */
3282
3178
  this.getItemMore = () => this.element.querySelector('mg-item-more');
3283
3179
  /**
3284
3180
  * get mg-item-more >>> mg-menu-item element
3285
- *
3286
3181
  * @returns {HTMLMgMenuItemElement} mg-item-more >>> mg-menu-item element
3287
3182
  */
3288
3183
  this.getItemMoreMenuItem = () => { var _a, _b; return (_b = (_a = this.getItemMore()) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('mg-menu-item'); };
3289
3184
  /**
3290
3185
  * Set item listend
3291
- *
3292
3186
  * @param {HTMLMgMenuItemElement} item mg-menu-item element
3293
3187
  * @param {MgMenu['focusedMenuItem']} index number
3294
3188
  * @returns {void}
@@ -3306,7 +3200,6 @@ const MgMenu = class {
3306
3200
  };
3307
3201
  /**
3308
3202
  * Store menu-items on component init and add listeners
3309
- *
3310
3203
  * @returns {void}
3311
3204
  */
3312
3205
  this.initMenuItemsListeners = () => {
@@ -3317,7 +3210,6 @@ const MgMenu = class {
3317
3210
  };
3318
3211
  /**
3319
3212
  * Handle item-loaded event on mg-item-more element
3320
- *
3321
3213
  * @returns {void}
3322
3214
  */
3323
3215
  this.handleItemLoaded = () => {
@@ -3325,7 +3217,6 @@ const MgMenu = class {
3325
3217
  };
3326
3218
  /**
3327
3219
  * render mg-item-more
3328
- *
3329
3220
  * @returns {void}
3330
3221
  */
3331
3222
  this.renderMgItemMore = () => {
@@ -3368,7 +3259,6 @@ const MgMenu = class {
3368
3259
  *************/
3369
3260
  /**
3370
3261
  * Validate props
3371
- *
3372
3262
  * @returns {void}
3373
3263
  */
3374
3264
  componentWillLoad() {
@@ -3379,7 +3269,6 @@ const MgMenu = class {
3379
3269
  }
3380
3270
  /**
3381
3271
  * Check if component slots configuration
3382
- *
3383
3272
  * @returns {ReturnType<typeof setTimeout>} timeout
3384
3273
  */
3385
3274
  componentDidLoad() {
@@ -3410,7 +3299,6 @@ const MgMenu = class {
3410
3299
  }
3411
3300
  /**
3412
3301
  * Add listeners to items
3413
- *
3414
3302
  * @returns {void}
3415
3303
  */
3416
3304
  componentDidRender() {
@@ -3418,7 +3306,6 @@ const MgMenu = class {
3418
3306
  }
3419
3307
  /**
3420
3308
  * Render
3421
- *
3422
3309
  * @returns {HTMLElement} HTML Element
3423
3310
  */
3424
3311
  render() {
@@ -3451,7 +3338,6 @@ const MgMenuItem = class {
3451
3338
  **********/
3452
3339
  /**
3453
3340
  * Toggle expanded prop value
3454
- *
3455
3341
  * @returns {void}
3456
3342
  */
3457
3343
  this.toggleExpanded = () => {
@@ -3459,7 +3345,6 @@ const MgMenuItem = class {
3459
3345
  };
3460
3346
  /**
3461
3347
  * Does an Element have given Status
3462
- *
3463
3348
  * @param {HTMLMgMenuItemElement} mgMenuItemElement to parse
3464
3349
  * @param {MgMenuItem['status']} status to check
3465
3350
  * @returns {boolean} true if element with status is found
@@ -3467,7 +3352,6 @@ const MgMenuItem = class {
3467
3352
  this.hasStatus = (mgMenuItemElement, status) => mgMenuItemElement.status === status;
3468
3353
  /**
3469
3354
  * Is component contextual direction match the given direction
3470
- *
3471
3355
  * @param {MgMenuItem['direction']} direction in parent menu
3472
3356
  * @param {MgMenuItem['direction']} compareWith direction to compare with. Default: `this.direction`
3473
3357
  * @returns {boolean} true is direction match the direction propertie
@@ -3476,7 +3360,6 @@ const MgMenuItem = class {
3476
3360
  /**
3477
3361
  * Update displayNotificationBadge
3478
3362
  * current component notification badge have priority over the slot badge when submenu contain badge
3479
- *
3480
3363
  * @returns {void} update displayNotificationBadge value
3481
3364
  */
3482
3365
  this.updateDisplayNotificationBadge = () => {
@@ -3487,7 +3370,6 @@ const MgMenuItem = class {
3487
3370
  };
3488
3371
  /**
3489
3372
  * Method to control if one of component children have active status
3490
- *
3491
3373
  * @returns {boolean} truthy if component has active child
3492
3374
  */
3493
3375
  this.hasActiveChild = () => {
@@ -3496,7 +3378,6 @@ const MgMenuItem = class {
3496
3378
  };
3497
3379
  /**
3498
3380
  * Validate slots
3499
- *
3500
3381
  * @param {boolean} guard prevent action whith guard. Default: false.
3501
3382
  * @returns {void}
3502
3383
  */
@@ -3516,7 +3397,6 @@ const MgMenuItem = class {
3516
3397
  };
3517
3398
  /**
3518
3399
  * Update status
3519
- *
3520
3400
  * @param {Status[]} guard status to exclude from process in addition to [Status.HIDDEN, Status.DISABLED] . Default: [].
3521
3401
  * @returns {void}
3522
3402
  */
@@ -3527,7 +3407,6 @@ const MgMenuItem = class {
3527
3407
  };
3528
3408
  /**
3529
3409
  * Init event-listeners
3530
- *
3531
3410
  * @returns {void}
3532
3411
  */
3533
3412
  this.initListeners = () => {
@@ -3544,13 +3423,11 @@ const MgMenuItem = class {
3544
3423
  };
3545
3424
  /**
3546
3425
  * Get mg-popover identifier
3547
- *
3548
3426
  * @returns {MgPopover['identifier']} generated mg-popover identifier
3549
3427
  */
3550
3428
  this.getPopoverIdentifier = () => `${this.identifier}-popover`;
3551
3429
  /**
3552
3430
  * Condition to know if component should display a mg-popover
3553
- *
3554
3431
  * @returns {boolean} truthy if component display popover
3555
3432
  */
3556
3433
  this.displayPopover = () => this.isDirection(mgMenu_conf.Direction.HORIZONTAL) && this.hasChildren && this.href === undefined;
@@ -3559,7 +3436,6 @@ const MgMenuItem = class {
3559
3436
  ************/
3560
3437
  /**
3561
3438
  * Handle interacrtive element click
3562
- *
3563
3439
  * @param {MouseEvent} event click on element
3564
3440
  * @returns {void}
3565
3441
  */
@@ -3574,7 +3450,6 @@ const MgMenuItem = class {
3574
3450
  };
3575
3451
  /**
3576
3452
  * Handle popover element display-change event
3577
- *
3578
3453
  * @param {CustomEvent} event popover display event
3579
3454
  * @returns {void}
3580
3455
  */
@@ -3583,7 +3458,6 @@ const MgMenuItem = class {
3583
3458
  };
3584
3459
  /**
3585
3460
  * Render slot
3586
- *
3587
3461
  * @returns {HTMLElement} HTML Element
3588
3462
  */
3589
3463
  this.renderSlot = () => index.h("slot", null);
@@ -3650,7 +3524,6 @@ const MgMenuItem = class {
3650
3524
  }
3651
3525
  /**
3652
3526
  * Render popover clickoutside guard for content slot
3653
- *
3654
3527
  * @returns {void}
3655
3528
  */
3656
3529
  updatePopoverGuard() {
@@ -3664,7 +3537,6 @@ const MgMenuItem = class {
3664
3537
  *************/
3665
3538
  /**
3666
3539
  * Validate props
3667
- *
3668
3540
  * @returns {void}
3669
3541
  */
3670
3542
  componentWillLoad() {
@@ -3681,7 +3553,6 @@ const MgMenuItem = class {
3681
3553
  }
3682
3554
  /**
3683
3555
  * Check if component slots configuration
3684
- *
3685
3556
  * @returns {ReturnType<typeof setTimeout>} timeout
3686
3557
  */
3687
3558
  componentDidLoad() {
@@ -3721,7 +3592,6 @@ const MgMenuItem = class {
3721
3592
  }
3722
3593
  /**
3723
3594
  * Render ineractive element
3724
- *
3725
3595
  * @returns {HTMLElement} HTML Element
3726
3596
  */
3727
3597
  renderInteractiveElement() {
@@ -3734,7 +3604,6 @@ const MgMenuItem = class {
3734
3604
  }
3735
3605
  /**
3736
3606
  * Render
3737
- *
3738
3607
  * @returns {HTMLElement} HTML Element
3739
3608
  */
3740
3609
  render() {
@@ -3784,7 +3653,6 @@ const MgMessage = class {
3784
3653
  this.isHovered = false;
3785
3654
  /**
3786
3655
  * Set timer
3787
- *
3788
3656
  * @returns {void}
3789
3657
  */
3790
3658
  this.setTimer = () => {
@@ -3792,7 +3660,6 @@ const MgMessage = class {
3792
3660
  };
3793
3661
  /**
3794
3662
  * Clear timer
3795
- *
3796
3663
  * @returns {void}
3797
3664
  */
3798
3665
  this.clearTimer = () => {
@@ -3800,7 +3667,6 @@ const MgMessage = class {
3800
3667
  };
3801
3668
  /**
3802
3669
  * Event to add on element
3803
- *
3804
3670
  * @param {MouseEvent | FocusEvent} event event
3805
3671
  * @returns {void}
3806
3672
  */
@@ -3825,8 +3691,7 @@ const MgMessage = class {
3825
3691
  };
3826
3692
  /**
3827
3693
  * Get icon corresponding to variant
3828
- *
3829
- * @returns {string} icon
3694
+ * @returns {MgIcon['icon'] | undefined} icon
3830
3695
  */
3831
3696
  this.getIcon = () => {
3832
3697
  switch (this.variant) {
@@ -3849,7 +3714,7 @@ const MgMessage = class {
3849
3714
  this.hasActions = false;
3850
3715
  }
3851
3716
  validateDelay(newValue) {
3852
- if (newValue && newValue < 2) {
3717
+ if (newValue !== undefined && newValue < 2) {
3853
3718
  throw new Error(`<mg-message> prop "delay" must be greater than 2 seconds.`);
3854
3719
  }
3855
3720
  }
@@ -3918,7 +3783,6 @@ const MgMessage = class {
3918
3783
  }
3919
3784
  /**
3920
3785
  * Render
3921
- *
3922
3786
  * @returns {HTMLElement} HTML Element
3923
3787
  */
3924
3788
  render() {
@@ -3982,7 +3846,6 @@ const MgModal = class {
3982
3846
  *************/
3983
3847
  /**
3984
3848
  * Handle close button
3985
- *
3986
3849
  * @returns {void}
3987
3850
  */
3988
3851
  this.handleClose = () => {
@@ -4015,7 +3878,6 @@ const MgModal = class {
4015
3878
  }
4016
3879
  /**
4017
3880
  * Handle 'escape' key down
4018
- *
4019
3881
  * @param {KeyboardEvent} event keydown event
4020
3882
  * @returns {void}
4021
3883
  */
@@ -4030,7 +3892,6 @@ const MgModal = class {
4030
3892
  *************/
4031
3893
  /**
4032
3894
  * Check if component props are well configured on init
4033
- *
4034
3895
  * @returns {void}
4035
3896
  */
4036
3897
  componentWillLoad() {
@@ -4050,7 +3911,6 @@ const MgModal = class {
4050
3911
  }
4051
3912
  /**
4052
3913
  * Add observer on component to set focus when displayed
4053
- *
4054
3914
  * @returns {void}
4055
3915
  */
4056
3916
  componentDidLoad() {
@@ -4066,7 +3926,6 @@ const MgModal = class {
4066
3926
  }
4067
3927
  /**
4068
3928
  * Render
4069
- *
4070
3929
  * @returns {HTMLElement} HTML Element
4071
3930
  */
4072
3931
  render() {
@@ -4102,7 +3961,6 @@ const mgPaginationCss = ".sr-only{border:0 !important;clip:rect(1px, 1px, 1px, 1
4102
3961
  * range(1, 1) = [1]
4103
3962
  * range(1, 5) = [1, 2, 3, 4, 5]
4104
3963
  * range(10, 20, 2) = [10, 12, 14, 16, 18, 20]
4105
- *
4106
3964
  * @param {number} start start range
4107
3965
  * @param {number} end start end
4108
3966
  * @param {number} step step size
@@ -4115,7 +3973,6 @@ const MgPagination = class {
4115
3973
  this.currentPageChange = index.createEvent(this, "current-page-change", 7);
4116
3974
  /**
4117
3975
  * Change current page from target
4118
- *
4119
3976
  * @param {number} target target page
4120
3977
  * @returns {void}
4121
3978
  */
@@ -4127,7 +3984,6 @@ const MgPagination = class {
4127
3984
  ************/
4128
3985
  /**
4129
3986
  * select handler
4130
- *
4131
3987
  * @param {InputEvent} event value change event
4132
3988
  * @returns {void}
4133
3989
  */
@@ -4137,7 +3993,6 @@ const MgPagination = class {
4137
3993
  };
4138
3994
  /**
4139
3995
  * Go to 'previous/next' page button handler
4140
- *
4141
3996
  * @param {string} action navigation action
4142
3997
  * @param {boolean} disabled button disable state
4143
3998
  * @returns {void}
@@ -4170,7 +4025,6 @@ const MgPagination = class {
4170
4025
  *************/
4171
4026
  /**
4172
4027
  * Check if props are well configured on init
4173
- *
4174
4028
  * @returns {void}
4175
4029
  */
4176
4030
  componentWillLoad() {
@@ -4186,7 +4040,6 @@ const MgPagination = class {
4186
4040
  }
4187
4041
  /**
4188
4042
  * Render
4189
- *
4190
4043
  * @returns {HTMLElement} HTML Element
4191
4044
  */
4192
4045
  render() {
@@ -4215,7 +4068,6 @@ const MgPanel = class {
4215
4068
  ************/
4216
4069
  /**
4217
4070
  * Toggle is editing state
4218
- *
4219
4071
  * @returns {void}
4220
4072
  */
4221
4073
  this.toggleIsEditing = () => {
@@ -4226,7 +4078,6 @@ const MgPanel = class {
4226
4078
  ************/
4227
4079
  /**
4228
4080
  * Collapse button click handler
4229
- *
4230
4081
  * @returns {void}
4231
4082
  */
4232
4083
  this.handleCollapseButton = () => {
@@ -4236,7 +4087,6 @@ const MgPanel = class {
4236
4087
  };
4237
4088
  /**
4238
4089
  * Edit button click handler
4239
- *
4240
4090
  * @returns {void}
4241
4091
  */
4242
4092
  this.handleEditButton = () => {
@@ -4244,7 +4094,6 @@ const MgPanel = class {
4244
4094
  };
4245
4095
  /**
4246
4096
  * Update title handler
4247
- *
4248
4097
  * @param {CustomEvent<string>} event input value change event
4249
4098
  * @returns {void}
4250
4099
  */
@@ -4253,7 +4102,6 @@ const MgPanel = class {
4253
4102
  };
4254
4103
  /**
4255
4104
  * Cancel edition button handler
4256
- *
4257
4105
  * @returns {void}
4258
4106
  */
4259
4107
  this.handleCancelEditButton = () => {
@@ -4262,7 +4110,6 @@ const MgPanel = class {
4262
4110
  };
4263
4111
  /**
4264
4112
  * Validate edition button handler
4265
- *
4266
4113
  * @returns {void}
4267
4114
  */
4268
4115
  this.handleValidateEditButton = () => {
@@ -4274,7 +4121,6 @@ const MgPanel = class {
4274
4121
  };
4275
4122
  /**
4276
4123
  * Header left conditional render
4277
- *
4278
4124
  * @typedef {HTMLElement} HTMLMgButtonElement
4279
4125
  * @returns {HTMLMgButtonElement | HTMLElement | HTMLElement[]} header left element
4280
4126
  */
@@ -4312,10 +4158,10 @@ const MgPanel = class {
4312
4158
  this.titleChange.emit(newValue);
4313
4159
  }
4314
4160
  validatetitlePattern(newValue) {
4315
- if (newValue && !this.titleEditable) {
4161
+ if (newValue !== undefined && !this.titleEditable) {
4316
4162
  throw new Error('<mg-panel> prop "titleEditable" must be set to `true`.');
4317
4163
  }
4318
- if (newValue && (this.titlePatternErrorMessage === undefined || this.titlePatternErrorMessage.trim() === '')) {
4164
+ if (newValue !== undefined && (this.titlePatternErrorMessage === undefined || this.titlePatternErrorMessage.trim() === '')) {
4319
4165
  throw new Error('<mg-panel> prop "titlePattern" must be paired with the prop "titlePatternErrorMessage".');
4320
4166
  }
4321
4167
  }
@@ -4327,7 +4173,6 @@ const MgPanel = class {
4327
4173
  *************/
4328
4174
  /**
4329
4175
  * Check if props are well configured on init
4330
- *
4331
4176
  * @returns {void}
4332
4177
  */
4333
4178
  componentWillLoad() {
@@ -4339,7 +4184,6 @@ const MgPanel = class {
4339
4184
  }
4340
4185
  /**
4341
4186
  * Edit DOM after render
4342
- *
4343
4187
  * @returns {void}
4344
4188
  */
4345
4189
  componentDidRender() {
@@ -4350,7 +4194,6 @@ const MgPanel = class {
4350
4194
  }
4351
4195
  /**
4352
4196
  * Render component
4353
- *
4354
4197
  * @returns {HTMLElement} html element
4355
4198
  */
4356
4199
  render() {
@@ -6173,7 +6016,6 @@ const MgPopover = class {
6173
6016
  this.classArrowHide = `mg-popover--arrow-hide`;
6174
6017
  /**
6175
6018
  * Check if clicked outside of component
6176
- *
6177
6019
  * @param {MouseEvent} event mouse event
6178
6020
  * @returns {void}
6179
6021
  */
@@ -6187,7 +6029,6 @@ const MgPopover = class {
6187
6029
  };
6188
6030
  /**
6189
6031
  * Show popover
6190
- *
6191
6032
  * @returns {void}
6192
6033
  */
6193
6034
  this.show = () => {
@@ -6207,7 +6048,6 @@ const MgPopover = class {
6207
6048
  };
6208
6049
  /**
6209
6050
  * Hide popover
6210
- *
6211
6051
  * @returns {void}
6212
6052
  */
6213
6053
  this.hide = () => {
@@ -6222,7 +6062,6 @@ const MgPopover = class {
6222
6062
  };
6223
6063
  /**
6224
6064
  * Handle action for close button
6225
- *
6226
6065
  * @returns {void}
6227
6066
  */
6228
6067
  this.handleCloseButton = () => {
@@ -6256,7 +6095,6 @@ const MgPopover = class {
6256
6095
  *************/
6257
6096
  /**
6258
6097
  * Check if component props are well configured on init
6259
- *
6260
6098
  * @returns {void} timeout
6261
6099
  */
6262
6100
  componentWillLoad() {
@@ -6268,7 +6106,6 @@ const MgPopover = class {
6268
6106
  }
6269
6107
  /**
6270
6108
  * Check if component props are well configured on init
6271
- *
6272
6109
  * @returns {void}
6273
6110
  */
6274
6111
  componentDidLoad() {
@@ -6326,7 +6163,6 @@ const MgPopover = class {
6326
6163
  }
6327
6164
  /**
6328
6165
  * Render
6329
- *
6330
6166
  * @returns {HTMLElement} HTML Element
6331
6167
  */
6332
6168
  render() {
@@ -6351,7 +6187,6 @@ const MgSkipLinks = class {
6351
6187
  **********/
6352
6188
  /**
6353
6189
  * Handle link click and emit go-to-anchor event
6354
- *
6355
6190
  * @param {MouseEvent} event mouse event
6356
6191
  * @returns {void}
6357
6192
  */
@@ -6373,7 +6208,6 @@ const MgSkipLinks = class {
6373
6208
  *************/
6374
6209
  /**
6375
6210
  * Check if props are well configured on init
6376
- *
6377
6211
  * @returns {void}
6378
6212
  */
6379
6213
  componentWillLoad() {
@@ -6382,7 +6216,6 @@ const MgSkipLinks = class {
6382
6216
  }
6383
6217
  /**
6384
6218
  * Render
6385
- *
6386
6219
  * @returns {HTMLElement} HTML Element
6387
6220
  */
6388
6221
  render() {
@@ -6414,7 +6247,6 @@ const mgTabsCss = ".mg-tabs.mg-tabs--size-regular .mg-tabs__navigation-button,.m
6414
6247
 
6415
6248
  /**
6416
6249
  * type TabItem validation function
6417
- *
6418
6250
  * @param {TabItem} tab tab item
6419
6251
  * @returns {boolean} tab item type is valid
6420
6252
  */
@@ -6432,7 +6264,6 @@ const MgTabs = class {
6432
6264
  this.startIndex = 1;
6433
6265
  /**
6434
6266
  * Method to know if given tab has the given status
6435
- *
6436
6267
  * @param {TabItem} tab item tab key to set to ACTIVE status
6437
6268
  * @param {Status} status status to valide
6438
6269
  * @returns {boolean} status comparaison
@@ -6440,7 +6271,6 @@ const MgTabs = class {
6440
6271
  this.tabHasStatus = (tab, status) => tab.status === status;
6441
6272
  /**
6442
6273
  * Method to get element id from index
6443
- *
6444
6274
  * @param {string} element to get id
6445
6275
  * @param {number} index to generate id
6446
6276
  * @returns {string} generated element id
@@ -6448,20 +6278,17 @@ const MgTabs = class {
6448
6278
  this.getElementId = (element, index) => `${element}-${this.getTabItemIndex(index)}`;
6449
6279
  /**
6450
6280
  * Method to get tab item index
6451
- *
6452
6281
  * @param {number} index to get
6453
6282
  * @returns {number} index
6454
6283
  */
6455
6284
  this.getTabItemIndex = (index) => index + this.startIndex;
6456
6285
  /**
6457
6286
  * Method to get the active-tab value
6458
- *
6459
6287
  * @returns {number} of the active-tab
6460
6288
  */
6461
6289
  this.getActiveTab = () => this.activeTab || this.getTabItemIndex(this.tabs.map((tab, index) => (Object.assign(Object.assign({}, tab), { index }))).find(tab => this.tabHasStatus(tab, Status.ACTIVE)).index);
6462
6290
  /**
6463
6291
  * Handle click events on tabs
6464
- *
6465
6292
  * @param {MouseEvent} event mouse event
6466
6293
  */
6467
6294
  this.handleClick = (event) => {
@@ -6477,14 +6304,12 @@ const MgTabs = class {
6477
6304
  };
6478
6305
  /**
6479
6306
  * get navigation button class from given status
6480
- *
6481
6307
  * @param {Status} status button tab status
6482
6308
  * @returns {string} button class/selector variant
6483
6309
  */
6484
6310
  this.getNavigationButtonClass = (status) => `${this.buttonTabBaseClass}--${status}`;
6485
6311
  /**
6486
6312
  * Handle keyboard event on tabs
6487
- *
6488
6313
  * @param {MouseEvent} event mouse event
6489
6314
  * @returns {void}
6490
6315
  */
@@ -6524,7 +6349,6 @@ const MgTabs = class {
6524
6349
  };
6525
6350
  /**
6526
6351
  * Method to reset focus behavior
6527
- *
6528
6352
  * @returns {void}
6529
6353
  */
6530
6354
  this.resetFocus = () => {
@@ -6604,7 +6428,6 @@ const MgTabs = class {
6604
6428
  *************/
6605
6429
  /**
6606
6430
  * Check if component props are well configured on init
6607
- *
6608
6431
  * @returns {void}
6609
6432
  */
6610
6433
  componentWillLoad() {
@@ -6617,7 +6440,6 @@ const MgTabs = class {
6617
6440
  }
6618
6441
  /**
6619
6442
  * add listners
6620
- *
6621
6443
  * @returns {void}
6622
6444
  */
6623
6445
  componentDidLoad() {
@@ -6628,7 +6450,6 @@ const MgTabs = class {
6628
6450
  }
6629
6451
  /**
6630
6452
  * Render
6631
- *
6632
6453
  * @returns {HTMLElement} HTML Element
6633
6454
  */
6634
6455
  render() {
@@ -6703,7 +6524,6 @@ const MgTag = class {
6703
6524
  *************/
6704
6525
  /**
6705
6526
  * Validate the given textContent
6706
- *
6707
6527
  * @param {string} textContent html element textContent property
6708
6528
  * @returns {void}
6709
6529
  */
@@ -6716,7 +6536,6 @@ const MgTag = class {
6716
6536
  *************/
6717
6537
  /**
6718
6538
  * Check if props are well configured on init
6719
- *
6720
6539
  * @returns {void}
6721
6540
  */
6722
6541
  componentWillLoad() {
@@ -6727,7 +6546,6 @@ const MgTag = class {
6727
6546
  }
6728
6547
  /**
6729
6548
  * Render
6730
- *
6731
6549
  * @returns {HTMLElement} HTML Element
6732
6550
  */
6733
6551
  render() {
@@ -6756,7 +6574,6 @@ const MgTooltip = class {
6756
6574
  index.registerInstance(this, hostRef);
6757
6575
  /**
6758
6576
  * Show tooltip
6759
- *
6760
6577
  * @returns {void}
6761
6578
  */
6762
6579
  this.show = () => {
@@ -6777,7 +6594,6 @@ const MgTooltip = class {
6777
6594
  };
6778
6595
  /**
6779
6596
  * Hide tooltip
6780
- *
6781
6597
  * @returns {void}
6782
6598
  */
6783
6599
  this.hide = () => {
@@ -6793,7 +6609,6 @@ const MgTooltip = class {
6793
6609
  };
6794
6610
  /**
6795
6611
  * Check if clicked outside of component and hidde tooltip
6796
- *
6797
6612
  * @param {MouseEvent} event mouse event
6798
6613
  * @returns {void}
6799
6614
  */
@@ -6803,7 +6618,6 @@ const MgTooltip = class {
6803
6618
  };
6804
6619
  /**
6805
6620
  * Check if 'Escape' key is pressed of component and hidde tooltip
6806
- *
6807
6621
  * @param {KeyboardEvent} event keyboard event
6808
6622
  * @returns {void}
6809
6623
  */
@@ -6813,7 +6627,6 @@ const MgTooltip = class {
6813
6627
  };
6814
6628
  /**
6815
6629
  * Method to set display prop
6816
- *
6817
6630
  * @param {boolean} newValue display prop new value
6818
6631
  * @param {boolean} condition additionnal condition to apply display prop newValue
6819
6632
  * @returns {void}
@@ -6824,7 +6637,6 @@ const MgTooltip = class {
6824
6637
  };
6825
6638
  /**
6826
6639
  * Action for tooltip element and tooltiped element mouse listener
6827
- *
6828
6640
  * @param {Guard} elementGuard tooltip element guard
6829
6641
  * @param {boolean} isMouseenter mouseenter validation
6830
6642
  * @param {Guard} conditionalGuard guard condition
@@ -6847,7 +6659,6 @@ const MgTooltip = class {
6847
6659
  };
6848
6660
  /**
6849
6661
  * Method to reset guard value
6850
- *
6851
6662
  * @returns {void}
6852
6663
  */
6853
6664
  this.resetGuard = () => {
@@ -6855,7 +6666,6 @@ const MgTooltip = class {
6855
6666
  };
6856
6667
  /**
6857
6668
  * Update slot content when it is a mg-button
6858
- *
6859
6669
  * @param {HTMLMgButtonElement} mgButton slotted mg-button
6860
6670
  * @returns {void}
6861
6671
  */
@@ -6874,7 +6684,6 @@ const MgTooltip = class {
6874
6684
  };
6875
6685
  /**
6876
6686
  * Init tooltip
6877
- *
6878
6687
  * @param {HTMLElement} slotElement slotted element
6879
6688
  * @param {HTMLElement} interactiveElement interactive element
6880
6689
  */
@@ -6952,7 +6761,6 @@ const MgTooltip = class {
6952
6761
  *************/
6953
6762
  /**
6954
6763
  * set variables
6955
- *
6956
6764
  * @returns {void}
6957
6765
  */
6958
6766
  componentWillLoad() {
@@ -6963,7 +6771,6 @@ const MgTooltip = class {
6963
6771
  * Get slotted element
6964
6772
  * Check if it already contain an interactive element, if not we need to add a tabIndex attribute
6965
6773
  * We need to attach the focused element to the tooltip (aria-describedby)
6966
- *
6967
6774
  * @returns {void}
6968
6775
  */
6969
6776
  componentDidLoad() {
@@ -6997,7 +6804,6 @@ const MgTooltip = class {
6997
6804
  }
6998
6805
  /**
6999
6806
  * Render
7000
- *
7001
6807
  * @returns {HTMLElement} HTML Element
7002
6808
  */
7003
6809
  render() {