@uniquedj95/vform 2.0.2 → 3.0.2
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/README.md +256 -167
- package/dist/components/inputs/BaseInput.vue.d.ts +5 -6
- package/dist/components/inputs/BaseInput.vue.d.ts.map +1 -1
- package/dist/components/inputs/CheckboxInput.vue.d.ts +2 -3
- package/dist/components/inputs/CheckboxInput.vue.d.ts.map +1 -1
- package/dist/components/inputs/DateInput.vue.d.ts +2 -3
- package/dist/components/inputs/DateInput.vue.d.ts.map +1 -1
- package/dist/components/inputs/EmailInput.vue.d.ts +6 -4
- package/dist/components/inputs/EmailInput.vue.d.ts.map +1 -1
- package/dist/components/inputs/NumberInput.vue.d.ts +6 -4
- package/dist/components/inputs/NumberInput.vue.d.ts.map +1 -1
- package/dist/components/inputs/PasswordInput.vue.d.ts +6 -4
- package/dist/components/inputs/PasswordInput.vue.d.ts.map +1 -1
- package/dist/components/inputs/RepeatInput.vue.d.ts.map +1 -1
- package/dist/components/inputs/SelectInput.vue.d.ts +2 -1
- package/dist/components/inputs/SelectInput.vue.d.ts.map +1 -1
- package/dist/components/inputs/TextAreaInput.vue.d.ts +3 -5
- package/dist/components/inputs/TextAreaInput.vue.d.ts.map +1 -1
- package/dist/components/inputs/TextInput.vue.d.ts +6 -4
- package/dist/components/inputs/TextInput.vue.d.ts.map +1 -1
- package/dist/components/shared/InputLabel.vue.d.ts +7 -0
- package/dist/components/shared/InputLabel.vue.d.ts.map +1 -0
- package/dist/components/vForm.vue.d.ts +2 -2
- package/dist/components/vForm.vue.d.ts.map +1 -1
- package/dist/composables/useCheckboxLabelText.d.ts +10 -0
- package/dist/composables/useCheckboxLabelText.d.ts.map +1 -0
- package/dist/composables/useDataTransformation.d.ts +11 -0
- package/dist/composables/useDataTransformation.d.ts.map +1 -0
- package/dist/composables/useFormValidation.d.ts +11 -0
- package/dist/composables/useFormValidation.d.ts.map +1 -0
- package/dist/composables/useInputProps.d.ts +25 -0
- package/dist/composables/useInputProps.d.ts.map +1 -0
- package/dist/composables/useInputValidation.d.ts +16 -0
- package/dist/composables/useInputValidation.d.ts.map +1 -0
- package/dist/composables/useLabelTemplate.d.ts +12 -0
- package/dist/composables/useLabelTemplate.d.ts.map +1 -0
- package/dist/composables/useValidationStyles.d.ts +10 -0
- package/dist/composables/useValidationStyles.d.ts.map +1 -0
- package/dist/constants/index.d.ts +41 -0
- package/dist/constants/index.d.ts.map +1 -0
- package/dist/index.cjs.js +2 -1
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +933 -9019
- package/dist/index.es.js.map +1 -0
- package/dist/index.umd.js +2 -1
- package/dist/index.umd.js.map +1 -0
- package/dist/types/index.d.ts +10 -10
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/maskito.d.ts +7 -0
- package/dist/utils/maskito.d.ts.map +1 -0
- package/dist/vform.css +1 -1
- package/package.json +54 -4
@@ -1,18 +1,17 @@
|
|
1
|
-
import { FormField, FormSchema, BaseFieldTypes } from 'types';
|
1
|
+
import { FormField, FormSchema, BaseFieldTypes } from '../../types';
|
2
2
|
type __VLS_Props = {
|
3
3
|
schema?: FormSchema;
|
4
4
|
type?: BaseFieldTypes;
|
5
5
|
};
|
6
6
|
declare const model: import('vue').ModelRef<FormField, string, FormField, FormField>;
|
7
|
-
declare function onReset(): void;
|
8
|
-
declare function onValueUpdate(): Promise<void>;
|
9
7
|
type __VLS_PublicProps = {
|
10
8
|
modelValue?: typeof model['value'];
|
11
9
|
} & __VLS_Props;
|
12
10
|
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
|
13
|
-
onValueUpdate:
|
14
|
-
onReset:
|
15
|
-
getErrors: ()
|
11
|
+
onValueUpdate: () => Promise<void>;
|
12
|
+
onReset: (defaultValue?: any) => void;
|
13
|
+
getErrors: import('vue').ComputedRef<string | undefined>;
|
14
|
+
isValid: () => Promise<boolean>;
|
16
15
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
17
16
|
"update:modelValue": (value: FormField) => any;
|
18
17
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"BaseInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/BaseInput.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"BaseInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/BaseInput.vue"],"names":[],"mappings":"AA8BA;AAyEA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAMpE,KAAK,WAAW,GAAG;IAAE,MAAM,CAAC,EAAE,UAAU,CAAC;IAAC,IAAI,CAAC,EAAE,cAAc,CAAA;CAAE,CAAC;AAElE,QAAA,MAAM,KAAK,iEAAoE,CAAC;AAwChF,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,KAAK,CAAC,OAAO,CAAC,CAAC;CAClC,GAAG,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;AA8JhB,wBAUG"}
|
@@ -4,14 +4,13 @@ type __VLS_Props = {
|
|
4
4
|
};
|
5
5
|
declare const model: import('vue').ModelRef<FormField, string, FormField, FormField>;
|
6
6
|
declare function onReset(): void;
|
7
|
-
declare function onValueUpdate(): Promise<void>;
|
8
7
|
type __VLS_PublicProps = {
|
9
8
|
modelValue?: typeof model['value'];
|
10
9
|
} & __VLS_Props;
|
11
10
|
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
|
12
|
-
onValueUpdate:
|
11
|
+
onValueUpdate: () => Promise<void>;
|
13
12
|
onReset: typeof onReset;
|
14
|
-
getErrors: ()
|
13
|
+
getErrors: import('vue').ComputedRef<string | undefined>;
|
15
14
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
16
15
|
"update:modelValue": (value: FormField) => any;
|
17
16
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CheckboxInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/CheckboxInput.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"CheckboxInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/CheckboxInput.vue"],"names":[],"mappings":"AAcA;AAuDA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAK9C,KAAK,WAAW,GAAG;IAAE,MAAM,CAAC,EAAE,UAAU,CAAA;CAAE,CAAC;AAE3C,QAAA,MAAM,KAAK,iEAAoE,CAAC;AAYhF,iBAAS,OAAO,SAIf;AAsBD,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,KAAK,CAAC,OAAO,CAAC,CAAC;CAClC,GAAG,WAAW,CAAC;;;;;;;;;;;;;;;;;;;AAmFhB,wBAUG"}
|
@@ -3,15 +3,14 @@ type __VLS_Props = {
|
|
3
3
|
schema?: FormSchema;
|
4
4
|
};
|
5
5
|
declare const model: import('vue').ModelRef<FormField, string, FormField, FormField>;
|
6
|
-
declare function onValueUpdate(): Promise<void>;
|
7
6
|
declare function onReset(): void;
|
8
7
|
type __VLS_PublicProps = {
|
9
8
|
modelValue?: typeof model['value'];
|
10
9
|
} & __VLS_Props;
|
11
10
|
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
|
12
|
-
onValueUpdate:
|
11
|
+
onValueUpdate: () => Promise<void>;
|
13
12
|
onReset: typeof onReset;
|
14
|
-
getErrors: ()
|
13
|
+
getErrors: import('vue').ComputedRef<string | undefined>;
|
15
14
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
16
15
|
"update:modelValue": (value: FormField) => any;
|
17
16
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DateInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/DateInput.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"DateInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/DateInput.vue"],"names":[],"mappings":"AA6EA;AAkMA,OAAO,sCAAsC,CAAC;AAG9C,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAMzD,KAAK,WAAW,GAAG;IAAE,MAAM,CAAC,EAAE,UAAU,CAAA;CAAE,CAAC;AAE3C,QAAA,MAAM,KAAK,iEAAoE,CAAC;AA0ChF,iBAAS,OAAO,SAIf;AAgED,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,KAAK,CAAC,OAAO,CAAC,CAAC;CAClC,GAAG,WAAW,CAAC;;;;;;;;;;;;;;;;;;;AAqThB,wBAUG"}
|
@@ -24,8 +24,9 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
24
24
|
"onUpdate:modelValue"?: ((value: FormField) => any) | undefined;
|
25
25
|
}>, {
|
26
26
|
onValueUpdate: () => Promise<void>;
|
27
|
-
onReset: () => void;
|
28
|
-
getErrors: ()
|
27
|
+
onReset: (defaultValue?: any) => void;
|
28
|
+
getErrors: import('vue').ComputedRef<string | undefined>;
|
29
|
+
isValid: () => Promise<boolean>;
|
29
30
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
30
31
|
"update:modelValue": (value: FormField) => any;
|
31
32
|
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
@@ -53,8 +54,9 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
53
54
|
"onUpdate:modelValue"?: ((value: FormField) => any) | undefined;
|
54
55
|
}>, {
|
55
56
|
onValueUpdate: () => Promise<void>;
|
56
|
-
onReset: () => void;
|
57
|
-
getErrors: ()
|
57
|
+
onReset: (defaultValue?: any) => void;
|
58
|
+
getErrors: import('vue').ComputedRef<string | undefined>;
|
59
|
+
isValid: () => Promise<boolean>;
|
58
60
|
}, {}, {}, {}, {}> | null;
|
59
61
|
}, any>;
|
60
62
|
export default _default;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"EmailInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/EmailInput.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"EmailInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/EmailInput.vue"],"names":[],"mappings":"AAGA;AAsBA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAG9C,KAAK,WAAW,GAAG;IAAE,MAAM,CAAC,EAAE,UAAU,CAAA;CAAE,CAAC;AAE3C,QAAA,MAAM,KAAK,iEAAoE,CAAC;AAkBhF,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,KAAK,CAAC,OAAO,CAAC,CAAC;CAClC,GAAG,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4DhB,wBAUG"}
|
@@ -24,8 +24,9 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
24
24
|
"onUpdate:modelValue"?: ((value: FormField) => any) | undefined;
|
25
25
|
}>, {
|
26
26
|
onValueUpdate: () => Promise<void>;
|
27
|
-
onReset: () => void;
|
28
|
-
getErrors: ()
|
27
|
+
onReset: (defaultValue?: any) => void;
|
28
|
+
getErrors: import('vue').ComputedRef<string | undefined>;
|
29
|
+
isValid: () => Promise<boolean>;
|
29
30
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
30
31
|
"update:modelValue": (value: FormField) => any;
|
31
32
|
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
@@ -53,8 +54,9 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
53
54
|
"onUpdate:modelValue"?: ((value: FormField) => any) | undefined;
|
54
55
|
}>, {
|
55
56
|
onValueUpdate: () => Promise<void>;
|
56
|
-
onReset: () => void;
|
57
|
-
getErrors: ()
|
57
|
+
onReset: (defaultValue?: any) => void;
|
58
|
+
getErrors: import('vue').ComputedRef<string | undefined>;
|
59
|
+
isValid: () => Promise<boolean>;
|
58
60
|
}, {}, {}, {}, {}> | null;
|
59
61
|
}, any>;
|
60
62
|
export default _default;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"NumberInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/NumberInput.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"NumberInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/NumberInput.vue"],"names":[],"mappings":"AAGA;AAsBA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAG9C,KAAK,WAAW,GAAG;IAAE,MAAM,CAAC,EAAE,UAAU,CAAA;CAAE,CAAC;AAE3C,QAAA,MAAM,KAAK,iEAAoE,CAAC;AAkBhF,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,KAAK,CAAC,OAAO,CAAC,CAAC;CAClC,GAAG,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4DhB,wBAUG"}
|
@@ -24,8 +24,9 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
24
24
|
"onUpdate:modelValue"?: ((value: FormField) => any) | undefined;
|
25
25
|
}>, {
|
26
26
|
onValueUpdate: () => Promise<void>;
|
27
|
-
onReset: () => void;
|
28
|
-
getErrors: ()
|
27
|
+
onReset: (defaultValue?: any) => void;
|
28
|
+
getErrors: import('vue').ComputedRef<string | undefined>;
|
29
|
+
isValid: () => Promise<boolean>;
|
29
30
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
30
31
|
"update:modelValue": (value: FormField) => any;
|
31
32
|
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
@@ -53,8 +54,9 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
53
54
|
"onUpdate:modelValue"?: ((value: FormField) => any) | undefined;
|
54
55
|
}>, {
|
55
56
|
onValueUpdate: () => Promise<void>;
|
56
|
-
onReset: () => void;
|
57
|
-
getErrors: ()
|
57
|
+
onReset: (defaultValue?: any) => void;
|
58
|
+
getErrors: import('vue').ComputedRef<string | undefined>;
|
59
|
+
isValid: () => Promise<boolean>;
|
58
60
|
}, {}, {}, {}, {}> | null;
|
59
61
|
}, any>;
|
60
62
|
export default _default;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"PasswordInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/PasswordInput.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"PasswordInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/PasswordInput.vue"],"names":[],"mappings":"AAGA;AAsBA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAG9C,KAAK,WAAW,GAAG;IAAE,MAAM,CAAC,EAAE,UAAU,CAAA;CAAE,CAAC;AAE3C,QAAA,MAAM,KAAK,iEAAoE,CAAC;AAkBhF,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,KAAK,CAAC,OAAO,CAAC,CAAC;CAClC,GAAG,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4DhB,wBAUG"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"RepeatInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/RepeatInput.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"RepeatInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/RepeatInput.vue"],"names":[],"mappings":"AAoCA;AAwHA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAU,MAAM,OAAO,CAAC;AAO9E,UAAU,MAAM;IACd,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,IAAI,EAAE,QAAQ,CAAC;IACf,YAAY,EAAE,YAAY,CAAC;CAC5B;AAED,KAAK,WAAW,GAAG,MAAM,CAAC;AAE1B,QAAA,MAAM,KAAK,iEAAoE,CAAC;AAwChF,iBAAS,OAAO,SAEf;AAED,iBAAS,SAAS,aAEjB;AAED,iBAAe,aAAa,kBAE3B;AAiBD,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,KAAK,CAAC,OAAO,CAAC,CAAC;CAClC,GAAG,WAAW,CAAC;;;;;;;;;;;;AAyLhB,wBASG"}
|
@@ -5,6 +5,7 @@ type __VLS_Props = {
|
|
5
5
|
};
|
6
6
|
declare const model: import('vue').ModelRef<FormField, string, FormField, FormField>;
|
7
7
|
declare function onReset(): void;
|
8
|
+
declare function getErrors(): string | undefined;
|
8
9
|
declare function onValueUpdate(evt?: any): Promise<void>;
|
9
10
|
type __VLS_PublicProps = {
|
10
11
|
modelValue?: typeof model['value'];
|
@@ -12,7 +13,7 @@ type __VLS_PublicProps = {
|
|
12
13
|
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
|
13
14
|
onValueUpdate: typeof onValueUpdate;
|
14
15
|
onReset: typeof onReset;
|
15
|
-
getErrors:
|
16
|
+
getErrors: typeof getErrors;
|
16
17
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
17
18
|
"update:modelValue": (value: FormField) => any;
|
18
19
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SelectInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/SelectInput.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"SelectInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/SelectInput.vue"],"names":[],"mappings":"AAiDA;AAoXA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,SAAS,EAAU,MAAM,OAAO,CAAC;AAiBtE,KAAK,WAAW,GAAG;IAAE,MAAM,CAAC,EAAE,UAAU,CAAC;IAAC,IAAI,CAAC,EAAE,cAAc,CAAA;CAAE,CAAC;AAElE,QAAA,MAAM,KAAK,iEAAoE,CAAC;AA8BhF,iBAAS,OAAO,SAMf;AAoID,iBAAS,SAAS,uBAEjB;AAYD,iBAAe,aAAa,CAAC,GAAG,CAAC,EAAE,GAAG,iBAgBrC;AAkDD,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,KAAK,CAAC,OAAO,CAAC,CAAC;CAClC,GAAG,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;AA+RhB,wBAUG"}
|
@@ -3,15 +3,13 @@ type __VLS_Props = {
|
|
3
3
|
schema?: FormSchema;
|
4
4
|
};
|
5
5
|
declare const model: import('vue').ModelRef<FormField, string, FormField, FormField>;
|
6
|
-
declare function onReset(): void;
|
7
|
-
declare function onValueUpdate(): Promise<void>;
|
8
6
|
type __VLS_PublicProps = {
|
9
7
|
modelValue?: typeof model['value'];
|
10
8
|
} & __VLS_Props;
|
11
9
|
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
|
12
|
-
onReset:
|
13
|
-
onValueUpdate:
|
14
|
-
getErrors: ()
|
10
|
+
onReset: (defaultValue?: any) => void;
|
11
|
+
onValueUpdate: () => Promise<void>;
|
12
|
+
getErrors: import('vue').ComputedRef<string | undefined>;
|
15
13
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
16
14
|
"update:modelValue": (value: FormField) => any;
|
17
15
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TextAreaInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/TextAreaInput.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"TextAreaInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/TextAreaInput.vue"],"names":[],"mappings":"AA4BA;AAgEA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAK9C,KAAK,WAAW,GAAG;IAAE,MAAM,CAAC,EAAE,UAAU,CAAA;CAAE,CAAC;AAE3C,QAAA,MAAM,KAAK,iEAAoE,CAAC;AAiChF,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,KAAK,CAAC,OAAO,CAAC,CAAC;CAClC,GAAG,WAAW,CAAC;;;;;;;;;;;;;;;;;;;AAuHhB,wBAUG"}
|
@@ -24,8 +24,9 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
24
24
|
"onUpdate:modelValue"?: ((value: FormField) => any) | undefined;
|
25
25
|
}>, {
|
26
26
|
onValueUpdate: () => Promise<void>;
|
27
|
-
onReset: () => void;
|
28
|
-
getErrors: ()
|
27
|
+
onReset: (defaultValue?: any) => void;
|
28
|
+
getErrors: import('vue').ComputedRef<string | undefined>;
|
29
|
+
isValid: () => Promise<boolean>;
|
29
30
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
30
31
|
"update:modelValue": (value: FormField) => any;
|
31
32
|
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
@@ -53,8 +54,9 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
53
54
|
"onUpdate:modelValue"?: ((value: FormField) => any) | undefined;
|
54
55
|
}>, {
|
55
56
|
onValueUpdate: () => Promise<void>;
|
56
|
-
onReset: () => void;
|
57
|
-
getErrors: ()
|
57
|
+
onReset: (defaultValue?: any) => void;
|
58
|
+
getErrors: import('vue').ComputedRef<string | undefined>;
|
59
|
+
isValid: () => Promise<boolean>;
|
58
60
|
}, {}, {}, {}, {}> | null;
|
59
61
|
}, any>;
|
60
62
|
export default _default;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TextInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/TextInput.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"TextInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/TextInput.vue"],"names":[],"mappings":"AAGA;AAsBA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAG9C,KAAK,WAAW,GAAG;IAAE,MAAM,CAAC,EAAE,UAAU,CAAA;CAAE,CAAC;AAE3C,QAAA,MAAM,KAAK,iEAAoE,CAAC;AAkBhF,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,KAAK,CAAC,OAAO,CAAC,CAAC;CAClC,GAAG,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4DhB,wBAUG"}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { FormField } from '../../types';
|
2
|
+
type __VLS_Props = {
|
3
|
+
model: FormField;
|
4
|
+
};
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
6
|
+
export default _default;
|
7
|
+
//# sourceMappingURL=InputLabel.vue.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"InputLabel.vue.d.ts","sourceRoot":"","sources":["../../../src/components/shared/InputLabel.vue"],"names":[],"mappings":"AAMA;AAsBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAI7C,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,SAAS,CAAC;CAClB,CAAC;;AAyEF,wBAMG"}
|
@@ -21,12 +21,12 @@ declare const _default: import('vue').DefineComponent<FormProps, {
|
|
21
21
|
computedData: ComputedData;
|
22
22
|
};
|
23
23
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
24
|
-
submit: (formData: FormData, computedFormData: ComputedData) => any;
|
25
24
|
clear: () => any;
|
25
|
+
submit: (formData: FormData, computedFormData: ComputedData) => any;
|
26
26
|
cancel: () => any;
|
27
27
|
}, string, import('vue').PublicProps, Readonly<FormProps> & Readonly<{
|
28
|
-
onSubmit?: ((formData: FormData, computedFormData: ComputedData) => any) | undefined;
|
29
28
|
onClear?: (() => any) | undefined;
|
29
|
+
onSubmit?: ((formData: FormData, computedFormData: ComputedData) => any) | undefined;
|
30
30
|
onCancel?: (() => any) | undefined;
|
31
31
|
}>, {
|
32
32
|
showLabels: boolean;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"vForm.vue.d.ts","sourceRoot":"","sources":["../../src/components/vForm.vue"],"names":[],"mappings":"AA4CA;
|
1
|
+
{"version":3,"file":"vForm.vue.d.ts","sourceRoot":"","sources":["../../src/components/vForm.vue"],"names":[],"mappings":"AA4CA;AAsKA,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAKjF,UAAU,SAAS;IACjB,MAAM,EAAE,UAAU,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,eAAe,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IAC7C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,aAAa,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;CACrC;AA8BD,iBAAe,WAAW,qBAEzB;AAOD,iBAAS,SAAS,SAEjB;;;;;;;;;;;;;;;;;gBAlDc,OAAO;qBACF,OAAO;sBACN,OAAO;qBACR,OAAO,GAAG,QAAQ,GAAG,KAAK;sBACzB,MAAM;qBACP,MAAM;sBACL,MAAM;iBACX,OAAO;;;;AA0UvB,wBAWG"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { Ref } from 'vue';
|
2
|
+
import { FormField } from '../types';
|
3
|
+
/**
|
4
|
+
* Composable for checkbox label text content
|
5
|
+
* Handles the specific pattern where labels are rendered as text content with asterisks
|
6
|
+
*/
|
7
|
+
export declare function useCheckboxLabelText(model: Ref<FormField>): {
|
8
|
+
labelTextWithAsterisk: import('vue').ComputedRef<string>;
|
9
|
+
};
|
10
|
+
//# sourceMappingURL=useCheckboxLabelText.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useCheckboxLabelText.d.ts","sourceRoot":"","sources":["../../src/composables/useCheckboxLabelText.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AACzC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,GAAG,CAAC,SAAS,CAAC;;EAazD"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { Ref } from 'vue';
|
2
|
+
import { FormData, FormSchema, ComputedData } from 'types';
|
3
|
+
/**
|
4
|
+
* Composable for data transformation logic
|
5
|
+
* Reduces duplication in computed data processing
|
6
|
+
*/
|
7
|
+
export declare function useDataTransformation(activeSchema: Ref<FormSchema>): {
|
8
|
+
formData: import('vue').ComputedRef<FormData>;
|
9
|
+
computedData: import('vue').ComputedRef<ComputedData>;
|
10
|
+
};
|
11
|
+
//# sourceMappingURL=useDataTransformation.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useDataTransformation.d.ts","sourceRoot":"","sources":["../../src/composables/useDataTransformation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,GAAG,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,YAAY,EAAU,MAAM,OAAO,CAAC;AAEnE;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,YAAY,EAAE,GAAG,CAAC,UAAU,CAAC;;;EAqDlE"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/**
|
2
|
+
* Composable for common form validation logic
|
3
|
+
*/
|
4
|
+
export declare function useFormValidation(): {
|
5
|
+
dynamicRefs: import('vue').Ref<any[], any[]>;
|
6
|
+
isFormValid: () => Promise<boolean>;
|
7
|
+
resetForm: () => void;
|
8
|
+
getFormErrors: () => string[];
|
9
|
+
updateFormValues: () => Promise<void>;
|
10
|
+
};
|
11
|
+
//# sourceMappingURL=useFormValidation.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useFormValidation.d.ts","sourceRoot":"","sources":["../../src/composables/useFormValidation.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,wBAAgB,iBAAiB;;uBAMD,OAAO,CAAC,OAAO,CAAC;qBAgBxB,IAAI;yBAWA,MAAM,EAAE;4BAaC,OAAO,CAAC,IAAI,CAAC;EAejD"}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { Ref } from 'vue';
|
2
|
+
import { FormField } from '../types';
|
3
|
+
/**
|
4
|
+
* Composable for common input component props
|
5
|
+
* Reduces duplication of standard input properties across components
|
6
|
+
*/
|
7
|
+
export declare function useInputProps(model: Ref<FormField>): {
|
8
|
+
fill: import('vue').ComputedRef<"solid" | "outline">;
|
9
|
+
labelPlacement: import('vue').ComputedRef<"stacked" | "start" | "end" | "fixed" | "floating">;
|
10
|
+
required: import('vue').ComputedRef<boolean | undefined>;
|
11
|
+
errorText: import('vue').ComputedRef<string | undefined>;
|
12
|
+
autofocus: import('vue').ComputedRef<boolean | undefined>;
|
13
|
+
placeholder: import('vue').ComputedRef<string | undefined>;
|
14
|
+
disabled: import('vue').ComputedRef<boolean | undefined>;
|
15
|
+
commonInputProps: import('vue').ComputedRef<{
|
16
|
+
fill: "solid" | "outline";
|
17
|
+
labelPlacement: "stacked" | "start" | "end" | "fixed" | "floating";
|
18
|
+
required: boolean | undefined;
|
19
|
+
errorText: string | undefined;
|
20
|
+
autofocus: boolean | undefined;
|
21
|
+
placeholder: string | undefined;
|
22
|
+
disabled: boolean | undefined;
|
23
|
+
}>;
|
24
|
+
};
|
25
|
+
//# sourceMappingURL=useInputProps.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useInputProps.d.ts","sourceRoot":"","sources":["../../src/composables/useInputProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AACzC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAG1C;;;GAGG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,GAAG,CAAC,SAAS,CAAC;;;;;;;;;;;;;;;;;EA2DlD"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { Ref, ComponentPublicInstance } from 'vue';
|
2
|
+
import { FormField, FormSchema } from '../types';
|
3
|
+
/**
|
4
|
+
* Composable for common input validation logic
|
5
|
+
* Reduces duplication across input components with standard validation patterns
|
6
|
+
*/
|
7
|
+
export declare function useInputValidation(inputRef: Ref<ComponentPublicInstance | null>, model: Ref<FormField>, inputValue: Ref<any>, schema?: Ref<FormSchema | undefined>, customValidation?: (value: any) => Promise<boolean | string>): {
|
8
|
+
isValid: () => Promise<boolean>;
|
9
|
+
onValueUpdate: () => Promise<void>;
|
10
|
+
onFocus: () => void;
|
11
|
+
onReset: (defaultValue?: any) => void;
|
12
|
+
getErrors: import('vue').ComputedRef<string | undefined>;
|
13
|
+
applyValidationState: (isValid: boolean) => Promise<void>;
|
14
|
+
resetValidationState: () => void;
|
15
|
+
};
|
16
|
+
//# sourceMappingURL=useInputValidation.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useInputValidation.d.ts","sourceRoot":"","sources":["../../src/composables/useInputValidation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAY,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEjD,OAAO,EAAE,uBAAuB,EAAE,MAAM,KAAK,CAAC;AAE9C;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,GAAG,CAAC,uBAAuB,GAAG,IAAI,CAAC,EAC7C,KAAK,EAAE,GAAG,CAAC,SAAS,CAAC,EACrB,UAAU,EAAE,GAAG,CAAC,GAAG,CAAC,EACpB,MAAM,CAAC,EAAE,GAAG,CAAC,UAAU,GAAG,SAAS,CAAC,EACpC,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,OAAO,CAAC,OAAO,GAAG,MAAM,CAAC;mBAOlC,OAAO,CAAC,OAAO,CAAC;yBAkCV,OAAO,CAAC,IAAI,CAAC;mBAczB,IAAI;6BAQO,GAAG,KAAQ,IAAI;;;;EAoB/C"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { Ref } from 'vue';
|
2
|
+
import { FormField } from '../types';
|
3
|
+
/**
|
4
|
+
* Composable for common label template logic
|
5
|
+
* Reduces duplication across input components that render labels with required asterisks
|
6
|
+
*/
|
7
|
+
export declare function useLabelTemplate(model: Ref<FormField>): {
|
8
|
+
showLabel: import('vue').ComputedRef<boolean>;
|
9
|
+
showRequired: import('vue').ComputedRef<boolean>;
|
10
|
+
labelText: import('vue').ComputedRef<string>;
|
11
|
+
};
|
12
|
+
//# sourceMappingURL=useLabelTemplate.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useLabelTemplate.d.ts","sourceRoot":"","sources":["../../src/composables/useLabelTemplate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AACzC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,GAAG,CAAC,SAAS,CAAC;;;;EAqBrD"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { ComponentPublicInstance, Ref } from 'vue';
|
2
|
+
/**
|
3
|
+
* Composable for managing Ionic validation CSS classes
|
4
|
+
* Reduces duplication in input validation state management
|
5
|
+
*/
|
6
|
+
export declare function useValidationStyles(inputRef: Ref<ComponentPublicInstance | null>): {
|
7
|
+
applyValidationState: (isValid: boolean) => Promise<void>;
|
8
|
+
resetValidationState: () => void;
|
9
|
+
};
|
10
|
+
//# sourceMappingURL=useValidationStyles.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useValidationStyles.d.ts","sourceRoot":"","sources":["../../src/composables/useValidationStyles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAEnD;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,GAAG,CAAC,uBAAuB,GAAG,IAAI,CAAC;oCAIlC,OAAO;;EA4BrD"}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
/**
|
2
|
+
* Shared constants and default values for form components
|
3
|
+
*/
|
4
|
+
/**
|
5
|
+
* Default fill style for input components
|
6
|
+
*/
|
7
|
+
export declare const DEFAULT_FILL = "outline";
|
8
|
+
/**
|
9
|
+
* Default label placement for input components
|
10
|
+
*/
|
11
|
+
export declare const DEFAULT_LABEL_PLACEMENT = "stacked";
|
12
|
+
/**
|
13
|
+
* Default error messages for validation
|
14
|
+
*/
|
15
|
+
export declare const VALIDATION_MESSAGES: {
|
16
|
+
readonly REQUIRED: "This field is required";
|
17
|
+
readonly INVALID_EMAIL: "Please enter a valid email address";
|
18
|
+
readonly INVALID_DATE: "Please enter a valid date";
|
19
|
+
readonly MIN_LENGTH: (min: number) => string;
|
20
|
+
readonly MAX_LENGTH: (max: number) => string;
|
21
|
+
readonly PATTERN_MISMATCH: "Input format is not valid";
|
22
|
+
};
|
23
|
+
/**
|
24
|
+
* Default date pattern
|
25
|
+
*/
|
26
|
+
export declare const DEFAULT_DATE_PATTERN = "DD/MMM/YYYY";
|
27
|
+
/**
|
28
|
+
* Default icon size
|
29
|
+
*/
|
30
|
+
export declare const DEFAULT_ICON_SIZE = 24;
|
31
|
+
/**
|
32
|
+
* Common CSS classes for form styling
|
33
|
+
*/
|
34
|
+
export declare const FORM_CSS_CLASSES: {
|
35
|
+
readonly FLEX_END: "flex-end-buttons";
|
36
|
+
readonly FLEX_BETWEEN: "flex-between";
|
37
|
+
readonly MARGIN_VERTICAL: "ion-margin-vertical";
|
38
|
+
readonly MARGIN_BOTTOM: "ion-margin-bottom";
|
39
|
+
readonly MARGIN_END: "ion-margin-end";
|
40
|
+
};
|
41
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,eAAO,MAAM,YAAY,YAAY,CAAC;AAEtC;;GAEG;AACH,eAAO,MAAM,uBAAuB,YAAY,CAAC;AAEjD;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;+BAIZ,MAAM;+BACN,MAAM;;CAEhB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,oBAAoB,gBAAgB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,iBAAiB,KAAK,CAAC;AAEpC;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;CAMnB,CAAC"}
|