@opengis/gis 0.2.130 → 0.2.132
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/{CardIcon-BeZkp0PF.js → CardIcon-C667-A5B.js} +1 -1
- package/dist/{EntityTablePage-A1oEJgB4.js → EntityTablePage-CcUrgtQd.js} +1 -1
- package/dist/{ExtentOutlineLayer.vue_vue_type_script_setup_true_lang-Wr8oJ-ni.js → ExtentOutlineLayer.vue_vue_type_script_setup_true_lang-DkW7sPK-.js} +1 -1
- package/dist/{HeaderActions.vue_vue_type_script_setup_true_lang-6BnXldBs.js → HeaderActions.vue_vue_type_script_setup_true_lang-NUsY1m0k.js} +1 -1
- package/dist/{MapSettings-EmXkXJ90.js → MapSettings-nlgaugUY.js} +1 -1
- package/dist/{RastersTablePage-Cgecxbky.js → RastersTablePage-DXnU_Mf7.js} +1 -1
- package/dist/{cartocss-C29B9mz3.js → cartocss-N1uM83tE.js} +101 -72
- package/dist/{import-utils-CFjQD50e.js → import-utils-D8vK8vZI.js} +1 -1
- package/dist/{index-1vaLWtnh.js → index-fOtblnh3.js} +10 -10
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +2 -2
- package/dist/{raster-DFuH49fc.js → raster-C_Mqx3id.js} +3 -3
- package/dist/{register-COO0Y_MS.js → register-Bw4auhFJ.js} +4 -4
- package/dist/{service-DagZaIev.js → service-Bnu79Dgq.js} +5 -5
- package/dist/{vs-datatable-BaMRTZVi.js → vs-datatable-Dcf9SLpH.js} +1 -1
- package/module/test/cls/doc_status.json +31 -31
- package/module/test/select/core.user_uid.sql +1 -1
- package/package.json +2 -2
- package/server/routes/gis/cartocss/get.cartocss.js +1 -1
- package/server/routes/map/maps/get.map.js +4 -0
- package/server/routes/mapnik/controllers/rtile.js +1 -1
- package/server/routes/mapnik/functions/cartoBounds.js +1 -1
|
@@ -3,7 +3,7 @@ import { RefreshCw as ie, Plus as ue } from "lucide-vue-next";
|
|
|
3
3
|
import { useRoute as ce, useRouter as de } from "vue-router";
|
|
4
4
|
import { VsPagination as fe, notify as Q } from "@opengis/core";
|
|
5
5
|
import { FilterField as me, Filter as he } from "@opengis/filter";
|
|
6
|
-
import { F as ge, _ as ve } from "./index-
|
|
6
|
+
import { F as ge, _ as ve } from "./index-fOtblnh3.js";
|
|
7
7
|
import { _ as pe } from "./TableFormHeader.vue_vue_type_script_setup_true_lang-Mci_tseM.js";
|
|
8
8
|
const xe = { class: "flex-1 flex flex-col bg-gray-50 h-screen overflow-hidden p-0 m-0" }, be = {
|
|
9
9
|
key: 0,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as y, computed as f, watch as d, createCommentVNode as x } from "vue";
|
|
2
|
-
import { f as C, u as b } from "./index-
|
|
2
|
+
import { f as C, u as b } from "./index-fOtblnh3.js";
|
|
3
3
|
const h = /* @__PURE__ */ y({
|
|
4
4
|
__name: "ExtentOutlineLayer",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { openBlock as c, createElementBlock as v, createElementVNode as n, defineComponent as ee, normalizeClass as oe, createVNode as U, createBlock as re, unref as M, defineAsyncComponent as K, ref as y, watch as de, computed as b, createTextVNode as pe, Fragment as se, renderList as be, toDisplayString as V, createCommentVNode as q, withCtx as Z, nextTick as ke, onMounted as Ve, onUnmounted as ze, withModifiers as Ce, Teleport as Ee, normalizeStyle as Me } from "vue";
|
|
2
|
-
import { _ as Le } from "./index-
|
|
2
|
+
import { _ as Le } from "./index-fOtblnh3.js";
|
|
3
3
|
import { Settings as Se, BrushCleaning as ye, SquareCode as fe, Pencil as Te } from "lucide-vue-next";
|
|
4
4
|
import { notify as H } from "@opengis/core";
|
|
5
5
|
const $e = {}, Ie = {
|
|
@@ -5,7 +5,7 @@ import { confirm as H, notify as F } from "@opengis/core";
|
|
|
5
5
|
import { _ as de } from "./TableFormHeader.vue_vue_type_script_setup_true_lang-Mci_tseM.js";
|
|
6
6
|
import { _ as ue } from "./MapSettingsTabs.vue_vue_type_script_setup_true_lang-CKCK3NqY.js";
|
|
7
7
|
import { VsInputArraySelect as ce } from "@opengis/form";
|
|
8
|
-
import { r as me, _ as pe } from "./index-
|
|
8
|
+
import { r as me, _ as pe } from "./index-fOtblnh3.js";
|
|
9
9
|
import { _ as ye } from "./MonacoEditor.vue_vue_type_script_setup_true_lang-D3ZPeXMw.js";
|
|
10
10
|
const fe = { class: "rounded-lg border border-gray-200 bg-[rgba(252,252,252,0.8)] p-6" }, ge = /* @__PURE__ */ I({
|
|
11
11
|
__name: "GeneralSettings",
|
|
@@ -3,7 +3,7 @@ import { useRoute as ne, useRouter as oe } from "vue-router";
|
|
|
3
3
|
import { VsPagination as le, notify as B } from "@opengis/core";
|
|
4
4
|
import { FilterField as re, Filter as ie } from "@opengis/filter";
|
|
5
5
|
import { RefreshCw as ue, Plus as ce } from "lucide-vue-next";
|
|
6
|
-
import { F as de, _ as ve } from "./index-
|
|
6
|
+
import { F as de, _ as ve } from "./index-fOtblnh3.js";
|
|
7
7
|
import { _ as fe } from "./TableFormHeader.vue_vue_type_script_setup_true_lang-Mci_tseM.js";
|
|
8
8
|
const ge = { class: "flex-1 flex flex-col bg-gray-50 h-screen overflow-hidden p-0 m-0" }, me = {
|
|
9
9
|
href: "/api/gis-create-xml",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { openBlock as w, createElementBlock as z, createElementVNode as o, defineComponent as W, computed as M, createTextVNode as Le, createVNode as E, mergeModels as Ye, defineAsyncComponent as me, useModel as Ge, ref as b, withCtx as G, toDisplayString as U, unref as le, watch as T, onUnmounted as We, createCommentVNode as B, onBeforeUnmount as Me, onMounted as Xe, withDirectives as Ze, vModelText as Ke, createBlock as P, normalizeClass as ke, normalizeStyle as et, Fragment as Ce, renderList as tt, resolveDynamicComponent as at } from "vue";
|
|
2
2
|
import { useRouter as ot, useRoute as nt } from "vue-router";
|
|
3
3
|
import { notify as D } from "@opengis/core";
|
|
4
|
-
import { _ as st, f as ze, o as lt, p as rt, q as ut, M as it, i as ct, j as Se, m as dt } from "./index-
|
|
5
|
-
import { S as ft, C as mt } from "./CardIcon-
|
|
6
|
-
import { _ as pt, a as yt, b as vt, c as
|
|
4
|
+
import { _ as st, f as ze, o as lt, p as rt, q as ut, M as it, i as ct, j as Se, m as dt } from "./index-fOtblnh3.js";
|
|
5
|
+
import { S as ft, C as mt } from "./CardIcon-C667-A5B.js";
|
|
6
|
+
import { _ as pt, a as yt, b as vt, c as gt } from "./HeaderActions.vue_vue_type_script_setup_true_lang-NUsY1m0k.js";
|
|
7
7
|
import { _ as Ee } from "./MonacoEditor.vue_vue_type_script_setup_true_lang-D3ZPeXMw.js";
|
|
8
|
-
import { V as
|
|
9
|
-
import { _ as $e } from "./ExtentOutlineLayer.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { V as ht } from "./vs-datatable-Dcf9SLpH.js";
|
|
9
|
+
import { _ as $e } from "./ExtentOutlineLayer.vue_vue_type_script_setup_true_lang-DkW7sPK-.js";
|
|
10
10
|
const bt = {}, xt = {
|
|
11
11
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12
12
|
width: "24",
|
|
@@ -108,6 +108,7 @@ const _t = /* @__PURE__ */ st(bt, [["render", wt]]), kt = { class: "flex flex-co
|
|
|
108
108
|
srid: "",
|
|
109
109
|
key: "",
|
|
110
110
|
columns: "",
|
|
111
|
+
gcol: "",
|
|
111
112
|
minzoom: "",
|
|
112
113
|
maxzoom: "",
|
|
113
114
|
proj4text: "",
|
|
@@ -117,6 +118,7 @@ const _t = /* @__PURE__ */ st(bt, [["render", wt]]), kt = { class: "flex flex-co
|
|
|
117
118
|
key: { type: "text", label: "Ключ", validators: ["required"] },
|
|
118
119
|
query: { type: "text", label: "Query" },
|
|
119
120
|
columns: { type: "text", label: "Колонки" },
|
|
121
|
+
gcol: { type: "text", label: "Колонка geometry" },
|
|
120
122
|
srid: { type: "number", label: "SRID" },
|
|
121
123
|
proj4text: { type: "text", label: "PROJ4" },
|
|
122
124
|
active: { type: "switcher", label: "Активна" },
|
|
@@ -130,6 +132,7 @@ const _t = /* @__PURE__ */ st(bt, [["render", wt]]), kt = { class: "flex flex-co
|
|
|
130
132
|
srid: "",
|
|
131
133
|
key: "",
|
|
132
134
|
columns: "",
|
|
135
|
+
gcol: "",
|
|
133
136
|
minzoom: "",
|
|
134
137
|
maxzoom: "",
|
|
135
138
|
proj4text: "",
|
|
@@ -173,7 +176,7 @@ const _t = /* @__PURE__ */ st(bt, [["render", wt]]), kt = { class: "flex flex-co
|
|
|
173
176
|
onClick: v[0] || (v[0] = (f) => c("save"))
|
|
174
177
|
}, " Зберегти ")
|
|
175
178
|
]),
|
|
176
|
-
E(
|
|
179
|
+
E(ht, {
|
|
177
180
|
modelValue: x.value,
|
|
178
181
|
"onUpdate:modelValue": v[1] || (v[1] = (f) => x.value = f),
|
|
179
182
|
"columns-scheme": i,
|
|
@@ -435,24 +438,26 @@ const _t = /* @__PURE__ */ st(bt, [["render", wt]]), kt = { class: "flex flex-co
|
|
|
435
438
|
}, fa = { class: "flex-1 flex flex-col h-full" }, ma = {
|
|
436
439
|
key: 0,
|
|
437
440
|
class: "px-3 pt-3 pb-2 border-b border-gray-100"
|
|
438
|
-
}, pa = ["aria-selected", "onClick"], ya = { class: "leading-none" }, va = { class: "flex flex-col flex-1 overflow-y-hidden p-3" },
|
|
441
|
+
}, pa = ["aria-selected", "onClick"], ya = { class: "leading-none" }, va = { class: "flex flex-col flex-1 overflow-y-hidden p-3" }, ga = {
|
|
439
442
|
key: 0,
|
|
440
443
|
class: "flex-1 flex items-center justify-center text-sm text-gray-500"
|
|
441
|
-
},
|
|
444
|
+
}, ha = "cartocss-demo-001", ba = "OpenGIS", Ve = 2, se = 5, xa = 5, Ea = /* @__PURE__ */ W({
|
|
442
445
|
__name: "cartocss",
|
|
443
446
|
setup(A) {
|
|
444
447
|
const u = ot(), i = nt(), j = b(null), S = [
|
|
445
448
|
{ key: "css", label: "CSS", icon: ft },
|
|
446
449
|
{ key: "data", label: "Дані", icon: _t },
|
|
447
|
-
{ key: "metadata", label: "Метадані", icon:
|
|
450
|
+
{ key: "metadata", label: "Метадані", icon: gt },
|
|
448
451
|
{ key: "card", label: "Картка", icon: mt }
|
|
449
452
|
], x = S.map((e) => e.key), c = b(
|
|
450
453
|
x.includes(i.query.tab) ? i.query.tab : "css"
|
|
451
|
-
), d = b(!0), s = b(null), m = M(
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
454
|
+
), d = b(!0), s = b(null), m = M(
|
|
455
|
+
() => {
|
|
456
|
+
var e;
|
|
457
|
+
return (e = s.value) != null && e.source_path ? S.filter((a) => a.key === "card" || a.key === "metadata") : S;
|
|
458
|
+
}
|
|
459
|
+
), r = M(
|
|
460
|
+
() => i.params.id || ha
|
|
456
461
|
), $ = b({
|
|
457
462
|
id: r.value,
|
|
458
463
|
name: "",
|
|
@@ -478,20 +483,20 @@ const _t = /* @__PURE__ */ st(bt, [["render", wt]]), kt = { class: "flex flex-co
|
|
|
478
483
|
return (e = j.value) == null ? void 0 : e.ctx;
|
|
479
484
|
}
|
|
480
485
|
function V() {
|
|
481
|
-
var
|
|
482
|
-
const e = (C = (
|
|
486
|
+
var g, C, O, q;
|
|
487
|
+
const e = (C = (g = k()) == null ? void 0 : g.map) == null ? void 0 : C.value;
|
|
483
488
|
if (!e) return;
|
|
484
489
|
const a = _(i.query.z), t = _(i.query.x), n = _(i.query.y);
|
|
485
490
|
if (a == null || t == null || n == null) return;
|
|
486
|
-
const l = (O = e.getCenter) == null ? void 0 : O.call(e),
|
|
487
|
-
(!l || f(l.lng, t, se) || f(l.lat, n, se) || f(
|
|
491
|
+
const l = (O = e.getCenter) == null ? void 0 : O.call(e), h = (q = e.getZoom) == null ? void 0 : q.call(e);
|
|
492
|
+
(!l || f(l.lng, t, se) || f(l.lat, n, se) || f(h ?? 0, a, Ve)) && (p.value = !0, e.jumpTo({ center: [t, n], zoom: a }), p.value = !1);
|
|
488
493
|
}
|
|
489
494
|
function F() {
|
|
490
|
-
var l,
|
|
495
|
+
var l, h, L, g;
|
|
491
496
|
if (p.value) return;
|
|
492
|
-
const e = (
|
|
497
|
+
const e = (h = (l = k()) == null ? void 0 : l.map) == null ? void 0 : h.value;
|
|
493
498
|
if (!e) return;
|
|
494
|
-
const a = (L = e.getCenter) == null ? void 0 : L.call(e), t = (
|
|
499
|
+
const a = (L = e.getCenter) == null ? void 0 : L.call(e), t = (g = e.getZoom) == null ? void 0 : g.call(e);
|
|
495
500
|
if (!a || t == null) return;
|
|
496
501
|
const n = {
|
|
497
502
|
...i.query,
|
|
@@ -504,23 +509,29 @@ const _t = /* @__PURE__ */ st(bt, [["render", wt]]), kt = { class: "flex flex-co
|
|
|
504
509
|
function R(e) {
|
|
505
510
|
typeof document > "u" || (document.title = e ? `${e} — CartoCSS` : ba);
|
|
506
511
|
}
|
|
507
|
-
const y = b(""), Q = b([]), H = b(!1), K = b(!1), re = b(""), ue = b(0), ee = b(!1), te = b(1), ie = b(!0), I = b(!1), X = b(null), je = M(() => `cartocss-layer-${r.value}`), Ae = M(
|
|
512
|
+
const y = b(""), Q = b([]), H = b(!1), K = b(!1), re = b(""), ue = b(0), ee = b(!1), te = b(1), ie = b(!0), I = b(!1), X = b(null), je = M(() => `cartocss-layer-${r.value}`), Ae = M(
|
|
513
|
+
() => `${Math.round(te.value * 100)}%`
|
|
514
|
+
), Ne = M(
|
|
515
|
+
() => `cartocss-extent-${r.value}`
|
|
516
|
+
), Be = M(
|
|
517
|
+
() => `cartocss-extent-draft-${r.value}`
|
|
518
|
+
), pe = M(() => {
|
|
508
519
|
var l;
|
|
509
520
|
const e = (l = re.value) == null ? void 0 : l.trim();
|
|
510
521
|
if (!e) return "";
|
|
511
522
|
const a = e.includes("?") ? "&" : "?", t = `${e}${a}nottl=1`, n = ue.value;
|
|
512
523
|
return n ? `${e}${a}ts=${n}&nocache=1` : t;
|
|
513
|
-
}), ye = b(""), ve = b(""),
|
|
514
|
-
var
|
|
515
|
-
const e = (
|
|
524
|
+
}), ye = b(""), ve = b(""), ge = M(() => {
|
|
525
|
+
var h;
|
|
526
|
+
const e = (h = s.value) == null ? void 0 : h.bounds;
|
|
516
527
|
if (!Array.isArray(e) || e.length < 4) return null;
|
|
517
528
|
const [a, t, n, l] = e;
|
|
518
529
|
return [a, t, n, l].some(
|
|
519
530
|
(L) => typeof L != "number" || Number.isNaN(L)
|
|
520
531
|
) ? null : [(a + n) / 2, (t + l) / 2];
|
|
521
532
|
}), qe = M(() => {
|
|
522
|
-
var
|
|
523
|
-
const e = (
|
|
533
|
+
var h;
|
|
534
|
+
const e = (h = s.value) == null ? void 0 : h.bounds;
|
|
524
535
|
if (!Array.isArray(e) || e.length < 4) return null;
|
|
525
536
|
const [a, t, n, l] = e;
|
|
526
537
|
return [a, t, n, l].some(
|
|
@@ -535,7 +546,7 @@ const _t = /* @__PURE__ */ st(bt, [["render", wt]]), kt = { class: "flex flex-co
|
|
|
535
546
|
e.is_public === !0 ? "Публічний" : "Не публічний",
|
|
536
547
|
e.enabled === !0 ? "Активний" : "Неактивний"
|
|
537
548
|
].filter(Boolean).join(", ") : "";
|
|
538
|
-
}),
|
|
549
|
+
}), he = M(() => {
|
|
539
550
|
var a;
|
|
540
551
|
const e = (a = s.value) == null ? void 0 : a.group_id;
|
|
541
552
|
return e ? String(e).toUpperCase() : "";
|
|
@@ -545,30 +556,32 @@ const _t = /* @__PURE__ */ st(bt, [["render", wt]]), kt = { class: "flex flex-co
|
|
|
545
556
|
return Number(e.toFixed(xa));
|
|
546
557
|
}
|
|
547
558
|
function be(e, a) {
|
|
548
|
-
const [t, n] = e, [l,
|
|
559
|
+
const [t, n] = e, [l, h] = a;
|
|
549
560
|
return [
|
|
550
561
|
ae(Math.min(t, l)),
|
|
551
|
-
ae(Math.min(n,
|
|
562
|
+
ae(Math.min(n, h)),
|
|
552
563
|
ae(Math.max(t, l)),
|
|
553
|
-
ae(Math.max(n,
|
|
564
|
+
ae(Math.max(n, h))
|
|
554
565
|
];
|
|
555
566
|
}
|
|
556
567
|
function Te(e) {
|
|
557
568
|
const [a, t, n, l] = e;
|
|
558
569
|
return {
|
|
559
570
|
type: "Polygon",
|
|
560
|
-
coordinates: [
|
|
561
|
-
[
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
571
|
+
coordinates: [
|
|
572
|
+
[
|
|
573
|
+
[a, t],
|
|
574
|
+
[n, t],
|
|
575
|
+
[n, l],
|
|
576
|
+
[a, l],
|
|
577
|
+
[a, t]
|
|
578
|
+
]
|
|
579
|
+
]
|
|
567
580
|
};
|
|
568
581
|
}
|
|
569
582
|
function de(e) {
|
|
570
|
-
var n, l,
|
|
571
|
-
const a = (l = (n = k()) == null ? void 0 : n.map) == null ? void 0 : l.value, t = (
|
|
583
|
+
var n, l, h;
|
|
584
|
+
const a = (l = (n = k()) == null ? void 0 : n.map) == null ? void 0 : l.value, t = (h = a == null ? void 0 : a.getCanvas) == null ? void 0 : h.call(a);
|
|
572
585
|
t != null && t.style && (t.style.cursor = e);
|
|
573
586
|
}
|
|
574
587
|
async function De(e, a) {
|
|
@@ -580,7 +593,8 @@ const _t = /* @__PURE__ */ st(bt, [["render", wt]]), kt = { class: "flex flex-co
|
|
|
580
593
|
headers: { "Content-Type": "application/json" },
|
|
581
594
|
body: JSON.stringify({ geom: t })
|
|
582
595
|
});
|
|
583
|
-
if (!n.ok)
|
|
596
|
+
if (!n.ok)
|
|
597
|
+
throw new Error(`Failed to save cartocss bounds: ${n.status}`);
|
|
584
598
|
D({
|
|
585
599
|
type: "success",
|
|
586
600
|
title: "Bounds збережено",
|
|
@@ -604,11 +618,11 @@ const _t = /* @__PURE__ */ st(bt, [["render", wt]]), kt = { class: "flex flex-co
|
|
|
604
618
|
var t, n, l;
|
|
605
619
|
const a = (n = (t = k()) == null ? void 0 : t.map) == null ? void 0 : n.value;
|
|
606
620
|
if ((l = a == null ? void 0 : a.dragPan) != null && l.enable && a.dragPan.enable(), (e == null ? void 0 : e.length) === 4 && s.value) {
|
|
607
|
-
const
|
|
621
|
+
const h = Array.isArray(s.value.bounds) ? [...s.value.bounds] : null;
|
|
608
622
|
s.value = {
|
|
609
623
|
...s.value,
|
|
610
624
|
bounds: [...e]
|
|
611
|
-
}, De(e,
|
|
625
|
+
}, De(e, h);
|
|
612
626
|
}
|
|
613
627
|
J = null, Z = !1, X.value = null, I.value = !1, de("");
|
|
614
628
|
}
|
|
@@ -616,31 +630,35 @@ const _t = /* @__PURE__ */ st(bt, [["render", wt]]), kt = { class: "flex flex-co
|
|
|
616
630
|
xe(null);
|
|
617
631
|
}
|
|
618
632
|
function Ue() {
|
|
619
|
-
var
|
|
620
|
-
const e = (L = (
|
|
633
|
+
var h, L;
|
|
634
|
+
const e = (L = (h = k()) == null ? void 0 : h.map) == null ? void 0 : L.value;
|
|
621
635
|
if (!e) return;
|
|
622
|
-
const a = (
|
|
636
|
+
const a = (g) => {
|
|
623
637
|
var O, q, ne;
|
|
624
|
-
if (!I.value || ((O =
|
|
625
|
-
|
|
626
|
-
C
|
|
627
|
-
|
|
628
|
-
|
|
638
|
+
if (!I.value || ((O = g == null ? void 0 : g.originalEvent) == null ? void 0 : O.button) != null && g.originalEvent.button !== 0)
|
|
639
|
+
return;
|
|
640
|
+
const C = g == null ? void 0 : g.lngLat;
|
|
641
|
+
C && (J = [C.lng, C.lat], Z = !0, X.value = [C.lng, C.lat, C.lng, C.lat], (ne = (q = e.dragPan) == null ? void 0 : q.disable) == null || ne.call(q));
|
|
642
|
+
}, t = (g) => {
|
|
643
|
+
if (!I.value || !Z || !J)
|
|
644
|
+
return;
|
|
645
|
+
const C = g == null ? void 0 : g.lngLat;
|
|
646
|
+
C && (X.value = be(J, [
|
|
629
647
|
C.lng,
|
|
630
648
|
C.lat
|
|
631
|
-
]
|
|
632
|
-
},
|
|
633
|
-
if (!I.value || !Z || !J)
|
|
634
|
-
|
|
635
|
-
C
|
|
636
|
-
}, n = (h) => {
|
|
637
|
-
if (!I.value || !Z || !J) return;
|
|
638
|
-
const C = h == null ? void 0 : h.lngLat;
|
|
649
|
+
]));
|
|
650
|
+
}, n = (g) => {
|
|
651
|
+
if (!I.value || !Z || !J)
|
|
652
|
+
return;
|
|
653
|
+
const C = g == null ? void 0 : g.lngLat;
|
|
639
654
|
if (!C) {
|
|
640
655
|
fe();
|
|
641
656
|
return;
|
|
642
657
|
}
|
|
643
|
-
const O = be(J, [
|
|
658
|
+
const O = be(J, [
|
|
659
|
+
C.lng,
|
|
660
|
+
C.lat
|
|
661
|
+
]), [q, ne, He, Je] = O;
|
|
644
662
|
if (!(Math.abs(He - q) > 0 && Math.abs(Je - ne) > 0)) {
|
|
645
663
|
D({
|
|
646
664
|
type: "warning",
|
|
@@ -650,8 +668,8 @@ const _t = /* @__PURE__ */ st(bt, [["render", wt]]), kt = { class: "flex flex-co
|
|
|
650
668
|
return;
|
|
651
669
|
}
|
|
652
670
|
xe(O);
|
|
653
|
-
}, l = (
|
|
654
|
-
I.value &&
|
|
671
|
+
}, l = (g) => {
|
|
672
|
+
I.value && g.key === "Escape" && (g.preventDefault(), fe());
|
|
655
673
|
};
|
|
656
674
|
e.on("mousedown", a), e.on("mousemove", t), e.on("mouseup", n), window.addEventListener("keydown", l), Y = () => {
|
|
657
675
|
e.off("mousedown", a), e.off("mousemove", t), e.off("mouseup", n), window.removeEventListener("keydown", l);
|
|
@@ -737,7 +755,11 @@ const _t = /* @__PURE__ */ st(bt, [["render", wt]]), kt = { class: "flex flex-co
|
|
|
737
755
|
if (!t.ok) throw new Error(`Failed to save cartocss: ${t.status}`);
|
|
738
756
|
D({ type: "success", title: "Збережено", message: a }), await oe(r.value, { bustCache: !0 });
|
|
739
757
|
} catch (t) {
|
|
740
|
-
console.error("Failed to save CartoCSS", t), D({
|
|
758
|
+
console.error("Failed to save CartoCSS", t), D({
|
|
759
|
+
type: "error",
|
|
760
|
+
title: "Помилка",
|
|
761
|
+
message: "Не вдалося зберегти CartoCSS"
|
|
762
|
+
});
|
|
741
763
|
} finally {
|
|
742
764
|
K.value = !1;
|
|
743
765
|
}
|
|
@@ -759,6 +781,7 @@ const _t = /* @__PURE__ */ st(bt, [["render", wt]]), kt = { class: "flex flex-co
|
|
|
759
781
|
table: (t == null ? void 0 : t.table) || (t == null ? void 0 : t.id) || `dataset_${n + 1}`,
|
|
760
782
|
query: (t == null ? void 0 : t.query) || "",
|
|
761
783
|
srid: (t == null ? void 0 : t.srid) || "",
|
|
784
|
+
gcol: (t == null ? void 0 : t.gcol) || "",
|
|
762
785
|
key: (t == null ? void 0 : t.key) || (t == null ? void 0 : t.label) || "Без підпису",
|
|
763
786
|
active: typeof (t == null ? void 0 : t.active) == "boolean" ? t.active : !0,
|
|
764
787
|
minzoom: typeof (t == null ? void 0 : t.zoom) > "u" ? "" : String(t.zoom),
|
|
@@ -778,8 +801,8 @@ const _t = /* @__PURE__ */ st(bt, [["render", wt]]), kt = { class: "flex flex-co
|
|
|
778
801
|
name: l.name || $.value.name,
|
|
779
802
|
description: l.description || $.value.description
|
|
780
803
|
}, y.value = typeof l.style == "string" ? l.style : "";
|
|
781
|
-
const
|
|
782
|
-
Q.value = Re(
|
|
804
|
+
const h = Fe(l.config ?? []);
|
|
805
|
+
Q.value = Re(h);
|
|
783
806
|
const L = typeof l.url == "string" ? l.url : "";
|
|
784
807
|
re.value = L, ee.value = !!(L && l.enabled !== !1), ue.value = a != null && a.bustCache ? Date.now() : 0;
|
|
785
808
|
} catch (t) {
|
|
@@ -804,7 +827,11 @@ const _t = /* @__PURE__ */ st(bt, [["render", wt]]), kt = { class: "flex flex-co
|
|
|
804
827
|
body: JSON.stringify(e)
|
|
805
828
|
});
|
|
806
829
|
if (!a.ok) throw new Error(`Failed to save cartocss: ${a.status}`);
|
|
807
|
-
D({
|
|
830
|
+
D({
|
|
831
|
+
type: "success",
|
|
832
|
+
title: "Збережено",
|
|
833
|
+
message: "Картка CartoCSS оновлена"
|
|
834
|
+
});
|
|
808
835
|
}
|
|
809
836
|
return (e, a) => (w(), z("div", It, [
|
|
810
837
|
o("div", Ot, [
|
|
@@ -838,8 +865,8 @@ const _t = /* @__PURE__ */ st(bt, [["render", wt]]), kt = { class: "flex flex-co
|
|
|
838
865
|
o("div", Gt, [
|
|
839
866
|
o("div", Wt, [
|
|
840
867
|
o("h1", Xt, U($.value.name || "CartoCSS"), 1),
|
|
841
|
-
|
|
842
|
-
o("span", Kt, U(
|
|
868
|
+
he.value ? (w(), z("div", Zt, [
|
|
869
|
+
o("span", Kt, U(he.value), 1)
|
|
843
870
|
])) : B("", !0)
|
|
844
871
|
]),
|
|
845
872
|
ce.value ? (w(), z("p", {
|
|
@@ -912,9 +939,9 @@ const _t = /* @__PURE__ */ st(bt, [["render", wt]]), kt = { class: "flex flex-co
|
|
|
912
939
|
]),
|
|
913
940
|
o("div", ca, [
|
|
914
941
|
E(Se),
|
|
915
|
-
|
|
942
|
+
ge.value ? (w(), P(Se, {
|
|
916
943
|
key: 0,
|
|
917
|
-
targetCenter:
|
|
944
|
+
targetCenter: ge.value,
|
|
918
945
|
targetLabel: "Центр даних",
|
|
919
946
|
targetAriaLabel: "Перейти до центру даних"
|
|
920
947
|
}, null, 8, ["targetCenter"])) : B("", !0)
|
|
@@ -966,7 +993,9 @@ const _t = /* @__PURE__ */ st(bt, [["render", wt]]), kt = { class: "flex flex-co
|
|
|
966
993
|
m.value.length > 1 ? (w(), z("div", ma, [
|
|
967
994
|
o("div", {
|
|
968
995
|
class: "items-center justify-center text-muted-foreground grid w-full h-12 p-1 bg-gray-50 rounded-xl shadow-sm",
|
|
969
|
-
style: et({
|
|
996
|
+
style: et({
|
|
997
|
+
gridTemplateColumns: `repeat(${m.value.length}, minmax(0, 1fr))`
|
|
998
|
+
})
|
|
970
999
|
}, [
|
|
971
1000
|
(w(!0), z(Ce, null, tt(m.value, (t) => (w(), z("button", {
|
|
972
1001
|
key: t.key,
|
|
@@ -985,7 +1014,7 @@ const _t = /* @__PURE__ */ st(bt, [["render", wt]]), kt = { class: "flex flex-co
|
|
|
985
1014
|
], 4)
|
|
986
1015
|
])) : B("", !0),
|
|
987
1016
|
o("div", va, [
|
|
988
|
-
H.value ? (w(), z("div",
|
|
1017
|
+
H.value ? (w(), z("div", ga, " Завантаження стилю… ")) : (w(), z(Ce, { key: 1 }, [
|
|
989
1018
|
c.value === "css" ? (w(), P(St, {
|
|
990
1019
|
key: 0,
|
|
991
1020
|
modelValue: y.value,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as V, mergeModels as S, useModel as w, defineAsyncComponent as $, computed as h, openBlock as p, createBlock as A, unref as C, withCtx as T, createElementVNode as r, toDisplayString as y, createElementBlock as b, Fragment as D, renderList as E, normalizeClass as L, resolveDynamicComponent as N, createCommentVNode as f } from "vue";
|
|
2
|
-
import { i as P, g as j } from "./vs-datatable-
|
|
2
|
+
import { i as P, g as j } from "./vs-datatable-Dcf9SLpH.js";
|
|
3
3
|
const R = { class: "p-4 text-[13px]" }, U = { class: "grid grid-cols-2 gap-x-6 gap-y-2" }, q = ["id", "checked", "onChange"], G = { class: "ml-2 flex-1 min-w-0 flex items-center gap-2" }, H = { class: "font-medium text-gray-900 truncate" }, J = { class: "text-xs text-gray-500" }, O = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "text-xs text-[#B2C9D6]"
|
|
@@ -35,12 +35,12 @@ const vn = /* @__PURE__ */ he({
|
|
|
35
35
|
__name: "RegistersWrapper",
|
|
36
36
|
setup(n) {
|
|
37
37
|
const t = Ge(
|
|
38
|
-
() => import("./EntityTablePage-
|
|
38
|
+
() => import("./EntityTablePage-CcUrgtQd.js")
|
|
39
39
|
), a = Ge(
|
|
40
40
|
() => import("./EntityCreatePage-Da8XgBKU.js")
|
|
41
41
|
), l = Ge(
|
|
42
42
|
() => import("./EntityEditPage-QktKEAxz.js")
|
|
43
|
-
), x = Ge(() => import("./register-
|
|
43
|
+
), x = Ge(() => import("./register-Bw4auhFJ.js")), f = {
|
|
44
44
|
table: t,
|
|
45
45
|
create: a,
|
|
46
46
|
edit: l,
|
|
@@ -86,12 +86,12 @@ const vn = /* @__PURE__ */ he({
|
|
|
86
86
|
__name: "DatasetsWrapper",
|
|
87
87
|
setup(n) {
|
|
88
88
|
const t = Ge(
|
|
89
|
-
() => import("./EntityTablePage-
|
|
89
|
+
() => import("./EntityTablePage-CcUrgtQd.js")
|
|
90
90
|
), a = Ge(
|
|
91
91
|
() => import("./EntityCreatePage-Da8XgBKU.js")
|
|
92
92
|
), l = Ge(
|
|
93
93
|
() => import("./EntityEditPage-QktKEAxz.js")
|
|
94
|
-
), x = Ge(() => import("./service-
|
|
94
|
+
), x = Ge(() => import("./service-Bnu79Dgq.js")), f = {
|
|
95
95
|
table: t,
|
|
96
96
|
create: a,
|
|
97
97
|
edit: l,
|
|
@@ -154,12 +154,12 @@ const vn = /* @__PURE__ */ he({
|
|
|
154
154
|
__name: "RastersWrapper",
|
|
155
155
|
setup(n) {
|
|
156
156
|
const t = Ge(
|
|
157
|
-
() => import("./RastersTablePage-
|
|
157
|
+
() => import("./RastersTablePage-DXnU_Mf7.js")
|
|
158
158
|
), a = Ge(
|
|
159
159
|
() => import("./EntityCreatePage-Da8XgBKU.js")
|
|
160
160
|
), l = Ge(
|
|
161
161
|
() => import("./EntityEditPage-QktKEAxz.js")
|
|
162
|
-
), x = Ge(() => import("./raster-
|
|
162
|
+
), x = Ge(() => import("./raster-C_Mqx3id.js")), f = {
|
|
163
163
|
table: t,
|
|
164
164
|
create: a,
|
|
165
165
|
edit: l,
|
|
@@ -211,12 +211,12 @@ const vn = /* @__PURE__ */ he({
|
|
|
211
211
|
__name: "CartocssWrapper",
|
|
212
212
|
setup(n) {
|
|
213
213
|
const t = Ge(
|
|
214
|
-
() => import("./EntityTablePage-
|
|
214
|
+
() => import("./EntityTablePage-CcUrgtQd.js")
|
|
215
215
|
), a = Ge(
|
|
216
216
|
() => import("./EntityCreatePage-Da8XgBKU.js")
|
|
217
217
|
), l = Ge(
|
|
218
218
|
() => import("./EntityEditPage-QktKEAxz.js")
|
|
219
|
-
), x = Ge(() => import("./cartocss-
|
|
219
|
+
), x = Ge(() => import("./cartocss-N1uM83tE.js")), f = {
|
|
220
220
|
table: t,
|
|
221
221
|
create: a,
|
|
222
222
|
edit: l,
|
|
@@ -321,12 +321,12 @@ const Nr = /* @__PURE__ */ Ue(Rr, [["render", jr]]), Or = { class: "gap-2 inline
|
|
|
321
321
|
__name: "MapsWrapper",
|
|
322
322
|
setup(n) {
|
|
323
323
|
const t = Ge(
|
|
324
|
-
() => import("./EntityTablePage-
|
|
324
|
+
() => import("./EntityTablePage-CcUrgtQd.js")
|
|
325
325
|
), a = Ge(
|
|
326
326
|
() => import("./EntityCreatePage-Da8XgBKU.js")
|
|
327
327
|
), l = Ge(
|
|
328
328
|
() => import("./EntityEditPage-QktKEAxz.js")
|
|
329
|
-
), x = Ge(() => import("./MapSettings-
|
|
329
|
+
), x = Ge(() => import("./MapSettings-nlgaugUY.js")), f = {
|
|
330
330
|
table: t,
|
|
331
331
|
create: a,
|
|
332
332
|
edit: l,
|