@opengis/partsmap 0.1.34 → 0.1.35
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.js +136 -128
- package/dist/index.umd.cjs +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as re, reactive as Ut, createApp as Tt, h as el, createElementBlock as d, openBlock as s, createElementVNode as t, createBlock as Q, resolveDynamicComponent as Re, toDisplayString as O, useAttrs as tl, computed as H, ref as A, watch as K, nextTick as Ee, useSlots as lt, toRaw as Je, Fragment as G, createCommentVNode as j, mergeProps as ge, createSlots as ll, withCtx as he, renderSlot as fe, unref as o, normalizeProps as ol, guardReactiveProps as al, Teleport as vt, renderList as se, normalizeClass as W, onMounted as Ie, onBeforeUnmount as We, withKeys as $t, withModifiers as Ze, createVNode as J, normalizeStyle as je, getCurrentInstance as xt, cloneVNode as nl, withDirectives as ue, vShow as $e, createTextVNode as de, isRef as rl, vModelText as Ke, createStaticVNode as it, resolveDirective as il, vModelCheckbox as sl } from "vue";
|
|
2
2
|
const mt = (e, i) => {
|
|
3
3
|
const a = e.__vccOpts || e;
|
|
4
4
|
for (const [r, l] of i)
|
|
5
5
|
a[r] = l;
|
|
6
6
|
return a;
|
|
7
7
|
};
|
|
8
|
-
|
|
8
|
+
re({
|
|
9
9
|
props: {
|
|
10
10
|
modelValue: { type: Boolean, default: () => !1 },
|
|
11
11
|
title: { type: String, default: () => "" },
|
|
@@ -114,7 +114,7 @@ function Cl(e, i) {
|
|
|
114
114
|
}, null, -1)
|
|
115
115
|
]));
|
|
116
116
|
}
|
|
117
|
-
const _l = /* @__PURE__ */ mt(wl, [["render", Cl]]), Sl = { class: "rounded-md border border-gray-300 bg-white p-4 shadow-sm" }, Ml = { class: "flex items-start gap-4 opacity-100 scale-5 transition-all duration-300" }, Vl = { class: "flex-1" }, Bl = { class: "font-medium text-gray-900" }, $l = { class: "mt-0.5 text-sm text-gray-700" }, Al = /* @__PURE__ */
|
|
117
|
+
const _l = /* @__PURE__ */ mt(wl, [["render", Cl]]), Sl = { class: "rounded-md border border-gray-300 bg-white p-4 shadow-sm" }, Ml = { class: "flex items-start gap-4 opacity-100 scale-5 transition-all duration-300" }, Vl = { class: "flex-1" }, Bl = { class: "font-medium text-gray-900" }, $l = { class: "mt-0.5 text-sm text-gray-700" }, Al = /* @__PURE__ */ re({
|
|
118
118
|
__name: "vs-notify",
|
|
119
119
|
props: {
|
|
120
120
|
type: {},
|
|
@@ -257,7 +257,7 @@ const Te = /* @__PURE__ */ De(Fl, [["render", El]]), Rl = { class: "flex items-c
|
|
|
257
257
|
}, Tl = {
|
|
258
258
|
key: 1,
|
|
259
259
|
class: "absolute right-2 flex size-3.5 items-center justify-center"
|
|
260
|
-
}, wt = /* @__PURE__ */
|
|
260
|
+
}, wt = /* @__PURE__ */ re({
|
|
261
261
|
__name: "list-item",
|
|
262
262
|
props: {
|
|
263
263
|
layout: {},
|
|
@@ -549,7 +549,7 @@ const _t = /* @__PURE__ */ De(Ql, [["render", Jl]]), eo = {
|
|
|
549
549
|
}, oo = {
|
|
550
550
|
key: 1,
|
|
551
551
|
class: "py-2 px-2"
|
|
552
|
-
}, ao = ["disabled"], no = /* @__PURE__ */
|
|
552
|
+
}, ao = ["disabled"], no = /* @__PURE__ */ re({
|
|
553
553
|
__name: "radio",
|
|
554
554
|
props: {
|
|
555
555
|
id: {},
|
|
@@ -779,7 +779,7 @@ const ro = {
|
|
|
779
779
|
}, po = {
|
|
780
780
|
key: 1,
|
|
781
781
|
class: "py-2 px-2 border-t"
|
|
782
|
-
}, fo = ["disabled"], vo = { class: "text-xs text-gray-500" }, Lt = /* @__PURE__ */
|
|
782
|
+
}, fo = ["disabled"], vo = { class: "text-xs text-gray-500" }, Lt = /* @__PURE__ */ re({
|
|
783
783
|
__name: "checkbox",
|
|
784
784
|
props: {
|
|
785
785
|
id: {},
|
|
@@ -963,7 +963,7 @@ class Gt {
|
|
|
963
963
|
return typeof i == "number" ? `max-w-[${i}px] min-w-[${i}px]` : typeof i == "string" ? i.endsWith("%") || i.endsWith("px") ? `max-w-[${i}]` : `max-w-${i}` : "w-full";
|
|
964
964
|
}
|
|
965
965
|
}
|
|
966
|
-
const wo = { class: "absolute bottom-2/4 translate-y-2/4 cursor-pointer left-3" }, ko = ["placeholder"], Co = /* @__PURE__ */
|
|
966
|
+
const wo = { class: "absolute bottom-2/4 translate-y-2/4 cursor-pointer left-3" }, ko = ["placeholder"], Co = /* @__PURE__ */ re({
|
|
967
967
|
__name: "text-input",
|
|
968
968
|
props: {
|
|
969
969
|
id: {},
|
|
@@ -1055,7 +1055,7 @@ const wo = { class: "absolute bottom-2/4 translate-y-2/4 cursor-pointer left-3"
|
|
|
1055
1055
|
}, Vo = {
|
|
1056
1056
|
key: 0,
|
|
1057
1057
|
class: "block text-xs font-medium text-gray-600 mb-1"
|
|
1058
|
-
}, Bo = ["placeholder", "disabled"], $o = ["disabled"], Ao = /* @__PURE__ */
|
|
1058
|
+
}, Bo = ["placeholder", "disabled"], $o = ["disabled"], Ao = /* @__PURE__ */ re({
|
|
1059
1059
|
__name: "range-input",
|
|
1060
1060
|
props: {
|
|
1061
1061
|
id: {},
|
|
@@ -1374,7 +1374,7 @@ const Po = {
|
|
|
1374
1374
|
}, Ro = {
|
|
1375
1375
|
key: 0,
|
|
1376
1376
|
class: "block text-xs font-medium text-gray-600 mb-1"
|
|
1377
|
-
}, Do = ["min", "disabled"], Oo = { class: "flex gap-1 px-2" }, Io = ["title", "onClick"], Uo = { class: "pt-2 px-2" }, To = ["disabled"], Ko = /* @__PURE__ */
|
|
1377
|
+
}, Do = ["min", "disabled"], Oo = { class: "flex gap-1 px-2" }, Io = ["title", "onClick"], Uo = { class: "pt-2 px-2" }, To = ["disabled"], Ko = /* @__PURE__ */ re({
|
|
1378
1378
|
__name: "date-input",
|
|
1379
1379
|
props: {
|
|
1380
1380
|
id: {},
|
|
@@ -1556,7 +1556,7 @@ function Ho(e, i) {
|
|
|
1556
1556
|
}
|
|
1557
1557
|
const h = A(b(e.modelValue)), g = A(""), x = A(!1), M = A(r), v = A("id"), _ = A("text"), V = A(!1), p = A(e.layout !== "popover" && r.length > l), f = A([]), z = A(0);
|
|
1558
1558
|
function U(L) {
|
|
1559
|
-
const X = L.find(Boolean) ?? {}, te = ["id", "value", "code", "key"].find((
|
|
1559
|
+
const X = L.find(Boolean) ?? {}, te = ["id", "value", "code", "key"].find((xe) => xe in X) ?? "id", ee = ["text", "label", "name", "title"].find((xe) => xe in X) ?? "text";
|
|
1560
1560
|
return { autoValueKey: te, autoLabelKey: ee };
|
|
1561
1561
|
}
|
|
1562
1562
|
if (r.length > 0) {
|
|
@@ -1590,8 +1590,8 @@ function Ho(e, i) {
|
|
|
1590
1590
|
return;
|
|
1591
1591
|
}
|
|
1592
1592
|
if (M.value = ee[n], M.value.length > 0) {
|
|
1593
|
-
const
|
|
1594
|
-
v.value =
|
|
1593
|
+
const xe = U(M.value);
|
|
1594
|
+
v.value = xe.autoValueKey, _.value = xe.autoLabelKey;
|
|
1595
1595
|
}
|
|
1596
1596
|
z.value = ee.total;
|
|
1597
1597
|
} catch (X) {
|
|
@@ -1682,7 +1682,7 @@ const Wo = { class: "h-[45px] shrink-0 px-[6px] py-[4px] flex items-center relat
|
|
|
1682
1682
|
}, Jo = {
|
|
1683
1683
|
key: 1,
|
|
1684
1684
|
class: "py-2 px-2 border-t"
|
|
1685
|
-
}, ea = ["disabled"], ta = { class: "text-xs text-gray-500" }, la = /* @__PURE__ */
|
|
1685
|
+
}, ea = ["disabled"], ta = { class: "text-xs text-gray-500" }, la = /* @__PURE__ */ re({
|
|
1686
1686
|
__name: "select",
|
|
1687
1687
|
props: {
|
|
1688
1688
|
id: {},
|
|
@@ -1864,7 +1864,7 @@ const Wo = { class: "h-[45px] shrink-0 px-[6px] py-[4px] flex items-center relat
|
|
|
1864
1864
|
}, ia = {
|
|
1865
1865
|
key: 1,
|
|
1866
1866
|
class: "pt-2 px-2 border-t"
|
|
1867
|
-
}, sa = ["disabled"], ua = { class: "text-xs text-gray-500" }, ca = /* @__PURE__ */
|
|
1867
|
+
}, sa = ["disabled"], ua = { class: "text-xs text-gray-500" }, ca = /* @__PURE__ */ re({
|
|
1868
1868
|
__name: "tag-field",
|
|
1869
1869
|
props: {
|
|
1870
1870
|
id: {},
|
|
@@ -1968,7 +1968,7 @@ const Wo = { class: "h-[45px] shrink-0 px-[6px] py-[4px] flex items-center relat
|
|
|
1968
1968
|
}), da = ["disabled", "title"], pa = { class: "flex w-full items-center justify-between gap-1 overflow-hidden text-left" }, fa = { class: "truncate text-ellipsis text-sm" }, va = {
|
|
1969
1969
|
key: 0,
|
|
1970
1970
|
class: "inline-flex min-h-[18px] min-w-[18px] items-center justify-center rounded-sm bg-blue-100 px-2 text-[11px] font-semibold text-blue-600"
|
|
1971
|
-
}, ma = { class: "w-full text-sm text-stone-800 bg-white shadow-[0_10px_40px_10px_rgba(0,0,0,0.08)] rounded-sm focus:outline-none focus:bg-stone-100 after:h-4 after:absolute after:-bottom-4 after:start-0 after:w-full before:h-4 before:absolute before:-top-4 before:start-0 before:w-full" }, ha = { class: "w-[360px] max-h-[500px] overflow-auto [&::-webkit-scrollbar]:h-2 [&::-webkit-scrollbar]:w-1 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-stone-100 [&::-webkit-scrollbar-thumb]:bg-stone-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500 before:w-full p-2" }, Mt = /* @__PURE__ */
|
|
1971
|
+
}, ma = { class: "w-full text-sm text-stone-800 bg-white shadow-[0_10px_40px_10px_rgba(0,0,0,0.08)] rounded-sm focus:outline-none focus:bg-stone-100 after:h-4 after:absolute after:-bottom-4 after:start-0 after:w-full before:h-4 before:absolute before:-top-4 before:start-0 before:w-full" }, ha = { class: "w-[360px] max-h-[500px] overflow-auto [&::-webkit-scrollbar]:h-2 [&::-webkit-scrollbar]:w-1 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-stone-100 [&::-webkit-scrollbar-thumb]:bg-stone-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500 before:w-full p-2" }, Mt = /* @__PURE__ */ re({
|
|
1972
1972
|
__name: "popover-field",
|
|
1973
1973
|
props: {
|
|
1974
1974
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -2140,7 +2140,7 @@ function Ca(e, i) {
|
|
|
2140
2140
|
const _a = /* @__PURE__ */ De(wa, [["render", Ca]]), Sa = { class: "flex gap-1" }, Ma = { class: "mb-1" }, Va = { class: "mb-1" }, Ba = { class: "inline-flex rounded-sm shrink-0 pl-1" }, $a = ["title"], Aa = { class: "inline-flex rounded-sm shrink-0 pl-1" }, Pa = ["title"], La = {
|
|
2141
2141
|
key: 1,
|
|
2142
2142
|
class: "flex gap-1 !w-[75%] rounded-sm"
|
|
2143
|
-
}, ja = ["max", "value", "disabled"], za = ["min", "value", "disabled"], Fa = /* @__PURE__ */
|
|
2143
|
+
}, ja = ["max", "value", "disabled"], za = ["min", "value", "disabled"], Fa = /* @__PURE__ */ re({
|
|
2144
2144
|
__name: "date-input-inline",
|
|
2145
2145
|
props: {
|
|
2146
2146
|
id: {},
|
|
@@ -2343,7 +2343,7 @@ const _a = /* @__PURE__ */ De(wa, [["render", Ca]]), Sa = { class: "flex gap-1"
|
|
|
2343
2343
|
}), Za = ["disabled", "onClick"], Ea = {
|
|
2344
2344
|
key: 0,
|
|
2345
2345
|
class: "pt-2 px-2 border-t"
|
|
2346
|
-
}, Ra = ["disabled"], Da = /* @__PURE__ */
|
|
2346
|
+
}, Ra = ["disabled"], Da = /* @__PURE__ */ re({
|
|
2347
2347
|
__name: "button-field",
|
|
2348
2348
|
props: {
|
|
2349
2349
|
id: {},
|
|
@@ -2450,7 +2450,7 @@ function Vt(e, i) {
|
|
|
2450
2450
|
type: a
|
|
2451
2451
|
};
|
|
2452
2452
|
}
|
|
2453
|
-
const Oa = { style: { display: "inline-flex", margin: "0px", width: "100%" } }, Ia = { class: "relative w-full mb-2 p-4 bg-white rounded-md shadow-sm" }, Ua = { class: "block mb-3 text-sm font-medium text-gray-800 dark:text-neutral-200" }, Ta = { class: "flex items-center" }, Ka = { class: "text-sm font-medium max-w-[80%] text-gray-800 flex items-center gap-x-1" }, Ha = { class: "filter-layout__body" }, Wa = /* @__PURE__ */
|
|
2453
|
+
const Oa = { style: { display: "inline-flex", margin: "0px", width: "100%" } }, Ia = { class: "relative w-full mb-2 p-4 bg-white rounded-md shadow-sm" }, Ua = { class: "block mb-3 text-sm font-medium text-gray-800 dark:text-neutral-200" }, Ta = { class: "flex items-center" }, Ka = { class: "text-sm font-medium max-w-[80%] text-gray-800 flex items-center gap-x-1" }, Ha = { class: "filter-layout__body" }, Wa = /* @__PURE__ */ re({
|
|
2454
2454
|
__name: "vertical-layout",
|
|
2455
2455
|
props: {
|
|
2456
2456
|
id: {},
|
|
@@ -2559,7 +2559,7 @@ const Oa = { style: { display: "inline-flex", margin: "0px", width: "100%" } },
|
|
|
2559
2559
|
]);
|
|
2560
2560
|
};
|
|
2561
2561
|
}
|
|
2562
|
-
}), zt = /* @__PURE__ */
|
|
2562
|
+
}), zt = /* @__PURE__ */ re({
|
|
2563
2563
|
__name: "inline-layout",
|
|
2564
2564
|
props: {
|
|
2565
2565
|
id: {},
|
|
@@ -2652,7 +2652,7 @@ const Oa = { style: { display: "inline-flex", margin: "0px", width: "100%" } },
|
|
|
2652
2652
|
}, 8, ["current-value", "label", "mode", "fieldRef", "width", "disabled"]));
|
|
2653
2653
|
};
|
|
2654
2654
|
}
|
|
2655
|
-
}), Na = /* @__PURE__ */
|
|
2655
|
+
}), Na = /* @__PURE__ */ re({
|
|
2656
2656
|
__name: "popover-layout",
|
|
2657
2657
|
props: {
|
|
2658
2658
|
id: {},
|
|
@@ -2723,7 +2723,7 @@ const Oa = { style: { display: "inline-flex", margin: "0px", width: "100%" } },
|
|
|
2723
2723
|
}), null, 16, ["type", "class", "modelValue"]);
|
|
2724
2724
|
};
|
|
2725
2725
|
}
|
|
2726
|
-
}), ze = /* @__PURE__ */
|
|
2726
|
+
}), ze = /* @__PURE__ */ re({
|
|
2727
2727
|
__name: "filter-field",
|
|
2728
2728
|
props: {
|
|
2729
2729
|
id: {},
|
|
@@ -2893,7 +2893,7 @@ function gt(e, i) {
|
|
|
2893
2893
|
filterRef: M
|
|
2894
2894
|
};
|
|
2895
2895
|
}
|
|
2896
|
-
const Ga = /* @__PURE__ */
|
|
2896
|
+
const Ga = /* @__PURE__ */ re({
|
|
2897
2897
|
__name: "popover",
|
|
2898
2898
|
emits: ["open", "close"],
|
|
2899
2899
|
setup(e, { emit: i }) {
|
|
@@ -2993,7 +2993,7 @@ const Yt = /* @__PURE__ */ De(qa, [["render", Qa]]), Xa = { class: "flex items-c
|
|
|
2993
2993
|
}, mn = { class: "flex-1 min-h-[250px] md:min-h-[300px] overflow-y-auto" }, hn = {
|
|
2994
2994
|
key: 0,
|
|
2995
2995
|
class: "flex items-center justify-center h-full text-gray-500"
|
|
2996
|
-
}, gn = { class: "text-xs md:text-sm" }, Qt = /* @__PURE__ */
|
|
2996
|
+
}, gn = { class: "text-xs md:text-sm" }, Qt = /* @__PURE__ */ re({
|
|
2997
2997
|
__name: "popover-filter-layout",
|
|
2998
2998
|
props: {
|
|
2999
2999
|
badgeCount: {},
|
|
@@ -3170,7 +3170,7 @@ const Yt = /* @__PURE__ */ De(qa, [["render", Qa]]), Xa = { class: "flex items-c
|
|
|
3170
3170
|
_: 1
|
|
3171
3171
|
}));
|
|
3172
3172
|
}
|
|
3173
|
-
}), yn = { class: "flex gap-1 items-center flex-wrap" }, Ft = /* @__PURE__ */
|
|
3173
|
+
}), yn = { class: "flex gap-1 items-center flex-wrap" }, Ft = /* @__PURE__ */ re({
|
|
3174
3174
|
__name: "inline-filter-layout",
|
|
3175
3175
|
props: {
|
|
3176
3176
|
schema: {},
|
|
@@ -3292,7 +3292,7 @@ const Yt = /* @__PURE__ */ De(qa, [["render", Qa]]), Xa = { class: "flex items-c
|
|
|
3292
3292
|
}), bn = {
|
|
3293
3293
|
key: 0,
|
|
3294
3294
|
class: "p-2 overflow-y-auto overflow-hidden [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500 dark:bg-neutral-800 max-h-[calc(100%-142px)] h-full bg-gray-100"
|
|
3295
|
-
}, xn = { class: "flex items-center vst-filters vsTailwind flex-col w-full" }, wn = /* @__PURE__ */
|
|
3295
|
+
}, xn = { class: "flex items-center vst-filters vsTailwind flex-col w-full" }, wn = /* @__PURE__ */ re({
|
|
3296
3296
|
__name: "vertical-filter-layout",
|
|
3297
3297
|
props: {
|
|
3298
3298
|
schema: {},
|
|
@@ -3372,7 +3372,7 @@ const Yt = /* @__PURE__ */ De(qa, [["render", Qa]]), Xa = { class: "flex items-c
|
|
|
3372
3372
|
}, Sn = { class: "rounded-2xl border border-slate-300/35 bg-white/95 p-4 shadow-2xl backdrop-blur-sm" }, Mn = { class: "mb-3 flex items-center justify-between" }, Vn = { class: "text-[15px] font-semibold text-slate-800" }, Bn = { "aria-hidden": "true" }, $n = { class: "flex max-h-80 flex-col gap-1 overflow-y-auto" }, An = {
|
|
3373
3373
|
key: 0,
|
|
3374
3374
|
class: "mt-3 flex justify-end"
|
|
3375
|
-
}, Pn = /* @__PURE__ */
|
|
3375
|
+
}, Pn = /* @__PURE__ */ re({
|
|
3376
3376
|
__name: "popover-inline-filter-layout",
|
|
3377
3377
|
props: {
|
|
3378
3378
|
schema: {},
|
|
@@ -3562,7 +3562,7 @@ const Yt = /* @__PURE__ */ De(qa, [["render", Qa]]), Xa = { class: "flex items-c
|
|
|
3562
3562
|
]))
|
|
3563
3563
|
], 512));
|
|
3564
3564
|
}
|
|
3565
|
-
}), Ln = { class: "mb-6 flex flex-wrap gap-2" }, jn = ["onClick"], zn = { class: "mr-2 flex items-center gap-1" }, Fn = { class: "font-semibold" }, Zn = { class: "text-xs text-gray-500" }, ft = /* @__PURE__ */
|
|
3565
|
+
}), Ln = { class: "mb-6 flex flex-wrap gap-2" }, jn = ["onClick"], zn = { class: "mr-2 flex items-center gap-1" }, Fn = { class: "font-semibold" }, Zn = { class: "text-xs text-gray-500" }, ft = /* @__PURE__ */ re({
|
|
3566
3566
|
__name: "filter",
|
|
3567
3567
|
props: {
|
|
3568
3568
|
schema: {},
|
|
@@ -3818,7 +3818,7 @@ const Rn = { class: "flex items-center justify-between w-full gap-x-1" }, Dn = {
|
|
|
3818
3818
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-check text-blue-600",
|
|
3819
3819
|
width: "14",
|
|
3820
3820
|
height: "14"
|
|
3821
|
-
}, yt = /* @__PURE__ */
|
|
3821
|
+
}, yt = /* @__PURE__ */ re({
|
|
3822
3822
|
__name: "pagination",
|
|
3823
3823
|
props: {
|
|
3824
3824
|
total: {},
|
|
@@ -4099,7 +4099,7 @@ function Zt(e, i) {
|
|
|
4099
4099
|
clearTimeout(a), a = setTimeout(() => e(...r), i);
|
|
4100
4100
|
};
|
|
4101
4101
|
}
|
|
4102
|
-
const vr = { class: "fixed inset-0 z-50 pointer-events-none" }, mr = { class: "text-base font-semibold text-gray-900" }, hr = { class: "px-4 pb-3 min-h-0 shrink-0 overflow-hidden" }, gr = { class: "flex flex-col flex-1 min-h-0 overflow-hidden" }, yr = { class: "text-base font-semibold text-gray-900" }, br = { class: "flex-1 min-h-0 overflow-auto p-4" }, xr = 152, Et = 96, wr = 270, Rt = 96, kr = /* @__PURE__ */
|
|
4102
|
+
const vr = { class: "fixed inset-0 z-50 pointer-events-none" }, mr = { class: "text-base font-semibold text-gray-900" }, hr = { class: "px-4 pb-3 min-h-0 shrink-0 overflow-hidden" }, gr = { class: "flex flex-col flex-1 min-h-0 overflow-hidden" }, yr = { class: "text-base font-semibold text-gray-900" }, br = { class: "flex-1 min-h-0 overflow-auto p-4" }, xr = 152, Et = 96, wr = 270, Rt = 96, kr = /* @__PURE__ */ re({
|
|
4103
4103
|
__name: "MobileModalShell",
|
|
4104
4104
|
props: {
|
|
4105
4105
|
open: { type: Boolean },
|
|
@@ -4291,7 +4291,7 @@ const vr = { class: "fixed inset-0 z-50 pointer-events-none" }, mr = { class: "t
|
|
|
4291
4291
|
}), et = /* @__PURE__ */ Ue(kr, [["__scopeId", "data-v-74c152ea"]]), Cr = {
|
|
4292
4292
|
class: "flex flex-col gap-2 pointer-events-auto self-end",
|
|
4293
4293
|
"data-peek-controls": "1"
|
|
4294
|
-
}, _r = /* @__PURE__ */
|
|
4294
|
+
}, _r = /* @__PURE__ */ re({
|
|
4295
4295
|
__name: "MapMobilePeekControlButtons",
|
|
4296
4296
|
props: {
|
|
4297
4297
|
onOpenLayers: { type: Function },
|
|
@@ -4533,7 +4533,7 @@ const Br = [
|
|
|
4533
4533
|
}, ni = ["title", "onClick"], ri = ["src"], ii = { class: "absolute py-2 px-4 text-sm text-stone-800 bg-white shadow-[0_10px_40px_10px_rgba(0,0,0,0.08)] rounded-lg top-[-46px] hidden whitespace-nowrap left-1/2 -translate-x-1/2" }, si = { class: "vs-mobile-peek-controls flex justify-center w-full" }, ui = { class: "w-full" }, ci = { class: "legend-panel__header flex items-center justify-between gap-2 py-[7px] pl-[10px] pr-[7px] pb-[12px]" }, di = { class: "text-[0.875rem] font-medium text-stone-700" }, pi = { class: "legend-panel__content overflow-hidden transition-all duration-200 ease-out" }, fi = { class: "p-[10px] pt-0" }, vi = { class: "flex justify-start items-center gap-2" }, mi = { class: "flex-1 flex justify-between items-center min-w-0 ml-1" }, hi = { class: "text-[0.875rem]" }, gi = {
|
|
4534
4534
|
key: 0,
|
|
4535
4535
|
class: "text-[0.8rem] text-stone-500 shrink-0 ml-2"
|
|
4536
|
-
}, Xe = "vector-clusters", Dt = /* @__PURE__ */
|
|
4536
|
+
}, Xe = "vector-clusters", Dt = /* @__PURE__ */ re({
|
|
4537
4537
|
__name: "map",
|
|
4538
4538
|
props: {
|
|
4539
4539
|
table: {},
|
|
@@ -4557,6 +4557,7 @@ const Br = [
|
|
|
4557
4557
|
circleRadius: {},
|
|
4558
4558
|
circleStrokeWidth: {},
|
|
4559
4559
|
highlightCircleRadius: {},
|
|
4560
|
+
highlightCircleColor: {},
|
|
4560
4561
|
isCollapsible: { type: Boolean },
|
|
4561
4562
|
legendTitle: {},
|
|
4562
4563
|
legendWidth: {},
|
|
@@ -4577,11 +4578,11 @@ const Br = [
|
|
|
4577
4578
|
return ((T = (E = w == null ? void 0 : w.appContext.config.globalProperties) == null ? void 0 : E.$settings) == null ? void 0 : T.basemaps) || [];
|
|
4578
4579
|
}), f = H(() => (a.layers && a.layers.length ? a.layers : p.value.length ? p.value : Br).map((T, Y) => {
|
|
4579
4580
|
var ye;
|
|
4580
|
-
const Z = T.id || ((ye = T.name) == null ? void 0 : ye.toString().toLowerCase().replace(/\s+/g, "-")) || `layer-${Y}`,
|
|
4581
|
+
const Z = T.id || ((ye = T.name) == null ? void 0 : ye.toString().toLowerCase().replace(/\s+/g, "-")) || `layer-${Y}`, ne = T.name || T.id || `layer-${Y}`;
|
|
4581
4582
|
return {
|
|
4582
4583
|
...T,
|
|
4583
4584
|
id: Z,
|
|
4584
|
-
name:
|
|
4585
|
+
name: ne
|
|
4585
4586
|
};
|
|
4586
4587
|
})), z = A(""), U = H(() => f.value.find((E) => E.id === z.value) || f.value[0]);
|
|
4587
4588
|
K(f, (E) => {
|
|
@@ -4626,11 +4627,11 @@ const Br = [
|
|
|
4626
4627
|
function L() {
|
|
4627
4628
|
if (typeof window > "u")
|
|
4628
4629
|
return { zoom: null, center: null, hasQuery: !1 };
|
|
4629
|
-
const E = new URLSearchParams(window.location.search), T = Number(E.get("z")), Y = Number(E.get("y")), Z = Number(E.get("x")),
|
|
4630
|
+
const E = new URLSearchParams(window.location.search), T = Number(E.get("z")), Y = Number(E.get("y")), Z = Number(E.get("x")), ne = E.has("x") && E.has("y"), ye = E.has("z");
|
|
4630
4631
|
return {
|
|
4631
4632
|
zoom: ye ? T : null,
|
|
4632
|
-
center:
|
|
4633
|
-
hasQuery:
|
|
4633
|
+
center: ne ? [Z, Y] : null,
|
|
4634
|
+
hasQuery: ne || ye
|
|
4634
4635
|
};
|
|
4635
4636
|
}
|
|
4636
4637
|
function X(E, T) {
|
|
@@ -4644,7 +4645,7 @@ const Br = [
|
|
|
4644
4645
|
const E = l.getCenter();
|
|
4645
4646
|
X([E.lng, E.lat], l.getZoom());
|
|
4646
4647
|
}
|
|
4647
|
-
const
|
|
4648
|
+
const xe = () => {
|
|
4648
4649
|
te || (te = !0), ee();
|
|
4649
4650
|
};
|
|
4650
4651
|
function ot(E) {
|
|
@@ -4667,7 +4668,7 @@ const Br = [
|
|
|
4667
4668
|
function qe() {
|
|
4668
4669
|
const E = ot(a.modelValue), T = ["all", E, Se], Y = ["all", E, Me];
|
|
4669
4670
|
if (!l.getLayer("vector-highlight-circle")) {
|
|
4670
|
-
const
|
|
4671
|
+
const ne = Fe(), ye = ne != null ? ne - 0.01 : 24, Ae = a.highlightCircleRadius ?? a.circleRadius ?? Mr, we = a.highlightCircleColor ?? "#ffffff", le = {
|
|
4671
4672
|
id: "vector-highlight-circle",
|
|
4672
4673
|
type: "circle",
|
|
4673
4674
|
source: "vector",
|
|
@@ -4675,20 +4676,20 @@ const Br = [
|
|
|
4675
4676
|
paint: {
|
|
4676
4677
|
"circle-color": "#ffffff",
|
|
4677
4678
|
"circle-opacity": 0,
|
|
4678
|
-
"circle-stroke-color":
|
|
4679
|
+
"circle-stroke-color": we,
|
|
4679
4680
|
"circle-stroke-width": 3,
|
|
4680
4681
|
"circle-stroke-opacity": 0.95,
|
|
4681
4682
|
"circle-radius": Ae
|
|
4682
4683
|
}
|
|
4683
4684
|
};
|
|
4684
|
-
a.mixedGeom || (
|
|
4685
|
+
a.mixedGeom || (le.maxzoom = ye), l.addLayer(le);
|
|
4685
4686
|
}
|
|
4686
4687
|
if (!l.getLayer("vector-highlight-fill")) {
|
|
4687
|
-
const
|
|
4688
|
+
const ne = Fe();
|
|
4688
4689
|
l.addLayer({
|
|
4689
4690
|
id: "vector-highlight-fill",
|
|
4690
4691
|
type: "line",
|
|
4691
|
-
minzoom:
|
|
4692
|
+
minzoom: ne ?? 24,
|
|
4692
4693
|
source: "vector",
|
|
4693
4694
|
"source-layer": a.table,
|
|
4694
4695
|
paint: {
|
|
@@ -4709,7 +4710,11 @@ const Br = [
|
|
|
4709
4710
|
if (!l) return;
|
|
4710
4711
|
a.circleRadius !== void 0 && l.getLayer("vector-circle") && l.setPaintProperty("vector-circle", "circle-radius", a.circleRadius), a.circleStrokeWidth !== void 0 && l.getLayer("vector-circle") && l.setPaintProperty("vector-circle", "circle-stroke-width", a.circleStrokeWidth);
|
|
4711
4712
|
const E = a.highlightCircleRadius ?? a.circleRadius;
|
|
4712
|
-
E !== void 0 && l.getLayer("vector-highlight-circle") && l.setPaintProperty("vector-highlight-circle", "circle-radius", E)
|
|
4713
|
+
E !== void 0 && l.getLayer("vector-highlight-circle") && l.setPaintProperty("vector-highlight-circle", "circle-radius", E), l.getLayer("vector-highlight-circle") && l.setPaintProperty(
|
|
4714
|
+
"vector-highlight-circle",
|
|
4715
|
+
"circle-stroke-color",
|
|
4716
|
+
a.highlightCircleColor ?? "#ffffff"
|
|
4717
|
+
);
|
|
4713
4718
|
}
|
|
4714
4719
|
function ut() {
|
|
4715
4720
|
if (ke(), !a.modelValue) return;
|
|
@@ -4728,15 +4733,15 @@ const Br = [
|
|
|
4728
4733
|
}
|
|
4729
4734
|
function Ve() {
|
|
4730
4735
|
if (!(l != null && l.setLayerZoomRange)) return;
|
|
4731
|
-
const E = a.minZoom ?? 0, T = Math.min((a.maxZoom ?? 18) + 0.01, 24), Z = (a.clusterZoom ?? 12) - 0.01,
|
|
4732
|
-
a.alwaysShowPolygon ? (l.getLayer("vector-circle") && l.setLayerZoomRange("vector-circle", E, 0), l.getLayer("vector-highlight-circle") && l.setLayerZoomRange("vector-highlight-circle", E, 0), l.getLayer("vector-fill") && l.setLayerZoomRange("vector-fill", E, T), l.getLayer("vector-highlight-fill") && l.setLayerZoomRange("vector-highlight-fill", E, T), l.getLayer(Xe) && l.setLayerZoomRange(Xe, E, 0), l.getLayer("vector-cluster-count") && l.setLayerZoomRange("vector-cluster-count", E, 0)) : (l.getLayer("vector-circle") && l.setLayerZoomRange("vector-circle", E, Ae), l.getLayer("vector-highlight-circle") && l.setLayerZoomRange("vector-highlight-circle", E, Ae), l.getLayer("vector-fill") && l.setLayerZoomRange("vector-fill",
|
|
4736
|
+
const E = a.minZoom ?? 0, T = Math.min((a.maxZoom ?? 18) + 0.01, 24), Z = (a.clusterZoom ?? 12) - 0.01, ne = Fe(), ye = ne - 0.01, Ae = _.value && !a.mixedGeom ? ye : T, we = ne;
|
|
4737
|
+
a.alwaysShowPolygon ? (l.getLayer("vector-circle") && l.setLayerZoomRange("vector-circle", E, 0), l.getLayer("vector-highlight-circle") && l.setLayerZoomRange("vector-highlight-circle", E, 0), l.getLayer("vector-fill") && l.setLayerZoomRange("vector-fill", E, T), l.getLayer("vector-highlight-fill") && l.setLayerZoomRange("vector-highlight-fill", E, T), l.getLayer(Xe) && l.setLayerZoomRange(Xe, E, 0), l.getLayer("vector-cluster-count") && l.setLayerZoomRange("vector-cluster-count", E, 0)) : (l.getLayer("vector-circle") && l.setLayerZoomRange("vector-circle", E, Ae), l.getLayer("vector-highlight-circle") && l.setLayerZoomRange("vector-highlight-circle", E, Ae), l.getLayer("vector-fill") && l.setLayerZoomRange("vector-fill", we, T), l.getLayer("vector-stroke") && l.setLayerZoomRange("vector-stroke", we, T), l.getLayer("vector-highlight-fill") && l.setLayerZoomRange("vector-highlight-fill", we, T), l.getLayer(Xe) && l.setLayerZoomRange(Xe, E, Z), l.getLayer("vector-cluster-count") && l.setLayerZoomRange("vector-cluster-count", E, Z));
|
|
4733
4738
|
}
|
|
4734
4739
|
function nt() {
|
|
4735
4740
|
if (l != null && l.getSource("vector")) {
|
|
4736
4741
|
try {
|
|
4737
4742
|
const T = l.querySourceFeatures("vector", { sourceLayer: a.table }).some((Y) => {
|
|
4738
|
-
var
|
|
4739
|
-
const Z = (
|
|
4743
|
+
var ne;
|
|
4744
|
+
const Z = (ne = Y.geometry) == null ? void 0 : ne.type;
|
|
4740
4745
|
return Z === "Polygon" || Z === "MultiPolygon";
|
|
4741
4746
|
});
|
|
4742
4747
|
_.value = T;
|
|
@@ -4747,19 +4752,19 @@ const Br = [
|
|
|
4747
4752
|
}
|
|
4748
4753
|
const Qe = L();
|
|
4749
4754
|
te = Qe.hasQuery, Ie(async () => {
|
|
4750
|
-
S = (await fetch(`/api/data/${a.table}/${a.colorAttr}`).then((
|
|
4751
|
-
if (
|
|
4752
|
-
|
|
4755
|
+
S = (await fetch(`/api/data/${a.table}/${a.colorAttr}`).then((le) => le.json())).rows, S.forEach((le, oe) => {
|
|
4756
|
+
if (le.id == null || le.id === "") {
|
|
4757
|
+
le.color = "#808080";
|
|
4753
4758
|
return;
|
|
4754
4759
|
}
|
|
4755
|
-
|
|
4760
|
+
le.color || Object.assign(le, { color: P[oe % 10] });
|
|
4756
4761
|
});
|
|
4757
4762
|
const T = a.strokeAttr;
|
|
4758
4763
|
if (y = [], T) {
|
|
4759
|
-
y = (await fetch(`/api/data/${a.table}/${T}`).then((
|
|
4760
|
-
let
|
|
4761
|
-
y.forEach((
|
|
4762
|
-
|
|
4764
|
+
y = (await fetch(`/api/data/${a.table}/${T}`).then((ae) => ae.json())).rows || [];
|
|
4765
|
+
let oe = 0;
|
|
4766
|
+
y.forEach((ae, me) => {
|
|
4767
|
+
ae.color || !ae.id || (Object.assign(ae, { color: u[oe % u.length] }), oe += 1);
|
|
4763
4768
|
});
|
|
4764
4769
|
}
|
|
4765
4770
|
c = new maplibregl.Popup({
|
|
@@ -4768,7 +4773,7 @@ const Br = [
|
|
|
4768
4773
|
});
|
|
4769
4774
|
const Y = U.value;
|
|
4770
4775
|
if (!Y) return;
|
|
4771
|
-
const Z = Qe.center || a.center || D,
|
|
4776
|
+
const Z = Qe.center || a.center || D, ne = Qe.zoom || a.zoom || 5;
|
|
4772
4777
|
l = new maplibregl.Map({
|
|
4773
4778
|
container: n.value,
|
|
4774
4779
|
style: {
|
|
@@ -4784,45 +4789,45 @@ const Br = [
|
|
|
4784
4789
|
},
|
|
4785
4790
|
center: Z,
|
|
4786
4791
|
// [lng, lat]
|
|
4787
|
-
zoom:
|
|
4792
|
+
zoom: ne,
|
|
4788
4793
|
minZoom: a.minZoom ?? 3,
|
|
4789
4794
|
maxZoom: a.maxZoom ?? 18,
|
|
4790
4795
|
attributionControl: !1
|
|
4791
4796
|
}), r("update:map", l);
|
|
4792
4797
|
const ye = a.mobilePeekControls ? "bottom-right" : "top-right";
|
|
4793
4798
|
if (l.addControl(new maplibregl.NavigationControl(), ye), a.mobilePeekControls) {
|
|
4794
|
-
const
|
|
4799
|
+
const le = {
|
|
4795
4800
|
onAdd: () => {
|
|
4796
|
-
const
|
|
4797
|
-
return x =
|
|
4801
|
+
const oe = document.createElement("div");
|
|
4802
|
+
return x = oe, M = Tt(_r, {
|
|
4798
4803
|
onOpenLayers: () => {
|
|
4799
4804
|
h.value = !0;
|
|
4800
4805
|
},
|
|
4801
4806
|
onOpenLegend: () => {
|
|
4802
4807
|
g.value = !0;
|
|
4803
4808
|
}
|
|
4804
|
-
}), M.mount(
|
|
4809
|
+
}), M.mount(oe), oe;
|
|
4805
4810
|
},
|
|
4806
4811
|
onRemove: () => {
|
|
4807
4812
|
M == null || M.unmount(), M = null, x = null;
|
|
4808
4813
|
}
|
|
4809
4814
|
};
|
|
4810
|
-
l.addControl(
|
|
4815
|
+
l.addControl(le, "bottom-right"), l.once("render", () => {
|
|
4811
4816
|
if (!x) return;
|
|
4812
|
-
const
|
|
4813
|
-
!
|
|
4817
|
+
const oe = l.getContainer(), ae = oe.querySelector(".maplibregl-ctrl-bottom-right"), me = oe.querySelector(".maplibregl-ctrl-zoom-in"), Pe = me == null ? void 0 : me.closest(".maplibregl-ctrl-group");
|
|
4818
|
+
!ae || !Pe || x.parentElement === ae && (ae.removeChild(x), ae.insertBefore(x, Pe.nextSibling));
|
|
4814
4819
|
});
|
|
4815
4820
|
}
|
|
4816
4821
|
l.on("zoom", () => {
|
|
4817
|
-
}), l.on("moveend",
|
|
4822
|
+
}), l.on("moveend", xe), l.on("zoomend", xe), te && ee(), l.on("load", () => {
|
|
4818
4823
|
l == null || l.resize(), m.value = !0;
|
|
4819
|
-
const
|
|
4820
|
-
q =
|
|
4824
|
+
const le = S.filter((pe) => pe.id != null && pe.id !== "").reduce((pe, Ce) => [String(Ce.id), Ce.color].concat(pe), []), oe = ["match", ["to-string", ["get", a.colorAttr]], ...le, "#808080"], ae = (y || []).filter((pe) => pe.id != null && pe.id !== "").reduce((pe, Ce) => [String(Ce.id), Ce.color].concat(pe), []), me = T ? ["match", ["to-string", ["get", T]], ...ae, "rgba(0,0,0,0)"] : "rgba(0,0,0,0)";
|
|
4825
|
+
q = oe;
|
|
4821
4826
|
const Pe = at();
|
|
4822
4827
|
Vr(
|
|
4823
4828
|
a.table,
|
|
4824
4829
|
l,
|
|
4825
|
-
|
|
4830
|
+
oe,
|
|
4826
4831
|
me,
|
|
4827
4832
|
a.filter,
|
|
4828
4833
|
a.clusterZoom,
|
|
@@ -4838,41 +4843,41 @@ const Br = [
|
|
|
4838
4843
|
pe.sourceId === "vector" && pe.isSourceLoaded && Fe() != null && nt();
|
|
4839
4844
|
});
|
|
4840
4845
|
});
|
|
4841
|
-
const Ae = (
|
|
4842
|
-
var
|
|
4843
|
-
const
|
|
4844
|
-
(me =
|
|
4846
|
+
const Ae = (le) => {
|
|
4847
|
+
var ae, me;
|
|
4848
|
+
const oe = (ae = le.features) == null ? void 0 : ae[0];
|
|
4849
|
+
(me = oe == null ? void 0 : oe.properties) != null && me.id && r("update:modelValue", oe.properties.id);
|
|
4845
4850
|
};
|
|
4846
|
-
v.forEach((
|
|
4847
|
-
l.on("click",
|
|
4848
|
-
}), l.on("click", Xe, (
|
|
4851
|
+
v.forEach((le) => {
|
|
4852
|
+
l.on("click", le, Ae);
|
|
4853
|
+
}), l.on("click", Xe, (le) => {
|
|
4849
4854
|
var pe, Ce, rt;
|
|
4850
|
-
const
|
|
4851
|
-
if (!
|
|
4852
|
-
const { geometry:
|
|
4855
|
+
const oe = (pe = le.features) == null ? void 0 : pe[0];
|
|
4856
|
+
if (!oe) return;
|
|
4857
|
+
const { geometry: ae } = oe, me = (ae == null ? void 0 : ae.type) === "Point" ? ae.coordinates : (rt = (Ce = ae == null ? void 0 : ae.coordinates) == null ? void 0 : Ce[0]) == null ? void 0 : rt[0];
|
|
4853
4858
|
if (!me) return;
|
|
4854
4859
|
const Pe = Math.min(l.getZoom() + 2, l.getMaxZoom());
|
|
4855
4860
|
l.easeTo({ center: me, zoom: Pe });
|
|
4856
|
-
}), [...v, Xe].forEach((
|
|
4857
|
-
l.on("mouseenter",
|
|
4861
|
+
}), [...v, Xe].forEach((le) => {
|
|
4862
|
+
l.on("mouseenter", le, () => {
|
|
4858
4863
|
l.getCanvas().style.cursor = "pointer";
|
|
4859
|
-
}), l.on("mouseleave",
|
|
4864
|
+
}), l.on("mouseleave", le, () => {
|
|
4860
4865
|
l.getCanvas().style.cursor = "";
|
|
4861
4866
|
});
|
|
4862
|
-
}), l.on("mousemove", (
|
|
4867
|
+
}), l.on("mousemove", (le) => {
|
|
4863
4868
|
var pe, Ce;
|
|
4864
4869
|
if (!F.value) {
|
|
4865
4870
|
(pe = c == null ? void 0 : c.remove) == null || pe.call(c);
|
|
4866
4871
|
return;
|
|
4867
4872
|
}
|
|
4868
4873
|
if (!c) return;
|
|
4869
|
-
const
|
|
4870
|
-
if (!
|
|
4874
|
+
const oe = l.queryRenderedFeatures(le.point, { layers: v });
|
|
4875
|
+
if (!oe || !oe.length) {
|
|
4871
4876
|
c.remove();
|
|
4872
4877
|
return;
|
|
4873
4878
|
}
|
|
4874
|
-
const
|
|
4875
|
-
C.value =
|
|
4879
|
+
const ae = oe[0], { coordinates: me } = ae.geometry, Pe = ae.geometry.type === "Point" ? me : me[0][0];
|
|
4880
|
+
C.value = ae.properties, c.setLngLat(Pe).setHTML((Ce = k.value) == null ? void 0 : Ce.innerHTML).addTo(l);
|
|
4876
4881
|
});
|
|
4877
4882
|
}), K(() => a.center, (E) => {
|
|
4878
4883
|
l && l.setCenter(E || D);
|
|
@@ -4908,7 +4913,7 @@ const Br = [
|
|
|
4908
4913
|
}), K(() => a.mixedGeom, () => {
|
|
4909
4914
|
Ve();
|
|
4910
4915
|
}), K(
|
|
4911
|
-
() => [a.circleRadius, a.circleStrokeWidth, a.highlightCircleRadius],
|
|
4916
|
+
() => [a.circleRadius, a.circleStrokeWidth, a.highlightCircleRadius, a.highlightCircleColor],
|
|
4912
4917
|
() => {
|
|
4913
4918
|
st();
|
|
4914
4919
|
}
|
|
@@ -4917,13 +4922,13 @@ const Br = [
|
|
|
4917
4922
|
const T = ot(E), Y = ["all", T, Se], Z = ["all", T, Me];
|
|
4918
4923
|
if (l.getLayer("vector-highlight-circle")) {
|
|
4919
4924
|
l.setFilter("vector-highlight-circle", Y);
|
|
4920
|
-
const
|
|
4921
|
-
l.setLayoutProperty("vector-highlight-circle", "visibility",
|
|
4925
|
+
const ne = E ? "visible" : "none";
|
|
4926
|
+
l.setLayoutProperty("vector-highlight-circle", "visibility", ne);
|
|
4922
4927
|
}
|
|
4923
4928
|
if (l.getLayer("vector-highlight-fill")) {
|
|
4924
4929
|
l.setFilter("vector-highlight-fill", Z);
|
|
4925
|
-
const
|
|
4926
|
-
l.setLayoutProperty("vector-highlight-fill", "visibility",
|
|
4930
|
+
const ne = E ? "visible" : "none";
|
|
4931
|
+
l.setLayoutProperty("vector-highlight-fill", "visibility", ne);
|
|
4927
4932
|
}
|
|
4928
4933
|
Ye(), E ? ut() : ke();
|
|
4929
4934
|
}), K(z, (E, T) => {
|
|
@@ -4933,22 +4938,22 @@ const Br = [
|
|
|
4933
4938
|
l.getLayer(T) && l.removeLayer(T), l.getSource(T) && l.removeSource(T);
|
|
4934
4939
|
const Z = `${T}-overlay`;
|
|
4935
4940
|
l.getLayer(Z) && l.removeLayer(Z), l.getSource(Z) && l.removeSource(Z), l.addSource(E, { type: "raster", tiles: [Y.url], tileSize: 256 }), Y.overlayUrl && l.addSource(`${E}-overlay`, { type: "raster", tiles: [Y.overlayUrl], tileSize: 256 });
|
|
4936
|
-
const
|
|
4941
|
+
const ne = l.getLayer("vector-clusters") ? "vector-clusters" : l.getLayer("vector-circle") ? "vector-circle" : void 0;
|
|
4937
4942
|
l.addLayer({
|
|
4938
4943
|
id: Y.id,
|
|
4939
4944
|
type: "raster",
|
|
4940
4945
|
source: Y.id,
|
|
4941
4946
|
minzoom: 0,
|
|
4942
4947
|
maxzoom: 19
|
|
4943
|
-
},
|
|
4948
|
+
}, ne), Y.overlayUrl && l.addLayer({
|
|
4944
4949
|
id: `${E}-overlay`,
|
|
4945
4950
|
type: "raster",
|
|
4946
4951
|
source: `${E}-overlay`,
|
|
4947
4952
|
minzoom: 0,
|
|
4948
4953
|
maxzoom: 19
|
|
4949
|
-
},
|
|
4954
|
+
}, ne);
|
|
4950
4955
|
}), We(() => {
|
|
4951
|
-
ke(), l && (l.off("moveend",
|
|
4956
|
+
ke(), l && (l.off("moveend", xe), l.off("zoomend", xe), l.remove());
|
|
4952
4957
|
}), (E, T) => {
|
|
4953
4958
|
const Y = il("tooltip");
|
|
4954
4959
|
return ue((s(), d("div", $r, [
|
|
@@ -5091,7 +5096,7 @@ const Br = [
|
|
|
5091
5096
|
key: Z.id,
|
|
5092
5097
|
title: Z.name,
|
|
5093
5098
|
class: W(["vs-map-slot-layers__layer relative", { focused: z.value === Z.id }]),
|
|
5094
|
-
onClick: (
|
|
5099
|
+
onClick: (ne) => z.value = Z.id
|
|
5095
5100
|
}, [
|
|
5096
5101
|
t("img", {
|
|
5097
5102
|
src: Z.preview || R(Z.url),
|
|
@@ -5118,7 +5123,7 @@ const Br = [
|
|
|
5118
5123
|
key: Z.id,
|
|
5119
5124
|
title: Z.name,
|
|
5120
5125
|
class: W(["vs-map-slot-layers__layer relative", { focused: z.value === Z.id }]),
|
|
5121
|
-
onClick: (
|
|
5126
|
+
onClick: (ne) => z.value = Z.id
|
|
5122
5127
|
}, [
|
|
5123
5128
|
t("img", {
|
|
5124
5129
|
src: Z.preview || R(Z.url),
|
|
@@ -5277,7 +5282,7 @@ const $i = /* @__PURE__ */ Ue(Mi, [["render", Bi]]), Ai = { class: "absolute ins
|
|
|
5277
5282
|
key: 0,
|
|
5278
5283
|
class: "pointer-events-none absolute top-1 right-0.5 h-3 w-3 rounded-full bg-blue-400",
|
|
5279
5284
|
"aria-hidden": "true"
|
|
5280
|
-
}, zi = /* @__PURE__ */
|
|
5285
|
+
}, zi = /* @__PURE__ */ re({
|
|
5281
5286
|
__name: "MobileOverlayActions",
|
|
5282
5287
|
props: {
|
|
5283
5288
|
activeModal: {},
|
|
@@ -5364,7 +5369,7 @@ const $i = /* @__PURE__ */ Ue(Mi, [["render", Bi]]), Ai = { class: "absolute ins
|
|
|
5364
5369
|
}, us = { class: "flex justify-between" }, cs = { class: "w-full lg:w-1/2 relative" }, ds = {
|
|
5365
5370
|
key: 0,
|
|
5366
5371
|
class: "absolute inset-0 z-20 flex flex-col items-center justify-center bg-black/40 backdrop-blur-[2px]"
|
|
5367
|
-
}, Ot = "(max-width: 999px)", pt = "0px", It = /* @__PURE__ */
|
|
5372
|
+
}, Ot = "(max-width: 999px)", pt = "0px", It = /* @__PURE__ */ re({
|
|
5368
5373
|
__name: "vs-parts-map",
|
|
5369
5374
|
props: {
|
|
5370
5375
|
title: {},
|
|
@@ -5392,6 +5397,7 @@ const $i = /* @__PURE__ */ Ue(Mi, [["render", Bi]]), Ai = { class: "absolute ins
|
|
|
5392
5397
|
circleRadius: {},
|
|
5393
5398
|
circleStrokeWidth: {},
|
|
5394
5399
|
highlightCircleRadius: {},
|
|
5400
|
+
highlightCircleColor: {},
|
|
5395
5401
|
isCollapsible: { type: Boolean },
|
|
5396
5402
|
legendTitle: {},
|
|
5397
5403
|
legendWidth: {},
|
|
@@ -5402,7 +5408,7 @@ const $i = /* @__PURE__ */ Ue(Mi, [["render", Bi]]), Ai = { class: "absolute ins
|
|
|
5402
5408
|
},
|
|
5403
5409
|
emits: ["change:filter", "update:map"],
|
|
5404
5410
|
setup(e, { emit: i }) {
|
|
5405
|
-
var
|
|
5411
|
+
var ae, me, Pe, pe, Ce, rt, Bt;
|
|
5406
5412
|
const a = xt();
|
|
5407
5413
|
a && !(a != null && a.appContext.directives.tooltip) && (a.appContext.directives.tooltip = Jt);
|
|
5408
5414
|
function r(B) {
|
|
@@ -5437,14 +5443,14 @@ const $i = /* @__PURE__ */ Ue(Mi, [["render", Bi]]), Ai = { class: "absolute ins
|
|
|
5437
5443
|
const n = e, m = lt(), b = H(
|
|
5438
5444
|
() => n.mobileFilterView ?? "vertical"
|
|
5439
5445
|
), h = H(() => n.mobileFilterLimit !== void 0 ? { limit: n.mobileFilterLimit } : {}), g = i, x = A(0);
|
|
5440
|
-
x.value = n.initTotal ?? ((
|
|
5446
|
+
x.value = n.initTotal ?? ((ae = n.rows) == null ? void 0 : ae.length) ?? 0;
|
|
5441
5447
|
const M = A(""), v = A(null), _ = A(!0), V = A(((me = n.rows) == null ? void 0 : me.length) === 1), p = A(!1);
|
|
5442
5448
|
let f = null;
|
|
5443
5449
|
const z = A(!1);
|
|
5444
5450
|
typeof window < "u" && (f = window.matchMedia(Ot), z.value = f.matches, p.value = !0);
|
|
5445
5451
|
const U = A(n.rows), R = A(1), k = A(20), C = A(n.filters || []), F = A(""), P = A({}), u = H(() => Object.values(P.value).some((B) => Array.isArray(B) ? B.some(($) => $ != null && $ !== "") : B && typeof B == "object" ? Object.values(B).some(($) => $ != null && $ !== "") : B === null ? !0 : B !== void 0 && B !== "")), S = A(((Pe = n.rows) == null ? void 0 : Pe.length) === 1 ? n.rows[0] : {}), y = A(((pe = n.rows) == null ? void 0 : pe.length) === 1 ? n.rows[0].id : ""), D = A(((Ce = n.rows) == null ? void 0 : Ce.length) === 1 ? r((rt = n.rows[0]) == null ? void 0 : rt[n.geom]) : n.center || null), I = A(((Bt = n.rows) == null ? void 0 : Bt.length) === 1 ? 14 : n.zoom || 5), q = A(!1), L = A(!1), X = A("");
|
|
5446
5452
|
let te = !1;
|
|
5447
|
-
const ee = A(null),
|
|
5453
|
+
const ee = A(null), xe = A(!1);
|
|
5448
5454
|
function ot() {
|
|
5449
5455
|
if (!f) return;
|
|
5450
5456
|
const B = z.value;
|
|
@@ -5464,7 +5470,7 @@ const $i = /* @__PURE__ */ Ue(Mi, [["render", Bi]]), Ai = { class: "absolute ins
|
|
|
5464
5470
|
}), Fe = (B) => (B == null ? void 0 : B[n.geom]) ?? (B == null ? void 0 : B.geom), Ge = H(() => V.value && !Fe(S.value)), qe = H({
|
|
5465
5471
|
get: () => Ge.value ? "" : y.value,
|
|
5466
5472
|
set: (B) => {
|
|
5467
|
-
y.value = B, z.value && (B ? (
|
|
5473
|
+
y.value = B, z.value && (B ? (xe.value = !0, ee.value = "details") : ee.value === "details" && (ee.value = null));
|
|
5468
5474
|
}
|
|
5469
5475
|
});
|
|
5470
5476
|
function Ye() {
|
|
@@ -5576,7 +5582,7 @@ const $i = /* @__PURE__ */ Ue(Mi, [["render", Bi]]), Ai = { class: "absolute ins
|
|
|
5576
5582
|
}), We(() => {
|
|
5577
5583
|
f == null || f.removeEventListener("change", ot), Qe();
|
|
5578
5584
|
});
|
|
5579
|
-
function
|
|
5585
|
+
function ne() {
|
|
5580
5586
|
q.value = !0, V.value = !1, S.value = null, y.value = "", Se.value = null, Me.value = null;
|
|
5581
5587
|
}
|
|
5582
5588
|
function ye(B) {
|
|
@@ -5585,15 +5591,15 @@ const $i = /* @__PURE__ */ Ue(Mi, [["render", Bi]]), Ai = { class: "absolute ins
|
|
|
5585
5591
|
function Ae() {
|
|
5586
5592
|
ee.value = null;
|
|
5587
5593
|
}
|
|
5588
|
-
async function
|
|
5594
|
+
async function we() {
|
|
5589
5595
|
var B, $;
|
|
5590
5596
|
await Ee(), ($ = (B = v.value) == null ? void 0 : B.resize) == null || $.call(B);
|
|
5591
5597
|
}
|
|
5592
|
-
function
|
|
5593
|
-
|
|
5598
|
+
function le() {
|
|
5599
|
+
ne(), Ae();
|
|
5594
5600
|
}
|
|
5595
|
-
function
|
|
5596
|
-
|
|
5601
|
+
function oe(B) {
|
|
5602
|
+
xe.value = !0;
|
|
5597
5603
|
const $ = Fe(B);
|
|
5598
5604
|
if ($) {
|
|
5599
5605
|
const ie = n.polygonFitBbox ? c($) : null;
|
|
@@ -5638,6 +5644,7 @@ const $i = /* @__PURE__ */ Ue(Mi, [["render", Bi]]), Ai = { class: "absolute ins
|
|
|
5638
5644
|
circleRadius: n.circleRadius,
|
|
5639
5645
|
circleStrokeWidth: n.circleStrokeWidth,
|
|
5640
5646
|
highlightCircleRadius: n.highlightCircleRadius,
|
|
5647
|
+
highlightCircleColor: n.highlightCircleColor,
|
|
5641
5648
|
alwaysShowPolygon: n.alwaysShowPolygon,
|
|
5642
5649
|
modelValue: qe.value,
|
|
5643
5650
|
"onUpdate:modelValue": $[1] || ($[1] = (N) => qe.value = N),
|
|
@@ -5652,7 +5659,7 @@ const $i = /* @__PURE__ */ Ue(Mi, [["render", Bi]]), Ai = { class: "absolute ins
|
|
|
5652
5659
|
fe(B.$slots, "popup", { data: N })
|
|
5653
5660
|
]),
|
|
5654
5661
|
_: 3
|
|
5655
|
-
}, 8, ["table", "map", "zoom", "minZoom", "maxZoom", "colorAttr", "strokeAttr", "filter", "center", "clusterZoom", "pointZoom", "polygonZoom", "geometryZoomBreakpoint", "mixedGeom", "circleRadius", "circleStrokeWidth", "highlightCircleRadius", "alwaysShowPolygon", "modelValue", "layers", "isCollapsible", "legendTitle", "legendWidth"]),
|
|
5662
|
+
}, 8, ["table", "map", "zoom", "minZoom", "maxZoom", "colorAttr", "strokeAttr", "filter", "center", "clusterZoom", "pointZoom", "polygonZoom", "geometryZoomBreakpoint", "mixedGeom", "circleRadius", "circleStrokeWidth", "highlightCircleRadius", "highlightCircleColor", "alwaysShowPolygon", "modelValue", "layers", "isCollapsible", "legendTitle", "legendWidth"]),
|
|
5656
5663
|
Ge.value ? (s(), d("div", Zi, [...$[19] || ($[19] = [
|
|
5657
5664
|
it('<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" class="text-white/80"><path d="M12.75 7.09a3 3 0 0 1 2.16 2.16"></path><path d="M17.072 17.072c-1.634 2.17-3.527 3.912-4.471 4.727a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 1.432-4.568"></path><path d="m2 2 20 20"></path><path d="M8.475 2.818A8 8 0 0 1 20 10c0 1.183-.31 2.377-.81 3.533"></path><path d="M9.13 9.13a3 3 0 0 0 3.74 3.74"></path></svg><p class="mt-4 text-base font-[300] text-white">Геопросторові дані відсутні</p><p class="mt-2 max-w-xs text-center text-sm font-[200] text-white/70 leading-relaxed"> Координати або межі об'єкта не внесені до системи. Об'єкт відображається лише у текстовому форматі. </p>', 3)
|
|
5658
5665
|
])])) : j("", !0),
|
|
@@ -5671,8 +5678,8 @@ const $i = /* @__PURE__ */ Ue(Mi, [["render", Bi]]), Ai = { class: "absolute ins
|
|
|
5671
5678
|
"initial-variant": "full",
|
|
5672
5679
|
"peek-mode": "clip-full",
|
|
5673
5680
|
onClose: Ae,
|
|
5674
|
-
onExpand:
|
|
5675
|
-
onCollapse:
|
|
5681
|
+
onExpand: we,
|
|
5682
|
+
onCollapse: we
|
|
5676
5683
|
}, {
|
|
5677
5684
|
default: he(() => [
|
|
5678
5685
|
t("div", Ei, [
|
|
@@ -5688,13 +5695,13 @@ const $i = /* @__PURE__ */ Ue(Mi, [["render", Bi]]), Ai = { class: "absolute ins
|
|
|
5688
5695
|
o(m)["mobile-search-results"] ? fe(B.$slots, "mobile-search-results", {
|
|
5689
5696
|
key: 0,
|
|
5690
5697
|
rows: U.value,
|
|
5691
|
-
selectRow:
|
|
5698
|
+
selectRow: oe,
|
|
5692
5699
|
closeModal: Ae
|
|
5693
5700
|
}) : (s(), d("div", Di, [
|
|
5694
5701
|
x.value >= 1 ? fe(B.$slots, "table", {
|
|
5695
5702
|
key: 0,
|
|
5696
5703
|
rows: U.value,
|
|
5697
|
-
selectRow:
|
|
5704
|
+
selectRow: oe,
|
|
5698
5705
|
isMapVisible: !1
|
|
5699
5706
|
}) : (s(), d("div", Oi, [
|
|
5700
5707
|
J(bt),
|
|
@@ -5728,8 +5735,8 @@ const $i = /* @__PURE__ */ Ue(Mi, [["render", Bi]]), Ai = { class: "absolute ins
|
|
|
5728
5735
|
"initial-variant": "full",
|
|
5729
5736
|
"peek-mode": "clip-full",
|
|
5730
5737
|
onClose: Ae,
|
|
5731
|
-
onExpand:
|
|
5732
|
-
onCollapse:
|
|
5738
|
+
onExpand: we,
|
|
5739
|
+
onCollapse: we
|
|
5733
5740
|
}, {
|
|
5734
5741
|
default: he(() => [
|
|
5735
5742
|
t("div", Ui, [
|
|
@@ -5758,15 +5765,15 @@ const $i = /* @__PURE__ */ Ue(Mi, [["render", Bi]]), Ai = { class: "absolute ins
|
|
|
5758
5765
|
"initial-variant": "full",
|
|
5759
5766
|
"peek-mode": "clip-full",
|
|
5760
5767
|
onClose: Ae,
|
|
5761
|
-
onExpand:
|
|
5762
|
-
onCollapse:
|
|
5768
|
+
onExpand: we,
|
|
5769
|
+
onCollapse: we
|
|
5763
5770
|
}, {
|
|
5764
5771
|
default: he(() => [
|
|
5765
5772
|
t("div", Wi, [
|
|
5766
5773
|
x.value >= 1 ? fe(B.$slots, "table", {
|
|
5767
5774
|
key: 0,
|
|
5768
5775
|
rows: U.value,
|
|
5769
|
-
selectRow:
|
|
5776
|
+
selectRow: oe,
|
|
5770
5777
|
isMapVisible: !1
|
|
5771
5778
|
}) : (s(), d("div", Ni, [
|
|
5772
5779
|
J(bt),
|
|
@@ -5795,18 +5802,18 @@ const $i = /* @__PURE__ */ Ue(Mi, [["render", Bi]]), Ai = { class: "absolute ins
|
|
|
5795
5802
|
open: ee.value === "details",
|
|
5796
5803
|
title: "Об'єкт",
|
|
5797
5804
|
"top-offset": pt,
|
|
5798
|
-
"initial-variant":
|
|
5805
|
+
"initial-variant": xe.value ? "peek" : "full",
|
|
5799
5806
|
"peek-mode": "custom",
|
|
5800
|
-
onClose:
|
|
5801
|
-
onExpand:
|
|
5802
|
-
onCollapse:
|
|
5807
|
+
onClose: le,
|
|
5808
|
+
onExpand: we,
|
|
5809
|
+
onCollapse: we
|
|
5803
5810
|
}, {
|
|
5804
5811
|
peek: he(({ expand: N }) => [
|
|
5805
5812
|
o(m)["mobile-details-peek"] ? fe(B.$slots, "mobile-details-peek", {
|
|
5806
5813
|
key: 0,
|
|
5807
5814
|
selectedRow: S.value,
|
|
5808
5815
|
expand: N,
|
|
5809
|
-
close:
|
|
5816
|
+
close: le
|
|
5810
5817
|
}) : (s(), d("button", {
|
|
5811
5818
|
key: 1,
|
|
5812
5819
|
type: "button",
|
|
@@ -5818,7 +5825,7 @@ const $i = /* @__PURE__ */ Ue(Mi, [["render", Bi]]), Ai = { class: "absolute ins
|
|
|
5818
5825
|
fe(B.$slots, "details", {
|
|
5819
5826
|
table: n.table,
|
|
5820
5827
|
selectedRow: S.value,
|
|
5821
|
-
closeObjCard:
|
|
5828
|
+
closeObjCard: le
|
|
5822
5829
|
})
|
|
5823
5830
|
]),
|
|
5824
5831
|
_: 3
|
|
@@ -5906,7 +5913,7 @@ const $i = /* @__PURE__ */ Ue(Mi, [["render", Bi]]), Ai = { class: "absolute ins
|
|
|
5906
5913
|
x.value >= 1 ? fe(B.$slots, "table", {
|
|
5907
5914
|
key: 0,
|
|
5908
5915
|
rows: U.value,
|
|
5909
|
-
selectRow:
|
|
5916
|
+
selectRow: oe
|
|
5910
5917
|
}) : (s(), d("div", rs, [
|
|
5911
5918
|
J(bt),
|
|
5912
5919
|
$[27] || ($[27] = t("h2", { class: "font-medium text-base text-gray-500 rounded-xl" }, " За вашим запитом даних не знайдено! ", -1)),
|
|
@@ -5941,7 +5948,7 @@ const $i = /* @__PURE__ */ Ue(Mi, [["render", Bi]]), Ai = { class: "absolute ins
|
|
|
5941
5948
|
fe(B.$slots, "details", {
|
|
5942
5949
|
table: n.table,
|
|
5943
5950
|
selectedRow: S.value,
|
|
5944
|
-
closeObjCard:
|
|
5951
|
+
closeObjCard: ne
|
|
5945
5952
|
})
|
|
5946
5953
|
], 2)) : j("", !0),
|
|
5947
5954
|
ue(t("div", cs, [
|
|
@@ -5964,6 +5971,7 @@ const $i = /* @__PURE__ */ Ue(Mi, [["render", Bi]]), Ai = { class: "absolute ins
|
|
|
5964
5971
|
circleRadius: n.circleRadius,
|
|
5965
5972
|
circleStrokeWidth: n.circleStrokeWidth,
|
|
5966
5973
|
highlightCircleRadius: n.highlightCircleRadius,
|
|
5974
|
+
highlightCircleColor: n.highlightCircleColor,
|
|
5967
5975
|
alwaysShowPolygon: n.alwaysShowPolygon,
|
|
5968
5976
|
modelValue: qe.value,
|
|
5969
5977
|
"onUpdate:modelValue": $[18] || ($[18] = (N) => qe.value = N),
|
|
@@ -5977,7 +5985,7 @@ const $i = /* @__PURE__ */ Ue(Mi, [["render", Bi]]), Ai = { class: "absolute ins
|
|
|
5977
5985
|
fe(B.$slots, "popup", { data: N })
|
|
5978
5986
|
]),
|
|
5979
5987
|
_: 3
|
|
5980
|
-
}, 8, ["table", "map", "zoom", "minZoom", "maxZoom", "colorAttr", "strokeAttr", "filter", "center", "clusterZoom", "pointZoom", "polygonZoom", "geometryZoomBreakpoint", "mixedGeom", "circleRadius", "circleStrokeWidth", "highlightCircleRadius", "alwaysShowPolygon", "modelValue", "layers", "isCollapsible", "legendTitle", "legendWidth"]),
|
|
5988
|
+
}, 8, ["table", "map", "zoom", "minZoom", "maxZoom", "colorAttr", "strokeAttr", "filter", "center", "clusterZoom", "pointZoom", "polygonZoom", "geometryZoomBreakpoint", "mixedGeom", "circleRadius", "circleStrokeWidth", "highlightCircleRadius", "highlightCircleColor", "alwaysShowPolygon", "modelValue", "layers", "isCollapsible", "legendTitle", "legendWidth"]),
|
|
5981
5989
|
fe(B.$slots, "default", {
|
|
5982
5990
|
table: n.table,
|
|
5983
5991
|
map: v.value,
|