@mgdis/mg-components 5.10.0 → 5.10.1
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 +318 -427
- package/dist/cjs/mg-components.cjs.js +1 -1
- package/dist/cjs/mg-item-more.cjs.entry.js +19 -28
- package/dist/cjs/{mg-menu.conf-1942ac70.js → mg-menu.conf-196151fe.js} +16 -16
- package/dist/collection/components/atoms/mg-badge/mg-badge.js +8 -9
- package/dist/collection/components/atoms/mg-button/mg-button.js +16 -20
- package/dist/collection/components/atoms/mg-card/mg-card.js +10 -12
- package/dist/collection/components/atoms/mg-character-left/mg-character-left.js +1 -2
- package/dist/collection/components/atoms/mg-divider/mg-divider.js +1 -1
- package/dist/collection/components/atoms/mg-icon/mg-icon.js +17 -19
- package/dist/collection/components/atoms/mg-input-title/mg-input-title.js +1 -2
- package/dist/collection/components/atoms/mg-tag/mg-tag.js +11 -13
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +11 -21
- package/dist/collection/components/molecules/inputs/MgInput.conf.js +4 -1
- package/dist/collection/components/molecules/inputs/MgInput.js +26 -18
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +10 -14
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +7 -12
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +14 -22
- package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +6 -10
- package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +10 -18
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +21 -32
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +16 -31
- package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +13 -17
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +17 -23
- package/dist/collection/components/molecules/menu/mg-menu/mg-menu.js +11 -18
- package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.js +20 -29
- package/dist/collection/components/molecules/mg-action-more/mg-action-more.js +11 -15
- package/dist/collection/components/molecules/mg-details/mg-details.js +1 -3
- package/dist/collection/components/molecules/mg-form/mg-form.js +8 -19
- package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js +1 -2
- package/dist/collection/components/molecules/mg-item-more/mg-item-more.js +4 -7
- package/dist/collection/components/molecules/mg-message/mg-message.js +11 -14
- package/dist/collection/components/molecules/mg-modal/mg-modal.js +7 -11
- package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +11 -13
- package/dist/collection/components/molecules/mg-panel/mg-panel.js +6 -15
- package/dist/collection/components/molecules/mg-popover/mg-popover.js +7 -13
- package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.js +2 -4
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +20 -24
- package/dist/collection/locales/index.js +2 -2
- package/dist/collection/utils/behaviors.utils.js +16 -22
- package/dist/collection/utils/components.utils.js +21 -23
- package/dist/collection/utils/locale.utils.js +14 -14
- package/dist/collection/utils/unit.test.utils.js +7 -10
- package/dist/components/MgInput.js +30 -18
- package/dist/components/components.utils.js +21 -23
- package/dist/components/index2.js +16 -16
- package/dist/components/mg-action-more.js +9 -13
- package/dist/components/mg-badge2.js +8 -9
- package/dist/components/mg-button2.js +16 -20
- package/dist/components/mg-card2.js +8 -10
- package/dist/components/mg-character-left2.js +1 -2
- package/dist/components/mg-details.js +1 -3
- package/dist/components/mg-divider.js +1 -1
- package/dist/components/mg-form.js +7 -15
- package/dist/components/mg-icon2.js +17 -19
- package/dist/components/mg-illustrated-message.js +1 -2
- package/dist/components/mg-input-checkbox.js +9 -10
- package/dist/components/mg-input-date.js +6 -8
- package/dist/components/mg-input-numeric.js +13 -18
- package/dist/components/mg-input-password.js +5 -6
- package/dist/components/mg-input-radio.js +9 -14
- package/dist/components/mg-input-select2.js +20 -28
- package/dist/components/mg-input-text2.js +14 -23
- package/dist/components/mg-input-textarea.js +12 -13
- package/dist/components/mg-input-title2.js +1 -2
- package/dist/components/mg-input-toggle.js +16 -19
- package/dist/components/mg-item-more.js +18 -27
- package/dist/components/mg-menu-item2.js +17 -26
- package/dist/components/mg-menu2.js +9 -16
- package/dist/components/mg-message.js +11 -14
- package/dist/components/mg-modal.js +7 -11
- package/dist/components/mg-pagination.js +11 -13
- package/dist/components/mg-panel.js +6 -15
- package/dist/components/mg-popover2.js +7 -13
- package/dist/components/mg-skip-links.js +2 -4
- package/dist/components/mg-tabs.js +20 -24
- package/dist/components/mg-tag.js +11 -13
- package/dist/components/mg-tooltip2.js +11 -21
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mg-action-more_31.entry.js +318 -427
- package/dist/esm/mg-components.js +1 -1
- package/dist/esm/mg-item-more.entry.js +19 -28
- package/dist/esm/{mg-menu.conf-2cc1bb67.js → mg-menu.conf-9ca023ee.js} +16 -16
- package/dist/mg-components/mg-components.esm.js +1 -1
- package/dist/mg-components/{p-a56a3157.entry.js → p-97aaca3e.entry.js} +1 -1
- package/dist/mg-components/p-d891e707.entry.js +1 -0
- package/dist/types/components/atoms/mg-badge/mg-badge.d.ts +2 -3
- package/dist/types/components/atoms/mg-button/mg-button.d.ts +5 -9
- package/dist/types/components/atoms/mg-card/mg-card.d.ts +2 -6
- package/dist/types/components/atoms/mg-character-left/mg-character-left.d.ts +1 -2
- package/dist/types/components/atoms/mg-divider/mg-divider.d.ts +1 -1
- package/dist/types/components/atoms/mg-icon/mg-icon.d.ts +3 -5
- package/dist/types/components/atoms/mg-input-title/mg-input-title.d.ts +1 -2
- package/dist/types/components/atoms/mg-tag/mg-tag.d.ts +3 -5
- package/dist/types/components/atoms/mg-tooltip/mg-tooltip.d.ts +11 -21
- package/dist/types/components/molecules/inputs/MgInput.conf.d.ts +2 -1
- package/dist/types/components/molecules/inputs/MgInput.d.ts +5 -5
- package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.d.ts +5 -6
- package/dist/types/components/molecules/inputs/mg-input-date/mg-input-date.d.ts +4 -6
- package/dist/types/components/molecules/inputs/mg-input-numeric/mg-input-numeric.d.ts +7 -14
- package/dist/types/components/molecules/inputs/mg-input-password/mg-input-password.d.ts +3 -4
- package/dist/types/components/molecules/inputs/mg-input-radio/mg-input-radio.d.ts +5 -10
- package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.conf.d.ts +2 -2
- package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.d.ts +9 -13
- package/dist/types/components/molecules/inputs/mg-input-text/mg-input-text.d.ts +3 -12
- package/dist/types/components/molecules/inputs/mg-input-textarea/mg-input-textarea.d.ts +4 -5
- package/dist/types/components/molecules/inputs/mg-input-toggle/mg-input-toggle.d.ts +2 -6
- package/dist/types/components/molecules/menu/mg-menu/mg-menu.d.ts +10 -18
- package/dist/types/components/molecules/menu/mg-menu-item/mg-menu-item.d.ts +21 -31
- package/dist/types/components/molecules/mg-action-more/mg-action-more.d.ts +3 -10
- package/dist/types/components/molecules/mg-details/mg-details.d.ts +1 -3
- package/dist/types/components/molecules/mg-form/mg-form.d.ts +3 -11
- package/dist/types/components/molecules/mg-illustrated-message/mg-illustrated-message.d.ts +1 -2
- package/dist/types/components/molecules/mg-item-more/mg-item-more.d.ts +2 -7
- package/dist/types/components/molecules/mg-message/mg-message.d.ts +4 -7
- package/dist/types/components/molecules/mg-modal/mg-modal.d.ts +3 -7
- package/dist/types/components/molecules/mg-pagination/mg-pagination.d.ts +5 -9
- package/dist/types/components/molecules/mg-panel/mg-panel.d.ts +4 -13
- package/dist/types/components/molecules/mg-popover/mg-popover.d.ts +3 -9
- package/dist/types/components/molecules/mg-skip-links/mg-skip-links.d.ts +2 -4
- package/dist/types/components/molecules/mg-tabs/mg-tabs.d.ts +15 -19
- package/dist/types/components.d.ts +22 -34
- package/dist/types/locales/index.d.ts +2 -2
- package/dist/types/utils/behaviors.utils.d.ts +14 -20
- package/dist/types/utils/components.utils.d.ts +18 -20
- package/dist/types/utils/locale.utils.d.ts +14 -14
- package/dist/types/utils/unit.test.utils.d.ts +11 -17
- package/package.json +1 -1
- package/dist/mg-components/p-eb32bb18.entry.js +0 -1
- /package/dist/mg-components/{p-73156ac9.js → p-0d3146d9.js} +0 -0
|
@@ -32,15 +32,14 @@ export declare class MgBadge {
|
|
|
32
32
|
/**
|
|
33
33
|
* Component classes
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
classCollection: ClassList;
|
|
36
36
|
/**
|
|
37
37
|
* Check if props are well configured on init
|
|
38
|
-
* @returns {void}
|
|
39
38
|
*/
|
|
40
39
|
componentWillLoad(): void;
|
|
41
40
|
/**
|
|
42
41
|
* Render
|
|
43
|
-
* @returns
|
|
42
|
+
* @returns HTML Element
|
|
44
43
|
*/
|
|
45
44
|
render(): HTMLElement;
|
|
46
45
|
}
|
|
@@ -69,37 +69,33 @@ export declare class MgButton {
|
|
|
69
69
|
/**
|
|
70
70
|
* Component classes
|
|
71
71
|
*/
|
|
72
|
-
|
|
72
|
+
classCollection: ClassList;
|
|
73
73
|
/**
|
|
74
74
|
* Emmited event when disabled change
|
|
75
75
|
*/
|
|
76
76
|
disabledChange: EventEmitter<MgButton['disabled']>;
|
|
77
77
|
/**
|
|
78
78
|
* Trigger actions onClick event
|
|
79
|
-
* @param
|
|
80
|
-
* @returns {void}
|
|
79
|
+
* @param event - click event
|
|
81
80
|
*/
|
|
82
81
|
private handleClick;
|
|
83
82
|
/**
|
|
84
83
|
* Handle onKeydown event
|
|
85
|
-
* @param
|
|
86
|
-
* @returns {void}
|
|
84
|
+
* @param event - keyboard event
|
|
87
85
|
*/
|
|
88
86
|
private handleKeydown;
|
|
89
87
|
/**
|
|
90
88
|
* Handle onKeyup event
|
|
91
|
-
* @param
|
|
92
|
-
* @returns {void}
|
|
89
|
+
* @param event - keyboard event
|
|
93
90
|
*/
|
|
94
91
|
private handleKeyup;
|
|
95
92
|
/**
|
|
96
93
|
* Check if props are well configured on init
|
|
97
|
-
* @returns {void}
|
|
98
94
|
*/
|
|
99
95
|
componentWillLoad(): void;
|
|
100
96
|
/**
|
|
101
97
|
* Render component
|
|
102
|
-
* @returns
|
|
98
|
+
* @returns html element
|
|
103
99
|
*/
|
|
104
100
|
render(): HTMLElement;
|
|
105
101
|
}
|
|
@@ -11,24 +11,21 @@ export declare class MgCard {
|
|
|
11
11
|
*************/
|
|
12
12
|
/**
|
|
13
13
|
* Define variant prop
|
|
14
|
-
* Default: undefined
|
|
15
14
|
*/
|
|
16
15
|
variant: undefined | VariantType;
|
|
17
16
|
validateVariant(newValue: MgCard['variant'], oldValue?: MgCard['variant']): void;
|
|
18
17
|
/**
|
|
19
18
|
* Define variantStyle prop
|
|
20
|
-
* Default: undefined
|
|
21
19
|
*/
|
|
22
20
|
variantStyle: undefined | VariantStyleType;
|
|
23
21
|
validateVariantStyle(newValue: MgCard['variantStyle'], oldValue?: MgCard['variantStyle']): void;
|
|
24
22
|
/**
|
|
25
23
|
* Component classes
|
|
26
24
|
*/
|
|
27
|
-
|
|
25
|
+
classCollection: ClassList;
|
|
28
26
|
/**
|
|
29
27
|
* Methode to set default varianStyle props
|
|
30
28
|
* needeed has stencil doesn't know that props is mutated when updated in prop watcher
|
|
31
|
-
* @returns {void}
|
|
32
29
|
*/
|
|
33
30
|
private setDefaultVariantStyle;
|
|
34
31
|
/*************
|
|
@@ -36,12 +33,11 @@ export declare class MgCard {
|
|
|
36
33
|
*************/
|
|
37
34
|
/**
|
|
38
35
|
* Check if props are well configured on init
|
|
39
|
-
* @returns {void}
|
|
40
36
|
*/
|
|
41
37
|
componentWillLoad(): void;
|
|
42
38
|
/**
|
|
43
39
|
* Render
|
|
44
|
-
* @returns
|
|
40
|
+
* @returns HTML Element
|
|
45
41
|
*/
|
|
46
42
|
render(): HTMLElement;
|
|
47
43
|
}
|
|
@@ -29,12 +29,11 @@ export declare class MgCharacterLeft {
|
|
|
29
29
|
*************/
|
|
30
30
|
/**
|
|
31
31
|
* Check if props are well configured on init
|
|
32
|
-
* @returns {void}
|
|
33
32
|
*/
|
|
34
33
|
componentWillLoad(): void;
|
|
35
34
|
/**
|
|
36
35
|
* Render component
|
|
37
|
-
* @returns
|
|
36
|
+
* @returns HTML Element
|
|
38
37
|
*/
|
|
39
38
|
render(): HTMLElement;
|
|
40
39
|
}
|
|
@@ -33,26 +33,24 @@ export declare class MgIcon {
|
|
|
33
33
|
/**
|
|
34
34
|
* Component classes
|
|
35
35
|
*/
|
|
36
|
-
|
|
36
|
+
classCollection: ClassList;
|
|
37
37
|
/**
|
|
38
38
|
* getIcon
|
|
39
|
-
* @returns
|
|
39
|
+
* @returns icon html
|
|
40
40
|
*/
|
|
41
41
|
private getIcon;
|
|
42
42
|
/**
|
|
43
43
|
* Method to set default varianStyle props
|
|
44
44
|
* needeed has stencil doesn't know that props is mutated when updated in prop watcher
|
|
45
|
-
* @returns {void}
|
|
46
45
|
*/
|
|
47
46
|
private setDefaultVariantStyle;
|
|
48
47
|
/**
|
|
49
48
|
* Check if props are well configured on init
|
|
50
|
-
* @returns {void}
|
|
51
49
|
*/
|
|
52
50
|
componentWillLoad(): void;
|
|
53
51
|
/**
|
|
54
52
|
* Render component
|
|
55
|
-
* @returns
|
|
53
|
+
* @returns HTML Element
|
|
56
54
|
*/
|
|
57
55
|
render(): HTMLElement;
|
|
58
56
|
}
|
|
@@ -22,12 +22,11 @@ export declare class MgInputTitle {
|
|
|
22
22
|
*************/
|
|
23
23
|
/**
|
|
24
24
|
* Init tag name
|
|
25
|
-
* @returns {void}
|
|
26
25
|
*/
|
|
27
26
|
componentWillLoad(): void;
|
|
28
27
|
/**
|
|
29
28
|
* Render
|
|
30
|
-
* @returns
|
|
29
|
+
* @returns HTML element
|
|
31
30
|
*/
|
|
32
31
|
render(): HTMLElement;
|
|
33
32
|
}
|
|
@@ -31,14 +31,13 @@ export declare class MgTag {
|
|
|
31
31
|
/**
|
|
32
32
|
* Component classes
|
|
33
33
|
*/
|
|
34
|
-
|
|
34
|
+
classCollection: ClassList;
|
|
35
35
|
/*************
|
|
36
36
|
* Methods *
|
|
37
37
|
*************/
|
|
38
38
|
/**
|
|
39
39
|
* Validate the given textContent
|
|
40
|
-
* @param
|
|
41
|
-
* @returns {void}
|
|
40
|
+
* @param textContent - html element textContent property
|
|
42
41
|
*/
|
|
43
42
|
private validateTextContent;
|
|
44
43
|
/*************
|
|
@@ -46,12 +45,11 @@ export declare class MgTag {
|
|
|
46
45
|
*************/
|
|
47
46
|
/**
|
|
48
47
|
* Check if props are well configured on init
|
|
49
|
-
* @returns {void}
|
|
50
48
|
*/
|
|
51
49
|
componentWillLoad(): void;
|
|
52
50
|
/**
|
|
53
51
|
* Render
|
|
54
|
-
* @returns
|
|
52
|
+
* @returns HTML Element
|
|
55
53
|
*/
|
|
56
54
|
render(): HTMLElement;
|
|
57
55
|
}
|
|
@@ -40,56 +40,48 @@ export declare class MgTooltip {
|
|
|
40
40
|
disabled: boolean;
|
|
41
41
|
/**
|
|
42
42
|
* Show tooltip
|
|
43
|
-
* @returns {void}
|
|
44
43
|
*/
|
|
45
44
|
private show;
|
|
46
45
|
/**
|
|
47
46
|
* Hide tooltip
|
|
48
|
-
* @returns {void}
|
|
49
47
|
*/
|
|
50
48
|
private hide;
|
|
51
49
|
/**
|
|
52
50
|
* Check if clicked outside of component and hidde tooltip
|
|
53
|
-
* @param
|
|
54
|
-
* @returns {void}
|
|
51
|
+
* @param event - mouse event
|
|
55
52
|
*/
|
|
56
53
|
private clickOutside;
|
|
57
54
|
/**
|
|
58
55
|
* Check if 'Escape' key is pressed of component and hidde tooltip
|
|
59
|
-
* @param
|
|
60
|
-
* @returns {void}
|
|
56
|
+
* @param event - keyboard event
|
|
61
57
|
*/
|
|
62
58
|
private pressEscape;
|
|
63
59
|
/**
|
|
64
60
|
* Method to set display prop
|
|
65
|
-
* @param
|
|
66
|
-
* @param
|
|
67
|
-
* @returns {void}
|
|
61
|
+
* @param newValue - display prop new value
|
|
62
|
+
* @param condition - additionnal condition to apply display prop newValue
|
|
68
63
|
*/
|
|
69
64
|
private setDisplay;
|
|
70
65
|
/**
|
|
71
66
|
* Action for tooltip element and tooltiped element mouse listener
|
|
72
|
-
* @param
|
|
73
|
-
* @param
|
|
74
|
-
* @param
|
|
75
|
-
* @returns {void}
|
|
67
|
+
* @param elementGuard - tooltip element guard
|
|
68
|
+
* @param isMouseenter - mouseenter validation
|
|
69
|
+
* @param conditionalGuard - guard condition
|
|
76
70
|
*/
|
|
77
71
|
private tooltipMouseListenerAction;
|
|
78
72
|
/**
|
|
79
73
|
* Method to reset guard value
|
|
80
|
-
* @returns {void}
|
|
81
74
|
*/
|
|
82
75
|
private resetGuard;
|
|
83
76
|
/**
|
|
84
77
|
* Update slot content when it is a mg-button
|
|
85
|
-
* @param
|
|
86
|
-
* @returns {void}
|
|
78
|
+
* @param mgButton - slotted mg-button
|
|
87
79
|
*/
|
|
88
80
|
private setMgButtonWrapper;
|
|
89
81
|
/**
|
|
90
82
|
* Init tooltip
|
|
91
|
-
* @param
|
|
92
|
-
* @param
|
|
83
|
+
* @param slotElement - slotted element
|
|
84
|
+
* @param interactiveElement - interactive element
|
|
93
85
|
*/
|
|
94
86
|
private initTooltip;
|
|
95
87
|
/*************
|
|
@@ -97,19 +89,17 @@ export declare class MgTooltip {
|
|
|
97
89
|
*************/
|
|
98
90
|
/**
|
|
99
91
|
* set variables
|
|
100
|
-
* @returns {void}
|
|
101
92
|
*/
|
|
102
93
|
componentWillLoad(): void;
|
|
103
94
|
/**
|
|
104
95
|
* Get slotted element
|
|
105
96
|
* Check if it already contain an interactive element, if not we need to add a tabIndex attribute
|
|
106
97
|
* We need to attach the focused element to the tooltip (aria-describedby)
|
|
107
|
-
* @returns {void}
|
|
108
98
|
*/
|
|
109
99
|
componentDidLoad(): void;
|
|
110
100
|
/**
|
|
111
101
|
* Render
|
|
112
|
-
* @returns
|
|
102
|
+
* @returns HTML Element
|
|
113
103
|
*/
|
|
114
104
|
render(): HTMLElement;
|
|
115
105
|
}
|
|
@@ -6,7 +6,7 @@ import { ClassList } from '../../../utils/components.utils';
|
|
|
6
6
|
*/
|
|
7
7
|
interface MgInputProps {
|
|
8
8
|
identifier: string;
|
|
9
|
-
|
|
9
|
+
classCollection: ClassList;
|
|
10
10
|
label: string;
|
|
11
11
|
labelOnTop: boolean;
|
|
12
12
|
labelHide: boolean;
|
|
@@ -24,10 +24,10 @@ interface MgInputProps {
|
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
26
|
* Get input template
|
|
27
|
-
* @param
|
|
28
|
-
* @param
|
|
29
|
-
* @param
|
|
30
|
-
* @returns
|
|
27
|
+
* @param props - MgInput Interface Props
|
|
28
|
+
* @param children - Represent scoped elements
|
|
29
|
+
* @param utils - Stencil.js utils
|
|
30
|
+
* @returns input template
|
|
31
31
|
*/
|
|
32
32
|
export declare const MgInput: FunctionalComponent<MgInputProps>;
|
|
33
33
|
export {};
|
|
@@ -79,7 +79,7 @@ export declare class MgInputCheckbox {
|
|
|
79
79
|
/**
|
|
80
80
|
* Component classes
|
|
81
81
|
*/
|
|
82
|
-
|
|
82
|
+
classCollection: ClassList;
|
|
83
83
|
/**
|
|
84
84
|
* Error message to display
|
|
85
85
|
*/
|
|
@@ -98,12 +98,11 @@ export declare class MgInputCheckbox {
|
|
|
98
98
|
inputValid: EventEmitter<MgInputCheckbox['valid']>;
|
|
99
99
|
/**
|
|
100
100
|
* Public method to display errors
|
|
101
|
-
* @returns {Promise<void>}
|
|
102
101
|
*/
|
|
103
102
|
displayError(): Promise<void>;
|
|
104
103
|
/**
|
|
105
104
|
* Handle input event
|
|
106
|
-
* @param
|
|
105
|
+
* @param event - input event
|
|
107
106
|
*/
|
|
108
107
|
private handleInput;
|
|
109
108
|
/**
|
|
@@ -112,7 +111,7 @@ export declare class MgInputCheckbox {
|
|
|
112
111
|
private handleBlur;
|
|
113
112
|
/**
|
|
114
113
|
* get invalid element
|
|
115
|
-
* @returns
|
|
114
|
+
* @returns element
|
|
116
115
|
*/
|
|
117
116
|
private getInvalidElement;
|
|
118
117
|
/**
|
|
@@ -128,12 +127,12 @@ export declare class MgInputCheckbox {
|
|
|
128
127
|
*************/
|
|
129
128
|
/**
|
|
130
129
|
* Check if component props are well configured on init
|
|
131
|
-
* @returns
|
|
130
|
+
* @returns timeout
|
|
132
131
|
*/
|
|
133
132
|
componentWillLoad(): ReturnType<typeof setTimeout>;
|
|
134
133
|
/**
|
|
135
134
|
* Render
|
|
136
|
-
* @returns
|
|
135
|
+
* @returns HTML Element
|
|
137
136
|
*/
|
|
138
137
|
render(): HTMLElement;
|
|
139
138
|
}
|
|
@@ -84,7 +84,7 @@ export declare class MgInputDate {
|
|
|
84
84
|
/**
|
|
85
85
|
* Component classes
|
|
86
86
|
*/
|
|
87
|
-
|
|
87
|
+
classCollection: ClassList;
|
|
88
88
|
/**
|
|
89
89
|
* Error message to display
|
|
90
90
|
*/
|
|
@@ -99,7 +99,6 @@ export declare class MgInputDate {
|
|
|
99
99
|
inputValid: EventEmitter<boolean>;
|
|
100
100
|
/**
|
|
101
101
|
* Public method to display errors
|
|
102
|
-
* @returns {Promise<void>}
|
|
103
102
|
*/
|
|
104
103
|
displayError(): Promise<void>;
|
|
105
104
|
/**
|
|
@@ -116,12 +115,11 @@ export declare class MgInputDate {
|
|
|
116
115
|
private checkValidity;
|
|
117
116
|
/**
|
|
118
117
|
* get input error code
|
|
119
|
-
* @returns
|
|
118
|
+
* @returns error code
|
|
120
119
|
*/
|
|
121
120
|
private getInputError;
|
|
122
121
|
/**
|
|
123
122
|
* Check input errors
|
|
124
|
-
* @returns {void}
|
|
125
123
|
*/
|
|
126
124
|
private setErrorMessage;
|
|
127
125
|
/*************
|
|
@@ -129,12 +127,12 @@ export declare class MgInputDate {
|
|
|
129
127
|
*************/
|
|
130
128
|
/**
|
|
131
129
|
* Check if component props are well configured on init
|
|
132
|
-
* @returns
|
|
130
|
+
* @returns timeout
|
|
133
131
|
*/
|
|
134
132
|
componentWillLoad(): ReturnType<typeof setTimeout>;
|
|
135
133
|
/**
|
|
136
134
|
* Render
|
|
137
|
-
* @returns
|
|
135
|
+
* @returns HTML Element
|
|
138
136
|
*/
|
|
139
137
|
render(): HTMLElement;
|
|
140
138
|
}
|
|
@@ -115,7 +115,7 @@ export declare class MgInputNumeric {
|
|
|
115
115
|
/**
|
|
116
116
|
* Component classes
|
|
117
117
|
*/
|
|
118
|
-
|
|
118
|
+
classCollection: ClassList;
|
|
119
119
|
/**
|
|
120
120
|
* Error message to display
|
|
121
121
|
*/
|
|
@@ -134,54 +134,47 @@ export declare class MgInputNumeric {
|
|
|
134
134
|
inputValid: EventEmitter<boolean>;
|
|
135
135
|
/**
|
|
136
136
|
* Public method to display errors
|
|
137
|
-
* @returns {Promise<void>}
|
|
138
137
|
*/
|
|
139
138
|
displayError(): Promise<void>;
|
|
140
139
|
/**
|
|
141
140
|
* Displayed value in input
|
|
142
141
|
* Change on focus/blur
|
|
143
|
-
* @returns
|
|
142
|
+
* @returns display value
|
|
144
143
|
*/
|
|
145
144
|
private displayValue;
|
|
146
145
|
/**
|
|
147
146
|
* Handle input event
|
|
148
|
-
* @returns {void}
|
|
149
147
|
*/
|
|
150
148
|
private handleInput;
|
|
151
149
|
/**
|
|
152
150
|
* Handle focus event
|
|
153
|
-
* @returns {void}
|
|
154
151
|
*/
|
|
155
152
|
private handleFocus;
|
|
156
153
|
/**
|
|
157
154
|
* Handle blur event
|
|
158
|
-
* @returns {void}
|
|
159
155
|
*/
|
|
160
156
|
private handleBlur;
|
|
161
157
|
/**
|
|
162
158
|
* Check if input is valid
|
|
163
|
-
* @returns {void}
|
|
164
159
|
*/
|
|
165
160
|
private checkValidity;
|
|
166
161
|
/**
|
|
167
162
|
* Set input error message
|
|
168
|
-
* @returns {void}
|
|
169
163
|
*/
|
|
170
164
|
private setErrorMessage;
|
|
171
165
|
/**
|
|
172
166
|
* Get input error code
|
|
173
|
-
* @returns
|
|
167
|
+
* @returns error code
|
|
174
168
|
*/
|
|
175
169
|
private getInputError;
|
|
176
170
|
/**
|
|
177
171
|
* Format value based on type
|
|
178
|
-
* @param
|
|
179
|
-
* @returns
|
|
172
|
+
* @param value - value to format
|
|
173
|
+
* @returns formated local value
|
|
180
174
|
*/
|
|
181
175
|
private formatValue;
|
|
182
176
|
/**
|
|
183
177
|
* Validate append slot
|
|
184
|
-
* @returns {void}
|
|
185
178
|
*/
|
|
186
179
|
private validateAppendSlot;
|
|
187
180
|
/*************
|
|
@@ -189,12 +182,12 @@ export declare class MgInputNumeric {
|
|
|
189
182
|
*************/
|
|
190
183
|
/**
|
|
191
184
|
* Check if component props are well configured on init
|
|
192
|
-
* @returns
|
|
185
|
+
* @returns timeout
|
|
193
186
|
*/
|
|
194
187
|
componentWillLoad(): ReturnType<typeof setTimeout>;
|
|
195
188
|
/**
|
|
196
189
|
* Render
|
|
197
|
-
* @returns
|
|
190
|
+
* @returns HTML Element
|
|
198
191
|
*/
|
|
199
192
|
render(): HTMLElement;
|
|
200
193
|
}
|
|
@@ -82,7 +82,7 @@ export declare class MgInputPassword {
|
|
|
82
82
|
/**
|
|
83
83
|
* Component classes
|
|
84
84
|
*/
|
|
85
|
-
|
|
85
|
+
classCollection: ClassList;
|
|
86
86
|
/**
|
|
87
87
|
* Error message to display
|
|
88
88
|
*/
|
|
@@ -97,7 +97,6 @@ export declare class MgInputPassword {
|
|
|
97
97
|
inputValid: EventEmitter<boolean>;
|
|
98
98
|
/**
|
|
99
99
|
* Public method to display errors
|
|
100
|
-
* @returns {Promise<void>}
|
|
101
100
|
*/
|
|
102
101
|
displayError(): Promise<void>;
|
|
103
102
|
/**
|
|
@@ -121,12 +120,12 @@ export declare class MgInputPassword {
|
|
|
121
120
|
*************/
|
|
122
121
|
/**
|
|
123
122
|
* Check if component props are well configured on init
|
|
124
|
-
* @returns
|
|
123
|
+
* @returns timeout
|
|
125
124
|
*/
|
|
126
125
|
componentWillLoad(): ReturnType<typeof setTimeout>;
|
|
127
126
|
/**
|
|
128
127
|
* Render
|
|
129
|
-
* @returns
|
|
128
|
+
* @returns HTML Element
|
|
130
129
|
*/
|
|
131
130
|
render(): HTMLElement;
|
|
132
131
|
}
|
|
@@ -83,7 +83,7 @@ export declare class MgInputRadio {
|
|
|
83
83
|
/**
|
|
84
84
|
* Component classes
|
|
85
85
|
*/
|
|
86
|
-
|
|
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
|
|
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
|
|
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
|
|
134
|
+
* @returns timeout
|
|
140
135
|
*/
|
|
141
136
|
componentWillLoad(): ReturnType<typeof setTimeout>;
|
|
142
137
|
/**
|
|
143
138
|
* Render
|
|
144
|
-
* @returns
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
|
137
|
-
* @returns
|
|
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
|
|
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
|
|
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
|
|
169
|
+
* @returns timeout
|
|
174
170
|
*/
|
|
175
171
|
componentWillLoad(): ReturnType<typeof setTimeout>;
|
|
176
172
|
/**
|
|
177
173
|
* Render option
|
|
178
|
-
* @param
|
|
179
|
-
* @returns
|
|
174
|
+
* @param option - to render
|
|
175
|
+
* @returns render option
|
|
180
176
|
*/
|
|
181
177
|
private renderOption;
|
|
182
178
|
/**
|
|
183
179
|
* Render
|
|
184
|
-
* @returns
|
|
180
|
+
* @returns HTML Element
|
|
185
181
|
*/
|
|
186
182
|
render(): HTMLElement;
|
|
187
183
|
}
|