@opengis/form 0.0.35 → 0.0.36
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/form/vs-compact-form.vue.d.ts +2 -0
- package/dist/components/form/vs-compact-form.vue.d.ts.map +1 -1
- package/dist/components/icons/icon-file.vue.d.ts.map +1 -1
- package/dist/components/inputs/table/vs-input-datatable.vue.d.ts.map +1 -1
- package/dist/composables/useForm.d.ts +1 -1
- package/dist/composables/useForm.d.ts.map +1 -1
- package/dist/index.js +1604 -1571
- package/dist/index.umd.cjs +3 -3
- package/dist/utils/convertForm.d.ts +1 -1
- package/dist/utils/convertForm.d.ts.map +1 -1
- package/package.json +67 -67
|
@@ -5,6 +5,7 @@ interface FormProps {
|
|
|
5
5
|
modelValue?: any;
|
|
6
6
|
layout?: string;
|
|
7
7
|
formId?: string;
|
|
8
|
+
disabled?: boolean;
|
|
8
9
|
}
|
|
9
10
|
type __VLS_Props = FormProps;
|
|
10
11
|
type __VLS_PublicProps = __VLS_Props & {
|
|
@@ -28,6 +29,7 @@ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
28
29
|
"onHandle-submit"?: ((formValues: Record<string, any>) => any) | undefined;
|
|
29
30
|
}>, {
|
|
30
31
|
style: object;
|
|
32
|
+
disabled: boolean;
|
|
31
33
|
layout: string;
|
|
32
34
|
schema: ISchemaItem[] | any;
|
|
33
35
|
formId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vs-compact-form.vue.d.ts","sourceRoot":"","sources":["../../../src/components/form/vs-compact-form.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vs-compact-form.vue.d.ts","sourceRoot":"","sources":["../../../src/components/form/vs-compact-form.vue"],"names":[],"mappings":"AAoGA,OAAO,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAM3D,UAAU,SAAS;IACjB,MAAM,EAAE,WAAW,EAAE,GAAG,GAAG,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,KAAK,WAAW,GAAG,SAAS,CAAC;AA8D7B,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,MAAM,CAAC,EAAE,KAAK,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC9B,CAAC;;;;;;;;;;;;;;;;;WAxEQ,MAAM;cAIH,OAAO;YAFT,MAAM;YAHP,WAAW,EAAE,GAAG,GAAG;YAIlB,MAAM;;AAkKjB,wBASG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-file.vue.d.ts","sourceRoot":"","sources":["../../../src/components/icons/icon-file.vue"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"icon-file.vue.d.ts","sourceRoot":"","sources":["../../../src/components/icons/icon-file.vue"],"names":[],"mappings":";AA+EA,wBAKG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vs-input-datatable.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/table/vs-input-datatable.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vs-input-datatable.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/table/vs-input-datatable.vue"],"names":[],"mappings":"AAgYA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAGvD,KAAK,WAAW,GAAG,gBAAgB,CAAC;AA4KpC,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC;CAClB,CAAC;;;;;;AAq2BF,wBAOG"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Ref } from 'vue';
|
|
2
2
|
import type { ISchemaItem, IErrors } from '../types/form';
|
|
3
|
-
export default function useForm(formValues: Ref<Record<string, any>>, schema1: ISchemaItem[] | any): {
|
|
3
|
+
export default function useForm(formValues: Ref<Record<string, any>>, schema1: ISchemaItem[] | any, disabled?: Ref<boolean> | boolean): {
|
|
4
4
|
errors: Ref<IErrors, IErrors>;
|
|
5
5
|
validate: (schemaList?: ISchemaItem[], isRoot?: boolean) => IErrors | null;
|
|
6
6
|
reset: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useForm.d.ts","sourceRoot":"","sources":["../../src/composables/useForm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,GAAG,EAAY,MAAM,KAAK,CAAC;AAG9C,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAG1D,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,EAAE,OAAO,EAAE,WAAW,EAAE,GAAG,GAAG;;
|
|
1
|
+
{"version":3,"file":"useForm.d.ts","sourceRoot":"","sources":["../../src/composables/useForm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,GAAG,EAAY,MAAM,KAAK,CAAC;AAG9C,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAG1D,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,EAAE,OAAO,EAAE,WAAW,EAAE,GAAG,GAAG,EAAG,QAAQ,GAAE,GAAG,CAAC,OAAO,CAAC,GAAG,OAAe;;4BAmB7G,WAAW,EAAE;;;EA4C5C"}
|