@mgdis/mg-components 3.1.0 → 4.0.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-85a4a0b6.js → index-88560a66.js} +123 -48
- package/dist/cjs/index-a39c5567.js +233 -0
- package/dist/cjs/loader.cjs.js +3 -17
- package/dist/cjs/mg-badge_21.cjs.entry.js +3538 -0
- package/dist/cjs/mg-components.cjs.js +3 -7
- package/dist/cjs/mg-modal.cjs.entry.js +117 -0
- package/dist/cjs/mg-popover.cjs.entry.js +170 -0
- package/dist/cjs/popper-71bf3058.js +1790 -0
- package/dist/collection/collection-manifest.json +4 -1
- package/dist/collection/components/atoms/mg-badge/{mg-badge.stories.js → doc/mg-badge.stories.js} +4 -1
- package/dist/collection/components/atoms/mg-badge/mg-badge.conf.js +1 -1
- package/dist/collection/components/atoms/mg-badge/mg-badge.css +0 -2
- package/dist/collection/components/atoms/mg-badge/mg-badge.js +26 -10
- package/dist/collection/components/atoms/mg-button/{mg-button.stories.js → doc/mg-button.stories.js} +7 -2
- package/dist/collection/components/atoms/mg-button/mg-button.conf.js +1 -1
- package/dist/collection/components/atoms/mg-button/mg-button.css +46 -49
- package/dist/collection/components/atoms/mg-button/mg-button.js +78 -4
- package/dist/collection/components/atoms/mg-character-left/{mg-character-left.stories.js → doc/mg-character-left.stories.js} +8 -0
- package/dist/collection/components/atoms/mg-character-left/mg-character-left.js +20 -46
- package/dist/collection/components/atoms/mg-icon/{mg-icon.stories.js → doc/mg-icon.stories.js} +1 -1
- package/dist/collection/components/atoms/mg-icon/mg-icon.conf.js +104 -9
- package/dist/collection/components/atoms/mg-icon/mg-icon.css +9 -7
- package/dist/collection/components/atoms/mg-icon/mg-icon.js +33 -7
- package/dist/collection/components/atoms/mg-input-title/{mg-input-title.stories.js → doc/mg-input-title.stories.js} +0 -0
- package/dist/collection/components/atoms/mg-input-title/mg-input-title.css +4 -4
- package/dist/collection/components/atoms/mg-input-title/mg-input-title.js +14 -3
- package/dist/collection/components/atoms/mg-tag/{mg-tag.stories.js → doc/mg-tag.stories.js} +4 -1
- package/dist/collection/components/atoms/mg-tag/mg-tag.js +28 -6
- package/dist/collection/components/atoms/mg-tooltip/{mg-tooltip.stories.js → doc/mg-tooltip.stories.js} +14 -1
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.conf.js +20 -0
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +16 -2
- package/dist/collection/components/molecules/inputs/MgInput.conf.js +1 -7
- package/dist/collection/components/molecules/inputs/MgInput.js +25 -29
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/{mg-input-checkbox.stories.js → doc/mg-input-checkbox.stories.js} +6 -1
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.css +25 -11
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +102 -52
- package/dist/collection/components/molecules/inputs/mg-input-date/{mg-input-date.stories.js → doc/mg-input-date.stories.js} +6 -1
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.css +37 -9
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +136 -66
- package/dist/collection/components/molecules/inputs/mg-input-numeric/{mg-input-numeric.stories.js → doc/mg-input-numeric.stories.js} +15 -3
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.css +38 -10
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +180 -80
- package/dist/collection/components/molecules/inputs/mg-input-password/{mg-input-password.stories.js → doc/mg-input-password.stories.js} +16 -2
- package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.css +37 -9
- package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +108 -47
- package/dist/collection/components/molecules/inputs/mg-input-radio/{mg-input-radio.stories.js → doc/mg-input-radio.stories.js} +6 -1
- package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.css +25 -11
- package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +113 -42
- package/dist/collection/components/molecules/inputs/mg-input-select/{mg-input-select.stories.js → doc/mg-input-select.stories.js} +22 -2
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.css +39 -10
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +145 -71
- package/dist/collection/components/molecules/inputs/mg-input-text/{mg-input-text.stories.js → doc/mg-input-text.stories.js} +17 -8
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.css +69 -19
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +184 -83
- package/dist/collection/components/molecules/inputs/mg-input-textarea/{mg-input-textarea.stories.js → doc/mg-input-textarea.stories.js} +16 -5
- package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.css +69 -13
- package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +163 -70
- package/dist/collection/components/molecules/inputs/mg-input-toggle/{mg-input-toggle.stories.js → doc/mg-input-toggle.stories.js} +6 -1
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.css +22 -10
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +68 -33
- package/dist/collection/components/molecules/mg-form/doc/mg-form.stories.js +58 -0
- package/dist/collection/components/molecules/mg-form/mg-form.css +19 -0
- package/dist/collection/components/molecules/mg-form/mg-form.js +271 -0
- package/dist/collection/components/molecules/mg-message/{mg-message.stories.js → doc/mg-message.stories.js} +6 -2
- package/dist/collection/components/molecules/mg-message/mg-message.css +1 -1
- package/dist/collection/components/molecules/mg-message/mg-message.js +26 -11
- package/dist/collection/components/molecules/mg-modal/doc/mg-modal.stories.js +51 -0
- package/dist/collection/components/molecules/mg-modal/mg-modal.css +52 -0
- package/dist/collection/components/molecules/mg-modal/mg-modal.js +240 -0
- package/dist/collection/components/molecules/mg-pagination/{mg-pagination.stories.js → doc/mg-pagination.stories.js} +1 -0
- package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +47 -28
- package/dist/collection/components/molecules/mg-panel/doc/mg-panel.stories.js +39 -0
- package/dist/collection/components/molecules/mg-panel/mg-panel.css +53 -0
- package/dist/collection/components/molecules/mg-panel/mg-panel.js +356 -0
- package/dist/collection/components/molecules/mg-popover/{mg-popover.stories.js → doc/mg-popover.stories.js} +10 -0
- package/dist/collection/components/molecules/mg-popover/mg-popover.conf.js +20 -0
- package/dist/collection/components/molecules/mg-popover/mg-popover.css +2 -2
- package/dist/collection/components/molecules/mg-popover/mg-popover.js +37 -12
- package/dist/collection/components/molecules/mg-tabs/{mg-tabs.stories.js → doc/mg-tabs.stories.js} +20 -4
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.conf.js +11 -1
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.css +17 -3
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +139 -26
- package/dist/collection/locales/index.js +33 -4
- package/dist/collection/stories/helpers.stories.js +33 -0
- package/dist/collection/utils/components.utils.js +16 -9
- package/dist/collection/utils/locale.utils.js +13 -7
- package/dist/collection/utils/test.utils.js +27 -15
- package/dist/collection/variables.css +39 -5
- package/dist/collection/variables.scss +39 -5
- package/dist/components/MgInput.js +26 -37
- package/dist/components/components.utils.js +16 -9
- package/dist/components/index.d.ts +24 -6
- package/dist/components/index.js +23 -0
- package/dist/components/index2.js +116 -17
- package/dist/components/locale.utils.js +13 -8
- package/dist/components/mg-badge2.js +25 -9
- package/dist/components/mg-button2.js +29 -5
- package/dist/components/mg-character-left2.js +14 -26
- package/dist/components/mg-form.d.ts +11 -0
- package/dist/components/mg-form.js +148 -0
- package/dist/components/mg-icon2.js +138 -17
- package/dist/components/mg-input-checkbox.js +66 -53
- package/dist/components/mg-input-date.js +100 -69
- package/dist/components/mg-input-numeric.js +125 -81
- package/dist/components/mg-input-password.js +69 -48
- package/dist/components/mg-input-radio.js +74 -46
- package/dist/components/mg-input-select2.js +103 -71
- package/dist/components/mg-input-text.js +1 -237
- package/dist/components/mg-input-text2.js +300 -0
- package/dist/components/mg-input-textarea.js +100 -46
- package/dist/components/mg-input-title2.js +13 -4
- package/dist/components/mg-input-toggle.js +39 -31
- package/dist/components/mg-message.js +25 -10
- package/dist/components/mg-modal.d.ts +11 -0
- package/dist/components/mg-modal.js +153 -0
- package/dist/components/mg-pagination.js +45 -31
- package/dist/components/mg-panel.d.ts +11 -0
- package/dist/components/mg-panel.js +244 -0
- package/dist/components/mg-popover.js +31 -11
- package/dist/components/mg-tabs.js +113 -23
- package/dist/components/mg-tag.js +27 -5
- package/dist/components/mg-tooltip2.js +10 -1
- package/dist/components/popper.js +6 -2
- package/dist/esm/{index-e3e84606.js → index-bca81100.js} +124 -46
- package/dist/esm/index-e51ae032.js +228 -0
- package/dist/esm/loader.js +3 -17
- package/dist/esm/mg-badge_21.entry.js +3514 -0
- package/dist/esm/mg-components.js +3 -7
- package/dist/esm/mg-modal.entry.js +113 -0
- package/dist/esm/mg-popover.entry.js +166 -0
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/popper-93ecb064.js +1788 -0
- package/dist/index.js +1 -1
- package/dist/mg-components/mg-components.css +1 -1
- package/dist/mg-components/mg-components.esm.js +1 -1
- package/dist/mg-components/p-003a1344.entry.js +1 -0
- package/dist/mg-components/p-462d648a.entry.js +1 -0
- package/dist/mg-components/p-4c66f794.js +1 -0
- package/dist/mg-components/p-5126ab10.entry.js +1 -0
- package/dist/mg-components/p-780bd52d.js +1 -0
- package/dist/mg-components/p-b14a3443.js +2 -0
- package/dist/mg-components/variables.css +39 -5
- package/dist/mg-components/variables.scss +39 -5
- package/dist/types/components/atoms/mg-badge/{mg-badge.stories.d.ts → doc/mg-badge.stories.d.ts} +5 -0
- package/dist/types/components/atoms/mg-badge/mg-badge.d.ts +16 -5
- package/dist/types/components/atoms/mg-button/{mg-button.stories.d.ts → doc/mg-button.stories.d.ts} +5 -0
- package/dist/types/components/atoms/mg-button/mg-button.d.ts +23 -3
- package/dist/types/components/atoms/mg-character-left/{mg-character-left.stories.d.ts → doc/mg-character-left.stories.d.ts} +9 -0
- package/dist/types/components/atoms/mg-character-left/mg-character-left.d.ts +16 -13
- package/dist/types/components/atoms/mg-icon/{mg-icon.stories.d.ts → doc/mg-icon.stories.d.ts} +0 -0
- package/dist/types/components/atoms/mg-icon/mg-icon.conf.d.ts +1 -1
- package/dist/types/components/atoms/mg-icon/mg-icon.d.ts +14 -4
- package/dist/types/components/atoms/mg-input-title/{mg-input-title.stories.d.ts → doc/mg-input-title.stories.d.ts} +0 -0
- package/dist/types/components/atoms/mg-input-title/mg-input-title.d.ts +11 -1
- package/dist/types/components/atoms/mg-tag/{mg-tag.stories.d.ts → doc/mg-tag.stories.d.ts} +5 -0
- package/dist/types/components/atoms/mg-tag/mg-tag.d.ts +18 -4
- package/dist/types/components/atoms/mg-tooltip/doc/mg-tooltip.stories.d.ts +29 -0
- package/dist/types/components/atoms/mg-tooltip/mg-tooltip.conf.d.ts +8 -0
- package/dist/types/components/atoms/mg-tooltip/mg-tooltip.d.ts +13 -3
- package/dist/types/components/molecules/inputs/MgInput.conf.d.ts +6 -4
- package/dist/types/components/molecules/inputs/MgInput.d.ts +7 -8
- package/dist/types/components/molecules/inputs/mg-input-checkbox/{mg-input-checkbox.stories.d.ts → doc/mg-input-checkbox.stories.d.ts} +5 -0
- package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.d.ts +36 -13
- package/dist/types/components/molecules/inputs/mg-input-date/{mg-input-date.stories.d.ts → doc/mg-input-date.stories.d.ts} +5 -0
- package/dist/types/components/molecules/inputs/mg-input-date/mg-input-date.d.ts +46 -15
- package/dist/types/components/molecules/inputs/mg-input-numeric/{mg-input-numeric.stories.d.ts → doc/mg-input-numeric.stories.d.ts} +11 -0
- package/dist/types/components/molecules/inputs/mg-input-numeric/mg-input-numeric.d.ts +61 -16
- package/dist/types/components/molecules/inputs/mg-input-password/doc/mg-input-password.stories.d.ts +22 -0
- package/dist/types/components/molecules/inputs/mg-input-password/mg-input-password.d.ts +35 -11
- package/dist/types/components/molecules/inputs/mg-input-radio/{mg-input-radio.stories.d.ts → doc/mg-input-radio.stories.d.ts} +5 -0
- package/dist/types/components/molecules/inputs/mg-input-radio/mg-input-radio.conf.d.ts +1 -1
- package/dist/types/components/molecules/inputs/mg-input-radio/mg-input-radio.d.ts +42 -9
- package/dist/types/components/molecules/inputs/mg-input-select/doc/mg-input-select.stories.d.ts +34 -0
- package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.conf.d.ts +1 -1
- package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.d.ts +37 -9
- package/dist/types/components/molecules/inputs/mg-input-text/{mg-input-text.stories.d.ts → doc/mg-input-text.stories.d.ts} +13 -0
- package/dist/types/components/molecules/inputs/mg-input-text/mg-input-text.d.ts +52 -16
- package/dist/types/components/molecules/inputs/mg-input-textarea/doc/mg-input-textarea.stories.d.ts +19 -0
- package/dist/types/components/molecules/inputs/mg-input-textarea/mg-input-textarea.d.ts +45 -17
- package/dist/types/components/molecules/inputs/mg-input-toggle/{mg-input-toggle.stories.d.ts → doc/mg-input-toggle.stories.d.ts} +5 -0
- package/dist/types/components/molecules/inputs/mg-input-toggle/mg-input-toggle.conf.d.ts +1 -1
- package/dist/types/components/molecules/inputs/mg-input-toggle/mg-input-toggle.d.ts +29 -12
- package/dist/types/components/molecules/{mg-popover/mg-popover.stories.d.ts → mg-form/doc/mg-form.stories.d.ts} +3 -4
- package/dist/types/components/molecules/mg-form/mg-form.d.ts +83 -0
- package/dist/types/components/molecules/mg-message/{mg-message.stories.d.ts → doc/mg-message.stories.d.ts} +10 -0
- package/dist/types/components/molecules/mg-message/mg-message.d.ts +13 -4
- package/dist/types/components/molecules/mg-modal/doc/mg-modal.stories.d.ts +13 -0
- package/dist/types/components/molecules/mg-modal/mg-modal.d.ts +85 -0
- package/dist/types/components/molecules/mg-pagination/{mg-pagination.stories.d.ts → doc/mg-pagination.stories.d.ts} +5 -0
- package/dist/types/components/molecules/mg-pagination/mg-pagination.d.ts +31 -7
- package/dist/types/components/molecules/mg-panel/doc/mg-panel.stories.d.ts +11 -0
- package/dist/types/components/molecules/mg-panel/mg-panel.d.ts +139 -0
- package/dist/types/components/molecules/mg-popover/doc/mg-popover.stories.d.ts +25 -0
- package/dist/types/components/molecules/mg-popover/mg-popover.conf.d.ts +8 -0
- package/dist/types/components/molecules/mg-popover/mg-popover.d.ts +27 -4
- package/dist/types/components/molecules/mg-tabs/doc/mg-tabs.stories.d.ts +20 -0
- package/dist/types/components/molecules/mg-tabs/mg-tabs.conf.d.ts +11 -0
- package/dist/types/components/molecules/mg-tabs/mg-tabs.d.ts +70 -6
- package/dist/types/components.d.ts +528 -211
- package/dist/types/locales/index.d.ts +108 -38
- package/dist/types/stories/{buttons.stories.d.ts → helpers.stories.d.ts} +1 -1
- package/dist/types/utils/components.utils.d.ts +16 -9
- package/dist/types/utils/locale.utils.d.ts +13 -6
- package/dist/types/utils/test.utils.d.ts +13 -1
- package/loader/index.js +1 -1
- package/package.json +45 -14
- package/readme.md +9 -35
- package/dist/cjs/css-shim-a22512c4.js +0 -6
- package/dist/cjs/mg-badge_20.cjs.entry.js +0 -4661
- package/dist/cjs/shadow-css-8940f82d.js +0 -390
- package/dist/collection/stories/buttons.stories.js +0 -43
- package/dist/collection/stories/messages.stories.js +0 -44
- package/dist/collection/stories/tags.stories.js +0 -13
- package/dist/esm/css-shim-7c240feb.js +0 -4
- package/dist/esm/mg-badge_20.entry.js +0 -4638
- package/dist/esm/shadow-css-5d2d01ce.js +0 -388
- package/dist/esm-es5/css-shim-7c240feb.js +0 -1
- package/dist/esm-es5/index-e3e84606.js +0 -1
- package/dist/esm-es5/index.js +0 -0
- package/dist/esm-es5/loader.js +0 -1
- package/dist/esm-es5/mg-badge_20.entry.js +0 -2
- package/dist/esm-es5/mg-components.js +0 -1
- package/dist/esm-es5/shadow-css-5d2d01ce.js +0 -12
- package/dist/mg-components/mg-components.js +0 -132
- package/dist/mg-components/p-1cd24462.system.js +0 -1
- package/dist/mg-components/p-2e2f6b27.system.entry.js +0 -2
- package/dist/mg-components/p-366a224e.js +0 -1
- package/dist/mg-components/p-422c429b.system.js +0 -1
- package/dist/mg-components/p-50ea2036.system.js +0 -1
- package/dist/mg-components/p-62fa3797.js +0 -1
- package/dist/mg-components/p-71d57b8b.system.js +0 -13
- package/dist/mg-components/p-9a215712.system.js +0 -1
- package/dist/mg-components/p-cbf0464b.entry.js +0 -1
- package/dist/mg-components/p-f6455ab3.js +0 -12
- package/dist/types/components/atoms/mg-tooltip/mg-tooltip.stories.d.ts +0 -11
- package/dist/types/components/molecules/inputs/mg-input-password/mg-input-password.stories.d.ts +0 -9
- package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.stories.d.ts +0 -14
- package/dist/types/components/molecules/inputs/mg-input-textarea/mg-input-textarea.stories.d.ts +0 -6
- package/dist/types/components/molecules/mg-tabs/mg-tabs.stories.d.ts +0 -7
- package/dist/types/stories/messages.stories.d.ts +0 -13
- package/dist/types/stories/tags.stories.d.ts +0 -5
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* List of all possibles placements
|
|
3
|
+
*/
|
|
4
|
+
export declare const placements: readonly ["auto", "auto-start", "auto-end", "top", "top-start", "top-end", "bottom", "bottom-start", "bottom-end", "right", "right-start", "right-end", "left", "left-start", "left-end"];
|
|
5
|
+
/**
|
|
6
|
+
* Placement type from placements
|
|
7
|
+
*/
|
|
8
|
+
export declare type Placement = typeof placements[number];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Placement } from './mg-tooltip.conf';
|
|
1
2
|
export declare class MgTooltip {
|
|
2
3
|
/************
|
|
3
4
|
* Internal *
|
|
@@ -23,23 +24,25 @@ export declare class MgTooltip {
|
|
|
23
24
|
/**
|
|
24
25
|
* Tooltip placement
|
|
25
26
|
*/
|
|
26
|
-
placement:
|
|
27
|
+
placement: Placement;
|
|
27
28
|
/**
|
|
28
29
|
* Display tooltip
|
|
29
30
|
*/
|
|
30
31
|
display: boolean;
|
|
31
|
-
handleDisplay(newVal:
|
|
32
|
+
handleDisplay(newVal: boolean): void;
|
|
32
33
|
/**
|
|
33
34
|
* Disable tooltip
|
|
34
35
|
*/
|
|
35
36
|
disabled: boolean;
|
|
36
37
|
/**
|
|
37
38
|
* Show tooltip
|
|
39
|
+
*
|
|
38
40
|
* @returns {void}
|
|
39
41
|
*/
|
|
40
42
|
private show;
|
|
41
43
|
/**
|
|
42
44
|
* Hide tooltip
|
|
45
|
+
*
|
|
43
46
|
* @returns {void}
|
|
44
47
|
*/
|
|
45
48
|
private hide;
|
|
@@ -50,7 +53,14 @@ export declare class MgTooltip {
|
|
|
50
53
|
* Get slotted element
|
|
51
54
|
* Check if it already contain an interactive element, if not we need to add a tabIndex attribute
|
|
52
55
|
* We need to attach the focused element to the tooltip (aria-describedby)
|
|
56
|
+
*
|
|
57
|
+
* @returns {void}
|
|
53
58
|
*/
|
|
54
59
|
componentDidLoad(): void;
|
|
55
|
-
|
|
60
|
+
/**
|
|
61
|
+
* Render
|
|
62
|
+
*
|
|
63
|
+
* @returns {HTMLElement} HTML Element
|
|
64
|
+
*/
|
|
65
|
+
render(): HTMLElement;
|
|
56
66
|
}
|
|
@@ -3,8 +3,10 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare type Width = 2 | 4 | 16 | 'full';
|
|
5
5
|
/**
|
|
6
|
-
* Possible
|
|
6
|
+
* Possible Input types
|
|
7
7
|
*/
|
|
8
|
-
export declare
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
export declare type HTMLMgInputsElement = HTMLMgInputCheckboxElement | HTMLMgInputDateElement | HTMLMgInputNumericElement | HTMLMgInputPasswordElement | HTMLMgInputRadioElement | HTMLMgInputSelectElement | HTMLMgInputTextElement | HTMLMgInputTextareaElement | (HTMLMgInputToggleElement & {
|
|
9
|
+
required: true;
|
|
10
|
+
invalid: false;
|
|
11
|
+
displayError: () => void;
|
|
12
|
+
});
|
|
@@ -15,21 +15,20 @@ interface MgInputProps {
|
|
|
15
15
|
readonlyValue: string;
|
|
16
16
|
required: boolean;
|
|
17
17
|
readonly: boolean;
|
|
18
|
-
|
|
18
|
+
mgWidth: Width;
|
|
19
19
|
disabled: boolean;
|
|
20
20
|
tooltip: string;
|
|
21
|
-
displayCharacterLeft: boolean;
|
|
22
|
-
characterLeftTemplate: string;
|
|
23
|
-
maxlength: number;
|
|
24
21
|
helpText: string;
|
|
25
22
|
errorMessage: string;
|
|
23
|
+
ariaDescribedbyIDs: string[];
|
|
26
24
|
}
|
|
27
25
|
/**
|
|
28
26
|
* Get input template
|
|
29
|
-
*
|
|
30
|
-
* @param
|
|
31
|
-
* @param
|
|
32
|
-
* @
|
|
27
|
+
*
|
|
28
|
+
* @param {MgInputProps} props MgInput Interface Props
|
|
29
|
+
* @param {VNode[]} children Represent scoped elements
|
|
30
|
+
* @param {FunctionalUtilities} utils Stencil.js utils
|
|
31
|
+
* @returns {VNode[]} input template
|
|
33
32
|
*/
|
|
34
33
|
export declare const MgInput: FunctionalComponent<MgInputProps>;
|
|
35
34
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import { EventEmitter } from '../../../../stencil-public-runtime';
|
|
3
2
|
import { ClassList } from '../../../../utils/components.utils';
|
|
4
3
|
import { CheckboxItem, CheckboxValue } from './mg-input-checkbox.conf';
|
|
@@ -6,31 +5,34 @@ export declare class MgInputCheckbox {
|
|
|
6
5
|
/************
|
|
7
6
|
* Internal *
|
|
8
7
|
************/
|
|
9
|
-
private classError;
|
|
10
8
|
private inputs;
|
|
9
|
+
private messages;
|
|
11
10
|
/**************
|
|
12
11
|
* Decorators *
|
|
13
12
|
**************/
|
|
13
|
+
/**
|
|
14
|
+
* Get component DOM element
|
|
15
|
+
*/
|
|
16
|
+
element: HTMLMgInputCheckboxElement;
|
|
14
17
|
/**
|
|
15
18
|
* Component value
|
|
16
19
|
* If item.value is `null`, checkbox will be indeterminate by default
|
|
17
20
|
* Required
|
|
18
21
|
*/
|
|
19
22
|
value: CheckboxValue[];
|
|
20
|
-
validateValue(newValue:
|
|
23
|
+
validateValue(newValue: CheckboxValue[]): void;
|
|
21
24
|
/**
|
|
22
25
|
* Identifier is used for the element ID (id is a reserved prop in Stencil.js)
|
|
23
26
|
* If not set, it will be created.
|
|
24
27
|
*/
|
|
25
|
-
identifier
|
|
28
|
+
identifier: string;
|
|
26
29
|
/**
|
|
27
30
|
* Input name
|
|
28
31
|
* If not set the value equals the identifier
|
|
29
32
|
*/
|
|
30
|
-
name
|
|
33
|
+
name: string;
|
|
31
34
|
/**
|
|
32
35
|
* Input label
|
|
33
|
-
* Required
|
|
34
36
|
*/
|
|
35
37
|
label: string;
|
|
36
38
|
/**
|
|
@@ -53,7 +55,6 @@ export declare class MgInputCheckbox {
|
|
|
53
55
|
* Define if input is readonly
|
|
54
56
|
*/
|
|
55
57
|
readonly: boolean;
|
|
56
|
-
handleReadOnly(): void;
|
|
57
58
|
/**
|
|
58
59
|
* Define if input is disabled
|
|
59
60
|
*/
|
|
@@ -67,11 +68,11 @@ export declare class MgInputCheckbox {
|
|
|
67
68
|
*/
|
|
68
69
|
helpText: string;
|
|
69
70
|
/**
|
|
70
|
-
*
|
|
71
|
+
* Define input valid state
|
|
71
72
|
*/
|
|
72
73
|
valid: boolean;
|
|
73
74
|
/**
|
|
74
|
-
*
|
|
75
|
+
* Define input invalid state
|
|
75
76
|
*/
|
|
76
77
|
invalid: boolean;
|
|
77
78
|
/**
|
|
@@ -90,9 +91,20 @@ export declare class MgInputCheckbox {
|
|
|
90
91
|
* Emitted event when value change
|
|
91
92
|
*/
|
|
92
93
|
valueChange: EventEmitter<CheckboxValue[]>;
|
|
94
|
+
/**
|
|
95
|
+
* Emited event when checking validity
|
|
96
|
+
*/
|
|
97
|
+
inputValid: EventEmitter<boolean>;
|
|
98
|
+
/**
|
|
99
|
+
* Public method to display errors
|
|
100
|
+
*
|
|
101
|
+
* @returns {Promise<void>}
|
|
102
|
+
*/
|
|
103
|
+
displayError(): Promise<void>;
|
|
93
104
|
/**
|
|
94
105
|
* Handle input event
|
|
95
|
-
*
|
|
106
|
+
*
|
|
107
|
+
* @param {InputEvent} event input event
|
|
96
108
|
*/
|
|
97
109
|
private handleInput;
|
|
98
110
|
/**
|
|
@@ -109,12 +121,23 @@ export declare class MgInputCheckbox {
|
|
|
109
121
|
private checkError;
|
|
110
122
|
/**
|
|
111
123
|
* get invalid element
|
|
112
|
-
*
|
|
124
|
+
*
|
|
125
|
+
* @returns {HTMLInputElement} element
|
|
113
126
|
*/
|
|
114
127
|
private getInvalidElement;
|
|
115
128
|
/*************
|
|
116
129
|
* Lifecycle *
|
|
117
130
|
*************/
|
|
118
|
-
|
|
119
|
-
|
|
131
|
+
/**
|
|
132
|
+
* Check if component props are well configured on init
|
|
133
|
+
*
|
|
134
|
+
* @returns {ReturnType<typeof setTimeout>} timeout
|
|
135
|
+
*/
|
|
136
|
+
componentWillLoad(): ReturnType<typeof setTimeout>;
|
|
137
|
+
/**
|
|
138
|
+
* Render
|
|
139
|
+
*
|
|
140
|
+
* @returns {HTMLElement} HTML Element
|
|
141
|
+
*/
|
|
142
|
+
render(): HTMLElement;
|
|
120
143
|
}
|
|
@@ -1,33 +1,37 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import { EventEmitter } from '../../../../stencil-public-runtime';
|
|
3
2
|
import { ClassList } from '../../../../utils/components.utils';
|
|
4
3
|
export declare class MgInputDate {
|
|
5
4
|
/************
|
|
6
5
|
* Internal *
|
|
7
6
|
************/
|
|
8
|
-
private classError;
|
|
9
7
|
private input;
|
|
8
|
+
private messages;
|
|
9
|
+
private locale;
|
|
10
|
+
private hasError;
|
|
10
11
|
/**************
|
|
11
12
|
* Decorators *
|
|
12
13
|
**************/
|
|
14
|
+
/**
|
|
15
|
+
* Get component DOM element
|
|
16
|
+
*/
|
|
17
|
+
element: HTMLMgInputDateElement;
|
|
13
18
|
/**
|
|
14
19
|
* Component value
|
|
15
20
|
*/
|
|
16
21
|
value: string;
|
|
17
|
-
validateValue(newValue:
|
|
22
|
+
validateValue(newValue: string): void;
|
|
18
23
|
/**
|
|
19
24
|
* Identifier is used for the element ID (id is a reserved prop in Stencil.js)
|
|
20
25
|
* If not set, it will be created.
|
|
21
26
|
*/
|
|
22
|
-
identifier
|
|
27
|
+
identifier: string;
|
|
23
28
|
/**
|
|
24
29
|
* Input name
|
|
25
30
|
* If not set the value equals the identifier
|
|
26
31
|
*/
|
|
27
|
-
name
|
|
32
|
+
name: string;
|
|
28
33
|
/**
|
|
29
34
|
* Input label
|
|
30
|
-
* Required
|
|
31
35
|
*/
|
|
32
36
|
label: string;
|
|
33
37
|
/**
|
|
@@ -59,11 +63,11 @@ export declare class MgInputDate {
|
|
|
59
63
|
*/
|
|
60
64
|
helpText: string;
|
|
61
65
|
/**
|
|
62
|
-
* Define input
|
|
66
|
+
* Define input valid state
|
|
63
67
|
*/
|
|
64
68
|
valid: boolean;
|
|
65
69
|
/**
|
|
66
|
-
* Define input
|
|
70
|
+
* Define input invalid state
|
|
67
71
|
*/
|
|
68
72
|
invalid: boolean;
|
|
69
73
|
/**
|
|
@@ -71,13 +75,13 @@ export declare class MgInputDate {
|
|
|
71
75
|
* format: yyyy-mm-dd
|
|
72
76
|
*/
|
|
73
77
|
min: string;
|
|
74
|
-
validateMin(newValue:
|
|
78
|
+
validateMin(newValue: string): void;
|
|
75
79
|
/**
|
|
76
80
|
* Define input maximum date
|
|
77
81
|
* format: yyyy-mm-dd
|
|
78
82
|
*/
|
|
79
83
|
max: string;
|
|
80
|
-
validateMax(newValue:
|
|
84
|
+
validateMax(newValue: string): void;
|
|
81
85
|
/**
|
|
82
86
|
* Component classes
|
|
83
87
|
*/
|
|
@@ -87,9 +91,19 @@ export declare class MgInputDate {
|
|
|
87
91
|
*/
|
|
88
92
|
errorMessage: string;
|
|
89
93
|
/**
|
|
90
|
-
*
|
|
94
|
+
* Emited event when value change
|
|
91
95
|
*/
|
|
92
96
|
valueChange: EventEmitter<string>;
|
|
97
|
+
/**
|
|
98
|
+
* Emited event when checking validity
|
|
99
|
+
*/
|
|
100
|
+
inputValid: EventEmitter<boolean>;
|
|
101
|
+
/**
|
|
102
|
+
* Public method to display errors
|
|
103
|
+
*
|
|
104
|
+
* @returns {Promise<void>}
|
|
105
|
+
*/
|
|
106
|
+
displayError(): Promise<void>;
|
|
93
107
|
/**
|
|
94
108
|
* Handle input event
|
|
95
109
|
*/
|
|
@@ -100,7 +114,9 @@ export declare class MgInputDate {
|
|
|
100
114
|
private handleBlur;
|
|
101
115
|
/**
|
|
102
116
|
* Date format validation
|
|
103
|
-
*
|
|
117
|
+
*
|
|
118
|
+
* @param {string} date date to validate
|
|
119
|
+
* @returns {void}
|
|
104
120
|
*/
|
|
105
121
|
private validateDateFormat;
|
|
106
122
|
/**
|
|
@@ -109,20 +125,35 @@ export declare class MgInputDate {
|
|
|
109
125
|
private checkValidity;
|
|
110
126
|
/**
|
|
111
127
|
* get input error code
|
|
112
|
-
*
|
|
128
|
+
*
|
|
129
|
+
* @returns {null | InputError} error code
|
|
113
130
|
*/
|
|
114
131
|
private getInputError;
|
|
115
132
|
/**
|
|
116
133
|
* Set error message
|
|
134
|
+
*
|
|
135
|
+
* @returns {void}
|
|
117
136
|
*/
|
|
118
137
|
private setErrorMessage;
|
|
119
138
|
/**
|
|
120
139
|
* Check input errors
|
|
140
|
+
*
|
|
141
|
+
* @returns {void}
|
|
121
142
|
*/
|
|
122
143
|
private checkError;
|
|
123
144
|
/*************
|
|
124
145
|
* Lifecycle *
|
|
125
146
|
*************/
|
|
126
|
-
|
|
127
|
-
|
|
147
|
+
/**
|
|
148
|
+
* Check if component props are well configured on init
|
|
149
|
+
*
|
|
150
|
+
* @returns {ReturnType<typeof setTimeout>} timeout
|
|
151
|
+
*/
|
|
152
|
+
componentWillLoad(): ReturnType<typeof setTimeout>;
|
|
153
|
+
/**
|
|
154
|
+
* Render
|
|
155
|
+
*
|
|
156
|
+
* @returns {HTMLElement} HTML Element
|
|
157
|
+
*/
|
|
158
|
+
render(): HTMLElement;
|
|
128
159
|
}
|
|
@@ -8,6 +8,17 @@ declare const _default: {
|
|
|
8
8
|
type: string;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
|
+
mgWidth: {
|
|
12
|
+
options: (string | number)[];
|
|
13
|
+
control: {
|
|
14
|
+
type: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
parameters: {
|
|
19
|
+
actions: {
|
|
20
|
+
handles: string[];
|
|
21
|
+
};
|
|
11
22
|
};
|
|
12
23
|
};
|
|
13
24
|
export default _default;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import { EventEmitter } from '../../../../stencil-public-runtime';
|
|
3
2
|
import { Width } from '../MgInput.conf';
|
|
4
3
|
import { ClassList } from '../../../../utils/components.utils';
|
|
@@ -9,11 +8,16 @@ export declare class MgInputNumeric {
|
|
|
9
8
|
private storedValue;
|
|
10
9
|
private numericValue;
|
|
11
10
|
private readonlyValue;
|
|
12
|
-
private classError;
|
|
13
11
|
private input;
|
|
12
|
+
private locale;
|
|
13
|
+
private messages;
|
|
14
|
+
private hasError;
|
|
14
15
|
/**************
|
|
15
16
|
* Decorators *
|
|
16
17
|
**************/
|
|
18
|
+
/**
|
|
19
|
+
* Get component DOM element
|
|
20
|
+
*/
|
|
17
21
|
element: HTMLMgInputNumericElement;
|
|
18
22
|
/**
|
|
19
23
|
* Component value
|
|
@@ -24,15 +28,14 @@ export declare class MgInputNumeric {
|
|
|
24
28
|
* Identifier is used for the element ID (id is a reserved prop in Stencil.js)
|
|
25
29
|
* If not set, it will be created.
|
|
26
30
|
*/
|
|
27
|
-
identifier
|
|
31
|
+
identifier: string;
|
|
28
32
|
/**
|
|
29
33
|
* Input name
|
|
30
34
|
* If not set the value equals the identifier
|
|
31
35
|
*/
|
|
32
|
-
name
|
|
36
|
+
name: string;
|
|
33
37
|
/**
|
|
34
38
|
* Input label
|
|
35
|
-
* Required
|
|
36
39
|
*/
|
|
37
40
|
label: string;
|
|
38
41
|
/**
|
|
@@ -63,7 +66,7 @@ export declare class MgInputNumeric {
|
|
|
63
66
|
/**
|
|
64
67
|
* Define input width
|
|
65
68
|
*/
|
|
66
|
-
|
|
69
|
+
mgWidth: Width;
|
|
67
70
|
/**
|
|
68
71
|
* Add a tooltip message next to the input
|
|
69
72
|
*/
|
|
@@ -77,6 +80,10 @@ export declare class MgInputNumeric {
|
|
|
77
80
|
*/
|
|
78
81
|
type: string;
|
|
79
82
|
validateType(newValue: string): void;
|
|
83
|
+
/**
|
|
84
|
+
* Define currency
|
|
85
|
+
*/
|
|
86
|
+
currency: string;
|
|
80
87
|
/**
|
|
81
88
|
* Maximum value
|
|
82
89
|
*/
|
|
@@ -114,60 +121,98 @@ export declare class MgInputNumeric {
|
|
|
114
121
|
*/
|
|
115
122
|
errorMessage: string;
|
|
116
123
|
/**
|
|
117
|
-
*
|
|
118
|
-
* Change on focus/blur
|
|
124
|
+
* Define if input has focus
|
|
119
125
|
*/
|
|
120
|
-
|
|
126
|
+
hasFocus: boolean;
|
|
121
127
|
/**
|
|
122
|
-
*
|
|
128
|
+
* Emited event when value change
|
|
123
129
|
*/
|
|
124
130
|
valueChange: EventEmitter<number>;
|
|
131
|
+
/**
|
|
132
|
+
* Emited event when checking validity
|
|
133
|
+
*/
|
|
134
|
+
inputValid: EventEmitter<boolean>;
|
|
135
|
+
/**
|
|
136
|
+
* Public method to display errors
|
|
137
|
+
*
|
|
138
|
+
* @returns {Promise<void>}
|
|
139
|
+
*/
|
|
140
|
+
displayError(): Promise<void>;
|
|
141
|
+
/**
|
|
142
|
+
* Displayed value in input
|
|
143
|
+
* Change on focus/blur
|
|
144
|
+
*
|
|
145
|
+
* @returns {string} display value
|
|
146
|
+
*/
|
|
147
|
+
private displayValue;
|
|
125
148
|
/**
|
|
126
149
|
* Handle input event
|
|
150
|
+
*
|
|
151
|
+
* @returns {void}
|
|
127
152
|
*/
|
|
128
153
|
private handleInput;
|
|
129
154
|
/**
|
|
130
155
|
* Handle focus event
|
|
156
|
+
*
|
|
157
|
+
* @returns {void}
|
|
131
158
|
*/
|
|
132
159
|
private handleFocus;
|
|
133
160
|
/**
|
|
134
161
|
* Handle blur event
|
|
162
|
+
*
|
|
163
|
+
* @returns {void}
|
|
135
164
|
*/
|
|
136
165
|
private handleBlur;
|
|
137
166
|
/**
|
|
138
167
|
* Check if input is valid
|
|
168
|
+
*
|
|
169
|
+
* @returns {void}
|
|
139
170
|
*/
|
|
140
171
|
private checkValidity;
|
|
141
172
|
/**
|
|
142
173
|
* Set error message
|
|
174
|
+
*
|
|
175
|
+
* @returns {void}
|
|
143
176
|
*/
|
|
144
177
|
private setErrorMessage;
|
|
145
178
|
/**
|
|
146
179
|
* Check input errors
|
|
180
|
+
*
|
|
181
|
+
* @returns {void}
|
|
147
182
|
*/
|
|
148
183
|
private checkError;
|
|
149
184
|
/**
|
|
150
|
-
*
|
|
151
|
-
*
|
|
185
|
+
* Get input error code
|
|
186
|
+
*
|
|
187
|
+
* @returns {null | InputError} error code
|
|
152
188
|
*/
|
|
153
189
|
private getInputError;
|
|
154
190
|
/**
|
|
155
191
|
* Format value based on type
|
|
156
|
-
*
|
|
192
|
+
*
|
|
193
|
+
* @param {number} value value to format
|
|
157
194
|
* @returns {string} formated local value
|
|
158
195
|
*/
|
|
159
196
|
private formatValue;
|
|
160
197
|
/**
|
|
161
198
|
* Validate append slot
|
|
199
|
+
*
|
|
200
|
+
* @returns {void}
|
|
162
201
|
*/
|
|
163
202
|
private validateAppendSlot;
|
|
164
203
|
/*************
|
|
165
204
|
* Lifecycle *
|
|
166
205
|
*************/
|
|
167
|
-
componentWillLoad(): NodeJS.Timeout;
|
|
168
|
-
componentDidLoad(): void;
|
|
169
206
|
/**
|
|
170
207
|
* Check if component props are well configured on init
|
|
208
|
+
*
|
|
209
|
+
* @returns {ReturnType<typeof setTimeout>} timeout
|
|
210
|
+
*/
|
|
211
|
+
componentWillLoad(): ReturnType<typeof setTimeout>;
|
|
212
|
+
/**
|
|
213
|
+
* Render
|
|
214
|
+
*
|
|
215
|
+
* @returns {HTMLElement} HTML Element
|
|
171
216
|
*/
|
|
172
|
-
render():
|
|
217
|
+
render(): HTMLElement;
|
|
173
218
|
}
|
package/dist/types/components/molecules/inputs/mg-input-password/doc/mg-input-password.stories.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
component: string;
|
|
3
|
+
title: string;
|
|
4
|
+
argTypes: {
|
|
5
|
+
mgWidth: {
|
|
6
|
+
options: (string | number)[];
|
|
7
|
+
control: {
|
|
8
|
+
type: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
parameters: {
|
|
13
|
+
actions: {
|
|
14
|
+
handles: string[];
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export default _default;
|
|
19
|
+
/**
|
|
20
|
+
* Global use
|
|
21
|
+
*/
|
|
22
|
+
export declare const MgInputPassword: any;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import { EventEmitter } from '../../../../stencil-public-runtime';
|
|
3
2
|
import { Width } from '../MgInput.conf';
|
|
4
3
|
import { ClassList } from '../../../../utils/components.utils';
|
|
@@ -6,28 +5,33 @@ export declare class MgInputPassword {
|
|
|
6
5
|
/************
|
|
7
6
|
* Internal *
|
|
8
7
|
************/
|
|
9
|
-
private classError;
|
|
10
8
|
private input;
|
|
9
|
+
private messages;
|
|
10
|
+
private hasError;
|
|
11
11
|
/**************
|
|
12
12
|
* Decorators *
|
|
13
13
|
**************/
|
|
14
|
+
/**
|
|
15
|
+
* Get component DOM element
|
|
16
|
+
*/
|
|
17
|
+
element: HTMLMgInputPasswordElement;
|
|
14
18
|
/**
|
|
15
19
|
* Component value
|
|
16
20
|
*/
|
|
17
21
|
value: string;
|
|
22
|
+
handleValue(newValue: string): void;
|
|
18
23
|
/**
|
|
19
24
|
* Identifier is used for the element ID (id is a reserved prop in Stencil.js)
|
|
20
25
|
* If not set, it will be created.
|
|
21
26
|
*/
|
|
22
|
-
identifier
|
|
27
|
+
identifier: string;
|
|
23
28
|
/**
|
|
24
29
|
* Input name
|
|
25
30
|
* If not set the value equals the identifier
|
|
26
31
|
*/
|
|
27
|
-
name
|
|
32
|
+
name: string;
|
|
28
33
|
/**
|
|
29
34
|
* Input label
|
|
30
|
-
* Required
|
|
31
35
|
*/
|
|
32
36
|
label: string;
|
|
33
37
|
/**
|
|
@@ -58,7 +62,7 @@ export declare class MgInputPassword {
|
|
|
58
62
|
/**
|
|
59
63
|
* Define input width
|
|
60
64
|
*/
|
|
61
|
-
|
|
65
|
+
mgWidth: Width;
|
|
62
66
|
/**
|
|
63
67
|
* Add a tooltip message next to the input
|
|
64
68
|
*/
|
|
@@ -68,11 +72,11 @@ export declare class MgInputPassword {
|
|
|
68
72
|
*/
|
|
69
73
|
helpText: string;
|
|
70
74
|
/**
|
|
71
|
-
* Define input
|
|
75
|
+
* Define input valid state
|
|
72
76
|
*/
|
|
73
77
|
valid: boolean;
|
|
74
78
|
/**
|
|
75
|
-
* Define input
|
|
79
|
+
* Define input invalid state
|
|
76
80
|
*/
|
|
77
81
|
invalid: boolean;
|
|
78
82
|
/**
|
|
@@ -84,9 +88,19 @@ export declare class MgInputPassword {
|
|
|
84
88
|
*/
|
|
85
89
|
errorMessage: string;
|
|
86
90
|
/**
|
|
87
|
-
*
|
|
91
|
+
* Emited event when value change
|
|
88
92
|
*/
|
|
89
93
|
valueChange: EventEmitter<string>;
|
|
94
|
+
/**
|
|
95
|
+
* Emited event when checking validity
|
|
96
|
+
*/
|
|
97
|
+
inputValid: EventEmitter<boolean>;
|
|
98
|
+
/**
|
|
99
|
+
* Public method to display errors
|
|
100
|
+
*
|
|
101
|
+
* @returns {Promise<void>}
|
|
102
|
+
*/
|
|
103
|
+
displayError(): Promise<void>;
|
|
90
104
|
/**
|
|
91
105
|
* Handle input event
|
|
92
106
|
*/
|
|
@@ -106,6 +120,16 @@ export declare class MgInputPassword {
|
|
|
106
120
|
/*************
|
|
107
121
|
* Lifecycle *
|
|
108
122
|
*************/
|
|
109
|
-
|
|
110
|
-
|
|
123
|
+
/**
|
|
124
|
+
* Check if component props are well configured on init
|
|
125
|
+
*
|
|
126
|
+
* @returns {ReturnType<typeof setTimeout>} timeout
|
|
127
|
+
*/
|
|
128
|
+
componentWillLoad(): ReturnType<typeof setTimeout>;
|
|
129
|
+
/**
|
|
130
|
+
* Render
|
|
131
|
+
*
|
|
132
|
+
* @returns {HTMLElement} HTML Element
|
|
133
|
+
*/
|
|
134
|
+
render(): HTMLElement;
|
|
111
135
|
}
|