@opengis/gis 0.0.22 → 0.1.1
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/import-file.cjs +3 -3
- package/dist/import-file.js +931 -946
- package/module/gis/form/gis.services.form.json +31 -33
- package/package.json +21 -20
- package/server/routes/map/index.mjs +21 -18
|
@@ -39,7 +39,6 @@
|
|
|
39
39
|
"required"
|
|
40
40
|
]
|
|
41
41
|
},
|
|
42
|
-
|
|
43
42
|
"keywords": {
|
|
44
43
|
"ua": "Ключові слова",
|
|
45
44
|
"type": "Tags",
|
|
@@ -50,7 +49,6 @@
|
|
|
50
49
|
"col": 6,
|
|
51
50
|
"type": "Text"
|
|
52
51
|
},
|
|
53
|
-
|
|
54
52
|
"is_public": {
|
|
55
53
|
"ua": "Чи є набір даних публічним?",
|
|
56
54
|
"col": 6,
|
|
@@ -83,19 +81,8 @@
|
|
|
83
81
|
"text": "<h2 class='text-xl font-bold text-left'>Інформація про джерело</h2>",
|
|
84
82
|
"col": 12
|
|
85
83
|
},
|
|
86
|
-
"source_type": {
|
|
87
|
-
"ua": "Тип джерела",
|
|
88
|
-
"type": "Autocomplete",
|
|
89
|
-
"data": "source_type",
|
|
90
|
-
"defaultValue": "database",
|
|
91
|
-
"validators": [
|
|
92
|
-
"required"
|
|
93
|
-
]
|
|
94
|
-
|
|
95
|
-
},
|
|
96
84
|
"source_path": {
|
|
97
85
|
"ua": "Таблиця в базі даних",
|
|
98
|
-
"conditions": ["source_type","==","database"],
|
|
99
86
|
"type": "Autocomplete",
|
|
100
87
|
"data": "pg.table_name",
|
|
101
88
|
"col": 12,
|
|
@@ -105,22 +92,11 @@
|
|
|
105
92
|
},
|
|
106
93
|
"query": {
|
|
107
94
|
"ua": "Умова для відображення",
|
|
108
|
-
"conditions": ["source_type","==","database"],
|
|
109
95
|
"type": "Ace",
|
|
110
96
|
"syntax": "sql",
|
|
111
97
|
"col": 12
|
|
112
98
|
},
|
|
113
|
-
"service_url": {
|
|
114
|
-
"ua": "Поислання на набір даних",
|
|
115
|
-
"conditions": ["source_type","==","url"],
|
|
116
|
-
"type": "Text",
|
|
117
|
-
"col": 12,
|
|
118
|
-
"validators": [
|
|
119
|
-
"required"
|
|
120
|
-
]
|
|
121
|
-
},
|
|
122
99
|
"geometry_column": {
|
|
123
|
-
"conditions": ["source_type","==","database"],
|
|
124
100
|
"ua": "Назва колонки геометрії",
|
|
125
101
|
"type": "Text",
|
|
126
102
|
"col": 6,
|
|
@@ -175,13 +151,11 @@
|
|
|
175
151
|
"type": "HTML",
|
|
176
152
|
"title": "Структура реєстру",
|
|
177
153
|
"text": "<h2 class='text-xl font-bold text-left'>Структура реєстру</h2>",
|
|
178
|
-
"conditions": ["source_path","!=","null"],
|
|
179
154
|
"col": 12
|
|
180
155
|
},
|
|
181
156
|
"attributes": {
|
|
182
157
|
"type": "DataTable",
|
|
183
158
|
"ua": "Колонки",
|
|
184
|
-
"conditions": ["source_path","!=","null"],
|
|
185
159
|
"colModel": [
|
|
186
160
|
{
|
|
187
161
|
"key": "name",
|
|
@@ -191,7 +165,7 @@
|
|
|
191
165
|
"ua": "Назва колонки в БД",
|
|
192
166
|
"i": "Для працездатності випадаючого списку оберіть табличку в БД вище",
|
|
193
167
|
"behavior": {
|
|
194
|
-
"set"
|
|
168
|
+
"set": {
|
|
195
169
|
"ua": "comment"
|
|
196
170
|
}
|
|
197
171
|
},
|
|
@@ -219,7 +193,15 @@
|
|
|
219
193
|
{
|
|
220
194
|
"key": "data",
|
|
221
195
|
"ua": "Класифікатор",
|
|
222
|
-
"conditions": [
|
|
196
|
+
"conditions": [
|
|
197
|
+
"format",
|
|
198
|
+
"in",
|
|
199
|
+
[
|
|
200
|
+
"select",
|
|
201
|
+
"badge",
|
|
202
|
+
"tags"
|
|
203
|
+
]
|
|
204
|
+
],
|
|
223
205
|
"type": "Text"
|
|
224
206
|
},
|
|
225
207
|
{
|
|
@@ -241,7 +223,6 @@
|
|
|
241
223
|
"filters": {
|
|
242
224
|
"type": "DataTable",
|
|
243
225
|
"ua": "Фільтри",
|
|
244
|
-
"conditions": ["source_path","!=","null"],
|
|
245
226
|
"colModel": [
|
|
246
227
|
{
|
|
247
228
|
"key": "id",
|
|
@@ -251,7 +232,7 @@
|
|
|
251
232
|
"ua": "Назва колонки в БД",
|
|
252
233
|
"i": "Для працездатності випадаючого списку оберіть табличку в БД вище",
|
|
253
234
|
"behavior": {
|
|
254
|
-
"set"
|
|
235
|
+
"set": {
|
|
255
236
|
"label": "comment"
|
|
256
237
|
}
|
|
257
238
|
},
|
|
@@ -280,7 +261,14 @@
|
|
|
280
261
|
"key": "data",
|
|
281
262
|
"type": "Text",
|
|
282
263
|
"ua": "Класифікатор",
|
|
283
|
-
"conditions": [
|
|
264
|
+
"conditions": [
|
|
265
|
+
"type",
|
|
266
|
+
"in",
|
|
267
|
+
[
|
|
268
|
+
"Autocomplete",
|
|
269
|
+
"Check"
|
|
270
|
+
]
|
|
271
|
+
]
|
|
284
272
|
},
|
|
285
273
|
{
|
|
286
274
|
"key": "disabled",
|
|
@@ -294,7 +282,17 @@
|
|
|
294
282
|
"type": "Switcher"
|
|
295
283
|
}
|
|
296
284
|
]
|
|
285
|
+
},
|
|
286
|
+
"d3": {
|
|
287
|
+
"type": "HTML",
|
|
288
|
+
"title": "Стилізація",
|
|
289
|
+
"text": "<h2 class='text-xl font-bold text-left'>Стилізація</h2>",
|
|
290
|
+
"col": 12
|
|
291
|
+
},
|
|
292
|
+
"style": {
|
|
293
|
+
"ua": "Стилізація у форматі yml",
|
|
294
|
+
"type": "Ace",
|
|
295
|
+
"syntax": "yml"
|
|
297
296
|
}
|
|
298
297
|
}
|
|
299
|
-
|
|
300
|
-
}
|
|
298
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengis/gis",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "Softpro",
|
|
6
6
|
"main": "import-file.js",
|
|
@@ -24,27 +24,28 @@
|
|
|
24
24
|
"docs:preview": "npm run --prefix ./docs docs:preview"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@grpc/grpc-js": "
|
|
28
|
-
"@grpc/proto-loader": "
|
|
29
|
-
"@mapbox/sphericalmercator": "
|
|
30
|
-
"@opengis/fastify-table": "1.
|
|
31
|
-
"@opengis/v3-core": "
|
|
32
|
-
"@opengis/v3-filter": "
|
|
33
|
-
"@turf/turf": "
|
|
34
|
-
"axios": "
|
|
27
|
+
"@grpc/grpc-js": "1.13.4",
|
|
28
|
+
"@grpc/proto-loader": "0.7.15",
|
|
29
|
+
"@mapbox/sphericalmercator": "1.2.0",
|
|
30
|
+
"@opengis/fastify-table": "1.4.1",
|
|
31
|
+
"@opengis/v3-core": "0.3.187",
|
|
32
|
+
"@opengis/v3-filter": "0.1.18",
|
|
33
|
+
"@turf/turf": "7.2.0",
|
|
34
|
+
"axios": "1.9.0",
|
|
35
35
|
"carto": "0.16.3",
|
|
36
|
-
"fastify": "
|
|
37
|
-
"fastify-plugin": "
|
|
38
|
-
"handlebars": "
|
|
39
|
-
"maplibre-gl": "
|
|
40
|
-
"marked": "
|
|
41
|
-
"vue": "
|
|
42
|
-
"vue-router": "
|
|
43
|
-
"vue3-smooth-dnd": "
|
|
36
|
+
"fastify": "5.3.3",
|
|
37
|
+
"fastify-plugin": "5.0.1",
|
|
38
|
+
"handlebars": "4.7.8",
|
|
39
|
+
"maplibre-gl": "5.5.0",
|
|
40
|
+
"marked": "15.0.12",
|
|
41
|
+
"vue": "3.5.13",
|
|
42
|
+
"vue-router": "4.5.1",
|
|
43
|
+
"vue3-smooth-dnd": "0.0.6"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@vitejs/plugin-vue": "
|
|
47
|
-
"eslint": "
|
|
48
|
-
"eslint-config-airbnb": "
|
|
46
|
+
"@vitejs/plugin-vue": "5.2.3",
|
|
47
|
+
"eslint": "8.49.0",
|
|
48
|
+
"eslint-config-airbnb": "19.0.4",
|
|
49
|
+
"sass-embedded": "1.86.3"
|
|
49
50
|
}
|
|
50
51
|
}
|
|
@@ -12,25 +12,28 @@ import maps from './controllers/maps.js';
|
|
|
12
12
|
import markerIconApi from './controllers/marker_icon.js';
|
|
13
13
|
|
|
14
14
|
const schemaInfo = {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
type: 'object',
|
|
16
|
+
properties: {
|
|
17
|
+
params: {
|
|
18
|
+
slug: {
|
|
19
|
+
type: 'string',
|
|
20
|
+
},
|
|
21
|
+
z: {
|
|
22
|
+
type: 'number'
|
|
23
|
+
},
|
|
24
|
+
y: {
|
|
25
|
+
type: 'number'
|
|
26
|
+
},
|
|
27
|
+
x: {
|
|
28
|
+
type: 'string',
|
|
29
|
+
pattern: '^\\d+\\.(pbf|vmt)$'
|
|
30
|
+
},
|
|
31
|
+
id: {
|
|
32
|
+
type: 'string'
|
|
33
|
+
}
|
|
18
34
|
},
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
},
|
|
22
|
-
y: {
|
|
23
|
-
type: 'number'
|
|
24
|
-
},
|
|
25
|
-
x: {
|
|
26
|
-
type: 'string',
|
|
27
|
-
pattern: '^\\d+\\.(pbf|vmt)$'
|
|
28
|
-
},
|
|
29
|
-
id: {
|
|
30
|
-
type: 'string'
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
35
|
+
},
|
|
36
|
+
};
|
|
34
37
|
|
|
35
38
|
const policy = ['public'];
|
|
36
39
|
|