@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.
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mg-action-more_31.cjs.entry.js +31 -225
- package/dist/cjs/mg-components.cjs.js +1 -1
- package/dist/cjs/mg-item-more.cjs.entry.js +1 -16
- package/dist/cjs/{mg-menu.conf-9afe6571.js → mg-menu.conf-1942ac70.js} +0 -5
- package/dist/collection/components/atoms/mg-badge/mg-badge.js +1 -3
- package/dist/collection/components/atoms/mg-button/mg-button.js +2 -7
- package/dist/collection/components/atoms/mg-card/mg-card.js +13 -4
- package/dist/collection/components/atoms/mg-character-left/mg-character-left.js +0 -2
- package/dist/collection/components/atoms/mg-divider/mg-divider.js +0 -1
- package/dist/collection/components/atoms/mg-icon/mg-icon.js +10 -5
- package/dist/collection/components/atoms/mg-input-title/mg-input-title.js +0 -2
- package/dist/collection/components/atoms/mg-tag/mg-tag.js +0 -3
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +1 -13
- package/dist/collection/components/molecules/inputs/MgInput.js +0 -6
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +0 -6
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +0 -5
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +0 -12
- package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +0 -3
- package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +0 -9
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +0 -13
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +1 -12
- package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +1 -5
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +0 -5
- package/dist/collection/components/molecules/menu/mg-menu/mg-menu.js +0 -11
- package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.js +0 -18
- package/dist/collection/components/molecules/mg-action-more/mg-action-more.js +0 -8
- package/dist/collection/components/molecules/mg-details/mg-details.js +0 -3
- package/dist/collection/components/molecules/mg-form/mg-form.js +0 -8
- package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js +0 -2
- package/dist/collection/components/molecules/mg-item-more/mg-item-more.js +0 -5
- package/dist/collection/components/molecules/mg-message/mg-message.js +2 -7
- package/dist/collection/components/molecules/mg-modal/mg-modal.js +1 -6
- package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +0 -6
- package/dist/collection/components/molecules/mg-panel/mg-panel.js +5 -15
- package/dist/collection/components/molecules/mg-popover/mg-popover.js +1 -8
- package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.js +1 -4
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +0 -12
- package/dist/collection/locales/index.js +0 -1
- package/dist/collection/utils/behaviors.utils.js +0 -10
- package/dist/collection/utils/components.utils.js +1 -10
- package/dist/collection/utils/locale.utils.js +0 -4
- package/dist/collection/utils/unit.test.utils.js +0 -5
- package/dist/components/MgInput.js +0 -6
- package/dist/components/components.utils.js +1 -10
- package/dist/components/index2.js +0 -5
- package/dist/components/mg-action-more.js +0 -8
- package/dist/components/mg-badge2.js +1 -3
- package/dist/components/mg-button2.js +2 -7
- package/dist/components/mg-card2.js +13 -4
- package/dist/components/mg-character-left2.js +0 -2
- package/dist/components/mg-details.js +0 -3
- package/dist/components/mg-divider.js +0 -1
- package/dist/components/mg-form.js +0 -8
- package/dist/components/mg-icon2.js +10 -5
- package/dist/components/mg-illustrated-message.js +0 -2
- package/dist/components/mg-input-checkbox.js +0 -6
- package/dist/components/mg-input-date.js +0 -5
- package/dist/components/mg-input-numeric.js +0 -12
- package/dist/components/mg-input-password.js +0 -3
- package/dist/components/mg-input-radio.js +0 -9
- package/dist/components/mg-input-select2.js +0 -13
- package/dist/components/mg-input-text2.js +1 -12
- package/dist/components/mg-input-textarea.js +1 -5
- package/dist/components/mg-input-title2.js +0 -2
- package/dist/components/mg-input-toggle.js +0 -5
- package/dist/components/mg-item-more.js +0 -15
- package/dist/components/mg-menu-item2.js +0 -18
- package/dist/components/mg-menu2.js +0 -11
- package/dist/components/mg-message.js +2 -7
- package/dist/components/mg-modal.js +1 -6
- package/dist/components/mg-pagination.js +0 -6
- package/dist/components/mg-panel.js +5 -15
- package/dist/components/mg-popover2.js +1 -8
- package/dist/components/mg-skip-links.js +1 -4
- package/dist/components/mg-tabs.js +0 -12
- package/dist/components/mg-tag.js +0 -3
- package/dist/components/mg-tooltip2.js +1 -13
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mg-action-more_31.entry.js +31 -225
- package/dist/esm/mg-components.js +1 -1
- package/dist/esm/mg-item-more.entry.js +1 -16
- package/dist/esm/{mg-menu.conf-881fbd82.js → mg-menu.conf-2cc1bb67.js} +0 -5
- package/dist/mg-components/mg-components.esm.js +1 -1
- package/dist/mg-components/{p-67ce7cb8.entry.js → p-a56a3157.entry.js} +1 -1
- package/dist/mg-components/{p-9a93b7af.entry.js → p-eb32bb18.entry.js} +1 -1
- package/dist/types/components/atoms/mg-badge/mg-badge.d.ts +0 -2
- package/dist/types/components/atoms/mg-button/mg-button.d.ts +0 -5
- package/dist/types/components/atoms/mg-card/mg-card.d.ts +10 -3
- package/dist/types/components/atoms/mg-character-left/mg-character-left.d.ts +0 -2
- package/dist/types/components/atoms/mg-divider/mg-divider.d.ts +0 -1
- package/dist/types/components/atoms/mg-icon/mg-icon.d.ts +6 -3
- package/dist/types/components/atoms/mg-input-title/mg-input-title.d.ts +0 -2
- package/dist/types/components/atoms/mg-tag/mg-tag.d.ts +0 -3
- package/dist/types/components/atoms/mg-tooltip/mg-tooltip.d.ts +0 -12
- package/dist/types/components/molecules/inputs/MgInput.d.ts +0 -1
- package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.d.ts +0 -5
- package/dist/types/components/molecules/inputs/mg-input-date/mg-input-date.d.ts +0 -5
- package/dist/types/components/molecules/inputs/mg-input-numeric/mg-input-numeric.d.ts +0 -12
- package/dist/types/components/molecules/inputs/mg-input-password/mg-input-password.d.ts +0 -3
- package/dist/types/components/molecules/inputs/mg-input-radio/mg-input-radio.d.ts +0 -8
- package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.d.ts +0 -9
- package/dist/types/components/molecules/inputs/mg-input-text/mg-input-text.d.ts +0 -11
- package/dist/types/components/molecules/inputs/mg-input-textarea/mg-input-textarea.d.ts +0 -4
- package/dist/types/components/molecules/inputs/mg-input-toggle/mg-input-toggle.d.ts +0 -5
- package/dist/types/components/molecules/menu/mg-menu/mg-menu.d.ts +0 -11
- package/dist/types/components/molecules/menu/mg-menu-item/mg-menu-item.d.ts +0 -18
- package/dist/types/components/molecules/mg-action-more/mg-action-more.d.ts +0 -5
- package/dist/types/components/molecules/mg-details/mg-details.d.ts +0 -3
- package/dist/types/components/molecules/mg-form/mg-form.d.ts +0 -8
- package/dist/types/components/molecules/mg-illustrated-message/mg-illustrated-message.d.ts +0 -2
- package/dist/types/components/molecules/mg-item-more/mg-item-more.d.ts +0 -5
- package/dist/types/components/molecules/mg-message/mg-message.d.ts +1 -6
- package/dist/types/components/molecules/mg-modal/mg-modal.d.ts +0 -5
- package/dist/types/components/molecules/mg-pagination/mg-pagination.d.ts +0 -5
- package/dist/types/components/molecules/mg-panel/mg-panel.d.ts +0 -10
- package/dist/types/components/molecules/mg-popover/mg-popover.d.ts +0 -7
- package/dist/types/components/molecules/mg-skip-links/mg-skip-links.d.ts +0 -3
- package/dist/types/components/molecules/mg-tabs/mg-tabs.d.ts +0 -11
- package/dist/types/locales/index.d.ts +0 -1
- package/dist/types/utils/behaviors.utils.d.ts +0 -9
- package/dist/types/utils/components.utils.d.ts +1 -9
- package/dist/types/utils/locale.utils.d.ts +0 -4
- package/dist/types/utils/unit.test.utils.d.ts +0 -7
- package/package.json +11 -12
- /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
|
-
*
|
|
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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|