@uniquedj95/vform 1.4.4 → 1.4.5
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/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.es.js +1957 -1955
- package/dist/index.umd.js +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;AAiEhE,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"}
|
@@ -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,EAAa,YAAY,EAAE,MAAM,UAAU,CAAC;
|
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,EAAa,YAAY,EAAE,MAAM,UAAU,CAAC;AAK5F,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;AA2CD,iBAAe,WAAW,qBAOzB;AAOD,iBAAS,SAAS,SAIjB;;;;;;;;;;;;;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