@opengis/form 0.0.35 → 0.0.37
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/file-list/vs-input-file-list.vue.d.ts.map +1 -1
- package/dist/components/inputs/map/util.d.ts.map +1 -1
- package/dist/components/inputs/map/vs-input-map.vue.d.ts.map +1 -1
- package/dist/components/inputs/table/vs-input-datatable.vue.d.ts.map +1 -1
- package/dist/components/modal/modal-edit.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.css +1 -1
- package/dist/index.js +1672 -1565
- 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 +1 -1
|
@@ -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":"AAwGA,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;AAkE7B,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,MAAM,CAAC,EAAE,KAAK,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC9B,CAAC;;;;;;;;;;;;;;;;;WA5EQ,MAAM;cAIH,OAAO;YAFT,MAAM;YAHP,WAAW,EAAE,GAAG,GAAG;YAIlB,MAAM;;AAsKjB,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-file-list.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/file-list/vs-input-file-list.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vs-input-file-list.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/file-list/vs-input-file-list.vue"],"names":[],"mappings":"AA8NA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;;;;;;;;;AAkb7D,wBAQG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/map/util.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/map/util.ts"],"names":[],"mappings":"AAyBA,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,OA2B3C;AAED,eAAe,kBAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vs-input-map.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/map/vs-input-map.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vs-input-map.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/map/vs-input-map.vue"],"names":[],"mappings":"AA2pBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;;;;;;AAwzB7D,wBAOG"}
|
|
@@ -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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal-edit.vue.d.ts","sourceRoot":"","sources":["../../../src/components/modal/modal-edit.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"modal-edit.vue.d.ts","sourceRoot":"","sources":["../../../src/components/modal/modal-edit.vue"],"names":[],"mappings":"AAsLA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;;;;;;;;;;AA8W/D,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"}
|
package/dist/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.grid[data-v-91f3584a]{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:1rem}.item-file:hover>div[data-v-0ca886b3]{display:flex!important;background-color:#00000080}.widget-file .vs-button{background-color:#2563eb;color:#fff;font-size:.875rem;line-height:1.25rem;font-weight:600}.ui-dialog__modal div.flex.justify-between.items-center.py-3.px-4.border-b{border-bottom-width:0px;--tw-text-opacity: 1;color:#1f2937;font-weight:500;font-size:1.125rem;line-height:1.75rem;padding-bottom:0rem}.ui-dialog__modal .ui-dialog__content .p-4{padding-top:0rem}.slide-fade-enter-active[data-v-90320b87],.slide-fade-leave-active[data-v-90320b87]{transition:all .3s ease}.slide-fade-enter-from[data-v-90320b87],.slide-fade-leave-to[data-v-90320b87]{max-height:0;opacity:0;transform:translateY(-10px)}.slide-fade-enter-to[data-v-90320b87],.slide-fade-leave-from[data-v-90320b87]{max-height:1000px;opacity:1;transform:translateY(0)}.slide-fade-enter-active[data-v-590eff11],.slide-fade-leave-active[data-v-590eff11]{transition:all .3s ease}.slide-fade-enter-from[data-v-590eff11],.slide-fade-leave-to[data-v-590eff11]{max-height:0;opacity:0;transform:translateY(-10px)}.slide-fade-enter-to[data-v-590eff11],.slide-fade-leave-from[data-v-590eff11]{max-height:1000px;opacity:1;transform:translateY(0)}.vs-ctrl-group[data-v-
|
|
1
|
+
@charset "UTF-8";.grid[data-v-91f3584a]{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:1rem}.item-file:hover>div[data-v-0ca886b3]{display:flex!important;background-color:#00000080}.widget-file .vs-button{background-color:#2563eb;color:#fff;font-size:.875rem;line-height:1.25rem;font-weight:600}.ui-dialog__modal div.flex.justify-between.items-center.py-3.px-4.border-b{border-bottom-width:0px;--tw-text-opacity: 1;color:#1f2937;font-weight:500;font-size:1.125rem;line-height:1.75rem;padding-bottom:0rem}.ui-dialog__modal .ui-dialog__content .p-4{padding-top:0rem}.slide-fade-enter-active[data-v-90320b87],.slide-fade-leave-active[data-v-90320b87]{transition:all .3s ease}.slide-fade-enter-from[data-v-90320b87],.slide-fade-leave-to[data-v-90320b87]{max-height:0;opacity:0;transform:translateY(-10px)}.slide-fade-enter-to[data-v-90320b87],.slide-fade-leave-from[data-v-90320b87]{max-height:1000px;opacity:1;transform:translateY(0)}.slide-fade-enter-active[data-v-590eff11],.slide-fade-leave-active[data-v-590eff11]{transition:all .3s ease}.slide-fade-enter-from[data-v-590eff11],.slide-fade-leave-to[data-v-590eff11]{max-height:0;opacity:0;transform:translateY(-10px)}.slide-fade-enter-to[data-v-590eff11],.slide-fade-leave-from[data-v-590eff11]{max-height:1000px;opacity:1;transform:translateY(0)}.vs-ctrl-group[data-v-44f47a6f]{display:inline-flex;flex-direction:column;background:#fff;border:1px solid #e5e7eb;border-radius:6px;overflow:hidden;box-shadow:0 1px 2px #0000000a;gap:2px}.vs-btn[data-v-44f47a6f]{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;background:#fff;border:none;cursor:pointer;border-radius:.375rem;transition:background-color .15s ease,color .15s ease,opacity .15s}.vs-btn svg[data-v-44f47a6f]{width:16px;height:16px;stroke:currentColor;fill:none;color:#3c3c43;stroke-width:2}.vs-btn[data-v-44f47a6f]:hover,.vs-active[data-v-44f47a6f]{background:#2563eb;color:#fff}.vs-btn[data-v-44f47a6f]:disabled{opacity:.5;cursor:not-allowed}.vs-btn-danger[data-v-44f47a6f]:hover{background:#ef4444;color:#fff}.ring-2[data-v-44f47a6f]{box-shadow:0 0 0 2px #3b82f699}.leaflet-map-wrapper .leaflet-container[data-v-44f47a6f]{font:inherit}.vs-btn-row[data-v-44f47a6f]{@apply inline-flex items-center gap-2 text-sm font-medium border rounded-md px-3 py-2 bg-white text-blue-600 border-stone-200 hover:bg-blue-500 hover:text-white hover:border-blue-500 focus:outline-none focus:ring-1 focus:ring-blue-500 focus:ring-offset-1 transition;}.vs-btn-row[data-v-44f47a6f]:disabled{@apply opacity-50 cursor-not-allowed bg-gray-100 text-gray-400 border-gray-200 hover:bg-gray-100 hover:text-gray-400;}.fullscreen[data-v-44f47a6f]{position:fixed!important;inset:0;width:100vw!important;height:100vh!important;z-index:9999;background:#fff}.tool[data-v-44f47a6f]{line-height:1}.col-error .vs-form-text input[data-v-b0eba370]{border:1px solid red}.vs-form-text[data-v-b0eba370]{position:relative}.vs-form-text__input[data-v-b0eba370]::placeholder{opacity:.5}[draggable=true][data-v-a0f7fbfc]{-webkit-user-select:none;user-select:none}
|