@mgdis/mg-components 5.25.2 → 5.27.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-f699ee11.js → index-1d560837.js} +105 -89
- package/dist/cjs/index-1d560837.js.map +1 -0
- package/dist/cjs/{index-0256ee6d.js → index-7072369e.js} +17 -5
- package/dist/cjs/index-7072369e.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{mg-action-more_34.cjs.entry.js → mg-action-more_35.cjs.entry.js} +693 -774
- package/dist/cjs/mg-action-more_35.cjs.entry.js.map +1 -0
- package/dist/cjs/mg-components.cjs.js +3 -3
- package/dist/cjs/mg-components.cjs.js.map +1 -1
- package/dist/cjs/mg-item-more.cjs.entry.js +8 -7
- package/dist/cjs/mg-item-more.cjs.entry.js.map +1 -1
- package/dist/cjs/mg-loader.cjs.entry.js +4 -4
- package/dist/cjs/mg-loader.cjs.entry.js.map +1 -1
- package/dist/collection/assets/icons/index.js +1 -206
- package/dist/collection/assets/icons/index.js.map +1 -1
- package/dist/collection/collection-manifest.json +4 -3
- package/dist/collection/components/atoms/mg-badge/mg-badge.js +2 -2
- package/dist/collection/components/atoms/mg-badge/mg-badge.js.map +1 -1
- package/dist/collection/components/atoms/mg-button/mg-button.js +6 -6
- package/dist/collection/components/atoms/mg-button/mg-button.js.map +1 -1
- package/dist/collection/components/atoms/mg-card/mg-card.js +2 -2
- package/dist/collection/components/atoms/mg-card/mg-card.js.map +1 -1
- package/dist/collection/components/atoms/mg-character-left/mg-character-left.js +2 -2
- package/dist/collection/components/atoms/mg-character-left/mg-character-left.js.map +1 -1
- package/dist/collection/components/atoms/mg-divider/mg-divider.js +1 -1
- package/dist/collection/components/atoms/mg-icon/mg-icon.conf.js.map +1 -1
- package/dist/collection/components/atoms/mg-icon/mg-icon.js +13 -8
- package/dist/collection/components/atoms/mg-icon/mg-icon.js.map +1 -1
- package/dist/collection/components/atoms/mg-input-title/mg-input-title.js +3 -3
- package/dist/collection/components/atoms/mg-input-title/mg-input-title.js.map +1 -1
- package/dist/collection/components/atoms/mg-tag/mg-tag.js +3 -3
- package/dist/collection/components/atoms/mg-tag/mg-tag.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input/mg-input.conf.js +21 -0
- package/dist/collection/components/molecules/inputs/mg-input/mg-input.conf.js.map +1 -0
- package/dist/collection/components/molecules/inputs/mg-input/mg-input.js +509 -0
- package/dist/collection/components/molecules/inputs/mg-input/mg-input.js.map +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxList.js +1 -5
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxList.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.js +7 -7
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +67 -45
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +31 -13
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +48 -18
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +54 -15
- package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +40 -8
- package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +44 -13
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +63 -24
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +47 -15
- package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +30 -21
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js.map +1 -1
- package/dist/collection/components/molecules/menu/mg-menu/mg-menu.js +3 -3
- package/dist/collection/components/molecules/menu/mg-menu/mg-menu.js.map +1 -1
- package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.conf.js +4 -0
- package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.conf.js.map +1 -1
- package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.js +43 -7
- package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.js.map +1 -1
- package/dist/collection/components/molecules/mg-action-more/mg-action-more.conf.js.map +1 -1
- package/dist/collection/components/molecules/mg-action-more/mg-action-more.js +41 -41
- package/dist/collection/components/molecules/mg-action-more/mg-action-more.js.map +1 -1
- package/dist/collection/components/molecules/mg-details/mg-details.js +1 -1
- package/dist/collection/components/molecules/mg-form/mg-form.js +4 -4
- package/dist/collection/components/molecules/mg-form/mg-form.js.map +1 -1
- package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js +3 -3
- package/dist/collection/components/molecules/mg-item-more/mg-item-more.conf.js.map +1 -1
- package/dist/collection/components/molecules/mg-item-more/mg-item-more.js +12 -11
- package/dist/collection/components/molecules/mg-item-more/mg-item-more.js.map +1 -1
- package/dist/collection/components/molecules/mg-loader/mg-loader.js +3 -3
- package/dist/collection/components/molecules/mg-loader/mg-loader.js.map +1 -1
- package/dist/collection/components/molecules/mg-message/mg-message.js +3 -3
- package/dist/collection/components/molecules/mg-message/mg-message.js.map +1 -1
- package/dist/collection/components/molecules/mg-modal/mg-modal.js +2 -2
- package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +4 -4
- package/dist/collection/components/molecules/mg-pagination/mg-pagination.js.map +1 -1
- package/dist/collection/components/molecules/mg-panel/mg-panel.js +4 -4
- package/dist/collection/components/molecules/mg-panel/mg-panel.js.map +1 -1
- package/dist/collection/components/molecules/mg-popover/mg-popover-content/mg-popover-content.js +1 -1
- package/dist/collection/components/molecules/mg-popover/mg-popover.js +2 -2
- package/dist/collection/components/molecules/mg-popover/mg-popover.js.map +1 -1
- package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.js +1 -1
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +1 -1
- package/dist/collection/locales/en/messages.json +10 -3
- package/dist/collection/locales/fr/messages.json +10 -3
- package/dist/collection/locales/index.conf.js +2 -0
- package/dist/collection/locales/index.conf.js.map +1 -0
- package/dist/collection/utils/playwright.fixture.js +1 -1
- package/dist/collection/utils/playwright.fixture.js.map +1 -1
- package/dist/components/index.es.js +28 -28
- package/dist/components/index.es.js.map +1 -1
- package/dist/components/index2.js +26 -10
- package/dist/components/index2.js.map +1 -1
- package/dist/components/mg-action-more.js +16 -16
- package/dist/components/mg-action-more.js.map +1 -1
- package/dist/components/mg-badge2.js +3 -3
- package/dist/components/mg-badge2.js.map +1 -1
- package/dist/components/mg-button2.js +5 -5
- package/dist/components/mg-button2.js.map +1 -1
- package/dist/components/mg-card2.js +4 -4
- package/dist/components/mg-card2.js.map +1 -1
- package/dist/components/mg-character-left2.js +1 -1
- package/dist/components/mg-character-left2.js.map +1 -1
- package/dist/components/mg-details.js +3 -3
- package/dist/components/mg-divider.js +1 -1
- package/dist/components/mg-form.js +4 -4
- package/dist/components/mg-form.js.map +1 -1
- package/dist/components/mg-icon2.js +6 -418
- package/dist/components/mg-icon2.js.map +1 -1
- package/dist/components/mg-illustrated-message.js +5 -5
- package/dist/components/mg-input-checkbox-paginated2.js +13 -11
- package/dist/components/mg-input-checkbox-paginated2.js.map +1 -1
- package/dist/components/mg-input-checkbox.js +74 -52
- package/dist/components/mg-input-checkbox.js.map +1 -1
- package/dist/components/mg-input-date.js +39 -21
- package/dist/components/mg-input-date.js.map +1 -1
- package/dist/components/mg-input-numeric.js +46 -17
- package/dist/components/mg-input-numeric.js.map +1 -1
- package/dist/components/mg-input-password.js +59 -15
- package/dist/components/mg-input-password.js.map +1 -1
- package/dist/components/mg-input-radio.js +44 -13
- package/dist/components/mg-input-radio.js.map +1 -1
- package/dist/components/mg-input-select2.js +48 -18
- package/dist/components/mg-input-select2.js.map +1 -1
- package/dist/components/mg-input-text2.js +56 -24
- package/dist/components/mg-input-text2.js.map +1 -1
- package/dist/components/mg-input-textarea.js +50 -19
- package/dist/components/mg-input-textarea.js.map +1 -1
- package/dist/components/mg-input-title2.js +3 -3
- package/dist/components/mg-input-title2.js.map +1 -1
- package/dist/components/mg-input-toggle.js +39 -26
- package/dist/components/mg-input-toggle.js.map +1 -1
- package/dist/components/mg-input.d.ts +11 -0
- package/dist/components/mg-input.js +8 -0
- package/dist/components/mg-input.js.map +1 -0
- package/dist/components/mg-input2.js +352 -0
- package/dist/components/mg-input2.js.map +1 -0
- package/dist/components/mg-item-more.js +8 -7
- package/dist/components/mg-item-more.js.map +1 -1
- package/dist/components/mg-loader.js +3 -3
- package/dist/components/mg-loader.js.map +1 -1
- package/dist/components/mg-menu-item2.js +25 -8
- package/dist/components/mg-menu-item2.js.map +1 -1
- package/dist/components/mg-menu2.js +1 -1
- package/dist/components/mg-menu2.js.map +1 -1
- package/dist/components/mg-message.js +4 -4
- package/dist/components/mg-message.js.map +1 -1
- package/dist/components/mg-modal.js +9 -9
- package/dist/components/mg-modal.js.map +1 -1
- package/dist/components/mg-pagination2.js +14 -8
- package/dist/components/mg-pagination2.js.map +1 -1
- package/dist/components/mg-panel.js +19 -13
- package/dist/components/mg-panel.js.map +1 -1
- package/dist/components/mg-popover-content2.js +4 -4
- package/dist/components/mg-popover2.js +5 -5
- package/dist/components/mg-popover2.js.map +1 -1
- package/dist/components/mg-skip-links.js +3 -3
- package/dist/components/mg-tabs.js +7 -7
- package/dist/components/mg-tag.js +4 -4
- package/dist/components/mg-tag.js.map +1 -1
- package/dist/components/mg-tooltip2.js +6 -6
- package/dist/esm/{index-d2fc6ec0.js → index-445fc2a0.js} +99 -83
- package/dist/esm/index-445fc2a0.js.map +1 -0
- package/dist/esm/{index-4ad17402.js → index-629a42c7.js} +17 -5
- package/dist/esm/index-629a42c7.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{mg-action-more_34.entry.js → mg-action-more_35.entry.js} +693 -775
- package/dist/esm/mg-action-more_35.entry.js.map +1 -0
- package/dist/esm/mg-components.js +4 -4
- package/dist/esm/mg-components.js.map +1 -1
- package/dist/esm/mg-item-more.entry.js +8 -7
- package/dist/esm/mg-item-more.entry.js.map +1 -1
- package/dist/esm/mg-loader.entry.js +4 -4
- package/dist/esm/mg-loader.entry.js.map +1 -1
- package/dist/mg-components/locales/en/messages.json +10 -3
- package/dist/mg-components/locales/fr/messages.json +10 -3
- package/dist/mg-components/mg-components.esm.js +1 -1
- package/dist/mg-components/mg-components.esm.js.map +1 -1
- package/dist/mg-components/p-3ebe6845.js +2 -0
- package/dist/mg-components/p-3ebe6845.js.map +1 -0
- package/dist/mg-components/{p-568c9ea9.entry.js → p-6735e4b2.entry.js} +2 -2
- package/dist/mg-components/p-6735e4b2.entry.js.map +1 -0
- package/dist/mg-components/p-9dfaa41f.js +3 -0
- package/dist/mg-components/p-9dfaa41f.js.map +1 -0
- package/dist/mg-components/p-b3e0f7b3.entry.js +2 -0
- package/dist/mg-components/p-b3e0f7b3.entry.js.map +1 -0
- package/dist/mg-components/{p-22f575c5.entry.js → p-fe347f48.entry.js} +2 -2
- package/dist/mg-components/{p-22f575c5.entry.js.map → p-fe347f48.entry.js.map} +1 -1
- package/dist/types/components/atoms/mg-badge/mg-badge.d.ts +2 -2
- package/dist/types/components/atoms/mg-button/mg-button.d.ts +5 -5
- package/dist/types/components/atoms/mg-card/mg-card.d.ts +1 -1
- package/dist/types/components/atoms/mg-character-left/mg-character-left.d.ts +1 -1
- package/dist/types/components/atoms/mg-icon/mg-icon.conf.d.ts +5 -0
- package/dist/types/components/atoms/mg-icon/mg-icon.d.ts +3 -3
- package/dist/types/components/atoms/mg-input-title/mg-input-title.d.ts +2 -2
- package/dist/types/components/atoms/mg-tag/mg-tag.d.ts +2 -2
- package/dist/types/components/molecules/inputs/mg-input/mg-input.conf.d.ts +35 -0
- package/dist/types/components/molecules/inputs/mg-input/mg-input.d.ts +139 -0
- package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.d.ts +5 -5
- package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.d.ts +3 -5
- package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.d.ts +13 -12
- package/dist/types/components/molecules/inputs/mg-input-date/mg-input-date.d.ts +8 -6
- package/dist/types/components/molecules/inputs/mg-input-numeric/mg-input-numeric.d.ts +12 -9
- package/dist/types/components/molecules/inputs/mg-input-password/mg-input-password.d.ts +16 -5
- package/dist/types/components/molecules/inputs/mg-input-radio/mg-input-radio.d.ts +7 -3
- package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.d.ts +7 -4
- package/dist/types/components/molecules/inputs/mg-input-text/mg-input-text.d.ts +18 -12
- package/dist/types/components/molecules/inputs/mg-input-textarea/mg-input-textarea.d.ts +12 -9
- package/dist/types/components/molecules/inputs/mg-input-toggle/mg-input-toggle.d.ts +12 -12
- package/dist/types/components/molecules/menu/mg-menu/mg-menu.d.ts +1 -1
- package/dist/types/components/molecules/menu/mg-menu-item/mg-menu-item.conf.d.ts +8 -0
- package/dist/types/components/molecules/menu/mg-menu-item/mg-menu-item.d.ts +10 -5
- package/dist/types/components/molecules/mg-action-more/mg-action-more.conf.d.ts +7 -16
- package/dist/types/components/molecules/mg-action-more/mg-action-more.d.ts +9 -9
- package/dist/types/components/molecules/mg-form/mg-form.d.ts +3 -3
- package/dist/types/components/molecules/mg-item-more/mg-item-more.conf.d.ts +3 -12
- package/dist/types/components/molecules/mg-item-more/mg-item-more.d.ts +4 -3
- package/dist/types/components/molecules/mg-loader/mg-loader.d.ts +2 -2
- package/dist/types/components/molecules/mg-message/mg-message.d.ts +2 -2
- package/dist/types/components/molecules/mg-pagination/mg-pagination.d.ts +2 -2
- package/dist/types/components/molecules/mg-panel/mg-panel.d.ts +3 -3
- package/dist/types/components/molecules/mg-popover/mg-popover.d.ts +1 -1
- package/dist/types/components.d.ts +205 -94
- package/dist/types/locales/index.conf.d.ts +4 -0
- package/ide/intellij/web-types.json +6035 -0
- package/ide/vscode/html-custom-data.json +6517 -0
- package/package.json +33 -30
- package/dist/cjs/index-0256ee6d.js.map +0 -1
- package/dist/cjs/index-f699ee11.js.map +0 -1
- package/dist/cjs/mg-action-more_34.cjs.entry.js.map +0 -1
- package/dist/collection/components/molecules/inputs/MgInput.conf.js +0 -14
- package/dist/collection/components/molecules/inputs/MgInput.conf.js.map +0 -1
- package/dist/collection/components/molecules/inputs/MgInput.js +0 -125
- package/dist/collection/components/molecules/inputs/MgInput.js.map +0 -1
- package/dist/collection/utils/playwright.e2e.test.utils.js +0 -100
- package/dist/collection/utils/playwright.e2e.test.utils.js.map +0 -1
- package/dist/components/MgInput.js +0 -155
- package/dist/components/MgInput.js.map +0 -1
- package/dist/esm/index-4ad17402.js.map +0 -1
- package/dist/esm/index-d2fc6ec0.js.map +0 -1
- package/dist/esm/mg-action-more_34.entry.js.map +0 -1
- package/dist/mg-components/p-29b5a514.js +0 -2
- package/dist/mg-components/p-29b5a514.js.map +0 -1
- package/dist/mg-components/p-568c9ea9.entry.js.map +0 -1
- package/dist/mg-components/p-57614d95.entry.js +0 -2
- package/dist/mg-components/p-57614d95.entry.js.map +0 -1
- package/dist/mg-components/p-f761ebcd.js +0 -3
- package/dist/mg-components/p-f761ebcd.js.map +0 -1
- package/dist/types/components/molecules/inputs/MgInput.conf.d.ts +0 -46
- package/dist/types/components/molecules/inputs/MgInput.d.ts +0 -13
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from '../../../../stencil-public-runtime';
|
|
2
|
-
import { type TooltipPosition, type Width } from '../MgInput.conf';
|
|
3
2
|
import { ClassList } from '@mgdis/stencil-helpers';
|
|
3
|
+
import { type TooltipPosition, type Width } from '../mg-input/mg-input.conf';
|
|
4
4
|
export declare class MgInputPassword {
|
|
5
5
|
/************
|
|
6
6
|
* Internal *
|
|
@@ -37,7 +37,7 @@ export declare class MgInputPassword {
|
|
|
37
37
|
/**
|
|
38
38
|
* Define if label is displayed on top
|
|
39
39
|
*/
|
|
40
|
-
labelOnTop
|
|
40
|
+
labelOnTop?: boolean;
|
|
41
41
|
/**
|
|
42
42
|
* Define if label is visible
|
|
43
43
|
*/
|
|
@@ -46,7 +46,7 @@ export declare class MgInputPassword {
|
|
|
46
46
|
* Input placeholder.
|
|
47
47
|
* It should be a word or short phrase that demonstrates the expected type of data, not a replacement for labels or help text.
|
|
48
48
|
*/
|
|
49
|
-
placeholder
|
|
49
|
+
placeholder?: string;
|
|
50
50
|
/**
|
|
51
51
|
* Define if input is required
|
|
52
52
|
*/
|
|
@@ -55,19 +55,22 @@ export declare class MgInputPassword {
|
|
|
55
55
|
* Define if input is readonly
|
|
56
56
|
*/
|
|
57
57
|
readonly: boolean;
|
|
58
|
+
watchReadonly(newValue: MgInputPassword['readonly']): void;
|
|
58
59
|
/**
|
|
59
60
|
* Define if input is disabled
|
|
60
61
|
*/
|
|
61
62
|
disabled: boolean;
|
|
62
63
|
handleValidityChange(newValue: boolean, _oldValue: boolean, prop: string): void;
|
|
64
|
+
watchDisabled(newValue: MgInputPassword['disabled']): void;
|
|
63
65
|
/**
|
|
64
66
|
* Define input width
|
|
65
67
|
*/
|
|
66
68
|
mgWidth: Width;
|
|
69
|
+
watchMgWidth(newValue: MgInputPassword['mgWidth']): void;
|
|
67
70
|
/**
|
|
68
71
|
* Add a tooltip message next to the input
|
|
69
72
|
*/
|
|
70
|
-
tooltip
|
|
73
|
+
tooltip?: string;
|
|
71
74
|
/**
|
|
72
75
|
* Define tooltip position
|
|
73
76
|
*/
|
|
@@ -75,7 +78,7 @@ export declare class MgInputPassword {
|
|
|
75
78
|
/**
|
|
76
79
|
* Add a help text under the input, usually expected data format and example
|
|
77
80
|
*/
|
|
78
|
-
helpText
|
|
81
|
+
helpText?: string;
|
|
79
82
|
/**
|
|
80
83
|
* Define input valid state
|
|
81
84
|
*/
|
|
@@ -92,6 +95,10 @@ export declare class MgInputPassword {
|
|
|
92
95
|
* Error message to display
|
|
93
96
|
*/
|
|
94
97
|
errorMessage: string;
|
|
98
|
+
/**
|
|
99
|
+
* Indicates if password is displayed or not
|
|
100
|
+
*/
|
|
101
|
+
displayPassword: boolean;
|
|
95
102
|
/**
|
|
96
103
|
* Emited event when value change
|
|
97
104
|
*/
|
|
@@ -126,6 +133,10 @@ export declare class MgInputPassword {
|
|
|
126
133
|
* Handle blur event
|
|
127
134
|
*/
|
|
128
135
|
private handleBlur;
|
|
136
|
+
/**
|
|
137
|
+
* Toggle display-pasword value
|
|
138
|
+
*/
|
|
139
|
+
private toggleDisplayPassword;
|
|
129
140
|
/**
|
|
130
141
|
* Check if input is valid
|
|
131
142
|
*/
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { EventEmitter } from '../../../../stencil-public-runtime';
|
|
2
2
|
import { ClassList } from '@mgdis/stencil-helpers';
|
|
3
3
|
import { RadioOption } from './mg-input-radio.conf';
|
|
4
|
-
import { type TooltipPosition } from '../
|
|
4
|
+
import { type TooltipPosition } from '../mg-input/mg-input.conf';
|
|
5
5
|
export declare class MgInputRadio {
|
|
6
6
|
/************
|
|
7
7
|
* Internal *
|
|
8
8
|
************/
|
|
9
9
|
private inputs;
|
|
10
|
+
private readonly classVerticalList;
|
|
10
11
|
private messages;
|
|
11
12
|
private hasDisplayedError;
|
|
12
13
|
private handlerInProgress;
|
|
@@ -52,6 +53,7 @@ export declare class MgInputRadio {
|
|
|
52
53
|
* Define if inputs are display verticaly
|
|
53
54
|
*/
|
|
54
55
|
inputVerticalList: boolean;
|
|
56
|
+
watchInputVerticalList(newValue: MgInputRadio['inputVerticalList']): void;
|
|
55
57
|
/**
|
|
56
58
|
* Define if input is required
|
|
57
59
|
*/
|
|
@@ -60,15 +62,17 @@ export declare class MgInputRadio {
|
|
|
60
62
|
* Define if input is readonly
|
|
61
63
|
*/
|
|
62
64
|
readonly: boolean;
|
|
65
|
+
watchReadonly(newValue: MgInputRadio['readonly']): void;
|
|
63
66
|
/**
|
|
64
67
|
* Define if input is disabled
|
|
65
68
|
*/
|
|
66
69
|
disabled: boolean;
|
|
67
70
|
handleValidityChange(newValue: boolean, _oldValue: boolean, prop: string): void;
|
|
71
|
+
watchDisabled(newValue: MgInputRadio['disabled']): void;
|
|
68
72
|
/**
|
|
69
73
|
* Add a tooltip message next to the input
|
|
70
74
|
*/
|
|
71
|
-
tooltip
|
|
75
|
+
tooltip?: string;
|
|
72
76
|
/**
|
|
73
77
|
* Define tooltip position
|
|
74
78
|
*/
|
|
@@ -76,7 +80,7 @@ export declare class MgInputRadio {
|
|
|
76
80
|
/**
|
|
77
81
|
* Add a help text under the input, usually expected data format and example
|
|
78
82
|
*/
|
|
79
|
-
helpText
|
|
83
|
+
helpText?: string;
|
|
80
84
|
/**
|
|
81
85
|
* Define input valid state
|
|
82
86
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from '../../../../stencil-public-runtime';
|
|
2
|
-
import { type TooltipPosition, type Width } from '../MgInput.conf';
|
|
3
2
|
import { ClassList } from '@mgdis/stencil-helpers';
|
|
4
3
|
import { SelectOption, OptGroup } from './mg-input-select.conf';
|
|
4
|
+
import { type TooltipPosition, type Width } from '../mg-input/mg-input.conf';
|
|
5
5
|
export declare class MgInputSelect {
|
|
6
6
|
/************
|
|
7
7
|
* Internal *
|
|
@@ -43,7 +43,7 @@ export declare class MgInputSelect {
|
|
|
43
43
|
/**
|
|
44
44
|
* Define if label is displayed on top
|
|
45
45
|
*/
|
|
46
|
-
labelOnTop
|
|
46
|
+
labelOnTop?: boolean;
|
|
47
47
|
/**
|
|
48
48
|
* Define if label is visible
|
|
49
49
|
*/
|
|
@@ -69,19 +69,22 @@ export declare class MgInputSelect {
|
|
|
69
69
|
* Define if input is readonly
|
|
70
70
|
*/
|
|
71
71
|
readonly: boolean;
|
|
72
|
+
watchReadonly(newValue: MgInputSelect['readonly']): void;
|
|
72
73
|
/**
|
|
73
74
|
* Define if input is disabled
|
|
74
75
|
*/
|
|
75
76
|
disabled: boolean;
|
|
76
77
|
handleValidityChange(newValue: boolean, _oldValue: boolean, prop: string): void;
|
|
78
|
+
watchDisabled(newValue: MgInputSelect['disabled']): void;
|
|
77
79
|
/**
|
|
78
80
|
* Define input width
|
|
79
81
|
*/
|
|
80
82
|
mgWidth: Width;
|
|
83
|
+
watchMgWidth(newValue: MgInputSelect['mgWidth']): void;
|
|
81
84
|
/**
|
|
82
85
|
* Add a tooltip message next to the input
|
|
83
86
|
*/
|
|
84
|
-
tooltip
|
|
87
|
+
tooltip?: string;
|
|
85
88
|
/**
|
|
86
89
|
* Define tooltip position
|
|
87
90
|
*/
|
|
@@ -89,7 +92,7 @@ export declare class MgInputSelect {
|
|
|
89
92
|
/**
|
|
90
93
|
* Add a help text under the input, usually expected data format and example
|
|
91
94
|
*/
|
|
92
|
-
helpText
|
|
95
|
+
helpText?: string;
|
|
93
96
|
/**
|
|
94
97
|
* Define input valid state
|
|
95
98
|
*/
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { EventEmitter } from '../../../../stencil-public-runtime';
|
|
2
|
-
import { type TooltipPosition, type Width } from '../MgInput.conf';
|
|
3
2
|
import { ClassList } from '@mgdis/stencil-helpers';
|
|
4
3
|
import { TextType } from './mg-input-text.conf';
|
|
4
|
+
import { type TooltipPosition, type Width } from '../mg-input/mg-input.conf';
|
|
5
|
+
import { IconType } from '../../../../components';
|
|
5
6
|
export declare class MgInputText {
|
|
6
7
|
/************
|
|
7
8
|
* Internal *
|
|
8
9
|
************/
|
|
9
|
-
private classFocus;
|
|
10
|
-
private classIsInputGroupAppend;
|
|
11
|
-
private classHasIcon;
|
|
10
|
+
private readonly classFocus;
|
|
11
|
+
private readonly classIsInputGroupAppend;
|
|
12
|
+
private readonly classHasIcon;
|
|
13
|
+
private readonly classHasButtonsGroupAppend;
|
|
14
|
+
private readonly classIsAppendInputSlotContent;
|
|
12
15
|
private characterLeftId;
|
|
13
16
|
private datalistId;
|
|
14
17
|
private input;
|
|
@@ -47,12 +50,12 @@ export declare class MgInputText {
|
|
|
47
50
|
/**
|
|
48
51
|
* Input icon
|
|
49
52
|
*/
|
|
50
|
-
icon
|
|
53
|
+
icon?: IconType;
|
|
51
54
|
validateIcon(newValue: string): void;
|
|
52
55
|
/**
|
|
53
56
|
* Define if label is displayed on top
|
|
54
57
|
*/
|
|
55
|
-
labelOnTop
|
|
58
|
+
labelOnTop?: boolean;
|
|
56
59
|
/**
|
|
57
60
|
* Define if label is visible
|
|
58
61
|
*/
|
|
@@ -61,7 +64,7 @@ export declare class MgInputText {
|
|
|
61
64
|
* Input placeholder.
|
|
62
65
|
* It should be a word or short phrase that demonstrates the expected type of data, not a replacement for labels or help text.
|
|
63
66
|
*/
|
|
64
|
-
placeholder
|
|
67
|
+
placeholder?: string;
|
|
65
68
|
/**
|
|
66
69
|
* Define datalist options
|
|
67
70
|
*/
|
|
@@ -79,29 +82,32 @@ export declare class MgInputText {
|
|
|
79
82
|
* Define if input is readonly
|
|
80
83
|
*/
|
|
81
84
|
readonly: boolean;
|
|
85
|
+
watchReadonly(newValue: MgInputText['readonly']): void;
|
|
82
86
|
/**
|
|
83
87
|
* Define if input is disabled
|
|
84
88
|
*/
|
|
85
89
|
disabled: boolean;
|
|
86
90
|
handleValidityChange(newValue: boolean, _oldValue: boolean, prop: string): void;
|
|
91
|
+
watchDisabled(newValue: MgInputText['disabled']): void;
|
|
87
92
|
/**
|
|
88
93
|
* Define input width
|
|
89
94
|
*/
|
|
90
95
|
mgWidth: Width;
|
|
96
|
+
watchMgWidth(newValue: MgInputText['mgWidth']): void;
|
|
91
97
|
/**
|
|
92
98
|
* Define input pattern to validate
|
|
93
99
|
* Please refer to the Pattern section in the input documentation for detailed information on using regular expressions in components.
|
|
94
100
|
*/
|
|
95
|
-
pattern
|
|
101
|
+
pattern?: string;
|
|
96
102
|
/**
|
|
97
103
|
* Define input pattern error message
|
|
98
104
|
*/
|
|
99
|
-
patternErrorMessage
|
|
105
|
+
patternErrorMessage?: string;
|
|
100
106
|
validatePattern(newValue: string): void;
|
|
101
107
|
/**
|
|
102
108
|
* Add a tooltip message next to the input
|
|
103
109
|
*/
|
|
104
|
-
tooltip
|
|
110
|
+
tooltip?: string;
|
|
105
111
|
/**
|
|
106
112
|
* Define tooltip position
|
|
107
113
|
*/
|
|
@@ -113,7 +119,7 @@ export declare class MgInputText {
|
|
|
113
119
|
/**
|
|
114
120
|
* Add a help text under the input, usually expected data format and example
|
|
115
121
|
*/
|
|
116
|
-
helpText
|
|
122
|
+
helpText?: string;
|
|
117
123
|
/**
|
|
118
124
|
* Define input valid state
|
|
119
125
|
*/
|
|
@@ -186,7 +192,7 @@ export declare class MgInputText {
|
|
|
186
192
|
*/
|
|
187
193
|
private validateAppendSlot;
|
|
188
194
|
/**
|
|
189
|
-
*
|
|
195
|
+
* Method to control datalist display condition
|
|
190
196
|
* @returns true if display condition success
|
|
191
197
|
*/
|
|
192
198
|
private hasDatalist;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { EventEmitter } from '../../../../stencil-public-runtime';
|
|
2
|
-
import { type TooltipPosition, type Width } from '../MgInput.conf';
|
|
3
2
|
import { ClassList } from '@mgdis/stencil-helpers';
|
|
3
|
+
import { type TooltipPosition, type Width } from '../mg-input/mg-input.conf';
|
|
4
4
|
export declare class MgInputTextarea {
|
|
5
5
|
/************
|
|
6
6
|
* Internal *
|
|
7
7
|
************/
|
|
8
|
-
private classFocus;
|
|
9
|
-
private classHasDisplayCharacterLeft;
|
|
8
|
+
private readonly classFocus;
|
|
9
|
+
private readonly classHasDisplayCharacterLeft;
|
|
10
10
|
private characterLeftId;
|
|
11
11
|
private input;
|
|
12
12
|
private messages;
|
|
@@ -40,7 +40,7 @@ export declare class MgInputTextarea {
|
|
|
40
40
|
/**
|
|
41
41
|
* Define if label is displayed on top
|
|
42
42
|
*/
|
|
43
|
-
labelOnTop
|
|
43
|
+
labelOnTop?: boolean;
|
|
44
44
|
/**
|
|
45
45
|
* Define if label is visible
|
|
46
46
|
*/
|
|
@@ -49,7 +49,7 @@ export declare class MgInputTextarea {
|
|
|
49
49
|
* Input placeholder.
|
|
50
50
|
* It should be a word or short phrase that demonstrates the expected type of data, not a replacement for labels or help text.
|
|
51
51
|
*/
|
|
52
|
-
placeholder
|
|
52
|
+
placeholder?: string;
|
|
53
53
|
/**
|
|
54
54
|
* Input max length
|
|
55
55
|
*/
|
|
@@ -62,24 +62,27 @@ export declare class MgInputTextarea {
|
|
|
62
62
|
* Define if input is readonly
|
|
63
63
|
*/
|
|
64
64
|
readonly: boolean;
|
|
65
|
+
watchReadonly(newValue: MgInputTextarea['readonly']): void;
|
|
65
66
|
/**
|
|
66
67
|
* Define if input is disabled
|
|
67
68
|
*/
|
|
68
69
|
disabled: boolean;
|
|
69
70
|
handleValidityChange(newValue: boolean, _oldValue: boolean, prop: string): void;
|
|
71
|
+
validateDisabled(newValue: MgInputTextarea['disabled']): void;
|
|
70
72
|
/**
|
|
71
73
|
* Define input width
|
|
72
74
|
*/
|
|
73
75
|
mgWidth: Width;
|
|
76
|
+
watchMgWidth(newValue: MgInputTextarea['mgWidth']): void;
|
|
74
77
|
/**
|
|
75
78
|
* Define input pattern to validate
|
|
76
79
|
* Please refer to the Pattern section in the input documentation for detailed information on using regular expressions in components.
|
|
77
80
|
*/
|
|
78
|
-
pattern
|
|
81
|
+
pattern?: string;
|
|
79
82
|
/**
|
|
80
83
|
* Define input pattern error message
|
|
81
84
|
*/
|
|
82
|
-
patternErrorMessage
|
|
85
|
+
patternErrorMessage?: string;
|
|
83
86
|
validatePattern(newValue: string): void;
|
|
84
87
|
/**
|
|
85
88
|
* Define the number of visible text lines for the control
|
|
@@ -88,7 +91,7 @@ export declare class MgInputTextarea {
|
|
|
88
91
|
/**
|
|
89
92
|
* Add a tooltip message next to the input
|
|
90
93
|
*/
|
|
91
|
-
tooltip
|
|
94
|
+
tooltip?: string;
|
|
92
95
|
/**
|
|
93
96
|
* Define tooltip position
|
|
94
97
|
*/
|
|
@@ -101,7 +104,7 @@ export declare class MgInputTextarea {
|
|
|
101
104
|
/**
|
|
102
105
|
* Add a help text under the input, usually expected data format and example
|
|
103
106
|
*/
|
|
104
|
-
helpText
|
|
107
|
+
helpText?: string;
|
|
105
108
|
/**
|
|
106
109
|
* Define input valid state
|
|
107
110
|
*/
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { EventEmitter } from '../../../../stencil-public-runtime';
|
|
2
2
|
import { ClassList } from '@mgdis/stencil-helpers';
|
|
3
3
|
import { ToggleValue } from './mg-input-toggle.conf';
|
|
4
|
-
import { type TooltipPosition } from '../
|
|
4
|
+
import { type TooltipPosition } from '../mg-input/mg-input.conf';
|
|
5
5
|
export declare class MgInputToggle {
|
|
6
6
|
/************
|
|
7
7
|
* Internal *
|
|
8
8
|
************/
|
|
9
|
-
private
|
|
10
|
-
private
|
|
11
|
-
private
|
|
12
|
-
private classIcon;
|
|
9
|
+
private readonly classIsActive;
|
|
10
|
+
private readonly classOnOff;
|
|
11
|
+
private readonly classIcon;
|
|
13
12
|
/**************
|
|
14
13
|
* Decorators *
|
|
15
14
|
**************/
|
|
@@ -43,7 +42,7 @@ export declare class MgInputToggle {
|
|
|
43
42
|
/**
|
|
44
43
|
* Define if label is displayed on top
|
|
45
44
|
*/
|
|
46
|
-
labelOnTop
|
|
45
|
+
labelOnTop?: boolean;
|
|
47
46
|
/**
|
|
48
47
|
* Define if label is visible
|
|
49
48
|
*/
|
|
@@ -52,25 +51,26 @@ export declare class MgInputToggle {
|
|
|
52
51
|
* Define if toggle have on/off style
|
|
53
52
|
*/
|
|
54
53
|
isOnOff: boolean;
|
|
55
|
-
|
|
54
|
+
watchIsOnOff(newValue: MgInputToggle['isOnOff']): void;
|
|
56
55
|
/**
|
|
57
56
|
* Define if toggle display icon
|
|
58
57
|
*/
|
|
59
58
|
isIcon: boolean;
|
|
60
|
-
|
|
59
|
+
watchIsIcon(newValue: MgInputToggle['isIcon']): void;
|
|
61
60
|
/**
|
|
62
61
|
* Define if input is readonly
|
|
63
62
|
*/
|
|
64
63
|
readonly: boolean;
|
|
64
|
+
watchReadonly(newValue: MgInputToggle['readonly']): void;
|
|
65
65
|
/**
|
|
66
66
|
* Define if input is disabled
|
|
67
67
|
*/
|
|
68
68
|
disabled: boolean;
|
|
69
|
-
|
|
69
|
+
watchDisabled(newValue: MgInputToggle['disabled']): void;
|
|
70
70
|
/**
|
|
71
71
|
* Add a tooltip message next to the input
|
|
72
72
|
*/
|
|
73
|
-
tooltip
|
|
73
|
+
tooltip?: string;
|
|
74
74
|
/**
|
|
75
75
|
* Define tooltip position
|
|
76
76
|
*/
|
|
@@ -78,7 +78,7 @@ export declare class MgInputToggle {
|
|
|
78
78
|
/**
|
|
79
79
|
* Add a help text under the input, usually expected data format and example
|
|
80
80
|
*/
|
|
81
|
-
helpText
|
|
81
|
+
helpText?: string;
|
|
82
82
|
/**
|
|
83
83
|
* Component classes
|
|
84
84
|
*/
|
|
@@ -132,7 +132,7 @@ export declare class MgInputToggle {
|
|
|
132
132
|
private validateSlots;
|
|
133
133
|
/**
|
|
134
134
|
* Get checked item
|
|
135
|
-
* @param checked
|
|
135
|
+
* @param checked - checked item
|
|
136
136
|
* @returns toggle value
|
|
137
137
|
*/
|
|
138
138
|
private getCheckedItem;
|
|
@@ -29,7 +29,7 @@ export declare class MgMenu {
|
|
|
29
29
|
* Customize "mg-item-more" element
|
|
30
30
|
* Used with direction: 'vertical' to manage overflow
|
|
31
31
|
*/
|
|
32
|
-
itemmore
|
|
32
|
+
itemmore?: ItemMoreType;
|
|
33
33
|
validateItemMore(newValue: MgMenu['itemmore']): void;
|
|
34
34
|
/**
|
|
35
35
|
* Define mg-menu size
|
|
@@ -19,3 +19,11 @@ export declare enum Status {
|
|
|
19
19
|
* Direction type
|
|
20
20
|
*/
|
|
21
21
|
export type DirectionType = MgMenu['direction'];
|
|
22
|
+
/**
|
|
23
|
+
* List of all possibles target
|
|
24
|
+
*/
|
|
25
|
+
export declare const targets: readonly ["_blank", "_self", "_parent", "_top"];
|
|
26
|
+
/**
|
|
27
|
+
* VariantType type from link target
|
|
28
|
+
*/
|
|
29
|
+
export type TargetType = (typeof targets)[number];
|
|
@@ -2,14 +2,14 @@ import { EventEmitter } from '../../../../stencil-public-runtime';
|
|
|
2
2
|
import { ClassList } from '@mgdis/stencil-helpers';
|
|
3
3
|
import { Status } from './mg-menu-item.conf';
|
|
4
4
|
import type { MenuSizeType } from '../mg-menu/mg-menu.conf';
|
|
5
|
-
import type { DirectionType } from './mg-menu-item.conf';
|
|
5
|
+
import type { DirectionType, TargetType } from './mg-menu-item.conf';
|
|
6
6
|
export declare class MgMenuItem {
|
|
7
7
|
/************
|
|
8
8
|
* Internal *
|
|
9
9
|
************/
|
|
10
10
|
private readonly name;
|
|
11
11
|
private readonly navigationButton;
|
|
12
|
-
private
|
|
12
|
+
private messages;
|
|
13
13
|
/**************
|
|
14
14
|
* Decorators *
|
|
15
15
|
**************/
|
|
@@ -28,16 +28,21 @@ export declare class MgMenuItem {
|
|
|
28
28
|
* Define menu-item href
|
|
29
29
|
* when defined menu-item contain an anchor instead of button
|
|
30
30
|
*/
|
|
31
|
-
href
|
|
31
|
+
href?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Define target type
|
|
34
|
+
*/
|
|
35
|
+
target?: TargetType;
|
|
36
|
+
watchTarget(newValue: MgMenuItem['target']): void;
|
|
32
37
|
/**
|
|
33
38
|
* Define menu-item status.
|
|
34
39
|
*/
|
|
35
|
-
status
|
|
40
|
+
status?: Status;
|
|
36
41
|
validateStatus(newValue: MgMenuItem['status'], oldValue?: MgMenuItem['status']): void;
|
|
37
42
|
/**
|
|
38
43
|
* Define menu-item content expanded.
|
|
39
44
|
*/
|
|
40
|
-
expanded
|
|
45
|
+
expanded?: boolean;
|
|
41
46
|
validateExpanded(newValue: MgMenuItem['expanded']): void;
|
|
42
47
|
/**********
|
|
43
48
|
* Events *
|
|
@@ -1,22 +1,15 @@
|
|
|
1
|
-
import { MgBadge } from '../../atoms/mg-badge/mg-badge';
|
|
2
|
-
import { MgButton } from '../../atoms/mg-button/mg-button';
|
|
3
|
-
import { MgIcon } from '../../atoms/mg-icon/mg-icon';
|
|
4
|
-
import { MgMenuItem } from '../menu/mg-menu-item/mg-menu-item';
|
|
1
|
+
import type { MgBadge } from '../../atoms/mg-badge/mg-badge';
|
|
2
|
+
import type { MgButton } from '../../atoms/mg-button/mg-button';
|
|
3
|
+
import type { MgIcon } from '../../atoms/mg-icon/mg-icon';
|
|
4
|
+
import type { MgMenuItem } from '../menu/mg-menu-item/mg-menu-item';
|
|
5
5
|
/**
|
|
6
6
|
* prop icon type
|
|
7
7
|
*/
|
|
8
|
-
export type MgActionMoreIconType =
|
|
9
|
-
icon: MgIcon['icon'];
|
|
10
|
-
};
|
|
8
|
+
export type MgActionMoreIconType = Pick<MgIcon, 'icon'>;
|
|
11
9
|
/**
|
|
12
10
|
* prop button type
|
|
13
11
|
*/
|
|
14
|
-
export type MgActionMoreButtonType =
|
|
15
|
-
isIcon: MgButton['isIcon'];
|
|
16
|
-
variant: MgButton['variant'];
|
|
17
|
-
label?: MgButton['label'];
|
|
18
|
-
disabled?: MgButton['disabled'];
|
|
19
|
-
};
|
|
12
|
+
export type MgActionMoreButtonType = Pick<MgButton, 'isIcon' | 'variant' | 'label' | 'disabled'>;
|
|
20
13
|
/**
|
|
21
14
|
* locals message type
|
|
22
15
|
*/
|
|
@@ -26,12 +19,10 @@ export type MgActionMoreMessageType = {
|
|
|
26
19
|
/**
|
|
27
20
|
* prop item type
|
|
28
21
|
*/
|
|
29
|
-
export type MgActionMoreItemType = {
|
|
22
|
+
export type MgActionMoreItemType = Pick<MgMenuItem, 'status' | 'href' | 'target'> & {
|
|
30
23
|
label: string;
|
|
31
24
|
mouseEventHandler: IMouseEventHandler;
|
|
32
|
-
status?: MgMenuItem['status'];
|
|
33
25
|
icon?: MgIcon['icon'];
|
|
34
|
-
href?: MgMenuItem['href'];
|
|
35
26
|
badge?: Pick<MgBadge, 'value' | 'label'>;
|
|
36
27
|
};
|
|
37
28
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MgActionMoreItemType, MgActionMoreButtonType, MgActionMoreIconType } from './mg-action-more.conf';
|
|
1
|
+
import type { MgActionMoreItemType, MgActionMoreButtonType, MgActionMoreIconType } from './mg-action-more.conf';
|
|
2
2
|
export declare class MgActionMore {
|
|
3
3
|
/************
|
|
4
4
|
* Internal *
|
|
@@ -14,25 +14,25 @@ export declare class MgActionMore {
|
|
|
14
14
|
* Get component DOM element
|
|
15
15
|
*/
|
|
16
16
|
element: HTMLMgActionMoreElement;
|
|
17
|
+
/**
|
|
18
|
+
* Define the menu-items elements
|
|
19
|
+
*/
|
|
20
|
+
items: MgActionMoreItemType[];
|
|
21
|
+
validateItems(newValue: MgActionMore['items']): void;
|
|
17
22
|
/**
|
|
18
23
|
* Define displayed icon
|
|
19
24
|
*/
|
|
20
|
-
icon
|
|
25
|
+
icon?: MgActionMoreIconType;
|
|
21
26
|
validateIcon(newValue: MgActionMore['icon']): void;
|
|
22
27
|
/**
|
|
23
28
|
* Define button properties
|
|
24
29
|
*/
|
|
25
|
-
button
|
|
30
|
+
button?: MgActionMoreButtonType;
|
|
26
31
|
validateButton(newValue: MgActionMore['button']): void;
|
|
27
|
-
/**
|
|
28
|
-
* Define the menu-items elements
|
|
29
|
-
*/
|
|
30
|
-
items: MgActionMoreItemType[];
|
|
31
|
-
validateItems(newValue: MgActionMore['items']): void;
|
|
32
32
|
/**
|
|
33
33
|
* Define if chevron is display
|
|
34
34
|
*/
|
|
35
|
-
displayChevron
|
|
35
|
+
displayChevron?: boolean;
|
|
36
36
|
validateDisplayChevron(newValue: MgActionMore['displayChevron']): void;
|
|
37
37
|
/**
|
|
38
38
|
* Menu expanded state
|
|
@@ -39,18 +39,18 @@ export declare class MgForm {
|
|
|
39
39
|
* As **this element is an accessibility requirement in the view**,
|
|
40
40
|
* you **MUST*** re-implement this message on your own and display it when your form contains required inputs.
|
|
41
41
|
*/
|
|
42
|
-
requiredMessage
|
|
42
|
+
requiredMessage?: RequiredMessageStatusType;
|
|
43
43
|
validateRequiredMessage(newValue: any): void;
|
|
44
44
|
/**
|
|
45
45
|
* Define `<form/>` element aria role
|
|
46
46
|
* see more about aria roles use case: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles
|
|
47
47
|
*/
|
|
48
|
-
ariaRole
|
|
48
|
+
ariaRole?: AriaRoleType;
|
|
49
49
|
validateAriaRole(newValue: MgForm['ariaRole']): void;
|
|
50
50
|
/**
|
|
51
51
|
* Define if slotted mg-component's label are displayed on top
|
|
52
52
|
*/
|
|
53
|
-
labelOnTop
|
|
53
|
+
labelOnTop?: boolean;
|
|
54
54
|
handlelabelOnTop(newValue: MgForm['labelOnTop']): void;
|
|
55
55
|
/**
|
|
56
56
|
* Define if form is disabled
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
import { MgIcon } from '../../atoms/mg-icon/mg-icon';
|
|
2
|
-
import { MgMenu } from '../menu/mg-menu/mg-menu';
|
|
3
|
-
/**
|
|
4
|
-
* message type
|
|
5
|
-
*/
|
|
6
|
-
export type MessageType = {
|
|
7
|
-
moreLabel: string;
|
|
8
|
-
badgeLabel: string;
|
|
9
|
-
};
|
|
1
|
+
import type { MgIcon } from '../../atoms/mg-icon/mg-icon';
|
|
2
|
+
import type { MgMenu } from '../menu/mg-menu/mg-menu';
|
|
10
3
|
/**
|
|
11
4
|
* SlotLabel prop type
|
|
12
5
|
*/
|
|
@@ -17,9 +10,7 @@ export type SlotLabelType = {
|
|
|
17
10
|
/**
|
|
18
11
|
* icon prop type
|
|
19
12
|
*/
|
|
20
|
-
export type IconType =
|
|
21
|
-
icon: MgIcon['icon'];
|
|
22
|
-
};
|
|
13
|
+
export type IconType = Pick<MgIcon, 'icon'>;
|
|
23
14
|
/**
|
|
24
15
|
* size type
|
|
25
16
|
*/
|
|
@@ -19,17 +19,17 @@ export declare class MgItemMore {
|
|
|
19
19
|
/**
|
|
20
20
|
* Define icon
|
|
21
21
|
*/
|
|
22
|
-
icon
|
|
22
|
+
icon?: IconType;
|
|
23
23
|
validateIcon(newValue: MgItemMore['icon']): void;
|
|
24
24
|
/**
|
|
25
25
|
* Define slot label element
|
|
26
26
|
*/
|
|
27
|
-
slotlabel
|
|
27
|
+
slotlabel?: SlotLabelType;
|
|
28
28
|
validateSlotLabel(newValue: MgItemMore['slotlabel']): void;
|
|
29
29
|
/**
|
|
30
30
|
* Define component child menu size.
|
|
31
31
|
*/
|
|
32
|
-
size
|
|
32
|
+
size?: SizeType;
|
|
33
33
|
validateSize(newValue: MgItemMore['size']): void;
|
|
34
34
|
/**
|
|
35
35
|
* Define component parent menu.
|
|
@@ -52,6 +52,7 @@ export declare class MgItemMore {
|
|
|
52
52
|
componentWillLoad(): void;
|
|
53
53
|
/**
|
|
54
54
|
* Ensure parent DOM is fully rendered with timeout method before parse elements
|
|
55
|
+
* @returns timeout
|
|
55
56
|
*/
|
|
56
57
|
componentDidLoad(): ReturnType<typeof setTimeout>;
|
|
57
58
|
/**
|
|
@@ -13,12 +13,12 @@ export declare class MgLoader {
|
|
|
13
13
|
/**
|
|
14
14
|
* Override loader message
|
|
15
15
|
*/
|
|
16
|
-
message
|
|
16
|
+
message?: string;
|
|
17
17
|
watchMessage(newValue: MgLoader['message']): void;
|
|
18
18
|
/**
|
|
19
19
|
* Hide message
|
|
20
20
|
*/
|
|
21
|
-
messageHide
|
|
21
|
+
messageHide?: boolean;
|
|
22
22
|
/*************
|
|
23
23
|
* Lifecycle *
|
|
24
24
|
*************/
|