@opengis/gis 0.1.80 → 0.1.81
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/index.css +1 -1
- package/dist/index.js +305 -305
- package/dist/index.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed as I, createElementBlock as f, openBlock as i, normalizeStyle as ve, createCommentVNode as $, createElementVNode as s, toDisplayString as
|
|
1
|
+
import { computed as I, createElementBlock as f, openBlock as i, normalizeStyle as ve, createCommentVNode as $, createElementVNode as s, toDisplayString as x, Fragment as k, renderList as F, normalizeClass as Y, ref as j, onMounted as ge, resolveDirective as Mt, withDirectives as ie, watch as X, createVNode as B, vModelText as tt, vModelCheckbox as Fe, resolveComponent as ne, createBlock as N, unref as W, withCtx as q, createTextVNode as H, nextTick as ze, createStaticVNode as Ye, withModifiers as Pt, resolveDynamicComponent as de, vShow as Ze, withKeys as Tt, Teleport as Ut, onUnmounted as ct, defineComponent as re, getCurrentInstance as zt, mergeProps as Et, h as st, mergeModels as ut, defineAsyncComponent as he, useModel as Te, isRef as dt, shallowRef as Bt, provide as Ot, inject as Dt, renderSlot as pt, onBeforeUnmount as Ge } from "vue";
|
|
2
2
|
import { VsPopover as Pe, notify as we } from "@opengis/core";
|
|
3
3
|
import qt from "@opengis/filter";
|
|
4
4
|
import { useRoute as ft, useRouter as mt } from "vue-router";
|
|
@@ -34,10 +34,10 @@ const O = (e, t) => {
|
|
|
34
34
|
style: ve({ width: e.config.width || "100%" })
|
|
35
35
|
}, [
|
|
36
36
|
r.value ? (i(), f("div", Nt, [
|
|
37
|
-
s("h2", Rt,
|
|
37
|
+
s("h2", Rt, x(r.value), 1)
|
|
38
38
|
])) : $("", !0),
|
|
39
39
|
s("div", Ht, [
|
|
40
|
-
(i(!0), f(
|
|
40
|
+
(i(!0), f(k, null, F(o.value, (c) => (i(), f("div", {
|
|
41
41
|
class: "flex items-center",
|
|
42
42
|
key: c.label
|
|
43
43
|
}, [
|
|
@@ -51,8 +51,8 @@ const O = (e, t) => {
|
|
|
51
51
|
style: ve({ backgroundColor: c.color })
|
|
52
52
|
}, null, 6),
|
|
53
53
|
s("span", Wt, [
|
|
54
|
-
s("span", null,
|
|
55
|
-
c.count !== void 0 ? (i(), f("span", Zt, " (" +
|
|
54
|
+
s("span", null, x(c.label), 1),
|
|
55
|
+
c.count !== void 0 ? (i(), f("span", Zt, " (" + x(c.count) + ") ", 1)) : $("", !0)
|
|
56
56
|
])
|
|
57
57
|
]))), 128))
|
|
58
58
|
])
|
|
@@ -152,7 +152,7 @@ const O = (e, t) => {
|
|
|
152
152
|
}), (m, g) => {
|
|
153
153
|
const u = Mt("tooltip");
|
|
154
154
|
return i(), f("div", Jt, [
|
|
155
|
-
(i(!0), f(
|
|
155
|
+
(i(!0), f(k, null, F(r.value, (d) => ie((i(), f("div", {
|
|
156
156
|
trigger: "hover",
|
|
157
157
|
placement: "top",
|
|
158
158
|
key: d.id
|
|
@@ -681,11 +681,11 @@ const yt = /* @__PURE__ */ O(ms, [["render", vs]]), hs = { class: "w-full flex f
|
|
|
681
681
|
s("button", {
|
|
682
682
|
onClick: n,
|
|
683
683
|
class: "w-full py-[7px] bg-blue-500 text-white rounded-lg hover:bg-blue-600 transition-colors"
|
|
684
|
-
},
|
|
684
|
+
}, x(u.value ? "Вимкнути всі" : "Увімкнути всі"), 1)
|
|
685
685
|
])) : $("", !0),
|
|
686
686
|
s("div", ws, [
|
|
687
687
|
s("ul", _s, [
|
|
688
|
-
(i(!0), f(
|
|
688
|
+
(i(!0), f(k, null, F(g.value, (b) => (i(), f("li", {
|
|
689
689
|
key: b.id,
|
|
690
690
|
class: "flex flex-wrap justify-between items-center gap-x-2"
|
|
691
691
|
}, [
|
|
@@ -700,14 +700,14 @@ const yt = /* @__PURE__ */ O(ms, [["render", vs]]), hs = { class: "w-full flex f
|
|
|
700
700
|
[Fe, b.visible]
|
|
701
701
|
])
|
|
702
702
|
]),
|
|
703
|
-
s("span", Ls,
|
|
703
|
+
s("span", Ls, x(b.title || b.name || b.label), 1)
|
|
704
704
|
]),
|
|
705
|
-
b.actions && b.visible ? (i(!0), f(
|
|
705
|
+
b.actions && b.visible ? (i(!0), f(k, { key: 0 }, F(b.actions, (h) => (i(), f("div", {
|
|
706
706
|
key: h.id
|
|
707
707
|
}, [
|
|
708
708
|
s("button", {
|
|
709
709
|
class: "text-sm text-gray-500",
|
|
710
|
-
onClick: (
|
|
710
|
+
onClick: (w) => y.$emit("show-widget", h.widget)
|
|
711
711
|
}, [
|
|
712
712
|
s("div", {
|
|
713
713
|
innerHTML: h.icon
|
|
@@ -748,7 +748,7 @@ const yt = /* @__PURE__ */ O(ms, [["render", vs]]), hs = { class: "w-full flex f
|
|
|
748
748
|
const m = ne("router-link");
|
|
749
749
|
return i(), f("div", Vs, [
|
|
750
750
|
o.value || (g = p.value) != null && g.length ? (i(), f("div", As, [
|
|
751
|
-
s("h2", Ms,
|
|
751
|
+
s("h2", Ms, x(o.value), 1),
|
|
752
752
|
(u = p.value) != null && u.length ? (i(), N(W(Pe), {
|
|
753
753
|
key: 0,
|
|
754
754
|
placement: "bottom"
|
|
@@ -796,7 +796,7 @@ const yt = /* @__PURE__ */ O(ms, [["render", vs]]), hs = { class: "w-full flex f
|
|
|
796
796
|
]),
|
|
797
797
|
default: q(() => [
|
|
798
798
|
s("div", Ps, [
|
|
799
|
-
(i(!0), f(
|
|
799
|
+
(i(!0), f(k, null, F(p.value, (d) => (i(), f("div", {
|
|
800
800
|
key: d.label
|
|
801
801
|
}, [
|
|
802
802
|
d.url ? (i(), N(m, {
|
|
@@ -805,7 +805,7 @@ const yt = /* @__PURE__ */ O(ms, [["render", vs]]), hs = { class: "w-full flex f
|
|
|
805
805
|
class: "text-sm text-gray-800 dark:text-neutral-200 hover:bg-gray-100 hover:text-blue-600 transition-colors rounded px-2 py-1 block"
|
|
806
806
|
}, {
|
|
807
807
|
default: q(() => [
|
|
808
|
-
H(
|
|
808
|
+
H(x(d.label), 1)
|
|
809
809
|
]),
|
|
810
810
|
_: 2
|
|
811
811
|
}, 1032, ["to"])) : $("", !0)
|
|
@@ -857,25 +857,25 @@ const yt = /* @__PURE__ */ O(ms, [["render", vs]]), hs = { class: "w-full flex f
|
|
|
857
857
|
emits: ["close", "content-resize"],
|
|
858
858
|
setup(e, { emit: t }) {
|
|
859
859
|
const o = e, r = t, p = I(() => {
|
|
860
|
-
var
|
|
861
|
-
return ((
|
|
860
|
+
var w;
|
|
861
|
+
return ((w = o.config) == null ? void 0 : w.title) || "";
|
|
862
862
|
}), a = I(
|
|
863
863
|
() => !!(typeof window.app == "object" && window.app && window.app.config)
|
|
864
864
|
), c = j([]), m = j(!1), g = j(null), u = j(0), d = I(() => u.value + 1), l = I(() => {
|
|
865
|
-
var
|
|
866
|
-
return ((
|
|
865
|
+
var w;
|
|
866
|
+
return ((w = o.info) == null ? void 0 : w.length) || 0;
|
|
867
867
|
}), n = I(() => c.value[u.value]), y = I(() => {
|
|
868
868
|
if (!n.value) return {};
|
|
869
|
-
const { rows:
|
|
870
|
-
return !
|
|
869
|
+
const { rows: w, columns: _ } = n.value;
|
|
870
|
+
return !w || !_ ? {} : _.reduce((M, D) => (!D.hide && !["geom", "geodata", "id"].includes(D.name) && (M[D.ua] = w[D.name] ?? "-"), M), {});
|
|
871
871
|
});
|
|
872
872
|
async function v() {
|
|
873
|
-
var
|
|
873
|
+
var w, _, M, D, P, V;
|
|
874
874
|
m.value = !0, g.value = null;
|
|
875
875
|
try {
|
|
876
876
|
const ee = {
|
|
877
|
-
id: (
|
|
878
|
-
layer: typeof ((
|
|
877
|
+
id: (w = o.cardValues) == null ? void 0 : w.id,
|
|
878
|
+
layer: typeof ((_ = o.cardValues) == null ? void 0 : _.layer) == "object" ? (D = (M = o.cardValues) == null ? void 0 : M.layer) == null ? void 0 : D.id : (P = o.cardValues) == null ? void 0 : P.layer,
|
|
879
879
|
map: (V = o.cardValues) == null ? void 0 : V.map
|
|
880
880
|
}, oe = await fetch("/api/map-format?" + new URLSearchParams(ee)).then((Qe) => Qe.json());
|
|
881
881
|
c.value[u.value] = oe;
|
|
@@ -901,16 +901,16 @@ const yt = /* @__PURE__ */ O(ms, [["render", vs]]), hs = { class: "w-full flex f
|
|
|
901
901
|
{ deep: !0 }
|
|
902
902
|
), X([() => o.cardValues, () => o.config], async () => {
|
|
903
903
|
await ze(), v(), r("content-resize");
|
|
904
|
-
}), (
|
|
904
|
+
}), (w, _) => {
|
|
905
905
|
var M, D;
|
|
906
906
|
return i(), f("div", Bs, [
|
|
907
907
|
p.value ? (i(), f("div", Os, [
|
|
908
|
-
s("h2", Ds,
|
|
908
|
+
s("h2", Ds, x(p.value), 1),
|
|
909
909
|
s("button", {
|
|
910
910
|
type: "button",
|
|
911
911
|
class: "size-8 inline-flex justify-center items-center gap-x-2 rounded-full border border-transparent bg-gray-100 text-gray-800 hover:bg-gray-200 focus:outline-none focus:bg-gray-200 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-700 dark:hover:bg-neutral-600 dark:text-neutral-400 dark:focus:bg-neutral-600 ml-2",
|
|
912
|
-
onClick:
|
|
913
|
-
}, [...
|
|
912
|
+
onClick: _[0] || (_[0] = (P) => r("close"))
|
|
913
|
+
}, [..._[1] || (_[1] = [
|
|
914
914
|
s("svg", {
|
|
915
915
|
class: "shrink-0 size-4 cursor-pointer",
|
|
916
916
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -937,9 +937,9 @@ const yt = /* @__PURE__ */ O(ms, [["render", vs]]), hs = { class: "w-full flex f
|
|
|
937
937
|
onClick: h
|
|
938
938
|
}, " ◀ ", 2),
|
|
939
939
|
s("div", Ns, [
|
|
940
|
-
s("span", Rs,
|
|
941
|
-
|
|
942
|
-
s("span", Hs,
|
|
940
|
+
s("span", Rs, x(d.value), 1),
|
|
941
|
+
_[2] || (_[2] = s("span", { class: "min-h-[34px] flex justify-center items-center text-stone-500 py-2 px-1.5 text-sm" }, "з", -1)),
|
|
942
|
+
s("span", Hs, x(l.value), 1)
|
|
943
943
|
]),
|
|
944
944
|
s("button", {
|
|
945
945
|
type: "button",
|
|
@@ -957,12 +957,12 @@ const yt = /* @__PURE__ */ O(ms, [["render", vs]]), hs = { class: "w-full flex f
|
|
|
957
957
|
class: "custom-table-html border-b"
|
|
958
958
|
}, null, 8, Js)) : Object.keys(y.value).length ? (i(), f("div", Ks, [
|
|
959
959
|
s("dl", Qs, [
|
|
960
|
-
(i(!0), f(
|
|
960
|
+
(i(!0), f(k, null, F(y.value, (P, V) => (i(), f("div", {
|
|
961
961
|
key: V,
|
|
962
962
|
class: "grid grid-cols-1 gap-1 py-3 even:bg-gray-50 sm:grid-cols-3 sm:gap-4"
|
|
963
963
|
}, [
|
|
964
|
-
s("dt", Xs,
|
|
965
|
-
s("dd", eo,
|
|
964
|
+
s("dt", Xs, x(V), 1),
|
|
965
|
+
s("dd", eo, x(P), 1)
|
|
966
966
|
]))), 128))
|
|
967
967
|
])
|
|
968
968
|
])) : (i(), f("div", to, "Даних не знайдено."))
|
|
@@ -1033,14 +1033,14 @@ const yt = /* @__PURE__ */ O(ms, [["render", vs]]), hs = { class: "w-full flex f
|
|
|
1033
1033
|
}), (g, u) => (i(), f("div", ro, [
|
|
1034
1034
|
o.value ? (i(), f("div", no, [
|
|
1035
1035
|
s("div", null, [
|
|
1036
|
-
s("h2", lo,
|
|
1036
|
+
s("h2", lo, x(o.value), 1)
|
|
1037
1037
|
])
|
|
1038
1038
|
])) : $("", !0),
|
|
1039
1039
|
s("div", ao, [
|
|
1040
1040
|
s("div", io, [
|
|
1041
1041
|
s("div", co, [
|
|
1042
1042
|
p.value ? (i(), f("div", uo, [
|
|
1043
|
-
(i(!0), f(
|
|
1043
|
+
(i(!0), f(k, null, F(e.config.layer.style.rules, (d, l) => (i(), f("div", {
|
|
1044
1044
|
key: l,
|
|
1045
1045
|
class: "flex flex-col justify-center overflow-hidden text-xs text-white text-center whitespace-nowrap",
|
|
1046
1046
|
style: ve({
|
|
@@ -1054,7 +1054,7 @@ const yt = /* @__PURE__ */ O(ms, [["render", vs]]), hs = { class: "w-full flex f
|
|
|
1054
1054
|
}, null, 12, po))), 128))
|
|
1055
1055
|
])) : $("", !0),
|
|
1056
1056
|
s("ul", null, [
|
|
1057
|
-
(i(!0), f(
|
|
1057
|
+
(i(!0), f(k, null, F(e.config.layer.style.rules, (d, l) => (i(), f("li", { key: l }, [
|
|
1058
1058
|
s("div", fo, [
|
|
1059
1059
|
s("label", {
|
|
1060
1060
|
for: `filter-${l}`,
|
|
@@ -1079,8 +1079,8 @@ const yt = /* @__PURE__ */ O(ms, [["render", vs]]), hs = { class: "w-full flex f
|
|
|
1079
1079
|
}, null, 40, vo), [
|
|
1080
1080
|
[Fe, r.value[l]]
|
|
1081
1081
|
]),
|
|
1082
|
-
s("span", ho,
|
|
1083
|
-
p.value ? (i(), f("span", yo, "(" +
|
|
1082
|
+
s("span", ho, x(d.label || d.text), 1),
|
|
1083
|
+
p.value ? (i(), f("span", yo, "(" + x(d.count) + ")", 1)) : $("", !0)
|
|
1084
1084
|
], 8, mo)
|
|
1085
1085
|
])
|
|
1086
1086
|
]))), 128))
|
|
@@ -1171,8 +1171,8 @@ const xt = /* @__PURE__ */ O(xo, [["render", _o]]), ko = { class: "hover:bg-gray
|
|
|
1171
1171
|
s("div", {
|
|
1172
1172
|
class: "whitespace-nowrap text text-ellipsis max-w-[260px] overflow-hidden text-[13px] text-[#4b5563]",
|
|
1173
1173
|
title: (u = e.layer) == null ? void 0 : u.name
|
|
1174
|
-
},
|
|
1175
|
-
isNaN(a((n = e.layer) == null ? void 0 : n.count)) ? $("", !0) : (i(), f("div", Vo,
|
|
1174
|
+
}, x(((d = e.layer) == null ? void 0 : d.name) || ((l = e.layer) == null ? void 0 : l.title)), 9, Io),
|
|
1175
|
+
isNaN(a((n = e.layer) == null ? void 0 : n.count)) ? $("", !0) : (i(), f("div", Vo, x(a((y = e.layer) == null ? void 0 : y.count)), 1))
|
|
1176
1176
|
])
|
|
1177
1177
|
], 8, $o)
|
|
1178
1178
|
]);
|
|
@@ -1658,8 +1658,8 @@ function Yr(e, t, o, r, p, a) {
|
|
|
1658
1658
|
s("path", { d: "m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65" })
|
|
1659
1659
|
], -1)),
|
|
1660
1660
|
s("h2", mr, [
|
|
1661
|
-
H(
|
|
1662
|
-
p.activeView === "catalog" ? (i(), f("span", gr, "(" +
|
|
1661
|
+
H(x(p.activeView === "catalog" ? "Каталог" : "Вибрані шари") + " ", 1),
|
|
1662
|
+
p.activeView === "catalog" ? (i(), f("span", gr, "(" + x(((y = p.layers) == null ? void 0 : y.length) || 0) + ")", 1)) : (i(), f("span", vr, "(" + x(p.selectedLayers.length) + ")", 1))
|
|
1663
1663
|
])
|
|
1664
1664
|
]),
|
|
1665
1665
|
s("button", {
|
|
@@ -1711,16 +1711,16 @@ function Yr(e, t, o, r, p, a) {
|
|
|
1711
1711
|
])])
|
|
1712
1712
|
]),
|
|
1713
1713
|
p.mounted ? (i(), f("div", xr, [
|
|
1714
|
-
(i(!0), f(
|
|
1715
|
-
var h,
|
|
1714
|
+
(i(!0), f(k, null, F(p.selectedLayers, (v, b) => {
|
|
1715
|
+
var h, w;
|
|
1716
1716
|
return i(), f("div", {
|
|
1717
1717
|
key: v.id || b,
|
|
1718
1718
|
class: Y(["border border-gray-200 rounded-md p-3 mb-2 bg-white shadow-sm text-[13px] text-[#4b5563]", { dragging: p.draggedLayerIndex === b }]),
|
|
1719
1719
|
draggable: "true",
|
|
1720
|
-
onDragstart: (
|
|
1721
|
-
onDragover: Pt((
|
|
1722
|
-
onDrop: (
|
|
1723
|
-
onDragend: t[4] || (t[4] = (...
|
|
1720
|
+
onDragstart: (_) => a.onDragStart(b),
|
|
1721
|
+
onDragover: Pt((_) => a.onDragOver(b), ["prevent"]),
|
|
1722
|
+
onDrop: (_) => a.onDrop(b),
|
|
1723
|
+
onDragend: t[4] || (t[4] = (..._) => a.onDragEnd && a.onDragEnd(..._))
|
|
1724
1724
|
}, [
|
|
1725
1725
|
s("div", _r, [
|
|
1726
1726
|
s("div", kr, [
|
|
@@ -1728,12 +1728,12 @@ function Yr(e, t, o, r, p, a) {
|
|
|
1728
1728
|
ie(s("input", {
|
|
1729
1729
|
type: "checkbox",
|
|
1730
1730
|
class: "w-4 h-4 text-blue-600 rounded focus:ring-blue-500",
|
|
1731
|
-
"onUpdate:modelValue": (
|
|
1732
|
-
onChange: (
|
|
1731
|
+
"onUpdate:modelValue": (_) => v.visible = _,
|
|
1732
|
+
onChange: (_) => a.toggleLayerVisibility(v)
|
|
1733
1733
|
}, null, 40, $r), [
|
|
1734
1734
|
[Fe, v.visible]
|
|
1735
1735
|
]),
|
|
1736
|
-
s("span", Cr,
|
|
1736
|
+
s("span", Cr, x(v.name || v.title || v.label), 1)
|
|
1737
1737
|
]),
|
|
1738
1738
|
s("div", Lr, [
|
|
1739
1739
|
s("div", jr, [
|
|
@@ -1741,8 +1741,8 @@ function Yr(e, t, o, r, p, a) {
|
|
|
1741
1741
|
reference: q(() => [
|
|
1742
1742
|
s("div", {
|
|
1743
1743
|
class: "text-sm text-gray-600 hover:text-gray-800 transition-colors px-2 py-1 rounded hover:bg-gray-100 cursor-pointer",
|
|
1744
|
-
onClick: (
|
|
1745
|
-
},
|
|
1744
|
+
onClick: (_) => a.updateLayerOpacity(v)
|
|
1745
|
+
}, x(v.opacity || 100) + "% ", 9, Vr)
|
|
1746
1746
|
]),
|
|
1747
1747
|
default: q(() => [
|
|
1748
1748
|
s("div", Sr, [
|
|
@@ -1752,13 +1752,13 @@ function Yr(e, t, o, r, p, a) {
|
|
|
1752
1752
|
min: "0",
|
|
1753
1753
|
max: "100",
|
|
1754
1754
|
step: "1",
|
|
1755
|
-
"onUpdate:modelValue": (
|
|
1756
|
-
onInput: (
|
|
1755
|
+
"onUpdate:modelValue": (_) => v.opacity = _,
|
|
1756
|
+
onInput: (_) => a.onLayerOpacityChange(v),
|
|
1757
1757
|
class: "h-2 w-full accent-blue-600 rounded-lg cursor-pointer bg-gray-200"
|
|
1758
1758
|
}, null, 40, Fr), [
|
|
1759
1759
|
[tt, v.opacity]
|
|
1760
1760
|
]),
|
|
1761
|
-
s("span", Ir,
|
|
1761
|
+
s("span", Ir, x(Math.round(v.opacity)) + "% ", 1)
|
|
1762
1762
|
])
|
|
1763
1763
|
]),
|
|
1764
1764
|
_: 2
|
|
@@ -1773,17 +1773,17 @@ function Yr(e, t, o, r, p, a) {
|
|
|
1773
1773
|
]),
|
|
1774
1774
|
default: q(() => [
|
|
1775
1775
|
s("div", Mr, [
|
|
1776
|
-
(i(!0), f(
|
|
1777
|
-
|
|
1776
|
+
(i(!0), f(k, null, F(a.popoverActions(v), (_, M) => (i(), f(k, { key: M }, [
|
|
1777
|
+
_.divider ? (i(), f("hr", Pr)) : (i(), f("button", {
|
|
1778
1778
|
key: 1,
|
|
1779
1779
|
class: Y(
|
|
1780
|
-
"w-full p-2 text-left text-sm flex items-center gap-2 " + (
|
|
1780
|
+
"w-full p-2 text-left text-sm flex items-center gap-2 " + (_.class || "")
|
|
1781
1781
|
),
|
|
1782
|
-
disabled:
|
|
1783
|
-
onClick: (D) => !
|
|
1782
|
+
disabled: _.disabled,
|
|
1783
|
+
onClick: (D) => !_.disabled && e.$options.methods[_.handler].call(this, v)
|
|
1784
1784
|
}, [
|
|
1785
|
-
(i(), N(de(
|
|
1786
|
-
H(" " +
|
|
1785
|
+
(i(), N(de(_.icon), { class: "lucide" })),
|
|
1786
|
+
H(" " + x(_.label), 1)
|
|
1787
1787
|
], 10, Tr))
|
|
1788
1788
|
], 64))), 128))
|
|
1789
1789
|
])
|
|
@@ -1794,7 +1794,7 @@ function Yr(e, t, o, r, p, a) {
|
|
|
1794
1794
|
])
|
|
1795
1795
|
]),
|
|
1796
1796
|
v.showFilters ? (i(), f("div", zr, [
|
|
1797
|
-
s("div", Er, " Фільтри для шару: " +
|
|
1797
|
+
s("div", Er, " Фільтри для шару: " + x(v.name || v.title || v.label), 1),
|
|
1798
1798
|
ie(B(g, {
|
|
1799
1799
|
ref_for: !0,
|
|
1800
1800
|
ref: "filter",
|
|
@@ -1803,14 +1803,14 @@ function Yr(e, t, o, r, p, a) {
|
|
|
1803
1803
|
urlSeparator: "true",
|
|
1804
1804
|
view: "plain",
|
|
1805
1805
|
name: "filter",
|
|
1806
|
-
onFilterChange: (
|
|
1806
|
+
onFilterChange: (_) => a.handleFilterChange(_, v)
|
|
1807
1807
|
}, null, 8, ["scheme", "onFilterChange"]), [
|
|
1808
1808
|
[Ze, (h = v.filters) == null ? void 0 : h.length]
|
|
1809
1809
|
]),
|
|
1810
1810
|
ie(s("div", null, [...t[12] || (t[12] = [
|
|
1811
1811
|
s("div", { class: "px-2 text-[14px] text-[#4b5563]" }, " Фільтри для шару відсутні ", -1)
|
|
1812
1812
|
])], 512), [
|
|
1813
|
-
[Ze, !((
|
|
1813
|
+
[Ze, !((w = v.filters) != null && w.length)]
|
|
1814
1814
|
])
|
|
1815
1815
|
])) : $("", !0)
|
|
1816
1816
|
], 42, wr);
|
|
@@ -1819,7 +1819,7 @@ function Yr(e, t, o, r, p, a) {
|
|
|
1819
1819
|
s("p", null, 'Щоб додати шар, натисніть на кнопку "Вибрати шар".', -1)
|
|
1820
1820
|
])])) : $("", !0)
|
|
1821
1821
|
])) : $("", !0)
|
|
1822
|
-
])) : (i(), f(
|
|
1822
|
+
])) : (i(), f(k, { key: 1 }, [
|
|
1823
1823
|
s("div", Or, [
|
|
1824
1824
|
ie(s("input", {
|
|
1825
1825
|
title: "value",
|
|
@@ -1843,8 +1843,8 @@ function Yr(e, t, o, r, p, a) {
|
|
|
1843
1843
|
}, null, 8, ["onClick"])) : $("", !0)
|
|
1844
1844
|
]),
|
|
1845
1845
|
p.categories ? (i(), f("div", Dr, [
|
|
1846
|
-
p.search ? (i(), f(
|
|
1847
|
-
(i(!0), f(
|
|
1846
|
+
p.search ? (i(), f(k, { key: 0 }, [
|
|
1847
|
+
(i(!0), f(k, null, F(a.searchedLayers, (v, b) => (i(), N(l, {
|
|
1848
1848
|
key: b,
|
|
1849
1849
|
layer: v,
|
|
1850
1850
|
map: o.map,
|
|
@@ -1853,8 +1853,8 @@ function Yr(e, t, o, r, p, a) {
|
|
|
1853
1853
|
onRemove: a.handleRemoveFromCatalog
|
|
1854
1854
|
}, null, 8, ["layer", "map", "selectedLayers", "onSelect", "onRemove"]))), 128)),
|
|
1855
1855
|
a.searchedLayers.length === 0 ? (i(), f("div", qr, " Нічого не знайдено ")) : $("", !0)
|
|
1856
|
-
], 64)) : (i(), f(
|
|
1857
|
-
!p.categories || Object.keys(p.categories).length === 0 ? (i(), f("div", Nr, " Каталог порожній ")) : (i(!0), f(
|
|
1856
|
+
], 64)) : (i(), f(k, { key: 1 }, [
|
|
1857
|
+
!p.categories || Object.keys(p.categories).length === 0 ? (i(), f("div", Nr, " Каталог порожній ")) : (i(!0), f(k, { key: 1 }, F(Object.keys(p.categories), (v) => (i(), f("div", { key: v }, [
|
|
1858
1858
|
s("div", {
|
|
1859
1859
|
class: "hover:bg-gray-100 focus:bg-gray-100 px-2.5 cursor-pointer p-[8px] rounded-lg flex justify-between items-center",
|
|
1860
1860
|
onClick: (b) => a.selectCategory(v)
|
|
@@ -1869,12 +1869,12 @@ function Yr(e, t, o, r, p, a) {
|
|
|
1869
1869
|
s("div", {
|
|
1870
1870
|
class: "max-w-[260px] text-[14px] text-[#4b5563]",
|
|
1871
1871
|
title: v
|
|
1872
|
-
},
|
|
1872
|
+
}, x(v), 9, Wr)
|
|
1873
1873
|
]),
|
|
1874
|
-
s("div", Zr,
|
|
1874
|
+
s("div", Zr, x(a.formatNumber(p.categories[v].length)), 1)
|
|
1875
1875
|
], 8, Rr),
|
|
1876
1876
|
ie(s("div", null, [
|
|
1877
|
-
(i(!0), f(
|
|
1877
|
+
(i(!0), f(k, null, F(p.categories[v], (b, h) => (i(), N(l, {
|
|
1878
1878
|
key: h,
|
|
1879
1879
|
layer: b,
|
|
1880
1880
|
map: o.map,
|
|
@@ -1936,7 +1936,7 @@ const Gr = /* @__PURE__ */ O(ur, [["render", Yr], ["__scopeId", "data-v-e9e7021a
|
|
|
1936
1936
|
};
|
|
1937
1937
|
return (c, m) => p.value ? (i(), f("div", Jr, [
|
|
1938
1938
|
e.config.title ? (i(), f("div", Kr, [
|
|
1939
|
-
s("h2", Qr,
|
|
1939
|
+
s("h2", Qr, x(e.config.title), 1)
|
|
1940
1940
|
])) : $("", !0),
|
|
1941
1941
|
s("div", Xr, [
|
|
1942
1942
|
B(W(qt), {
|
|
@@ -1996,7 +1996,7 @@ const Gr = /* @__PURE__ */ O(ur, [["render", Yr], ["__scopeId", "data-v-e9e7021a
|
|
|
1996
1996
|
if (!b) return;
|
|
1997
1997
|
const h = t.map.getSource(b);
|
|
1998
1998
|
if (h) {
|
|
1999
|
-
const
|
|
1999
|
+
const _ = h.tiles[0].split("?filter=")[0], M = u ? `${_}?filter=${u}` : _;
|
|
2000
2000
|
h.setTiles([M]);
|
|
2001
2001
|
}
|
|
2002
2002
|
return;
|
|
@@ -2005,7 +2005,7 @@ const Gr = /* @__PURE__ */ O(ur, [["render", Yr], ["__scopeId", "data-v-e9e7021a
|
|
|
2005
2005
|
n.length && n.forEach((b) => {
|
|
2006
2006
|
const h = t.map.getSource(b);
|
|
2007
2007
|
if (h) {
|
|
2008
|
-
const
|
|
2008
|
+
const _ = h.tiles[0].split("?filter=")[0], M = u ? `${_}?filter=${u}` : _;
|
|
2009
2009
|
h.setTiles([M]);
|
|
2010
2010
|
}
|
|
2011
2011
|
});
|
|
@@ -2072,8 +2072,8 @@ const Gr = /* @__PURE__ */ O(ur, [["render", Yr], ["__scopeId", "data-v-e9e7021a
|
|
|
2072
2072
|
"stroke-linejoin": "round"
|
|
2073
2073
|
})
|
|
2074
2074
|
], -1)),
|
|
2075
|
-
s("span", on,
|
|
2076
|
-
o.value ? (i(), f("span", rn,
|
|
2075
|
+
s("span", on, x(m.value), 1),
|
|
2076
|
+
o.value ? (i(), f("span", rn, x(o.value), 1)) : $("", !0)
|
|
2077
2077
|
])
|
|
2078
2078
|
])
|
|
2079
2079
|
]),
|
|
@@ -2158,12 +2158,12 @@ function yn(e, t, o, r, p, a) {
|
|
|
2158
2158
|
t[0] || (t[0] = s("h2", { class: "text-xl font-semibold mb-4" }, "Список", -1)),
|
|
2159
2159
|
((m = p.items) == null ? void 0 : m.length) > 0 ? (i(), f("div", cn, [
|
|
2160
2160
|
s("div", un, [
|
|
2161
|
-
(i(!0), f(
|
|
2161
|
+
(i(!0), f(k, null, F(p.items, (g) => (i(), f("div", {
|
|
2162
2162
|
key: g.id,
|
|
2163
2163
|
class: "py-4 border-b last:border-b-0 hover:bg-gray-50",
|
|
2164
2164
|
onClick: (u) => e.$emit("cardValuesId", g.id)
|
|
2165
2165
|
}, [
|
|
2166
|
-
s("h3", pn,
|
|
2166
|
+
s("h3", pn, x(g.name), 1),
|
|
2167
2167
|
s("div", fn, [
|
|
2168
2168
|
g.status_data ? (i(), f("span", {
|
|
2169
2169
|
key: 0,
|
|
@@ -2171,8 +2171,8 @@ function yn(e, t, o, r, p, a) {
|
|
|
2171
2171
|
"bg-green-100 text-green-800": g.status_data.color === "green",
|
|
2172
2172
|
"bg-red-100 text-red-800": g.status_data.color === "red"
|
|
2173
2173
|
}])
|
|
2174
|
-
},
|
|
2175
|
-
g.class_mbd_id_data ? (i(), f("span", mn,
|
|
2174
|
+
}, x(g.status_data.text), 3)) : $("", !0),
|
|
2175
|
+
g.class_mbd_id_data ? (i(), f("span", mn, x(g.class_mbd_id_data.text), 1)) : $("", !0)
|
|
2176
2176
|
])
|
|
2177
2177
|
], 8, dn))), 128))
|
|
2178
2178
|
]),
|
|
@@ -2495,7 +2495,7 @@ function En(e, t, o, r, p, a) {
|
|
|
2495
2495
|
s("div", {
|
|
2496
2496
|
class: "font-light w-full h-[44px] p-[9px] [transition:.3s] hover:[transition:.3s] text-[19px] hover:bg-[#DBEAFE] flex cursor-pointer text-[#1E40AF] bg-[#fff] rounded-[4px] border-[1px] border-solid border-[#E5E7EB]",
|
|
2497
2497
|
onClick: t[0] || (t[0] = (...m) => a.toggleView && a.toggleView(...m))
|
|
2498
|
-
},
|
|
2498
|
+
}, x(p.is3D ? "2D" : "3D"), 1)
|
|
2499
2499
|
]),
|
|
2500
2500
|
default: q(() => [
|
|
2501
2501
|
t[1] || (t[1] = s("div", null, "Перемикач виду", -1))
|
|
@@ -2663,27 +2663,27 @@ function tl(e, t, o, r, p, a) {
|
|
|
2663
2663
|
s("div", el, [
|
|
2664
2664
|
s("div", null, [
|
|
2665
2665
|
t[1] || (t[1] = s("strong", null, "Широта:", -1)),
|
|
2666
|
-
H(" " +
|
|
2666
|
+
H(" " + x((u = p.location) == null ? void 0 : u.latitude), 1)
|
|
2667
2667
|
]),
|
|
2668
2668
|
s("div", null, [
|
|
2669
2669
|
t[2] || (t[2] = s("strong", null, "Довгота:", -1)),
|
|
2670
|
-
H(" " +
|
|
2670
|
+
H(" " + x((d = p.location) == null ? void 0 : d.longitude), 1)
|
|
2671
2671
|
]),
|
|
2672
2672
|
s("div", null, [
|
|
2673
2673
|
t[3] || (t[3] = s("strong", null, "КраЇна:", -1)),
|
|
2674
|
-
H(" " +
|
|
2674
|
+
H(" " + x((l = p.data) == null ? void 0 : l.country), 1)
|
|
2675
2675
|
]),
|
|
2676
2676
|
s("div", null, [
|
|
2677
2677
|
t[4] || (t[4] = s("strong", null, "Код країни:", -1)),
|
|
2678
|
-
H(" " +
|
|
2678
|
+
H(" " + x((n = p.data) == null ? void 0 : n.country_code), 1)
|
|
2679
2679
|
]),
|
|
2680
2680
|
s("div", null, [
|
|
2681
2681
|
t[5] || (t[5] = s("strong", null, "Місто:", -1)),
|
|
2682
|
-
H(" " +
|
|
2682
|
+
H(" " + x((y = p.data) == null ? void 0 : y.city), 1)
|
|
2683
2683
|
]),
|
|
2684
2684
|
s("div", null, [
|
|
2685
2685
|
t[6] || (t[6] = s("strong", null, "Поштовий індекс:", -1)),
|
|
2686
|
-
H(" " +
|
|
2686
|
+
H(" " + x((v = p.data) == null ? void 0 : v.postcode), 1)
|
|
2687
2687
|
])
|
|
2688
2688
|
])
|
|
2689
2689
|
])) : $("", !0)
|
|
@@ -2785,9 +2785,9 @@ const sl = /* @__PURE__ */ O(Jn, [["render", tl]]), He = {
|
|
|
2785
2785
|
paddingRight: e.rightColumnOffset
|
|
2786
2786
|
})
|
|
2787
2787
|
}, [
|
|
2788
|
-
(i(!0), f(
|
|
2788
|
+
(i(!0), f(k, null, F(a.value, (l) => {
|
|
2789
2789
|
var n;
|
|
2790
|
-
return i(), f(
|
|
2790
|
+
return i(), f(k, {
|
|
2791
2791
|
key: l.id || l.type
|
|
2792
2792
|
}, [
|
|
2793
2793
|
l.type !== "card" ? ie((i(), N(de(e.getWidgetComponent(l.type)), {
|
|
@@ -2840,7 +2840,7 @@ const sl = /* @__PURE__ */ O(Jn, [["render", tl]]), He = {
|
|
|
2840
2840
|
(C) => (C.position || {}) === L
|
|
2841
2841
|
) || [];
|
|
2842
2842
|
}
|
|
2843
|
-
const h = (L, C, A) => C[L] || L,
|
|
2843
|
+
const h = (L, C, A) => C[L] || L, w = (L, C, A, U, S) => {
|
|
2844
2844
|
const T = h(L, U), R = C ? h(C, U) : "";
|
|
2845
2845
|
let E = "";
|
|
2846
2846
|
return A != null && A.length && (E = A.map((te) => {
|
|
@@ -2868,7 +2868,7 @@ const sl = /* @__PURE__ */ O(Jn, [["render", tl]]), He = {
|
|
|
2868
2868
|
` : ""}
|
|
2869
2869
|
</div>
|
|
2870
2870
|
`;
|
|
2871
|
-
},
|
|
2871
|
+
}, _ = (L) => ({
|
|
2872
2872
|
legend: Gt,
|
|
2873
2873
|
basemaps: Xt,
|
|
2874
2874
|
layers: Is,
|
|
@@ -3003,7 +3003,7 @@ const sl = /* @__PURE__ */ O(Jn, [["render", tl]]), He = {
|
|
|
3003
3003
|
let Xe = J.title, et = "";
|
|
3004
3004
|
J.mode === "markdown" ? et = Array.isArray(J.content) ? J.content.join(`
|
|
3005
3005
|
|
|
3006
|
-
`) : "" : et = Array.isArray(J.content) ? J.content.join("") : "", a || (a = document.createElement("div"), r.value.getContainer().appendChild(a)), a.innerHTML =
|
|
3006
|
+
`) : "" : et = Array.isArray(J.content) ? J.content.join("") : "", a || (a = document.createElement("div"), r.value.getContainer().appendChild(a)), a.innerHTML = w(
|
|
3007
3007
|
Xe,
|
|
3008
3008
|
et,
|
|
3009
3009
|
J.fields,
|
|
@@ -3264,11 +3264,11 @@ const sl = /* @__PURE__ */ O(Jn, [["render", tl]]), He = {
|
|
|
3264
3264
|
style: ve(Qe.value)
|
|
3265
3265
|
}, [
|
|
3266
3266
|
C[10] || (C[10] = s("div", { id: "maplibre-demo-map" }, null, -1)),
|
|
3267
|
-
p.value ? (i(), f(
|
|
3267
|
+
p.value ? (i(), f(k, { key: 1 }, [
|
|
3268
3268
|
s("div", ol, [
|
|
3269
3269
|
s("div", rl, [
|
|
3270
3270
|
s("div", nl, [
|
|
3271
|
-
(i(), f(
|
|
3271
|
+
(i(), f(k, null, F(["top-left"], (S) => {
|
|
3272
3272
|
var T, R;
|
|
3273
3273
|
return B(He, {
|
|
3274
3274
|
key: S,
|
|
@@ -3281,7 +3281,7 @@ const sl = /* @__PURE__ */ O(Jn, [["render", tl]]), He = {
|
|
|
3281
3281
|
history: (R = (T = n.value) == null ? void 0 : T.value) == null ? void 0 : R.history,
|
|
3282
3282
|
currentFilterLayer: c.value,
|
|
3283
3283
|
enabledLayerIds: me.value,
|
|
3284
|
-
getWidgetComponent:
|
|
3284
|
+
getWidgetComponent: _,
|
|
3285
3285
|
getColumnWidth: qe,
|
|
3286
3286
|
rightColumnOffset: S === "top-right" ? Ne.value : void 0,
|
|
3287
3287
|
onSetFilterLayer: D,
|
|
@@ -3293,7 +3293,7 @@ const sl = /* @__PURE__ */ O(Jn, [["render", tl]]), He = {
|
|
|
3293
3293
|
}), 64))
|
|
3294
3294
|
]),
|
|
3295
3295
|
s("div", ll, [
|
|
3296
|
-
(i(), f(
|
|
3296
|
+
(i(), f(k, null, F(["bottom-left"], (S) => {
|
|
3297
3297
|
var T, R;
|
|
3298
3298
|
return B(He, {
|
|
3299
3299
|
key: S,
|
|
@@ -3306,7 +3306,7 @@ const sl = /* @__PURE__ */ O(Jn, [["render", tl]]), He = {
|
|
|
3306
3306
|
history: (R = (T = n.value) == null ? void 0 : T.value) == null ? void 0 : R.history,
|
|
3307
3307
|
currentFilterLayer: c.value,
|
|
3308
3308
|
enabledLayerIds: me.value,
|
|
3309
|
-
getWidgetComponent:
|
|
3309
|
+
getWidgetComponent: _,
|
|
3310
3310
|
getColumnWidth: qe,
|
|
3311
3311
|
rightColumnOffset: S === "top-right" ? Ne.value : void 0,
|
|
3312
3312
|
onSetFilterLayer: D,
|
|
@@ -3320,7 +3320,7 @@ const sl = /* @__PURE__ */ O(Jn, [["render", tl]]), He = {
|
|
|
3320
3320
|
]),
|
|
3321
3321
|
s("div", al, [
|
|
3322
3322
|
s("div", il, [
|
|
3323
|
-
(i(), f(
|
|
3323
|
+
(i(), f(k, null, F(["top-right"], (S) => {
|
|
3324
3324
|
var T, R;
|
|
3325
3325
|
return B(He, {
|
|
3326
3326
|
key: S,
|
|
@@ -3333,7 +3333,7 @@ const sl = /* @__PURE__ */ O(Jn, [["render", tl]]), He = {
|
|
|
3333
3333
|
history: (R = (T = n.value) == null ? void 0 : T.value) == null ? void 0 : R.history,
|
|
3334
3334
|
currentFilterLayer: c.value,
|
|
3335
3335
|
enabledLayerIds: me.value,
|
|
3336
|
-
getWidgetComponent:
|
|
3336
|
+
getWidgetComponent: _,
|
|
3337
3337
|
getColumnWidth: qe,
|
|
3338
3338
|
rightColumnOffset: S === "top-right" ? Ne.value : void 0,
|
|
3339
3339
|
onSetFilterLayer: D,
|
|
@@ -3345,7 +3345,7 @@ const sl = /* @__PURE__ */ O(Jn, [["render", tl]]), He = {
|
|
|
3345
3345
|
}), 64))
|
|
3346
3346
|
]),
|
|
3347
3347
|
s("div", cl, [
|
|
3348
|
-
(i(), f(
|
|
3348
|
+
(i(), f(k, null, F(["bottom-right"], (S) => {
|
|
3349
3349
|
var T, R;
|
|
3350
3350
|
return B(He, {
|
|
3351
3351
|
key: S,
|
|
@@ -3358,7 +3358,7 @@ const sl = /* @__PURE__ */ O(Jn, [["render", tl]]), He = {
|
|
|
3358
3358
|
history: (R = (T = n.value) == null ? void 0 : T.value) == null ? void 0 : R.history,
|
|
3359
3359
|
currentFilterLayer: c.value,
|
|
3360
3360
|
enabledLayerIds: me.value,
|
|
3361
|
-
getWidgetComponent:
|
|
3361
|
+
getWidgetComponent: _,
|
|
3362
3362
|
getColumnWidth: qe,
|
|
3363
3363
|
rightColumnOffset: S === "top-right" ? Ne.value : void 0,
|
|
3364
3364
|
onSetFilterLayer: D,
|
|
@@ -3371,12 +3371,12 @@ const sl = /* @__PURE__ */ O(Jn, [["render", tl]]), He = {
|
|
|
3371
3371
|
])
|
|
3372
3372
|
])
|
|
3373
3373
|
]),
|
|
3374
|
-
(i(!0), f(
|
|
3374
|
+
(i(!0), f(k, null, F(Vt.value, (S, T) => (i(), f("div", {
|
|
3375
3375
|
key: "abs-" + (S.id || S.type || T),
|
|
3376
3376
|
class: "absolute z-20",
|
|
3377
3377
|
style: ve(S.style)
|
|
3378
3378
|
}, [
|
|
3379
|
-
(i(), N(de(
|
|
3379
|
+
(i(), N(de(_(S.type)), {
|
|
3380
3380
|
map: r.value,
|
|
3381
3381
|
config: S.config,
|
|
3382
3382
|
hasFilters: M.value,
|
|
@@ -3391,7 +3391,7 @@ const sl = /* @__PURE__ */ O(Jn, [["render", tl]]), He = {
|
|
|
3391
3391
|
}, null, 40, ["map", "config", "hasFilters", "currentFilterLayer", "enabledLayerIds", "cardValues"]))
|
|
3392
3392
|
], 4))), 128)),
|
|
3393
3393
|
s("div", ul, [
|
|
3394
|
-
(i(!0), f(
|
|
3394
|
+
(i(!0), f(k, null, F((U = (A = n.value) == null ? void 0 : A.value) == null ? void 0 : U.tools, (S) => (i(), f(k, { key: S }, [
|
|
3395
3395
|
p.value && rt[S] ? (i(), N(de(rt[S]), Et({
|
|
3396
3396
|
key: 0,
|
|
3397
3397
|
map: r.value,
|
|
@@ -3702,7 +3702,7 @@ const yl = wt("trash", [
|
|
|
3702
3702
|
}
|
|
3703
3703
|
n();
|
|
3704
3704
|
}
|
|
3705
|
-
return (v, b) => (i(), f(
|
|
3705
|
+
return (v, b) => (i(), f(k, null, [
|
|
3706
3706
|
v.addButton ? (i(), f("div", Cl, [
|
|
3707
3707
|
s("div", Ll, [
|
|
3708
3708
|
s("button", {
|
|
@@ -3731,7 +3731,7 @@ const yl = wt("trash", [
|
|
|
3731
3731
|
s("div", Sl, [
|
|
3732
3732
|
s("table", Fl, [
|
|
3733
3733
|
s("colgroup", null, [
|
|
3734
|
-
(i(!0), f(
|
|
3734
|
+
(i(!0), f(k, null, F(l.value, (h) => (i(), f("col", {
|
|
3735
3735
|
key: h.key,
|
|
3736
3736
|
style: ve(
|
|
3737
3737
|
h.type === "main" ? `width: ${v.mainColWidth}` : h.width ? `width: ${h.width}` : "auto"
|
|
@@ -3741,19 +3741,19 @@ const yl = wt("trash", [
|
|
|
3741
3741
|
]),
|
|
3742
3742
|
s("thead", null, [
|
|
3743
3743
|
s("tr", Il, [
|
|
3744
|
-
(i(!0), f(
|
|
3744
|
+
(i(!0), f(k, null, F(l.value, (h) => (i(), f("th", {
|
|
3745
3745
|
key: h.key,
|
|
3746
3746
|
class: "px-6 py-4"
|
|
3747
|
-
},
|
|
3747
|
+
}, x(h.label), 1))), 128)),
|
|
3748
3748
|
b[7] || (b[7] = s("th", { class: "px-6 py-4" }, "Дії", -1))
|
|
3749
3749
|
])
|
|
3750
3750
|
]),
|
|
3751
|
-
d.value.length ? (i(!0), f(
|
|
3752
|
-
(i(!0), f(
|
|
3753
|
-
key:
|
|
3751
|
+
d.value.length ? (i(!0), f(k, { key: 0 }, F(d.value, (h, w) => (i(), f("tr", Vl, [
|
|
3752
|
+
(i(!0), f(k, null, F(l.value, (_) => (i(), f("td", {
|
|
3753
|
+
key: _.key,
|
|
3754
3754
|
class: "px-6 py-4 align-middle text-center"
|
|
3755
3755
|
}, [
|
|
3756
|
-
|
|
3756
|
+
_.type === "main" ? (i(), f("div", Al, [
|
|
3757
3757
|
b[8] || (b[8] = s("span", { class: "drag-handle cursor-move mr-2 text-gray-400" }, "☰", -1)),
|
|
3758
3758
|
W(Be)(
|
|
3759
3759
|
h.format === "yes/no" ? "check" : h.format || h.type
|
|
@@ -3769,28 +3769,28 @@ const yl = wt("trash", [
|
|
|
3769
3769
|
], 2)) : $("", !0),
|
|
3770
3770
|
s("div", Ml, [
|
|
3771
3771
|
ie((i(), f("p", Pl, [
|
|
3772
|
-
H(
|
|
3772
|
+
H(x(h.name || h.id), 1)
|
|
3773
3773
|
])), [
|
|
3774
3774
|
[W(_l)]
|
|
3775
3775
|
]),
|
|
3776
|
-
s("p", Tl,
|
|
3776
|
+
s("p", Tl, x(h.ua || h.label), 1)
|
|
3777
3777
|
])
|
|
3778
|
-
])) : (i(), f(
|
|
3779
|
-
|
|
3778
|
+
])) : (i(), f(k, { key: 1 }, [
|
|
3779
|
+
_.type === "color" ? (i(), f("div", Ul, [
|
|
3780
3780
|
s("div", {
|
|
3781
|
-
class: Y(["w-4 h-4 rounded-full align-middle", `bg-[${h[
|
|
3781
|
+
class: Y(["w-4 h-4 rounded-full align-middle", `bg-[${h[_.key]}]`])
|
|
3782
3782
|
}, null, 2)
|
|
3783
|
-
])) : ["format", "type", "meta"].includes(
|
|
3784
|
-
h[
|
|
3785
|
-
], 64)) : (i(), f("span", Bl,
|
|
3783
|
+
])) : ["format", "type", "meta"].includes(_.key) ? (i(), f(k, { key: 1 }, [
|
|
3784
|
+
h[_.key] ? (i(), f("span", zl, x(h[_.key]), 1)) : (i(), f("span", El, "Не вказано"))
|
|
3785
|
+
], 64)) : (i(), f("span", Bl, x(h[_.key]), 1))
|
|
3786
3786
|
], 64))
|
|
3787
3787
|
]))), 128)),
|
|
3788
3788
|
s("td", Ol, [
|
|
3789
3789
|
B(wl, {
|
|
3790
3790
|
columns: d.value,
|
|
3791
|
-
"onUpdate:columns": b[1] || (b[1] = (
|
|
3791
|
+
"onUpdate:columns": b[1] || (b[1] = (_) => d.value = _),
|
|
3792
3792
|
data: h,
|
|
3793
|
-
index:
|
|
3793
|
+
index: w,
|
|
3794
3794
|
scheme: v.formScheme
|
|
3795
3795
|
}, null, 8, ["columns", "data", "index", "scheme"])
|
|
3796
3796
|
])
|
|
@@ -3820,7 +3820,7 @@ const yl = wt("trash", [
|
|
|
3820
3820
|
type: "button",
|
|
3821
3821
|
onClick: y,
|
|
3822
3822
|
class: "px-4 py-2 rounded bg-blue-600 text-white"
|
|
3823
|
-
}, " Зберегти ")
|
|
3823
|
+
}, " Зберегти1 ")
|
|
3824
3824
|
])
|
|
3825
3825
|
]),
|
|
3826
3826
|
default: q(() => [
|
|
@@ -3838,7 +3838,7 @@ const yl = wt("trash", [
|
|
|
3838
3838
|
}, 8, ["visible"])
|
|
3839
3839
|
], 64));
|
|
3840
3840
|
}
|
|
3841
|
-
}), Je = /* @__PURE__ */ O(Nl, [["__scopeId", "data-v-
|
|
3841
|
+
}), Je = /* @__PURE__ */ O(Nl, [["__scopeId", "data-v-51284468"]]), Rl = { class: "vs-form" }, Hl = { class: "vs-form__body auto-rows-max container" }, Wl = { class: "flex flex-wrap" }, Zl = { class: "h-fit w-full mb-6 px-2" }, Yl = { class: "h-fit w-full flex flex-wrap" }, Gl = { class: "flex justify-end mb-3 gap-2 w-full" }, Jl = { class: "w-full" }, Kl = { class: "p-4 text-[13px]" }, Ql = { class: "grid grid-cols-2 gap-x-6 gap-y-2" }, Xl = ["id", "value"], ea = { class: "ml-2 flex-1 min-w-0 flex items-center gap-2" }, ta = { class: "font-medium text-gray-900 truncate" }, sa = { class: "text-xs text-gray-500" }, oa = { class: "flex justify-end gap-2 p-4 border-t w-full" }, ra = /* @__PURE__ */ re({
|
|
3842
3842
|
__name: "list-tab",
|
|
3843
3843
|
props: {
|
|
3844
3844
|
data: { default: {} },
|
|
@@ -3863,8 +3863,8 @@ const yl = wt("trash", [
|
|
|
3863
3863
|
}), d = I({
|
|
3864
3864
|
get: () => t.value || {},
|
|
3865
3865
|
set: (b) => {
|
|
3866
|
-
var
|
|
3867
|
-
const h = Array.isArray((
|
|
3866
|
+
var w;
|
|
3867
|
+
const h = Array.isArray((w = t.value) == null ? void 0 : w.columns) ? t.value.columns : [];
|
|
3868
3868
|
t.value = {
|
|
3869
3869
|
...t.value,
|
|
3870
3870
|
...b,
|
|
@@ -3874,14 +3874,14 @@ const yl = wt("trash", [
|
|
|
3874
3874
|
});
|
|
3875
3875
|
X(c, (b) => {
|
|
3876
3876
|
if (b) {
|
|
3877
|
-
const h = u.value.map((
|
|
3877
|
+
const h = u.value.map((w) => w.name || w.id);
|
|
3878
3878
|
m.value = [...h];
|
|
3879
3879
|
}
|
|
3880
3880
|
});
|
|
3881
3881
|
const l = () => {
|
|
3882
3882
|
const b = new Set(m.value);
|
|
3883
3883
|
u.value;
|
|
3884
|
-
const h = o.value.filter((
|
|
3884
|
+
const h = o.value.filter((w) => b.has(w.name));
|
|
3885
3885
|
u.value = h, c.value = !1, m.value = [];
|
|
3886
3886
|
}, n = {
|
|
3887
3887
|
table_name: {
|
|
@@ -3957,13 +3957,13 @@ const yl = wt("trash", [
|
|
|
3957
3957
|
key: g.value,
|
|
3958
3958
|
schema: n,
|
|
3959
3959
|
modelValue: d.value,
|
|
3960
|
-
"onUpdate:modelValue": h[0] || (h[0] = (
|
|
3960
|
+
"onUpdate:modelValue": h[0] || (h[0] = (w) => d.value = w)
|
|
3961
3961
|
}, null, 8, ["modelValue"]))
|
|
3962
3962
|
]),
|
|
3963
3963
|
s("div", Yl, [
|
|
3964
3964
|
s("div", Gl, [
|
|
3965
3965
|
s("button", {
|
|
3966
|
-
onClick: h[1] || (h[1] = (
|
|
3966
|
+
onClick: h[1] || (h[1] = (w) => c.value = !0),
|
|
3967
3967
|
class: "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 bg-primary hover:bg-primary/90 h-10 px-4 py-2 bg-gradient-to-r from-blue-600 to-blue-500 hover:from-blue-700 hover:to-blue-600 text-white"
|
|
3968
3968
|
}, [...h[6] || (h[6] = [
|
|
3969
3969
|
s("svg", {
|
|
@@ -3988,7 +3988,7 @@ const yl = wt("trash", [
|
|
|
3988
3988
|
s("div", Jl, [
|
|
3989
3989
|
B(Je, {
|
|
3990
3990
|
modelValue: u.value,
|
|
3991
|
-
"onUpdate:modelValue": h[2] || (h[2] = (
|
|
3991
|
+
"onUpdate:modelValue": h[2] || (h[2] = (w) => u.value = w),
|
|
3992
3992
|
"columns-scheme": y,
|
|
3993
3993
|
"form-scheme": v,
|
|
3994
3994
|
"main-col-width": "250px",
|
|
@@ -4000,14 +4000,14 @@ const yl = wt("trash", [
|
|
|
4000
4000
|
]),
|
|
4001
4001
|
B(W(p), {
|
|
4002
4002
|
visible: c.value,
|
|
4003
|
-
"onUpdate:visible": h[5] || (h[5] = (
|
|
4003
|
+
"onUpdate:visible": h[5] || (h[5] = (w) => c.value = w),
|
|
4004
4004
|
title: "Імпорт колонок",
|
|
4005
4005
|
size: "lg"
|
|
4006
4006
|
}, {
|
|
4007
4007
|
footer: q(() => [
|
|
4008
4008
|
s("div", oa, [
|
|
4009
4009
|
s("button", {
|
|
4010
|
-
onClick: h[4] || (h[4] = (
|
|
4010
|
+
onClick: h[4] || (h[4] = (w) => c.value = !1),
|
|
4011
4011
|
class: "px-4 py-2 rounded bg-gray-100 text-gray-700"
|
|
4012
4012
|
}, " Скасувати "),
|
|
4013
4013
|
s("button", {
|
|
@@ -4019,28 +4019,28 @@ const yl = wt("trash", [
|
|
|
4019
4019
|
default: q(() => [
|
|
4020
4020
|
s("div", Kl, [
|
|
4021
4021
|
s("div", Ql, [
|
|
4022
|
-
(i(!0), f(
|
|
4023
|
-
key:
|
|
4022
|
+
(i(!0), f(k, null, F(o.value, (w) => (i(), f("label", {
|
|
4023
|
+
key: w.name,
|
|
4024
4024
|
class: "flex items-center hover:bg-gray-100 rounded p-2 cursor-pointer"
|
|
4025
4025
|
}, [
|
|
4026
4026
|
ie(s("input", {
|
|
4027
4027
|
type: "checkbox",
|
|
4028
|
-
id: "import-" +
|
|
4029
|
-
"onUpdate:modelValue": h[3] || (h[3] = (
|
|
4030
|
-
value:
|
|
4028
|
+
id: "import-" + w.name,
|
|
4029
|
+
"onUpdate:modelValue": h[3] || (h[3] = (_) => m.value = _),
|
|
4030
|
+
value: w.name
|
|
4031
4031
|
}, null, 8, Xl), [
|
|
4032
4032
|
[Fe, m.value]
|
|
4033
4033
|
]),
|
|
4034
4034
|
s("div", ea, [
|
|
4035
|
-
W(Be)(
|
|
4035
|
+
W(Be)(w.type) ? (i(), f("div", {
|
|
4036
4036
|
key: 0,
|
|
4037
|
-
class: Y(`bg-${W(Ee)(
|
|
4037
|
+
class: Y(`bg-${W(Ee)(w.type)}-100 p-1 rounded`)
|
|
4038
4038
|
}, [
|
|
4039
|
-
(i(), N(de(`icon-${
|
|
4039
|
+
(i(), N(de(`icon-${w.type}`), { class: "w-4 h-4" }))
|
|
4040
4040
|
], 2)) : $("", !0),
|
|
4041
4041
|
s("div", null, [
|
|
4042
|
-
s("p", ta, w
|
|
4043
|
-
s("p", sa, w
|
|
4042
|
+
s("p", ta, x(w.name), 1),
|
|
4043
|
+
s("p", sa, x(w.title || w.label), 1)
|
|
4044
4044
|
])
|
|
4045
4045
|
])
|
|
4046
4046
|
]))), 128))
|
|
@@ -4164,7 +4164,7 @@ const yl = wt("trash", [
|
|
|
4164
4164
|
default: q(() => [
|
|
4165
4165
|
s("div", da, [
|
|
4166
4166
|
s("div", pa, [
|
|
4167
|
-
(i(!0), f(
|
|
4167
|
+
(i(!0), f(k, null, F(o.value, (n) => (i(), f("label", {
|
|
4168
4168
|
key: n.name,
|
|
4169
4169
|
class: "flex items-center hover:bg-gray-100 rounded p-2 cursor-pointer"
|
|
4170
4170
|
}, [
|
|
@@ -4184,8 +4184,8 @@ const yl = wt("trash", [
|
|
|
4184
4184
|
(i(), N(de(`icon-${n.type}`), { class: "w-4 h-4" }))
|
|
4185
4185
|
], 2)) : $("", !0),
|
|
4186
4186
|
s("div", null, [
|
|
4187
|
-
s("p", ga,
|
|
4188
|
-
s("p", va,
|
|
4187
|
+
s("p", ga, x(n.name), 1),
|
|
4188
|
+
s("p", va, x(n.title || n.label), 1)
|
|
4189
4189
|
])
|
|
4190
4190
|
])
|
|
4191
4191
|
]))), 128))
|
|
@@ -4325,7 +4325,7 @@ const yl = wt("trash", [
|
|
|
4325
4325
|
default: q(() => [
|
|
4326
4326
|
s("div", Ca, [
|
|
4327
4327
|
s("div", La, [
|
|
4328
|
-
(i(!0), f(
|
|
4328
|
+
(i(!0), f(k, null, F(o.value, (n) => (i(), f("label", {
|
|
4329
4329
|
key: n.name,
|
|
4330
4330
|
class: "flex items-center hover:bg-gray-100 rounded p-2 cursor-pointer"
|
|
4331
4331
|
}, [
|
|
@@ -4345,8 +4345,8 @@ const yl = wt("trash", [
|
|
|
4345
4345
|
(i(), N(de(`icon-${n.type}`), { class: "w-4 h-4" }))
|
|
4346
4346
|
], 2)) : $("", !0),
|
|
4347
4347
|
s("div", null, [
|
|
4348
|
-
s("p", Fa,
|
|
4349
|
-
s("p", Ia,
|
|
4348
|
+
s("p", Fa, x(n.name), 1),
|
|
4349
|
+
s("p", Ia, x(n.title || n.label), 1)
|
|
4350
4350
|
])
|
|
4351
4351
|
])
|
|
4352
4352
|
]))), 128))
|
|
@@ -4445,7 +4445,7 @@ const Pa = {
|
|
|
4445
4445
|
class: "h-fit inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 text-foreground ml-2 whitespace-nowrap"
|
|
4446
4446
|
}, Da = { class: "p-4 pt-2" }, qa = { class: "grid grid-cols-2 gap-3 text-sm" }, Na = { class: "text-gray-500" }, Ra = { class: "font-medium" }, Ha = { class: "items-center p-3 bg-slate-50 flex justify-end" }, Wa = ["href"];
|
|
4447
4447
|
function Za(e, t, o, r, p, a) {
|
|
4448
|
-
return i(!0), f(
|
|
4448
|
+
return i(!0), f(k, null, F(o.items, (c) => {
|
|
4449
4449
|
var m, g, u;
|
|
4450
4450
|
return i(), f("div", {
|
|
4451
4451
|
key: c.id,
|
|
@@ -4454,38 +4454,38 @@ function Za(e, t, o, r, p, a) {
|
|
|
4454
4454
|
}, [
|
|
4455
4455
|
s("div", Ta, [
|
|
4456
4456
|
s("div", Ua, [
|
|
4457
|
-
s("h2", za,
|
|
4458
|
-
Array.isArray(a.categoryCol) && a.categoryCol.length ? (i(!0), f(
|
|
4457
|
+
s("h2", za, x(c[`${(m = a.titleCol) == null ? void 0 : m.name}_text`] || c[(g = a.titleCol) == null ? void 0 : g.name] || c[(u = a.titleCol) == null ? void 0 : u.label] || "Не вказано"), 1),
|
|
4458
|
+
Array.isArray(a.categoryCol) && a.categoryCol.length ? (i(!0), f(k, { key: 0 }, F(a.categoryCol, (d) => (i(), f(k, {
|
|
4459
4459
|
key: d.name
|
|
4460
4460
|
}, [
|
|
4461
|
-
c[d.name] ? (i(), f("div", Ea,
|
|
4461
|
+
c[d.name] ? (i(), f("div", Ea, x(c[`${d.name}_text`] || c[d.name]), 1)) : $("", !0)
|
|
4462
4462
|
], 64))), 128)) : $("", !0)
|
|
4463
4463
|
]),
|
|
4464
4464
|
Array.isArray(a.tagsCol) && a.tagsCol.length ? (i(), f("div", Ba, [
|
|
4465
|
-
(i(!0), f(
|
|
4465
|
+
(i(!0), f(k, null, F(a.tagsCol, (d) => (i(), f("div", {
|
|
4466
4466
|
key: d.name,
|
|
4467
4467
|
class: "mt-2 flex flex-wrap gap-1"
|
|
4468
4468
|
}, [
|
|
4469
|
-
c[d.name] ? (i(), f("span", Oa,
|
|
4469
|
+
c[d.name] ? (i(), f("span", Oa, x(c[`${d.name}_text`] || c[d.name]), 1)) : $("", !0)
|
|
4470
4470
|
]))), 128))
|
|
4471
4471
|
])) : $("", !0)
|
|
4472
4472
|
]),
|
|
4473
4473
|
s("div", Da, [
|
|
4474
4474
|
s("div", qa, [
|
|
4475
|
-
(i(!0), f(
|
|
4475
|
+
(i(!0), f(k, null, F(a.featuresCols, (d) => (i(), f("div", {
|
|
4476
4476
|
key: d.name,
|
|
4477
4477
|
class: "flex items-center gap-1.5"
|
|
4478
4478
|
}, [
|
|
4479
|
-
s("span", Na,
|
|
4479
|
+
s("span", Na, x(d.ua || d.label) + ": ", 1),
|
|
4480
4480
|
s("span", Ra, [
|
|
4481
|
-
Array.isArray(c[d == null ? void 0 : d.name]) ? (i(!0), f(
|
|
4481
|
+
Array.isArray(c[d == null ? void 0 : d.name]) ? (i(!0), f(k, { key: 0 }, F(c[d == null ? void 0 : d.name], (l, n) => (i(), f("span", {
|
|
4482
4482
|
key: n,
|
|
4483
4483
|
class: "bg-gray-200 px-1 py-0.5 rounded-lg mr-1"
|
|
4484
|
-
},
|
|
4485
|
-
d.type === "date" ? (i(), f(
|
|
4486
|
-
H(
|
|
4487
|
-
], 64)) : (i(), f(
|
|
4488
|
-
H(
|
|
4484
|
+
}, x(l), 1))), 128)) : (i(), f(k, { key: 1 }, [
|
|
4485
|
+
d.type === "date" ? (i(), f(k, { key: 0 }, [
|
|
4486
|
+
H(x(a.formatDate(c[d == null ? void 0 : d.name]) || "Немає даних"), 1)
|
|
4487
|
+
], 64)) : (i(), f(k, { key: 1 }, [
|
|
4488
|
+
H(x(c[d == null ? void 0 : d.name] || "Немає даних"), 1)
|
|
4489
4489
|
], 64))
|
|
4490
4490
|
], 64))
|
|
4491
4491
|
])
|
|
@@ -4577,7 +4577,7 @@ const Ya = /* @__PURE__ */ O(Pa, [["render", Za]]), Ga = {
|
|
|
4577
4577
|
class: "inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold border-transparent bg-gray-100 text-gray-800"
|
|
4578
4578
|
}, ri = { class: "grid grid-cols-1 sm:grid-cols-2 md:grid-cols-4 gap-3 text-sm border-t pt-3" }, ni = { class: "text-xs text-gray-500 mb-1" }, li = { class: "font-medium" }, ai = { class: "flex justify-end mt-3 border-t pt-3" }, ii = ["href"];
|
|
4579
4579
|
function ci(e, t, o, r, p, a) {
|
|
4580
|
-
return i(!0), f(
|
|
4580
|
+
return i(!0), f(k, null, F(o.items, (c) => {
|
|
4581
4581
|
var m, g;
|
|
4582
4582
|
return i(), f("div", {
|
|
4583
4583
|
key: c.id,
|
|
@@ -4588,35 +4588,35 @@ function ci(e, t, o, r, p, a) {
|
|
|
4588
4588
|
s("div", Ka, [
|
|
4589
4589
|
s("div", Qa, [
|
|
4590
4590
|
s("div", Xa, [
|
|
4591
|
-
s("h2", ei,
|
|
4592
|
-
Array.isArray(a.categoryCol) && a.categoryCol.length ? (i(!0), f(
|
|
4591
|
+
s("h2", ei, x(c[`${(m = a.titleCol) == null ? void 0 : m.name}_text`] || c[(g = a.titleCol) == null ? void 0 : g.name] || "Не вказано"), 1),
|
|
4592
|
+
Array.isArray(a.categoryCol) && a.categoryCol.length ? (i(!0), f(k, { key: 0 }, F(a.categoryCol, (u) => (i(), f(k, {
|
|
4593
4593
|
key: u.name
|
|
4594
4594
|
}, [
|
|
4595
|
-
c[u.name] ? (i(), f("div", ti,
|
|
4595
|
+
c[u.name] ? (i(), f("div", ti, x(c[`${u.name}_text`] || c[u.name]), 1)) : $("", !0)
|
|
4596
4596
|
], 64))), 128)) : $("", !0),
|
|
4597
4597
|
Array.isArray(a.tagsCol) && a.tagsCol.length ? (i(), f("div", si, [
|
|
4598
|
-
(i(!0), f(
|
|
4598
|
+
(i(!0), f(k, null, F(a.tagsCol, (u) => (i(), f("div", {
|
|
4599
4599
|
key: u.name,
|
|
4600
4600
|
class: "flex flex-wrap gap-1 ml-2"
|
|
4601
4601
|
}, [
|
|
4602
|
-
c[u.name] ? (i(), f("span", oi,
|
|
4602
|
+
c[u.name] ? (i(), f("span", oi, x(c[`${u.name}_text`] || c[u.name]), 1)) : $("", !0)
|
|
4603
4603
|
]))), 128))
|
|
4604
4604
|
])) : $("", !0)
|
|
4605
4605
|
]),
|
|
4606
4606
|
s("div", ri, [
|
|
4607
|
-
(i(!0), f(
|
|
4607
|
+
(i(!0), f(k, null, F(a.featuresCols, (u) => (i(), f("div", {
|
|
4608
4608
|
key: u.name
|
|
4609
4609
|
}, [
|
|
4610
|
-
s("p", ni,
|
|
4610
|
+
s("p", ni, x(u.ua), 1),
|
|
4611
4611
|
s("p", li, [
|
|
4612
|
-
Array.isArray(c[u == null ? void 0 : u.name]) ? (i(!0), f(
|
|
4612
|
+
Array.isArray(c[u == null ? void 0 : u.name]) ? (i(!0), f(k, { key: 0 }, F(c[u == null ? void 0 : u.name], (d, l) => (i(), f("span", {
|
|
4613
4613
|
key: l,
|
|
4614
4614
|
class: "bg-gray-200 px-1 py-0.5 rounded-lg mr-1"
|
|
4615
|
-
},
|
|
4616
|
-
u.type === "date" ? (i(), f(
|
|
4617
|
-
H(
|
|
4618
|
-
], 64)) : (i(), f(
|
|
4619
|
-
H(
|
|
4615
|
+
}, x(d), 1))), 128)) : (i(), f(k, { key: 1 }, [
|
|
4616
|
+
u.type === "date" ? (i(), f(k, { key: 0 }, [
|
|
4617
|
+
H(x(a.formatDate(c[u == null ? void 0 : u.name]) || "Немає даних"), 1)
|
|
4618
|
+
], 64)) : (i(), f(k, { key: 1 }, [
|
|
4619
|
+
H(x(c[u == null ? void 0 : u.name] || "Немає даних"), 1)
|
|
4620
4620
|
], 64))
|
|
4621
4621
|
], 64))
|
|
4622
4622
|
])
|
|
@@ -4718,7 +4718,7 @@ const ui = /* @__PURE__ */ O(Ga, [["render", ci]]), di = {
|
|
|
4718
4718
|
}, xi = { class: "col-span-7" }, wi = { class: "grid grid-cols-3 gap-3" }, _i = { class: "text-[10px] text-gray-500 mb-1" }, ki = { class: "truncate font-medium" }, $i = ["href"];
|
|
4719
4719
|
function Ci(e, t, o, r, p, a) {
|
|
4720
4720
|
return i(), f("div", pi, [
|
|
4721
|
-
(i(!0), f(
|
|
4721
|
+
(i(!0), f(k, null, F(o.items, (c) => {
|
|
4722
4722
|
var m, g;
|
|
4723
4723
|
return i(), f("div", {
|
|
4724
4724
|
key: c.id,
|
|
@@ -4735,36 +4735,36 @@ function Ci(e, t, o, r, p, a) {
|
|
|
4735
4735
|
class: Y(["font-bold text-sm text-left", {
|
|
4736
4736
|
"w-full h-full flex items-center": !Array.isArray(a.tagsCol) || !a.tagsCol.length
|
|
4737
4737
|
}])
|
|
4738
|
-
},
|
|
4739
|
-
Array.isArray(a.categoryCol) && a.categoryCol.length ? (i(!0), f(
|
|
4738
|
+
}, x(c[`${(m = a.titleCol) == null ? void 0 : m.name}_text`] || c[(g = a.titleCol) == null ? void 0 : g.name] || c[Object.keys(c)[0]] || "Не вказано"), 3),
|
|
4739
|
+
Array.isArray(a.categoryCol) && a.categoryCol.length ? (i(!0), f(k, { key: 0 }, F(a.categoryCol, (u) => (i(), f(k, {
|
|
4740
4740
|
key: u.name
|
|
4741
4741
|
}, [
|
|
4742
|
-
c[u.name] ? (i(), f("div", hi,
|
|
4742
|
+
c[u.name] ? (i(), f("div", hi, x(c[`${u.name}_text`] || c[u.name]), 1)) : $("", !0)
|
|
4743
4743
|
], 64))), 128)) : $("", !0),
|
|
4744
4744
|
Array.isArray(a.tagsCol) && a.tagsCol.length ? (i(), f("div", yi, [
|
|
4745
|
-
(i(!0), f(
|
|
4745
|
+
(i(!0), f(k, null, F(a.tagsCol, (u) => (i(), f("div", {
|
|
4746
4746
|
key: u.name,
|
|
4747
4747
|
class: "flex flex-wrap gap-1 mt-1"
|
|
4748
4748
|
}, [
|
|
4749
|
-
c[u.name] ? (i(), f("span", bi,
|
|
4749
|
+
c[u.name] ? (i(), f("span", bi, x(c[`${u.name}_text`] || c[u.name]), 1)) : $("", !0)
|
|
4750
4750
|
]))), 128))
|
|
4751
4751
|
])) : $("", !0)
|
|
4752
4752
|
]),
|
|
4753
4753
|
s("div", xi, [
|
|
4754
4754
|
s("div", wi, [
|
|
4755
|
-
(i(!0), f(
|
|
4755
|
+
(i(!0), f(k, null, F(a.featuresCols, (u) => (i(), f("div", {
|
|
4756
4756
|
key: u.name
|
|
4757
4757
|
}, [
|
|
4758
|
-
s("p", _i,
|
|
4758
|
+
s("p", _i, x(u.ua), 1),
|
|
4759
4759
|
s("p", ki, [
|
|
4760
|
-
Array.isArray(c[u == null ? void 0 : u.name]) ? (i(!0), f(
|
|
4760
|
+
Array.isArray(c[u == null ? void 0 : u.name]) ? (i(!0), f(k, { key: 0 }, F(c[u == null ? void 0 : u.name], (d, l) => (i(), f("span", {
|
|
4761
4761
|
key: l,
|
|
4762
4762
|
class: "bg-gray-200 px-1 py-0.5 rounded-lg mr-1"
|
|
4763
|
-
},
|
|
4764
|
-
u.type === "date" ? (i(), f(
|
|
4765
|
-
H(
|
|
4766
|
-
], 64)) : (i(), f(
|
|
4767
|
-
H(
|
|
4763
|
+
}, x(d), 1))), 128)) : (i(), f(k, { key: 1 }, [
|
|
4764
|
+
u.type === "date" ? (i(), f(k, { key: 0 }, [
|
|
4765
|
+
H(x(a.formatDate(c[u == null ? void 0 : u.name]) || "Немає даних"), 1)
|
|
4766
|
+
], 64)) : (i(), f(k, { key: 1 }, [
|
|
4767
|
+
H(x(c[u == null ? void 0 : u.name] || "Немає даних"), 1)
|
|
4768
4768
|
], 64))
|
|
4769
4769
|
], 64))
|
|
4770
4770
|
])
|
|
@@ -4857,7 +4857,7 @@ const Li = /* @__PURE__ */ O(di, [["render", Ci]]), ji = {
|
|
|
4857
4857
|
class: "inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold border-transparent bg-gray-100 text-gray-800"
|
|
4858
4858
|
}, Pi = { class: "p-6 pt-0 pb-4" }, Ti = { class: "grid grid-cols-2 gap-4" }, Ui = { class: "text-sm text-gray-500" }, zi = { class: "font-medium" }, Ei = { class: "flex items-center p-6 pt-0" }, Bi = ["href"];
|
|
4859
4859
|
function Oi(e, t, o, r, p, a) {
|
|
4860
|
-
return i(!0), f(
|
|
4860
|
+
return i(!0), f(k, null, F(o.items, (c) => {
|
|
4861
4861
|
var m, g;
|
|
4862
4862
|
return i(), f("div", {
|
|
4863
4863
|
key: c.id,
|
|
@@ -4866,37 +4866,37 @@ function Oi(e, t, o, r, p, a) {
|
|
|
4866
4866
|
}, [
|
|
4867
4867
|
s("div", Si, [
|
|
4868
4868
|
s("div", Fi, [
|
|
4869
|
-
s("h3", Ii,
|
|
4870
|
-
Array.isArray(a.categoryCol) && a.categoryCol.length ? (i(!0), f(
|
|
4869
|
+
s("h3", Ii, x(c[`${(m = a.titleCol) == null ? void 0 : m.name}_text`] || c[(g = a.titleCol) == null ? void 0 : g.name] || Object.keys(c)[0] || "Не вказано"), 1),
|
|
4870
|
+
Array.isArray(a.categoryCol) && a.categoryCol.length ? (i(!0), f(k, { key: 0 }, F(a.categoryCol, (u) => (i(), f(k, {
|
|
4871
4871
|
key: u.name
|
|
4872
4872
|
}, [
|
|
4873
|
-
c[u.name] ? (i(), f("div", Vi,
|
|
4873
|
+
c[u.name] ? (i(), f("div", Vi, x(c[`${u.name}_text`] || c[u.name]), 1)) : $("", !0)
|
|
4874
4874
|
], 64))), 128)) : $("", !0),
|
|
4875
4875
|
Array.isArray(a.tagsCol) && a.tagsCol.length ? (i(), f("div", Ai, [
|
|
4876
|
-
(i(!0), f(
|
|
4876
|
+
(i(!0), f(k, null, F(a.tagsCol, (u) => (i(), f("div", {
|
|
4877
4877
|
key: u.name,
|
|
4878
4878
|
class: "flex flex-wrap gap-1 ml-2"
|
|
4879
4879
|
}, [
|
|
4880
|
-
c[u.name] ? (i(), f("span", Mi,
|
|
4880
|
+
c[u.name] ? (i(), f("span", Mi, x(c[`${u.name}_text`] || c[u.name]), 1)) : $("", !0)
|
|
4881
4881
|
]))), 128))
|
|
4882
4882
|
])) : $("", !0)
|
|
4883
4883
|
])
|
|
4884
4884
|
]),
|
|
4885
4885
|
s("div", Pi, [
|
|
4886
4886
|
s("div", Ti, [
|
|
4887
|
-
(i(!0), f(
|
|
4887
|
+
(i(!0), f(k, null, F(a.featuresCols, (u) => (i(), f("div", {
|
|
4888
4888
|
key: u.name
|
|
4889
4889
|
}, [
|
|
4890
|
-
s("p", Ui,
|
|
4890
|
+
s("p", Ui, x(u.ua), 1),
|
|
4891
4891
|
s("p", zi, [
|
|
4892
|
-
Array.isArray(c[u == null ? void 0 : u.name]) ? (i(!0), f(
|
|
4892
|
+
Array.isArray(c[u == null ? void 0 : u.name]) ? (i(!0), f(k, { key: 0 }, F(c[u == null ? void 0 : u.name], (d, l) => (i(), f("span", {
|
|
4893
4893
|
key: l,
|
|
4894
4894
|
class: "bg-gray-200 px-1 py-0.5 rounded-lg mr-1"
|
|
4895
|
-
},
|
|
4896
|
-
u.type === "date" ? (i(), f(
|
|
4897
|
-
H(
|
|
4898
|
-
], 64)) : (i(), f(
|
|
4899
|
-
H(
|
|
4895
|
+
}, x(d), 1))), 128)) : (i(), f(k, { key: 1 }, [
|
|
4896
|
+
u.type === "date" ? (i(), f(k, { key: 0 }, [
|
|
4897
|
+
H(x(a.formatDate(c[u == null ? void 0 : u.name]) || "Немає даних"), 1)
|
|
4898
|
+
], 64)) : (i(), f(k, { key: 1 }, [
|
|
4899
|
+
H(x(c[u == null ? void 0 : u.name] || "Немає даних"), 1)
|
|
4900
4900
|
], 64))
|
|
4901
4901
|
], 64))
|
|
4902
4902
|
])
|
|
@@ -4979,7 +4979,7 @@ const Di = /* @__PURE__ */ O(ji, [["render", Oi]]), qi = {
|
|
|
4979
4979
|
class: "inline-flex items-center rounded-full font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 hover:bg-secondary/80 bg-white border border-gray-200 text-gray-700 text-xs px-1.5 py-0"
|
|
4980
4980
|
}, lc = { class: "col-span-2 flex flex-col justify-center items-center bg-gray-50 border-l p-2" }, ac = { class: "w-full space-y-2" }, ic = ["href"];
|
|
4981
4981
|
function cc(e, t, o, r, p, a) {
|
|
4982
|
-
return i(!0), f(
|
|
4982
|
+
return i(!0), f(k, null, F(o.items, (c) => {
|
|
4983
4983
|
var m, g, u, d, l;
|
|
4984
4984
|
return i(), f("div", {
|
|
4985
4985
|
key: c.id,
|
|
@@ -5002,34 +5002,34 @@ function cc(e, t, o, r, p, a) {
|
|
|
5002
5002
|
])])),
|
|
5003
5003
|
s("div", Zi, [
|
|
5004
5004
|
s("div", Yi, [
|
|
5005
|
-
s("h3", Gi,
|
|
5006
|
-
Array.isArray(a.categoryCol) && a.categoryCol.length ? (i(!0), f(
|
|
5005
|
+
s("h3", Gi, x(c[`${(u = a.titleCol) == null ? void 0 : u.name}_text`] || c[(d = a.titleCol) == null ? void 0 : d.name] || Object.keys(c)[0] || "Не вказано"), 1),
|
|
5006
|
+
Array.isArray(a.categoryCol) && a.categoryCol.length ? (i(!0), f(k, { key: 0 }, F(a.categoryCol, (n) => (i(), f(k, {
|
|
5007
5007
|
key: n.name
|
|
5008
5008
|
}, [
|
|
5009
|
-
c[n.name] ? (i(), f("div", Ji,
|
|
5009
|
+
c[n.name] ? (i(), f("div", Ji, x(c[`${n.name}_text`] || c[n.name]), 1)) : $("", !0)
|
|
5010
5010
|
], 64))), 128)) : $("", !0)
|
|
5011
5011
|
]),
|
|
5012
|
-
s("p", Ki,
|
|
5012
|
+
s("p", Ki, x(c[(l = a.descCol) == null ? void 0 : l.name]), 1),
|
|
5013
5013
|
s("div", Qi, [
|
|
5014
|
-
(i(!0), f(
|
|
5014
|
+
(i(!0), f(k, null, F(a.featuresCols, (n) => (i(), f("div", {
|
|
5015
5015
|
key: n.name,
|
|
5016
5016
|
class: "flex items-center"
|
|
5017
5017
|
}, [
|
|
5018
|
-
s("span", Xi,
|
|
5018
|
+
s("span", Xi, x((n == null ? void 0 : n.ua) || n.label || n.name) + ":", 1),
|
|
5019
5019
|
n.icon ? (i(), f("span", {
|
|
5020
5020
|
key: 0,
|
|
5021
5021
|
class: "mr-1 flex-shrink-0",
|
|
5022
5022
|
innerHTML: n.icon
|
|
5023
5023
|
}, null, 8, ec)) : $("", !0),
|
|
5024
5024
|
s("span", tc, [
|
|
5025
|
-
Array.isArray(c[n == null ? void 0 : n.name]) ? (i(!0), f(
|
|
5025
|
+
Array.isArray(c[n == null ? void 0 : n.name]) ? (i(!0), f(k, { key: 0 }, F(c[n == null ? void 0 : n.name], (y, v) => (i(), f("span", {
|
|
5026
5026
|
key: v,
|
|
5027
5027
|
class: "bg-gray-200 px-1 py-0.5 rounded-lg mr-1"
|
|
5028
|
-
},
|
|
5029
|
-
n.type === "date" ? (i(), f(
|
|
5030
|
-
H(
|
|
5031
|
-
], 64)) : (i(), f(
|
|
5032
|
-
H(
|
|
5028
|
+
}, x(y), 1))), 128)) : (i(), f(k, { key: 1 }, [
|
|
5029
|
+
n.type === "date" ? (i(), f(k, { key: 0 }, [
|
|
5030
|
+
H(x(a.formatDate(c[n == null ? void 0 : n.name]) || "Немає даних"), 1)
|
|
5031
|
+
], 64)) : (i(), f(k, { key: 1 }, [
|
|
5032
|
+
H(x(c[n == null ? void 0 : n.name] || "Немає даних"), 1)
|
|
5033
5033
|
], 64))
|
|
5034
5034
|
], 64))
|
|
5035
5035
|
])
|
|
@@ -5037,13 +5037,13 @@ function cc(e, t, o, r, p, a) {
|
|
|
5037
5037
|
])
|
|
5038
5038
|
]),
|
|
5039
5039
|
s("div", sc, [
|
|
5040
|
-
s("p", oc, " Теги: " +
|
|
5040
|
+
s("p", oc, " Теги: " + x(a.tagsCol.length && c[a.tagsCol[0].name] ? "" : "відсутні"), 1),
|
|
5041
5041
|
Array.isArray(a.tagsCol) && a.tagsCol.length ? (i(), f("div", rc, [
|
|
5042
|
-
(i(!0), f(
|
|
5042
|
+
(i(!0), f(k, null, F(a.tagsCol, (n) => (i(), f("div", {
|
|
5043
5043
|
key: n.name,
|
|
5044
5044
|
class: "flex flex-wrap gap-1"
|
|
5045
5045
|
}, [
|
|
5046
|
-
c[n.name] ? (i(), f("span", nc,
|
|
5046
|
+
c[n.name] ? (i(), f("span", nc, x(c[`${n.name}_text`] || c[n.name]), 1)) : $("", !0)
|
|
5047
5047
|
]))), 128))
|
|
5048
5048
|
])) : $("", !0)
|
|
5049
5049
|
]),
|
|
@@ -5115,7 +5115,7 @@ const uc = /* @__PURE__ */ O(qi, [["render", cc]]), at = {
|
|
|
5115
5115
|
class: "w-[220px]"
|
|
5116
5116
|
}, null, 8, ["modelValue"])
|
|
5117
5117
|
]),
|
|
5118
|
-
s("h2", fc, " Превʼю таблиці (" +
|
|
5118
|
+
s("h2", fc, " Превʼю таблиці (" + x(g.value) + ") ", 1),
|
|
5119
5119
|
m.value && u.value.length && a.value.length ? (i(), N(de(m.value), {
|
|
5120
5120
|
items: u.value,
|
|
5121
5121
|
columns: a.value,
|
|
@@ -5203,11 +5203,11 @@ const uc = /* @__PURE__ */ O(qi, [["render", cc]]), at = {
|
|
|
5203
5203
|
]),
|
|
5204
5204
|
s("div", _c, [
|
|
5205
5205
|
s("div", kc, [
|
|
5206
|
-
(i(), f(
|
|
5206
|
+
(i(), f(k, null, F(a, (y) => s("button", {
|
|
5207
5207
|
key: y.id,
|
|
5208
5208
|
onClick: (v) => r.value = y.id,
|
|
5209
5209
|
class: Y(["inline-flex flex-1 items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm data-[state=active]:bg-blue-50 data-[state=active]:text-blue-700 data-[state=active]:border-blue-200", y.id === r.value ? "bg-blue-50 text-blue-700 border-blue-200" : ""])
|
|
5210
|
-
},
|
|
5210
|
+
}, x(y.name), 11, $c)), 64))
|
|
5211
5211
|
])
|
|
5212
5212
|
]),
|
|
5213
5213
|
(i(), N(de(c[r.value]), {
|
|
@@ -5357,18 +5357,18 @@ const Rc = /* @__PURE__ */ O(Dc, [["render", Nc]]), Hc = { class: "flex flex-col
|
|
|
5357
5357
|
if (u) return v(u);
|
|
5358
5358
|
if (window.monaco)
|
|
5359
5359
|
return u = window.monaco, v(u);
|
|
5360
|
-
const h = (
|
|
5360
|
+
const h = (_) => {
|
|
5361
5361
|
if (Array.from(document.styleSheets).some((P) => {
|
|
5362
5362
|
var V;
|
|
5363
|
-
return (V = P == null ? void 0 : P.href) == null ? void 0 : V.includes(
|
|
5363
|
+
return (V = P == null ? void 0 : P.href) == null ? void 0 : V.includes(_);
|
|
5364
5364
|
})) return;
|
|
5365
5365
|
const D = document.createElement("link");
|
|
5366
|
-
D.rel = "stylesheet", D.href =
|
|
5367
|
-
},
|
|
5366
|
+
D.rel = "stylesheet", D.href = _, document.head.appendChild(D);
|
|
5367
|
+
}, w = (_) => new Promise((M, D) => {
|
|
5368
5368
|
const P = document.createElement("script");
|
|
5369
|
-
P.src =
|
|
5369
|
+
P.src = _, P.onload = () => M(), P.onerror = D, document.body.appendChild(P);
|
|
5370
5370
|
});
|
|
5371
|
-
h("https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.52.0/min/vs/editor/editor.main.min.css"),
|
|
5371
|
+
h("https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.52.0/min/vs/editor/editor.main.min.css"), w("https://cdn.jsdelivr.net/npm/js-yaml@4.1.0/dist/js-yaml.min.js"), w("https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.52.0/min/vs/loader.min.js").then(() => {
|
|
5372
5372
|
window.require.config({
|
|
5373
5373
|
paths: { vs: "https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.52.0/min/vs" }
|
|
5374
5374
|
}), window.require(["vs/editor/editor.main"], () => {
|
|
@@ -5470,7 +5470,7 @@ const Rc = /* @__PURE__ */ O(Dc, [["render", Nc]]), Hc = { class: "flex flex-col
|
|
|
5470
5470
|
return (c, m) => (i(), f("div", Kc, [
|
|
5471
5471
|
m[1] || (m[1] = s("label", { class: "text-sm font-medium text-gray-600" }, "Режим відображення", -1)),
|
|
5472
5472
|
s("div", Qc, [
|
|
5473
|
-
(i(!0), f(
|
|
5473
|
+
(i(!0), f(k, null, F(W(a), (g) => (i(), f("div", {
|
|
5474
5474
|
key: g.value,
|
|
5475
5475
|
onClick: (u) => p(g.value),
|
|
5476
5476
|
class: Y(["flex items-center justify-center space-x-2 rounded-lg p-2 border transition-all duration-300 cursor-pointer", [
|
|
@@ -5505,7 +5505,7 @@ const Rc = /* @__PURE__ */ O(Dc, [["render", Nc]]), Hc = { class: "flex flex-col
|
|
|
5505
5505
|
], 8, eu),
|
|
5506
5506
|
s("label", {
|
|
5507
5507
|
class: Y(["text-xs font-medium cursor-pointer", c.modelValue === g.value ? "text-gray-700" : "text-gray-600"])
|
|
5508
|
-
},
|
|
5508
|
+
}, x(g.label), 3)
|
|
5509
5509
|
], 10, Xc))), 128))
|
|
5510
5510
|
])
|
|
5511
5511
|
]));
|
|
@@ -5557,7 +5557,7 @@ const Rc = /* @__PURE__ */ O(Dc, [["render", Nc]]), Hc = { class: "flex flex-col
|
|
|
5557
5557
|
we({ type: "error", title: "Помилка", message: `Failed to save ${p.sectionKey}` }), console.error(l);
|
|
5558
5558
|
}
|
|
5559
5559
|
}
|
|
5560
|
-
return (l, n) => (i(), f(
|
|
5560
|
+
return (l, n) => (i(), f(k, null, [
|
|
5561
5561
|
s("div", ou, [
|
|
5562
5562
|
s("button", {
|
|
5563
5563
|
onClick: n[0] || (n[0] = (y) => m.value = !0),
|
|
@@ -5601,7 +5601,7 @@ const Rc = /* @__PURE__ */ O(Dc, [["render", Nc]]), Hc = { class: "flex flex-col
|
|
|
5601
5601
|
s("path", { d: "M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7" }),
|
|
5602
5602
|
s("path", { d: "M7 3v4a1 1 0 0 0 1 1h7" })
|
|
5603
5603
|
], -1)),
|
|
5604
|
-
H(" " +
|
|
5604
|
+
H(" " + x(l.saveButtonLabel), 1)
|
|
5605
5605
|
])
|
|
5606
5606
|
]),
|
|
5607
5607
|
l.withViewMode ? (i(), N(su, {
|
|
@@ -5640,7 +5640,7 @@ const Rc = /* @__PURE__ */ O(Dc, [["render", Nc]]), Hc = { class: "flex flex-col
|
|
|
5640
5640
|
default: q(() => [
|
|
5641
5641
|
s("div", nu, [
|
|
5642
5642
|
s("div", lu, [
|
|
5643
|
-
(i(!0), f(
|
|
5643
|
+
(i(!0), f(k, null, F(l.fields, (y) => (i(), f("label", {
|
|
5644
5644
|
key: y.name,
|
|
5645
5645
|
class: "flex items-center hover:bg-gray-100 rounded p-2 cursor-pointer"
|
|
5646
5646
|
}, [
|
|
@@ -5660,8 +5660,8 @@ const Rc = /* @__PURE__ */ O(Dc, [["render", Nc]]), Hc = { class: "flex flex-col
|
|
|
5660
5660
|
(i(), N(de(`icon-${y.type}`), { class: "w-4 h-4" }))
|
|
5661
5661
|
], 2)) : $("", !0),
|
|
5662
5662
|
s("div", null, [
|
|
5663
|
-
s("p", cu,
|
|
5664
|
-
s("p", uu,
|
|
5663
|
+
s("p", cu, x(y.name), 1),
|
|
5664
|
+
s("p", uu, x(y.title), 1)
|
|
5665
5665
|
])
|
|
5666
5666
|
])
|
|
5667
5667
|
]))), 128))
|
|
@@ -6009,7 +6009,7 @@ const hu = /* @__PURE__ */ re({
|
|
|
6009
6009
|
},
|
|
6010
6010
|
controls: { navigation: !0, scale: !0 }
|
|
6011
6011
|
});
|
|
6012
|
-
return t({ ctx: r }), (p, a) => (i(), f(
|
|
6012
|
+
return t({ ctx: r }), (p, a) => (i(), f(k, null, [
|
|
6013
6013
|
s("div", {
|
|
6014
6014
|
ref_key: "el",
|
|
6015
6015
|
ref: o,
|
|
@@ -6106,12 +6106,12 @@ function kt(e, t) {
|
|
|
6106
6106
|
const V = o.value.getSource(c);
|
|
6107
6107
|
V && "setTiles" in V && V.setTiles(P);
|
|
6108
6108
|
}
|
|
6109
|
-
function
|
|
6109
|
+
function w(P) {
|
|
6110
6110
|
if (!o.value) return;
|
|
6111
6111
|
const V = o.value.getSource(c);
|
|
6112
6112
|
V && "setData" in V && V.setData(P);
|
|
6113
6113
|
}
|
|
6114
|
-
function
|
|
6114
|
+
function _(P, V) {
|
|
6115
6115
|
o.value && o.value.setFeatureState({ source: c, ...P }, V);
|
|
6116
6116
|
}
|
|
6117
6117
|
function M(P, V) {
|
|
@@ -6133,10 +6133,10 @@ function kt(e, t) {
|
|
|
6133
6133
|
updatePaint: y,
|
|
6134
6134
|
updateLayout: v,
|
|
6135
6135
|
updateFilter: b,
|
|
6136
|
-
setData:
|
|
6136
|
+
setData: w,
|
|
6137
6137
|
setTiles: h,
|
|
6138
6138
|
setStyle: n,
|
|
6139
|
-
setFeatureState:
|
|
6139
|
+
setFeatureState: _,
|
|
6140
6140
|
removeFeatureState: M,
|
|
6141
6141
|
remove: D,
|
|
6142
6142
|
/** raw accessors (if needed) */
|
|
@@ -6175,7 +6175,7 @@ const wu = { class: "flex flex-row gap-x-3 z-10 relative widget" }, _u = ["onCli
|
|
|
6175
6175
|
r.setVisible(!0), r.setTiles([t[a].url]);
|
|
6176
6176
|
}
|
|
6177
6177
|
return (a, c) => (i(), f("div", wu, [
|
|
6178
|
-
(i(), f(
|
|
6178
|
+
(i(), f(k, null, F(t, (m, g) => s("div", {
|
|
6179
6179
|
key: g,
|
|
6180
6180
|
onClick: (u) => p(g)
|
|
6181
6181
|
}, [
|
|
@@ -6256,7 +6256,7 @@ const wu = { class: "flex flex-row gap-x-3 z-10 relative widget" }, _u = ["onCli
|
|
|
6256
6256
|
a == null || a(), a = null;
|
|
6257
6257
|
}), (d, l) => p.value.length ? (i(), f("div", Cu, [
|
|
6258
6258
|
s("div", Lu, [
|
|
6259
|
-
(i(!0), f(
|
|
6259
|
+
(i(!0), f(k, null, F(p.value, (n) => (i(), f("div", {
|
|
6260
6260
|
key: n.id,
|
|
6261
6261
|
class: "flex items-center"
|
|
6262
6262
|
}, [
|
|
@@ -6265,7 +6265,7 @@ const wu = { class: "flex flex-row gap-x-3 z-10 relative widget" }, _u = ["onCli
|
|
|
6265
6265
|
style: ve({ background: n.color })
|
|
6266
6266
|
}, null, 4),
|
|
6267
6267
|
s("span", ju, [
|
|
6268
|
-
s("span", null,
|
|
6268
|
+
s("span", null, x(n.label), 1)
|
|
6269
6269
|
])
|
|
6270
6270
|
]))), 128))
|
|
6271
6271
|
])
|
|
@@ -6281,13 +6281,13 @@ function Fu() {
|
|
|
6281
6281
|
return { key: b, label: b };
|
|
6282
6282
|
const h = (b == null ? void 0 : b.name) || (b == null ? void 0 : b.field);
|
|
6283
6283
|
if (!h) return null;
|
|
6284
|
-
const
|
|
6285
|
-
return { key: h, label:
|
|
6284
|
+
const w = (b == null ? void 0 : b.label) || (b == null ? void 0 : b.ua) || (b == null ? void 0 : b.title) || h;
|
|
6285
|
+
return { key: h, label: w };
|
|
6286
6286
|
}).filter((b) => !!(b && b.key));
|
|
6287
6287
|
}
|
|
6288
6288
|
function u(v, b) {
|
|
6289
|
-
var
|
|
6290
|
-
const h = (
|
|
6289
|
+
var w;
|
|
6290
|
+
const h = (w = v == null ? void 0 : v.getCanvas) == null ? void 0 : w.call(v);
|
|
6291
6291
|
h && (h.style.cursor = b ?? "");
|
|
6292
6292
|
}
|
|
6293
6293
|
function d(v) {
|
|
@@ -6297,26 +6297,26 @@ function Fu() {
|
|
|
6297
6297
|
if (!v.length) return null;
|
|
6298
6298
|
if (!m) return v[0];
|
|
6299
6299
|
const b = (h) => {
|
|
6300
|
-
var
|
|
6300
|
+
var w;
|
|
6301
6301
|
if (m != null && m.layerIds && m.layerIds.length) {
|
|
6302
|
-
const
|
|
6303
|
-
if (!
|
|
6302
|
+
const _ = (w = h.layer) == null ? void 0 : w.id;
|
|
6303
|
+
if (!_ || !m.layerIds.includes(String(_))) return !1;
|
|
6304
6304
|
}
|
|
6305
6305
|
return !(m != null && m.sourceId && String(h.source) !== m.sourceId);
|
|
6306
6306
|
};
|
|
6307
6307
|
return v.find(b) || null;
|
|
6308
6308
|
}
|
|
6309
6309
|
async function n(v, b) {
|
|
6310
|
-
var
|
|
6310
|
+
var _;
|
|
6311
6311
|
await t();
|
|
6312
6312
|
const h = e.value;
|
|
6313
6313
|
if (!h) return;
|
|
6314
|
-
const
|
|
6314
|
+
const w = g(v);
|
|
6315
6315
|
if (d(h), m = b ? {
|
|
6316
6316
|
...b,
|
|
6317
6317
|
sourceId: b.sourceId !== void 0 ? String(b.sourceId) : void 0,
|
|
6318
|
-
layerIds: (
|
|
6319
|
-
} : null, !
|
|
6318
|
+
layerIds: (_ = b.layerIds) == null ? void 0 : _.map((M) => String(M))
|
|
6319
|
+
} : null, !w.length) {
|
|
6320
6320
|
o.value = null, r.value = null;
|
|
6321
6321
|
return;
|
|
6322
6322
|
}
|
|
@@ -6330,7 +6330,7 @@ function Fu() {
|
|
|
6330
6330
|
return;
|
|
6331
6331
|
}
|
|
6332
6332
|
const V = P.properties || {};
|
|
6333
|
-
r.value = [M.point.x, M.point.y], o.value =
|
|
6333
|
+
r.value = [M.point.x, M.point.y], o.value = w.map((oe) => ({
|
|
6334
6334
|
field: oe.label,
|
|
6335
6335
|
value: V[oe.key]
|
|
6336
6336
|
})), p.value = P, u(h, "default");
|
|
@@ -6366,21 +6366,21 @@ const Iu = { class: "popup-card relative w-full overflow-hidden rounded-2xl bord
|
|
|
6366
6366
|
return ((h = p.value) == null ? void 0 : h.properties) ?? {};
|
|
6367
6367
|
}), n = I(
|
|
6368
6368
|
() => u.value.filter((h) => h.meta === "image").map((h) => {
|
|
6369
|
-
var
|
|
6370
|
-
return (
|
|
6369
|
+
var w;
|
|
6370
|
+
return (w = l.value) == null ? void 0 : w[h.name || h.field || ""];
|
|
6371
6371
|
}).filter((h) => !!h)
|
|
6372
6372
|
), y = I(() => {
|
|
6373
6373
|
var M;
|
|
6374
6374
|
const h = u.value.find((D) => D.meta === "title");
|
|
6375
6375
|
if (!h) return "";
|
|
6376
|
-
const
|
|
6377
|
-
return (
|
|
6376
|
+
const w = h.name || h.field;
|
|
6377
|
+
return (w ? (M = l.value) == null ? void 0 : M[w] : void 0) ?? "";
|
|
6378
6378
|
}), v = I(() => u.value.filter((h) => h.meta !== "image").filter((h) => h.meta !== "title").map((h) => {
|
|
6379
6379
|
var D;
|
|
6380
|
-
const
|
|
6380
|
+
const w = h.name || h.field, M = (w ? (D = l.value) == null ? void 0 : D[w] : void 0) ?? "—";
|
|
6381
6381
|
return {
|
|
6382
|
-
key:
|
|
6383
|
-
label: h.ua || h.label || h.title ||
|
|
6382
|
+
key: w || String(h.label || h.ua || Math.random()),
|
|
6383
|
+
label: h.ua || h.label || h.title || w || "",
|
|
6384
6384
|
display: M,
|
|
6385
6385
|
meta: h.meta
|
|
6386
6386
|
};
|
|
@@ -6392,24 +6392,24 @@ const Iu = { class: "popup-card relative w-full overflow-hidden rounded-2xl bord
|
|
|
6392
6392
|
}
|
|
6393
6393
|
const h = m.value;
|
|
6394
6394
|
h.offsetWidth, h.offsetHeight;
|
|
6395
|
-
const
|
|
6395
|
+
const w = r.value[0] + 18, _ = r.value[1] + 18;
|
|
6396
6396
|
g.value = {
|
|
6397
|
-
left: `${
|
|
6398
|
-
top: `${
|
|
6397
|
+
left: `${w}px`,
|
|
6398
|
+
top: `${_}px`
|
|
6399
6399
|
};
|
|
6400
6400
|
}
|
|
6401
6401
|
return X(
|
|
6402
6402
|
() => ({ fields: t.fields, sourceId: t.sourceId }),
|
|
6403
|
-
({ fields: h, sourceId:
|
|
6404
|
-
const
|
|
6405
|
-
h && h.length ? a(h, { sourceId:
|
|
6403
|
+
({ fields: h, sourceId: w }) => {
|
|
6404
|
+
const _ = typeof w == "number" ? String(w) : w || void 0;
|
|
6405
|
+
h && h.length ? a(h, { sourceId: _ }).catch((M) => console.error("Failed to enable popup", M)) : c();
|
|
6406
6406
|
},
|
|
6407
6407
|
{ immediate: !0, deep: !0 }
|
|
6408
6408
|
), X([r, o], () => {
|
|
6409
6409
|
ze(() => b());
|
|
6410
6410
|
}), Ge(() => {
|
|
6411
6411
|
c();
|
|
6412
|
-
}), (h,
|
|
6412
|
+
}), (h, w) => d.value ? (i(), f("div", {
|
|
6413
6413
|
key: 0,
|
|
6414
6414
|
ref_key: "popupRef",
|
|
6415
6415
|
ref: m,
|
|
@@ -6424,17 +6424,17 @@ const Iu = { class: "popup-card relative w-full overflow-hidden rounded-2xl bord
|
|
|
6424
6424
|
class: "h-40 w-full object-cover"
|
|
6425
6425
|
}, null, 8, Au)
|
|
6426
6426
|
])) : $("", !0),
|
|
6427
|
-
y.value ? (i(), f("div", Mu,
|
|
6427
|
+
y.value ? (i(), f("div", Mu, x(y.value), 1)) : $("", !0),
|
|
6428
6428
|
s("div", Pu, [
|
|
6429
6429
|
s("table", Tu, [
|
|
6430
6430
|
s("tbody", null, [
|
|
6431
|
-
(i(!0), f(
|
|
6432
|
-
key:
|
|
6431
|
+
(i(!0), f(k, null, F(v.value, (_) => (i(), f("tr", {
|
|
6432
|
+
key: _.key,
|
|
6433
6433
|
class: "align-top"
|
|
6434
6434
|
}, [
|
|
6435
|
-
s("td", Uu,
|
|
6435
|
+
s("td", Uu, x(_.label), 1),
|
|
6436
6436
|
s("td", zu, [
|
|
6437
|
-
|
|
6437
|
+
_.meta === "badge" ? (i(), f("span", Eu, x(_.display), 1)) : (i(), f("span", Bu, x(_.display), 1))
|
|
6438
6438
|
])
|
|
6439
6439
|
]))), 128))
|
|
6440
6440
|
])
|
|
@@ -6518,7 +6518,7 @@ function Ru(e) {
|
|
|
6518
6518
|
});
|
|
6519
6519
|
}
|
|
6520
6520
|
async function c(g, u) {
|
|
6521
|
-
var h,
|
|
6521
|
+
var h, w, _;
|
|
6522
6522
|
const d = Nu(u, p.value);
|
|
6523
6523
|
if (!d) return;
|
|
6524
6524
|
await o();
|
|
@@ -6531,7 +6531,7 @@ function Ru(e) {
|
|
|
6531
6531
|
const v = String(y[0]).split("?filter=")[0];
|
|
6532
6532
|
if (!v) return;
|
|
6533
6533
|
const b = g ? `${v}?filter=${encodeURIComponent(g)}` : v;
|
|
6534
|
-
typeof n.setTiles == "function" ? n.setTiles([b]) : Array.isArray(n.tiles) ? n.tiles = [b] : Array.isArray((
|
|
6534
|
+
typeof n.setTiles == "function" ? n.setTiles([b]) : Array.isArray(n.tiles) ? n.tiles = [b] : Array.isArray((w = n.options) == null ? void 0 : w.tiles) && (n.options.tiles = [b]), r.value = g, (_ = l.triggerRepaint) == null || _.call(l);
|
|
6535
6535
|
}
|
|
6536
6536
|
async function m(g) {
|
|
6537
6537
|
await c("", g);
|
|
@@ -6590,8 +6590,8 @@ const Hu = /* @__PURE__ */ re({
|
|
|
6590
6590
|
__name: "service",
|
|
6591
6591
|
setup(e) {
|
|
6592
6592
|
const t = ft(), o = mt(), r = t.params.id, p = j(null), a = j([]), c = j(null), m = j(""), g = j([]), u = j([]), d = I(() => {
|
|
6593
|
-
var h,
|
|
6594
|
-
return ((h = c.value) == null ? void 0 : h.id) ?? ((
|
|
6593
|
+
var h, w;
|
|
6594
|
+
return ((h = c.value) == null ? void 0 : h.id) ?? ((w = c.value) == null ? void 0 : w.service_id) ?? null;
|
|
6595
6595
|
}), l = [
|
|
6596
6596
|
{ key: "style", label: "Style", icon: Sc },
|
|
6597
6597
|
{ key: "popup", label: "Popup", icon: Oc },
|
|
@@ -6613,20 +6613,20 @@ const Hu = /* @__PURE__ */ re({
|
|
|
6613
6613
|
}
|
|
6614
6614
|
);
|
|
6615
6615
|
const v = async () => {
|
|
6616
|
-
var h,
|
|
6616
|
+
var h, w;
|
|
6617
6617
|
try {
|
|
6618
|
-
const
|
|
6619
|
-
if (!
|
|
6620
|
-
throw new Error(`${
|
|
6621
|
-
const M = await
|
|
6622
|
-
a.value = M || {}, g.value = [...M.popup], p.value = ((h = M == null ? void 0 : M.tokens) == null ? void 0 : h.edit) || null, c.value = M || null, m.value = M.style || "", g.value = Array.isArray((
|
|
6623
|
-
} catch (
|
|
6624
|
-
console.error("Failed to fetch map info",
|
|
6618
|
+
const _ = await fetch(`/api/gis-service/${r}`);
|
|
6619
|
+
if (!_.ok)
|
|
6620
|
+
throw new Error(`${_.status}`);
|
|
6621
|
+
const M = await _.json();
|
|
6622
|
+
a.value = M || {}, g.value = [...M.popup], p.value = ((h = M == null ? void 0 : M.tokens) == null ? void 0 : h.edit) || null, c.value = M || null, m.value = M.style || "", g.value = Array.isArray((w = c.value) == null ? void 0 : w.popup) ? [...c.value.popup] : [];
|
|
6623
|
+
} catch (_) {
|
|
6624
|
+
console.error("Failed to fetch map info", _);
|
|
6625
6625
|
}
|
|
6626
6626
|
try {
|
|
6627
6627
|
const M = await (await fetch(`/api/data/gis.services.table/${r}`)).json();
|
|
6628
|
-
} catch (
|
|
6629
|
-
console.error("Failed to fetch map info",
|
|
6628
|
+
} catch (_) {
|
|
6629
|
+
console.error("Failed to fetch map info", _);
|
|
6630
6630
|
}
|
|
6631
6631
|
};
|
|
6632
6632
|
X(
|
|
@@ -6646,17 +6646,17 @@ const Hu = /* @__PURE__ */ re({
|
|
|
6646
6646
|
card: mu,
|
|
6647
6647
|
filter: gu
|
|
6648
6648
|
};
|
|
6649
|
-
return (h,
|
|
6650
|
-
var
|
|
6649
|
+
return (h, w) => {
|
|
6650
|
+
var _, M, D, P;
|
|
6651
6651
|
return i(), f("div", Zu, [
|
|
6652
6652
|
s("div", Yu, [
|
|
6653
6653
|
s("div", Gu, [
|
|
6654
6654
|
s("div", Ju, [
|
|
6655
6655
|
s("div", Ku, [
|
|
6656
6656
|
s("button", {
|
|
6657
|
-
onClick:
|
|
6657
|
+
onClick: w[0] || (w[0] = (V) => h.$router.back()),
|
|
6658
6658
|
class: "inline-flex items-center px-3 py-1.5 rounded-md bg-sky-100 hover:bg-sky-200 text-sky-700 font-medium text-sm transition"
|
|
6659
|
-
}, [...
|
|
6659
|
+
}, [...w[4] || (w[4] = [
|
|
6660
6660
|
s("svg", {
|
|
6661
6661
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6662
6662
|
class: "h-4 w-4 mr-1",
|
|
@@ -6674,14 +6674,14 @@ const Hu = /* @__PURE__ */ re({
|
|
|
6674
6674
|
H(" Назад ", -1)
|
|
6675
6675
|
])]),
|
|
6676
6676
|
s("div", null, [
|
|
6677
|
-
s("div", Qu,
|
|
6678
|
-
s("div", Xu, " Сервіс: " +
|
|
6677
|
+
s("div", Qu, x((_ = c.value) == null ? void 0 : _.name), 1),
|
|
6678
|
+
s("div", Xu, " Сервіс: " + x((M = c.value) == null ? void 0 : M.service_key), 1)
|
|
6679
6679
|
])
|
|
6680
6680
|
]),
|
|
6681
6681
|
s("div", {
|
|
6682
6682
|
class: "max-w-xl text-xs text-gray-600 truncate",
|
|
6683
6683
|
title: (D = c.value) == null ? void 0 : D.description
|
|
6684
|
-
},
|
|
6684
|
+
}, x((P = c.value) == null ? void 0 : P.description), 9, ed)
|
|
6685
6685
|
])
|
|
6686
6686
|
]),
|
|
6687
6687
|
s("div", td, [
|
|
@@ -6723,7 +6723,7 @@ const Hu = /* @__PURE__ */ re({
|
|
|
6723
6723
|
s("div", ld, [
|
|
6724
6724
|
s("div", ad, [
|
|
6725
6725
|
s("div", id, [
|
|
6726
|
-
(i(), f(
|
|
6726
|
+
(i(), f(k, null, F(l, (V) => s("button", {
|
|
6727
6727
|
key: V.key,
|
|
6728
6728
|
type: "button",
|
|
6729
6729
|
role: "tab",
|
|
@@ -6738,7 +6738,7 @@ const Hu = /* @__PURE__ */ re({
|
|
|
6738
6738
|
onClick: (ee) => y.value = V.key
|
|
6739
6739
|
}, [
|
|
6740
6740
|
(i(), N(de(V.icon), { class: "h-3.5 w-3.5 mb-0.5" })),
|
|
6741
|
-
s("span", ud,
|
|
6741
|
+
s("span", ud, x(V.label), 1)
|
|
6742
6742
|
], 10, cd)), 64))
|
|
6743
6743
|
])
|
|
6744
6744
|
]),
|
|
@@ -6749,11 +6749,11 @@ const Hu = /* @__PURE__ */ re({
|
|
|
6749
6749
|
fields: a.value.fields,
|
|
6750
6750
|
"filter-fields": a.value.filters,
|
|
6751
6751
|
"style-yaml": m.value,
|
|
6752
|
-
"onUpdate:styleYaml":
|
|
6752
|
+
"onUpdate:styleYaml": w[1] || (w[1] = (V) => m.value = V),
|
|
6753
6753
|
"popup-fields": g.value,
|
|
6754
|
-
"onUpdate:popupFields":
|
|
6754
|
+
"onUpdate:popupFields": w[2] || (w[2] = (V) => g.value = V),
|
|
6755
6755
|
"filter-scheme": u.value,
|
|
6756
|
-
"onUpdate:filterScheme":
|
|
6756
|
+
"onUpdate:filterScheme": w[3] || (w[3] = (V) => u.value = V),
|
|
6757
6757
|
onUpdate: v
|
|
6758
6758
|
}, null, 40, ["map-info", "token", "fields", "filter-fields", "style-yaml", "popup-fields", "filter-scheme"]))
|
|
6759
6759
|
])
|