@uniquedj95/vform 1.3.0 → 1.4.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/README.md +1 -0
- package/dist/components/inputs/BaseInput.vue.d.ts +6 -4
- package/dist/components/inputs/BaseInput.vue.d.ts.map +1 -1
- package/dist/components/inputs/DateInput.vue.d.ts +6 -4
- package/dist/components/inputs/DateInput.vue.d.ts.map +1 -1
- package/dist/components/inputs/EmailInput.vue.d.ts +7 -3
- package/dist/components/inputs/EmailInput.vue.d.ts.map +1 -1
- package/dist/components/inputs/NumberInput.vue.d.ts +7 -3
- package/dist/components/inputs/NumberInput.vue.d.ts.map +1 -1
- package/dist/components/inputs/PasswordInput.vue.d.ts +7 -3
- package/dist/components/inputs/PasswordInput.vue.d.ts.map +1 -1
- package/dist/components/inputs/SelectInput.vue.d.ts +6 -4
- package/dist/components/inputs/SelectInput.vue.d.ts.map +1 -1
- package/dist/components/inputs/TextAreaInput.vue.d.ts +22 -0
- package/dist/components/inputs/TextAreaInput.vue.d.ts.map +1 -0
- package/dist/components/inputs/TextInput.vue.d.ts +5 -4
- package/dist/components/inputs/TextInput.vue.d.ts.map +1 -1
- package/dist/components/vForm.vue.d.ts +100 -49
- package/dist/components/vForm.vue.d.ts.map +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +2993 -2844
- package/dist/index.umd.js +1 -1
- package/dist/types/index.d.ts +161 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
@@ -33,6 +33,7 @@ vForm is a Vue.js component that dynamically generates forms based on a provided
|
|
33
33
|
import { VForm } from '@uniquedj95/vform';
|
34
34
|
|
35
35
|
/* Import CSS styles and other components here */
|
36
|
+
import '@uniquedj95/vform/styles.css'
|
36
37
|
|
37
38
|
const app = createApp(App)
|
38
39
|
.use(IonicVue)
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import { FormSchema, BaseFieldTypes } from 'types';
|
2
2
|
import { PropType } from 'vue';
|
3
3
|
|
4
|
+
declare function onReset(): void;
|
4
5
|
declare function onValueUpdate(): Promise<void>;
|
5
|
-
declare const _default: import('vue').DefineComponent<{
|
6
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
6
7
|
modelValue: import('vue').PropType<any>;
|
7
8
|
schema: {
|
8
9
|
type: PropType<FormSchema>;
|
@@ -10,10 +11,11 @@ declare const _default: import('vue').DefineComponent<{
|
|
10
11
|
type: {
|
11
12
|
type: PropType<BaseFieldTypes>;
|
12
13
|
};
|
13
|
-
}
|
14
|
+
}>, {
|
14
15
|
onValueUpdate: typeof onValueUpdate;
|
16
|
+
onReset: typeof onReset;
|
15
17
|
getErrors: () => string | undefined;
|
16
|
-
},
|
18
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
17
19
|
modelValue: import('vue').PropType<any>;
|
18
20
|
schema: {
|
19
21
|
type: PropType<FormSchema>;
|
@@ -21,6 +23,6 @@ declare const _default: import('vue').DefineComponent<{
|
|
21
23
|
type: {
|
22
24
|
type: PropType<BaseFieldTypes>;
|
23
25
|
};
|
24
|
-
}
|
26
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
25
27
|
export default _default;
|
26
28
|
//# sourceMappingURL=BaseInput.vue.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"BaseInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/BaseInput.vue"],"names":[],"mappings":"AA6BA;AAGA,OAAO,EAAa,UAAU,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAO,MAAM,KAAK,CAAC;
|
1
|
+
{"version":3,"file":"BaseInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/BaseInput.vue"],"names":[],"mappings":"AA6BA;AAGA,OAAO,EAAa,UAAU,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAO,MAAM,KAAK,CAAC;AASpC,iBAAS,OAAO,SAIf;AAiBD,iBAAe,aAAa,kBAa3B;;gBAmBW,OAAO,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;;;;;;;;;;;;gBAA3B,OAAO,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;;;;;;;;AAyHvC,wBAUG"}
|
@@ -2,19 +2,21 @@ import { FormSchema } from '../../types';
|
|
2
2
|
import { PropType } from 'vue';
|
3
3
|
|
4
4
|
declare function onValueUpdate(): Promise<void>;
|
5
|
-
declare
|
5
|
+
declare function onReset(): void;
|
6
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
6
7
|
modelValue: import('vue').PropType<any>;
|
7
8
|
schema: {
|
8
9
|
type: PropType<FormSchema>;
|
9
10
|
};
|
10
|
-
}
|
11
|
+
}>, {
|
11
12
|
onValueUpdate: typeof onValueUpdate;
|
13
|
+
onReset: typeof onReset;
|
12
14
|
getErrors: () => string | undefined;
|
13
|
-
},
|
15
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
14
16
|
modelValue: import('vue').PropType<any>;
|
15
17
|
schema: {
|
16
18
|
type: PropType<FormSchema>;
|
17
19
|
};
|
18
|
-
}
|
20
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
19
21
|
export default _default;
|
20
22
|
//# sourceMappingURL=DateInput.vue.d.ts.map
|
@@ -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":"AAiEA;AAGA,OAAO,sCAAsC,CAAC;AAG9C,OAAO,KAAK,EAAa,UAAU,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,EAAuB,QAAQ,EAAO,MAAM,KAAK,CAAC;AAoDzD,iBAAe,aAAa,kBAY3B;AA4BD,iBAAS,OAAO,SAIf;;gBAmBW,OAAO,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;;;;;;;;;gBAA3B,OAAO,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;;;;;AA8PvC,wBAUG"}
|
@@ -1,16 +1,20 @@
|
|
1
1
|
import { FormSchema } from 'types';
|
2
2
|
import { PropType } from 'vue';
|
3
3
|
|
4
|
-
declare const _default: import('vue').DefineComponent<{
|
4
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
5
5
|
modelValue: import('vue').PropType<any>;
|
6
6
|
schema: {
|
7
7
|
type: PropType<FormSchema>;
|
8
8
|
};
|
9
|
-
}
|
9
|
+
}>, {
|
10
|
+
onReset: () => any;
|
11
|
+
onValueUpdate: () => any;
|
12
|
+
getErrors: () => any;
|
13
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
10
14
|
modelValue: import('vue').PropType<any>;
|
11
15
|
schema: {
|
12
16
|
type: PropType<FormSchema>;
|
13
17
|
};
|
14
|
-
}
|
18
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
15
19
|
export default _default;
|
16
20
|
//# sourceMappingURL=EmailInput.vue.d.ts.map
|
@@ -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":"AAQA;AAEA,OAAO,EAAa,UAAU,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAO,MAAM,KAAK,CAAC;;gBAoBxB,OAAO,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;;;;;;;;;gBAA3B,OAAO,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;;;;;AAyDvC,wBAUG"}
|
@@ -1,16 +1,20 @@
|
|
1
1
|
import { FormSchema } from 'types';
|
2
2
|
import { PropType } from 'vue';
|
3
3
|
|
4
|
-
declare const _default: import('vue').DefineComponent<{
|
4
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
5
5
|
modelValue: import('vue').PropType<any>;
|
6
6
|
schema: {
|
7
7
|
type: PropType<FormSchema>;
|
8
8
|
};
|
9
|
-
}
|
9
|
+
}>, {
|
10
|
+
onReset: () => any;
|
11
|
+
onValueUpdate: () => any;
|
12
|
+
getErrors: () => any;
|
13
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
10
14
|
modelValue: import('vue').PropType<any>;
|
11
15
|
schema: {
|
12
16
|
type: PropType<FormSchema>;
|
13
17
|
};
|
14
|
-
}
|
18
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
15
19
|
export default _default;
|
16
20
|
//# sourceMappingURL=NumberInput.vue.d.ts.map
|
@@ -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":"AAQA;AAEA,OAAO,EAAa,UAAU,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAO,MAAM,KAAK,CAAC;;gBAoBxB,OAAO,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;;;;;;;;;gBAA3B,OAAO,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;;;;;AAyDvC,wBAUG"}
|
@@ -1,16 +1,20 @@
|
|
1
1
|
import { FormSchema } from 'types';
|
2
2
|
import { PropType } from 'vue';
|
3
3
|
|
4
|
-
declare const _default: import('vue').DefineComponent<{
|
4
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
5
5
|
modelValue: import('vue').PropType<any>;
|
6
6
|
schema: {
|
7
7
|
type: PropType<FormSchema>;
|
8
8
|
};
|
9
|
-
}
|
9
|
+
}>, {
|
10
|
+
onReset: () => any;
|
11
|
+
onValueUpdate: () => any;
|
12
|
+
getErrors: () => any;
|
13
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
10
14
|
modelValue: import('vue').PropType<any>;
|
11
15
|
schema: {
|
12
16
|
type: PropType<FormSchema>;
|
13
17
|
};
|
14
|
-
}
|
18
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
15
19
|
export default _default;
|
16
20
|
//# sourceMappingURL=PasswordInput.vue.d.ts.map
|
@@ -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":"AAQA;AAEA,OAAO,EAAa,UAAU,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAO,MAAM,KAAK,CAAC;;gBAoBxB,OAAO,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;;;;;;;;;gBAA3B,OAAO,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;;;;;AAyDvC,wBAUG"}
|
@@ -2,19 +2,21 @@ import { FormSchema } from 'types';
|
|
2
2
|
import { PropType } from 'vue';
|
3
3
|
|
4
4
|
declare function onValueUpdate(): Promise<void>;
|
5
|
-
declare
|
5
|
+
declare function onReset(): void;
|
6
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
6
7
|
modelValue: import('vue').PropType<any>;
|
7
8
|
schema: {
|
8
9
|
type: PropType<FormSchema>;
|
9
10
|
};
|
10
|
-
}
|
11
|
+
}>, {
|
11
12
|
onValueUpdate: typeof onValueUpdate;
|
13
|
+
onReset: typeof onReset;
|
12
14
|
getErrors: () => string | undefined;
|
13
|
-
},
|
15
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
14
16
|
modelValue: import('vue').PropType<any>;
|
15
17
|
schema: {
|
16
18
|
type: PropType<FormSchema>;
|
17
19
|
};
|
18
|
-
}
|
20
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
19
21
|
export default _default;
|
20
22
|
//# sourceMappingURL=SelectInput.vue.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SelectInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/SelectInput.vue"],"names":[],"mappings":"AAiCA;AAGA,OAAO,EAAa,UAAU,EAAU,MAAM,OAAO,CAAC;AAEtD,OAAO,EAAE,QAAQ,EAAc,MAAM,KAAK,CAAC;AAqC3C,iBAAe,aAAa,kBAW3B;;
|
1
|
+
{"version":3,"file":"SelectInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/SelectInput.vue"],"names":[],"mappings":"AAiCA;AAGA,OAAO,EAAa,UAAU,EAAU,MAAM,OAAO,CAAC;AAEtD,OAAO,EAAE,QAAQ,EAAc,MAAM,KAAK,CAAC;AAqC3C,iBAAe,aAAa,kBAW3B;AAQD,iBAAS,OAAO,SAIf;;gBAaW,OAAO,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;;;;;;;;;gBAA3B,OAAO,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;;;;;AAuHvC,wBAUG"}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { FormSchema } from 'types';
|
2
|
+
import { PropType } from 'vue';
|
3
|
+
|
4
|
+
declare function onReset(): void;
|
5
|
+
declare function onValueUpdate(): Promise<void>;
|
6
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
7
|
+
modelValue: import('vue').PropType<any>;
|
8
|
+
schema: {
|
9
|
+
type: PropType<FormSchema>;
|
10
|
+
};
|
11
|
+
}>, {
|
12
|
+
onReset: typeof onReset;
|
13
|
+
onValueUpdate: typeof onValueUpdate;
|
14
|
+
getErrors: () => string | undefined;
|
15
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
16
|
+
modelValue: import('vue').PropType<any>;
|
17
|
+
schema: {
|
18
|
+
type: PropType<FormSchema>;
|
19
|
+
};
|
20
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
21
|
+
export default _default;
|
22
|
+
//# sourceMappingURL=TextAreaInput.vue.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"TextAreaInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/TextAreaInput.vue"],"names":[],"mappings":"AAyBA;AAGA,OAAO,EAAa,UAAU,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAO,MAAM,KAAK,CAAC;AAepC,iBAAS,OAAO,SAIf;AAmBD,iBAAe,aAAa,kBAa3B;;gBAaW,OAAO,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;;;;;;;;;gBAA3B,OAAO,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;;;;;AAmEvC,wBAUG"}
|
@@ -1,19 +1,20 @@
|
|
1
1
|
import { FormSchema } from 'types';
|
2
2
|
import { PropType } from 'vue';
|
3
3
|
|
4
|
-
declare const _default: import('vue').DefineComponent<{
|
4
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
5
5
|
modelValue: import('vue').PropType<any>;
|
6
6
|
schema: {
|
7
7
|
type: PropType<FormSchema>;
|
8
8
|
};
|
9
|
-
}
|
9
|
+
}>, {
|
10
|
+
onReset: () => any;
|
10
11
|
onValueUpdate: () => any;
|
11
12
|
getErrors: () => any;
|
12
|
-
},
|
13
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
13
14
|
modelValue: import('vue').PropType<any>;
|
14
15
|
schema: {
|
15
16
|
type: PropType<FormSchema>;
|
16
17
|
};
|
17
|
-
}
|
18
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
18
19
|
export default _default;
|
19
20
|
//# sourceMappingURL=TextInput.vue.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TextInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/TextInput.vue"],"names":[],"mappings":"AAQA;AAEA,OAAO,EAAa,UAAU,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAO,MAAM,KAAK,CAAC;;
|
1
|
+
{"version":3,"file":"TextInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/TextInput.vue"],"names":[],"mappings":"AAQA;AAEA,OAAO,EAAa,UAAU,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAO,MAAM,KAAK,CAAC;;gBAoBxB,OAAO,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;;;;;;;;;gBAA3B,OAAO,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;;;;;AAyDvC,wBAUG"}
|
@@ -1,40 +1,107 @@
|
|
1
|
-
import { FormData, ComputedData, FormSchema } from '../types';
|
1
|
+
import { FormData, ComputedData, FormSchema, CustomButton } from '../types';
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
3
|
+
declare function isFormValid(): Promise<boolean>;
|
4
|
+
declare function resetForm(): void;
|
5
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
6
|
+
formData: import('vue').PropType<FormData>;
|
7
|
+
computedData: import('vue').PropType<ComputedData>;
|
8
|
+
schema: {
|
9
|
+
type: import('vue').PropType<FormSchema>;
|
10
|
+
required: true;
|
11
|
+
};
|
12
|
+
showLabels: {
|
13
|
+
type: import('vue').PropType<boolean>;
|
14
|
+
default: boolean;
|
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
|
+
}>, {
|
48
|
+
resetForm: typeof resetForm;
|
49
|
+
isFormValid: typeof isFormValid;
|
50
|
+
resolveData: () => {
|
51
|
+
formData: FormData;
|
52
|
+
computedData: ComputedData;
|
53
|
+
};
|
54
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
22
55
|
submit: (formData: FormData, computedFormData: ComputedData) => void;
|
23
56
|
clear: () => void;
|
24
57
|
cancel: () => void;
|
25
|
-
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
58
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
59
|
+
formData: import('vue').PropType<FormData>;
|
60
|
+
computedData: import('vue').PropType<ComputedData>;
|
61
|
+
schema: {
|
62
|
+
type: import('vue').PropType<FormSchema>;
|
63
|
+
required: true;
|
64
|
+
};
|
65
|
+
showLabels: {
|
66
|
+
type: import('vue').PropType<boolean>;
|
67
|
+
default: boolean;
|
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<{
|
35
101
|
onCancel?: (() => any) | undefined;
|
102
|
+
onSubmit?: ((formData: FormData, computedFormData: ComputedData) => any) | undefined;
|
36
103
|
onClear?: (() => any) | undefined;
|
37
|
-
}
|
104
|
+
}>, {
|
38
105
|
showLabels: boolean;
|
39
106
|
showClearButton: boolean;
|
40
107
|
showCancelButton: boolean;
|
@@ -42,23 +109,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
42
109
|
submitButtonText: string;
|
43
110
|
clearButtonText: string;
|
44
111
|
cancelButtonText: string;
|
45
|
-
|
112
|
+
hideButtons: boolean;
|
113
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
46
114
|
export default _default;
|
47
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
48
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
49
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
50
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
51
|
-
} : {
|
52
|
-
type: import('vue').PropType<T[K]>;
|
53
|
-
required: true;
|
54
|
-
};
|
55
|
-
};
|
56
|
-
type __VLS_WithDefaults<P, D> = {
|
57
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
58
|
-
default: D[K];
|
59
|
-
}> : P[K];
|
60
|
-
};
|
61
|
-
type __VLS_Prettify<T> = {
|
62
|
-
[K in keyof T]: T[K];
|
63
|
-
} & {};
|
64
115
|
//# sourceMappingURL=vForm.vue.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"vForm.vue.d.ts","sourceRoot":"","sources":["../../src/components/vForm.vue"],"names":[],"mappings":"
|
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;AAuD5F,iBAAe,WAAW,qBAOzB;AAOD,iBAAS,SAAS,SAIjB;;cAiEW,OAAO,KAAK,EAAE,QAAQ,CAAC,QAAQ,CAAC;kBAC5B,OAAO,KAAK,EAAE,QAAQ,CAAC,YAAY,CAAC;;;kBAiOiJ,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAlO7L,OAAO,KAAK,EAAE,QAAQ,CAAC,QAAQ,CAAC;kBAC5B,OAAO,KAAK,EAAE,QAAQ,CAAC,YAAY,CAAC;;;kBAiOiJ,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBArW1L,OAAO;qBACF,OAAO;sBACN,OAAO;qBACR,OAAO,GAAG,QAAQ,GAAG,KAAK;sBACzB,MAAM;qBACP,MAAM;sBACL,MAAM;iBACX,OAAO;;AAiVvB,wBAWG"}
|