@mgdis/mg-components 6.12.0 → 6.13.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_37.cjs.entry.js +211 -45
- package/dist/cjs/mg-action-more_37.cjs.entry.js.map +1 -1
- package/dist/cjs/mg-components.cjs.js +1 -1
- package/dist/cjs/mg-input-combobox.cjs.entry.js +38 -16
- package/dist/cjs/mg-input-combobox.cjs.entry.js.map +1 -1
- package/dist/cjs/mg-input-combobox.entry.cjs.js.map +1 -1
- package/dist/cjs/mg-input-rich-text-editor.cjs.entry.js +33 -15
- package/dist/cjs/mg-input-rich-text-editor.cjs.entry.js.map +1 -1
- package/dist/cjs/mg-input-rich-text-editor.entry.cjs.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.js +2 -1
- 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.js +42 -5
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-combobox/mg-input-combobox.js +38 -16
- package/dist/collection/components/molecules/inputs/mg-input-combobox/mg-input-combobox.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +39 -5
- 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 +41 -6
- 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 +39 -4
- 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 -4
- package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-rich-text-editor/mg-input-rich-text-editor.js +51 -16
- package/dist/collection/components/molecules/inputs/mg-input-rich-text-editor/mg-input-rich-text-editor.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +39 -4
- 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 +19 -7
- 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 +39 -4
- 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 +40 -6
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js.map +1 -1
- package/dist/collection/components/molecules/mg-form/mg-form.js +23 -1
- package/dist/collection/components/molecules/mg-form/mg-form.js.map +1 -1
- package/dist/components/mg-form.js +9 -1
- package/dist/components/mg-form.js.map +1 -1
- package/dist/components/mg-input-checkbox-paginated2.js +2 -1
- package/dist/components/mg-input-checkbox-paginated2.js.map +1 -1
- package/dist/components/mg-input-checkbox.js +26 -5
- package/dist/components/mg-input-checkbox.js.map +1 -1
- package/dist/components/mg-input-combobox.js +38 -16
- package/dist/components/mg-input-combobox.js.map +1 -1
- package/dist/components/mg-input-date.js +23 -5
- package/dist/components/mg-input-date.js.map +1 -1
- package/dist/components/mg-input-numeric.js +23 -4
- package/dist/components/mg-input-numeric.js.map +1 -1
- package/dist/components/mg-input-password.js +23 -4
- package/dist/components/mg-input-password.js.map +1 -1
- package/dist/components/mg-input-radio.js +24 -4
- package/dist/components/mg-input-radio.js.map +1 -1
- package/dist/components/mg-input-rich-text-editor.js +34 -15
- package/dist/components/mg-input-rich-text-editor.js.map +1 -1
- package/dist/components/mg-input-select2.js +23 -4
- package/dist/components/mg-input-select2.js.map +1 -1
- package/dist/components/mg-input-text2.js +18 -6
- package/dist/components/mg-input-text2.js.map +1 -1
- package/dist/components/mg-input-textarea.js +23 -4
- package/dist/components/mg-input-textarea.js.map +1 -1
- package/dist/components/mg-input-toggle.js +24 -6
- package/dist/components/mg-input-toggle.js.map +1 -1
- package/dist/components/mg-table.js +1 -1
- package/dist/components/mg-table.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mg-action-more_37.entry.js +211 -45
- package/dist/esm/mg-action-more_37.entry.js.map +1 -1
- package/dist/esm/mg-components.js +1 -1
- package/dist/esm/mg-input-combobox.entry.js +38 -16
- package/dist/esm/mg-input-combobox.entry.js.map +1 -1
- package/dist/esm/mg-input-rich-text-editor.entry.js +33 -15
- package/dist/esm/mg-input-rich-text-editor.entry.js.map +1 -1
- package/dist/mg-components/mg-components.esm.js +1 -1
- package/dist/mg-components/mg-input-combobox.entry.esm.js.map +1 -1
- package/dist/mg-components/mg-input-rich-text-editor.entry.esm.js.map +1 -1
- package/dist/mg-components/p-3e92299a.entry.js +2 -0
- package/dist/mg-components/p-3e92299a.entry.js.map +1 -0
- package/dist/mg-components/p-c907ddac.entry.js +2 -0
- package/dist/mg-components/p-c907ddac.entry.js.map +1 -0
- package/dist/mg-components/{p-3853afb5.entry.js → p-e7a7c651.entry.js} +2 -2
- package/dist/mg-components/p-e7a7c651.entry.js.map +1 -0
- package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.d.ts +4 -0
- package/dist/types/components/molecules/inputs/mg-input-combobox/mg-input-combobox.d.ts +1 -1
- package/dist/types/components/molecules/inputs/mg-input-date/mg-input-date.d.ts +4 -0
- package/dist/types/components/molecules/inputs/mg-input-numeric/mg-input-numeric.d.ts +6 -2
- package/dist/types/components/molecules/inputs/mg-input-password/mg-input-password.d.ts +4 -0
- package/dist/types/components/molecules/inputs/mg-input-radio/mg-input-radio.d.ts +4 -0
- package/dist/types/components/molecules/inputs/mg-input-rich-text-editor/mg-input-rich-text-editor.d.ts +4 -0
- package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.d.ts +4 -0
- package/dist/types/components/molecules/inputs/mg-input-text/mg-input-text.d.ts +1 -1
- package/dist/types/components/molecules/inputs/mg-input-textarea/mg-input-textarea.d.ts +4 -0
- package/dist/types/components/molecules/inputs/mg-input-toggle/mg-input-toggle.d.ts +9 -4
- package/dist/types/components/molecules/mg-form/mg-form.d.ts +4 -0
- package/dist/types/components.d.ts +47 -6
- package/ide/intellij/web-types.json +21 -17
- package/ide/vscode/html-custom-data.json +14 -14
- package/package.json +20 -20
- package/dist/mg-components/p-3853afb5.entry.js.map +0 -1
- package/dist/mg-components/p-5a05b1da.entry.js +0 -2
- package/dist/mg-components/p-5a05b1da.entry.js.map +0 -1
- package/dist/mg-components/p-74b5112a.entry.js +0 -2
- package/dist/mg-components/p-74b5112a.entry.js.map +0 -1
|
@@ -159,6 +159,10 @@ export declare class MgInputCheckbox implements Omit<MgInputCheckboxListProps, '
|
|
|
159
159
|
* Emited event when checking validity
|
|
160
160
|
*/
|
|
161
161
|
inputValid: EventEmitter<HTMLMgInputCheckboxElement['valid']>;
|
|
162
|
+
/**
|
|
163
|
+
* Set focus on input.
|
|
164
|
+
*/
|
|
165
|
+
setFocus(): Promise<void>;
|
|
162
166
|
/**
|
|
163
167
|
* Display input error if it exists.
|
|
164
168
|
*/
|
|
@@ -111,6 +111,10 @@ export declare class MgInputDate {
|
|
|
111
111
|
* Emited event when checking validity
|
|
112
112
|
*/
|
|
113
113
|
inputValid: EventEmitter<HTMLMgInputDateElement['valid']>;
|
|
114
|
+
/**
|
|
115
|
+
* Set focus on input.
|
|
116
|
+
*/
|
|
117
|
+
setFocus(): Promise<void>;
|
|
114
118
|
/**
|
|
115
119
|
* Display input error if it exists.
|
|
116
120
|
*/
|
|
@@ -132,11 +132,11 @@ export declare class MgInputNumeric {
|
|
|
132
132
|
decimalLength: number;
|
|
133
133
|
validateDecimalLength(newValue: MgInputNumeric['decimalLength']): void;
|
|
134
134
|
/**
|
|
135
|
-
* Define input
|
|
135
|
+
* Define input valid state
|
|
136
136
|
*/
|
|
137
137
|
valid: boolean;
|
|
138
138
|
/**
|
|
139
|
-
* Define input
|
|
139
|
+
* Define input invalid state
|
|
140
140
|
*/
|
|
141
141
|
invalid: boolean;
|
|
142
142
|
/**
|
|
@@ -159,6 +159,10 @@ export declare class MgInputNumeric {
|
|
|
159
159
|
* Emited event when checking validity
|
|
160
160
|
*/
|
|
161
161
|
inputValid: EventEmitter<HTMLMgInputNumericElement['valid']>;
|
|
162
|
+
/**
|
|
163
|
+
* Set focus on input.
|
|
164
|
+
*/
|
|
165
|
+
setFocus(): Promise<void>;
|
|
162
166
|
/**
|
|
163
167
|
* Display input error if it exists.
|
|
164
168
|
*/
|
|
@@ -111,6 +111,10 @@ export declare class MgInputPassword {
|
|
|
111
111
|
* Emited event when checking validity
|
|
112
112
|
*/
|
|
113
113
|
inputValid: EventEmitter<HTMLMgInputPasswordElement['valid']>;
|
|
114
|
+
/**
|
|
115
|
+
* Set focus on input.
|
|
116
|
+
*/
|
|
117
|
+
setFocus(): Promise<void>;
|
|
114
118
|
/**
|
|
115
119
|
* Display input error if it exists.
|
|
116
120
|
*/
|
|
@@ -113,6 +113,10 @@ export declare class MgInputRadio {
|
|
|
113
113
|
* Emited event when checking validity
|
|
114
114
|
*/
|
|
115
115
|
inputValid: EventEmitter<HTMLMgInputRadioElement['valid']>;
|
|
116
|
+
/**
|
|
117
|
+
* Set focus on input.
|
|
118
|
+
*/
|
|
119
|
+
setFocus(): Promise<void>;
|
|
116
120
|
/**
|
|
117
121
|
* Display input error if it exists.
|
|
118
122
|
*/
|
|
@@ -113,6 +113,10 @@ export declare class MgInputRichTextEditor {
|
|
|
113
113
|
* Emited event when value change
|
|
114
114
|
*/
|
|
115
115
|
valueChange: EventEmitter<string>;
|
|
116
|
+
/**
|
|
117
|
+
* Set focus on input.
|
|
118
|
+
*/
|
|
119
|
+
setFocus(): Promise<void>;
|
|
116
120
|
/**
|
|
117
121
|
* Get editor content as HTML
|
|
118
122
|
* @returns HTML content of the editor
|
|
@@ -129,6 +129,10 @@ export declare class MgInputSelect {
|
|
|
129
129
|
* Emited event when checking validity
|
|
130
130
|
*/
|
|
131
131
|
inputValid: EventEmitter<HTMLMgInputCheckboxElement['valid']>;
|
|
132
|
+
/**
|
|
133
|
+
* Set focus on input.
|
|
134
|
+
*/
|
|
135
|
+
setFocus(): Promise<void>;
|
|
132
136
|
/**
|
|
133
137
|
* Display input error if it exists.
|
|
134
138
|
*/
|
|
@@ -133,6 +133,10 @@ export declare class MgInputTextarea {
|
|
|
133
133
|
* Emited event when checking validity
|
|
134
134
|
*/
|
|
135
135
|
inputValid: EventEmitter<HTMLMgInputTextareaElement['valid']>;
|
|
136
|
+
/**
|
|
137
|
+
* Set focus on input.
|
|
138
|
+
*/
|
|
139
|
+
setFocus(): Promise<void>;
|
|
136
140
|
/**
|
|
137
141
|
* Display input error if it exists.
|
|
138
142
|
*/
|
|
@@ -10,6 +10,7 @@ export declare class MgInputToggle {
|
|
|
10
10
|
/************
|
|
11
11
|
* Internal *
|
|
12
12
|
************/
|
|
13
|
+
private button;
|
|
13
14
|
private readonly classIsActive;
|
|
14
15
|
private readonly classOnOff;
|
|
15
16
|
private readonly classIcon;
|
|
@@ -112,6 +113,10 @@ export declare class MgInputToggle {
|
|
|
112
113
|
* Emited event when checking validity
|
|
113
114
|
*/
|
|
114
115
|
inputValid: EventEmitter<boolean>;
|
|
116
|
+
/**
|
|
117
|
+
* Set focus on input.
|
|
118
|
+
*/
|
|
119
|
+
setFocus(): Promise<void>;
|
|
115
120
|
/**
|
|
116
121
|
* Set an error and display a custom error message.
|
|
117
122
|
* This method can be used to set the component's error state from its context by passing a boolean value to the `valid` parameter.
|
|
@@ -121,15 +126,15 @@ export declare class MgInputToggle {
|
|
|
121
126
|
* @param errorMessage - the error message to display
|
|
122
127
|
*/
|
|
123
128
|
setError(valid: boolean, errorMessage: string): Promise<void>;
|
|
129
|
+
/**
|
|
130
|
+
* Reset value, validity, error and visual state
|
|
131
|
+
*/
|
|
132
|
+
reset(): Promise<void>;
|
|
124
133
|
/**
|
|
125
134
|
* Set input error message
|
|
126
135
|
* @param errorMessage - errorMessage override
|
|
127
136
|
*/
|
|
128
137
|
private setErrorMessage;
|
|
129
|
-
/**
|
|
130
|
-
* Reset value, validity, error and visual state
|
|
131
|
-
*/
|
|
132
|
-
reset(): Promise<void>;
|
|
133
138
|
/**
|
|
134
139
|
* Change checked value
|
|
135
140
|
*/
|
|
@@ -387,6 +387,10 @@ export namespace Components {
|
|
|
387
387
|
* @param errorMessage - the error message to display
|
|
388
388
|
*/
|
|
389
389
|
"setError": (valid: MgInputCheckbox["valid"], errorMessage: string) => Promise<void>;
|
|
390
|
+
/**
|
|
391
|
+
* Set focus on input.
|
|
392
|
+
*/
|
|
393
|
+
"setFocus": () => Promise<void>;
|
|
390
394
|
/**
|
|
391
395
|
* Overwrite default "show" button message
|
|
392
396
|
*/
|
|
@@ -534,7 +538,7 @@ export namespace Components {
|
|
|
534
538
|
*/
|
|
535
539
|
"setError": (valid: MgInputCombobox["valid"], errorMessage: string) => Promise<void>;
|
|
536
540
|
/**
|
|
537
|
-
*
|
|
541
|
+
* Set focus on input.
|
|
538
542
|
*/
|
|
539
543
|
"setFocus": () => Promise<void>;
|
|
540
544
|
/**
|
|
@@ -617,6 +621,10 @@ export namespace Components {
|
|
|
617
621
|
* @param errorMessage - the error message to display
|
|
618
622
|
*/
|
|
619
623
|
"setError": (valid: MgInputDate["valid"], errorMessage: string) => Promise<void>;
|
|
624
|
+
/**
|
|
625
|
+
* Set focus on input.
|
|
626
|
+
*/
|
|
627
|
+
"setFocus": () => Promise<void>;
|
|
620
628
|
/**
|
|
621
629
|
* Add a tooltip message next to the input
|
|
622
630
|
*/
|
|
@@ -668,7 +676,7 @@ export namespace Components {
|
|
|
668
676
|
*/
|
|
669
677
|
"integerLength": number;
|
|
670
678
|
/**
|
|
671
|
-
* Define input
|
|
679
|
+
* Define input invalid state
|
|
672
680
|
*/
|
|
673
681
|
"invalid": boolean;
|
|
674
682
|
/**
|
|
@@ -721,6 +729,10 @@ export namespace Components {
|
|
|
721
729
|
* @param errorMessage - the error message to display
|
|
722
730
|
*/
|
|
723
731
|
"setError": (valid: MgInputNumeric["valid"], errorMessage: string) => Promise<void>;
|
|
732
|
+
/**
|
|
733
|
+
* Set focus on input.
|
|
734
|
+
*/
|
|
735
|
+
"setFocus": () => Promise<void>;
|
|
724
736
|
/**
|
|
725
737
|
* Add a tooltip message next to the input
|
|
726
738
|
*/
|
|
@@ -742,7 +754,7 @@ export namespace Components {
|
|
|
742
754
|
*/
|
|
743
755
|
"unitDisplay": Intl.NumberFormatOptions['unitDisplay'];
|
|
744
756
|
/**
|
|
745
|
-
* Define input
|
|
757
|
+
* Define input valid state
|
|
746
758
|
*/
|
|
747
759
|
"valid": boolean;
|
|
748
760
|
/**
|
|
@@ -817,6 +829,10 @@ export namespace Components {
|
|
|
817
829
|
* @param errorMessage - the error message to display
|
|
818
830
|
*/
|
|
819
831
|
"setError": (valid: MgInputPassword["valid"], errorMessage: string) => Promise<void>;
|
|
832
|
+
/**
|
|
833
|
+
* Set focus on input.
|
|
834
|
+
*/
|
|
835
|
+
"setFocus": () => Promise<void>;
|
|
820
836
|
/**
|
|
821
837
|
* Add a tooltip message next to the input
|
|
822
838
|
*/
|
|
@@ -897,6 +913,10 @@ export namespace Components {
|
|
|
897
913
|
* @param errorMessage - the error message to display
|
|
898
914
|
*/
|
|
899
915
|
"setError": (valid: MgInputRadio["valid"], errorMessage: string) => Promise<void>;
|
|
916
|
+
/**
|
|
917
|
+
* Set focus on input.
|
|
918
|
+
*/
|
|
919
|
+
"setFocus": () => Promise<void>;
|
|
900
920
|
/**
|
|
901
921
|
* Add a tooltip message next to the input
|
|
902
922
|
*/
|
|
@@ -995,6 +1015,10 @@ export namespace Components {
|
|
|
995
1015
|
* @param errorMessage - the error message to display
|
|
996
1016
|
*/
|
|
997
1017
|
"setError": (valid: MgInputRichTextEditor["valid"], errorMessage: string) => Promise<void>;
|
|
1018
|
+
/**
|
|
1019
|
+
* Set focus on input.
|
|
1020
|
+
*/
|
|
1021
|
+
"setFocus": () => Promise<void>;
|
|
998
1022
|
/**
|
|
999
1023
|
* Add a tooltip message next to the input
|
|
1000
1024
|
*/
|
|
@@ -1087,6 +1111,10 @@ export namespace Components {
|
|
|
1087
1111
|
* @param errorMessage - the error message to display
|
|
1088
1112
|
*/
|
|
1089
1113
|
"setError": (valid: MgInputSelect["valid"], errorMessage: string) => Promise<void>;
|
|
1114
|
+
/**
|
|
1115
|
+
* Set focus on input.
|
|
1116
|
+
*/
|
|
1117
|
+
"setFocus": () => Promise<void>;
|
|
1090
1118
|
/**
|
|
1091
1119
|
* Add a tooltip message next to the input
|
|
1092
1120
|
*/
|
|
@@ -1192,7 +1220,7 @@ export namespace Components {
|
|
|
1192
1220
|
*/
|
|
1193
1221
|
"setError": (valid: MgInputText["valid"], errorMessage: string) => Promise<void>;
|
|
1194
1222
|
/**
|
|
1195
|
-
*
|
|
1223
|
+
* Set focus on input.
|
|
1196
1224
|
*/
|
|
1197
1225
|
"setFocus": () => Promise<void>;
|
|
1198
1226
|
/**
|
|
@@ -1303,6 +1331,10 @@ export namespace Components {
|
|
|
1303
1331
|
* @param errorMessage - the error message to display
|
|
1304
1332
|
*/
|
|
1305
1333
|
"setError": (valid: MgInputTextarea["valid"], errorMessage: string) => Promise<void>;
|
|
1334
|
+
/**
|
|
1335
|
+
* Set focus on input.
|
|
1336
|
+
*/
|
|
1337
|
+
"setFocus": () => Promise<void>;
|
|
1306
1338
|
/**
|
|
1307
1339
|
* Add a tooltip message next to the input
|
|
1308
1340
|
*/
|
|
@@ -1393,6 +1425,10 @@ export namespace Components {
|
|
|
1393
1425
|
* @param errorMessage - the error message to display
|
|
1394
1426
|
*/
|
|
1395
1427
|
"setError": (valid: boolean, errorMessage: string) => Promise<void>;
|
|
1428
|
+
/**
|
|
1429
|
+
* Set focus on input.
|
|
1430
|
+
*/
|
|
1431
|
+
"setFocus": () => Promise<void>;
|
|
1396
1432
|
/**
|
|
1397
1433
|
* Add a tooltip message next to the input
|
|
1398
1434
|
*/
|
|
@@ -1892,6 +1928,7 @@ declare global {
|
|
|
1892
1928
|
interface HTMLMgFormElementEventMap {
|
|
1893
1929
|
"form-valid": HTMLMgFormElement['valid'];
|
|
1894
1930
|
"form-submit": boolean;
|
|
1931
|
+
"form-reset": boolean;
|
|
1895
1932
|
}
|
|
1896
1933
|
interface HTMLMgFormElement extends Components.MgForm, HTMLStencilElement {
|
|
1897
1934
|
addEventListener<K extends keyof HTMLMgFormElementEventMap>(type: K, listener: (this: HTMLMgFormElement, ev: MgFormCustomEvent<HTMLMgFormElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -2566,6 +2603,10 @@ declare namespace LocalJSX {
|
|
|
2566
2603
|
* Input name If not set the value equals the identifier
|
|
2567
2604
|
*/
|
|
2568
2605
|
"name"?: string;
|
|
2606
|
+
/**
|
|
2607
|
+
* Emitted event on form reset
|
|
2608
|
+
*/
|
|
2609
|
+
"onForm-reset"?: (event: MgFormCustomEvent<boolean>) => void;
|
|
2569
2610
|
/**
|
|
2570
2611
|
* Emitted event on form submit
|
|
2571
2612
|
*/
|
|
@@ -3003,7 +3044,7 @@ declare namespace LocalJSX {
|
|
|
3003
3044
|
*/
|
|
3004
3045
|
"integerLength"?: number;
|
|
3005
3046
|
/**
|
|
3006
|
-
* Define input
|
|
3047
|
+
* Define input invalid state
|
|
3007
3048
|
*/
|
|
3008
3049
|
"invalid"?: boolean;
|
|
3009
3050
|
/**
|
|
@@ -3075,7 +3116,7 @@ declare namespace LocalJSX {
|
|
|
3075
3116
|
*/
|
|
3076
3117
|
"unitDisplay"?: Intl.NumberFormatOptions['unitDisplay'];
|
|
3077
3118
|
/**
|
|
3078
|
-
* Define input
|
|
3119
|
+
* Define input valid state
|
|
3079
3120
|
*/
|
|
3080
3121
|
"valid"?: boolean;
|
|
3081
3122
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@mgdis/mg-components",
|
|
4
|
-
"version": "6.
|
|
4
|
+
"version": "6.13.0",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -829,7 +829,7 @@
|
|
|
829
829
|
},
|
|
830
830
|
{
|
|
831
831
|
"name": "mg-form",
|
|
832
|
-
"description": "Attributes:\n- `aria-role`: Define `<form/>` element aria role\nsee more about aria roles use case: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles\n- `disabled`: Define if form is disabled\n- `identifier`: Identifier is used for the element ID (id is a reserved prop in Stencil.js)\nIf not set, it will be created.\n- `invalid`: Define form invalid state\n- `label-on-top`: Define if slotted mg-component's label are displayed on top\n- `name`: Input name\nIf not set the value equals the identifier\n- `readonly`: Define if form is readonly\n- `required-message`: Define when required message is display.\nWhen it is unset, component use it internal logic to manage \"required message\" help text display.\nWhen you set the prop to `default`, you override the component internal logique to torce it display \"required message\" help text.\nWhen you set the prop to `hide`, it will prevent the rendering of the message in the component's DOM.\nAs **this element is an accessibility requirement in the view**,\nyou **MUST*** re-implement this message on your own and display it when your form contains required inputs.\n- `valid`: Define form valid state\n\nMethods:\n- `displayError`: Display input error if it exists.\n- `reset`: Reset form inputs values, validity and error state\n\nEvents:\n- `form-submit`: Emitted event on form submit\n- `form-valid`: Emitted event on form validity check\nTells if form is valid or not\n\nSlots:\n- ``: Form content\n- `actions`: Actions content\n\n",
|
|
832
|
+
"description": "Attributes:\n- `aria-role`: Define `<form/>` element aria role\nsee more about aria roles use case: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles\n- `disabled`: Define if form is disabled\n- `identifier`: Identifier is used for the element ID (id is a reserved prop in Stencil.js)\nIf not set, it will be created.\n- `invalid`: Define form invalid state\n- `label-on-top`: Define if slotted mg-component's label are displayed on top\n- `name`: Input name\nIf not set the value equals the identifier\n- `readonly`: Define if form is readonly\n- `required-message`: Define when required message is display.\nWhen it is unset, component use it internal logic to manage \"required message\" help text display.\nWhen you set the prop to `default`, you override the component internal logique to torce it display \"required message\" help text.\nWhen you set the prop to `hide`, it will prevent the rendering of the message in the component's DOM.\nAs **this element is an accessibility requirement in the view**,\nyou **MUST*** re-implement this message on your own and display it when your form contains required inputs.\n- `valid`: Define form valid state\n\nMethods:\n- `displayError`: Display input error if it exists.\n- `reset`: Reset form inputs values, validity and error state\n\nEvents:\n- `form-reset`: Emitted event on form reset\n- `form-submit`: Emitted event on form submit\n- `form-valid`: Emitted event on form validity check\nTells if form is valid or not\n\nSlots:\n- ``: Form content\n- `actions`: Actions content\n\n",
|
|
833
833
|
"doc-url": "http://core.pages.mgdis.fr/core-ui/core-ui/storybook/?path=/docs/molecules-mg-form--docs",
|
|
834
834
|
"attributes": [
|
|
835
835
|
{
|
|
@@ -1009,6 +1009,10 @@
|
|
|
1009
1009
|
}
|
|
1010
1010
|
],
|
|
1011
1011
|
"events": [
|
|
1012
|
+
{
|
|
1013
|
+
"name": "form-reset",
|
|
1014
|
+
"description": "Emitted event on form reset"
|
|
1015
|
+
},
|
|
1012
1016
|
{
|
|
1013
1017
|
"name": "form-submit",
|
|
1014
1018
|
"description": "Emitted event on form submit"
|
|
@@ -1431,7 +1435,7 @@
|
|
|
1431
1435
|
},
|
|
1432
1436
|
{
|
|
1433
1437
|
"name": "mg-input-checkbox",
|
|
1434
|
-
"description": "Attributes:\n- `disabled`: Define if input is disabled\n- `display-selected-values`: Display selected values list in \"multi\" type\nThis prop is only applied with prop type \"multi\" or when an \"unset\" mode render a \"multi\" type.\n- `edit-button-message`: Overwrite default \"edit\" button message\n- `help-text`: Add a help text under the input, usually expected data format and example\n- `identifier`: Identifier is used for the element ID (id is a reserved prop in Stencil.js)\n- `input-vertical-list`: Define if inputs are display verticaly\n- `invalid`: Define input invalid state\n- `label`: Define input label\n- `label-hide`: Define if label is visible\n- `label-on-top`: Define if label is displayed on top\n- `name`: Define input name\nIf not set the value equals the identifier\n- `readonly`: Define if mg-input-checkbox is readonly\n- `required`: Define if mg-input-checkbox is required\n- `select-button-message`: Overwrite default \"select\" button message\n- `show-button-message`: Overwrite default \"show\" button message\n- `tooltip`: Add a tooltip message next to the input\n- `tooltip-position`: Define tooltip position\n- `type`: Define checkbox type\nWhen it's undefined the type is dynamic:\n- With 0-5 items type is 'checkbox'\n- With 5-10 items type is 'multi'\nWhen it set the type is locked to the defined value.\nWhen type is dynamic OR with 'multi' type AND Over 10 items \"search\" feature is enabled\n- `valid`: Define input valid state\n\nProperties:\n- `value`: Component value\nIf item.value is `null`, checkbox will be indeterminate by default\n\nMethods:\n- `displayError`: Display input error if it exists.\n- `reset`: Reset value, validity and error state\n- `setError`: Set an error and display a custom error message.\nThis method can be used to set the component's error state from its context by passing a boolean value to the `valid` parameter.\nIt must be paired with an error message to display for the given context.\nWhen used to set validity to `false`, you should use this method again to reset the validity to `true`.\n\nEvents:\n- `input-valid`: Emited event when checking validity\n- `value-change`: Emitted event when value change\n\n",
|
|
1438
|
+
"description": "Attributes:\n- `disabled`: Define if input is disabled\n- `display-selected-values`: Display selected values list in \"multi\" type\nThis prop is only applied with prop type \"multi\" or when an \"unset\" mode render a \"multi\" type.\n- `edit-button-message`: Overwrite default \"edit\" button message\n- `help-text`: Add a help text under the input, usually expected data format and example\n- `identifier`: Identifier is used for the element ID (id is a reserved prop in Stencil.js)\n- `input-vertical-list`: Define if inputs are display verticaly\n- `invalid`: Define input invalid state\n- `label`: Define input label\n- `label-hide`: Define if label is visible\n- `label-on-top`: Define if label is displayed on top\n- `name`: Define input name\nIf not set the value equals the identifier\n- `readonly`: Define if mg-input-checkbox is readonly\n- `required`: Define if mg-input-checkbox is required\n- `select-button-message`: Overwrite default \"select\" button message\n- `show-button-message`: Overwrite default \"show\" button message\n- `tooltip`: Add a tooltip message next to the input\n- `tooltip-position`: Define tooltip position\n- `type`: Define checkbox type\nWhen it's undefined the type is dynamic:\n- With 0-5 items type is 'checkbox'\n- With 5-10 items type is 'multi'\nWhen it set the type is locked to the defined value.\nWhen type is dynamic OR with 'multi' type AND Over 10 items \"search\" feature is enabled\n- `valid`: Define input valid state\n\nProperties:\n- `value`: Component value\nIf item.value is `null`, checkbox will be indeterminate by default\n\nMethods:\n- `displayError`: Display input error if it exists.\n- `reset`: Reset value, validity and error state\n- `setError`: Set an error and display a custom error message.\nThis method can be used to set the component's error state from its context by passing a boolean value to the `valid` parameter.\nIt must be paired with an error message to display for the given context.\nWhen used to set validity to `false`, you should use this method again to reset the validity to `true`.\n- `setFocus`: Set focus on input.\n\nEvents:\n- `input-valid`: Emited event when checking validity\n- `value-change`: Emitted event when value change\n\n",
|
|
1435
1439
|
"doc-url": "http://core.pages.mgdis.fr/core-ui/core-ui/storybook/?path=/docs/molecules-inputs-mg-input-checkbox--docs",
|
|
1436
1440
|
"attributes": [
|
|
1437
1441
|
{
|
|
@@ -1824,7 +1828,7 @@
|
|
|
1824
1828
|
},
|
|
1825
1829
|
{
|
|
1826
1830
|
"name": "mg-input-combobox",
|
|
1827
|
-
"description": "Attributes:\n- `disabled`: Define if input is disabled\n- `fetchurl`: Define API url to fetch\n- `help-text`: Add a help text under the input, usually expected data format and example\n- `identifier`: Identifier is used for the element ID (id is a reserved prop in Stencil.js)\n- `invalid`: Define input invalid state\n- `items-label`: Define items label\nInclude short description. Required for accessibility.\n- `label`: Input label\n- `label-hide`: Define if label is visible\n- `label-on-top`: Define if label is displayed on top\n- `mg-width`: Define input width\n- `name`: Input name\nIf not set the value equals the identifier\n- `placeholder`: Define input placeholder.\nIt should be a word or short phrase that demonstrates the expected type of data, not a replacement for labels or help combobox.\n- `readonly`: Define if input is readonly\n- `required`: Define if input is required\n- `tooltip`: Add a tooltip message next to the input\n- `tooltip-position`: Define tooltip position\n- `valid`: Define input valid state\n- `value`: Define component value\n\nProperties:\n- `fetchmappings`: Define fetch request mappings.\nRequired with `fetchurl`\n- `fetchoptions`: Define fetch options object\nRequire `fetchurl` prop to be defined otherwith it will be ignored if defined\n- `items`: Define components items\n\nMethods:\n- `displayError`: Display input error if it exists.\n- `reset`: Reset value, validity and error state\n- `setError`: Set an error and display a custom error message.\nThis method can be used to set the component's error state from its concombobox by passing a boolean value to the `valid` parameter.\nIt must be paired with an error message to display for the given concombobox.\nWhen used to set validity to `false`, you should use this method again to reset the validity to `true`.\n- `setFocus`:
|
|
1831
|
+
"description": "Attributes:\n- `disabled`: Define if input is disabled\n- `fetchurl`: Define API url to fetch\n- `help-text`: Add a help text under the input, usually expected data format and example\n- `identifier`: Identifier is used for the element ID (id is a reserved prop in Stencil.js)\n- `invalid`: Define input invalid state\n- `items-label`: Define items label\nInclude short description. Required for accessibility.\n- `label`: Input label\n- `label-hide`: Define if label is visible\n- `label-on-top`: Define if label is displayed on top\n- `mg-width`: Define input width\n- `name`: Input name\nIf not set the value equals the identifier\n- `placeholder`: Define input placeholder.\nIt should be a word or short phrase that demonstrates the expected type of data, not a replacement for labels or help combobox.\n- `readonly`: Define if input is readonly\n- `required`: Define if input is required\n- `tooltip`: Add a tooltip message next to the input\n- `tooltip-position`: Define tooltip position\n- `valid`: Define input valid state\n- `value`: Define component value\n\nProperties:\n- `fetchmappings`: Define fetch request mappings.\nRequired with `fetchurl`\n- `fetchoptions`: Define fetch options object\nRequire `fetchurl` prop to be defined otherwith it will be ignored if defined\n- `items`: Define components items\n\nMethods:\n- `displayError`: Display input error if it exists.\n- `reset`: Reset value, validity and error state\n- `setError`: Set an error and display a custom error message.\nThis method can be used to set the component's error state from its concombobox by passing a boolean value to the `valid` parameter.\nIt must be paired with an error message to display for the given concombobox.\nWhen used to set validity to `false`, you should use this method again to reset the validity to `true`.\n- `setFocus`: Set focus on input.\n\nEvents:\n- `fetch-error`: Emited event when fetch API throw an error\n- `filter-change`: Emited event when filter change\n- `input-valid`: Emited event when checking validity\n- `load-more`: Emited event when `load-more` is called\n- `value-change`: Emited event when value change\n\n",
|
|
1828
1832
|
"doc-url": "http://core.pages.mgdis.fr/core-ui/core-ui/storybook/?path=/docs/molecules-inputs-mg-input-combobox--docs",
|
|
1829
1833
|
"attributes": [
|
|
1830
1834
|
{
|
|
@@ -2227,7 +2231,7 @@
|
|
|
2227
2231
|
},
|
|
2228
2232
|
{
|
|
2229
2233
|
"name": "mg-input-date",
|
|
2230
|
-
"description": "Attributes:\n- `disabled`: Define if input is disabled\n- `help-text`: Add a help text under the input, usually expected data format and example\nAvailable string variables:\n - `{pattern}`: render innerHTML pattern based on system\n - `{date}`: render innerText date with a pattern base format.\n - `{defaultHelpText}`: render default `helpText` usefull to concat helpText local with your custom text.\nex: `Input use {pattern} pattern` as `helpText` prop value will be render as `Input use mm/dd/yyyy pattern`\n- `identifier`: Identifier is used for the element ID (id is a reserved prop in Stencil.js)\n- `invalid`: Define input invalid state\n- `label`: Input label\n- `label-hide`: Define if label is visible\n- `label-on-top`: Define if label is displayed on top\n- `max`: Define input maximum date\nformat: yyyy-mm-dd\n- `min`: Define input minimum date\nformat: yyyy-mm-dd\n- `name`: Input name\nIf not set the value equals the identifier\n- `readonly`: Define if input is readonly\n- `required`: Define if input is required\n- `tooltip`: Add a tooltip message next to the input\n- `tooltip-position`: Define tooltip position\n- `valid`: Define input valid state\n- `value`: Component value\n\nMethods:\n- `displayError`: Display input error if it exists.\n- `reset`: Reset value, validity and error state\n- `setError`: Set an error and display a custom error message.\nThis method can be used to set the component's error state from its context by passing a boolean value to the `valid` parameter.\nIt must be paired with an error message to display for the given context.\nWhen used to set validity to `false`, you should use this method again to reset the validity to `true`.\n\nEvents:\n- `input-valid`: Emited event when checking validity\n- `value-change`: Emited event when value change\n\n",
|
|
2234
|
+
"description": "Attributes:\n- `disabled`: Define if input is disabled\n- `help-text`: Add a help text under the input, usually expected data format and example\nAvailable string variables:\n - `{pattern}`: render innerHTML pattern based on system\n - `{date}`: render innerText date with a pattern base format.\n - `{defaultHelpText}`: render default `helpText` usefull to concat helpText local with your custom text.\nex: `Input use {pattern} pattern` as `helpText` prop value will be render as `Input use mm/dd/yyyy pattern`\n- `identifier`: Identifier is used for the element ID (id is a reserved prop in Stencil.js)\n- `invalid`: Define input invalid state\n- `label`: Input label\n- `label-hide`: Define if label is visible\n- `label-on-top`: Define if label is displayed on top\n- `max`: Define input maximum date\nformat: yyyy-mm-dd\n- `min`: Define input minimum date\nformat: yyyy-mm-dd\n- `name`: Input name\nIf not set the value equals the identifier\n- `readonly`: Define if input is readonly\n- `required`: Define if input is required\n- `tooltip`: Add a tooltip message next to the input\n- `tooltip-position`: Define tooltip position\n- `valid`: Define input valid state\n- `value`: Component value\n\nMethods:\n- `displayError`: Display input error if it exists.\n- `reset`: Reset value, validity and error state\n- `setError`: Set an error and display a custom error message.\nThis method can be used to set the component's error state from its context by passing a boolean value to the `valid` parameter.\nIt must be paired with an error message to display for the given context.\nWhen used to set validity to `false`, you should use this method again to reset the validity to `true`.\n- `setFocus`: Set focus on input.\n\nEvents:\n- `input-valid`: Emited event when checking validity\n- `value-change`: Emited event when value change\n\n",
|
|
2231
2235
|
"doc-url": "http://core.pages.mgdis.fr/core-ui/core-ui/storybook/?path=/docs/molecules-inputs-mg-input-date--docs",
|
|
2232
2236
|
"attributes": [
|
|
2233
2237
|
{
|
|
@@ -2555,7 +2559,7 @@
|
|
|
2555
2559
|
},
|
|
2556
2560
|
{
|
|
2557
2561
|
"name": "mg-input-numeric",
|
|
2558
|
-
"description": "Attributes:\n- `currency`: Define currency\n- `decimal-length`: Override decimal length\ndecimal is the number after the decimal point\n- `disabled`: Define if input is disabled\n- `format`: Set local formatting.\nNumbers are formatted based on the locale.\n- `help-text`: Add a help text under the input, usually expected data format and example\n- `identifier`: Identifier is used for the element ID (id is a reserved prop in Stencil.js)\n- `integer-length`: Override integer length\ninteger is the number before the decimal point\n- `invalid`: Define input
|
|
2562
|
+
"description": "Attributes:\n- `currency`: Define currency\n- `decimal-length`: Override decimal length\ndecimal is the number after the decimal point\n- `disabled`: Define if input is disabled\n- `format`: Set local formatting.\nNumbers are formatted based on the locale.\n- `help-text`: Add a help text under the input, usually expected data format and example\n- `identifier`: Identifier is used for the element ID (id is a reserved prop in Stencil.js)\n- `integer-length`: Override integer length\ninteger is the number before the decimal point\n- `invalid`: Define input invalid state\n- `label`: Input label\n- `label-hide`: Define if label is visible\n- `label-on-top`: Define if label is displayed on top\n- `max`: Maximum value\n- `mg-width`: Define input width\n- `min`: Minimum value\n- `name`: Input name\nIf not set the value equals the identifier\n- `placeholder`: Input placeholder.\nIt should be a word or short phrase that demonstrates the expected type of data, not a replacement for labels or help text.\n- `readonly`: Define if input is readonly\n- `required`: Define if input is required\n- `tooltip`: Add a tooltip message next to the input\n- `tooltip-position`: Define tooltip position\n- `type`: Define numeric type\n- `unit`: Define unit symbol (km, L, etc.)\n- `unit-display`: Define unit display format ('short', 'long', 'narrow')\n- `valid`: Define input valid state\n- `value`: Component value\n\nMethods:\n- `displayError`: Display input error if it exists.\n- `reset`: Reset value, validity and error state\n- `setError`: Set an error and display a custom error message.\nThis method can be used to set the component's error state from its context by passing a boolean value to the `valid` parameter.\nIt must be paired with an error message to display for the given context.\nWhen used to set validity to `false`, you should use this method again to reset the validity to `true`.\n- `setFocus`: Set focus on input.\n\nEvents:\n- `input-valid`: Emited event when checking validity\n- `value-change`: Emited event when value change\n\nSlots:\n- `append-input`: Content to display next to the input\n\n",
|
|
2559
2563
|
"doc-url": "http://core.pages.mgdis.fr/core-ui/core-ui/storybook/?path=/docs/molecules-inputs-mg-input-numeric--docs",
|
|
2560
2564
|
"attributes": [
|
|
2561
2565
|
{
|
|
@@ -2628,7 +2632,7 @@
|
|
|
2628
2632
|
},
|
|
2629
2633
|
{
|
|
2630
2634
|
"name": "invalid",
|
|
2631
|
-
"description": "Define input
|
|
2635
|
+
"description": "Define input invalid state\n\nType: `boolean`",
|
|
2632
2636
|
"doc-url": "http://core.pages.mgdis.fr/core-ui/core-ui/storybook/?path=/docs/molecules-inputs-mg-input-numeric--docs",
|
|
2633
2637
|
"value": {
|
|
2634
2638
|
"type": "boolean",
|
|
@@ -2780,7 +2784,7 @@
|
|
|
2780
2784
|
},
|
|
2781
2785
|
{
|
|
2782
2786
|
"name": "valid",
|
|
2783
|
-
"description": "Define input
|
|
2787
|
+
"description": "Define input valid state\n\nType: `boolean`",
|
|
2784
2788
|
"doc-url": "http://core.pages.mgdis.fr/core-ui/core-ui/storybook/?path=/docs/molecules-inputs-mg-input-numeric--docs",
|
|
2785
2789
|
"value": {
|
|
2786
2790
|
"type": "boolean",
|
|
@@ -2869,7 +2873,7 @@
|
|
|
2869
2873
|
},
|
|
2870
2874
|
{
|
|
2871
2875
|
"name": "invalid",
|
|
2872
|
-
"description": "Define input
|
|
2876
|
+
"description": "Define input invalid state\n\nType: `boolean`",
|
|
2873
2877
|
"doc-url": "http://core.pages.mgdis.fr/core-ui/core-ui/storybook/?path=/docs/molecules-inputs-mg-input-numeric--docs",
|
|
2874
2878
|
"value": {
|
|
2875
2879
|
"type": "boolean",
|
|
@@ -3021,7 +3025,7 @@
|
|
|
3021
3025
|
},
|
|
3022
3026
|
{
|
|
3023
3027
|
"name": "valid",
|
|
3024
|
-
"description": "Define input
|
|
3028
|
+
"description": "Define input valid state\n\nType: `boolean`",
|
|
3025
3029
|
"doc-url": "http://core.pages.mgdis.fr/core-ui/core-ui/storybook/?path=/docs/molecules-inputs-mg-input-numeric--docs",
|
|
3026
3030
|
"value": {
|
|
3027
3031
|
"type": "boolean",
|
|
@@ -3055,7 +3059,7 @@
|
|
|
3055
3059
|
},
|
|
3056
3060
|
{
|
|
3057
3061
|
"name": "mg-input-password",
|
|
3058
|
-
"description": "Attributes:\n- `disabled`: Define if input is disabled\n- `help-text`: Add a help text under the input, usually expected data format and example\n- `identifier`: Identifier is used for the element ID (id is a reserved prop in Stencil.js)\n- `invalid`: Define input invalid state\n- `label`: Input label\n- `label-hide`: Define if label is visible\n- `label-on-top`: Define if label is displayed on top\n- `maxlength`: Input max length\n- `mg-width`: Define input width\n- `name`: Input name\nIf not set the value equals the identifier\n- `placeholder`: Input placeholder.\nIt should be a word or short phrase that demonstrates the expected type of data, not a replacement for labels or help text.\n- `readonly`: Define if input is readonly\n- `required`: Define if input is required\n- `tooltip`: Add a tooltip message next to the input\n- `tooltip-position`: Define tooltip position\n- `valid`: Define input valid state\n- `value`: Component value\n\nMethods:\n- `displayError`: Display input error if it exists.\n- `reset`: Reset value, validity and error state\n- `setError`: Set an error and display a custom error message.\nThis method can be used to set the component's error state from its context by passing a boolean value to the `valid` parameter.\nIt must be paired with an error message to display for the given context.\nWhen used to set validity to `false`, you should use this method again to reset the validity to `true`.\n\nEvents:\n- `input-valid`: Emited event when checking validity\n- `value-change`: Emited event when value change\n\n",
|
|
3062
|
+
"description": "Attributes:\n- `disabled`: Define if input is disabled\n- `help-text`: Add a help text under the input, usually expected data format and example\n- `identifier`: Identifier is used for the element ID (id is a reserved prop in Stencil.js)\n- `invalid`: Define input invalid state\n- `label`: Input label\n- `label-hide`: Define if label is visible\n- `label-on-top`: Define if label is displayed on top\n- `maxlength`: Input max length\n- `mg-width`: Define input width\n- `name`: Input name\nIf not set the value equals the identifier\n- `placeholder`: Input placeholder.\nIt should be a word or short phrase that demonstrates the expected type of data, not a replacement for labels or help text.\n- `readonly`: Define if input is readonly\n- `required`: Define if input is required\n- `tooltip`: Add a tooltip message next to the input\n- `tooltip-position`: Define tooltip position\n- `valid`: Define input valid state\n- `value`: Component value\n\nMethods:\n- `displayError`: Display input error if it exists.\n- `reset`: Reset value, validity and error state\n- `setError`: Set an error and display a custom error message.\nThis method can be used to set the component's error state from its context by passing a boolean value to the `valid` parameter.\nIt must be paired with an error message to display for the given context.\nWhen used to set validity to `false`, you should use this method again to reset the validity to `true`.\n- `setFocus`: Set focus on input.\n\nEvents:\n- `input-valid`: Emited event when checking validity\n- `value-change`: Emited event when value change\n\n",
|
|
3059
3063
|
"doc-url": "http://core.pages.mgdis.fr/core-ui/core-ui/storybook/?path=/docs/molecules-inputs-mg-input-password--docs",
|
|
3060
3064
|
"attributes": [
|
|
3061
3065
|
{
|
|
@@ -3401,7 +3405,7 @@
|
|
|
3401
3405
|
},
|
|
3402
3406
|
{
|
|
3403
3407
|
"name": "mg-input-radio",
|
|
3404
|
-
"description": "Attributes:\n- `disabled`: Define if input is disabled\n- `help-text`: Add a help text under the input, usually expected data format and example\n- `identifier`: Identifier is used for the element ID (id is a reserved prop in Stencil.js)\n- `input-vertical-list`: Define if inputs are display verticaly\n- `invalid`: Define input invalid state\n- `label`: Input label\n- `label-hide`: Define if label is visible\n- `label-on-top`: Define if label is displayed on top\n- `name`: Input name\nIf not set the value equals the identifier\n- `readonly`: Define if input is readonly\n- `required`: Define if input is required\n- `tooltip`: Add a tooltip message next to the input\n- `tooltip-position`: Define tooltip position\n- `valid`: Define input valid state\n- `value`: Component value\n\nProperties:\n- `items`: Items are the possible options to select\n\nMethods:\n- `displayError`: Display input error if it exists.\n- `reset`: Reset value, validity and error state\n- `setError`: Set an error and display a custom error message.\nThis method can be used to set the component's error state from its context by passing a boolean value to the `valid` parameter.\nIt must be paired with an error message to display for the given context.\nWhen used to set validity to `false`, you should use this method again to reset the validity to `true`.\n\nEvents:\n- `input-valid`: Emited event when checking validity\n- `value-change`: Emitted event when value change\n\n",
|
|
3408
|
+
"description": "Attributes:\n- `disabled`: Define if input is disabled\n- `help-text`: Add a help text under the input, usually expected data format and example\n- `identifier`: Identifier is used for the element ID (id is a reserved prop in Stencil.js)\n- `input-vertical-list`: Define if inputs are display verticaly\n- `invalid`: Define input invalid state\n- `label`: Input label\n- `label-hide`: Define if label is visible\n- `label-on-top`: Define if label is displayed on top\n- `name`: Input name\nIf not set the value equals the identifier\n- `readonly`: Define if input is readonly\n- `required`: Define if input is required\n- `tooltip`: Add a tooltip message next to the input\n- `tooltip-position`: Define tooltip position\n- `valid`: Define input valid state\n- `value`: Component value\n\nProperties:\n- `items`: Items are the possible options to select\n\nMethods:\n- `displayError`: Display input error if it exists.\n- `reset`: Reset value, validity and error state\n- `setError`: Set an error and display a custom error message.\nThis method can be used to set the component's error state from its context by passing a boolean value to the `valid` parameter.\nIt must be paired with an error message to display for the given context.\nWhen used to set validity to `false`, you should use this method again to reset the validity to `true`.\n- `setFocus`: Set focus on input.\n\nEvents:\n- `input-valid`: Emited event when checking validity\n- `value-change`: Emitted event when value change\n\n",
|
|
3405
3409
|
"doc-url": "http://core.pages.mgdis.fr/core-ui/core-ui/storybook/?path=/docs/molecules-inputs-mg-input-radio--docs",
|
|
3406
3410
|
"attributes": [
|
|
3407
3411
|
{
|
|
@@ -3720,7 +3724,7 @@
|
|
|
3720
3724
|
},
|
|
3721
3725
|
{
|
|
3722
3726
|
"name": "mg-input-rich-text-editor",
|
|
3723
|
-
"description": "Attributes:\n- `disabled`: Define if input is disabled\n- `help-text`: Add a help text under the input, usually expected data format and example\n- `identifier`: Identifier is used for the element ID (id is a reserved prop in Stencil.js)\n- `invalid`: Define input invalid state\n- `label`: Input label\n- `label-hide`: Define if label is visible\n- `label-on-top`: Define if label is displayed on top\n- `pattern`: Define input pattern to validate\nPlease refer to the Pattern section in the input documentation for detailed information on using regular expressions in components.\n- `pattern-error-message`: Define input pattern error message\n- `placeholder`: Input placeholder.\nIt should be a word or short phrase that demonstrates the expected type of data, not a replacement for labels or help text.\n- `readonly`: Define if the editor is readonly\n- `required`: Define if input is required\n- `rows`: Define the number of visible text lines for the control\n- `tooltip`: Add a tooltip message next to the input\n- `tooltip-position`: Define tooltip position\n- `valid`: Define input valid state\n- `value`: Define the value of the editor\nCan be either HTML string or plain text\n\nProperties:\n- `modules`: Editor modules configuration\n\nMethods:\n- `displayError`: Display input error if it exists.\n- `getHTML`: Get editor content as HTML\n- `getText`: Get editor content as plain text\n- `reset`: Reset value, validity and error state\n- `setError`: Set an error and display a custom error message.\nThis method can be used to set the component's error state from its context by passing a boolean value to the `valid` parameter.\nIt must be paired with an error message to display for the given context.\nWhen used to set validity to `false`, you should use this method again to reset the validity to `true`.\n\nEvents:\n- `input-valid`: Emited event when checking validity\n- `value-change`: Emited event when value change\n\n",
|
|
3727
|
+
"description": "Attributes:\n- `disabled`: Define if input is disabled\n- `help-text`: Add a help text under the input, usually expected data format and example\n- `identifier`: Identifier is used for the element ID (id is a reserved prop in Stencil.js)\n- `invalid`: Define input invalid state\n- `label`: Input label\n- `label-hide`: Define if label is visible\n- `label-on-top`: Define if label is displayed on top\n- `pattern`: Define input pattern to validate\nPlease refer to the Pattern section in the input documentation for detailed information on using regular expressions in components.\n- `pattern-error-message`: Define input pattern error message\n- `placeholder`: Input placeholder.\nIt should be a word or short phrase that demonstrates the expected type of data, not a replacement for labels or help text.\n- `readonly`: Define if the editor is readonly\n- `required`: Define if input is required\n- `rows`: Define the number of visible text lines for the control\n- `tooltip`: Add a tooltip message next to the input\n- `tooltip-position`: Define tooltip position\n- `valid`: Define input valid state\n- `value`: Define the value of the editor\nCan be either HTML string or plain text\n\nProperties:\n- `modules`: Editor modules configuration\n\nMethods:\n- `displayError`: Display input error if it exists.\n- `getHTML`: Get editor content as HTML\n- `getText`: Get editor content as plain text\n- `reset`: Reset value, validity and error state\n- `setError`: Set an error and display a custom error message.\nThis method can be used to set the component's error state from its context by passing a boolean value to the `valid` parameter.\nIt must be paired with an error message to display for the given context.\nWhen used to set validity to `false`, you should use this method again to reset the validity to `true`.\n- `setFocus`: Set focus on input.\n\nEvents:\n- `input-valid`: Emited event when checking validity\n- `value-change`: Emited event when value change\n\n",
|
|
3724
3728
|
"doc-url": "http://core.pages.mgdis.fr/core-ui/core-ui/storybook/?path=/docs/molecules-inputs-mg-input-rich-text-editor--docs",
|
|
3725
3729
|
"attributes": [
|
|
3726
3730
|
{
|
|
@@ -4075,7 +4079,7 @@
|
|
|
4075
4079
|
},
|
|
4076
4080
|
{
|
|
4077
4081
|
"name": "mg-input-select",
|
|
4078
|
-
"description": "Attributes:\n- `disabled`: Define if input is disabled\n- `help-text`: Add a help text under the input, usually expected data format and example\n- `identifier`: Identifier is used for the element ID (id is a reserved prop in Stencil.js)\n- `invalid`: Define input invalid state\n- `label`: Input label\n- `label-hide`: Define if label is visible\n- `label-on-top`: Define if label is displayed on top\n- `mg-width`: Define input width\n- `name`: Input name\nIf not set the value equals the identifier\n- `placeholder`: Input placeholder.\nIt should be a word or short phrase that demonstrates the expected type of data, not a replacement for labels or help text.\n- `placeholder-disabled`: Option to disable placeholder\n- `placeholder-hide`: Option to remove placeholder\n- `readonly`: Define if input is readonly\n- `required`: Define if input is required\n- `tooltip`: Add a tooltip message next to the input\n- `tooltip-position`: Define tooltip position\n- `valid`: Define input valid state\n- `value`: Component value\n\nProperties:\n- `items`: Items are the possible options to select\n\nMethods:\n- `displayError`: Display input error if it exists.\n- `reset`: Reset value, validity and error state\n- `setError`: Set an error and display a custom error message.\nThis method can be used to set the component's error state from its context by passing a boolean value to the `valid` parameter.\nIt must be paired with an error message to display for the given context.\nWhen used to set validity to `false`, you should use this method again to reset the validity to `true`.\n\nEvents:\n- `input-valid`: Emited event when checking validity\n- `value-change`: Emited event when value change\n\n",
|
|
4082
|
+
"description": "Attributes:\n- `disabled`: Define if input is disabled\n- `help-text`: Add a help text under the input, usually expected data format and example\n- `identifier`: Identifier is used for the element ID (id is a reserved prop in Stencil.js)\n- `invalid`: Define input invalid state\n- `label`: Input label\n- `label-hide`: Define if label is visible\n- `label-on-top`: Define if label is displayed on top\n- `mg-width`: Define input width\n- `name`: Input name\nIf not set the value equals the identifier\n- `placeholder`: Input placeholder.\nIt should be a word or short phrase that demonstrates the expected type of data, not a replacement for labels or help text.\n- `placeholder-disabled`: Option to disable placeholder\n- `placeholder-hide`: Option to remove placeholder\n- `readonly`: Define if input is readonly\n- `required`: Define if input is required\n- `tooltip`: Add a tooltip message next to the input\n- `tooltip-position`: Define tooltip position\n- `valid`: Define input valid state\n- `value`: Component value\n\nProperties:\n- `items`: Items are the possible options to select\n\nMethods:\n- `displayError`: Display input error if it exists.\n- `reset`: Reset value, validity and error state\n- `setError`: Set an error and display a custom error message.\nThis method can be used to set the component's error state from its context by passing a boolean value to the `valid` parameter.\nIt must be paired with an error message to display for the given context.\nWhen used to set validity to `false`, you should use this method again to reset the validity to `true`.\n- `setFocus`: Set focus on input.\n\nEvents:\n- `input-valid`: Emited event when checking validity\n- `value-change`: Emited event when value change\n\n",
|
|
4079
4083
|
"doc-url": "http://core.pages.mgdis.fr/core-ui/core-ui/storybook/?path=/docs/molecules-inputs-mg-input-select--docs",
|
|
4080
4084
|
"attributes": [
|
|
4081
4085
|
{
|
|
@@ -4450,7 +4454,7 @@
|
|
|
4450
4454
|
},
|
|
4451
4455
|
{
|
|
4452
4456
|
"name": "mg-input-text",
|
|
4453
|
-
"description": "Attributes:\n- `character-left-hide`: Define if component should display character left\n- `disabled`: Define if input is disabled\n- `help-text`: Add a help text under the input, usually expected data format and example\n- `icon`: Input icon\n- `identifier`: Identifier is used for the element ID (id is a reserved prop in Stencil.js)\n- `invalid`: Define input invalid state\n- `label`: Input label\n- `label-hide`: Define if label is visible\n- `label-on-top`: Define if label is displayed on top\n- `maxlength`: Input max length\n- `mg-width`: Define input width\n- `name`: Input name\nIf not set the value equals the identifier\n- `pattern`: Define input pattern to validate\nPlease refer to the Pattern section in the input documentation for detailed information on using regular expressions in components.\n- `pattern-error-message`: Define input pattern error message\n- `placeholder`: Input placeholder.\nIt should be a word or short phrase that demonstrates the expected type of data, not a replacement for labels or help text.\n- `readonly`: Define if input is readonly\n- `required`: Define if input is required\n- `tooltip`: Add a tooltip message next to the input\n- `tooltip-position`: Define tooltip position\n- `type`: Input type\n- `valid`: Define input valid state\n- `value`: Component value\n\nProperties:\n- `datalistoptions`: Define datalist options\n\nMethods:\n- `displayError`: Display input error if it exists.\n- `reset`: Reset value, validity and error state\n- `setError`: Set an error and display a custom error message.\nThis method can be used to set the component's error state from its context by passing a boolean value to the `valid` parameter.\nIt must be paired with an error message to display for the given context.\nWhen used to set validity to `false`, you should use this method again to reset the validity to `true`.\n- `setFocus`:
|
|
4457
|
+
"description": "Attributes:\n- `character-left-hide`: Define if component should display character left\n- `disabled`: Define if input is disabled\n- `help-text`: Add a help text under the input, usually expected data format and example\n- `icon`: Input icon\n- `identifier`: Identifier is used for the element ID (id is a reserved prop in Stencil.js)\n- `invalid`: Define input invalid state\n- `label`: Input label\n- `label-hide`: Define if label is visible\n- `label-on-top`: Define if label is displayed on top\n- `maxlength`: Input max length\n- `mg-width`: Define input width\n- `name`: Input name\nIf not set the value equals the identifier\n- `pattern`: Define input pattern to validate\nPlease refer to the Pattern section in the input documentation for detailed information on using regular expressions in components.\n- `pattern-error-message`: Define input pattern error message\n- `placeholder`: Input placeholder.\nIt should be a word or short phrase that demonstrates the expected type of data, not a replacement for labels or help text.\n- `readonly`: Define if input is readonly\n- `required`: Define if input is required\n- `tooltip`: Add a tooltip message next to the input\n- `tooltip-position`: Define tooltip position\n- `type`: Input type\n- `valid`: Define input valid state\n- `value`: Component value\n\nProperties:\n- `datalistoptions`: Define datalist options\n\nMethods:\n- `displayError`: Display input error if it exists.\n- `reset`: Reset value, validity and error state\n- `setError`: Set an error and display a custom error message.\nThis method can be used to set the component's error state from its context by passing a boolean value to the `valid` parameter.\nIt must be paired with an error message to display for the given context.\nWhen used to set validity to `false`, you should use this method again to reset the validity to `true`.\n- `setFocus`: Set focus on input.\n\nEvents:\n- `input-valid`: Emited event when checking validity\n- `value-change`: Emited event when value change\n\nSlots:\n- `append-input`: Content to display next to the input\n\n",
|
|
4454
4458
|
"doc-url": "http://core.pages.mgdis.fr/core-ui/core-ui/storybook/?path=/docs/molecules-inputs-mg-input-text--docs",
|
|
4455
4459
|
"attributes": [
|
|
4456
4460
|
{
|
|
@@ -4901,7 +4905,7 @@
|
|
|
4901
4905
|
},
|
|
4902
4906
|
{
|
|
4903
4907
|
"name": "mg-input-textarea",
|
|
4904
|
-
"description": "Attributes:\n- `character-left-hide`: Define if component should display character left\n- `disabled`: Define if input is disabled\n- `help-text`: Add a help text under the input, usually expected data format and example\n- `identifier`: Identifier is used for the element ID (id is a reserved prop in Stencil.js)\n- `invalid`: Define input invalid state\n- `label`: Input label\n- `label-hide`: Define if label is visible\n- `label-on-top`: Define if label is displayed on top\n- `maxlength`: Input max length\n- `mg-width`: Define input width\n- `name`: Input name\nIf not set the value equals the identifier\n- `pattern`: Define input pattern to validate\nPlease refer to the Pattern section in the input documentation for detailed information on using regular expressions in components.\n- `pattern-error-message`: Define input pattern error message\n- `placeholder`: Input placeholder.\nIt should be a word or short phrase that demonstrates the expected type of data, not a replacement for labels or help text.\n- `readonly`: Define if input is readonly\n- `required`: Define if input is required\n- `resizable`: Define if input is resizable\n- `rows`: Define the number of visible text lines for the control\n- `tooltip`: Add a tooltip message next to the input\n- `tooltip-position`: Define tooltip position\n- `valid`: Define input valid state\n- `value`: Component value\n\nMethods:\n- `displayError`: Display input error if it exists.\n- `reset`: Reset value, validity and error state\n- `setError`: Set an error and display a custom error message.\nThis method can be used to set the component's error state from its context by passing a boolean value to the `valid` parameter.\nIt must be paired with an error message to display for the given context.\nWhen used to set validity to `false`, you should use this method again to reset the validity to `true`.\n\nEvents:\n- `input-valid`: Emited event when checking validity\n- `value-change`: Emited event when value change\n\n",
|
|
4908
|
+
"description": "Attributes:\n- `character-left-hide`: Define if component should display character left\n- `disabled`: Define if input is disabled\n- `help-text`: Add a help text under the input, usually expected data format and example\n- `identifier`: Identifier is used for the element ID (id is a reserved prop in Stencil.js)\n- `invalid`: Define input invalid state\n- `label`: Input label\n- `label-hide`: Define if label is visible\n- `label-on-top`: Define if label is displayed on top\n- `maxlength`: Input max length\n- `mg-width`: Define input width\n- `name`: Input name\nIf not set the value equals the identifier\n- `pattern`: Define input pattern to validate\nPlease refer to the Pattern section in the input documentation for detailed information on using regular expressions in components.\n- `pattern-error-message`: Define input pattern error message\n- `placeholder`: Input placeholder.\nIt should be a word or short phrase that demonstrates the expected type of data, not a replacement for labels or help text.\n- `readonly`: Define if input is readonly\n- `required`: Define if input is required\n- `resizable`: Define if input is resizable\n- `rows`: Define the number of visible text lines for the control\n- `tooltip`: Add a tooltip message next to the input\n- `tooltip-position`: Define tooltip position\n- `valid`: Define input valid state\n- `value`: Component value\n\nMethods:\n- `displayError`: Display input error if it exists.\n- `reset`: Reset value, validity and error state\n- `setError`: Set an error and display a custom error message.\nThis method can be used to set the component's error state from its context by passing a boolean value to the `valid` parameter.\nIt must be paired with an error message to display for the given context.\nWhen used to set validity to `false`, you should use this method again to reset the validity to `true`.\n- `setFocus`: Set focus on input.\n\nEvents:\n- `input-valid`: Emited event when checking validity\n- `value-change`: Emited event when value change\n\n",
|
|
4905
4909
|
"doc-url": "http://core.pages.mgdis.fr/core-ui/core-ui/storybook/?path=/docs/molecules-inputs-mg-input-textarea--docs",
|
|
4906
4910
|
"attributes": [
|
|
4907
4911
|
{
|
|
@@ -5345,7 +5349,7 @@
|
|
|
5345
5349
|
},
|
|
5346
5350
|
{
|
|
5347
5351
|
"name": "mg-input-toggle",
|
|
5348
|
-
"description": "Attributes:\n- `disabled`: Define if input is disabled\n- `help-text`: Add a help text under the input, usually expected data format and example\n- `identifier`: Identifier is used for the element ID (id is a reserved prop in Stencil.js)\n- `is-icon`: Define if toggle display icon\n- `is-on-off`: Define if toggle have on/off style\n- `label`: Input label\n- `label-hide`: Define if label is visible\n- `label-on-top`: Define if label is displayed on top\n- `name`: Input name\nIf not set the value equals the identifier\n- `readonly`: Define if input is readonly\n- `tooltip`: Add a tooltip message next to the input\n- `tooltip-position`: Define tooltip position\n- `value`: Component value\n\nProperties:\n- `items`: Items are the possible options to select\n\nMethods:\n- `reset`: Reset value, validity, error and visual state\n- `setError`: Set an error and display a custom error message.\nThis method can be used to set the component's error state from its context by passing a boolean value to the `valid` parameter.\nIt must be paired with an error message to display for the given context.\nWhen used to set validity to `false`, you should use this method again to reset the validity to `true`.\n\nEvents:\n- `input-valid`: Emited event when checking validity\n- `value-change`: Emited event when value change\n\nSlots:\n- `item-1`: Left option toggle content\n- `item-2`: Right option toggle content\n\n",
|
|
5352
|
+
"description": "Attributes:\n- `disabled`: Define if input is disabled\n- `help-text`: Add a help text under the input, usually expected data format and example\n- `identifier`: Identifier is used for the element ID (id is a reserved prop in Stencil.js)\n- `is-icon`: Define if toggle display icon\n- `is-on-off`: Define if toggle have on/off style\n- `label`: Input label\n- `label-hide`: Define if label is visible\n- `label-on-top`: Define if label is displayed on top\n- `name`: Input name\nIf not set the value equals the identifier\n- `readonly`: Define if input is readonly\n- `tooltip`: Add a tooltip message next to the input\n- `tooltip-position`: Define tooltip position\n- `value`: Component value\n\nProperties:\n- `items`: Items are the possible options to select\n\nMethods:\n- `reset`: Reset value, validity, error and visual state\n- `setError`: Set an error and display a custom error message.\nThis method can be used to set the component's error state from its context by passing a boolean value to the `valid` parameter.\nIt must be paired with an error message to display for the given context.\nWhen used to set validity to `false`, you should use this method again to reset the validity to `true`.\n- `setFocus`: Set focus on input.\n\nEvents:\n- `input-valid`: Emited event when checking validity\n- `value-change`: Emited event when value change\n\nSlots:\n- `item-1`: Left option toggle content\n- `item-2`: Right option toggle content\n\n",
|
|
5349
5353
|
"doc-url": "http://core.pages.mgdis.fr/core-ui/core-ui/storybook/?path=/docs/molecules-inputs-mg-input-toggle--docs",
|
|
5350
5354
|
"attributes": [
|
|
5351
5355
|
{
|