@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
@@ -35,13 +35,11 @@ export declare class MgBadge {
35
35
  classList: ClassList;
36
36
  /**
37
37
  * Check if props are well configured on init
38
- *
39
38
  * @returns {void}
40
39
  */
41
40
  componentWillLoad(): void;
42
41
  /**
43
42
  * Render
44
- *
45
43
  * @returns {HTMLElement} HTML Element
46
44
  */
47
45
  render(): HTMLElement;
@@ -76,34 +76,29 @@ export declare class MgButton {
76
76
  disabledChange: EventEmitter<MgButton['disabled']>;
77
77
  /**
78
78
  * Trigger actions onClick event
79
- *
80
79
  * @param {MouseEvent} event click event
81
80
  * @returns {void}
82
81
  */
83
82
  private handleClick;
84
83
  /**
85
84
  * Handle onKeydown event
86
- *
87
85
  * @param {KeyboardEvent} event keyboard event
88
86
  * @returns {void}
89
87
  */
90
88
  private handleKeydown;
91
89
  /**
92
90
  * Handle onKeyup event
93
- *
94
91
  * @param {KeyboardEvent} event keyboard event
95
92
  * @returns {void}
96
93
  */
97
94
  private handleKeyup;
98
95
  /**
99
96
  * Check if props are well configured on init
100
- *
101
97
  * @returns {void}
102
98
  */
103
99
  componentWillLoad(): void;
104
100
  /**
105
101
  * Render component
106
- *
107
102
  * @returns {HTMLElement} html element
108
103
  */
109
104
  render(): HTMLElement;
@@ -7,7 +7,7 @@ export declare class MgCard {
7
7
  private readonly name;
8
8
  private readonly baseClass;
9
9
  /*************
10
- * Lifecycle *
10
+ * Decorators *
11
11
  *************/
12
12
  /**
13
13
  * Define variant prop
@@ -25,15 +25,22 @@ export declare class MgCard {
25
25
  * Component classes
26
26
  */
27
27
  classList: ClassList;
28
+ /**
29
+ * Methode to set default varianStyle props
30
+ * needeed has stencil doesn't know that props is mutated when updated in prop watcher
31
+ * @returns {void}
32
+ */
33
+ private setDefaultVariantStyle;
34
+ /*************
35
+ * Lifecycle *
36
+ *************/
28
37
  /**
29
38
  * Check if props are well configured on init
30
- *
31
39
  * @returns {void}
32
40
  */
33
41
  componentWillLoad(): void;
34
42
  /**
35
43
  * Render
36
- *
37
44
  * @returns {HTMLElement} HTML Element
38
45
  */
39
46
  render(): HTMLElement;
@@ -29,13 +29,11 @@ export declare class MgCharacterLeft {
29
29
  *************/
30
30
  /**
31
31
  * Check if props are well configured on init
32
- *
33
32
  * @returns {void}
34
33
  */
35
34
  componentWillLoad(): void;
36
35
  /**
37
36
  * Render component
38
- *
39
37
  * @returns {HTMLElement} HTML Element
40
38
  */
41
39
  render(): HTMLElement;
@@ -8,7 +8,6 @@ export declare class MgDivider {
8
8
  size: 'regular' | 'full';
9
9
  /**
10
10
  * Render
11
- *
12
11
  * @returns {HTMLElement} HTML Element
13
12
  */
14
13
  render(): HTMLElement;
@@ -36,19 +36,22 @@ export declare class MgIcon {
36
36
  classList: ClassList;
37
37
  /**
38
38
  * getIcon
39
- *
40
39
  * @returns {HTMLElement} icon html
41
40
  */
42
41
  private getIcon;
42
+ /**
43
+ * Method to set default varianStyle props
44
+ * needeed has stencil doesn't know that props is mutated when updated in prop watcher
45
+ * @returns {void}
46
+ */
47
+ private setDefaultVariantStyle;
43
48
  /**
44
49
  * Check if props are well configured on init
45
- *
46
50
  * @returns {void}
47
51
  */
48
52
  componentWillLoad(): void;
49
53
  /**
50
54
  * Render component
51
- *
52
55
  * @returns {HTMLElement} HTML Element
53
56
  */
54
57
  render(): HTMLElement;
@@ -22,13 +22,11 @@ export declare class MgInputTitle {
22
22
  *************/
23
23
  /**
24
24
  * Init tag name
25
- *
26
25
  * @returns {void}
27
26
  */
28
27
  componentWillLoad(): void;
29
28
  /**
30
29
  * Render
31
- *
32
30
  * @returns {HTMLElement} HTML Element
33
31
  */
34
32
  render(): HTMLElement;
@@ -37,7 +37,6 @@ export declare class MgTag {
37
37
  *************/
38
38
  /**
39
39
  * Validate the given textContent
40
- *
41
40
  * @param {string} textContent html element textContent property
42
41
  * @returns {void}
43
42
  */
@@ -47,13 +46,11 @@ export declare class MgTag {
47
46
  *************/
48
47
  /**
49
48
  * Check if props are well configured on init
50
- *
51
49
  * @returns {void}
52
50
  */
53
51
  componentWillLoad(): void;
54
52
  /**
55
53
  * Render
56
- *
57
54
  * @returns {HTMLElement} HTML Element
58
55
  */
59
56
  render(): HTMLElement;
@@ -40,33 +40,28 @@ export declare class MgTooltip {
40
40
  disabled: boolean;
41
41
  /**
42
42
  * Show tooltip
43
- *
44
43
  * @returns {void}
45
44
  */
46
45
  private show;
47
46
  /**
48
47
  * Hide tooltip
49
- *
50
48
  * @returns {void}
51
49
  */
52
50
  private hide;
53
51
  /**
54
52
  * Check if clicked outside of component and hidde tooltip
55
- *
56
53
  * @param {MouseEvent} event mouse event
57
54
  * @returns {void}
58
55
  */
59
56
  private clickOutside;
60
57
  /**
61
58
  * Check if 'Escape' key is pressed of component and hidde tooltip
62
- *
63
59
  * @param {KeyboardEvent} event keyboard event
64
60
  * @returns {void}
65
61
  */
66
62
  private pressEscape;
67
63
  /**
68
64
  * Method to set display prop
69
- *
70
65
  * @param {boolean} newValue display prop new value
71
66
  * @param {boolean} condition additionnal condition to apply display prop newValue
72
67
  * @returns {void}
@@ -74,7 +69,6 @@ export declare class MgTooltip {
74
69
  private setDisplay;
75
70
  /**
76
71
  * Action for tooltip element and tooltiped element mouse listener
77
- *
78
72
  * @param {Guard} elementGuard tooltip element guard
79
73
  * @param {boolean} isMouseenter mouseenter validation
80
74
  * @param {Guard} conditionalGuard guard condition
@@ -83,20 +77,17 @@ export declare class MgTooltip {
83
77
  private tooltipMouseListenerAction;
84
78
  /**
85
79
  * Method to reset guard value
86
- *
87
80
  * @returns {void}
88
81
  */
89
82
  private resetGuard;
90
83
  /**
91
84
  * Update slot content when it is a mg-button
92
- *
93
85
  * @param {HTMLMgButtonElement} mgButton slotted mg-button
94
86
  * @returns {void}
95
87
  */
96
88
  private setMgButtonWrapper;
97
89
  /**
98
90
  * Init tooltip
99
- *
100
91
  * @param {HTMLElement} slotElement slotted element
101
92
  * @param {HTMLElement} interactiveElement interactive element
102
93
  */
@@ -106,7 +97,6 @@ export declare class MgTooltip {
106
97
  *************/
107
98
  /**
108
99
  * set variables
109
- *
110
100
  * @returns {void}
111
101
  */
112
102
  componentWillLoad(): void;
@@ -114,13 +104,11 @@ export declare class MgTooltip {
114
104
  * Get slotted element
115
105
  * Check if it already contain an interactive element, if not we need to add a tabIndex attribute
116
106
  * We need to attach the focused element to the tooltip (aria-describedby)
117
- *
118
107
  * @returns {void}
119
108
  */
120
109
  componentDidLoad(): void;
121
110
  /**
122
111
  * Render
123
- *
124
112
  * @returns {HTMLElement} HTML Element
125
113
  */
126
114
  render(): HTMLElement;
@@ -24,7 +24,6 @@ interface MgInputProps {
24
24
  }
25
25
  /**
26
26
  * Get input template
27
- *
28
27
  * @param {MgInputProps} props MgInput Interface Props
29
28
  * @param {VNode[]} children Represent scoped elements
30
29
  * @param {FunctionalUtilities} utils Stencil.js utils
@@ -98,13 +98,11 @@ export declare class MgInputCheckbox {
98
98
  inputValid: EventEmitter<MgInputCheckbox['valid']>;
99
99
  /**
100
100
  * Public method to display errors
101
- *
102
101
  * @returns {Promise<void>}
103
102
  */
104
103
  displayError(): Promise<void>;
105
104
  /**
106
105
  * Handle input event
107
- *
108
106
  * @param {InputEvent} event input event
109
107
  */
110
108
  private handleInput;
@@ -114,7 +112,6 @@ export declare class MgInputCheckbox {
114
112
  private handleBlur;
115
113
  /**
116
114
  * get invalid element
117
- *
118
115
  * @returns {HTMLInputElement} element
119
116
  */
120
117
  private getInvalidElement;
@@ -131,13 +128,11 @@ export declare class MgInputCheckbox {
131
128
  *************/
132
129
  /**
133
130
  * Check if component props are well configured on init
134
- *
135
131
  * @returns {ReturnType<typeof setTimeout>} timeout
136
132
  */
137
133
  componentWillLoad(): ReturnType<typeof setTimeout>;
138
134
  /**
139
135
  * Render
140
- *
141
136
  * @returns {HTMLElement} HTML Element
142
137
  */
143
138
  render(): HTMLElement;
@@ -99,7 +99,6 @@ export declare class MgInputDate {
99
99
  inputValid: EventEmitter<boolean>;
100
100
  /**
101
101
  * Public method to display errors
102
- *
103
102
  * @returns {Promise<void>}
104
103
  */
105
104
  displayError(): Promise<void>;
@@ -117,13 +116,11 @@ export declare class MgInputDate {
117
116
  private checkValidity;
118
117
  /**
119
118
  * get input error code
120
- *
121
119
  * @returns {null | InputError} error code
122
120
  */
123
121
  private getInputError;
124
122
  /**
125
123
  * Check input errors
126
- *
127
124
  * @returns {void}
128
125
  */
129
126
  private setErrorMessage;
@@ -132,13 +129,11 @@ export declare class MgInputDate {
132
129
  *************/
133
130
  /**
134
131
  * Check if component props are well configured on init
135
- *
136
132
  * @returns {ReturnType<typeof setTimeout>} timeout
137
133
  */
138
134
  componentWillLoad(): ReturnType<typeof setTimeout>;
139
135
  /**
140
136
  * Render
141
- *
142
137
  * @returns {HTMLElement} HTML Element
143
138
  */
144
139
  render(): HTMLElement;
@@ -134,63 +134,53 @@ export declare class MgInputNumeric {
134
134
  inputValid: EventEmitter<boolean>;
135
135
  /**
136
136
  * Public method to display errors
137
- *
138
137
  * @returns {Promise<void>}
139
138
  */
140
139
  displayError(): Promise<void>;
141
140
  /**
142
141
  * Displayed value in input
143
142
  * Change on focus/blur
144
- *
145
143
  * @returns {MgInputNumeric['value'] | MgInputNumeric['readonlyValue']} display value
146
144
  */
147
145
  private displayValue;
148
146
  /**
149
147
  * Handle input event
150
- *
151
148
  * @returns {void}
152
149
  */
153
150
  private handleInput;
154
151
  /**
155
152
  * Handle focus event
156
- *
157
153
  * @returns {void}
158
154
  */
159
155
  private handleFocus;
160
156
  /**
161
157
  * Handle blur event
162
- *
163
158
  * @returns {void}
164
159
  */
165
160
  private handleBlur;
166
161
  /**
167
162
  * Check if input is valid
168
- *
169
163
  * @returns {void}
170
164
  */
171
165
  private checkValidity;
172
166
  /**
173
167
  * Set input error message
174
- *
175
168
  * @returns {void}
176
169
  */
177
170
  private setErrorMessage;
178
171
  /**
179
172
  * Get input error code
180
- *
181
173
  * @returns {null | InputError} error code
182
174
  */
183
175
  private getInputError;
184
176
  /**
185
177
  * Format value based on type
186
- *
187
178
  * @param {number} value value to format
188
179
  * @returns {string} formated local value
189
180
  */
190
181
  private formatValue;
191
182
  /**
192
183
  * Validate append slot
193
- *
194
184
  * @returns {void}
195
185
  */
196
186
  private validateAppendSlot;
@@ -199,13 +189,11 @@ export declare class MgInputNumeric {
199
189
  *************/
200
190
  /**
201
191
  * Check if component props are well configured on init
202
- *
203
192
  * @returns {ReturnType<typeof setTimeout>} timeout
204
193
  */
205
194
  componentWillLoad(): ReturnType<typeof setTimeout>;
206
195
  /**
207
196
  * Render
208
- *
209
197
  * @returns {HTMLElement} HTML Element
210
198
  */
211
199
  render(): HTMLElement;
@@ -97,7 +97,6 @@ export declare class MgInputPassword {
97
97
  inputValid: EventEmitter<boolean>;
98
98
  /**
99
99
  * Public method to display errors
100
- *
101
100
  * @returns {Promise<void>}
102
101
  */
103
102
  displayError(): Promise<void>;
@@ -122,13 +121,11 @@ export declare class MgInputPassword {
122
121
  *************/
123
122
  /**
124
123
  * Check if component props are well configured on init
125
- *
126
124
  * @returns {ReturnType<typeof setTimeout>} timeout
127
125
  */
128
126
  componentWillLoad(): ReturnType<typeof setTimeout>;
129
127
  /**
130
128
  * Render
131
- *
132
129
  * @returns {HTMLElement} HTML Element
133
130
  */
134
131
  render(): HTMLElement;
@@ -102,38 +102,32 @@ export declare class MgInputRadio {
102
102
  inputValid: EventEmitter<boolean>;
103
103
  /**
104
104
  * Public method to display errors
105
- *
106
105
  * @returns {Promise<void>}
107
106
  */
108
107
  displayError(): Promise<void>;
109
108
  /**
110
109
  * Handle input event
111
- *
112
110
  * @param {event} event input event
113
111
  * @returns {void}
114
112
  */
115
113
  private handleInput;
116
114
  /**
117
115
  * Handle blur event
118
- *
119
116
  * @returns {void}
120
117
  */
121
118
  private handleBlur;
122
119
  /**
123
120
  * Check if input is valid
124
- *
125
121
  * @returns {void}
126
122
  */
127
123
  private checkValidity;
128
124
  /**
129
125
  * Set input error message
130
- *
131
126
  * @returns {void}
132
127
  */
133
128
  private setErrorMessage;
134
129
  /**
135
130
  * get invalid element
136
- *
137
131
  * @returns {HTMLInputElement} element
138
132
  */
139
133
  private getInvalidElement;
@@ -142,13 +136,11 @@ export declare class MgInputRadio {
142
136
  *************/
143
137
  /**
144
138
  * Check if component props are well configured on init
145
- *
146
139
  * @returns {ReturnType<typeof setTimeout>} timeout
147
140
  */
148
141
  componentWillLoad(): ReturnType<typeof setTimeout>;
149
142
  /**
150
143
  * Render
151
- *
152
144
  * @returns {HTMLElement} HTML Element
153
145
  */
154
146
  render(): HTMLElement;
@@ -123,33 +123,28 @@ export declare class MgInputSelect {
123
123
  inputValid: EventEmitter<boolean>;
124
124
  /**
125
125
  * Public method to display errors
126
- *
127
126
  * @returns {Promise<void>}
128
127
  */
129
128
  displayError(): Promise<void>;
130
129
  /**
131
130
  * Handle input event
132
- *
133
131
  * @returns {void}
134
132
  */
135
133
  private handleInput;
136
134
  /**
137
135
  * Method to compare item.title with input.value
138
- *
139
136
  * @param {SelectOption} item item to compare with
140
137
  * @returns {boolean} truthy if input.value is an item
141
138
  */
142
139
  private isInputValue;
143
140
  /**
144
141
  * value props setter
145
- *
146
142
  * @param {MgInputSelect['value']} newValue value to update with
147
143
  * @returns {void}
148
144
  */
149
145
  private setValue;
150
146
  /**
151
147
  * Update value from input.value
152
- *
153
148
  * @returns {void}
154
149
  */
155
150
  private updateValue;
@@ -159,7 +154,6 @@ export declare class MgInputSelect {
159
154
  private handleBlur;
160
155
  /**
161
156
  * Input value is disabled
162
- *
163
157
  * @returns {boolean} truthy if input value is disabled
164
158
  */
165
159
  private isDisabledValue;
@@ -176,20 +170,17 @@ export declare class MgInputSelect {
176
170
  *************/
177
171
  /**
178
172
  * Check if component props are well configured on init
179
- *
180
173
  * @returns {ReturnType<typeof setTimeout>} timeout
181
174
  */
182
175
  componentWillLoad(): ReturnType<typeof setTimeout>;
183
176
  /**
184
177
  * Render option
185
- *
186
178
  * @param {SelectOption} option to render
187
179
  * @returns {HTMLElement} render option
188
180
  */
189
181
  private renderOption;
190
182
  /**
191
183
  * Render
192
- *
193
184
  * @returns {HTMLElement} HTML Element
194
185
  */
195
186
  render(): HTMLElement;
@@ -126,55 +126,46 @@ export declare class MgInputText {
126
126
  inputValid: EventEmitter<boolean>;
127
127
  /**
128
128
  * Public method to play input focus
129
- *
130
129
  * @returns {Promise<void>}
131
130
  */
132
131
  setFocus(): Promise<void>;
133
132
  /**
134
133
  * Public method to display errors
135
- *
136
134
  * @returns {Promise<void>}
137
135
  */
138
136
  displayError(): Promise<void>;
139
137
  /**
140
138
  * Handle input event
141
- *
142
139
  * @returns {void}
143
140
  */
144
141
  private handleInput;
145
142
  /**
146
143
  * Handle focus event
147
- *
148
144
  * @returns {void}
149
145
  */
150
146
  private handleFocus;
151
147
  /**
152
148
  * Handle blur event
153
- *
154
149
  * @returns {void}
155
150
  */
156
151
  private handleBlur;
157
152
  /**
158
153
  * Check if input is valid
159
- *
160
154
  * @returns {void}
161
155
  */
162
156
  private checkValidity;
163
157
  /**
164
158
  * Set input error message
165
- *
166
159
  * @returns {void}
167
160
  */
168
161
  private setErrorMessage;
169
162
  /**
170
163
  * Validate pattern configuration
171
- *
172
164
  * @returns {void}
173
165
  */
174
166
  private validatePattern;
175
167
  /**
176
168
  * Validate append slot
177
- *
178
169
  * @returns {void}
179
170
  */
180
171
  private validateAppendSlot;
@@ -183,13 +174,11 @@ export declare class MgInputText {
183
174
  *************/
184
175
  /**
185
176
  * Check if component props are well configured on init
186
- *
187
177
  * @returns {ReturnType<typeof setTimeout>} timeout
188
178
  */
189
179
  componentWillLoad(): ReturnType<typeof setTimeout>;
190
180
  /**
191
181
  * Render
192
- *
193
182
  * @returns {HTMLElement} HTML Element
194
183
  */
195
184
  render(): HTMLElement;
@@ -125,7 +125,6 @@ export declare class MgInputTextarea {
125
125
  inputValid: EventEmitter<boolean>;
126
126
  /**
127
127
  * Public method to display errors
128
- *
129
128
  * @returns {Promise<void>}
130
129
  */
131
130
  displayError(): Promise<void>;
@@ -144,7 +143,6 @@ export declare class MgInputTextarea {
144
143
  /**
145
144
  * Get pattern validity
146
145
  * Pattern is not defined on textarea field: https://developer.mozilla.org/fr/docs/Web/HTML/Element/Textarea
147
- *
148
146
  * @returns {boolean} is pattern valid
149
147
  */
150
148
  private getPatternValidity;
@@ -165,13 +163,11 @@ export declare class MgInputTextarea {
165
163
  *************/
166
164
  /**
167
165
  * Check if component props are well configured on init
168
- *
169
166
  * @returns {ReturnType<typeof setTimeout>} timeout
170
167
  */
171
168
  componentWillLoad(): ReturnType<typeof setTimeout>;
172
169
  /**
173
170
  * Render
174
- *
175
171
  * @returns {HTMLElement} HTML Element
176
172
  */
177
173
  render(): HTMLElement;
@@ -24,7 +24,6 @@ export declare class MgInputToggle {
24
24
  handleValue(newValue: any): void;
25
25
  /**
26
26
  * Items are the possible options to select
27
- *
28
27
  * @returns {void}
29
28
  */
30
29
  items: string[] | ToggleValue[];
@@ -101,19 +100,16 @@ export declare class MgInputToggle {
101
100
  inputValid: EventEmitter<boolean>;
102
101
  /**
103
102
  * Change checked value
104
- *
105
103
  * @returns {void}
106
104
  */
107
105
  private toggleChecked;
108
106
  /**
109
107
  * Slots validation
110
- *
111
108
  * @returns {void}
112
109
  */
113
110
  private validateSlots;
114
111
  /**
115
112
  * set checked state
116
- *
117
113
  * @returns {void}
118
114
  */
119
115
  private setChecked;
@@ -126,7 +122,6 @@ export declare class MgInputToggle {
126
122
  componentWillLoad(): void;
127
123
  /**
128
124
  * Render
129
- *
130
125
  * @returns {HTMLElement} HTML Element
131
126
  */
132
127
  render(): HTMLElement;