@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 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
- }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
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;AAwBpC,iBAAe,aAAa,kBAa3B;;gBAiBW,OAAO,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;;;;;;;;;;;gBAA3B,OAAO,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;;;;;;;;AAyHvC,wBAUG"}
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 const _default: import('vue').DefineComponent<{
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
- }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
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":"AAgEA;AAGA,OAAO,sCAAsC,CAAC;AAG9C,OAAO,KAAK,EAAa,UAAU,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,EAAuB,QAAQ,EAAO,MAAM,KAAK,CAAC;AAiDzD,iBAAe,aAAa,kBAY3B;;gBA2CW,OAAO,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;;;;;;;;gBAA3B,OAAO,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;;;;;AA8PvC,wBAUG"}
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
- }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
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":"AAOA;AAEA,OAAO,EAAa,UAAU,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;;gBAQnB,OAAO,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;;;;;gBAA3B,OAAO,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;;;;;AAsDvC,wBASG"}
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
- }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
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":"AAOA;AAEA,OAAO,EAAa,UAAU,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;;gBAQnB,OAAO,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;;;;;gBAA3B,OAAO,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;;;;;AAsDvC,wBASG"}
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
- }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
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":"AAOA;AAEA,OAAO,EAAa,UAAU,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;;gBAQnB,OAAO,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;;;;;gBAA3B,OAAO,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;;;;;AAsDvC,wBASG"}
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 const _default: import('vue').DefineComponent<{
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
- }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
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;;gBAiBW,OAAO,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;;;;;;;;gBAA3B,OAAO,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;;;;;AAuHvC,wBAUG"}
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
- }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
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;;gBAkBxB,OAAO,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;;;;;;;;gBAA3B,OAAO,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;;;;;AAyDvC,wBAUG"}
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
- 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
- }
13
- declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FormProps>, {
14
- showLabels: boolean;
15
- showClearButton: boolean;
16
- showCancelButton: boolean;
17
- buttonPlacement: string;
18
- submitButtonText: string;
19
- clearButtonText: string;
20
- cancelButtonText: string;
21
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
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<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FormProps>, {
26
- showLabels: boolean;
27
- showClearButton: boolean;
28
- showCancelButton: boolean;
29
- buttonPlacement: string;
30
- submitButtonText: string;
31
- clearButtonText: string;
32
- cancelButtonText: string;
33
- }>>> & {
34
- onSubmit?: ((formData: FormData, computedFormData: ComputedData) => any) | undefined;
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":"AAuCA;AAIA,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,UAAU,EAAa,MAAM,UAAU,CAAC;AAK9E,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;CAC3B;;;;;;;;;;;;;;;;;;;;;;;;;;gBAPc,OAAO;qBACF,OAAO;sBACN,OAAO;qBACR,OAAO,GAAG,QAAQ,GAAG,KAAK;sBACzB,MAAM;qBACP,MAAM;sBACL,MAAM;;AAmR3B,wBAOG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,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;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"}