@opengis/gis 0.2.197 → 0.2.198
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-sQXm9kPL.js → CardIcon-D3egQ54K.js} +1 -1
- package/dist/{EntityTablePage-C9ivBpQp.js → EntityTablePage-BXnyaJwM.js} +1 -1
- package/dist/{ExtentOutlineLayer.vue_vue_type_script_setup_true_lang-D577ovAi.js → ExtentOutlineLayer.vue_vue_type_script_setup_true_lang-Csj-Mk0E.js} +1 -1
- package/dist/{MapSettings-DC--ar4m.js → MapSettings-CIWpQAri.js} +1 -1
- package/dist/{MapToolbarRight.vue_vue_type_script_setup_true_lang-DTEqssqE.js → MapToolbarRight.vue_vue_type_script_setup_true_lang-D4gIS9Za.js} +1 -1
- package/dist/{RastersTablePage-D1Cdr9A_.js → RastersTablePage-8YYHSann.js} +1 -1
- package/dist/{cartocss-BAu-wKy8.js → cartocss-Dv0jmD8W.js} +229 -224
- package/dist/{import-utils-CVWTn1Q-.js → import-utils-ybhVjvS3.js} +1 -1
- package/dist/{index-CiG55gw8.js → index-C5i91tbE.js} +10 -10
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +4 -4
- package/dist/{raster-TMbcKrC8.js → raster-Dz9IrnKN.js} +3 -3
- package/dist/{register-BDpSsQT9.js → register-CQBlHMUw.js} +3 -3
- package/dist/{service-C3H6y4-W.js → service-ZuREur4T.js} +5 -5
- package/dist/{vs-datatable-DuieER9Z.js → vs-datatable-FzPoAXw4.js} +1 -1
- package/package.json +3 -3
- package/server/routes/map/functions/mapFormat.js +8 -4
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { openBlock as x, createElementBlock as P, createElementVNode as l, defineComponent as U, computed as B, createTextVNode as Le, createVNode as S, mergeModels as
|
|
1
|
+
import { openBlock as x, createElementBlock as P, createElementVNode as l, defineComponent as U, computed as B, createTextVNode as Le, createVNode as S, mergeModels as vt, defineAsyncComponent as Se, useModel as pt, ref as b, withCtx as j, toDisplayString as O, unref as I, watch as q, onUnmounted as yt, createCommentVNode as N, onBeforeUnmount as oe, onMounted as Ee, createBlock as A, Transition as gt, withModifiers as De, Fragment as me, renderList as Qe, normalizeStyle as $e, normalizeClass as ve, withDirectives as Ue, vModelText as ht, vModelCheckbox as bt, resolveDynamicComponent as xt } from "vue";
|
|
2
2
|
import { useRouter as _t, useRoute as wt } from "vue-router";
|
|
3
3
|
import { notify as D } from "@opengis/core";
|
|
4
4
|
import { Minimize2 as kt, Maximize2 as Ct, Link2 as Mt, Ruler as St, Eye as $t, EyeOff as Lt } from "lucide-vue-next";
|
|
5
|
-
import { _ as Ye, f as
|
|
6
|
-
import { S as Ft, C as Nt } from "./CardIcon-
|
|
7
|
-
import { h as
|
|
5
|
+
import { _ as Ye, f as ne, o as Et, p as Vt, q as zt, M as Rt, i as Bt, j as qe, r as Pt, t as Tt, m as At } from "./index-C5i91tbE.js";
|
|
6
|
+
import { S as Ft, C as Nt } from "./CardIcon-D3egQ54K.js";
|
|
7
|
+
import { h as pe, _ as jt, a as Ot, b as Dt, c as Ut, d as qt, e as Zt, f as It, g as Qt } from "./MapToolbarRight.vue_vue_type_script_setup_true_lang-D4gIS9Za.js";
|
|
8
8
|
import { _ as He } from "./MonacoEditor.vue_vue_type_script_setup_true_lang-D3ZPeXMw.js";
|
|
9
|
-
import { V as Yt } from "./vs-datatable-
|
|
10
|
-
import { _ as Ze } from "./ExtentOutlineLayer.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { V as Yt } from "./vs-datatable-FzPoAXw4.js";
|
|
10
|
+
import { _ as Ze } from "./ExtentOutlineLayer.vue_vue_type_script_setup_true_lang-Csj-Mk0E.js";
|
|
11
11
|
const Ht = {}, Jt = {
|
|
12
12
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13
13
|
width: "24",
|
|
@@ -20,8 +20,8 @@ const Ht = {}, Jt = {
|
|
|
20
20
|
"stroke-linejoin": "round",
|
|
21
21
|
class: "lucide lucide-table"
|
|
22
22
|
};
|
|
23
|
-
function Kt(
|
|
24
|
-
return x(), P("svg", Jt, [...
|
|
23
|
+
function Kt(L, s) {
|
|
24
|
+
return x(), P("svg", Jt, [...s[0] || (s[0] = [
|
|
25
25
|
l("path", { d: "M12 3v18" }, null, -1),
|
|
26
26
|
l("rect", {
|
|
27
27
|
width: "18",
|
|
@@ -40,17 +40,17 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
40
40
|
modelValue: {}
|
|
41
41
|
},
|
|
42
42
|
emits: ["update:modelValue", "save"],
|
|
43
|
-
setup(
|
|
44
|
-
const n =
|
|
43
|
+
setup(L, { emit: s }) {
|
|
44
|
+
const n = L, k = s, _ = B({
|
|
45
45
|
get: () => n.modelValue,
|
|
46
|
-
set: (
|
|
46
|
+
set: (p) => k("update:modelValue", p)
|
|
47
47
|
});
|
|
48
|
-
return (
|
|
48
|
+
return (p, g) => (x(), P("div", Xt, [
|
|
49
49
|
l("div", Gt, [
|
|
50
50
|
l("button", {
|
|
51
51
|
type: "button",
|
|
52
52
|
class: "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium bg-gradient-to-r from-sky-400 to-blue-400 hover:from-sky-500 hover:to-blue-500 text-white shadow-sm px-4 py-2 h-9 text-xs transition-all duration-300",
|
|
53
|
-
onClick: g[0] || (g[0] = (y) =>
|
|
53
|
+
onClick: g[0] || (g[0] = (y) => p.$emit("save"))
|
|
54
54
|
}, [...g[2] || (g[2] = [
|
|
55
55
|
l("svg", {
|
|
56
56
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -79,14 +79,14 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
79
79
|
}, null, 8, ["modelValue"])
|
|
80
80
|
]));
|
|
81
81
|
}
|
|
82
|
-
}), ta = { class: "flex flex-col flex-1 min-h-0" }, aa = { class: "flex justify-between mb-3 gap-2" }, oa = { class: "text-left" }, na = { class: "font-medium text-gray-900" }, la = { class: "text-xs text-gray-500" },
|
|
82
|
+
}), ta = { class: "flex flex-col flex-1 min-h-0" }, aa = { class: "flex justify-between mb-3 gap-2" }, oa = { class: "text-left" }, na = { class: "font-medium text-gray-900" }, la = { class: "text-xs text-gray-500" }, ra = { class: "flex justify-center gap-2" }, sa = ["checked", "onChange"], ua = { class: "text-sm font-medium text-gray-900" }, ia = /* @__PURE__ */ U({
|
|
83
83
|
__name: "cartocss-data-tab",
|
|
84
84
|
props: {
|
|
85
85
|
modelValue: { default: [] },
|
|
86
86
|
modelModifiers: {}
|
|
87
87
|
},
|
|
88
|
-
emits: /* @__PURE__ */
|
|
89
|
-
setup(
|
|
88
|
+
emits: /* @__PURE__ */ vt(["save"], ["update:modelValue"]),
|
|
89
|
+
setup(L, { emit: s }) {
|
|
90
90
|
const n = [
|
|
91
91
|
{ key: "table", label: "Таблиця", slot: "datasetCell" },
|
|
92
92
|
{
|
|
@@ -103,7 +103,7 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
103
103
|
}
|
|
104
104
|
], k = Se(
|
|
105
105
|
() => import("@opengis/core").then((w) => w.VsModal)
|
|
106
|
-
), _ = Se(() => import("@opengis/form")),
|
|
106
|
+
), _ = Se(() => import("@opengis/form")), p = pt(L, "modelValue"), g = s, y = b(!1), h = b({
|
|
107
107
|
table: "",
|
|
108
108
|
query: "",
|
|
109
109
|
srid: "",
|
|
@@ -113,7 +113,8 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
113
113
|
minzoom: "",
|
|
114
114
|
maxzoom: "",
|
|
115
115
|
proj4text: "",
|
|
116
|
-
active: !0
|
|
116
|
+
active: !0,
|
|
117
|
+
card_html: ""
|
|
117
118
|
}), u = {
|
|
118
119
|
table: { type: "text", label: "Таблиця", validators: ["required"] },
|
|
119
120
|
key: { type: "text", label: "Ключ", validators: ["required"] },
|
|
@@ -124,9 +125,10 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
124
125
|
proj4text: { type: "text", label: "PROJ4" },
|
|
125
126
|
active: { type: "switcher", label: "Активна" },
|
|
126
127
|
minzoom: { type: "number", label: "Min Зум", col: 6 },
|
|
127
|
-
maxzoom: { type: "number", label: "Max Зум", col: 6 }
|
|
128
|
+
maxzoom: { type: "number", label: "Max Зум", col: 6 },
|
|
129
|
+
card_html: { type: "textarea", label: "HTML картки", col: 12 }
|
|
128
130
|
};
|
|
129
|
-
function
|
|
131
|
+
function r() {
|
|
130
132
|
h.value = {
|
|
131
133
|
table: "",
|
|
132
134
|
query: "",
|
|
@@ -137,7 +139,8 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
137
139
|
minzoom: "",
|
|
138
140
|
maxzoom: "",
|
|
139
141
|
proj4text: "",
|
|
140
|
-
active: !0
|
|
142
|
+
active: !0,
|
|
143
|
+
card_html: ""
|
|
141
144
|
}, y.value = !0;
|
|
142
145
|
}
|
|
143
146
|
function m() {
|
|
@@ -154,22 +157,22 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
154
157
|
});
|
|
155
158
|
return;
|
|
156
159
|
}
|
|
157
|
-
|
|
158
|
-
...Array.isArray(
|
|
160
|
+
p.value = [
|
|
161
|
+
...Array.isArray(p.value) ? p.value : [],
|
|
159
162
|
{ ...h.value, table: w, key: C }
|
|
160
163
|
], y.value = !1;
|
|
161
164
|
}
|
|
162
|
-
function
|
|
165
|
+
function v(w, C) {
|
|
163
166
|
var o;
|
|
164
167
|
const i = ((o = C == null ? void 0 : C.target) == null ? void 0 : o.checked) ?? !1;
|
|
165
|
-
w.active = i,
|
|
168
|
+
w.active = i, p.value = Array.isArray(p.value) ? [...p.value] : [];
|
|
166
169
|
}
|
|
167
170
|
return (w, C) => (x(), P("div", ta, [
|
|
168
171
|
l("div", aa, [
|
|
169
172
|
l("button", {
|
|
170
173
|
type: "button",
|
|
171
174
|
class: "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium bg-gradient-to-r from-gray-500 to-gray-400 text-white h-9 px-4 py-2 hover:from-gray-600 hover:to-gray-500",
|
|
172
|
-
onClick:
|
|
175
|
+
onClick: r
|
|
173
176
|
}, " Додати таблицю "),
|
|
174
177
|
l("button", {
|
|
175
178
|
type: "button",
|
|
@@ -178,8 +181,8 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
178
181
|
}, " Зберегти ")
|
|
179
182
|
]),
|
|
180
183
|
S(Yt, {
|
|
181
|
-
modelValue:
|
|
182
|
-
"onUpdate:modelValue": C[1] || (C[1] = (i) =>
|
|
184
|
+
modelValue: p.value,
|
|
185
|
+
"onUpdate:modelValue": C[1] || (C[1] = (i) => p.value = i),
|
|
183
186
|
"columns-scheme": n,
|
|
184
187
|
"form-scheme": u,
|
|
185
188
|
"add-button": !1,
|
|
@@ -192,13 +195,13 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
192
195
|
])
|
|
193
196
|
]),
|
|
194
197
|
activeCell: j(({ row: i }) => [
|
|
195
|
-
l("label",
|
|
198
|
+
l("label", ra, [
|
|
196
199
|
l("input", {
|
|
197
200
|
type: "checkbox",
|
|
198
201
|
class: "h-4 w-4 text-sky-500 border-gray-300 rounded focus:ring-sky-300",
|
|
199
202
|
checked: i.active,
|
|
200
|
-
onChange: (o) =>
|
|
201
|
-
}, null, 40,
|
|
203
|
+
onChange: (o) => v(i, o)
|
|
204
|
+
}, null, 40, sa)
|
|
202
205
|
])
|
|
203
206
|
]),
|
|
204
207
|
zoomCell: j(({ row: i }) => [
|
|
@@ -244,11 +247,11 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
244
247
|
table: {}
|
|
245
248
|
},
|
|
246
249
|
emits: ["save"],
|
|
247
|
-
setup(
|
|
248
|
-
const n =
|
|
250
|
+
setup(L, { emit: s }) {
|
|
251
|
+
const n = L, k = s, _ = b(n.table), p = b(n.card), g = Se(() => import("@opengis/form").then((h) => h.VsInputText));
|
|
249
252
|
function y() {
|
|
250
253
|
k("save", {
|
|
251
|
-
card_html:
|
|
254
|
+
card_html: p.value,
|
|
252
255
|
card_table: _.value
|
|
253
256
|
});
|
|
254
257
|
}
|
|
@@ -281,13 +284,13 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
281
284
|
l("div", null, [
|
|
282
285
|
S(I(g), {
|
|
283
286
|
modelValue: _.value,
|
|
284
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
287
|
+
"onUpdate:modelValue": u[0] || (u[0] = (r) => _.value = r)
|
|
285
288
|
}, null, 8, ["modelValue"])
|
|
286
289
|
]),
|
|
287
290
|
l("div", da, [
|
|
288
291
|
S(He, {
|
|
289
|
-
modelValue:
|
|
290
|
-
"onUpdate:modelValue": u[1] || (u[1] = (
|
|
292
|
+
modelValue: p.value,
|
|
293
|
+
"onUpdate:modelValue": u[1] || (u[1] = (r) => p.value = r),
|
|
291
294
|
language: "html",
|
|
292
295
|
theme: "vs-light",
|
|
293
296
|
class: "h-full w-full rounded-md"
|
|
@@ -305,82 +308,82 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
305
308
|
owner: { type: String, default: "" },
|
|
306
309
|
opacity: { type: Number, default: 1 }
|
|
307
310
|
},
|
|
308
|
-
setup(
|
|
309
|
-
const
|
|
311
|
+
setup(L) {
|
|
312
|
+
const s = L, n = ne(), {
|
|
310
313
|
activateTemporaryLayer: k,
|
|
311
314
|
deactivateTemporaryLayer: _,
|
|
312
|
-
setTemporaryLayerOpacity:
|
|
315
|
+
setTemporaryLayerOpacity: p
|
|
313
316
|
} = Et(n.map), g = B(() => {
|
|
314
317
|
var m;
|
|
315
|
-
const
|
|
316
|
-
return
|
|
318
|
+
const r = `${(m = s == null ? void 0 : s.tileUrl) == null ? void 0 : m.trim()}`;
|
|
319
|
+
return r ? typeof window > "u" || typeof location > "u" || /^https?:\/\//i.test(r) ? r : r.startsWith("//") ? `${window.location.protocol}${r}` : r.startsWith("/") ? `${location.origin}${r}` : `${location.origin}/${r}` : "";
|
|
317
320
|
});
|
|
318
321
|
let y = "", h = "";
|
|
319
322
|
function u() {
|
|
320
|
-
const
|
|
321
|
-
y && (!
|
|
323
|
+
const r = s.active && !!g.value;
|
|
324
|
+
y && (!r || y !== s.layerId) && (_(y, h || void 0), y = "", h = ""), r && (k(
|
|
322
325
|
{
|
|
323
|
-
id:
|
|
324
|
-
title:
|
|
326
|
+
id: s.layerId,
|
|
327
|
+
title: s.title || s.layerId,
|
|
325
328
|
url: g.value,
|
|
326
|
-
opacity:
|
|
329
|
+
opacity: s.opacity
|
|
327
330
|
},
|
|
328
331
|
{},
|
|
329
|
-
|
|
330
|
-
), y =
|
|
332
|
+
s.owner
|
|
333
|
+
), y = s.layerId, h = s.owner || "");
|
|
331
334
|
}
|
|
332
335
|
return q(
|
|
333
|
-
() => [
|
|
336
|
+
() => [s.layerId, g.value, s.active, s.owner],
|
|
334
337
|
u,
|
|
335
338
|
{ immediate: !0 }
|
|
336
339
|
), q(
|
|
337
|
-
() =>
|
|
338
|
-
(
|
|
339
|
-
!y || !
|
|
340
|
+
() => s.opacity,
|
|
341
|
+
(r) => {
|
|
342
|
+
!y || !s.active || p(y, r, h || void 0);
|
|
340
343
|
},
|
|
341
344
|
{ immediate: !0 }
|
|
342
345
|
), yt(() => {
|
|
343
346
|
y && (_(y, h || void 0), y = "", h = "");
|
|
344
|
-
}), (
|
|
347
|
+
}), (r, m) => N("", !0);
|
|
345
348
|
}
|
|
346
|
-
}),
|
|
349
|
+
}), va = /* @__PURE__ */ U({
|
|
347
350
|
__name: "CartocssMapClickListener",
|
|
348
351
|
props: {
|
|
349
352
|
cartocssId: {},
|
|
350
353
|
infoEnabled: { type: [Boolean, null] },
|
|
351
354
|
active: { type: [Boolean, null] }
|
|
352
355
|
},
|
|
353
|
-
setup(
|
|
354
|
-
const
|
|
355
|
-
() => !!
|
|
356
|
-
), { map: _, ready:
|
|
357
|
-
!
|
|
358
|
-
new CustomEvent(zt, { detail:
|
|
356
|
+
setup(L) {
|
|
357
|
+
const s = L, n = B(() => s.cartocssId ?? null), k = B(
|
|
358
|
+
() => !!s.infoEnabled && s.active !== !1
|
|
359
|
+
), { map: _, ready: p } = ne(), g = (v) => {
|
|
360
|
+
!v || typeof window > "u" || window.dispatchEvent(
|
|
361
|
+
new CustomEvent(zt, { detail: v })
|
|
359
362
|
);
|
|
360
|
-
}, y = async (
|
|
361
|
-
const w = await fetch(`/api/map-format?${
|
|
363
|
+
}, y = async (v) => {
|
|
364
|
+
const w = await fetch(`/api/map-format?${v.toString()}`);
|
|
362
365
|
if (!w.ok)
|
|
363
366
|
throw new Error(`API returned ${w.status}`);
|
|
364
367
|
return w.json();
|
|
365
368
|
};
|
|
366
369
|
let h = null, u = null;
|
|
367
|
-
const
|
|
368
|
-
if (!
|
|
369
|
-
if (typeof
|
|
370
|
+
const r = (v) => {
|
|
371
|
+
if (!v) return null;
|
|
372
|
+
if (typeof v == "string")
|
|
370
373
|
try {
|
|
371
|
-
return JSON.parse(
|
|
374
|
+
return JSON.parse(v);
|
|
372
375
|
} catch {
|
|
373
376
|
return null;
|
|
374
377
|
}
|
|
375
|
-
return
|
|
376
|
-
}, m = async (
|
|
378
|
+
return v;
|
|
379
|
+
}, m = async (v, w) => {
|
|
377
380
|
var o;
|
|
378
|
-
const C = n.value ? `external:${n.value},${String(
|
|
381
|
+
const C = n.value ? `external:${n.value},${String(v)}` : null, i = new URLSearchParams({
|
|
379
382
|
layer: n.value ?? "",
|
|
380
|
-
id: String(
|
|
383
|
+
id: String(v)
|
|
381
384
|
});
|
|
382
385
|
try {
|
|
383
|
-
const c = await y(i), R = typeof c.html == "string" ? c.html : null, V =
|
|
386
|
+
const c = await y(i), R = typeof c.html == "string" ? c.html : null, V = r(
|
|
384
387
|
((o = c == null ? void 0 : c.data) == null ? void 0 : o.geom) ?? (c == null ? void 0 : c.geom) ?? null
|
|
385
388
|
);
|
|
386
389
|
(R || V) && g({
|
|
@@ -391,9 +394,9 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
391
394
|
} catch (c) {
|
|
392
395
|
console.warn("CartoCSS map-format (id) error", c);
|
|
393
396
|
}
|
|
394
|
-
}, z = async (
|
|
397
|
+
}, z = async (v) => {
|
|
395
398
|
var o, c, R, V;
|
|
396
|
-
if (!n.value ||
|
|
399
|
+
if (!n.value || s.active === !1) return;
|
|
397
400
|
if (!k.value) {
|
|
398
401
|
D({
|
|
399
402
|
type: "error",
|
|
@@ -402,7 +405,7 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
402
405
|
});
|
|
403
406
|
return;
|
|
404
407
|
}
|
|
405
|
-
const w = (o =
|
|
408
|
+
const w = (o = v == null ? void 0 : v.lngLat) == null ? void 0 : o.lng, C = (c = v == null ? void 0 : v.lngLat) == null ? void 0 : c.lat;
|
|
406
409
|
if (typeof w != "number" || typeof C != "number") return;
|
|
407
410
|
const i = new URLSearchParams({
|
|
408
411
|
layer: n.value,
|
|
@@ -410,7 +413,7 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
410
413
|
lng: w.toFixed(6)
|
|
411
414
|
});
|
|
412
415
|
try {
|
|
413
|
-
const M = await y(i), K =
|
|
416
|
+
const M = await y(i), K = r(
|
|
414
417
|
((R = M == null ? void 0 : M.data) == null ? void 0 : R.geom) ?? (M == null ? void 0 : M.geom) ?? null
|
|
415
418
|
), Q = ((V = M == null ? void 0 : M.data) == null ? void 0 : V.id) ?? (M == null ? void 0 : M.id);
|
|
416
419
|
if (Q != null) {
|
|
@@ -426,41 +429,41 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
426
429
|
console.warn("CartoCSS map-format error", M);
|
|
427
430
|
}
|
|
428
431
|
};
|
|
429
|
-
return
|
|
432
|
+
return p().then(() => {
|
|
430
433
|
u = _.value, u && (u.on("click", z), h = () => u == null ? void 0 : u.off("click", z));
|
|
431
|
-
}),
|
|
434
|
+
}), oe(() => {
|
|
432
435
|
h == null || h(), h = null, u = null;
|
|
433
436
|
}), () => {
|
|
434
437
|
};
|
|
435
438
|
}
|
|
436
|
-
}),
|
|
439
|
+
}), pa = 100, ya = /* @__PURE__ */ U({
|
|
437
440
|
__name: "MapFullscreenButton",
|
|
438
441
|
props: {
|
|
439
442
|
target: {}
|
|
440
443
|
},
|
|
441
|
-
setup(
|
|
442
|
-
const
|
|
444
|
+
setup(L) {
|
|
445
|
+
const s = L, { map: n, ready: k } = ne(), _ = b(!1), p = b(!1);
|
|
443
446
|
function g() {
|
|
444
447
|
var m, z;
|
|
445
|
-
if (
|
|
446
|
-
const
|
|
447
|
-
return
|
|
448
|
+
if (s.target) return s.target;
|
|
449
|
+
const r = (z = (m = n.value) == null ? void 0 : m.getContainer) == null ? void 0 : z.call(m);
|
|
450
|
+
return r ? r.closest(".map-view-root") ?? r : null;
|
|
448
451
|
}
|
|
449
452
|
function y() {
|
|
450
|
-
const
|
|
451
|
-
|
|
453
|
+
const r = g();
|
|
454
|
+
p.value = !!(r && document.fullscreenElement === r);
|
|
452
455
|
}
|
|
453
456
|
function h() {
|
|
454
457
|
window.setTimeout(() => {
|
|
455
|
-
var
|
|
456
|
-
(m = (
|
|
457
|
-
},
|
|
458
|
+
var r, m;
|
|
459
|
+
(m = (r = n.value) == null ? void 0 : r.resize) == null || m.call(r);
|
|
460
|
+
}, pa);
|
|
458
461
|
}
|
|
459
462
|
async function u() {
|
|
460
|
-
const
|
|
461
|
-
if (
|
|
463
|
+
const r = g();
|
|
464
|
+
if (r)
|
|
462
465
|
try {
|
|
463
|
-
document.fullscreenElement ===
|
|
466
|
+
document.fullscreenElement === r ? await document.exitFullscreen() : document.fullscreenElement ? (await document.exitFullscreen(), await r.requestFullscreen()) : await r.requestFullscreen();
|
|
464
467
|
} catch (m) {
|
|
465
468
|
console.error("Fullscreen error:", m);
|
|
466
469
|
} finally {
|
|
@@ -469,17 +472,17 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
469
472
|
}
|
|
470
473
|
return Ee(async () => {
|
|
471
474
|
await (k == null ? void 0 : k()), _.value = !!n.value, y(), document.addEventListener("fullscreenchange", y), document.addEventListener("fullscreenchange", h);
|
|
472
|
-
}),
|
|
475
|
+
}), oe(() => {
|
|
473
476
|
document.removeEventListener("fullscreenchange", y), document.removeEventListener("fullscreenchange", h);
|
|
474
|
-
}), (
|
|
475
|
-
title:
|
|
476
|
-
tooltip:
|
|
477
|
-
active:
|
|
477
|
+
}), (r, m) => (x(), A(pe, {
|
|
478
|
+
title: p.value ? "Вийти з повного екрана" : "Повний екран",
|
|
479
|
+
tooltip: p.value ? "Вийти з повного екрана" : "Повний екран",
|
|
480
|
+
active: p.value,
|
|
478
481
|
disabled: !_.value,
|
|
479
482
|
onClick: u
|
|
480
483
|
}, {
|
|
481
484
|
default: j(() => [
|
|
482
|
-
|
|
485
|
+
p.value ? (x(), A(I(kt), {
|
|
483
486
|
key: 0,
|
|
484
487
|
class: "w-4 h-4"
|
|
485
488
|
})) : (x(), A(I(Ct), {
|
|
@@ -495,10 +498,10 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
495
498
|
props: {
|
|
496
499
|
url: { default: "" }
|
|
497
500
|
},
|
|
498
|
-
setup(
|
|
499
|
-
const
|
|
501
|
+
setup(L) {
|
|
502
|
+
const s = L;
|
|
500
503
|
async function n() {
|
|
501
|
-
const k =
|
|
504
|
+
const k = s.url || (typeof window < "u" ? window.location.href : "");
|
|
502
505
|
if (!k) {
|
|
503
506
|
D({
|
|
504
507
|
type: "warning",
|
|
@@ -521,7 +524,7 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
521
524
|
});
|
|
522
525
|
}
|
|
523
526
|
}
|
|
524
|
-
return (k, _) => (x(), A(
|
|
527
|
+
return (k, _) => (x(), A(pe, {
|
|
525
528
|
title: "Копіювати посилання",
|
|
526
529
|
tooltip: "Копіювати посилання",
|
|
527
530
|
onClick: n
|
|
@@ -549,12 +552,12 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
549
552
|
max: { default: 20 }
|
|
550
553
|
},
|
|
551
554
|
emits: ["update:modelValue"],
|
|
552
|
-
setup(
|
|
553
|
-
const n =
|
|
555
|
+
setup(L, { emit: s }) {
|
|
556
|
+
const n = L, k = s, _ = b(), p = b(n.modelValue), g = b(!1);
|
|
554
557
|
q(
|
|
555
558
|
() => n.modelValue,
|
|
556
559
|
(i) => {
|
|
557
|
-
g.value || (
|
|
560
|
+
g.value || (p.value = i);
|
|
558
561
|
}
|
|
559
562
|
);
|
|
560
563
|
const y = B(() => {
|
|
@@ -566,7 +569,7 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
566
569
|
for (let o = n.min; o <= n.max; o += 5)
|
|
567
570
|
i.add(o);
|
|
568
571
|
return i.add(n.max), i;
|
|
569
|
-
}), u = (i) => h.value.has(i),
|
|
572
|
+
}), u = (i) => h.value.has(i), r = (i) => {
|
|
570
573
|
const o = n.max - n.min;
|
|
571
574
|
return o <= 0 ? 0 : (n.max - i) / o * 100;
|
|
572
575
|
}, m = (i) => {
|
|
@@ -574,20 +577,20 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
574
577
|
}, z = (i) => {
|
|
575
578
|
if (!_.value) return;
|
|
576
579
|
const o = _.value.getBoundingClientRect(), c = (i - o.top) / o.height;
|
|
577
|
-
|
|
580
|
+
p.value = Math.max(
|
|
578
581
|
n.min,
|
|
579
582
|
Math.min(n.max, Math.round(n.max - c * (n.max - n.min)))
|
|
580
583
|
);
|
|
581
|
-
},
|
|
584
|
+
}, v = (i) => {
|
|
582
585
|
z(i.clientY);
|
|
583
586
|
}, w = () => {
|
|
584
|
-
window.removeEventListener("mousemove",
|
|
587
|
+
window.removeEventListener("mousemove", v), window.removeEventListener("mouseup", w), g.value = !1, p.value !== n.modelValue && k("update:modelValue", p.value);
|
|
585
588
|
}, C = (i) => {
|
|
586
|
-
g.value = !0, z(i.clientY), window.addEventListener("mousemove",
|
|
589
|
+
g.value = !0, z(i.clientY), window.addEventListener("mousemove", v), window.addEventListener("mouseup", w);
|
|
587
590
|
};
|
|
588
591
|
return (i, o) => (x(), A(gt, { name: "zoom-panel" }, {
|
|
589
592
|
default: j(() => [
|
|
590
|
-
|
|
593
|
+
L.visible ? (x(), P("div", ha, [
|
|
591
594
|
l("div", ba, [
|
|
592
595
|
o[1] || (o[1] = l("span", { class: "mb-1 text-[9px] font-semibold uppercase tracking-wider text-gray-400" }, " Zoom ", -1)),
|
|
593
596
|
l("div", {
|
|
@@ -601,12 +604,12 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
601
604
|
key: c,
|
|
602
605
|
type: "button",
|
|
603
606
|
class: "absolute right-0 -translate-y-1/2 flex items-center justify-end group",
|
|
604
|
-
style: $e({ top: `${
|
|
607
|
+
style: $e({ top: `${r(c)}%` }),
|
|
605
608
|
title: `Zoom ${c}`,
|
|
606
609
|
onClick: De((R) => m(c), ["stop"])
|
|
607
610
|
}, [
|
|
608
611
|
l("span", {
|
|
609
|
-
class:
|
|
612
|
+
class: ve([
|
|
610
613
|
"block rounded-full",
|
|
611
614
|
u(c) ? "h-px w-2.5 bg-gray-300 group-hover:bg-gray-400" : "h-px w-1.5 bg-gray-200 group-hover:bg-gray-300"
|
|
612
615
|
])
|
|
@@ -615,10 +618,10 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
615
618
|
], 12, xa))), 128)),
|
|
616
619
|
l("div", {
|
|
617
620
|
class: "absolute right-0 -translate-y-1/2 flex items-center",
|
|
618
|
-
style: $e({ top: `${
|
|
621
|
+
style: $e({ top: `${r(p.value)}%` })
|
|
619
622
|
}, [
|
|
620
623
|
l("div", {
|
|
621
|
-
class:
|
|
624
|
+
class: ve(["h-[4px] w-4 rounded-full bg-blue-600/80 shadow-sm transition-all", g.value ? "bg-blue-300 transform duration-200" : ""])
|
|
622
625
|
}, null, 2)
|
|
623
626
|
], 4)
|
|
624
627
|
], 544)
|
|
@@ -630,34 +633,34 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
630
633
|
}
|
|
631
634
|
}), ka = /* @__PURE__ */ Ye(wa, [["__scopeId", "data-v-ca77aba8"]]), Ca = { class: "text-[0.7rem] font-bold tabular-nums leading-none text-gray-600" }, Ce = 5, Me = 20, Ma = 13, Sa = 0.01, $a = 200, La = /* @__PURE__ */ U({
|
|
632
635
|
__name: "MapZoomLevelButton",
|
|
633
|
-
setup(
|
|
634
|
-
const { map:
|
|
635
|
-
function
|
|
636
|
+
setup(L) {
|
|
637
|
+
const { map: s, ready: n } = ne(), k = b(!1), _ = b(!1), p = b(Ma), g = b(!1), y = b(Ce), h = b(Me), u = B(() => String(p.value));
|
|
638
|
+
function r(o) {
|
|
636
639
|
return Math.round(Math.min(h.value, Math.max(y.value, o)));
|
|
637
640
|
}
|
|
638
641
|
function m() {
|
|
639
642
|
var V, M;
|
|
640
|
-
const o =
|
|
643
|
+
const o = s.value;
|
|
641
644
|
if (!o) return;
|
|
642
645
|
const c = (V = o.getMinZoom) == null ? void 0 : V.call(o), R = (M = o.getMaxZoom) == null ? void 0 : M.call(o);
|
|
643
646
|
Number.isFinite(c) && (y.value = Math.max(Ce, Math.floor(Number(c)))), Number.isFinite(R) && (h.value = Math.min(Me, Math.ceil(Number(R)))), y.value > h.value && (y.value = Ce, h.value = Me);
|
|
644
647
|
}
|
|
645
648
|
function z() {
|
|
646
649
|
var V;
|
|
647
|
-
const o =
|
|
650
|
+
const o = s.value;
|
|
648
651
|
if (!o || g.value) return;
|
|
649
652
|
const c = (V = o.getZoom) == null ? void 0 : V.call(o);
|
|
650
653
|
if (c == null) return;
|
|
651
|
-
const R =
|
|
652
|
-
|
|
654
|
+
const R = r(c);
|
|
655
|
+
p.value !== R && (p.value = R);
|
|
653
656
|
}
|
|
654
|
-
function
|
|
657
|
+
function v(o) {
|
|
655
658
|
var K, Q;
|
|
656
|
-
const c =
|
|
659
|
+
const c = s.value;
|
|
657
660
|
if (!(c != null && c.easeTo)) return;
|
|
658
661
|
const R = (K = c.getCenter) == null ? void 0 : K.call(c);
|
|
659
662
|
if (!R) return;
|
|
660
|
-
const V =
|
|
663
|
+
const V = r(o), M = (Q = c.getZoom) == null ? void 0 : Q.call(c);
|
|
661
664
|
M != null && Math.abs(M - V) < Sa || (g.value = !0, c.easeTo({
|
|
662
665
|
center: [R.lng, R.lat],
|
|
663
666
|
zoom: V,
|
|
@@ -672,18 +675,18 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
672
675
|
_.value = !_.value, _.value && (m(), z());
|
|
673
676
|
}
|
|
674
677
|
function i(o) {
|
|
675
|
-
|
|
678
|
+
p.value = o, v(o);
|
|
676
679
|
}
|
|
677
680
|
return Ee(async () => {
|
|
678
681
|
var c;
|
|
679
682
|
await (n == null ? void 0 : n());
|
|
680
|
-
const o =
|
|
683
|
+
const o = s.value;
|
|
681
684
|
k.value = !!o, m(), z(), (c = o == null ? void 0 : o.on) == null || c.call(o, "zoomend", w);
|
|
682
|
-
}),
|
|
685
|
+
}), oe(() => {
|
|
683
686
|
var o, c;
|
|
684
|
-
(c = (o =
|
|
687
|
+
(c = (o = s.value) == null ? void 0 : o.off) == null || c.call(o, "zoomend", w);
|
|
685
688
|
}), (o, c) => (x(), P(me, null, [
|
|
686
|
-
S(
|
|
689
|
+
S(pe, {
|
|
687
690
|
title: _.value ? "Закрити вибір зуму" : "Вибрати рівень зуму",
|
|
688
691
|
tooltip: "Рівень зуму",
|
|
689
692
|
active: _.value,
|
|
@@ -698,7 +701,7 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
698
701
|
}, 8, ["title", "active", "disabled"]),
|
|
699
702
|
S(ka, {
|
|
700
703
|
visible: _.value,
|
|
701
|
-
"model-value":
|
|
704
|
+
"model-value": p.value,
|
|
702
705
|
min: y.value,
|
|
703
706
|
max: h.value,
|
|
704
707
|
"onUpdate:modelValue": i
|
|
@@ -711,13 +714,13 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
711
714
|
active: { type: Boolean }
|
|
712
715
|
},
|
|
713
716
|
emits: ["click"],
|
|
714
|
-
setup(
|
|
715
|
-
return (
|
|
716
|
-
title:
|
|
717
|
+
setup(L) {
|
|
718
|
+
return (s, n) => (x(), A(pe, {
|
|
719
|
+
title: L.active ? "Вимкнути лінійку" : "Увімкнути лінійку",
|
|
717
720
|
tooltip: "Вимірювання",
|
|
718
|
-
active:
|
|
721
|
+
active: L.active,
|
|
719
722
|
"aria-label": "Вимірювання",
|
|
720
|
-
onClick: n[0] || (n[0] = (k) =>
|
|
723
|
+
onClick: n[0] || (n[0] = (k) => s.$emit("click", k))
|
|
721
724
|
}, {
|
|
722
725
|
default: j(() => [
|
|
723
726
|
S(I(St), { class: "w-4 h-4" })
|
|
@@ -731,21 +734,21 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
731
734
|
active: { type: Boolean }
|
|
732
735
|
},
|
|
733
736
|
emits: ["map-click"],
|
|
734
|
-
setup(
|
|
735
|
-
const n =
|
|
737
|
+
setup(L, { emit: s }) {
|
|
738
|
+
const n = L, k = s, { map: _, ready: p } = ne();
|
|
736
739
|
let g = null;
|
|
737
740
|
function y(u) {
|
|
738
741
|
if (!n.active) return;
|
|
739
|
-
const
|
|
740
|
-
typeof (
|
|
742
|
+
const r = u == null ? void 0 : u.lngLat;
|
|
743
|
+
typeof (r == null ? void 0 : r.lat) != "number" || typeof (r == null ? void 0 : r.lng) != "number" || k("map-click", { lat: r.lat, lng: r.lng });
|
|
741
744
|
}
|
|
742
745
|
async function h() {
|
|
743
746
|
if (g == null || g(), g = null, !n.active) return;
|
|
744
|
-
await (
|
|
747
|
+
await (p == null ? void 0 : p());
|
|
745
748
|
const u = _.value;
|
|
746
749
|
u != null && u.on && (u.on("click", y), g = () => {
|
|
747
|
-
var
|
|
748
|
-
return (
|
|
750
|
+
var r;
|
|
751
|
+
return (r = u.off) == null ? void 0 : r.call(u, "click", y);
|
|
749
752
|
});
|
|
750
753
|
}
|
|
751
754
|
return q(
|
|
@@ -754,9 +757,9 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
754
757
|
h();
|
|
755
758
|
},
|
|
756
759
|
{ immediate: !0 }
|
|
757
|
-
),
|
|
760
|
+
), oe(() => {
|
|
758
761
|
g == null || g(), g = null;
|
|
759
|
-
}), (u,
|
|
762
|
+
}), (u, r) => null;
|
|
760
763
|
}
|
|
761
764
|
}), za = { class: "flex h-full bg-gradient-to-br from-slate-50 to-white" }, Ra = { class: "flex-1 relative overflow-hidden" }, Ba = { class: "absolute top-0 left-0 w-full z-20" }, Pa = { class: "px-4 sm:px-6 py-4 border-b border-gray-200 bg-white shadow-sm" }, Ta = { class: "flex items-start justify-between gap-4" }, Aa = { class: "flex-1 min-w-0" }, Fa = { class: "flex items-center text-sm text-gray-500 mb-3" }, Na = { class: "text-gray-900 font-medium truncate max-w-xs" }, ja = { class: "flex items-center justify-between gap-4" }, Oa = { class: "flex-1 min-w-0" }, Da = { class: "flex items-center gap-3 mb-1" }, Ua = { class: "text-base font-semibold text-gray-900 truncate" }, qa = {
|
|
762
765
|
key: 0,
|
|
@@ -773,20 +776,20 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
773
776
|
}, ao = ["aria-selected", "onClick"], oo = { class: "leading-none" }, no = { class: "flex flex-col flex-1 overflow-y-hidden p-3" }, lo = {
|
|
774
777
|
key: 0,
|
|
775
778
|
class: "flex-1 flex items-center justify-center text-sm text-gray-500"
|
|
776
|
-
},
|
|
779
|
+
}, ro = "cartocss-demo-001", so = "OpenGIS", Ie = 2, fe = 5, uo = 5, _o = /* @__PURE__ */ U({
|
|
777
780
|
__name: "cartocss",
|
|
778
|
-
setup(
|
|
779
|
-
const
|
|
781
|
+
setup(L) {
|
|
782
|
+
const s = _t(), n = wt(), k = b(null), _ = B(() => {
|
|
780
783
|
var t;
|
|
781
784
|
const e = (t = n.matched[n.matched.length - 1]) == null ? void 0 : t.path;
|
|
782
785
|
return (typeof e == "string" && e ? e : n.path).replace(/\/:id\??$/, "") || "/";
|
|
783
|
-
}),
|
|
786
|
+
}), p = B(() => {
|
|
784
787
|
var a;
|
|
785
788
|
const e = (a = n.meta) == null ? void 0 : a.title;
|
|
786
789
|
return typeof e == "string" && e.trim() ? e : "CartoCSS";
|
|
787
790
|
});
|
|
788
791
|
function g() {
|
|
789
|
-
|
|
792
|
+
s.push(_.value);
|
|
790
793
|
}
|
|
791
794
|
const y = [
|
|
792
795
|
{ key: "css", label: "CSS", icon: Ft },
|
|
@@ -795,15 +798,15 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
795
798
|
{ key: "card", label: "Картка", icon: Nt }
|
|
796
799
|
], h = y.map((e) => e.key), u = b(
|
|
797
800
|
h.includes(n.query.tab) ? n.query.tab : "css"
|
|
798
|
-
),
|
|
801
|
+
), r = b(!0), m = b(null), z = B(
|
|
799
802
|
() => {
|
|
800
803
|
var e;
|
|
801
804
|
return (e = m.value) != null && e.source_path ? y.filter((a) => a.key === "card" || a.key === "metadata") : y;
|
|
802
805
|
}
|
|
803
|
-
),
|
|
804
|
-
() => n.params.id ||
|
|
806
|
+
), v = B(
|
|
807
|
+
() => n.params.id || ro
|
|
805
808
|
), w = b({
|
|
806
|
-
id:
|
|
809
|
+
id: v.value,
|
|
807
810
|
name: "",
|
|
808
811
|
description: ""
|
|
809
812
|
});
|
|
@@ -827,8 +830,8 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
827
830
|
return (e = k.value) == null ? void 0 : e.ctx;
|
|
828
831
|
}
|
|
829
832
|
function M() {
|
|
830
|
-
var
|
|
831
|
-
const e = (T = (
|
|
833
|
+
var $, T, J, Z;
|
|
834
|
+
const e = (T = ($ = V()) == null ? void 0 : $.map) == null ? void 0 : T.value;
|
|
832
835
|
if (!e) return;
|
|
833
836
|
const a = o(n.query.z), t = o(n.query.x), d = o(n.query.y);
|
|
834
837
|
if (a == null || t == null || d == null) return;
|
|
@@ -836,11 +839,11 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
836
839
|
(!f || R(f.lng, t, fe) || R(f.lat, d, fe) || R(E ?? 0, a, Ie)) && (i.value = !0, e.jumpTo({ center: [t, d], zoom: a }), i.value = !1);
|
|
837
840
|
}
|
|
838
841
|
function K() {
|
|
839
|
-
var f, E, F,
|
|
842
|
+
var f, E, F, $;
|
|
840
843
|
if (i.value) return;
|
|
841
844
|
const e = (E = (f = V()) == null ? void 0 : f.map) == null ? void 0 : E.value;
|
|
842
845
|
if (!e) return;
|
|
843
|
-
const a = (F = e.getCenter) == null ? void 0 : F.call(e), t = (
|
|
846
|
+
const a = (F = e.getCenter) == null ? void 0 : F.call(e), t = ($ = e.getZoom) == null ? void 0 : $.call(e);
|
|
844
847
|
if (!a || t == null) return;
|
|
845
848
|
const d = {
|
|
846
849
|
...n.query,
|
|
@@ -848,12 +851,12 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
848
851
|
x: c(a.lng, fe),
|
|
849
852
|
y: c(a.lat, fe)
|
|
850
853
|
};
|
|
851
|
-
n.query.z === d.z && n.query.x === d.x && n.query.y === d.y ||
|
|
854
|
+
n.query.z === d.z && n.query.x === d.x && n.query.y === d.y || s.replace({ query: d });
|
|
852
855
|
}
|
|
853
856
|
function Q(e) {
|
|
854
|
-
typeof document > "u" || (document.title = e ? `${e} — CartoCSS` :
|
|
857
|
+
typeof document > "u" || (document.title = e ? `${e} — CartoCSS` : so);
|
|
855
858
|
}
|
|
856
|
-
const
|
|
859
|
+
const le = b(""), ee = b([]), ye = b(!1), re = b(!1), ge = b(""), he = b(0), W = b(!0), se = b(1), Y = b(!1), te = b(null), H = b(!1), be = b(null), ue = b(
|
|
857
860
|
[]
|
|
858
861
|
), xe = b(!1), Ve = b("general");
|
|
859
862
|
function Je(e) {
|
|
@@ -874,12 +877,12 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
874
877
|
}
|
|
875
878
|
H.value = !0;
|
|
876
879
|
}
|
|
877
|
-
const Xe = B(() => `cartocss-layer-${
|
|
878
|
-
() => `${Math.round(
|
|
880
|
+
const Xe = B(() => `cartocss-layer-${v.value}`), Ge = B(
|
|
881
|
+
() => `${Math.round(se.value * 100)}%`
|
|
879
882
|
), et = B(
|
|
880
|
-
() => `cartocss-extent-${
|
|
883
|
+
() => `cartocss-extent-${v.value}`
|
|
881
884
|
), tt = B(
|
|
882
|
-
() => `cartocss-extent-draft-${
|
|
885
|
+
() => `cartocss-extent-draft-${v.value}`
|
|
883
886
|
), Re = B(() => {
|
|
884
887
|
var f;
|
|
885
888
|
const e = (f = ge.value) == null ? void 0 : f.trim();
|
|
@@ -916,7 +919,7 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
916
919
|
const e = (a = m.value) == null ? void 0 : a.group_id;
|
|
917
920
|
return e ? String(e).toUpperCase() : "";
|
|
918
921
|
});
|
|
919
|
-
let X = null,
|
|
922
|
+
let X = null, ae = !1, G = null;
|
|
920
923
|
function ie(e) {
|
|
921
924
|
return Number(e.toFixed(uo));
|
|
922
925
|
}
|
|
@@ -950,10 +953,10 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
950
953
|
t != null && t.style && (t.style.cursor = e);
|
|
951
954
|
}
|
|
952
955
|
async function nt(e, a) {
|
|
953
|
-
if (!(!
|
|
954
|
-
|
|
956
|
+
if (!(!v.value || !m.value)) {
|
|
957
|
+
re.value = !0;
|
|
955
958
|
try {
|
|
956
|
-
const t = ot(e), d = await fetch(`/api/gis-css/${
|
|
959
|
+
const t = ot(e), d = await fetch(`/api/gis-css/${v.value}`, {
|
|
957
960
|
method: "POST",
|
|
958
961
|
headers: { "Content-Type": "application/json" },
|
|
959
962
|
body: JSON.stringify({ geom: t })
|
|
@@ -964,7 +967,7 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
964
967
|
type: "success",
|
|
965
968
|
title: "Bounds збережено",
|
|
966
969
|
message: "Нові межі успішно збережено."
|
|
967
|
-
}), await ce(
|
|
970
|
+
}), await ce(v.value, { bustCache: !0 });
|
|
968
971
|
} catch (t) {
|
|
969
972
|
console.error("Failed to save CartoCSS bounds", t), m.value && (m.value = {
|
|
970
973
|
...m.value,
|
|
@@ -975,7 +978,7 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
975
978
|
message: "Не вдалося зберегти Bounds"
|
|
976
979
|
});
|
|
977
980
|
} finally {
|
|
978
|
-
|
|
981
|
+
re.value = !1;
|
|
979
982
|
}
|
|
980
983
|
}
|
|
981
984
|
}
|
|
@@ -989,7 +992,7 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
989
992
|
bounds: [...e]
|
|
990
993
|
}, nt(e, E);
|
|
991
994
|
}
|
|
992
|
-
X = null,
|
|
995
|
+
X = null, ae = !1, te.value = null, Y.value = !1, we("");
|
|
993
996
|
}
|
|
994
997
|
function ke() {
|
|
995
998
|
Ne(null);
|
|
@@ -998,24 +1001,24 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
998
1001
|
var E, F;
|
|
999
1002
|
const e = (F = (E = V()) == null ? void 0 : E.map) == null ? void 0 : F.value;
|
|
1000
1003
|
if (!e) return;
|
|
1001
|
-
const a = (
|
|
1004
|
+
const a = ($) => {
|
|
1002
1005
|
var J, Z, de;
|
|
1003
|
-
if (!Y.value || ((J =
|
|
1006
|
+
if (!Y.value || ((J = $ == null ? void 0 : $.originalEvent) == null ? void 0 : J.button) != null && $.originalEvent.button !== 0)
|
|
1004
1007
|
return;
|
|
1005
|
-
const T =
|
|
1006
|
-
T && (X = [T.lng, T.lat],
|
|
1007
|
-
}, t = (
|
|
1008
|
-
if (!Y.value || !
|
|
1008
|
+
const T = $ == null ? void 0 : $.lngLat;
|
|
1009
|
+
T && (X = [T.lng, T.lat], ae = !0, te.value = [T.lng, T.lat, T.lng, T.lat], (de = (Z = e.dragPan) == null ? void 0 : Z.disable) == null || de.call(Z));
|
|
1010
|
+
}, t = ($) => {
|
|
1011
|
+
if (!Y.value || !ae || !X)
|
|
1009
1012
|
return;
|
|
1010
|
-
const T =
|
|
1011
|
-
T && (
|
|
1013
|
+
const T = $ == null ? void 0 : $.lngLat;
|
|
1014
|
+
T && (te.value = Fe(X, [
|
|
1012
1015
|
T.lng,
|
|
1013
1016
|
T.lat
|
|
1014
1017
|
]));
|
|
1015
|
-
}, d = (
|
|
1016
|
-
if (!Y.value || !
|
|
1018
|
+
}, d = ($) => {
|
|
1019
|
+
if (!Y.value || !ae || !X)
|
|
1017
1020
|
return;
|
|
1018
|
-
const T =
|
|
1021
|
+
const T = $ == null ? void 0 : $.lngLat;
|
|
1019
1022
|
if (!T) {
|
|
1020
1023
|
ke();
|
|
1021
1024
|
return;
|
|
@@ -1033,24 +1036,24 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
1033
1036
|
return;
|
|
1034
1037
|
}
|
|
1035
1038
|
Ne(J);
|
|
1036
|
-
}, f = (
|
|
1037
|
-
Y.value &&
|
|
1039
|
+
}, f = ($) => {
|
|
1040
|
+
Y.value && $.key === "Escape" && ($.preventDefault(), ke());
|
|
1038
1041
|
};
|
|
1039
1042
|
e.on("mousedown", a), e.on("mousemove", t), e.on("mouseup", d), window.addEventListener("keydown", f), G = () => {
|
|
1040
1043
|
e.off("mousedown", a), e.off("mousemove", t), e.off("mouseup", d), window.removeEventListener("keydown", f);
|
|
1041
1044
|
};
|
|
1042
1045
|
}
|
|
1043
|
-
async function
|
|
1046
|
+
async function rt() {
|
|
1044
1047
|
var t;
|
|
1045
1048
|
const e = V();
|
|
1046
|
-
!(e != null && e.ready) || (await e.ready(), !((t = e.map) == null ? void 0 : t.value)) || (G || lt(), Y.value = !0,
|
|
1049
|
+
!(e != null && e.ready) || (await e.ready(), !((t = e.map) == null ? void 0 : t.value)) || (G || lt(), Y.value = !0, ae = !1, X = null, te.value = null, we("crosshair"), D({
|
|
1047
1050
|
type: "info",
|
|
1048
1051
|
title: "Редагування Bounds",
|
|
1049
1052
|
message: "Протягніть прямокутник на карті, щоб задати нові межі."
|
|
1050
1053
|
}));
|
|
1051
1054
|
}
|
|
1052
1055
|
q(
|
|
1053
|
-
|
|
1056
|
+
v,
|
|
1054
1057
|
(e) => {
|
|
1055
1058
|
e && ce(e);
|
|
1056
1059
|
},
|
|
@@ -1063,7 +1066,7 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
1063
1066
|
(e) => Q(e),
|
|
1064
1067
|
{ immediate: !0 }
|
|
1065
1068
|
);
|
|
1066
|
-
async function
|
|
1069
|
+
async function st() {
|
|
1067
1070
|
var d;
|
|
1068
1071
|
const e = V();
|
|
1069
1072
|
if (!(e != null && e.ready)) return;
|
|
@@ -1081,8 +1084,8 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
1081
1084
|
M();
|
|
1082
1085
|
}
|
|
1083
1086
|
), Ee(() => {
|
|
1084
|
-
|
|
1085
|
-
}),
|
|
1087
|
+
st();
|
|
1088
|
+
}), oe(() => {
|
|
1086
1089
|
C == null || C(), C = null, G == null || G(), G = null, we("");
|
|
1087
1090
|
}), q(
|
|
1088
1091
|
() => n.query.tab,
|
|
@@ -1096,7 +1099,7 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
1096
1099
|
},
|
|
1097
1100
|
{ immediate: !0 }
|
|
1098
1101
|
), q(u, (e) => {
|
|
1099
|
-
n.query.tab !== e && z.value.some((a) => a.key === e) &&
|
|
1102
|
+
n.query.tab !== e && z.value.some((a) => a.key === e) && s.replace({ query: { ...n.query, tab: e } });
|
|
1100
1103
|
}), q(
|
|
1101
1104
|
() => m.value,
|
|
1102
1105
|
(e) => {
|
|
@@ -1106,19 +1109,19 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
1106
1109
|
{ immediate: !0 }
|
|
1107
1110
|
);
|
|
1108
1111
|
function je() {
|
|
1109
|
-
|
|
1112
|
+
v.value && ce(v.value, { bustCache: !0 });
|
|
1110
1113
|
}
|
|
1111
1114
|
async function ut(e, a) {
|
|
1112
|
-
if (
|
|
1113
|
-
|
|
1115
|
+
if (v.value) {
|
|
1116
|
+
re.value = !0;
|
|
1114
1117
|
try {
|
|
1115
|
-
const t = await fetch(`/api/gis-css/${
|
|
1118
|
+
const t = await fetch(`/api/gis-css/${v.value}`, {
|
|
1116
1119
|
method: "POST",
|
|
1117
1120
|
headers: { "Content-Type": "application/json" },
|
|
1118
1121
|
body: JSON.stringify(e)
|
|
1119
1122
|
});
|
|
1120
1123
|
if (!t.ok) throw new Error(`Failed to save cartocss: ${t.status}`);
|
|
1121
|
-
D({ type: "success", title: "Збережено", message: a }), await ce(
|
|
1124
|
+
D({ type: "success", title: "Збережено", message: a }), await ce(v.value, { bustCache: !0 });
|
|
1122
1125
|
} catch (t) {
|
|
1123
1126
|
console.error("Failed to save CartoCSS", t), D({
|
|
1124
1127
|
type: "error",
|
|
@@ -1126,7 +1129,7 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
1126
1129
|
message: "Не вдалося зберегти CartoCSS"
|
|
1127
1130
|
});
|
|
1128
1131
|
} finally {
|
|
1129
|
-
|
|
1132
|
+
re.value = !1;
|
|
1130
1133
|
}
|
|
1131
1134
|
}
|
|
1132
1135
|
}
|
|
@@ -1152,7 +1155,8 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
1152
1155
|
minzoom: typeof (t == null ? void 0 : t.zoom) > "u" ? "" : String(t.zoom),
|
|
1153
1156
|
maxzoom: typeof (t == null ? void 0 : t.maxzoom) > "u" ? "" : String(t.maxzoom),
|
|
1154
1157
|
columns: (t == null ? void 0 : t.columns) || "",
|
|
1155
|
-
proj4text: (t == null ? void 0 : t.proj4text) || ""
|
|
1158
|
+
proj4text: (t == null ? void 0 : t.proj4text) || "",
|
|
1159
|
+
card_html: (t == null ? void 0 : t.card_html) || ""
|
|
1156
1160
|
})) : [];
|
|
1157
1161
|
}
|
|
1158
1162
|
async function ce(e, a) {
|
|
@@ -1165,9 +1169,9 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
1165
1169
|
id: f.cartocss_key || e,
|
|
1166
1170
|
name: f.name || w.value.name,
|
|
1167
1171
|
description: f.description || w.value.description
|
|
1168
|
-
},
|
|
1172
|
+
}, le.value = typeof f.style == "string" ? f.style : "";
|
|
1169
1173
|
const E = it(f.config ?? []);
|
|
1170
|
-
|
|
1174
|
+
ee.value = ct(E), m.value.info = !!ee.value.find(($) => $.card_html);
|
|
1171
1175
|
const F = typeof f.url == "string" ? f.url : "";
|
|
1172
1176
|
ge.value = F, W.value = !!(F && f.enabled !== !1), he.value = a != null && a.bustCache ? Date.now() : 0;
|
|
1173
1177
|
} catch (t) {
|
|
@@ -1179,14 +1183,15 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
1179
1183
|
async function Oe() {
|
|
1180
1184
|
await ut(
|
|
1181
1185
|
{
|
|
1182
|
-
style:
|
|
1183
|
-
config:
|
|
1186
|
+
style: le.value || "",
|
|
1187
|
+
config: ee.value
|
|
1184
1188
|
},
|
|
1185
1189
|
"CartoCSS оновлено"
|
|
1186
1190
|
);
|
|
1187
1191
|
}
|
|
1188
1192
|
async function dt(e) {
|
|
1189
|
-
|
|
1193
|
+
e.card_html === "" && (e.card_html = null);
|
|
1194
|
+
const a = await fetch(`/api/gis-css/${v.value}`, {
|
|
1190
1195
|
method: "POST",
|
|
1191
1196
|
headers: { "Content-Type": "application/json" },
|
|
1192
1197
|
body: JSON.stringify(e)
|
|
@@ -1209,7 +1214,7 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
1209
1214
|
type: "button",
|
|
1210
1215
|
class: "hover:text-gray-700 cursor-pointer transition-colors",
|
|
1211
1216
|
onClick: g
|
|
1212
|
-
}, O(
|
|
1217
|
+
}, O(p.value), 1),
|
|
1213
1218
|
a[7] || (a[7] = l("svg", {
|
|
1214
1219
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1215
1220
|
width: "24",
|
|
@@ -1244,7 +1249,7 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
1244
1249
|
]),
|
|
1245
1250
|
S(jt, {
|
|
1246
1251
|
class: "flex-shrink-0",
|
|
1247
|
-
"entity-id":
|
|
1252
|
+
"entity-id": v.value,
|
|
1248
1253
|
"entity-info": w.value,
|
|
1249
1254
|
"form-endpoint": (t) => `/api/form/gis.cartocss.table/${t}`,
|
|
1250
1255
|
"save-endpoint": (t) => `/api/gis-css/${t}`,
|
|
@@ -1274,13 +1279,13 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
1274
1279
|
min: "0",
|
|
1275
1280
|
max: "1",
|
|
1276
1281
|
step: "0.01",
|
|
1277
|
-
"onUpdate:modelValue": a[0] || (a[0] = (f) =>
|
|
1282
|
+
"onUpdate:modelValue": a[0] || (a[0] = (f) => se.value = f),
|
|
1278
1283
|
class: "flex-1 h-1 accent-blue-600",
|
|
1279
1284
|
style: { "accent-color": "rgb(30, 78, 216)" }
|
|
1280
1285
|
}, null, 512), [
|
|
1281
1286
|
[
|
|
1282
1287
|
ht,
|
|
1283
|
-
|
|
1288
|
+
se.value,
|
|
1284
1289
|
void 0,
|
|
1285
1290
|
{ number: !0 }
|
|
1286
1291
|
]
|
|
@@ -1359,27 +1364,27 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
1359
1364
|
"layer-id": Xe.value,
|
|
1360
1365
|
"tile-url": Re.value,
|
|
1361
1366
|
active: W.value,
|
|
1362
|
-
opacity:
|
|
1367
|
+
opacity: se.value,
|
|
1363
1368
|
title: w.value.name,
|
|
1364
|
-
owner:
|
|
1369
|
+
owner: v.value
|
|
1365
1370
|
}, null, 8, ["layer-id", "tile-url", "active", "opacity", "title", "owner"])) : N("", !0),
|
|
1366
1371
|
S(Ze, {
|
|
1367
1372
|
extent: at.value,
|
|
1368
1373
|
"layer-id": et.value
|
|
1369
1374
|
}, null, 8, ["extent", "layer-id"]),
|
|
1370
1375
|
S(Ze, {
|
|
1371
|
-
extent:
|
|
1376
|
+
extent: te.value,
|
|
1372
1377
|
"layer-id": tt.value,
|
|
1373
1378
|
"line-color": "#0ea5e9",
|
|
1374
1379
|
"line-width": 3
|
|
1375
1380
|
}, null, 8, ["extent", "layer-id"]),
|
|
1376
|
-
S(
|
|
1377
|
-
"cartocss-id":
|
|
1381
|
+
S(va, {
|
|
1382
|
+
"cartocss-id": v.value,
|
|
1378
1383
|
bounds: ((t = m.value) == null ? void 0 : t.bounds) ?? null,
|
|
1379
1384
|
active: W.value && !Y.value && !H.value,
|
|
1380
1385
|
"info-enabled": (d = m.value) == null ? void 0 : d.info
|
|
1381
1386
|
}, null, 8, ["cartocss-id", "bounds", "active", "info-enabled"]),
|
|
1382
|
-
S(At, { "map-id":
|
|
1387
|
+
S(At, { "map-id": v.value }, null, 8, ["map-id"])
|
|
1383
1388
|
];
|
|
1384
1389
|
}),
|
|
1385
1390
|
_: 1
|
|
@@ -1388,13 +1393,13 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
1388
1393
|
]),
|
|
1389
1394
|
m.value ? (x(), A(Zt, {
|
|
1390
1395
|
key: 0,
|
|
1391
|
-
open:
|
|
1392
|
-
onToggle: a[4] || (a[4] = (t) =>
|
|
1396
|
+
open: r.value,
|
|
1397
|
+
onToggle: a[4] || (a[4] = (t) => r.value = !r.value)
|
|
1393
1398
|
}, null, 8, ["open"])) : N("", !0)
|
|
1394
1399
|
]),
|
|
1395
1400
|
m.value ? (x(), P("div", {
|
|
1396
1401
|
key: 0,
|
|
1397
|
-
class:
|
|
1402
|
+
class: ve(["bg-white border-l border-gray-100 flex flex-col overflow-hidden shadow-lg flex-shrink-0 transition-[width] duration-100 ease-in-out", r.value ? "w-[650px]" : "w-0"])
|
|
1398
1403
|
}, [
|
|
1399
1404
|
l("div", eo, [
|
|
1400
1405
|
z.value.length > 1 ? (x(), P("div", to, [
|
|
@@ -1409,7 +1414,7 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
1409
1414
|
type: "button",
|
|
1410
1415
|
role: "tab",
|
|
1411
1416
|
"aria-selected": u.value === t.key,
|
|
1412
|
-
class:
|
|
1417
|
+
class: ve([
|
|
1413
1418
|
"whitespace-nowrap flex flex-col items-center justify-center gap-0.5 py-1 px-1 text-[9px] font-medium transition-all duration-300 hover:bg-white/70 rounded-lg group",
|
|
1414
1419
|
u.value === t.key ? "bg-white shadow-sm text-gray-700" : ""
|
|
1415
1420
|
]),
|
|
@@ -1424,14 +1429,14 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
1424
1429
|
ye.value ? (x(), P("div", lo, " Завантаження стилю… ")) : (x(), P(me, { key: 1 }, [
|
|
1425
1430
|
u.value === "css" ? (x(), A(ea, {
|
|
1426
1431
|
key: 0,
|
|
1427
|
-
modelValue:
|
|
1428
|
-
"onUpdate:modelValue": a[5] || (a[5] = (t) =>
|
|
1432
|
+
modelValue: le.value,
|
|
1433
|
+
"onUpdate:modelValue": a[5] || (a[5] = (t) => le.value = t),
|
|
1429
1434
|
class: "flex-1 min-h-0",
|
|
1430
1435
|
onSave: Oe
|
|
1431
1436
|
}, null, 8, ["modelValue"])) : u.value === "data" ? (x(), A(ia, {
|
|
1432
1437
|
key: 1,
|
|
1433
|
-
modelValue:
|
|
1434
|
-
"onUpdate:modelValue": a[6] || (a[6] = (t) =>
|
|
1438
|
+
modelValue: ee.value,
|
|
1439
|
+
"onUpdate:modelValue": a[6] || (a[6] = (t) => ee.value = t),
|
|
1435
1440
|
class: "flex-1 min-h-0 flex flex-col",
|
|
1436
1441
|
onSave: Oe
|
|
1437
1442
|
}, null, 8, ["modelValue"])) : u.value === "card" ? (x(), A(fa, {
|
|
@@ -1443,10 +1448,10 @@ const Wt = /* @__PURE__ */ Ye(Ht, [["render", Kt]]), Xt = { class: "flex flex-co
|
|
|
1443
1448
|
}, null, 8, ["card", "table"])) : u.value === "metadata" ? (x(), A(It, {
|
|
1444
1449
|
key: 3,
|
|
1445
1450
|
data: m.value,
|
|
1446
|
-
"entity-id":
|
|
1451
|
+
"entity-id": v.value,
|
|
1447
1452
|
"entity-type": "css",
|
|
1448
1453
|
onSaved: je,
|
|
1449
|
-
onEditCssBounds:
|
|
1454
|
+
onEditCssBounds: rt
|
|
1450
1455
|
}, null, 8, ["data", "entity-id"])) : N("", !0)
|
|
1451
1456
|
], 64))
|
|
1452
1457
|
])
|