@opengis/gis 0.2.178 → 0.2.180

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.
Files changed (22) hide show
  1. package/dist/{CardIcon-CMRD1LLh.js → CardIcon-g4POnzwa.js} +1 -1
  2. package/dist/{EntityTablePage-XNNCltAN.js → EntityTablePage-B7K_hSYY.js} +1 -1
  3. package/dist/{ExtentOutlineLayer.vue_vue_type_script_setup_true_lang-BqUjKTDY.js → ExtentOutlineLayer.vue_vue_type_script_setup_true_lang-BcSv7m_s.js} +1 -1
  4. package/dist/{MapSettings-P3h-vHn3.js → MapSettings-C3hn2A7K.js} +1 -1
  5. package/dist/MapToolbarRight.vue_vue_type_script_setup_true_lang-Diu4LI2Z.js +1230 -0
  6. package/dist/{RastersTablePage-DnhGZLiH.js → RastersTablePage-6Emo2MXj.js} +1 -1
  7. package/dist/cartocss-COLdNfzh.js +1460 -0
  8. package/dist/{import-utils-BCATsbB5.js → import-utils-DTDbjorg.js} +1 -1
  9. package/dist/{index-cUagVqgA.js → index-Czv-aLH-.js} +11 -11
  10. package/dist/index.css +1 -1
  11. package/dist/index.js +1 -1
  12. package/dist/index.umd.cjs +29 -29
  13. package/dist/{raster-CP0tUp3j.js → raster-CB8C1210.js} +225 -219
  14. package/dist/{register-Cr-uQcby.js → register-DkQ3WyMI.js} +3 -3
  15. package/dist/{service-DwJaKrOd.js → service-BTKNJ8d_.js} +603 -597
  16. package/dist/{vs-datatable-B9WoVk-b.js → vs-datatable-C4NSnPIQ.js} +1 -1
  17. package/package.json +1 -1
  18. package/server/routes/registers/functions/getFilterSQLParametrized/formatValue.js +1 -1
  19. package/server/routes/registers/functions/gis.suggest.js +1 -1
  20. package/server/routes/registers/functions/handleRegistryRequest.js +4 -2
  21. package/dist/HeaderActions.vue_vue_type_script_setup_true_lang-BXQ3hKwa.js +0 -1099
  22. package/dist/cartocss-BkrOeQg4.js +0 -1586
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as F, mergeModels as O, defineAsyncComponent as I, useModel as R, ref as y, watch as K, openBlock as o, createElementBlock as s, createElementVNode as e, createVNode as $, unref as x, withCtx as S, createStaticVNode as V, useSlots as P, computed as H, Fragment as b, createTextVNode as U, createCommentVNode as N, renderList as A, normalizeStyle as Q, toDisplayString as M, normalizeClass as z, withModifiers as X, createBlock as Y, resolveDynamicComponent as ee, withDirectives as te, renderSlot as ne } from "vue";
2
2
  import { notify as E } from "@opengis/core";
3
3
  import { Edit as le, Trash as oe } from "lucide-vue-next";
4
- import { _ as u } from "./index-cUagVqgA.js";
4
+ import { _ as u } from "./index-Czv-aLH-.js";
5
5
  const se = { class: "flex items-center justify-center col-span-3 gap-2" }, re = { class: "flex justify-end p-[20px] gap-[10px] border-t w-full" }, ie = /* @__PURE__ */ F({
6
6
  __name: "vs-datatable-controls",
7
7
  props: /* @__PURE__ */ O({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengis/gis",
3
- "version": "0.2.178",
3
+ "version": "0.2.180",
4
4
  "type": "module",
5
5
  "author": "Softpro",
6
6
  "main": "./dist/index.js",
@@ -287,7 +287,7 @@ export default function formatValue(
287
287
  };
288
288
  }
289
289
 
290
- if (api && api.startsWith('/api/gis-suggest/')) {
290
+ if (api && api.startsWith('/api/gis-suggest/') && !options?.length) {
291
291
  const query = fieldType?.includes("[]") ? `EXISTS (
292
292
  SELECT 1
293
293
  FROM unnest(${name}) AS value
@@ -8,7 +8,7 @@ const rclient = getRedis();
8
8
  const count = false;
9
9
  const maxLimit = 100;
10
10
 
11
- export default async function gisSuggest({ token, key, val, limit: limit1 = 50 }, pg) {
11
+ export default async function gisSuggest({ token, key, val, uid, lang = 'ua', limit: limit1 = 50 }, pg) {
12
12
  const time = Date.now();
13
13
 
14
14
  const redisKey = `${pg?.options?.database}:registry-filter:${token}`;
@@ -1,6 +1,6 @@
1
1
  import { createHash } from 'node:crypto';
2
2
 
3
- import { getMeta, getRedis, metaFormat } from "@opengis/fastify-table/utils.js";
3
+ import { getMeta, getRedis, getSelect, metaFormat } from "@opengis/fastify-table/utils.js";
4
4
  import { populateFilterOptions } from './classifiers.js';
5
5
  import { extractVisibleColumns } from './columns.js';
6
6
  import getFilterSQLParametrized from './getFilterSQLParametrized/index.js';
@@ -32,8 +32,10 @@ export async function handleRegistryRequest({
32
32
  const hash = createHash('md5').update([register_id, el.name, el.data].filter(Boolean).join('-')).digest('hex');
33
33
  const redisKey = `${pg?.options?.database}:registry-filter:${hash}`;
34
34
 
35
+ const { arr, sql } = el.data ? await getSelect(el.data, pg) : {};
36
+
35
37
  const r = {
36
- ...el, id: el.name || el.id, type: el.type, api: `/api/gis-suggest/${hash}`
38
+ ...el, id: el.name || el.id, type: el.type, api: `/api/gis-suggest/${hash}`, options: arr, sql,
37
39
  };
38
40
 
39
41
  const unique = await rclient.setnx(redisKey, 1);