@opengis/form 0.0.13 → 0.0.15
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/behavior.vue.d.ts +10 -0
- package/dist/components/behavior.vue.d.ts.map +1 -0
- package/dist/components/container-views/index.d.ts +193 -0
- package/dist/components/container-views/index.d.ts.map +1 -0
- package/dist/components/container-views/vs-container-accordion.vue.d.ts +43 -0
- package/dist/components/container-views/vs-container-accordion.vue.d.ts.map +1 -0
- package/dist/components/container-views/vs-container-default.vue.d.ts +34 -0
- package/dist/components/container-views/vs-container-default.vue.d.ts.map +1 -0
- package/dist/components/container-views/vs-container-switcher.vue.d.ts +43 -0
- package/dist/components/container-views/vs-container-switcher.vue.d.ts.map +1 -0
- package/dist/components/form/vs-compact-form.vue.d.ts +29 -0
- package/dist/components/form/vs-compact-form.vue.d.ts.map +1 -0
- package/dist/components/icons/icon-arrow-top-bottom.vue.d.ts +3 -0
- package/dist/components/icons/icon-arrow-top-bottom.vue.d.ts.map +1 -0
- package/dist/components/icons/icon-check.vue.d.ts +3 -0
- package/dist/components/icons/icon-check.vue.d.ts.map +1 -0
- package/dist/components/icons/icon-chevron-down.vue.d.ts +3 -0
- package/dist/components/icons/icon-chevron-down.vue.d.ts.map +1 -0
- package/dist/components/icons/icon-chevron-top-bottom.vue.d.ts +3 -0
- package/dist/components/icons/icon-chevron-top-bottom.vue.d.ts.map +1 -0
- package/dist/components/icons/icon-close.vue.d.ts +3 -0
- package/dist/components/icons/icon-close.vue.d.ts.map +1 -0
- package/dist/components/icons/icon-csv.vue.d.ts +3 -0
- package/dist/components/icons/icon-csv.vue.d.ts.map +1 -0
- package/dist/components/icons/icon-delete.vue.d.ts +3 -0
- package/dist/components/icons/icon-delete.vue.d.ts.map +1 -0
- package/dist/components/icons/icon-download.vue.d.ts +3 -0
- package/dist/components/icons/icon-download.vue.d.ts.map +1 -0
- package/dist/components/icons/icon-export.vue.d.ts +3 -0
- package/dist/components/icons/icon-export.vue.d.ts.map +1 -0
- package/dist/components/icons/icon-file.vue.d.ts +3 -0
- package/dist/components/icons/icon-file.vue.d.ts.map +1 -0
- package/dist/components/icons/icon-geojson.vue.d.ts +3 -0
- package/dist/components/icons/icon-geojson.vue.d.ts.map +1 -0
- package/dist/components/icons/icon-grip-vertical.vue.d.ts +3 -0
- package/dist/components/icons/icon-grip-vertical.vue.d.ts.map +1 -0
- package/dist/components/icons/icon-import.vue.d.ts +3 -0
- package/dist/components/icons/icon-import.vue.d.ts.map +1 -0
- package/dist/components/icons/icon-info.vue.d.ts +3 -0
- package/dist/components/icons/icon-info.vue.d.ts.map +1 -0
- package/dist/components/icons/icon-magnifying-glass.vue.d.ts +3 -0
- package/dist/components/icons/icon-magnifying-glass.vue.d.ts.map +1 -0
- package/dist/components/icons/icon-no-data.vue.d.ts +3 -0
- package/dist/components/icons/icon-no-data.vue.d.ts.map +1 -0
- package/dist/components/icons/icon-pdf.vue.d.ts +3 -0
- package/dist/components/icons/icon-pdf.vue.d.ts.map +1 -0
- package/dist/components/icons/icon-pen.vue.d.ts +3 -0
- package/dist/components/icons/icon-pen.vue.d.ts.map +1 -0
- package/dist/components/icons/icon-plus.vue.d.ts +3 -0
- package/dist/components/icons/icon-plus.vue.d.ts.map +1 -0
- package/dist/components/icons/icon-upload.vue.d.ts +3 -0
- package/dist/components/icons/icon-upload.vue.d.ts.map +1 -0
- package/dist/components/icons/icon-zip.vue.d.ts +3 -0
- package/dist/components/icons/icon-zip.vue.d.ts.map +1 -0
- package/dist/components/icons/index.d.ts +6 -0
- package/dist/components/icons/index.d.ts.map +1 -0
- package/dist/components/inputs/base/vs-input-email.vue.d.ts +18 -0
- package/dist/components/inputs/base/vs-input-email.vue.d.ts.map +1 -0
- package/dist/components/inputs/base/vs-input-html.vue.d.ts +6 -0
- package/dist/components/inputs/base/vs-input-html.vue.d.ts.map +1 -0
- package/dist/components/inputs/base/vs-input-mask.vue.d.ts +20 -0
- package/dist/components/inputs/base/vs-input-mask.vue.d.ts.map +1 -0
- package/dist/components/inputs/base/vs-input-number.vue.d.ts +15 -0
- package/dist/components/inputs/base/vs-input-number.vue.d.ts.map +1 -0
- package/dist/components/inputs/base/vs-input-static.vue.d.ts +8 -0
- package/dist/components/inputs/base/vs-input-static.vue.d.ts.map +1 -0
- package/dist/components/inputs/base/vs-input-switcher.vue.d.ts +21 -0
- package/dist/components/inputs/base/vs-input-switcher.vue.d.ts.map +1 -0
- package/dist/components/inputs/base/vs-input-text.vue.d.ts +18 -0
- package/dist/components/inputs/base/vs-input-text.vue.d.ts.map +1 -0
- package/dist/components/inputs/base/vs-input-textarea.vue.d.ts +17 -0
- package/dist/components/inputs/base/vs-input-textarea.vue.d.ts.map +1 -0
- package/dist/components/inputs/date/vs-date-text.vue.d.ts +16 -0
- package/dist/components/inputs/date/vs-date-text.vue.d.ts.map +1 -0
- package/dist/components/inputs/date/vs-input-date.vue.d.ts +18 -0
- package/dist/components/inputs/date/vs-input-date.vue.d.ts.map +1 -0
- package/dist/components/inputs/date/vs-input-date1.vue.d.ts +17 -0
- package/dist/components/inputs/date/vs-input-date1.vue.d.ts.map +1 -0
- package/dist/components/inputs/date/vs-input-time.vue.d.ts +17 -0
- package/dist/components/inputs/date/vs-input-time.vue.d.ts.map +1 -0
- package/dist/components/inputs/file/vs-input-file-list-item.vue.d.ts +15 -0
- package/dist/components/inputs/file/vs-input-file-list-item.vue.d.ts.map +1 -0
- package/dist/components/inputs/file/vs-input-file.vue.d.ts +12 -0
- package/dist/components/inputs/file/vs-input-file.vue.d.ts.map +1 -0
- package/dist/components/inputs/file-list/vs-input-file-list.vue.d.ts +10 -0
- package/dist/components/inputs/file-list/vs-input-file-list.vue.d.ts.map +1 -0
- package/dist/components/inputs/file-list/vs-widget-file-info.vue.d.ts +8 -0
- package/dist/components/inputs/file-list/vs-widget-file-info.vue.d.ts.map +1 -0
- package/dist/components/inputs/file-list/vs-widget-file-item.vue.d.ts +40 -0
- package/dist/components/inputs/file-list/vs-widget-file-item.vue.d.ts.map +1 -0
- package/dist/components/inputs/index.d.ts +259 -0
- package/dist/components/inputs/index.d.ts.map +1 -0
- package/dist/components/inputs/map/icons/icon-compass.vue.d.ts +3 -0
- package/dist/components/inputs/map/icons/icon-compass.vue.d.ts.map +1 -0
- package/dist/components/inputs/map/icons/icon-full-screen.vue.d.ts +3 -0
- package/dist/components/inputs/map/icons/icon-full-screen.vue.d.ts.map +1 -0
- package/dist/components/inputs/map/icons/icon-line.vue.d.ts +3 -0
- package/dist/components/inputs/map/icons/icon-line.vue.d.ts.map +1 -0
- package/dist/components/inputs/map/icons/icon-map-pin.vue.d.ts +3 -0
- package/dist/components/inputs/map/icons/icon-map-pin.vue.d.ts.map +1 -0
- package/dist/components/inputs/map/icons/icon-poligon-rectangle.vue.d.ts +3 -0
- package/dist/components/inputs/map/icons/icon-poligon-rectangle.vue.d.ts.map +1 -0
- package/dist/components/inputs/map/icons/icon-poligon.vue.d.ts +3 -0
- package/dist/components/inputs/map/icons/icon-poligon.vue.d.ts.map +1 -0
- package/dist/components/inputs/map/map-layers.vue.d.ts +15 -0
- package/dist/components/inputs/map/map-layers.vue.d.ts.map +1 -0
- package/dist/components/inputs/map/map-search.vue.d.ts +12 -0
- package/dist/components/inputs/map/map-search.vue.d.ts.map +1 -0
- package/dist/components/inputs/map/map.d.ts +109 -0
- package/dist/components/inputs/map/map.d.ts.map +1 -0
- package/dist/components/inputs/map/util.d.ts +2 -0
- package/dist/components/inputs/map/util.d.ts.map +1 -0
- package/dist/components/inputs/map/vs-input-map.vue.d.ts +8 -0
- package/dist/components/inputs/map/vs-input-map.vue.d.ts.map +1 -0
- package/dist/components/inputs/options/checkbox/index.d.ts +4 -0
- package/dist/components/inputs/options/checkbox/index.d.ts.map +1 -0
- package/dist/components/inputs/options/checkbox/vs-checkbox-buttons.vue.d.ts +32 -0
- package/dist/components/inputs/options/checkbox/vs-checkbox-buttons.vue.d.ts.map +1 -0
- package/dist/components/inputs/options/checkbox/vs-checkbox-default.vue.d.ts +31 -0
- package/dist/components/inputs/options/checkbox/vs-checkbox-default.vue.d.ts.map +1 -0
- package/dist/components/inputs/options/checkbox/vs-input-checkbox-item.vue.d.ts +27 -0
- package/dist/components/inputs/options/checkbox/vs-input-checkbox-item.vue.d.ts.map +1 -0
- package/dist/components/inputs/options/checkbox/vs-input-checkbox.vue.d.ts +15 -0
- package/dist/components/inputs/options/checkbox/vs-input-checkbox.vue.d.ts.map +1 -0
- package/dist/components/inputs/options/radio/index.d.ts +28 -0
- package/dist/components/inputs/options/radio/index.d.ts.map +1 -0
- package/dist/components/inputs/options/radio/vs-input-radio-buttons.vue.d.ts +15 -0
- package/dist/components/inputs/options/radio/vs-input-radio-buttons.vue.d.ts.map +1 -0
- package/dist/components/inputs/options/radio/vs-input-radio-default.vue.d.ts +15 -0
- package/dist/components/inputs/options/radio/vs-input-radio-default.vue.d.ts.map +1 -0
- package/dist/components/inputs/options/radio/vs-input-radio.vue.d.ts +15 -0
- package/dist/components/inputs/options/radio/vs-input-radio.vue.d.ts.map +1 -0
- package/dist/components/inputs/table/vs-input-datatable.vue.d.ts +12 -0
- package/dist/components/inputs/table/vs-input-datatable.vue.d.ts.map +1 -0
- package/dist/components/inputs/vs-input-container.vue.d.ts +44 -0
- package/dist/components/inputs/vs-input-container.vue.d.ts.map +1 -0
- package/dist/components/inputs/vs-input-select.vue.d.ts +24 -0
- package/dist/components/inputs/vs-input-select.vue.d.ts.map +1 -0
- package/dist/components/layouts/index.d.ts +100 -0
- package/dist/components/layouts/index.d.ts.map +1 -0
- package/dist/components/layouts/vs-compact-form-layout.vue.d.ts +17 -0
- package/dist/components/layouts/vs-compact-form-layout.vue.d.ts.map +1 -0
- package/dist/components/layouts/vs-layout-default.vue.d.ts +19 -0
- package/dist/components/layouts/vs-layout-default.vue.d.ts.map +1 -0
- package/dist/components/layouts/vs-layout-horizontal.vue.d.ts +19 -0
- package/dist/components/layouts/vs-layout-horizontal.vue.d.ts.map +1 -0
- package/dist/components/layouts/vs-layout-inline.vue.d.ts +19 -0
- package/dist/components/layouts/vs-layout-inline.vue.d.ts.map +1 -0
- package/dist/components/modal/modal-edit.vue.d.ts +12 -0
- package/dist/components/modal/modal-edit.vue.d.ts.map +1 -0
- package/dist/components/ui/vs-calendar.vue.d.ts +37 -0
- package/dist/components/ui/vs-calendar.vue.d.ts.map +1 -0
- package/dist/components/ui/vs-popover.vue.d.ts +89 -0
- package/dist/components/ui/vs-popover.vue.d.ts.map +1 -0
- package/dist/composables/useForm.d.ts +9 -0
- package/dist/composables/useForm.d.ts.map +1 -0
- package/dist/composables/useStyle.d.ts +9 -0
- package/dist/composables/useStyle.d.ts.map +1 -0
- package/dist/emitter/eventBus.d.ts +6 -0
- package/dist/emitter/eventBus.d.ts.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1525 -1543
- package/dist/index.umd.cjs +2 -2
- package/dist/plugin/form-plugin.d.ts +10 -0
- package/dist/plugin/form-plugin.d.ts.map +1 -0
- package/dist/schema.d.ts +277 -0
- package/dist/schema.d.ts.map +1 -0
- package/dist/types/form.d.ts +93 -0
- package/dist/types/form.d.ts.map +1 -0
- package/dist/types/rules.d.ts +1 -0
- package/dist/types/rules.d.ts.map +1 -0
- package/dist/utils/convertForm.d.ts +4 -0
- package/dist/utils/convertForm.d.ts.map +1 -0
- package/dist/utils/dynamicPosition.d.ts +2 -0
- package/dist/utils/dynamicPosition.d.ts.map +1 -0
- package/dist/utils/file.api.d.ts +4 -0
- package/dist/utils/file.api.d.ts.map +1 -0
- package/dist/utils/file.preview.d.ts +2 -0
- package/dist/utils/file.preview.d.ts.map +1 -0
- package/dist/utils/formConditions.d.ts +16 -0
- package/dist/utils/formConditions.d.ts.map +1 -0
- package/dist/utils/formRules.d.ts +4 -0
- package/dist/utils/formRules.d.ts.map +1 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/randomId.d.ts +2 -0
- package/dist/utils/randomId.d.ts.map +1 -0
- package/package.json +8 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-plugin.d.ts","sourceRoot":"","sources":["../../src/plugin/form-plugin.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,WAAW;IACxB,MAAM,CAAC,EAAE,GAAG,CAAA;IACZ,YAAY,CAAC,EAAE,GAAG,CAAA;IAClB,IAAI,CAAC,EAAE,KAAK,GAAG,MAAM,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,QAAA,MAAM,IAAI,GAAI,OAAM,WAA4C,KAAG,OAAO,CAAC,GAAG,CAmC7E,CAAA;AAED,eAAe,IAAI,CAAA"}
|
package/dist/schema.d.ts
ADDED
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
declare const schemaInline: ({
|
|
2
|
+
placeholder: string;
|
|
3
|
+
type: string;
|
|
4
|
+
col: number;
|
|
5
|
+
options?: undefined;
|
|
6
|
+
position?: undefined;
|
|
7
|
+
} | {
|
|
8
|
+
col: number;
|
|
9
|
+
type: string;
|
|
10
|
+
options: {
|
|
11
|
+
text: string;
|
|
12
|
+
id: string;
|
|
13
|
+
}[];
|
|
14
|
+
placeholder?: undefined;
|
|
15
|
+
position?: undefined;
|
|
16
|
+
} | {
|
|
17
|
+
type: string;
|
|
18
|
+
options: {
|
|
19
|
+
text: string;
|
|
20
|
+
id: string;
|
|
21
|
+
}[];
|
|
22
|
+
placeholder?: undefined;
|
|
23
|
+
col?: undefined;
|
|
24
|
+
position?: undefined;
|
|
25
|
+
} | {
|
|
26
|
+
type: string;
|
|
27
|
+
position: string;
|
|
28
|
+
options: {
|
|
29
|
+
text: string;
|
|
30
|
+
id: string;
|
|
31
|
+
}[];
|
|
32
|
+
placeholder?: undefined;
|
|
33
|
+
col?: undefined;
|
|
34
|
+
})[];
|
|
35
|
+
declare const schema: ({
|
|
36
|
+
label: string;
|
|
37
|
+
name: string;
|
|
38
|
+
placeholder: string;
|
|
39
|
+
type: string;
|
|
40
|
+
col: number;
|
|
41
|
+
conditions: (string | number)[];
|
|
42
|
+
options?: undefined;
|
|
43
|
+
multiple?: undefined;
|
|
44
|
+
position?: undefined;
|
|
45
|
+
} | {
|
|
46
|
+
name: string;
|
|
47
|
+
label: string;
|
|
48
|
+
col: number;
|
|
49
|
+
type: string;
|
|
50
|
+
options: {
|
|
51
|
+
text: string;
|
|
52
|
+
id: string;
|
|
53
|
+
}[];
|
|
54
|
+
placeholder?: undefined;
|
|
55
|
+
conditions?: undefined;
|
|
56
|
+
multiple?: undefined;
|
|
57
|
+
position?: undefined;
|
|
58
|
+
} | {
|
|
59
|
+
name: string;
|
|
60
|
+
label: string;
|
|
61
|
+
type: string;
|
|
62
|
+
col: number;
|
|
63
|
+
multiple: boolean;
|
|
64
|
+
placeholder?: undefined;
|
|
65
|
+
conditions?: undefined;
|
|
66
|
+
options?: undefined;
|
|
67
|
+
position?: undefined;
|
|
68
|
+
} | {
|
|
69
|
+
name: string;
|
|
70
|
+
label: string;
|
|
71
|
+
type: string;
|
|
72
|
+
col: number;
|
|
73
|
+
placeholder?: undefined;
|
|
74
|
+
conditions?: undefined;
|
|
75
|
+
options?: undefined;
|
|
76
|
+
multiple?: undefined;
|
|
77
|
+
position?: undefined;
|
|
78
|
+
} | {
|
|
79
|
+
name: string;
|
|
80
|
+
label: string;
|
|
81
|
+
type: string;
|
|
82
|
+
options: {
|
|
83
|
+
text: string;
|
|
84
|
+
id: string;
|
|
85
|
+
}[];
|
|
86
|
+
placeholder?: undefined;
|
|
87
|
+
col?: undefined;
|
|
88
|
+
conditions?: undefined;
|
|
89
|
+
multiple?: undefined;
|
|
90
|
+
position?: undefined;
|
|
91
|
+
} | {
|
|
92
|
+
name: string;
|
|
93
|
+
label: string;
|
|
94
|
+
type: string;
|
|
95
|
+
position: string;
|
|
96
|
+
options: {
|
|
97
|
+
text: string;
|
|
98
|
+
id: string;
|
|
99
|
+
}[];
|
|
100
|
+
placeholder?: undefined;
|
|
101
|
+
col?: undefined;
|
|
102
|
+
conditions?: undefined;
|
|
103
|
+
multiple?: undefined;
|
|
104
|
+
})[];
|
|
105
|
+
declare const schemaContainer: ({
|
|
106
|
+
type: string;
|
|
107
|
+
name: string;
|
|
108
|
+
title: string;
|
|
109
|
+
col: number;
|
|
110
|
+
style: {
|
|
111
|
+
sixe: string;
|
|
112
|
+
};
|
|
113
|
+
conditions: (string | number)[];
|
|
114
|
+
schema: {
|
|
115
|
+
type: string;
|
|
116
|
+
name: string;
|
|
117
|
+
label: string;
|
|
118
|
+
}[];
|
|
119
|
+
view?: undefined;
|
|
120
|
+
isOpen?: undefined;
|
|
121
|
+
label?: undefined;
|
|
122
|
+
} | {
|
|
123
|
+
type: string;
|
|
124
|
+
title: string;
|
|
125
|
+
name: string;
|
|
126
|
+
view: string;
|
|
127
|
+
isOpen: boolean;
|
|
128
|
+
col: number;
|
|
129
|
+
schema: ({
|
|
130
|
+
type: string;
|
|
131
|
+
name: string;
|
|
132
|
+
label: string;
|
|
133
|
+
conditions: (string | number)[];
|
|
134
|
+
} | {
|
|
135
|
+
type: string;
|
|
136
|
+
name: string;
|
|
137
|
+
label: string;
|
|
138
|
+
conditions?: undefined;
|
|
139
|
+
})[];
|
|
140
|
+
style?: undefined;
|
|
141
|
+
conditions?: undefined;
|
|
142
|
+
label?: undefined;
|
|
143
|
+
} | {
|
|
144
|
+
type: string;
|
|
145
|
+
name: string;
|
|
146
|
+
label: string;
|
|
147
|
+
title?: undefined;
|
|
148
|
+
col?: undefined;
|
|
149
|
+
style?: undefined;
|
|
150
|
+
conditions?: undefined;
|
|
151
|
+
schema?: undefined;
|
|
152
|
+
view?: undefined;
|
|
153
|
+
isOpen?: undefined;
|
|
154
|
+
})[];
|
|
155
|
+
declare const account: {
|
|
156
|
+
organization_type: {
|
|
157
|
+
type: string;
|
|
158
|
+
data: string;
|
|
159
|
+
ua: string;
|
|
160
|
+
en: string;
|
|
161
|
+
col: number;
|
|
162
|
+
validators: string[];
|
|
163
|
+
default: string;
|
|
164
|
+
};
|
|
165
|
+
ownership_type: {
|
|
166
|
+
type: string;
|
|
167
|
+
mode: string;
|
|
168
|
+
data: string;
|
|
169
|
+
ua: string;
|
|
170
|
+
en: string;
|
|
171
|
+
col: number;
|
|
172
|
+
validators: string[];
|
|
173
|
+
conditions: string[];
|
|
174
|
+
};
|
|
175
|
+
__d2: {
|
|
176
|
+
type: string;
|
|
177
|
+
title: boolean;
|
|
178
|
+
text: string;
|
|
179
|
+
col: number;
|
|
180
|
+
};
|
|
181
|
+
account_name: {
|
|
182
|
+
type: string;
|
|
183
|
+
ua: string;
|
|
184
|
+
en: string;
|
|
185
|
+
col: number;
|
|
186
|
+
validators: string[];
|
|
187
|
+
};
|
|
188
|
+
alternative_name: {
|
|
189
|
+
type: string;
|
|
190
|
+
ua: string;
|
|
191
|
+
en: string;
|
|
192
|
+
col: number;
|
|
193
|
+
};
|
|
194
|
+
id_code: {
|
|
195
|
+
type: string;
|
|
196
|
+
ua: string;
|
|
197
|
+
en: string;
|
|
198
|
+
col: number;
|
|
199
|
+
validators: string[];
|
|
200
|
+
};
|
|
201
|
+
pas_ser: {
|
|
202
|
+
type: string;
|
|
203
|
+
ua: string;
|
|
204
|
+
col: number;
|
|
205
|
+
};
|
|
206
|
+
pas_num: {
|
|
207
|
+
type: string;
|
|
208
|
+
ua: string;
|
|
209
|
+
col: number;
|
|
210
|
+
};
|
|
211
|
+
pas_organ: {
|
|
212
|
+
type: string;
|
|
213
|
+
ua: string;
|
|
214
|
+
col: number;
|
|
215
|
+
};
|
|
216
|
+
pas_date: {
|
|
217
|
+
type: string;
|
|
218
|
+
ua: string;
|
|
219
|
+
col: number;
|
|
220
|
+
};
|
|
221
|
+
email: {
|
|
222
|
+
type: string;
|
|
223
|
+
ua: string;
|
|
224
|
+
en: string;
|
|
225
|
+
col: number;
|
|
226
|
+
validators: {
|
|
227
|
+
type: string;
|
|
228
|
+
regexp: string;
|
|
229
|
+
flags: string;
|
|
230
|
+
message: string;
|
|
231
|
+
}[];
|
|
232
|
+
};
|
|
233
|
+
phone: {
|
|
234
|
+
type: string;
|
|
235
|
+
mask: string;
|
|
236
|
+
ua: string;
|
|
237
|
+
en: string;
|
|
238
|
+
col: number;
|
|
239
|
+
};
|
|
240
|
+
city: {
|
|
241
|
+
type: string;
|
|
242
|
+
ua: string;
|
|
243
|
+
en: string;
|
|
244
|
+
col: number;
|
|
245
|
+
};
|
|
246
|
+
description: {
|
|
247
|
+
type: string;
|
|
248
|
+
ua: string;
|
|
249
|
+
en: string;
|
|
250
|
+
col: number;
|
|
251
|
+
};
|
|
252
|
+
legal_address: {
|
|
253
|
+
type: string;
|
|
254
|
+
ua: string;
|
|
255
|
+
en: string;
|
|
256
|
+
};
|
|
257
|
+
fact_address: {
|
|
258
|
+
type: string;
|
|
259
|
+
ua: string;
|
|
260
|
+
en: string;
|
|
261
|
+
};
|
|
262
|
+
balancer: {
|
|
263
|
+
type: string;
|
|
264
|
+
ua: string;
|
|
265
|
+
i: string;
|
|
266
|
+
col: number;
|
|
267
|
+
};
|
|
268
|
+
fund_manager: {
|
|
269
|
+
type: string;
|
|
270
|
+
view: string;
|
|
271
|
+
text: string;
|
|
272
|
+
i: string;
|
|
273
|
+
col: number;
|
|
274
|
+
};
|
|
275
|
+
};
|
|
276
|
+
export { schema, schemaInline, schemaContainer, account, };
|
|
277
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA8DjB,CAAC;AAEF,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAqEX,CAAC;AAEF,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAuFpB,CAAC;AAEF,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsIZ,CAAC;AACF,OAAO,EACL,MAAM,EAAE,YAAY,EAAE,eAAe,EAAE,OAAO,GAC/C,CAAC"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
export interface IErrors {
|
|
2
|
+
[key: string]: string | boolean;
|
|
3
|
+
}
|
|
4
|
+
export interface IForm {
|
|
5
|
+
value: Record<string, any>;
|
|
6
|
+
errors: IErrors;
|
|
7
|
+
reset: () => void;
|
|
8
|
+
validate: () => void;
|
|
9
|
+
formId: string;
|
|
10
|
+
}
|
|
11
|
+
export interface IOption {
|
|
12
|
+
id: number | string;
|
|
13
|
+
text: string;
|
|
14
|
+
color?: string;
|
|
15
|
+
}
|
|
16
|
+
export type Conditions = any[];
|
|
17
|
+
export interface ISchemaItem {
|
|
18
|
+
name: string;
|
|
19
|
+
rules?: (string | object)[];
|
|
20
|
+
schema?: ISchemaItem[];
|
|
21
|
+
label?: string;
|
|
22
|
+
type?: string;
|
|
23
|
+
col?: number;
|
|
24
|
+
placeholder?: string;
|
|
25
|
+
conditions?: Conditions | Conditions[];
|
|
26
|
+
multiple?: boolean;
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
behavior?: Object;
|
|
29
|
+
}
|
|
30
|
+
export interface IFieldProps {
|
|
31
|
+
item?: any;
|
|
32
|
+
layout?: string;
|
|
33
|
+
style?: any;
|
|
34
|
+
type?: string;
|
|
35
|
+
error?: string | boolean;
|
|
36
|
+
}
|
|
37
|
+
export interface IInputProps {
|
|
38
|
+
style?: Record<string, any>;
|
|
39
|
+
customClass?: string;
|
|
40
|
+
placeholder?: string;
|
|
41
|
+
disabled?: boolean;
|
|
42
|
+
type?: string;
|
|
43
|
+
value?: any;
|
|
44
|
+
name?: string;
|
|
45
|
+
rules?: (string | object)[];
|
|
46
|
+
error?: string | null;
|
|
47
|
+
text?: string;
|
|
48
|
+
mask?: string;
|
|
49
|
+
unmask?: boolean;
|
|
50
|
+
placeholderChar?: string;
|
|
51
|
+
html?: string;
|
|
52
|
+
prefix?: string;
|
|
53
|
+
host?: string;
|
|
54
|
+
data?: string | null;
|
|
55
|
+
options?: IOption[];
|
|
56
|
+
maxHeight?: number;
|
|
57
|
+
slots?: Record<string, any> | null;
|
|
58
|
+
mode?: string;
|
|
59
|
+
add?: {
|
|
60
|
+
model: string;
|
|
61
|
+
form: string;
|
|
62
|
+
token: string;
|
|
63
|
+
api: string;
|
|
64
|
+
};
|
|
65
|
+
api?: string;
|
|
66
|
+
search?: boolean;
|
|
67
|
+
i?: string;
|
|
68
|
+
time?: boolean;
|
|
69
|
+
modelValue?: any;
|
|
70
|
+
clearable?: boolean;
|
|
71
|
+
now?: boolean;
|
|
72
|
+
editable?: boolean;
|
|
73
|
+
isInfinity?: boolean;
|
|
74
|
+
multiple?: boolean;
|
|
75
|
+
format?: string;
|
|
76
|
+
colModel?: {
|
|
77
|
+
key: string;
|
|
78
|
+
ua: string;
|
|
79
|
+
type: string;
|
|
80
|
+
data?: string;
|
|
81
|
+
validators?: [];
|
|
82
|
+
}[];
|
|
83
|
+
position?: string;
|
|
84
|
+
view?: string;
|
|
85
|
+
colSpan?: number;
|
|
86
|
+
}
|
|
87
|
+
export interface LayoutProps {
|
|
88
|
+
ua?: string;
|
|
89
|
+
item: any;
|
|
90
|
+
error?: string | boolean;
|
|
91
|
+
label?: string;
|
|
92
|
+
}
|
|
93
|
+
//# sourceMappingURL=form.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../src/types/form.ts"],"names":[],"mappings":"AAAA,MAAM,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CAAC,EAAE,OAAO,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE;QACP,GAAG,EAAE,MAAM,CAAC;QACZ,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,UAAU,CAAC,EAAE,EAAE,CAAA;KAClB,EAAE,CAAC;IACJ,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,WAAW;IACxB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,GAAG,CAAC;IACV,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=rules.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../src/types/rules.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"convertForm.d.ts","sourceRoot":"","sources":["../../src/utils/convertForm.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAiBjD,iBAAS,aAAa,CAAC,YAAY,EAAE,GAAG,GAAG,WAAW,EAAE,CAkCvD;AACD,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dynamicPosition.d.ts","sourceRoot":"","sources":["../../src/utils/dynamicPosition.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,GAC1B,WAAW,MAAM,EACjB,SAAS,WAAW,EACpB,SAAS,WAAW,EACpB,YAAQ,kBAmIT,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const fileUpload: (file: string, id: string, form: string, table: string) => Promise<any>;
|
|
2
|
+
export declare const fileDelete: (filepath: string) => Promise<boolean>;
|
|
3
|
+
export declare const fileDownload: (filepath: string) => Promise<void>;
|
|
4
|
+
//# sourceMappingURL=file.api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file.api.d.ts","sourceRoot":"","sources":["../../src/utils/file.api.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,GAAU,MAAM,MAAM,EAAE,IAAI,MAAM,EAAE,MAAM,MAAM,EAAE,OAAO,MAAM,iBAsBrF,CAAC;AAEF,eAAO,MAAM,UAAU,GAAU,UAAU,MAAM,qBAShD,CAAC;AAEF,eAAO,MAAM,YAAY,GAAU,UAAU,MAAM,kBAgBlD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file.preview.d.ts","sourceRoot":"","sources":["../../src/utils/file.preview.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,iBAAiB,GAAI,MAAM,MAAM,QAsB7C,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const FormConditionsTypes: {
|
|
2
|
+
readonly Equal: "==";
|
|
3
|
+
readonly Inequal: "!=";
|
|
4
|
+
readonly Higer: ">";
|
|
5
|
+
readonly HigerOrEqual: ">=";
|
|
6
|
+
readonly Lower: "<";
|
|
7
|
+
readonly LowerOrEqual: "<=";
|
|
8
|
+
readonly Between: "between";
|
|
9
|
+
readonly StartWith: "^";
|
|
10
|
+
readonly EndWith: "$";
|
|
11
|
+
readonly Contain: "*";
|
|
12
|
+
readonly In: "in";
|
|
13
|
+
readonly NotIn: "not_in";
|
|
14
|
+
};
|
|
15
|
+
export declare const isVisible: (value: any, condition: any[]) => boolean;
|
|
16
|
+
//# sourceMappingURL=formConditions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formConditions.d.ts","sourceRoot":"","sources":["../../src/utils/formConditions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;CAatB,CAAC;AA4DX,eAAO,MAAM,SAAS,GAAI,OAAO,GAAG,EAAE,WAAW,GAAG,EAAE,YA8BrD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formRules.d.ts","sourceRoot":"","sources":["../../src/utils/formRules.ts"],"names":[],"mappings":"AA2CA,eAAO,MAAM,cAAc,GAAI,OAAO,GAAG,EAAE,MAAM,GAAG,qBAcnD,CAAC;;AACF,wBAAoB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"randomId.d.ts","sourceRoot":"","sources":["../../src/utils/randomId.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,GAAI,eAAW,WAAoD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengis/form",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.15",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"main": "dist/index.js",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
7
8
|
"description": "A flexible and extensible Vue form library",
|
|
8
9
|
"homepage": "https://form.opengis.info/",
|
|
9
10
|
"author": {
|
|
@@ -30,7 +31,9 @@
|
|
|
30
31
|
],
|
|
31
32
|
"scripts": {
|
|
32
33
|
"dev": "vite",
|
|
33
|
-
"build": "vue-tsc -b && vite build",
|
|
34
|
+
"build": "vue-tsc -b && vite build && npm run build:types",
|
|
35
|
+
"type-check": "vue-tsc --noEmit -p tsconfig.app.json",
|
|
36
|
+
"build:types": "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json",
|
|
34
37
|
"build:only": "vite build",
|
|
35
38
|
"build:app": "app=true vite build",
|
|
36
39
|
"prepublishOnly": "bun run build",
|
|
@@ -54,10 +57,10 @@
|
|
|
54
57
|
"typescript": "~5.8.3",
|
|
55
58
|
"vite": "^7.0.0",
|
|
56
59
|
"vue-tsc": "^2.2.10",
|
|
57
|
-
"mitt": "^3.0.1"
|
|
60
|
+
"mitt": "^3.0.1",
|
|
61
|
+
"@opengis/core": "^0.0.18"
|
|
58
62
|
},
|
|
59
63
|
"peerDependencies": {
|
|
60
|
-
"@opengis/core": "^0.0.15",
|
|
61
64
|
"vue": "^3.5.17"
|
|
62
65
|
},
|
|
63
66
|
"dependencies": {}
|