@mgdis/mg-components 5.10.0 → 5.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (159) hide show
  1. package/dist/cjs/{index-9e1091ab.js → index-03d2557d.js} +3 -0
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/mg-action-more_31.cjs.entry.js +444 -455
  4. package/dist/cjs/mg-components.cjs.js +2 -2
  5. package/dist/cjs/mg-item-more.cjs.entry.js +20 -29
  6. package/dist/cjs/{mg-menu.conf-1942ac70.js → mg-menu.conf-05ec32a3.js} +30 -16
  7. package/dist/collection/components/atoms/mg-badge/mg-badge.js +8 -9
  8. package/dist/collection/components/atoms/mg-button/mg-button.js +16 -20
  9. package/dist/collection/components/atoms/mg-card/mg-card.css +2 -0
  10. package/dist/collection/components/atoms/mg-card/mg-card.js +10 -12
  11. package/dist/collection/components/atoms/mg-character-left/mg-character-left.js +1 -2
  12. package/dist/collection/components/atoms/mg-divider/mg-divider.js +1 -1
  13. package/dist/collection/components/atoms/mg-icon/mg-icon.js +17 -19
  14. package/dist/collection/components/atoms/mg-input-title/mg-input-title.js +1 -2
  15. package/dist/collection/components/atoms/mg-tag/mg-tag.js +11 -13
  16. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +20 -25
  17. package/dist/collection/components/molecules/inputs/MgInput.conf.js +4 -1
  18. package/dist/collection/components/molecules/inputs/MgInput.js +26 -18
  19. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.js +4 -1
  20. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.css +18 -1
  21. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +126 -19
  22. package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.css +1 -1
  23. package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +7 -12
  24. package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.css +1 -1
  25. package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +14 -22
  26. package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.css +1 -1
  27. package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +6 -10
  28. package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.css +1 -1
  29. package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +10 -18
  30. package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.css +1 -1
  31. package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +21 -32
  32. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.css +1 -1
  33. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +16 -31
  34. package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.css +1 -1
  35. package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +13 -17
  36. package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.css +1 -1
  37. package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +17 -23
  38. package/dist/collection/components/molecules/menu/mg-menu/mg-menu.js +11 -18
  39. package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.js +20 -29
  40. package/dist/collection/components/molecules/mg-action-more/mg-action-more.js +11 -15
  41. package/dist/collection/components/molecules/mg-details/mg-details.js +1 -3
  42. package/dist/collection/components/molecules/mg-form/mg-form.js +8 -19
  43. package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js +1 -2
  44. package/dist/collection/components/molecules/mg-item-more/mg-item-more.js +4 -7
  45. package/dist/collection/components/molecules/mg-message/mg-message.css +1 -0
  46. package/dist/collection/components/molecules/mg-message/mg-message.js +11 -14
  47. package/dist/collection/components/molecules/mg-modal/mg-modal.css +1 -0
  48. package/dist/collection/components/molecules/mg-modal/mg-modal.js +7 -11
  49. package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +11 -13
  50. package/dist/collection/components/molecules/mg-panel/mg-panel.css +1 -0
  51. package/dist/collection/components/molecules/mg-panel/mg-panel.js +6 -15
  52. package/dist/collection/components/molecules/mg-popover/mg-popover.css +2 -0
  53. package/dist/collection/components/molecules/mg-popover/mg-popover.js +16 -16
  54. package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.js +2 -4
  55. package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +20 -24
  56. package/dist/collection/locales/en/messages.json +7 -0
  57. package/dist/collection/locales/fr/messages.json +7 -0
  58. package/dist/collection/locales/index.js +2 -2
  59. package/dist/collection/styles/reset-mg-card-slotted-variables.scss +1 -0
  60. package/dist/collection/utils/behaviors.utils.js +16 -22
  61. package/dist/collection/utils/components.utils.js +21 -23
  62. package/dist/collection/utils/locale.utils.js +14 -14
  63. package/dist/collection/utils/unit.test.utils.js +7 -10
  64. package/dist/components/MgInput.js +30 -18
  65. package/dist/components/components.utils.js +21 -23
  66. package/dist/components/index2.js +30 -16
  67. package/dist/components/mg-action-more.js +9 -13
  68. package/dist/components/mg-badge2.js +8 -9
  69. package/dist/components/mg-button2.js +16 -20
  70. package/dist/components/mg-card2.js +9 -11
  71. package/dist/components/mg-character-left2.js +1 -2
  72. package/dist/components/mg-details.js +1 -3
  73. package/dist/components/mg-divider.js +1 -1
  74. package/dist/components/mg-form.js +7 -15
  75. package/dist/components/mg-icon2.js +17 -19
  76. package/dist/components/mg-illustrated-message.js +1 -2
  77. package/dist/components/mg-input-checkbox.js +126 -21
  78. package/dist/components/mg-input-date.js +7 -9
  79. package/dist/components/mg-input-numeric.js +14 -19
  80. package/dist/components/mg-input-password.js +6 -7
  81. package/dist/components/mg-input-radio.js +10 -15
  82. package/dist/components/mg-input-select2.js +21 -29
  83. package/dist/components/mg-input-text2.js +15 -24
  84. package/dist/components/mg-input-textarea.js +13 -14
  85. package/dist/components/mg-input-title2.js +1 -2
  86. package/dist/components/mg-input-toggle.js +17 -20
  87. package/dist/components/mg-item-more.js +18 -27
  88. package/dist/components/mg-menu-item2.js +17 -26
  89. package/dist/components/mg-menu2.js +9 -16
  90. package/dist/components/mg-message.js +12 -15
  91. package/dist/components/mg-modal.js +8 -12
  92. package/dist/components/mg-pagination.js +11 -13
  93. package/dist/components/mg-panel.js +7 -16
  94. package/dist/components/mg-popover2.js +17 -17
  95. package/dist/components/mg-skip-links.js +2 -4
  96. package/dist/components/mg-tabs.js +20 -24
  97. package/dist/components/mg-tag.js +11 -13
  98. package/dist/components/mg-tooltip2.js +20 -25
  99. package/dist/esm/{index-3249671d.js → index-407d5211.js} +3 -0
  100. package/dist/esm/loader.js +3 -3
  101. package/dist/esm/mg-action-more_31.entry.js +444 -455
  102. package/dist/esm/mg-components.js +3 -3
  103. package/dist/esm/mg-item-more.entry.js +20 -29
  104. package/dist/esm/{mg-menu.conf-2cc1bb67.js → mg-menu.conf-c8aa56ce.js} +30 -16
  105. package/dist/mg-components/locales/en/messages.json +7 -0
  106. package/dist/mg-components/locales/fr/messages.json +7 -0
  107. package/dist/mg-components/mg-components.css +1 -1
  108. package/dist/mg-components/mg-components.esm.js +1 -1
  109. package/dist/mg-components/p-3bf533f7.js +2 -0
  110. package/dist/mg-components/p-51c2def3.entry.js +1 -0
  111. package/dist/mg-components/p-b14be68b.js +1 -0
  112. package/dist/mg-components/{p-a56a3157.entry.js → p-d3ed97d3.entry.js} +1 -1
  113. package/dist/mg-components/styles/reset-mg-card-slotted-variables.scss +1 -0
  114. package/dist/types/components/atoms/mg-badge/mg-badge.d.ts +2 -3
  115. package/dist/types/components/atoms/mg-button/mg-button.d.ts +5 -9
  116. package/dist/types/components/atoms/mg-card/mg-card.d.ts +2 -6
  117. package/dist/types/components/atoms/mg-character-left/mg-character-left.d.ts +1 -2
  118. package/dist/types/components/atoms/mg-divider/mg-divider.d.ts +1 -1
  119. package/dist/types/components/atoms/mg-icon/mg-icon.d.ts +3 -5
  120. package/dist/types/components/atoms/mg-input-title/mg-input-title.d.ts +1 -2
  121. package/dist/types/components/atoms/mg-tag/mg-tag.d.ts +3 -5
  122. package/dist/types/components/atoms/mg-tooltip/mg-tooltip.d.ts +15 -21
  123. package/dist/types/components/molecules/inputs/MgInput.conf.d.ts +2 -1
  124. package/dist/types/components/molecules/inputs/MgInput.d.ts +5 -5
  125. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.d.ts +8 -0
  126. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.d.ts +40 -7
  127. package/dist/types/components/molecules/inputs/mg-input-date/mg-input-date.d.ts +4 -6
  128. package/dist/types/components/molecules/inputs/mg-input-numeric/mg-input-numeric.d.ts +7 -14
  129. package/dist/types/components/molecules/inputs/mg-input-password/mg-input-password.d.ts +3 -4
  130. package/dist/types/components/molecules/inputs/mg-input-radio/mg-input-radio.d.ts +5 -10
  131. package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.conf.d.ts +2 -2
  132. package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.d.ts +9 -13
  133. package/dist/types/components/molecules/inputs/mg-input-text/mg-input-text.d.ts +3 -12
  134. package/dist/types/components/molecules/inputs/mg-input-textarea/mg-input-textarea.d.ts +4 -5
  135. package/dist/types/components/molecules/inputs/mg-input-toggle/mg-input-toggle.d.ts +2 -6
  136. package/dist/types/components/molecules/menu/mg-menu/mg-menu.d.ts +10 -18
  137. package/dist/types/components/molecules/menu/mg-menu-item/mg-menu-item.d.ts +21 -31
  138. package/dist/types/components/molecules/mg-action-more/mg-action-more.d.ts +3 -10
  139. package/dist/types/components/molecules/mg-details/mg-details.d.ts +1 -3
  140. package/dist/types/components/molecules/mg-form/mg-form.d.ts +3 -11
  141. package/dist/types/components/molecules/mg-illustrated-message/mg-illustrated-message.d.ts +1 -2
  142. package/dist/types/components/molecules/mg-item-more/mg-item-more.d.ts +2 -7
  143. package/dist/types/components/molecules/mg-message/mg-message.d.ts +4 -7
  144. package/dist/types/components/molecules/mg-modal/mg-modal.d.ts +3 -7
  145. package/dist/types/components/molecules/mg-pagination/mg-pagination.d.ts +5 -9
  146. package/dist/types/components/molecules/mg-panel/mg-panel.d.ts +4 -13
  147. package/dist/types/components/molecules/mg-popover/mg-popover.d.ts +7 -9
  148. package/dist/types/components/molecules/mg-skip-links/mg-skip-links.d.ts +2 -4
  149. package/dist/types/components/molecules/mg-tabs/mg-tabs.d.ts +15 -19
  150. package/dist/types/components.d.ts +31 -35
  151. package/dist/types/locales/index.d.ts +16 -2
  152. package/dist/types/utils/behaviors.utils.d.ts +14 -20
  153. package/dist/types/utils/components.utils.d.ts +18 -20
  154. package/dist/types/utils/locale.utils.d.ts +14 -14
  155. package/dist/types/utils/unit.test.utils.d.ts +11 -17
  156. package/package.json +4 -4
  157. package/dist/mg-components/p-73156ac9.js +0 -1
  158. package/dist/mg-components/p-8fbc0d87.js +0 -2
  159. package/dist/mg-components/p-eb32bb18.entry.js +0 -1
@@ -83,7 +83,7 @@ export declare class MgInputRadio {
83
83
  /**
84
84
  * Component classes
85
85
  */
86
- classList: ClassList;
86
+ classCollection: ClassList;
87
87
  /**
88
88
  * Error message to display
89
89
  */
@@ -102,33 +102,28 @@ export declare class MgInputRadio {
102
102
  inputValid: EventEmitter<boolean>;
103
103
  /**
104
104
  * Public method to display errors
105
- * @returns {Promise<void>}
106
105
  */
107
106
  displayError(): Promise<void>;
108
107
  /**
109
108
  * Handle input event
110
- * @param {event} event input event
111
- * @returns {void}
109
+ * @param event - input event
112
110
  */
113
111
  private handleInput;
114
112
  /**
115
113
  * Handle blur event
116
- * @returns {void}
117
114
  */
118
115
  private handleBlur;
119
116
  /**
120
117
  * Check if input is valid
121
- * @returns {void}
122
118
  */
123
119
  private checkValidity;
124
120
  /**
125
121
  * Set input error message
126
- * @returns {void}
127
122
  */
128
123
  private setErrorMessage;
129
124
  /**
130
125
  * get invalid element
131
- * @returns {HTMLInputElement} element
126
+ * @returns element
132
127
  */
133
128
  private getInvalidElement;
134
129
  /*************
@@ -136,12 +131,12 @@ export declare class MgInputRadio {
136
131
  *************/
137
132
  /**
138
133
  * Check if component props are well configured on init
139
- * @returns {ReturnType<typeof setTimeout>} timeout
134
+ * @returns timeout
140
135
  */
141
136
  componentWillLoad(): ReturnType<typeof setTimeout>;
142
137
  /**
143
138
  * Render
144
- * @returns {HTMLElement} HTML Element
139
+ * @returns HTML Element
145
140
  */
146
141
  render(): HTMLElement;
147
142
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * type SelectOption
3
- * use to match select>option attributes
3
+ * use to match select \> option attributes
4
4
  */
5
5
  export type SelectOption = {
6
6
  title: string;
@@ -10,7 +10,7 @@ export type SelectOption = {
10
10
  };
11
11
  /**
12
12
  * type OptGroup
13
- * use to match select>optgroup attributes
13
+ * use to match select \> optgroup attributes
14
14
  */
15
15
  export type OptGroup = {
16
16
  group: string;
@@ -96,7 +96,7 @@ export declare class MgInputSelect {
96
96
  /**
97
97
  * Component classes
98
98
  */
99
- classList: ClassList;
99
+ classCollection: ClassList;
100
100
  /**
101
101
  * Error message to display
102
102
  */
@@ -123,29 +123,25 @@ export declare class MgInputSelect {
123
123
  inputValid: EventEmitter<boolean>;
124
124
  /**
125
125
  * Public method to display errors
126
- * @returns {Promise<void>}
127
126
  */
128
127
  displayError(): Promise<void>;
129
128
  /**
130
129
  * Handle input event
131
- * @returns {void}
132
130
  */
133
131
  private handleInput;
134
132
  /**
135
133
  * Method to compare item.title with input.value
136
- * @param {SelectOption} item item to compare with
137
- * @returns {boolean} truthy if input.value is an item
134
+ * @param item - item to compare with
135
+ * @returns truthy if input.value is an item
138
136
  */
139
137
  private isInputValue;
140
138
  /**
141
139
  * value props setter
142
- * @param {MgInputSelect['value']} newValue value to update with
143
- * @returns {void}
140
+ * @param newValue - value to update with
144
141
  */
145
142
  private setValue;
146
143
  /**
147
144
  * Update value from input.value
148
- * @returns {void}
149
145
  */
150
146
  private updateValue;
151
147
  /**
@@ -154,7 +150,7 @@ export declare class MgInputSelect {
154
150
  private handleBlur;
155
151
  /**
156
152
  * Input value is disabled
157
- * @returns {boolean} truthy if input value is disabled
153
+ * @returns truthy if input value is disabled
158
154
  */
159
155
  private isDisabledValue;
160
156
  /**
@@ -170,18 +166,18 @@ export declare class MgInputSelect {
170
166
  *************/
171
167
  /**
172
168
  * Check if component props are well configured on init
173
- * @returns {ReturnType<typeof setTimeout>} timeout
169
+ * @returns timeout
174
170
  */
175
171
  componentWillLoad(): ReturnType<typeof setTimeout>;
176
172
  /**
177
173
  * Render option
178
- * @param {SelectOption} option to render
179
- * @returns {HTMLElement} render option
174
+ * @param option - to render
175
+ * @returns render option
180
176
  */
181
177
  private renderOption;
182
178
  /**
183
179
  * Render
184
- * @returns {HTMLElement} HTML Element
180
+ * @returns HTML Element
185
181
  */
186
182
  render(): HTMLElement;
187
183
  }
@@ -111,7 +111,7 @@ export declare class MgInputText {
111
111
  /**
112
112
  * Component classes
113
113
  */
114
- classList: ClassList;
114
+ classCollection: ClassList;
115
115
  /**
116
116
  * Error message to display
117
117
  */
@@ -126,47 +126,38 @@ export declare class MgInputText {
126
126
  inputValid: EventEmitter<boolean>;
127
127
  /**
128
128
  * Public method to play input focus
129
- * @returns {Promise<void>}
130
129
  */
131
130
  setFocus(): Promise<void>;
132
131
  /**
133
132
  * Public method to display errors
134
- * @returns {Promise<void>}
135
133
  */
136
134
  displayError(): Promise<void>;
137
135
  /**
138
136
  * Handle input event
139
- * @returns {void}
140
137
  */
141
138
  private handleInput;
142
139
  /**
143
140
  * Handle focus event
144
- * @returns {void}
145
141
  */
146
142
  private handleFocus;
147
143
  /**
148
144
  * Handle blur event
149
- * @returns {void}
150
145
  */
151
146
  private handleBlur;
152
147
  /**
153
148
  * Check if input is valid
154
- * @returns {void}
155
149
  */
156
150
  private checkValidity;
157
151
  /**
158
152
  * Set input error message
159
- * @returns {void}
160
153
  */
161
154
  private setErrorMessage;
162
155
  /**
163
156
  * Validate pattern configuration
164
- * @returns {void}
165
157
  */
166
158
  private validatePattern;
167
159
  /**
168
160
  * Validate append slot
169
- * @returns {void}
170
161
  */
171
162
  private validateAppendSlot;
172
163
  /*************
@@ -174,12 +165,12 @@ export declare class MgInputText {
174
165
  *************/
175
166
  /**
176
167
  * Check if component props are well configured on init
177
- * @returns {ReturnType<typeof setTimeout>} timeout
168
+ * @returns timeout
178
169
  */
179
170
  componentWillLoad(): ReturnType<typeof setTimeout>;
180
171
  /**
181
172
  * Render
182
- * @returns {HTMLElement} HTML Element
173
+ * @returns HTML Element
183
174
  */
184
175
  render(): HTMLElement;
185
176
  }
@@ -110,7 +110,7 @@ export declare class MgInputTextarea {
110
110
  /**
111
111
  * Component classes
112
112
  */
113
- classList: ClassList;
113
+ classCollection: ClassList;
114
114
  /**
115
115
  * Error message to display
116
116
  */
@@ -125,7 +125,6 @@ export declare class MgInputTextarea {
125
125
  inputValid: EventEmitter<boolean>;
126
126
  /**
127
127
  * Public method to display errors
128
- * @returns {Promise<void>}
129
128
  */
130
129
  displayError(): Promise<void>;
131
130
  /**
@@ -143,7 +142,7 @@ export declare class MgInputTextarea {
143
142
  /**
144
143
  * Get pattern validity
145
144
  * Pattern is not defined on textarea field: https://developer.mozilla.org/fr/docs/Web/HTML/Element/Textarea
146
- * @returns {boolean} is pattern valid
145
+ * @returns is pattern valid
147
146
  */
148
147
  private getPatternValidity;
149
148
  /**
@@ -163,12 +162,12 @@ export declare class MgInputTextarea {
163
162
  *************/
164
163
  /**
165
164
  * Check if component props are well configured on init
166
- * @returns {ReturnType<typeof setTimeout>} timeout
165
+ * @returns timeout
167
166
  */
168
167
  componentWillLoad(): ReturnType<typeof setTimeout>;
169
168
  /**
170
169
  * Render
171
- * @returns {HTMLElement} HTML Element
170
+ * @returns HTML Element
172
171
  */
173
172
  render(): HTMLElement;
174
173
  }
@@ -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
- * @returns {void}
28
27
  */
29
28
  items: string[] | ToggleValue[];
30
29
  validateItems(newValue: string[] | ToggleValue[]): void;
@@ -80,7 +79,7 @@ export declare class MgInputToggle {
80
79
  /**
81
80
  * Component classes
82
81
  */
83
- classList: ClassList;
82
+ classCollection: ClassList;
84
83
  /**
85
84
  * Formated items for display
86
85
  */
@@ -100,17 +99,14 @@ export declare class MgInputToggle {
100
99
  inputValid: EventEmitter<boolean>;
101
100
  /**
102
101
  * Change checked value
103
- * @returns {void}
104
102
  */
105
103
  private toggleChecked;
106
104
  /**
107
105
  * Slots validation
108
- * @returns {void}
109
106
  */
110
107
  private validateSlots;
111
108
  /**
112
109
  * set checked state
113
- * @returns {void}
114
110
  */
115
111
  private setChecked;
116
112
  /*************
@@ -122,7 +118,7 @@ export declare class MgInputToggle {
122
118
  componentWillLoad(): void;
123
119
  /**
124
120
  * Render
125
- * @returns {HTMLElement} HTML Element
121
+ * @returns HTML Element
126
122
  */
127
123
  render(): HTMLElement;
128
124
  }
@@ -21,7 +21,7 @@ export declare class MgMenu {
21
21
  label: string;
22
22
  validateLabel(newValue: MgMenu['label']): void;
23
23
  /**
24
- * Component display direction. Default: "horizontal"
24
+ * Component display direction.
25
25
  */
26
26
  direction: Direction;
27
27
  validateDirection(newValue: MgMenu['direction']): void;
@@ -33,7 +33,6 @@ export declare class MgMenu {
33
33
  validateItemMore(newValue: MgMenu['itemmore']): void;
34
34
  /**
35
35
  * Define mg-menu size
36
- * Default: 'regular'
37
36
  */
38
37
  size: MenuSizeType;
39
38
  validateSize(newValue: MgMenu['size']): void;
@@ -46,41 +45,36 @@ export declare class MgMenu {
46
45
  *************/
47
46
  /**
48
47
  * Close matching menu-item
49
- * @param {HTMLElement} item menu-item to close
50
- * @param {boolean} condition addionnal condition
51
- * @returns {void}
48
+ * @param item - menu-item to close
49
+ * @param condition - addionnal condition
52
50
  */
53
51
  private closeMenuItem;
54
52
  /**
55
53
  * get mg-item-more element
56
- * @returns {HTMLMgItemMoreElement} mg-item-more element
54
+ * @returns mg-item-more element
57
55
  */
58
56
  private getItemMore;
59
57
  /**
60
- * get mg-item-more >>> mg-menu-item element
61
- * @returns {HTMLMgMenuItemElement} mg-item-more >>> mg-menu-item element
58
+ * get mg-item-more child mg-menu-item element
59
+ * @returns mg-menu-item element
62
60
  */
63
61
  private getItemMoreMenuItem;
64
62
  /**
65
63
  * Set item listend
66
- * @param {HTMLMgMenuItemElement} item mg-menu-item element
67
- * @param {MgMenu['focusedMenuItem']} index number
68
- * @returns {void}
64
+ * @param item - mg-menu-item element
65
+ * @param index - number
69
66
  */
70
67
  private setItemListener;
71
68
  /**
72
69
  * Store menu-items on component init and add listeners
73
- * @returns {void}
74
70
  */
75
71
  private initMenuItemsListeners;
76
72
  /**
77
73
  * Handle item-loaded event on mg-item-more element
78
- * @returns {void}
79
74
  */
80
75
  private handleItemLoaded;
81
76
  /**
82
77
  * render mg-item-more
83
- * @returns {void}
84
78
  */
85
79
  private renderMgItemMore;
86
80
  /*************
@@ -88,22 +82,20 @@ export declare class MgMenu {
88
82
  *************/
89
83
  /**
90
84
  * Validate props
91
- * @returns {void}
92
85
  */
93
86
  componentWillLoad(): void;
94
87
  /**
95
88
  * Check if component slots configuration
96
- * @returns {ReturnType<typeof setTimeout>} timeout
89
+ * @returns timeout
97
90
  */
98
91
  componentDidLoad(): ReturnType<typeof setTimeout>;
99
92
  /**
100
93
  * Add listeners to items
101
- * @returns {void}
102
94
  */
103
95
  componentDidRender(): void;
104
96
  /**
105
97
  * Render
106
- * @returns {HTMLElement} HTML Element
98
+ * @returns HTML Element
107
99
  */
108
100
  render(): HTMLElement;
109
101
  }
@@ -22,7 +22,6 @@ export declare class MgMenuItem {
22
22
  ************/
23
23
  /**
24
24
  * Identifier is used to control mg-popover
25
- * Default: createID('mg-menu-item');
26
25
  */
27
26
  identifier: string;
28
27
  /**
@@ -31,12 +30,12 @@ export declare class MgMenuItem {
31
30
  */
32
31
  href: string;
33
32
  /**
34
- * Define menu-item status. Default: "visible"
33
+ * Define menu-item status.
35
34
  */
36
35
  status: Status;
37
36
  validateStatus(newValue: MgMenuItem['status'], oldValue?: MgMenuItem['status']): void;
38
37
  /**
39
- * Define menu-item content expanded. Default: false.
38
+ * Define menu-item content expanded.
40
39
  */
41
40
  expanded: boolean;
42
41
  validateExpanded(newValue: MgMenuItem['expanded']): void;
@@ -55,7 +54,7 @@ export declare class MgMenuItem {
55
54
  * States *
56
55
  *********/
57
56
  /**
58
- * Define menu-item size. Default: "regular".
57
+ * Define menu-item size.
59
58
  */
60
59
  size: MenuSizeType;
61
60
  validateSize(newValue: MgMenuItem['size'], oldValue?: MgMenuItem['size']): void;
@@ -77,7 +76,7 @@ export declare class MgMenuItem {
77
76
  */
78
77
  isItemMore: boolean;
79
78
  /**
80
- * Does component have children. Default: false.
79
+ * Does component have children.
81
80
  */
82
81
  hasChildren: boolean;
83
82
  validateHasChildren(newValue: boolean): void;
@@ -90,64 +89,58 @@ export declare class MgMenuItem {
90
89
  **********/
91
90
  /**
92
91
  * Toggle expanded prop value
93
- * @returns {void}
94
92
  */
95
93
  private toggleExpanded;
96
94
  /**
97
95
  * Does an Element have given Status
98
- * @param {HTMLMgMenuItemElement} mgMenuItemElement to parse
99
- * @param {MgMenuItem['status']} status to check
100
- * @returns {boolean} true if element with status is found
96
+ * @param mgMenuItemElement - to parse
97
+ * @param status - to check
98
+ * @returns true if element with status is found
101
99
  */
102
100
  private hasStatus;
103
101
  /**
104
102
  * Is component contextual direction match the given direction
105
- * @param {MgMenuItem['direction']} direction in parent menu
106
- * @param {MgMenuItem['direction']} compareWith direction to compare with. Default: `this.direction`
107
- * @returns {boolean} true is direction match the direction propertie
103
+ * @param direction - in parent menu
104
+ * @param compareWith - direction to compare with. Default: `this.direction`
105
+ * @returns true is direction match the direction propertie
108
106
  */
109
107
  private isDirection;
110
108
  /**
111
109
  * Update displayNotificationBadge
112
110
  * current component notification badge have priority over the slot badge when submenu contain badge
113
- * @returns {void} update displayNotificationBadge value
114
111
  */
115
112
  private updateDisplayNotificationBadge;
116
113
  /**
117
114
  * Method to control if one of component children have active status
118
- * @returns {boolean} truthy if component has active child
115
+ * @returns truthy if component has active child
119
116
  */
120
117
  private hasActiveChild;
121
118
  /**
122
119
  * Validate slots
123
- * @param {boolean} guard prevent action whith guard. Default: false.
124
- * @returns {void}
120
+ * @param guard - prevent action whith guard. Default: false.
125
121
  */
126
122
  private validateSlot;
127
123
  /**
128
124
  * Update status
129
- * @param {Status[]} guard status to exclude from process in addition to [Status.HIDDEN, Status.DISABLED] . Default: [].
130
- * @returns {void}
125
+ * @param guard - status to exclude from process in addition to [Status.HIDDEN, Status.DISABLED] . Default: [].
131
126
  */
132
127
  private updateStatus;
133
128
  /**
134
129
  * Init event-listeners
135
- * @returns {void}
136
130
  */
137
131
  private initListeners;
138
132
  /**
139
133
  * Get mg-popover identifier
140
- * @returns {MgPopover['identifier']} generated mg-popover identifier
134
+ * @returns generated mg-popover identifier
141
135
  */
142
136
  private getPopoverIdentifier;
143
137
  /**
144
138
  * Render popover clickoutside guard for content slot
145
- * @returns {void}
146
139
  */
147
140
  private updatePopoverGuard;
148
141
  /**
149
142
  * Condition to know if component should display a mg-popover
150
- * @returns {boolean} truthy if component display popover
143
+ * @returns truthy if component display popover
151
144
  */
152
145
  private displayPopover;
153
146
  /************
@@ -155,14 +148,12 @@ export declare class MgMenuItem {
155
148
  ************/
156
149
  /**
157
150
  * Handle interacrtive element click
158
- * @param {MouseEvent} event click on element
159
- * @returns {void}
151
+ * @param event - click on element
160
152
  */
161
153
  private handleElementCLick;
162
154
  /**
163
155
  * Handle popover element display-change event
164
- * @param {CustomEvent} event popover display event
165
- * @returns {void}
156
+ * @param event - popover display event
166
157
  */
167
158
  private handlePopoverDisplay;
168
159
  /*************
@@ -170,27 +161,26 @@ export declare class MgMenuItem {
170
161
  *************/
171
162
  /**
172
163
  * Validate props
173
- * @returns {void}
174
164
  */
175
165
  componentWillLoad(): void;
176
166
  /**
177
167
  * Check if component slots configuration
178
- * @returns {ReturnType<typeof setTimeout>} timeout
168
+ * @returns timeout
179
169
  */
180
170
  componentDidLoad(): ReturnType<typeof setTimeout>;
181
171
  /**
182
172
  * Render ineractive element
183
- * @returns {HTMLElement} HTML Element
173
+ * @returns HTML Element
184
174
  */
185
175
  private renderInteractiveElement;
186
176
  /**
187
177
  * Render slot
188
- * @returns {HTMLElement} HTML Element
178
+ * @returns HTML Element
189
179
  */
190
180
  private renderSlot;
191
181
  /**
192
182
  * Render
193
- * @returns {HTMLElement} HTML Element
183
+ * @returns HTML Element
194
184
  */
195
185
  render(): HTMLElement;
196
186
  }
@@ -15,13 +15,11 @@ export declare class MgActionMore {
15
15
  element: HTMLMgActionMoreElement;
16
16
  /**
17
17
  * Define displaied icon
18
- * Default: {icon: 'ellipsis'}
19
18
  */
20
19
  icon: MgActionMoreIconType;
21
20
  validateIcon(newValue: MgActionMore['icon']): void;
22
21
  /**
23
22
  * Define button properties
24
- * Default: {variant: 'flat', isIcon: true}.
25
23
  */
26
24
  button: MgActionMoreButtonType;
27
25
  validateButton(newValue: MgActionMore['button']): void;
@@ -37,7 +35,6 @@ export declare class MgActionMore {
37
35
  validateDisplayChevron(newValue: MgActionMore['displayChevron']): void;
38
36
  /**
39
37
  * Menu expanded state
40
- * Default: false.
41
38
  */
42
39
  expanded: boolean;
43
40
  /************
@@ -45,19 +42,16 @@ export declare class MgActionMore {
45
42
  ***********/
46
43
  /**
47
44
  * Toogle expanded props
48
- * @returns {void}
49
45
  */
50
46
  private toggleExpanded;
51
47
  /**
52
48
  * Button click handler
53
- * @returns {void}
54
49
  */
55
50
  private handleButton;
56
51
  /**
57
52
  * Item click handler
58
- * @param {MouseEvent} event click event
59
- * @param {MgActionMoreItemType['mouseEventHandler']} customHandler item['mouseEventHandler']
60
- * @returns {void}
53
+ * @param event - click event
54
+ * @param customHandler - item['mouseEventHandler']
61
55
  */
62
56
  private handleItemClick;
63
57
  /*************
@@ -65,12 +59,11 @@ export declare class MgActionMore {
65
59
  *************/
66
60
  /**
67
61
  * Validate props
68
- * @returns {void}
69
62
  */
70
63
  componentWillLoad(): void;
71
64
  /**
72
65
  * Render
73
- * @returns {HTMLElement} HTML Element
66
+ * @returns HTML Element
74
67
  */
75
68
  render(): HTMLElement;
76
69
  }
@@ -31,7 +31,6 @@ export declare class MgDetails {
31
31
  expandedChange: EventEmitter<boolean>;
32
32
  /**
33
33
  * Handle details toggle
34
- * @returns {void}
35
34
  */
36
35
  private handleToggle;
37
36
  /*************
@@ -39,12 +38,11 @@ export declare class MgDetails {
39
38
  *************/
40
39
  /**
41
40
  * Check if component props are well configured on init
42
- * @returns {void}
43
41
  */
44
42
  componentWillLoad(): void;
45
43
  /**
46
44
  * Render
47
- * @returns {HTMLElement} HTML Element
45
+ * @returns HTML Element
48
46
  */
49
47
  render(): HTMLElement;
50
48
  }
@@ -46,7 +46,7 @@ export declare class MgForm {
46
46
  /**
47
47
  * Component classes
48
48
  */
49
- classList: ClassList;
49
+ classCollection: ClassList;
50
50
  /**
51
51
  * Required message
52
52
  */
@@ -62,29 +62,23 @@ export declare class MgForm {
62
62
  formSubmit: EventEmitter<boolean>;
63
63
  /**
64
64
  * Public method to display errors
65
- * @returns {Promise<void>}
66
65
  */
67
66
  displayError(): Promise<void>;
68
67
  /**
69
68
  * Define required message based on mg-inputs required elements
70
- * Also
71
- * @returns {void}
72
69
  */
73
70
  private setRequiredMessage;
74
71
  /**
75
72
  * Check if form is valid
76
- * @returns {void}
77
73
  */
78
74
  private checkValidity;
79
75
  /**
80
76
  * Handle Form Submit
81
- * @param {SubmitEvent} event submit event
82
- * @returns {void}
77
+ * @param event - submit event
83
78
  */
84
79
  private handleFormSubmit;
85
80
  /**
86
81
  * Set mgInputs
87
- * @returns {void}
88
82
  */
89
83
  private setMgInputs;
90
84
  /*************
@@ -92,17 +86,15 @@ export declare class MgForm {
92
86
  *************/
93
87
  /**
94
88
  * Check if component props are well configured on init
95
- * @returns {void}
96
89
  */
97
90
  componentWillLoad(): void;
98
91
  /**
99
92
  * Add slot listeners
100
- * @returns {void}
101
93
  */
102
94
  componentDidLoad(): void;
103
95
  /**
104
96
  * Render
105
- * @returns {HTMLElement} HTML Element
97
+ * @returns HTML Element
106
98
  */
107
99
  render(): HTMLElement;
108
100
  }