@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.
- package/dist/cjs/{index-9e1091ab.js → index-03d2557d.js} +3 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mg-action-more_31.cjs.entry.js +444 -455
- package/dist/cjs/mg-components.cjs.js +2 -2
- package/dist/cjs/mg-item-more.cjs.entry.js +20 -29
- package/dist/cjs/{mg-menu.conf-1942ac70.js → mg-menu.conf-05ec32a3.js} +30 -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.css +2 -0
- 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 +20 -25
- 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.conf.js +4 -1
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.css +18 -1
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +126 -19
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.css +1 -1
- 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.css +1 -1
- 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.css +1 -1
- 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.css +1 -1
- 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.css +1 -1
- 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.css +1 -1
- 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.css +1 -1
- 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.css +1 -1
- 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.css +1 -0
- package/dist/collection/components/molecules/mg-message/mg-message.js +11 -14
- package/dist/collection/components/molecules/mg-modal/mg-modal.css +1 -0
- 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.css +1 -0
- package/dist/collection/components/molecules/mg-panel/mg-panel.js +6 -15
- package/dist/collection/components/molecules/mg-popover/mg-popover.css +2 -0
- package/dist/collection/components/molecules/mg-popover/mg-popover.js +16 -16
- 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/en/messages.json +7 -0
- package/dist/collection/locales/fr/messages.json +7 -0
- package/dist/collection/locales/index.js +2 -2
- package/dist/collection/styles/reset-mg-card-slotted-variables.scss +1 -0
- 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 +30 -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 +9 -11
- 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 +126 -21
- package/dist/components/mg-input-date.js +7 -9
- package/dist/components/mg-input-numeric.js +14 -19
- package/dist/components/mg-input-password.js +6 -7
- package/dist/components/mg-input-radio.js +10 -15
- package/dist/components/mg-input-select2.js +21 -29
- package/dist/components/mg-input-text2.js +15 -24
- package/dist/components/mg-input-textarea.js +13 -14
- package/dist/components/mg-input-title2.js +1 -2
- package/dist/components/mg-input-toggle.js +17 -20
- 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 +12 -15
- package/dist/components/mg-modal.js +8 -12
- package/dist/components/mg-pagination.js +11 -13
- package/dist/components/mg-panel.js +7 -16
- package/dist/components/mg-popover2.js +17 -17
- 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 +20 -25
- package/dist/esm/{index-3249671d.js → index-407d5211.js} +3 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mg-action-more_31.entry.js +444 -455
- package/dist/esm/mg-components.js +3 -3
- package/dist/esm/mg-item-more.entry.js +20 -29
- package/dist/esm/{mg-menu.conf-2cc1bb67.js → mg-menu.conf-c8aa56ce.js} +30 -16
- package/dist/mg-components/locales/en/messages.json +7 -0
- package/dist/mg-components/locales/fr/messages.json +7 -0
- package/dist/mg-components/mg-components.css +1 -1
- package/dist/mg-components/mg-components.esm.js +1 -1
- package/dist/mg-components/p-3bf533f7.js +2 -0
- package/dist/mg-components/p-51c2def3.entry.js +1 -0
- package/dist/mg-components/p-b14be68b.js +1 -0
- package/dist/mg-components/{p-a56a3157.entry.js → p-d3ed97d3.entry.js} +1 -1
- package/dist/mg-components/styles/reset-mg-card-slotted-variables.scss +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 +15 -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.conf.d.ts +8 -0
- package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.d.ts +40 -7
- 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 +7 -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 +31 -35
- package/dist/types/locales/index.d.ts +16 -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 +4 -4
- package/dist/mg-components/p-73156ac9.js +0 -1
- package/dist/mg-components/p-8fbc0d87.js +0 -2
- package/dist/mg-components/p-eb32bb18.entry.js +0 -1
|
@@ -19,12 +19,11 @@ export declare class MgIllustratedMessage {
|
|
|
19
19
|
*************/
|
|
20
20
|
/**
|
|
21
21
|
* Check if component props are well configured on init
|
|
22
|
-
* @returns {void}
|
|
23
22
|
*/
|
|
24
23
|
componentDidLoad(): void;
|
|
25
24
|
/**
|
|
26
25
|
* Render
|
|
27
|
-
* @returns
|
|
26
|
+
* @returns HTML Element
|
|
28
27
|
*/
|
|
29
28
|
render(): HTMLElement;
|
|
30
29
|
}
|
|
@@ -16,13 +16,11 @@ export declare class MgItemMore {
|
|
|
16
16
|
element: HTMLMgItemMoreElement;
|
|
17
17
|
/**
|
|
18
18
|
* Define icon
|
|
19
|
-
* Default: {icon: 'ellipsis-vertical'}
|
|
20
19
|
*/
|
|
21
20
|
icon: IconType;
|
|
22
21
|
validateIcon(newValue: MgItemMore['icon']): void;
|
|
23
22
|
/**
|
|
24
23
|
* Define slot label element
|
|
25
|
-
* Default: {display: false}
|
|
26
24
|
*/
|
|
27
25
|
slotlabel: SlotLabelType;
|
|
28
26
|
validateSlotLabel(newValue: MgItemMore['slotlabel']): void;
|
|
@@ -40,7 +38,7 @@ export declare class MgItemMore {
|
|
|
40
38
|
***********/
|
|
41
39
|
/**
|
|
42
40
|
* render mg-item-more overflow element
|
|
43
|
-
* @returns
|
|
41
|
+
* @returns mg-item-more element
|
|
44
42
|
*/
|
|
45
43
|
private renderMgMenuItemOverflowElement;
|
|
46
44
|
/*************
|
|
@@ -48,22 +46,19 @@ export declare class MgItemMore {
|
|
|
48
46
|
*************/
|
|
49
47
|
/**
|
|
50
48
|
* Disconnect overflow ResizeObserver
|
|
51
|
-
* @returns {void} run overflow resize obeserver disconnexion
|
|
52
49
|
*/
|
|
53
50
|
disconnectedCallback(): void;
|
|
54
51
|
/**
|
|
55
52
|
* Set variables and validate props
|
|
56
|
-
* @returns {void}
|
|
57
53
|
*/
|
|
58
54
|
componentWillLoad(): void;
|
|
59
55
|
/**
|
|
60
56
|
* Add overflow behavior
|
|
61
|
-
* @returns {void}
|
|
62
57
|
*/
|
|
63
58
|
componentDidLoad(): void;
|
|
64
59
|
/**
|
|
65
60
|
* Render
|
|
66
|
-
* @returns
|
|
61
|
+
* @returns HTML Element
|
|
67
62
|
*/
|
|
68
63
|
render(): HTMLElement;
|
|
69
64
|
}
|
|
@@ -48,7 +48,7 @@ export declare class MgMessage {
|
|
|
48
48
|
/**
|
|
49
49
|
* Component classes
|
|
50
50
|
*/
|
|
51
|
-
|
|
51
|
+
classCollection: ClassList;
|
|
52
52
|
/**
|
|
53
53
|
* Define if component is using actions slot
|
|
54
54
|
*/
|
|
@@ -63,18 +63,15 @@ export declare class MgMessage {
|
|
|
63
63
|
componentHide: EventEmitter<string>;
|
|
64
64
|
/**
|
|
65
65
|
* Set timer
|
|
66
|
-
* @returns {void}
|
|
67
66
|
*/
|
|
68
67
|
private setTimer;
|
|
69
68
|
/**
|
|
70
69
|
* Clear timer
|
|
71
|
-
* @returns {void}
|
|
72
70
|
*/
|
|
73
71
|
private clearTimer;
|
|
74
72
|
/**
|
|
75
73
|
* Event to add on element
|
|
76
|
-
* @param
|
|
77
|
-
* @returns {void}
|
|
74
|
+
* @param event - event
|
|
78
75
|
*/
|
|
79
76
|
private timerEvents;
|
|
80
77
|
/**
|
|
@@ -83,7 +80,7 @@ export declare class MgMessage {
|
|
|
83
80
|
private handleClose;
|
|
84
81
|
/**
|
|
85
82
|
* Get icon corresponding to variant
|
|
86
|
-
* @returns
|
|
83
|
+
* @returns icon
|
|
87
84
|
*/
|
|
88
85
|
private getIcon;
|
|
89
86
|
/*************
|
|
@@ -95,7 +92,7 @@ export declare class MgMessage {
|
|
|
95
92
|
componentWillLoad(): void;
|
|
96
93
|
/**
|
|
97
94
|
* Render
|
|
98
|
-
* @returns
|
|
95
|
+
* @returns HTML Element
|
|
99
96
|
*/
|
|
100
97
|
render(): HTMLElement;
|
|
101
98
|
}
|
|
@@ -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,48 +49,46 @@ 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
|
/*************
|
|
79
75
|
* Lifecycle *
|
|
80
76
|
*************/
|
|
77
|
+
/**
|
|
78
|
+
* update popper position after props change on component did update hook to benefit from render ended
|
|
79
|
+
*/
|
|
80
|
+
componentDidUpdate(): void;
|
|
81
81
|
/**
|
|
82
82
|
* Check if component props are well configured on init
|
|
83
|
-
* @returns {void} timeout
|
|
84
83
|
*/
|
|
85
84
|
componentWillLoad(): void;
|
|
86
85
|
/**
|
|
87
86
|
* Check if component props are well configured on init
|
|
88
|
-
* @returns {void}
|
|
89
87
|
*/
|
|
90
88
|
componentDidLoad(): void;
|
|
91
89
|
/**
|
|
92
90
|
* Render
|
|
93
|
-
* @returns
|
|
91
|
+
* @returns HTML Element
|
|
94
92
|
*/
|
|
95
93
|
render(): HTMLElement;
|
|
96
94
|
}
|
|
@@ -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
|
}
|