@uniquedj95/vform 1.7.0 → 2.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 +404 -59
- package/dist/components/inputs/BaseInput.vue.d.ts +24 -21
- package/dist/components/inputs/BaseInput.vue.d.ts.map +1 -1
- package/dist/components/inputs/CheckboxInput.vue.d.ts +23 -15
- package/dist/components/inputs/CheckboxInput.vue.d.ts.map +1 -1
- package/dist/components/inputs/DateInput.vue.d.ts +23 -15
- package/dist/components/inputs/DateInput.vue.d.ts.map +1 -1
- package/dist/components/inputs/EmailInput.vue.d.ts +56 -15
- package/dist/components/inputs/EmailInput.vue.d.ts.map +1 -1
- package/dist/components/inputs/NumberInput.vue.d.ts +56 -15
- package/dist/components/inputs/NumberInput.vue.d.ts.map +1 -1
- package/dist/components/inputs/PasswordInput.vue.d.ts +56 -15
- package/dist/components/inputs/PasswordInput.vue.d.ts.map +1 -1
- package/dist/components/inputs/RepeatInput.vue.d.ts +19 -31
- package/dist/components/inputs/RepeatInput.vue.d.ts.map +1 -1
- package/dist/components/inputs/SelectInput.vue.d.ts +25 -21
- package/dist/components/inputs/SelectInput.vue.d.ts.map +1 -1
- package/dist/components/inputs/TextAreaInput.vue.d.ts +23 -15
- package/dist/components/inputs/TextAreaInput.vue.d.ts.map +1 -1
- package/dist/components/inputs/TextInput.vue.d.ts +56 -15
- package/dist/components/inputs/TextInput.vue.d.ts.map +1 -1
- package/dist/components/vForm.vue.d.ts +10 -44
- package/dist/components/vForm.vue.d.ts.map +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.es.js +4312 -4012
- package/dist/index.umd.js +1 -1
- package/dist/types/index.d.ts +139 -9
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/index.d.ts +0 -1
- package/dist/vform.css +1 -0
- package/package.json +9 -9
- package/dist/style.css +0 -1
@@ -1,5 +1,4 @@
|
|
1
1
|
import { FormData, ComputedData, FormSchema, CustomButton } from '../types';
|
2
|
-
|
3
2
|
interface FormProps {
|
4
3
|
schema: FormSchema;
|
5
4
|
showLabels?: boolean;
|
@@ -14,39 +13,21 @@ interface FormProps {
|
|
14
13
|
}
|
15
14
|
declare function isFormValid(): Promise<boolean>;
|
16
15
|
declare function resetForm(): void;
|
17
|
-
declare const _default: import('vue').DefineComponent<
|
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
|
-
}>>, {
|
16
|
+
declare const _default: import('vue').DefineComponent<FormProps, {
|
27
17
|
resetForm: typeof resetForm;
|
28
18
|
isFormValid: typeof isFormValid;
|
29
19
|
resolveData: () => {
|
30
20
|
formData: FormData;
|
31
21
|
computedData: ComputedData;
|
32
22
|
};
|
33
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
34
|
-
submit: (formData: FormData, computedFormData: ComputedData) =>
|
35
|
-
clear: () =>
|
36
|
-
cancel: () =>
|
37
|
-
}, string, import('vue').PublicProps, Readonly<
|
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<{
|
47
|
-
onCancel?: (() => any) | undefined;
|
23
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
24
|
+
submit: (formData: FormData, computedFormData: ComputedData) => any;
|
25
|
+
clear: () => any;
|
26
|
+
cancel: () => any;
|
27
|
+
}, string, import('vue').PublicProps, Readonly<FormProps> & Readonly<{
|
48
28
|
onSubmit?: ((formData: FormData, computedFormData: ComputedData) => any) | undefined;
|
49
29
|
onClear?: (() => any) | undefined;
|
30
|
+
onCancel?: (() => any) | undefined;
|
50
31
|
}>, {
|
51
32
|
showLabels: boolean;
|
52
33
|
showClearButton: boolean;
|
@@ -56,23 +37,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
56
37
|
clearButtonText: string;
|
57
38
|
cancelButtonText: string;
|
58
39
|
hideButtons: boolean;
|
59
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions,
|
40
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
41
|
+
dynamicRefs: unknown[];
|
42
|
+
}, any>;
|
60
43
|
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
|
-
} & {};
|
78
44
|
//# 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;
|
1
|
+
{"version":3,"file":"vForm.vue.d.ts","sourceRoot":"","sources":["../../src/components/vForm.vue"],"names":[],"mappings":"AA4CA;AA2LA,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAU,MAAM,UAAU,CAAC;AAGzF,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;AA4DD,iBAAe,WAAW,qBAOzB;AAOD,iBAAS,SAAS,SAIjB;;;;;;;;;;;;;;;;;gBAvFc,OAAO;qBACF,OAAO;sBACN,OAAO;qBACR,OAAO,GAAG,QAAQ,GAAG,KAAK;sBACzB,MAAM;qBACP,MAAM;sBACL,MAAM;iBACX,OAAO;;;;AAoWvB,wBAWG"}
|