@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
|
@@ -17,7 +17,7 @@ const patchBrowser = () => {
|
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
patchBrowser().then(options => {
|
|
20
|
-
return index.bootstrapLazy([["mg-action-more_31.cjs",[[1,"mg-action-more",{"icon":[16],"button":[16],"items":[16],"displayChevron":[4,"display-chevron"],"expanded":[32]}],[1,"mg-panel",{"identifier":[1],"panelTitle":[1025,"panel-title"],"titlePattern":[
|
|
20
|
+
return index.bootstrapLazy([["mg-action-more_31.cjs",[[1,"mg-action-more",{"icon":[16],"button":[16],"items":[16],"displayChevron":[4,"display-chevron"],"expanded":[32]}],[1,"mg-panel",{"identifier":[1],"panelTitle":[1025,"panel-title"],"titlePattern":[1,"title-pattern"],"titlePatternErrorMessage":[1,"title-pattern-error-message"],"expanded":[1028],"expandToggleDisabled":[4,"expand-toggle-disabled"],"titleEditable":[4,"title-editable"],"classList":[32],"isEditing":[32],"updatedPanelTitle":[32]}],[1,"mg-pagination",{"identifier":[1],"label":[1025],"hideNavigationLabels":[4,"hide-navigation-labels"],"totalPages":[2,"total-pages"],"currentPage":[1538,"current-page"]}],[1,"mg-input-textarea",{"value":[1537],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1],"maxlength":[2],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[8,"mg-width"],"pattern":[1],"patternErrorMessage":[1,"pattern-error-message"],"rows":[2],"tooltip":[1],"displayCharacterLeft":[4,"display-character-left"],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"resizable":[1],"classList":[32],"errorMessage":[32],"displayError":[64]}],[1,"mg-input-checkbox",{"value":[1040],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"inputVerticalList":[4,"input-vertical-list"],"required":[4],"readonly":[4],"disabled":[4],"tooltip":[1],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classList":[32],"errorMessage":[32],"checkboxItems":[32],"displayError":[64]}],[1,"mg-input-date",{"value":[1537],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"required":[4],"readonly":[4],"disabled":[4],"tooltip":[1],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"min":[1],"max":[1],"classList":[32],"errorMessage":[32],"displayError":[64]}],[1,"mg-input-numeric",{"value":[1537],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[8,"mg-width"],"tooltip":[1],"helpText":[1,"help-text"],"type":[1],"currency":[1],"max":[2],"min":[2],"integerLength":[2,"integer-length"],"decimalLength":[2,"decimal-length"],"valid":[1028],"invalid":[1028],"classList":[32],"errorMessage":[32],"hasFocus":[32],"displayError":[64]}],[1,"mg-input-password",{"value":[1537],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[8,"mg-width"],"tooltip":[1],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classList":[32],"errorMessage":[32],"displayError":[64]}],[1,"mg-input-radio",{"value":[1032],"items":[16],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"inputVerticalList":[4,"input-vertical-list"],"required":[4],"readonly":[4],"disabled":[4],"tooltip":[1],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classList":[32],"errorMessage":[32],"options":[32],"displayError":[64]}],[1,"mg-input-toggle",{"value":[1032],"items":[16],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"isOnOff":[4,"is-on-off"],"isIcon":[4,"is-icon"],"readonly":[4],"disabled":[4],"tooltip":[1],"helpText":[1,"help-text"],"classList":[32],"options":[32],"checked":[32]}],[1,"mg-message",{"identifier":[1],"delay":[2],"variant":[1],"closeButton":[1028,"close-button"],"hide":[1028],"classList":[32],"hasActions":[32]}],[1,"mg-modal",{"identifier":[1],"modalTitle":[1,"modal-title"],"closeButton":[4,"close-button"],"hide":[1028],"hasActions":[32],"hasContent":[32],"classList":[32]},[[8,"keydown","handleKeyDown"]]],[1,"mg-tabs",{"identifier":[1],"label":[1],"size":[1],"items":[16],"activeTab":[1538,"active-tab"],"tabs":[32],"classList":[32]}],[1,"mg-details",{"toggleClosed":[1,"toggle-closed"],"toggleOpened":[1,"toggle-opened"],"hideSummary":[4,"hide-summary"],"expanded":[1028]}],[1,"mg-divider",{"size":[1]}],[1,"mg-form",{"identifier":[1],"name":[1],"readonly":[4],"disabled":[4],"valid":[1028],"invalid":[1028],"classList":[32],"requiredMessage":[32],"displayError":[64]}],[1,"mg-illustrated-message",{"size":[1],"direction":[1]}],[1,"mg-skip-links",{"links":[16]}],[1,"mg-tag",{"variant":[1],"outline":[4],"soft":[4],"classList":[32]}],[1,"mg-input-text",{"value":[1537],"identifier":[1],"name":[1],"label":[1],"type":[1],"icon":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1],"maxlength":[2],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[8,"mg-width"],"pattern":[1],"patternErrorMessage":[1,"pattern-error-message"],"tooltip":[1],"displayCharacterLeft":[4,"display-character-left"],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classList":[32],"errorMessage":[32],"setFocus":[64],"displayError":[64]}],[1,"mg-input-select",{"value":[1032],"items":[16],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1025],"placeholderHide":[4,"placeholder-hide"],"placeholderDisabled":[4,"placeholder-disabled"],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[8,"mg-width"],"tooltip":[1],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classList":[32],"errorMessage":[32],"options":[32],"valueExist":[32],"readonlyValue":[32],"displayError":[64]}],[1,"mg-menu-item",{"identifier":[1],"href":[1],"status":[1537],"expanded":[1028],"size":[32],"navigationButtonClassList":[32],"direction":[32],"isInMainMenu":[32],"isItemMore":[32],"hasChildren":[32],"displayNotificationBadge":[32]}],[1,"mg-menu",{"label":[1],"direction":[513],"itemmore":[16],"size":[1],"isChildMenu":[32]}],[1,"mg-popover",{"identifier":[1],"placement":[1],"arrowHide":[4,"arrow-hide"],"closeButton":[4,"close-button"],"display":[1028],"disabled":[4],"classList":[32]}],[2,"mg-character-left",{"identifier":[1],"characters":[1],"maxlength":[2]}],[1,"mg-badge",{"value":[8],"label":[1],"variant":[1],"outline":[4],"classList":[32]}],[1,"mg-card",{"variant":[1],"variantStyle":[1025,"variant-style"],"classList":[32]}],[1,"mg-button",{"variant":[1],"identifier":[1],"label":[1],"type":[1],"fullWidth":[4,"full-width"],"form":[1],"disabled":[1028],"isIcon":[4,"is-icon"],"disableOnClick":[4,"disable-on-click"],"loading":[32],"classList":[32]}],[6,"mg-input-title",{"identifier":[1],"required":[4],"isLegend":[4,"is-legend"],"tagName":[32]}],[1,"mg-tooltip",{"identifier":[1],"message":[1],"placement":[1],"display":[1028],"disabled":[4]}],[1,"mg-icon",{"icon":[1],"size":[1],"variant":[1],"variantStyle":[1025,"variant-style"],"spin":[4],"classList":[32]}]]],["mg-item-more.cjs",[[1,"mg-item-more",{"icon":[16],"slotlabel":[16],"size":[1],"parentMenu":[32]}]]]], options);
|
|
21
21
|
});
|
|
22
22
|
|
|
23
23
|
exports.setNonce = index.setNonce;
|
|
@@ -3,11 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-9e1091ab.js');
|
|
6
|
-
const mgMenu_conf = require('./mg-menu.conf-
|
|
6
|
+
const mgMenu_conf = require('./mg-menu.conf-1942ac70.js');
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* MgItemMore type guard
|
|
10
|
-
*
|
|
11
10
|
* @param {HTMLElement} element element to control type
|
|
12
11
|
* @returns {boolean} truthy if element is mg-item-more
|
|
13
12
|
*/
|
|
@@ -26,7 +25,6 @@ class OverflowBehavior {
|
|
|
26
25
|
**********/
|
|
27
26
|
/**
|
|
28
27
|
* Disconnect ResizeObserver
|
|
29
|
-
*
|
|
30
28
|
* @returns {void}
|
|
31
29
|
*/
|
|
32
30
|
this.disconnect = () => {
|
|
@@ -37,7 +35,6 @@ class OverflowBehavior {
|
|
|
37
35
|
************/
|
|
38
36
|
/**
|
|
39
37
|
* run overflow behavior
|
|
40
|
-
*
|
|
41
38
|
* @param {number} width width of the container. Optional.
|
|
42
39
|
* @returns {void}
|
|
43
40
|
*/
|
|
@@ -62,14 +59,12 @@ class OverflowBehavior {
|
|
|
62
59
|
};
|
|
63
60
|
/**
|
|
64
61
|
* Get interactive children filtred by authorized nodeName ['MG-MENU-ITEM', 'MG-BUTTON']
|
|
65
|
-
*
|
|
66
62
|
* @param {Element} element element to parse
|
|
67
63
|
* @returns {Element[]} children
|
|
68
64
|
*/
|
|
69
65
|
this.getInteractiveItems = (element) => { var _a; return (((_a = element.children) === null || _a === void 0 ? void 0 : _a.length) > 0 ? Array.from(element.children) : []).filter(element => ['MG-MENU-ITEM', 'MG-BUTTON'].includes(element.nodeName)); };
|
|
70
66
|
/**
|
|
71
67
|
* Update displayed items in container from a given available space
|
|
72
|
-
*
|
|
73
68
|
* @param {number} availableWidth available width in container to display child items
|
|
74
69
|
* @returns {void}
|
|
75
70
|
*/
|
|
@@ -90,7 +85,6 @@ class OverflowBehavior {
|
|
|
90
85
|
};
|
|
91
86
|
/**
|
|
92
87
|
* Utility method to know if item overflow partialy or totaly in the container
|
|
93
|
-
*
|
|
94
88
|
* @param {number} cumulateWidth previous sibling elements cumulate width + item width
|
|
95
89
|
* @param {HTMLElement} item item HTML element
|
|
96
90
|
* @param {number} availableWidth container available width
|
|
@@ -106,14 +100,12 @@ class OverflowBehavior {
|
|
|
106
100
|
};
|
|
107
101
|
/**
|
|
108
102
|
* Utility method to know if a given element is the 'MORE' element
|
|
109
|
-
*
|
|
110
103
|
* @param {Element} element element to match with 'MORE' element
|
|
111
104
|
* @returns {boolean} truthy if element is the 'MORE' element
|
|
112
105
|
*/
|
|
113
106
|
this.isMoreElement = (element) => element.nodeName === 'MG-ITEM-MORE';
|
|
114
107
|
/**
|
|
115
108
|
* Toggle display item element
|
|
116
|
-
*
|
|
117
109
|
* @param {HTMLElement} item item to control
|
|
118
110
|
* @param {boolean} isHidden is item hidden
|
|
119
111
|
* @returns {void}
|
|
@@ -129,7 +121,6 @@ class OverflowBehavior {
|
|
|
129
121
|
};
|
|
130
122
|
/**
|
|
131
123
|
* Toggle element's hidde attribute
|
|
132
|
-
*
|
|
133
124
|
* @param {Element} element element to toggle
|
|
134
125
|
* @param {boolean} isHidden element is hidden
|
|
135
126
|
* @returns {void}
|
|
@@ -142,7 +133,6 @@ class OverflowBehavior {
|
|
|
142
133
|
};
|
|
143
134
|
/**
|
|
144
135
|
* Remove hidden attributes on all items
|
|
145
|
-
*
|
|
146
136
|
* @returns {void}
|
|
147
137
|
*/
|
|
148
138
|
this.restoreItems = () => {
|
|
@@ -175,7 +165,6 @@ const MgItemMore = class {
|
|
|
175
165
|
***********/
|
|
176
166
|
/**
|
|
177
167
|
* render mg-item-more overflow element
|
|
178
|
-
*
|
|
179
168
|
* @returns {HTMLMgItemMoreElement} mg-item-more element
|
|
180
169
|
*/
|
|
181
170
|
this.renderMgMenuItemOverflowElement = () => {
|
|
@@ -225,7 +214,6 @@ const MgItemMore = class {
|
|
|
225
214
|
*************/
|
|
226
215
|
/**
|
|
227
216
|
* Disconnect overflow ResizeObserver
|
|
228
|
-
*
|
|
229
217
|
* @returns {void} run overflow resize obeserver disconnexion
|
|
230
218
|
*/
|
|
231
219
|
disconnectedCallback() {
|
|
@@ -233,7 +221,6 @@ const MgItemMore = class {
|
|
|
233
221
|
}
|
|
234
222
|
/**
|
|
235
223
|
* Set variables and validate props
|
|
236
|
-
*
|
|
237
224
|
* @returns {void}
|
|
238
225
|
*/
|
|
239
226
|
componentWillLoad() {
|
|
@@ -248,7 +235,6 @@ const MgItemMore = class {
|
|
|
248
235
|
}
|
|
249
236
|
/**
|
|
250
237
|
* Add overflow behavior
|
|
251
|
-
*
|
|
252
238
|
* @returns {void}
|
|
253
239
|
*/
|
|
254
240
|
componentDidLoad() {
|
|
@@ -256,7 +242,6 @@ const MgItemMore = class {
|
|
|
256
242
|
}
|
|
257
243
|
/**
|
|
258
244
|
* Render
|
|
259
|
-
*
|
|
260
245
|
* @returns {HTMLElement} HTML Element
|
|
261
246
|
*/
|
|
262
247
|
render() {
|
|
@@ -152,7 +152,6 @@ const fr = {
|
|
|
152
152
|
|
|
153
153
|
/**
|
|
154
154
|
* Format number to the locale currency
|
|
155
|
-
*
|
|
156
155
|
* @param {number} number number to format
|
|
157
156
|
* @param {string} locale locale to apply
|
|
158
157
|
* @param {string} currency currency to apply
|
|
@@ -163,7 +162,6 @@ const localeCurrency = (number, locale, currency) => {
|
|
|
163
162
|
};
|
|
164
163
|
/**
|
|
165
164
|
* Format number to locale
|
|
166
|
-
*
|
|
167
165
|
* @param {number} number number to format
|
|
168
166
|
* @param {string} locale locale to apply
|
|
169
167
|
* @returns {string} formatted number
|
|
@@ -177,7 +175,6 @@ const localeNumber = (number, locale) => {
|
|
|
177
175
|
const dateRegExp = /^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/;
|
|
178
176
|
/**
|
|
179
177
|
* Locale date format
|
|
180
|
-
*
|
|
181
178
|
* @param {string} date date to format
|
|
182
179
|
* @param {string} locale locale to apply
|
|
183
180
|
* @returns {string} formatted date
|
|
@@ -191,7 +188,6 @@ const localeDate = (date, locale) => {
|
|
|
191
188
|
/**
|
|
192
189
|
* Get locale and messages
|
|
193
190
|
* We load the defined locale but for now we only support the first subtag for messages
|
|
194
|
-
*
|
|
195
191
|
* @param {HTMLElement} element element we need to get the language
|
|
196
192
|
* @param {unknown} messages messages to use
|
|
197
193
|
* @param {string} defaultLocale default messages locale
|
|
@@ -215,7 +211,6 @@ const defaultLocale = 'en';
|
|
|
215
211
|
const messages = { en, fr };
|
|
216
212
|
/**
|
|
217
213
|
* Get Intl object
|
|
218
|
-
*
|
|
219
214
|
* @param {HTMLElement} element element we need to get the language
|
|
220
215
|
* @returns {{ locale: string; messages: Record<string, unknown> }} messages object
|
|
221
216
|
*/
|
|
@@ -43,7 +43,6 @@ export class MgBadge {
|
|
|
43
43
|
}
|
|
44
44
|
/**
|
|
45
45
|
* Check if props are well configured on init
|
|
46
|
-
*
|
|
47
46
|
* @returns {void}
|
|
48
47
|
*/
|
|
49
48
|
componentWillLoad() {
|
|
@@ -54,7 +53,6 @@ export class MgBadge {
|
|
|
54
53
|
}
|
|
55
54
|
/**
|
|
56
55
|
* Render
|
|
57
|
-
*
|
|
58
56
|
* @returns {HTMLElement} HTML Element
|
|
59
57
|
*/
|
|
60
58
|
render() {
|
|
@@ -76,7 +74,7 @@ export class MgBadge {
|
|
|
76
74
|
return {
|
|
77
75
|
"value": {
|
|
78
76
|
"type": "any",
|
|
79
|
-
"mutable":
|
|
77
|
+
"mutable": false,
|
|
80
78
|
"complexType": {
|
|
81
79
|
"original": "string | number",
|
|
82
80
|
"resolved": "number | string",
|
|
@@ -12,7 +12,6 @@ export class MgButton {
|
|
|
12
12
|
this.classFullWidth = 'mg-button--full-width';
|
|
13
13
|
/**
|
|
14
14
|
* Trigger actions onClick event
|
|
15
|
-
*
|
|
16
15
|
* @param {MouseEvent} event click event
|
|
17
16
|
* @returns {void}
|
|
18
17
|
*/
|
|
@@ -27,7 +26,6 @@ export class MgButton {
|
|
|
27
26
|
};
|
|
28
27
|
/**
|
|
29
28
|
* Handle onKeydown event
|
|
30
|
-
*
|
|
31
29
|
* @param {KeyboardEvent} event keyboard event
|
|
32
30
|
* @returns {void}
|
|
33
31
|
*/
|
|
@@ -42,7 +40,6 @@ export class MgButton {
|
|
|
42
40
|
};
|
|
43
41
|
/**
|
|
44
42
|
* Handle onKeyup event
|
|
45
|
-
*
|
|
46
43
|
* @param {KeyboardEvent} event keyboard event
|
|
47
44
|
* @returns {void}
|
|
48
45
|
*/
|
|
@@ -115,7 +112,6 @@ export class MgButton {
|
|
|
115
112
|
}
|
|
116
113
|
/**
|
|
117
114
|
* Check if props are well configured on init
|
|
118
|
-
*
|
|
119
115
|
* @returns {void}
|
|
120
116
|
*/
|
|
121
117
|
componentWillLoad() {
|
|
@@ -133,7 +129,6 @@ export class MgButton {
|
|
|
133
129
|
}
|
|
134
130
|
/**
|
|
135
131
|
* Render component
|
|
136
|
-
*
|
|
137
132
|
* @returns {HTMLElement} html element
|
|
138
133
|
*/
|
|
139
134
|
render() {
|
|
@@ -234,7 +229,7 @@ export class MgButton {
|
|
|
234
229
|
},
|
|
235
230
|
"fullWidth": {
|
|
236
231
|
"type": "boolean",
|
|
237
|
-
"mutable":
|
|
232
|
+
"mutable": false,
|
|
238
233
|
"complexType": {
|
|
239
234
|
"original": "boolean",
|
|
240
235
|
"resolved": "boolean",
|
|
@@ -252,7 +247,7 @@ export class MgButton {
|
|
|
252
247
|
},
|
|
253
248
|
"form": {
|
|
254
249
|
"type": "string",
|
|
255
|
-
"mutable":
|
|
250
|
+
"mutable": false,
|
|
256
251
|
"complexType": {
|
|
257
252
|
"original": "string",
|
|
258
253
|
"resolved": "string",
|
|
@@ -8,6 +8,15 @@ export class MgCard {
|
|
|
8
8
|
*************/
|
|
9
9
|
this.name = 'mg-card';
|
|
10
10
|
this.baseClass = this.name;
|
|
11
|
+
/**
|
|
12
|
+
* Methode to set default varianStyle props
|
|
13
|
+
* needeed has stencil doesn't know that props is mutated when updated in prop watcher
|
|
14
|
+
* @returns {void}
|
|
15
|
+
*/
|
|
16
|
+
this.setDefaultVariantStyle = () => {
|
|
17
|
+
if (this.variantStyle === undefined)
|
|
18
|
+
this.variantStyle = 'bar-left';
|
|
19
|
+
};
|
|
11
20
|
this.variant = undefined;
|
|
12
21
|
this.variantStyle = undefined;
|
|
13
22
|
this.classList = new ClassList([this.baseClass]);
|
|
@@ -16,8 +25,7 @@ export class MgCard {
|
|
|
16
25
|
if (newValue && !variants.includes(newValue))
|
|
17
26
|
throw new Error(`<${this.name}> prop "variant" must match VariantType type.`);
|
|
18
27
|
if (Boolean(newValue)) {
|
|
19
|
-
|
|
20
|
-
this.variantStyle = 'bar-left';
|
|
28
|
+
this.setDefaultVariantStyle();
|
|
21
29
|
this.classList.add(`${this.baseClass}--${newValue}`);
|
|
22
30
|
}
|
|
23
31
|
if (Boolean(oldValue))
|
|
@@ -33,9 +41,11 @@ export class MgCard {
|
|
|
33
41
|
if (Boolean(oldValue))
|
|
34
42
|
this.classList.delete(`${this.baseClass}--${oldValue}`);
|
|
35
43
|
}
|
|
44
|
+
/*************
|
|
45
|
+
* Lifecycle *
|
|
46
|
+
*************/
|
|
36
47
|
/**
|
|
37
48
|
* Check if props are well configured on init
|
|
38
|
-
*
|
|
39
49
|
* @returns {void}
|
|
40
50
|
*/
|
|
41
51
|
componentWillLoad() {
|
|
@@ -44,7 +54,6 @@ export class MgCard {
|
|
|
44
54
|
}
|
|
45
55
|
/**
|
|
46
56
|
* Render
|
|
47
|
-
*
|
|
48
57
|
* @returns {HTMLElement} HTML Element
|
|
49
58
|
*/
|
|
50
59
|
render() {
|
|
@@ -16,7 +16,6 @@ export class MgCharacterLeft {
|
|
|
16
16
|
*************/
|
|
17
17
|
/**
|
|
18
18
|
* Check if props are well configured on init
|
|
19
|
-
*
|
|
20
19
|
* @returns {void}
|
|
21
20
|
*/
|
|
22
21
|
componentWillLoad() {
|
|
@@ -25,7 +24,6 @@ export class MgCharacterLeft {
|
|
|
25
24
|
}
|
|
26
25
|
/**
|
|
27
26
|
* Render component
|
|
28
|
-
*
|
|
29
27
|
* @returns {HTMLElement} HTML Element
|
|
30
28
|
*/
|
|
31
29
|
render() {
|
|
@@ -5,10 +5,18 @@ export class MgIcon {
|
|
|
5
5
|
constructor() {
|
|
6
6
|
/**
|
|
7
7
|
* getIcon
|
|
8
|
-
*
|
|
9
8
|
* @returns {HTMLElement} icon html
|
|
10
9
|
*/
|
|
11
10
|
this.getIcon = () => icons[this.icon]();
|
|
11
|
+
/**
|
|
12
|
+
* Method to set default varianStyle props
|
|
13
|
+
* needeed has stencil doesn't know that props is mutated when updated in prop watcher
|
|
14
|
+
* @returns {void}
|
|
15
|
+
*/
|
|
16
|
+
this.setDefaultVariantStyle = () => {
|
|
17
|
+
if (this.variantStyle === undefined)
|
|
18
|
+
this.variantStyle = 'background';
|
|
19
|
+
};
|
|
12
20
|
this.icon = undefined;
|
|
13
21
|
this.size = 'regular';
|
|
14
22
|
this.variant = undefined;
|
|
@@ -39,8 +47,7 @@ export class MgIcon {
|
|
|
39
47
|
if (!variants.includes(newValue))
|
|
40
48
|
throw new Error(`<mg-icon> prop "variant" must be one of: ${variants.join(', ')}`);
|
|
41
49
|
else {
|
|
42
|
-
|
|
43
|
-
this.variantStyle = 'background';
|
|
50
|
+
this.setDefaultVariantStyle();
|
|
44
51
|
if (oldValue !== undefined)
|
|
45
52
|
this.classList.delete(`mg-icon--variant-${oldValue}`);
|
|
46
53
|
this.classList.add(`mg-icon--variant-${newValue}`);
|
|
@@ -70,7 +77,6 @@ export class MgIcon {
|
|
|
70
77
|
}
|
|
71
78
|
/**
|
|
72
79
|
* Check if props are well configured on init
|
|
73
|
-
*
|
|
74
80
|
* @returns {void}
|
|
75
81
|
*/
|
|
76
82
|
componentWillLoad() {
|
|
@@ -82,7 +88,6 @@ export class MgIcon {
|
|
|
82
88
|
}
|
|
83
89
|
/**
|
|
84
90
|
* Render component
|
|
85
|
-
*
|
|
86
91
|
* @returns {HTMLElement} HTML Element
|
|
87
92
|
*/
|
|
88
93
|
render() {
|
|
@@ -19,7 +19,6 @@ export class MgInputTitle {
|
|
|
19
19
|
*************/
|
|
20
20
|
/**
|
|
21
21
|
* Init tag name
|
|
22
|
-
*
|
|
23
22
|
* @returns {void}
|
|
24
23
|
*/
|
|
25
24
|
componentWillLoad() {
|
|
@@ -28,7 +27,6 @@ export class MgInputTitle {
|
|
|
28
27
|
}
|
|
29
28
|
/**
|
|
30
29
|
* Render
|
|
31
|
-
*
|
|
32
30
|
* @returns {HTMLElement} HTML Element
|
|
33
31
|
*/
|
|
34
32
|
render() {
|
|
@@ -46,7 +46,6 @@ export class MgTag {
|
|
|
46
46
|
*************/
|
|
47
47
|
/**
|
|
48
48
|
* Validate the given textContent
|
|
49
|
-
*
|
|
50
49
|
* @param {string} textContent html element textContent property
|
|
51
50
|
* @returns {void}
|
|
52
51
|
*/
|
|
@@ -59,7 +58,6 @@ export class MgTag {
|
|
|
59
58
|
*************/
|
|
60
59
|
/**
|
|
61
60
|
* Check if props are well configured on init
|
|
62
|
-
*
|
|
63
61
|
* @returns {void}
|
|
64
62
|
*/
|
|
65
63
|
componentWillLoad() {
|
|
@@ -70,7 +68,6 @@ export class MgTag {
|
|
|
70
68
|
}
|
|
71
69
|
/**
|
|
72
70
|
* Render
|
|
73
|
-
*
|
|
74
71
|
* @returns {HTMLElement} HTML Element
|
|
75
72
|
*/
|
|
76
73
|
render() {
|
|
@@ -6,7 +6,6 @@ export class MgTooltip {
|
|
|
6
6
|
constructor() {
|
|
7
7
|
/**
|
|
8
8
|
* Show tooltip
|
|
9
|
-
*
|
|
10
9
|
* @returns {void}
|
|
11
10
|
*/
|
|
12
11
|
this.show = () => {
|
|
@@ -27,7 +26,6 @@ export class MgTooltip {
|
|
|
27
26
|
};
|
|
28
27
|
/**
|
|
29
28
|
* Hide tooltip
|
|
30
|
-
*
|
|
31
29
|
* @returns {void}
|
|
32
30
|
*/
|
|
33
31
|
this.hide = () => {
|
|
@@ -43,7 +41,6 @@ export class MgTooltip {
|
|
|
43
41
|
};
|
|
44
42
|
/**
|
|
45
43
|
* Check if clicked outside of component and hidde tooltip
|
|
46
|
-
*
|
|
47
44
|
* @param {MouseEvent} event mouse event
|
|
48
45
|
* @returns {void}
|
|
49
46
|
*/
|
|
@@ -53,7 +50,6 @@ export class MgTooltip {
|
|
|
53
50
|
};
|
|
54
51
|
/**
|
|
55
52
|
* Check if 'Escape' key is pressed of component and hidde tooltip
|
|
56
|
-
*
|
|
57
53
|
* @param {KeyboardEvent} event keyboard event
|
|
58
54
|
* @returns {void}
|
|
59
55
|
*/
|
|
@@ -63,7 +59,6 @@ export class MgTooltip {
|
|
|
63
59
|
};
|
|
64
60
|
/**
|
|
65
61
|
* Method to set display prop
|
|
66
|
-
*
|
|
67
62
|
* @param {boolean} newValue display prop new value
|
|
68
63
|
* @param {boolean} condition additionnal condition to apply display prop newValue
|
|
69
64
|
* @returns {void}
|
|
@@ -74,7 +69,6 @@ export class MgTooltip {
|
|
|
74
69
|
};
|
|
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
|
|
@@ -97,7 +91,6 @@ export class MgTooltip {
|
|
|
97
91
|
};
|
|
98
92
|
/**
|
|
99
93
|
* Method to reset guard value
|
|
100
|
-
*
|
|
101
94
|
* @returns {void}
|
|
102
95
|
*/
|
|
103
96
|
this.resetGuard = () => {
|
|
@@ -105,7 +98,6 @@ export class MgTooltip {
|
|
|
105
98
|
};
|
|
106
99
|
/**
|
|
107
100
|
* Update slot content when it is a mg-button
|
|
108
|
-
*
|
|
109
101
|
* @param {HTMLMgButtonElement} mgButton slotted mg-button
|
|
110
102
|
* @returns {void}
|
|
111
103
|
*/
|
|
@@ -124,7 +116,6 @@ export class MgTooltip {
|
|
|
124
116
|
};
|
|
125
117
|
/**
|
|
126
118
|
* Init tooltip
|
|
127
|
-
*
|
|
128
119
|
* @param {HTMLElement} slotElement slotted element
|
|
129
120
|
* @param {HTMLElement} interactiveElement interactive element
|
|
130
121
|
*/
|
|
@@ -202,7 +193,6 @@ export class MgTooltip {
|
|
|
202
193
|
*************/
|
|
203
194
|
/**
|
|
204
195
|
* set variables
|
|
205
|
-
*
|
|
206
196
|
* @returns {void}
|
|
207
197
|
*/
|
|
208
198
|
componentWillLoad() {
|
|
@@ -213,7 +203,6 @@ export class MgTooltip {
|
|
|
213
203
|
* Get slotted element
|
|
214
204
|
* Check if it already contain an interactive element, if not we need to add a tabIndex attribute
|
|
215
205
|
* We need to attach the focused element to the tooltip (aria-describedby)
|
|
216
|
-
*
|
|
217
206
|
* @returns {void}
|
|
218
207
|
*/
|
|
219
208
|
componentDidLoad() {
|
|
@@ -247,7 +236,6 @@ export class MgTooltip {
|
|
|
247
236
|
}
|
|
248
237
|
/**
|
|
249
238
|
* Render
|
|
250
|
-
*
|
|
251
239
|
* @returns {HTMLElement} HTML Element
|
|
252
240
|
*/
|
|
253
241
|
render() {
|
|
@@ -345,7 +333,7 @@ export class MgTooltip {
|
|
|
345
333
|
},
|
|
346
334
|
"disabled": {
|
|
347
335
|
"type": "boolean",
|
|
348
|
-
"mutable":
|
|
336
|
+
"mutable": false,
|
|
349
337
|
"complexType": {
|
|
350
338
|
"original": "boolean",
|
|
351
339
|
"resolved": "boolean",
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { h } from '@stencil/core';
|
|
2
2
|
/**
|
|
3
3
|
* Apply in all input child node the aria-describedby attribute
|
|
4
|
-
*
|
|
5
4
|
* @param {VNode[]} children Represent scoped elements
|
|
6
5
|
* @param {Set<string>} ariaDescribedbyIDs List of IDs
|
|
7
6
|
* @param {FunctionalUtilities} utils Stencil.js utils
|
|
@@ -18,7 +17,6 @@ const applyAriadescribedBy = (children, ariaDescribedbyIDs, utils) => utils.map(
|
|
|
18
17
|
});
|
|
19
18
|
/**
|
|
20
19
|
* Add classes based on props
|
|
21
|
-
*
|
|
22
20
|
* @param {MgInputProps} props MgInput Interface Props
|
|
23
21
|
*/
|
|
24
22
|
const manageClasses = (props) => {
|
|
@@ -32,14 +30,12 @@ const manageClasses = (props) => {
|
|
|
32
30
|
};
|
|
33
31
|
/**
|
|
34
32
|
* Get tagname
|
|
35
|
-
*
|
|
36
33
|
* @param {boolean} isFieldset is fieldset
|
|
37
34
|
* @returns {string} tag name
|
|
38
35
|
*/
|
|
39
36
|
const getTagName = (isFieldset) => (isFieldset ? 'fieldset' : 'div');
|
|
40
37
|
/**
|
|
41
38
|
* Get input template
|
|
42
|
-
*
|
|
43
39
|
* @param {MgInputProps} props MgInput Interface Props
|
|
44
40
|
* @param {VNode[]} children Represent scoped elements
|
|
45
41
|
* @param {FunctionalUtilities} utils Stencil.js utils
|
|
@@ -99,14 +95,12 @@ export const MgInput = (props, children, utils) => {
|
|
|
99
95
|
const TagName = getTagName(props.isFieldset);
|
|
100
96
|
/**
|
|
101
97
|
* Get tooltip node
|
|
102
|
-
*
|
|
103
98
|
* @returns {VNode[]} mg-tooltip
|
|
104
99
|
*/
|
|
105
100
|
const getTooltip = () => (h("mg-tooltip", { identifier: `${props.identifier}-tooltip`, message: props.tooltip }, h("mg-icon", { icon: "info-circle" })));
|
|
106
101
|
/**
|
|
107
102
|
* Get input title (label) node
|
|
108
103
|
* Display asterisk only if not disabled and not readonly
|
|
109
|
-
*
|
|
110
104
|
* @returns {VNode[]} mg-input-title
|
|
111
105
|
*/
|
|
112
106
|
const getInputTitle = () => (h("mg-input-title", { identifier: props.identifier, class: props.labelHide ? 'sr-only' : undefined, required: props.required && !props.disabled && !props.readonly, "is-legend": props.isFieldset }, props.label));
|
|
@@ -5,7 +5,6 @@ import { ClassList } from '../../../../utils/components.utils';
|
|
|
5
5
|
import { initLocales } from '../../../../locales';
|
|
6
6
|
/**
|
|
7
7
|
* type CheckboxItem validation function
|
|
8
|
-
*
|
|
9
8
|
* @param {unknown} items Checkbox item
|
|
10
9
|
* @returns {boolean} match item type
|
|
11
10
|
*/
|
|
@@ -22,7 +21,6 @@ export class MgInputCheckbox {
|
|
|
22
21
|
this.hasDisplayedError = false;
|
|
23
22
|
/**
|
|
24
23
|
* Handle input event
|
|
25
|
-
*
|
|
26
24
|
* @param {InputEvent} event input event
|
|
27
25
|
*/
|
|
28
26
|
this.handleInput = (event) => {
|
|
@@ -45,7 +43,6 @@ export class MgInputCheckbox {
|
|
|
45
43
|
};
|
|
46
44
|
/**
|
|
47
45
|
* get invalid element
|
|
48
|
-
*
|
|
49
46
|
* @returns {HTMLInputElement} element
|
|
50
47
|
*/
|
|
51
48
|
this.getInvalidElement = () => this.inputs.find((input) => input !== null && !input.disabled && !input.checkValidity());
|
|
@@ -113,7 +110,6 @@ export class MgInputCheckbox {
|
|
|
113
110
|
}
|
|
114
111
|
/**
|
|
115
112
|
* Public method to display errors
|
|
116
|
-
*
|
|
117
113
|
* @returns {Promise<void>}
|
|
118
114
|
*/
|
|
119
115
|
async displayError() {
|
|
@@ -126,7 +122,6 @@ export class MgInputCheckbox {
|
|
|
126
122
|
*************/
|
|
127
123
|
/**
|
|
128
124
|
* Check if component props are well configured on init
|
|
129
|
-
*
|
|
130
125
|
* @returns {ReturnType<typeof setTimeout>} timeout
|
|
131
126
|
*/
|
|
132
127
|
componentWillLoad() {
|
|
@@ -143,7 +138,6 @@ export class MgInputCheckbox {
|
|
|
143
138
|
}
|
|
144
139
|
/**
|
|
145
140
|
* Render
|
|
146
|
-
*
|
|
147
141
|
* @returns {HTMLElement} HTML Element
|
|
148
142
|
*/
|
|
149
143
|
render() {
|
|
@@ -36,7 +36,6 @@ export class MgInputDate {
|
|
|
36
36
|
};
|
|
37
37
|
/**
|
|
38
38
|
* get input error code
|
|
39
|
-
*
|
|
40
39
|
* @returns {null | InputError} error code
|
|
41
40
|
*/
|
|
42
41
|
this.getInputError = () => {
|
|
@@ -62,7 +61,6 @@ export class MgInputDate {
|
|
|
62
61
|
};
|
|
63
62
|
/**
|
|
64
63
|
* Check input errors
|
|
65
|
-
*
|
|
66
64
|
* @returns {void}
|
|
67
65
|
*/
|
|
68
66
|
this.setErrorMessage = () => {
|
|
@@ -132,7 +130,6 @@ export class MgInputDate {
|
|
|
132
130
|
}
|
|
133
131
|
/**
|
|
134
132
|
* Public method to display errors
|
|
135
|
-
*
|
|
136
133
|
* @returns {Promise<void>}
|
|
137
134
|
*/
|
|
138
135
|
async displayError() {
|
|
@@ -145,7 +142,6 @@ export class MgInputDate {
|
|
|
145
142
|
*************/
|
|
146
143
|
/**
|
|
147
144
|
* Check if component props are well configured on init
|
|
148
|
-
*
|
|
149
145
|
* @returns {ReturnType<typeof setTimeout>} timeout
|
|
150
146
|
*/
|
|
151
147
|
componentWillLoad() {
|
|
@@ -166,7 +162,6 @@ export class MgInputDate {
|
|
|
166
162
|
}
|
|
167
163
|
/**
|
|
168
164
|
* Render
|
|
169
|
-
*
|
|
170
165
|
* @returns {HTMLElement} HTML Element
|
|
171
166
|
*/
|
|
172
167
|
render() {
|