@opengis/gis 0.1.18 → 0.1.19

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.
@@ -218,6 +218,13 @@
218
218
  "ua": "Приховати поле в карточці об'єкта",
219
219
  "i": "Чи приховати поле при перегляді карточки об'єктів",
220
220
  "col": 6
221
+ },
222
+ {
223
+ "key": "is_export",
224
+ "type": "Switcher",
225
+ "ua": "Експорт даних колонки",
226
+ "i": "Чи експортувати колонку при експорті?",
227
+ "col": 6
221
228
  }
222
229
  ]
223
230
  },
@@ -294,6 +301,10 @@
294
301
  "ua": "Стилізація у форматі yml",
295
302
  "type": "Ace",
296
303
  "syntax": "yml"
304
+ },
305
+ "card": {
306
+ "ua": "Шаблон картки",
307
+ "type": "Text"
297
308
  }
298
309
  }
299
310
  }
@@ -57,6 +57,13 @@
57
57
  "ua": "Приховати поле в карточці об'єкта",
58
58
  "i": "Чи приховати поле при перегляді карточки об'єктів",
59
59
  "col": 6
60
+ },
61
+ {
62
+ "key": "is_export",
63
+ "type": "Switcher",
64
+ "ua": "Експорт даних колонки",
65
+ "i": "Чи експортувати колонку при експорті?",
66
+ "col": 6
60
67
  }
61
68
  ],
62
69
  "validators": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengis/gis",
3
- "version": "0.1.18",
3
+ "version": "0.1.19",
4
4
  "type": "module",
5
5
  "author": "Softpro",
6
6
  "main": "import-file.js",
@@ -18,7 +18,8 @@
18
18
  "dev": "node server",
19
19
  "build": "vite build && vite build admin",
20
20
  "preview": "vite preview",
21
- "prod": "set NODE_ENV=production&& node server",
21
+ "prod": "export NODE_ENV=production&& node server",
22
+ "prodw": "set NODE_ENV=production&& node server",
22
23
  "docs:install": "npm install --prefix ./docs",
23
24
  "docs:dev": "npm run --prefix ./docs docs:dev",
24
25
  "docs:build": "npm run --prefix ./docs docs:build",
@@ -42,10 +43,12 @@
42
43
  "monaco-editor": "^0.52.2",
43
44
  "vue": "^3.5.13",
44
45
  "vue-router": "4.5.1",
45
- "vue3-smooth-dnd": "0.0.6"
46
+ "vue3-smooth-dnd": "0.0.6",
47
+ "yaml": "^2.8.0"
46
48
  },
47
49
  "devDependencies": {
48
50
  "@vitejs/plugin-vue": "^5.2.3",
51
+ "dotenv": "^16.5.0",
49
52
  "eslint": "8.49.0",
50
53
  "eslint-config-airbnb": "19.0.4",
51
54
  "sass-embedded": "1.86.3",
@@ -39,8 +39,6 @@ export async function handleRegistryRequest({ settings, query, object_id, offset
39
39
 
40
40
  await attachClassifiers(row, classifiers);
41
41
 
42
- return row;
43
-
44
42
  return {
45
43
  row,
46
44
  columns: columnsInfo,
@@ -18,13 +18,17 @@ export default async function mapCatalog({ pg = pgClients.client }, reply) {
18
18
  const { rows: services = [] } = pg.pk?.['gis.services']
19
19
  ? await pg.query(`select
20
20
  service_id as id, name, service_type, service_url as url,
21
- source_type, source_path, style, layers,
21
+ source_type, source_path, geometry_column, style, layers,
22
22
  st_asgeojson(bbox)::json->'coordinates' as bbox,
23
- st_asgeojson(center)::json->'coordinates' as center
23
+ st_asgeojson(center)::json->'coordinates' as center,
24
+ popup, card, filters
24
25
  from gis.services where is_active and is_public`
25
26
  )
26
27
  : {};
27
28
 
29
+ const bboxq = services.filter(el => el.source_path && pg?.pk?.[el.source_path] && !el.bbox).map(el => `update gis.services set bbox = (select st_extent(${el.geometry_column || 'geom'})::geometry from ${el.source_path}) where service_id='${el.id}'`).join(';');
30
+ await pg.query(bboxq).catch(err => console.error(err.toString()));
31
+
28
32
  services.filter(row => row.style).map(row => {
29
33
  row.style = yml2json(row.style);
30
34
  });