@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
|
@@ -48,7 +48,7 @@ export declare class MgModal {
|
|
|
48
48
|
/**
|
|
49
49
|
* Component classes
|
|
50
50
|
*/
|
|
51
|
-
|
|
51
|
+
classCollection: ClassList;
|
|
52
52
|
/**
|
|
53
53
|
* Emmited event when modal is diplayed
|
|
54
54
|
*/
|
|
@@ -59,8 +59,7 @@ export declare class MgModal {
|
|
|
59
59
|
componentHide: EventEmitter<string>;
|
|
60
60
|
/**
|
|
61
61
|
* Handle 'escape' key down
|
|
62
|
-
* @param
|
|
63
|
-
* @returns {void}
|
|
62
|
+
* @param event - keydown event
|
|
64
63
|
*/
|
|
65
64
|
handleKeyDown(event: KeyboardEvent): void;
|
|
66
65
|
private setFocus;
|
|
@@ -69,7 +68,6 @@ export declare class MgModal {
|
|
|
69
68
|
*************/
|
|
70
69
|
/**
|
|
71
70
|
* Handle close button
|
|
72
|
-
* @returns {void}
|
|
73
71
|
*/
|
|
74
72
|
private handleClose;
|
|
75
73
|
/*************
|
|
@@ -77,17 +75,15 @@ export declare class MgModal {
|
|
|
77
75
|
*************/
|
|
78
76
|
/**
|
|
79
77
|
* Check if component props are well configured on init
|
|
80
|
-
* @returns {void}
|
|
81
78
|
*/
|
|
82
79
|
componentWillLoad(): void;
|
|
83
80
|
/**
|
|
84
81
|
* Add observer on component to set focus when displayed
|
|
85
|
-
* @returns {void}
|
|
86
82
|
*/
|
|
87
83
|
componentDidLoad(): void;
|
|
88
84
|
/**
|
|
89
85
|
* Render
|
|
90
|
-
* @returns
|
|
86
|
+
* @returns HTML Element
|
|
91
87
|
*/
|
|
92
88
|
render(): HTMLElement;
|
|
93
89
|
}
|
|
@@ -41,8 +41,7 @@ export declare class MgPagination {
|
|
|
41
41
|
currentPageChange: EventEmitter<number>;
|
|
42
42
|
/**
|
|
43
43
|
* Change current page from target
|
|
44
|
-
* @param
|
|
45
|
-
* @returns {void}
|
|
44
|
+
* @param target - target page
|
|
46
45
|
*/
|
|
47
46
|
private goToPage;
|
|
48
47
|
/************
|
|
@@ -50,15 +49,13 @@ export declare class MgPagination {
|
|
|
50
49
|
************/
|
|
51
50
|
/**
|
|
52
51
|
* select handler
|
|
53
|
-
* @param
|
|
54
|
-
* @returns {void}
|
|
52
|
+
* @param event - value change event
|
|
55
53
|
*/
|
|
56
54
|
private handleSelect;
|
|
57
55
|
/**
|
|
58
56
|
* Go to 'previous/next' page button handler
|
|
59
|
-
* @param
|
|
60
|
-
* @param
|
|
61
|
-
* @returns {void}
|
|
57
|
+
* @param action - navigation action
|
|
58
|
+
* @param disabled - button disable state
|
|
62
59
|
*/
|
|
63
60
|
private handleGoToPage;
|
|
64
61
|
/*************
|
|
@@ -66,12 +63,11 @@ export declare class MgPagination {
|
|
|
66
63
|
*************/
|
|
67
64
|
/**
|
|
68
65
|
* Check if props are well configured on init
|
|
69
|
-
* @returns {void}
|
|
70
66
|
*/
|
|
71
67
|
componentWillLoad(): void;
|
|
72
68
|
/**
|
|
73
69
|
* Render
|
|
74
|
-
* @returns
|
|
70
|
+
* @returns HTML Element
|
|
75
71
|
*/
|
|
76
72
|
render(): HTMLElement;
|
|
77
73
|
}
|
|
@@ -48,7 +48,7 @@ export declare class MgPanel {
|
|
|
48
48
|
/**
|
|
49
49
|
* Component classes
|
|
50
50
|
*/
|
|
51
|
-
|
|
51
|
+
classCollection: ClassList;
|
|
52
52
|
/**
|
|
53
53
|
* Title is in edition mode
|
|
54
54
|
*/
|
|
@@ -70,7 +70,6 @@ export declare class MgPanel {
|
|
|
70
70
|
************/
|
|
71
71
|
/**
|
|
72
72
|
* Toggle is editing state
|
|
73
|
-
* @returns {void}
|
|
74
73
|
*/
|
|
75
74
|
private toggleIsEditing;
|
|
76
75
|
/************
|
|
@@ -78,28 +77,23 @@ export declare class MgPanel {
|
|
|
78
77
|
************/
|
|
79
78
|
/**
|
|
80
79
|
* Collapse button click handler
|
|
81
|
-
* @returns {void}
|
|
82
80
|
*/
|
|
83
81
|
private handleCollapseButton;
|
|
84
82
|
/**
|
|
85
83
|
* Edit button click handler
|
|
86
|
-
* @returns {void}
|
|
87
84
|
*/
|
|
88
85
|
private handleEditButton;
|
|
89
86
|
/**
|
|
90
87
|
* Update title handler
|
|
91
|
-
* @param
|
|
92
|
-
* @returns {void}
|
|
88
|
+
* @param event - input value change event
|
|
93
89
|
*/
|
|
94
90
|
private handleUpdateTitle;
|
|
95
91
|
/**
|
|
96
92
|
* Cancel edition button handler
|
|
97
|
-
* @returns {void}
|
|
98
93
|
*/
|
|
99
94
|
private handleCancelEditButton;
|
|
100
95
|
/**
|
|
101
96
|
* Validate edition button handler
|
|
102
|
-
* @returns {void}
|
|
103
97
|
*/
|
|
104
98
|
private handleValidateEditButton;
|
|
105
99
|
/*************
|
|
@@ -107,23 +101,20 @@ export declare class MgPanel {
|
|
|
107
101
|
*************/
|
|
108
102
|
/**
|
|
109
103
|
* Check if props are well configured on init
|
|
110
|
-
* @returns {void}
|
|
111
104
|
*/
|
|
112
105
|
componentWillLoad(): void;
|
|
113
106
|
/**
|
|
114
107
|
* Header left conditional render
|
|
115
|
-
* @
|
|
116
|
-
* @returns {HTMLMgButtonElement | HTMLElement | HTMLElement[]} header left element
|
|
108
|
+
* @returns header left element
|
|
117
109
|
*/
|
|
118
110
|
private headerLeft;
|
|
119
111
|
/**
|
|
120
112
|
* Edit DOM after render
|
|
121
|
-
* @returns {void}
|
|
122
113
|
*/
|
|
123
114
|
componentDidRender(): void;
|
|
124
115
|
/**
|
|
125
116
|
* Render component
|
|
126
|
-
* @returns
|
|
117
|
+
* @returns html element
|
|
127
118
|
*/
|
|
128
119
|
render(): HTMLElement;
|
|
129
120
|
}
|
|
@@ -49,30 +49,26 @@ export declare class MgPopover {
|
|
|
49
49
|
/**
|
|
50
50
|
* Component classes
|
|
51
51
|
*/
|
|
52
|
-
|
|
52
|
+
classCollection: ClassList;
|
|
53
53
|
/**
|
|
54
54
|
* Emited event when display value change
|
|
55
55
|
*/
|
|
56
56
|
displayChange: EventEmitter<boolean>;
|
|
57
57
|
/**
|
|
58
58
|
* Check if clicked outside of component
|
|
59
|
-
* @param
|
|
60
|
-
* @returns {void}
|
|
59
|
+
* @param event - mouse event
|
|
61
60
|
*/
|
|
62
61
|
private clickOutside;
|
|
63
62
|
/**
|
|
64
63
|
* Show popover
|
|
65
|
-
* @returns {void}
|
|
66
64
|
*/
|
|
67
65
|
private show;
|
|
68
66
|
/**
|
|
69
67
|
* Hide popover
|
|
70
|
-
* @returns {void}
|
|
71
68
|
*/
|
|
72
69
|
private hide;
|
|
73
70
|
/**
|
|
74
71
|
* Handle action for close button
|
|
75
|
-
* @returns {void}
|
|
76
72
|
*/
|
|
77
73
|
private handleCloseButton;
|
|
78
74
|
/*************
|
|
@@ -80,17 +76,15 @@ export declare class MgPopover {
|
|
|
80
76
|
*************/
|
|
81
77
|
/**
|
|
82
78
|
* Check if component props are well configured on init
|
|
83
|
-
* @returns {void} timeout
|
|
84
79
|
*/
|
|
85
80
|
componentWillLoad(): void;
|
|
86
81
|
/**
|
|
87
82
|
* Check if component props are well configured on init
|
|
88
|
-
* @returns {void}
|
|
89
83
|
*/
|
|
90
84
|
componentDidLoad(): void;
|
|
91
85
|
/**
|
|
92
86
|
* Render
|
|
93
|
-
* @returns
|
|
87
|
+
* @returns HTML Element
|
|
94
88
|
*/
|
|
95
89
|
render(): HTMLElement;
|
|
96
90
|
}
|
|
@@ -26,8 +26,7 @@ export declare class MgSkipLinks {
|
|
|
26
26
|
**********/
|
|
27
27
|
/**
|
|
28
28
|
* Handle link click and emit go-to-anchor event
|
|
29
|
-
* @param
|
|
30
|
-
* @returns {void}
|
|
29
|
+
* @param event - mouse event
|
|
31
30
|
*/
|
|
32
31
|
private handleLinkCLick;
|
|
33
32
|
/*************
|
|
@@ -35,12 +34,11 @@ export declare class MgSkipLinks {
|
|
|
35
34
|
*************/
|
|
36
35
|
/**
|
|
37
36
|
* Check if props are well configured on init
|
|
38
|
-
* @returns {void}
|
|
39
37
|
*/
|
|
40
38
|
componentWillLoad(): void;
|
|
41
39
|
/**
|
|
42
40
|
* Render
|
|
43
|
-
* @returns
|
|
41
|
+
* @returns HTML Element
|
|
44
42
|
*/
|
|
45
43
|
render(): HTMLElement;
|
|
46
44
|
}
|
|
@@ -50,56 +50,54 @@ export declare class MgTabs {
|
|
|
50
50
|
/**
|
|
51
51
|
* Component classes
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
classCollection: ClassList;
|
|
54
54
|
/**
|
|
55
55
|
* Emited event when active tab change
|
|
56
56
|
*/
|
|
57
57
|
activeTabChange: EventEmitter<number>;
|
|
58
58
|
/**
|
|
59
59
|
* Method to know if given tab has the given status
|
|
60
|
-
* @param
|
|
61
|
-
* @param
|
|
62
|
-
* @returns
|
|
60
|
+
* @param tab - item tab key to set to ACTIVE status
|
|
61
|
+
* @param status - status to valide
|
|
62
|
+
* @returns status comparaison
|
|
63
63
|
*/
|
|
64
64
|
private tabHasStatus;
|
|
65
65
|
/**
|
|
66
66
|
* Method to get element id from index
|
|
67
|
-
* @param
|
|
68
|
-
* @param
|
|
69
|
-
* @returns
|
|
67
|
+
* @param element - to get id
|
|
68
|
+
* @param index - to generate id
|
|
69
|
+
* @returns generated element id
|
|
70
70
|
*/
|
|
71
71
|
private getElementId;
|
|
72
72
|
/**
|
|
73
73
|
* Method to get tab item index
|
|
74
|
-
* @param
|
|
75
|
-
* @returns
|
|
74
|
+
* @param index - to get
|
|
75
|
+
* @returns index
|
|
76
76
|
*/
|
|
77
77
|
private getTabItemIndex;
|
|
78
78
|
/**
|
|
79
79
|
* Method to get the active-tab value
|
|
80
|
-
* @returns
|
|
80
|
+
* @returns of the active-tab
|
|
81
81
|
*/
|
|
82
82
|
private getActiveTab;
|
|
83
83
|
/**
|
|
84
84
|
* Handle click events on tabs
|
|
85
|
-
* @param
|
|
85
|
+
* @param event - mouse event
|
|
86
86
|
*/
|
|
87
87
|
private handleClick;
|
|
88
88
|
/**
|
|
89
89
|
* get navigation button class from given status
|
|
90
|
-
* @param
|
|
91
|
-
* @returns
|
|
90
|
+
* @param status - button tab status
|
|
91
|
+
* @returns button class/selector variant
|
|
92
92
|
*/
|
|
93
93
|
private getNavigationButtonClass;
|
|
94
94
|
/**
|
|
95
95
|
* Handle keyboard event on tabs
|
|
96
|
-
* @param
|
|
97
|
-
* @returns {void}
|
|
96
|
+
* @param event - mouse event
|
|
98
97
|
*/
|
|
99
98
|
private handleKeydown;
|
|
100
99
|
/**
|
|
101
100
|
* Method to reset focus behavior
|
|
102
|
-
* @returns {void}
|
|
103
101
|
*/
|
|
104
102
|
private resetFocus;
|
|
105
103
|
/**
|
|
@@ -111,17 +109,15 @@ export declare class MgTabs {
|
|
|
111
109
|
*************/
|
|
112
110
|
/**
|
|
113
111
|
* Check if component props are well configured on init
|
|
114
|
-
* @returns {void}
|
|
115
112
|
*/
|
|
116
113
|
componentWillLoad(): void;
|
|
117
114
|
/**
|
|
118
115
|
* add listners
|
|
119
|
-
* @returns {void}
|
|
120
116
|
*/
|
|
121
117
|
componentDidLoad(): void;
|
|
122
118
|
/**
|
|
123
119
|
* Render
|
|
124
|
-
* @returns
|
|
120
|
+
* @returns HTML Element
|
|
125
121
|
*/
|
|
126
122
|
render(): HTMLElement;
|
|
127
123
|
}
|
|
@@ -26,7 +26,7 @@ import { TagVariantType } from "./components/atoms/mg-tag/mg-tag.conf";
|
|
|
26
26
|
export namespace Components {
|
|
27
27
|
interface MgActionMore {
|
|
28
28
|
/**
|
|
29
|
-
* Define button properties
|
|
29
|
+
* Define button properties
|
|
30
30
|
*/
|
|
31
31
|
"button": MgActionMoreButtonType;
|
|
32
32
|
/**
|
|
@@ -34,7 +34,7 @@ export namespace Components {
|
|
|
34
34
|
*/
|
|
35
35
|
"displayChevron": boolean;
|
|
36
36
|
/**
|
|
37
|
-
* Define displaied icon
|
|
37
|
+
* Define displaied icon
|
|
38
38
|
*/
|
|
39
39
|
"icon": MgActionMoreIconType;
|
|
40
40
|
/**
|
|
@@ -100,11 +100,11 @@ export namespace Components {
|
|
|
100
100
|
}
|
|
101
101
|
interface MgCard {
|
|
102
102
|
/**
|
|
103
|
-
* Define variant prop
|
|
103
|
+
* Define variant prop
|
|
104
104
|
*/
|
|
105
105
|
"variant": undefined | VariantType1;
|
|
106
106
|
/**
|
|
107
|
-
* Define variantStyle prop
|
|
107
|
+
* Define variantStyle prop
|
|
108
108
|
*/
|
|
109
109
|
"variantStyle": undefined | VariantStyleType;
|
|
110
110
|
}
|
|
@@ -153,7 +153,6 @@ export namespace Components {
|
|
|
153
153
|
"disabled": boolean;
|
|
154
154
|
/**
|
|
155
155
|
* Public method to display errors
|
|
156
|
-
* @returns
|
|
157
156
|
*/
|
|
158
157
|
"displayError": () => Promise<void>;
|
|
159
158
|
/**
|
|
@@ -216,7 +215,6 @@ export namespace Components {
|
|
|
216
215
|
"disabled": boolean;
|
|
217
216
|
/**
|
|
218
217
|
* Public method to display errors
|
|
219
|
-
* @returns
|
|
220
218
|
*/
|
|
221
219
|
"displayError": () => Promise<void>;
|
|
222
220
|
/**
|
|
@@ -279,7 +277,6 @@ export namespace Components {
|
|
|
279
277
|
"disabled": boolean;
|
|
280
278
|
/**
|
|
281
279
|
* Public method to display errors
|
|
282
|
-
* @returns
|
|
283
280
|
*/
|
|
284
281
|
"displayError": () => Promise<void>;
|
|
285
282
|
/**
|
|
@@ -354,7 +351,6 @@ export namespace Components {
|
|
|
354
351
|
"disabled": boolean;
|
|
355
352
|
/**
|
|
356
353
|
* Public method to display errors
|
|
357
|
-
* @returns
|
|
358
354
|
*/
|
|
359
355
|
"displayError": () => Promise<void>;
|
|
360
356
|
/**
|
|
@@ -437,7 +433,6 @@ export namespace Components {
|
|
|
437
433
|
"disabled": boolean;
|
|
438
434
|
/**
|
|
439
435
|
* Public method to display errors
|
|
440
|
-
* @returns
|
|
441
436
|
*/
|
|
442
437
|
"displayError": () => Promise<void>;
|
|
443
438
|
/**
|
|
@@ -504,7 +499,6 @@ export namespace Components {
|
|
|
504
499
|
"disabled": boolean;
|
|
505
500
|
/**
|
|
506
501
|
* Public method to display errors
|
|
507
|
-
* @returns
|
|
508
502
|
*/
|
|
509
503
|
"displayError": () => Promise<void>;
|
|
510
504
|
/**
|
|
@@ -571,7 +565,6 @@ export namespace Components {
|
|
|
571
565
|
"disabled": boolean;
|
|
572
566
|
/**
|
|
573
567
|
* Public method to display errors
|
|
574
|
-
* @returns
|
|
575
568
|
*/
|
|
576
569
|
"displayError": () => Promise<void>;
|
|
577
570
|
/**
|
|
@@ -654,7 +647,6 @@ export namespace Components {
|
|
|
654
647
|
"displayCharacterLeft": boolean;
|
|
655
648
|
/**
|
|
656
649
|
* Public method to display errors
|
|
657
|
-
* @returns
|
|
658
650
|
*/
|
|
659
651
|
"displayError": () => Promise<void>;
|
|
660
652
|
/**
|
|
@@ -719,7 +711,6 @@ export namespace Components {
|
|
|
719
711
|
"required": boolean;
|
|
720
712
|
/**
|
|
721
713
|
* Public method to play input focus
|
|
722
|
-
* @returns
|
|
723
714
|
*/
|
|
724
715
|
"setFocus": () => Promise<void>;
|
|
725
716
|
/**
|
|
@@ -750,7 +741,6 @@ export namespace Components {
|
|
|
750
741
|
"displayCharacterLeft": boolean;
|
|
751
742
|
/**
|
|
752
743
|
* Public method to display errors
|
|
753
|
-
* @returns
|
|
754
744
|
*/
|
|
755
745
|
"displayError": () => Promise<void>;
|
|
756
746
|
/**
|
|
@@ -867,7 +857,6 @@ export namespace Components {
|
|
|
867
857
|
"isOnOff": boolean;
|
|
868
858
|
/**
|
|
869
859
|
* Items are the possible options to select
|
|
870
|
-
* @returns
|
|
871
860
|
*/
|
|
872
861
|
"items": string[] | ToggleValue[];
|
|
873
862
|
/**
|
|
@@ -901,7 +890,7 @@ export namespace Components {
|
|
|
901
890
|
}
|
|
902
891
|
interface MgItemMore {
|
|
903
892
|
/**
|
|
904
|
-
* Define icon
|
|
893
|
+
* Define icon
|
|
905
894
|
*/
|
|
906
895
|
"icon": IconType;
|
|
907
896
|
/**
|
|
@@ -909,13 +898,13 @@ export namespace Components {
|
|
|
909
898
|
*/
|
|
910
899
|
"size": SizeType;
|
|
911
900
|
/**
|
|
912
|
-
* Define slot label element
|
|
901
|
+
* Define slot label element
|
|
913
902
|
*/
|
|
914
903
|
"slotlabel": SlotLabelType;
|
|
915
904
|
}
|
|
916
905
|
interface MgMenu {
|
|
917
906
|
/**
|
|
918
|
-
* Component display direction.
|
|
907
|
+
* Component display direction.
|
|
919
908
|
*/
|
|
920
909
|
"direction": Direction;
|
|
921
910
|
/**
|
|
@@ -927,13 +916,13 @@ export namespace Components {
|
|
|
927
916
|
*/
|
|
928
917
|
"label": string;
|
|
929
918
|
/**
|
|
930
|
-
* Define mg-menu size
|
|
919
|
+
* Define mg-menu size
|
|
931
920
|
*/
|
|
932
921
|
"size": MenuSizeType;
|
|
933
922
|
}
|
|
934
923
|
interface MgMenuItem {
|
|
935
924
|
/**
|
|
936
|
-
* Define menu-item content expanded.
|
|
925
|
+
* Define menu-item content expanded.
|
|
937
926
|
*/
|
|
938
927
|
"expanded": boolean;
|
|
939
928
|
/**
|
|
@@ -941,11 +930,11 @@ export namespace Components {
|
|
|
941
930
|
*/
|
|
942
931
|
"href": string;
|
|
943
932
|
/**
|
|
944
|
-
* Identifier is used to control mg-popover
|
|
933
|
+
* Identifier is used to control mg-popover
|
|
945
934
|
*/
|
|
946
935
|
"identifier": string;
|
|
947
936
|
/**
|
|
948
|
-
* Define menu-item status.
|
|
937
|
+
* Define menu-item status.
|
|
949
938
|
*/
|
|
950
939
|
"status": Status;
|
|
951
940
|
}
|
|
@@ -1443,7 +1432,7 @@ declare global {
|
|
|
1443
1432
|
declare namespace LocalJSX {
|
|
1444
1433
|
interface MgActionMore {
|
|
1445
1434
|
/**
|
|
1446
|
-
* Define button properties
|
|
1435
|
+
* Define button properties
|
|
1447
1436
|
*/
|
|
1448
1437
|
"button"?: MgActionMoreButtonType;
|
|
1449
1438
|
/**
|
|
@@ -1451,7 +1440,7 @@ declare namespace LocalJSX {
|
|
|
1451
1440
|
*/
|
|
1452
1441
|
"displayChevron"?: boolean;
|
|
1453
1442
|
/**
|
|
1454
|
-
* Define displaied icon
|
|
1443
|
+
* Define displaied icon
|
|
1455
1444
|
*/
|
|
1456
1445
|
"icon"?: MgActionMoreIconType;
|
|
1457
1446
|
/**
|
|
@@ -1521,11 +1510,11 @@ declare namespace LocalJSX {
|
|
|
1521
1510
|
}
|
|
1522
1511
|
interface MgCard {
|
|
1523
1512
|
/**
|
|
1524
|
-
* Define variant prop
|
|
1513
|
+
* Define variant prop
|
|
1525
1514
|
*/
|
|
1526
1515
|
"variant"?: undefined | VariantType1;
|
|
1527
1516
|
/**
|
|
1528
|
-
* Define variantStyle prop
|
|
1517
|
+
* Define variantStyle prop
|
|
1529
1518
|
*/
|
|
1530
1519
|
"variantStyle"?: undefined | VariantStyleType;
|
|
1531
1520
|
}
|
|
@@ -2314,7 +2303,6 @@ declare namespace LocalJSX {
|
|
|
2314
2303
|
"isOnOff"?: boolean;
|
|
2315
2304
|
/**
|
|
2316
2305
|
* Items are the possible options to select
|
|
2317
|
-
* @returns
|
|
2318
2306
|
*/
|
|
2319
2307
|
"items": string[] | ToggleValue[];
|
|
2320
2308
|
/**
|
|
@@ -2356,7 +2344,7 @@ declare namespace LocalJSX {
|
|
|
2356
2344
|
}
|
|
2357
2345
|
interface MgItemMore {
|
|
2358
2346
|
/**
|
|
2359
|
-
* Define icon
|
|
2347
|
+
* Define icon
|
|
2360
2348
|
*/
|
|
2361
2349
|
"icon"?: IconType;
|
|
2362
2350
|
/**
|
|
@@ -2364,13 +2352,13 @@ declare namespace LocalJSX {
|
|
|
2364
2352
|
*/
|
|
2365
2353
|
"size"?: SizeType;
|
|
2366
2354
|
/**
|
|
2367
|
-
* Define slot label element
|
|
2355
|
+
* Define slot label element
|
|
2368
2356
|
*/
|
|
2369
2357
|
"slotlabel"?: SlotLabelType;
|
|
2370
2358
|
}
|
|
2371
2359
|
interface MgMenu {
|
|
2372
2360
|
/**
|
|
2373
|
-
* Component display direction.
|
|
2361
|
+
* Component display direction.
|
|
2374
2362
|
*/
|
|
2375
2363
|
"direction"?: Direction;
|
|
2376
2364
|
/**
|
|
@@ -2382,13 +2370,13 @@ declare namespace LocalJSX {
|
|
|
2382
2370
|
*/
|
|
2383
2371
|
"label": string;
|
|
2384
2372
|
/**
|
|
2385
|
-
* Define mg-menu size
|
|
2373
|
+
* Define mg-menu size
|
|
2386
2374
|
*/
|
|
2387
2375
|
"size"?: MenuSizeType;
|
|
2388
2376
|
}
|
|
2389
2377
|
interface MgMenuItem {
|
|
2390
2378
|
/**
|
|
2391
|
-
* Define menu-item content expanded.
|
|
2379
|
+
* Define menu-item content expanded.
|
|
2392
2380
|
*/
|
|
2393
2381
|
"expanded"?: boolean;
|
|
2394
2382
|
/**
|
|
@@ -2396,7 +2384,7 @@ declare namespace LocalJSX {
|
|
|
2396
2384
|
*/
|
|
2397
2385
|
"href"?: string;
|
|
2398
2386
|
/**
|
|
2399
|
-
* Identifier is used to control mg-popover
|
|
2387
|
+
* Identifier is used to control mg-popover
|
|
2400
2388
|
*/
|
|
2401
2389
|
"identifier"?: string;
|
|
2402
2390
|
/**
|
|
@@ -2408,7 +2396,7 @@ declare namespace LocalJSX {
|
|
|
2408
2396
|
*/
|
|
2409
2397
|
"onStatus-change"?: (event: MgMenuItemCustomEvent<MgMenuItem['status']>) => void;
|
|
2410
2398
|
/**
|
|
2411
|
-
* Define menu-item status.
|
|
2399
|
+
* Define menu-item status.
|
|
2412
2400
|
*/
|
|
2413
2401
|
"status"?: Status;
|
|
2414
2402
|
}
|
|
@@ -126,8 +126,8 @@ declare const messages: {
|
|
|
126
126
|
};
|
|
127
127
|
/**
|
|
128
128
|
* Get Intl object
|
|
129
|
-
* @param
|
|
130
|
-
* @returns
|
|
129
|
+
* @param element - element we need to get the language
|
|
130
|
+
* @returns messages object
|
|
131
131
|
*/
|
|
132
132
|
export declare const initLocales: (element: HTMLElement) => {
|
|
133
133
|
locale: string;
|
|
@@ -15,7 +15,6 @@ export declare class OverflowBehavior {
|
|
|
15
15
|
**********/
|
|
16
16
|
/**
|
|
17
17
|
* Disconnect ResizeObserver
|
|
18
|
-
* @returns {void}
|
|
19
18
|
*/
|
|
20
19
|
disconnect: () => void;
|
|
21
20
|
/************
|
|
@@ -23,53 +22,48 @@ export declare class OverflowBehavior {
|
|
|
23
22
|
************/
|
|
24
23
|
/**
|
|
25
24
|
* run overflow behavior
|
|
26
|
-
* @param
|
|
27
|
-
* @returns {void}
|
|
25
|
+
* @param width - width of the container. Optional.
|
|
28
26
|
*/
|
|
29
27
|
private run;
|
|
30
28
|
/**
|
|
31
29
|
* Get interactive children filtred by authorized nodeName ['MG-MENU-ITEM', 'MG-BUTTON']
|
|
32
|
-
* @param
|
|
33
|
-
* @returns
|
|
30
|
+
* @param element - element to parse
|
|
31
|
+
* @returns children
|
|
34
32
|
*/
|
|
35
33
|
private getInteractiveItems;
|
|
36
34
|
/**
|
|
37
35
|
* Update displayed items in container from a given available space
|
|
38
|
-
* @param
|
|
39
|
-
* @returns {void}
|
|
36
|
+
* @param availableWidth - available width in container to display child items
|
|
40
37
|
*/
|
|
41
38
|
private updateDisplayedItems;
|
|
42
39
|
/**
|
|
43
40
|
* Utility method to know if item overflow partialy or totaly in the container
|
|
44
|
-
* @param
|
|
45
|
-
* @param
|
|
46
|
-
* @param
|
|
47
|
-
* @returns
|
|
41
|
+
* @param cumulateWidth - previous sibling elements cumulate width + item width
|
|
42
|
+
* @param item - item HTML element
|
|
43
|
+
* @param availableWidth - container available width
|
|
44
|
+
* @returns truthy if element is overflow
|
|
48
45
|
*/
|
|
49
46
|
private isOverflowElement;
|
|
50
47
|
/**
|
|
51
48
|
* Utility method to know if a given element is the 'MORE' element
|
|
52
|
-
* @param
|
|
53
|
-
* @returns
|
|
49
|
+
* @param element - element to match with 'MORE' element
|
|
50
|
+
* @returns truthy if element is the 'MORE' element
|
|
54
51
|
*/
|
|
55
52
|
private isMoreElement;
|
|
56
53
|
/**
|
|
57
54
|
* Toggle display item element
|
|
58
|
-
* @param
|
|
59
|
-
* @param
|
|
60
|
-
* @returns {void}
|
|
55
|
+
* @param item - item to control
|
|
56
|
+
* @param isHidden - is item hidden
|
|
61
57
|
*/
|
|
62
58
|
private toggleItem;
|
|
63
59
|
/**
|
|
64
60
|
* Toggle element's hidde attribute
|
|
65
|
-
* @param
|
|
66
|
-
* @param
|
|
67
|
-
* @returns {void}
|
|
61
|
+
* @param element - element to toggle
|
|
62
|
+
* @param isHidden - element is hidden
|
|
68
63
|
*/
|
|
69
64
|
private toggleElement;
|
|
70
65
|
/**
|
|
71
66
|
* Remove hidden attributes on all items
|
|
72
|
-
* @returns {void}
|
|
73
67
|
*/
|
|
74
68
|
private restoreItems;
|
|
75
69
|
}
|