@uniquedj95/vform 1.4.4 → 1.5.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/components/inputs/BaseInput.vue.d.ts.map +1 -1
- package/dist/components/inputs/DateInput.vue.d.ts.map +1 -1
- package/dist/components/inputs/RepeatInput.vue.d.ts +39 -0
- package/dist/components/inputs/RepeatInput.vue.d.ts.map +1 -0
- package/dist/components/inputs/SelectInput.vue.d.ts.map +1 -1
- package/dist/components/inputs/TextAreaInput.vue.d.ts.map +1 -1
- package/dist/components/vForm.vue.d.ts +49 -86
- package/dist/components/vForm.vue.d.ts.map +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +3576 -3450
- package/dist/index.umd.js +1 -1
- package/dist/types/index.d.ts +7 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/index.d.ts +10 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"BaseInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/BaseInput.vue"],"names":[],"mappings":"AAgCA;AAGA,OAAO,EAAa,UAAU,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAE,QAAQ,
|
1
|
+
{"version":3,"file":"BaseInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/BaseInput.vue"],"names":[],"mappings":"AAgCA;AAGA,OAAO,EAAa,UAAU,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAc,MAAM,KAAK,CAAC;AAW3C,iBAAS,OAAO,SAIf;AAiBD,iBAAe,aAAa,kBAa3B;;gBAmBW,OAAO,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;;;;;;;;;;;;gBAA3B,OAAO,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;;;;;;;;AA2JvC,wBAUG"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DateInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/DateInput.vue"],"names":[],"mappings":"AAqEA;AAGA,OAAO,sCAAsC,CAAC;AAG9C,OAAO,KAAK,EAAa,UAAU,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,EAAuB,QAAQ,
|
1
|
+
{"version":3,"file":"DateInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/DateInput.vue"],"names":[],"mappings":"AAqEA;AAGA,OAAO,sCAAsC,CAAC;AAG9C,OAAO,KAAK,EAAa,UAAU,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,EAAuB,QAAQ,EAAc,MAAM,KAAK,CAAC;AAgEhE,iBAAe,aAAa,kBAY3B;AA2BD,iBAAS,OAAO,SAIf;;gBAmBW,OAAO,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;;;;;;;;;gBAA3B,OAAO,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;;;;;AAkSvC,wBAUG"}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
import { ComputedData, FormData, FormSchema } from 'types';
|
2
|
+
import { PropType } from 'vue';
|
3
|
+
|
4
|
+
declare function onReset(): void;
|
5
|
+
declare function getErrors(): string[];
|
6
|
+
declare function onValueUpdate(): Promise<void>;
|
7
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
8
|
+
modelValue: import('vue').PropType<any>;
|
9
|
+
schema: {
|
10
|
+
type: PropType<FormSchema>;
|
11
|
+
};
|
12
|
+
data: {
|
13
|
+
type: PropType<FormData>;
|
14
|
+
required: true;
|
15
|
+
};
|
16
|
+
computedData: {
|
17
|
+
type: PropType<ComputedData>;
|
18
|
+
required: true;
|
19
|
+
};
|
20
|
+
}>, {
|
21
|
+
onValueUpdate: typeof onValueUpdate;
|
22
|
+
onReset: typeof onReset;
|
23
|
+
getErrors: typeof getErrors;
|
24
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
25
|
+
modelValue: import('vue').PropType<any>;
|
26
|
+
schema: {
|
27
|
+
type: PropType<FormSchema>;
|
28
|
+
};
|
29
|
+
data: {
|
30
|
+
type: PropType<FormData>;
|
31
|
+
required: true;
|
32
|
+
};
|
33
|
+
computedData: {
|
34
|
+
type: PropType<ComputedData>;
|
35
|
+
required: true;
|
36
|
+
};
|
37
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
38
|
+
export default _default;
|
39
|
+
//# sourceMappingURL=RepeatInput.vue.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"RepeatInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/RepeatInput.vue"],"names":[],"mappings":"AAsCA;AAEI,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAa,UAAU,EAAU,MAAM,OAAO,CAAC;AAG9E,OAAO,EAAuB,QAAQ,EAAc,MAAM,KAAK,CAAC;AA0ChE,iBAAS,OAAO,SAIf;AAED,iBAAS,SAAS,aAMjB;AAED,iBAAe,aAAa,kBAM3B;;gBAaO,OAAO,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;;;;;;kBA+N8J,IAAI;;;;kBAAJ,IAAI;;;;;;;gBA/N7L,OAAO,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;;;;;;kBA+N8J,IAAI;;;;kBAAJ,IAAI;;;AAZzM,wBAUG"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SelectInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/SelectInput.vue"],"names":[],"mappings":"AAoCA;AAGA,OAAO,EAAa,UAAU,EAAU,MAAM,OAAO,CAAC;AAEtD,OAAO,EAAE,QAAQ,EAAc,MAAM,KAAK,CAAC;
|
1
|
+
{"version":3,"file":"SelectInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/SelectInput.vue"],"names":[],"mappings":"AAoCA;AAGA,OAAO,EAAa,UAAU,EAAU,MAAM,OAAO,CAAC;AAEtD,OAAO,EAAE,QAAQ,EAAc,MAAM,KAAK,CAAC;AAuC3C,iBAAe,aAAa,kBAW3B;AAQD,iBAAS,OAAO,SAIf;;gBAaW,OAAO,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;;;;;;;;;gBAA3B,OAAO,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;;;;;AA8JvC,wBAUG"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TextAreaInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/TextAreaInput.vue"],"names":[],"mappings":"AA+BA;AAGA,OAAO,EAAa,UAAU,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,QAAQ,
|
1
|
+
{"version":3,"file":"TextAreaInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/TextAreaInput.vue"],"names":[],"mappings":"AA+BA;AAGA,OAAO,EAAa,UAAU,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAc,MAAM,KAAK,CAAC;AAiB3C,iBAAS,OAAO,SAIf;AAmBD,iBAAe,aAAa,kBAa3B;;gBAaW,OAAO,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;;;;;;;;;gBAA3B,OAAO,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;;;;;AAyGvC,wBAUG"}
|
@@ -1,50 +1,29 @@
|
|
1
1
|
import { FormData, ComputedData, FormSchema, CustomButton } from '../types';
|
2
2
|
|
3
|
+
interface FormProps {
|
4
|
+
schema: FormSchema;
|
5
|
+
showLabels?: boolean;
|
6
|
+
showClearButton?: boolean;
|
7
|
+
showCancelButton?: boolean;
|
8
|
+
buttonPlacement?: 'start' | 'middle' | 'end';
|
9
|
+
submitButtonText?: string;
|
10
|
+
clearButtonText?: string;
|
11
|
+
cancelButtonText?: string;
|
12
|
+
hideButtons?: boolean;
|
13
|
+
customButtons?: Array<CustomButton>;
|
14
|
+
}
|
3
15
|
declare function isFormValid(): Promise<boolean>;
|
4
16
|
declare function resetForm(): void;
|
5
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
};
|
16
|
-
showClearButton: {
|
17
|
-
type: import('vue').PropType<boolean>;
|
18
|
-
default: boolean;
|
19
|
-
};
|
20
|
-
showCancelButton: {
|
21
|
-
type: import('vue').PropType<boolean>;
|
22
|
-
default: boolean;
|
23
|
-
};
|
24
|
-
buttonPlacement: {
|
25
|
-
type: import('vue').PropType<"start" | "end" | "middle">;
|
26
|
-
default: string;
|
27
|
-
};
|
28
|
-
submitButtonText: {
|
29
|
-
type: import('vue').PropType<string>;
|
30
|
-
default: string;
|
31
|
-
};
|
32
|
-
clearButtonText: {
|
33
|
-
type: import('vue').PropType<string>;
|
34
|
-
default: string;
|
35
|
-
};
|
36
|
-
cancelButtonText: {
|
37
|
-
type: import('vue').PropType<string>;
|
38
|
-
default: string;
|
39
|
-
};
|
40
|
-
hideButtons: {
|
41
|
-
type: import('vue').PropType<boolean>;
|
42
|
-
default: boolean;
|
43
|
-
};
|
44
|
-
customButtons: {
|
45
|
-
type: import('vue').PropType<CustomButton[]>;
|
46
|
-
};
|
47
|
-
}>, {
|
17
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FormProps>, {
|
18
|
+
showLabels: boolean;
|
19
|
+
showClearButton: boolean;
|
20
|
+
showCancelButton: boolean;
|
21
|
+
hideButtons: boolean;
|
22
|
+
buttonPlacement: string;
|
23
|
+
submitButtonText: string;
|
24
|
+
clearButtonText: string;
|
25
|
+
cancelButtonText: string;
|
26
|
+
}>>, {
|
48
27
|
resetForm: typeof resetForm;
|
49
28
|
isFormValid: typeof isFormValid;
|
50
29
|
resolveData: () => {
|
@@ -55,49 +34,16 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
55
34
|
submit: (formData: FormData, computedFormData: ComputedData) => void;
|
56
35
|
clear: () => void;
|
57
36
|
cancel: () => void;
|
58
|
-
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
};
|
69
|
-
showClearButton: {
|
70
|
-
type: import('vue').PropType<boolean>;
|
71
|
-
default: boolean;
|
72
|
-
};
|
73
|
-
showCancelButton: {
|
74
|
-
type: import('vue').PropType<boolean>;
|
75
|
-
default: boolean;
|
76
|
-
};
|
77
|
-
buttonPlacement: {
|
78
|
-
type: import('vue').PropType<"start" | "end" | "middle">;
|
79
|
-
default: string;
|
80
|
-
};
|
81
|
-
submitButtonText: {
|
82
|
-
type: import('vue').PropType<string>;
|
83
|
-
default: string;
|
84
|
-
};
|
85
|
-
clearButtonText: {
|
86
|
-
type: import('vue').PropType<string>;
|
87
|
-
default: string;
|
88
|
-
};
|
89
|
-
cancelButtonText: {
|
90
|
-
type: import('vue').PropType<string>;
|
91
|
-
default: string;
|
92
|
-
};
|
93
|
-
hideButtons: {
|
94
|
-
type: import('vue').PropType<boolean>;
|
95
|
-
default: boolean;
|
96
|
-
};
|
97
|
-
customButtons: {
|
98
|
-
type: import('vue').PropType<CustomButton[]>;
|
99
|
-
};
|
100
|
-
}>> & Readonly<{
|
37
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FormProps>, {
|
38
|
+
showLabels: boolean;
|
39
|
+
showClearButton: boolean;
|
40
|
+
showCancelButton: boolean;
|
41
|
+
hideButtons: boolean;
|
42
|
+
buttonPlacement: string;
|
43
|
+
submitButtonText: string;
|
44
|
+
clearButtonText: string;
|
45
|
+
cancelButtonText: string;
|
46
|
+
}>>> & Readonly<{
|
101
47
|
onCancel?: (() => any) | undefined;
|
102
48
|
onSubmit?: ((formData: FormData, computedFormData: ComputedData) => any) | undefined;
|
103
49
|
onClear?: (() => any) | undefined;
|
@@ -112,4 +58,21 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
112
58
|
hideButtons: boolean;
|
113
59
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
114
60
|
export default _default;
|
61
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
62
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
63
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
64
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
65
|
+
} : {
|
66
|
+
type: import('vue').PropType<T[K]>;
|
67
|
+
required: true;
|
68
|
+
};
|
69
|
+
};
|
70
|
+
type __VLS_WithDefaults<P, D> = {
|
71
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
72
|
+
default: D[K];
|
73
|
+
}> : P[K];
|
74
|
+
};
|
75
|
+
type __VLS_Prettify<T> = {
|
76
|
+
[K in keyof T]: T[K];
|
77
|
+
} & {};
|
115
78
|
//# sourceMappingURL=vForm.vue.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"vForm.vue.d.ts","sourceRoot":"","sources":["../../src/components/vForm.vue"],"names":[],"mappings":"AA4CA;AAIA,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,UAAU,
|
1
|
+
{"version":3,"file":"vForm.vue.d.ts","sourceRoot":"","sources":["../../src/components/vForm.vue"],"names":[],"mappings":"AA4CA;AAIA,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAU,MAAM,UAAU,CAAC;AAKzF,UAA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