@opengis/partsmap 0.1.32 → 0.1.33
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/README.md +84 -84
- package/dist/index.js +102 -98
- package/dist/index.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +49 -49
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as ne, reactive as It, createApp as Ut, h as Jt, createElementBlock as d, openBlock as s, createElementVNode as t, createBlock as Q, resolveDynamicComponent as ze, toDisplayString as D, useAttrs as el, computed as H, ref as B, watch as N, nextTick as je, useSlots as et, toRaw as Qe, Fragment as G, createCommentVNode as j, mergeProps as he, createSlots as tl, withCtx as ge, renderSlot as fe, unref as o, normalizeProps as ll, guardReactiveProps as ol, Teleport as ct, renderList as se, normalizeClass as K, onMounted as Ee, onBeforeUnmount as We, withKeys as $t, withModifiers as Le, createVNode as J, normalizeStyle as Ae, getCurrentInstance as ht, cloneVNode as al, withDirectives as ue, vShow as Ve, createTextVNode as de, isRef as nl, vModelText as Ue, createStaticVNode as rt, resolveDirective as rl, vModelCheckbox as il } from "vue";
|
|
2
2
|
const dt = (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
|
+
ne({
|
|
9
9
|
props: {
|
|
10
10
|
modelValue: { type: Boolean, default: () => !1 },
|
|
11
11
|
title: { type: String, default: () => "" },
|
|
@@ -114,7 +114,7 @@ function kl(e, i) {
|
|
|
114
114
|
}, null, -1)
|
|
115
115
|
]));
|
|
116
116
|
}
|
|
117
|
-
const Cl = /* @__PURE__ */ dt(xl, [["render", kl]]), _l = { 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" }, Sl = { class: "flex-1" }, Vl = { class: "font-medium text-gray-900" }, $l = { class: "mt-0.5 text-sm text-gray-700" }, Al = /* @__PURE__ */
|
|
117
|
+
const Cl = /* @__PURE__ */ dt(xl, [["render", kl]]), _l = { 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" }, Sl = { class: "flex-1" }, Vl = { class: "font-medium text-gray-900" }, $l = { class: "mt-0.5 text-sm text-gray-700" }, Al = /* @__PURE__ */ ne({
|
|
118
118
|
__name: "vs-notify",
|
|
119
119
|
props: {
|
|
120
120
|
type: {},
|
|
@@ -257,7 +257,7 @@ const Ie = /* @__PURE__ */ Fe(zl, [["render", El]]), Zl = { class: "flex items-c
|
|
|
257
257
|
}, Ul = {
|
|
258
258
|
key: 1,
|
|
259
259
|
class: "absolute right-2 flex size-3.5 items-center justify-center"
|
|
260
|
-
}, yt = /* @__PURE__ */
|
|
260
|
+
}, yt = /* @__PURE__ */ ne({
|
|
261
261
|
__name: "list-item",
|
|
262
262
|
props: {
|
|
263
263
|
layout: {},
|
|
@@ -549,7 +549,7 @@ const wt = /* @__PURE__ */ Fe(Yl, [["render", Xl]]), Jl = {
|
|
|
549
549
|
}, lo = {
|
|
550
550
|
key: 1,
|
|
551
551
|
class: "py-2 px-2"
|
|
552
|
-
}, oo = ["disabled"], ao = /* @__PURE__ */
|
|
552
|
+
}, oo = ["disabled"], ao = /* @__PURE__ */ ne({
|
|
553
553
|
__name: "radio",
|
|
554
554
|
props: {
|
|
555
555
|
id: {},
|
|
@@ -779,7 +779,7 @@ const no = {
|
|
|
779
779
|
}, co = {
|
|
780
780
|
key: 1,
|
|
781
781
|
class: "py-2 px-2 border-t"
|
|
782
|
-
}, po = ["disabled"], fo = { class: "text-xs text-gray-500" }, Pt = /* @__PURE__ */
|
|
782
|
+
}, po = ["disabled"], fo = { class: "text-xs text-gray-500" }, Pt = /* @__PURE__ */ ne({
|
|
783
783
|
__name: "checkbox",
|
|
784
784
|
props: {
|
|
785
785
|
id: {},
|
|
@@ -963,7 +963,7 @@ class Wt {
|
|
|
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 xo = { class: "absolute bottom-2/4 translate-y-2/4 cursor-pointer left-3" }, wo = ["placeholder"], ko = /* @__PURE__ */
|
|
966
|
+
const xo = { class: "absolute bottom-2/4 translate-y-2/4 cursor-pointer left-3" }, wo = ["placeholder"], ko = /* @__PURE__ */ ne({
|
|
967
967
|
__name: "text-input",
|
|
968
968
|
props: {
|
|
969
969
|
id: {},
|
|
@@ -1055,7 +1055,7 @@ const xo = { class: "absolute bottom-2/4 translate-y-2/4 cursor-pointer left-3"
|
|
|
1055
1055
|
}, So = {
|
|
1056
1056
|
key: 0,
|
|
1057
1057
|
class: "block text-xs font-medium text-gray-600 mb-1"
|
|
1058
|
-
}, Vo = ["placeholder", "disabled"], $o = ["disabled"], Ao = /* @__PURE__ */
|
|
1058
|
+
}, Vo = ["placeholder", "disabled"], $o = ["disabled"], Ao = /* @__PURE__ */ ne({
|
|
1059
1059
|
__name: "range-input",
|
|
1060
1060
|
props: {
|
|
1061
1061
|
id: {},
|
|
@@ -1374,7 +1374,7 @@ const Bo = {
|
|
|
1374
1374
|
}, Zo = {
|
|
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" }, Ro = ["title", "onClick"], Io = { class: "pt-2 px-2" }, Uo = ["disabled"], To = /* @__PURE__ */
|
|
1377
|
+
}, Do = ["min", "disabled"], Oo = { class: "flex gap-1 px-2" }, Ro = ["title", "onClick"], Io = { class: "pt-2 px-2" }, Uo = ["disabled"], To = /* @__PURE__ */ ne({
|
|
1378
1378
|
__name: "date-input",
|
|
1379
1379
|
props: {
|
|
1380
1380
|
id: {},
|
|
@@ -1682,7 +1682,7 @@ const Ho = { class: "h-[45px] shrink-0 px-[6px] py-[4px] flex items-center relat
|
|
|
1682
1682
|
}, Xo = {
|
|
1683
1683
|
key: 1,
|
|
1684
1684
|
class: "py-2 px-2 border-t"
|
|
1685
|
-
}, Jo = ["disabled"], ea = { class: "text-xs text-gray-500" }, ta = /* @__PURE__ */
|
|
1685
|
+
}, Jo = ["disabled"], ea = { class: "text-xs text-gray-500" }, ta = /* @__PURE__ */ ne({
|
|
1686
1686
|
__name: "select",
|
|
1687
1687
|
props: {
|
|
1688
1688
|
id: {},
|
|
@@ -1864,7 +1864,7 @@ const Ho = { class: "h-[45px] shrink-0 px-[6px] py-[4px] flex items-center relat
|
|
|
1864
1864
|
}, ra = {
|
|
1865
1865
|
key: 1,
|
|
1866
1866
|
class: "pt-2 px-2 border-t"
|
|
1867
|
-
}, ia = ["disabled"], sa = { class: "text-xs text-gray-500" }, ua = /* @__PURE__ */
|
|
1867
|
+
}, ia = ["disabled"], sa = { class: "text-xs text-gray-500" }, ua = /* @__PURE__ */ ne({
|
|
1868
1868
|
__name: "tag-field",
|
|
1869
1869
|
props: {
|
|
1870
1870
|
id: {},
|
|
@@ -1968,7 +1968,7 @@ const Ho = { class: "h-[45px] shrink-0 px-[6px] py-[4px] flex items-center relat
|
|
|
1968
1968
|
}), ca = ["disabled", "title"], da = { class: "flex w-full items-center justify-between gap-1 overflow-hidden text-left" }, pa = { class: "truncate text-ellipsis text-sm" }, fa = {
|
|
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
|
-
}, va = { 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" }, ma = { 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" }, Ct = /* @__PURE__ */
|
|
1971
|
+
}, va = { 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" }, ma = { 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" }, Ct = /* @__PURE__ */ ne({
|
|
1972
1972
|
__name: "popover-field",
|
|
1973
1973
|
props: {
|
|
1974
1974
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -2140,7 +2140,7 @@ function ka(e, i) {
|
|
|
2140
2140
|
const Ca = /* @__PURE__ */ Fe(xa, [["render", ka]]), _a = { class: "flex gap-1" }, Ma = { class: "mb-1" }, Sa = { class: "mb-1" }, Va = { class: "inline-flex rounded-sm shrink-0 pl-1" }, $a = ["title"], Aa = { class: "inline-flex rounded-sm shrink-0 pl-1" }, Ba = ["title"], Pa = {
|
|
2141
2141
|
key: 1,
|
|
2142
2142
|
class: "flex gap-1 !w-[75%] rounded-sm"
|
|
2143
|
-
}, La = ["max", "value", "disabled"], ja = ["min", "value", "disabled"], za = /* @__PURE__ */
|
|
2143
|
+
}, La = ["max", "value", "disabled"], ja = ["min", "value", "disabled"], za = /* @__PURE__ */ ne({
|
|
2144
2144
|
__name: "date-input-inline",
|
|
2145
2145
|
props: {
|
|
2146
2146
|
id: {},
|
|
@@ -2343,7 +2343,7 @@ const Ca = /* @__PURE__ */ Fe(xa, [["render", ka]]), _a = { class: "flex gap-1"
|
|
|
2343
2343
|
}), Fa = ["disabled", "onClick"], Ea = {
|
|
2344
2344
|
key: 0,
|
|
2345
2345
|
class: "pt-2 px-2 border-t"
|
|
2346
|
-
}, Za = ["disabled"], Da = /* @__PURE__ */
|
|
2346
|
+
}, Za = ["disabled"], Da = /* @__PURE__ */ ne({
|
|
2347
2347
|
__name: "button-field",
|
|
2348
2348
|
props: {
|
|
2349
2349
|
id: {},
|
|
@@ -2450,7 +2450,7 @@ function _t(e, i) {
|
|
|
2450
2450
|
type: a
|
|
2451
2451
|
};
|
|
2452
2452
|
}
|
|
2453
|
-
const Oa = { style: { display: "inline-flex", margin: "0px", width: "100%" } }, Ra = { class: "relative w-full mb-2 p-4 bg-white rounded-md shadow-sm" }, Ia = { class: "block mb-3 text-sm font-medium text-gray-800 dark:text-neutral-200" }, Ua = { class: "flex items-center" }, Ta = { class: "text-sm font-medium max-w-[80%] text-gray-800 flex items-center gap-x-1" }, Ka = { class: "filter-layout__body" }, Ha = /* @__PURE__ */
|
|
2453
|
+
const Oa = { style: { display: "inline-flex", margin: "0px", width: "100%" } }, Ra = { class: "relative w-full mb-2 p-4 bg-white rounded-md shadow-sm" }, Ia = { class: "block mb-3 text-sm font-medium text-gray-800 dark:text-neutral-200" }, Ua = { class: "flex items-center" }, Ta = { class: "text-sm font-medium max-w-[80%] text-gray-800 flex items-center gap-x-1" }, Ka = { class: "filter-layout__body" }, Ha = /* @__PURE__ */ ne({
|
|
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
|
-
}), jt = /* @__PURE__ */
|
|
2562
|
+
}), jt = /* @__PURE__ */ ne({
|
|
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__ */ ne({
|
|
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
|
-
}), Be = /* @__PURE__ */
|
|
2726
|
+
}), Be = /* @__PURE__ */ ne({
|
|
2727
2727
|
__name: "filter-field",
|
|
2728
2728
|
props: {
|
|
2729
2729
|
id: {},
|
|
@@ -2893,7 +2893,7 @@ function ft(e, i) {
|
|
|
2893
2893
|
filterRef: S
|
|
2894
2894
|
};
|
|
2895
2895
|
}
|
|
2896
|
-
const Wa = /* @__PURE__ */
|
|
2896
|
+
const Wa = /* @__PURE__ */ ne({
|
|
2897
2897
|
__name: "popover",
|
|
2898
2898
|
emits: ["open", "close"],
|
|
2899
2899
|
setup(e, { emit: i }) {
|
|
@@ -2993,7 +2993,7 @@ const Gt = /* @__PURE__ */ Fe(qa, [["render", Ya]]), Qa = { class: "flex items-c
|
|
|
2993
2993
|
}, vn = { class: "flex-1 min-h-[250px] md:min-h-[300px] overflow-y-auto" }, mn = {
|
|
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" }, Yt = /* @__PURE__ */
|
|
2996
|
+
}, gn = { class: "text-xs md:text-sm" }, Yt = /* @__PURE__ */ ne({
|
|
2997
2997
|
__name: "popover-filter-layout",
|
|
2998
2998
|
props: {
|
|
2999
2999
|
badgeCount: {},
|
|
@@ -3170,7 +3170,7 @@ const Gt = /* @__PURE__ */ Fe(qa, [["render", Ya]]), Qa = { class: "flex items-c
|
|
|
3170
3170
|
_: 1
|
|
3171
3171
|
}));
|
|
3172
3172
|
}
|
|
3173
|
-
}), hn = { class: "flex gap-1 items-center flex-wrap" }, zt = /* @__PURE__ */
|
|
3173
|
+
}), hn = { class: "flex gap-1 items-center flex-wrap" }, zt = /* @__PURE__ */ ne({
|
|
3174
3174
|
__name: "inline-filter-layout",
|
|
3175
3175
|
props: {
|
|
3176
3176
|
schema: {},
|
|
@@ -3292,7 +3292,7 @@ const Gt = /* @__PURE__ */ Fe(qa, [["render", Ya]]), Qa = { class: "flex items-c
|
|
|
3292
3292
|
}), yn = {
|
|
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
|
-
}, bn = { class: "flex items-center vst-filters vsTailwind flex-col w-full" }, xn = /* @__PURE__ */
|
|
3295
|
+
}, bn = { class: "flex items-center vst-filters vsTailwind flex-col w-full" }, xn = /* @__PURE__ */ ne({
|
|
3296
3296
|
__name: "vertical-filter-layout",
|
|
3297
3297
|
props: {
|
|
3298
3298
|
schema: {},
|
|
@@ -3372,7 +3372,7 @@ const Gt = /* @__PURE__ */ Fe(qa, [["render", Ya]]), Qa = { class: "flex items-c
|
|
|
3372
3372
|
}, _n = { 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" }, Sn = { class: "text-[15px] font-semibold text-slate-800" }, Vn = { "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
|
-
}, Bn = /* @__PURE__ */
|
|
3375
|
+
}, Bn = /* @__PURE__ */ ne({
|
|
3376
3376
|
__name: "popover-inline-filter-layout",
|
|
3377
3377
|
props: {
|
|
3378
3378
|
schema: {},
|
|
@@ -3562,7 +3562,7 @@ const Gt = /* @__PURE__ */ Fe(qa, [["render", Ya]]), Qa = { class: "flex items-c
|
|
|
3562
3562
|
]))
|
|
3563
3563
|
], 512));
|
|
3564
3564
|
}
|
|
3565
|
-
}), Pn = { class: "mb-6 flex flex-wrap gap-2" }, Ln = ["onClick"], jn = { class: "mr-2 flex items-center gap-1" }, zn = { class: "font-semibold" }, Fn = { class: "text-xs text-gray-500" }, ut = /* @__PURE__ */
|
|
3565
|
+
}), Pn = { class: "mb-6 flex flex-wrap gap-2" }, Ln = ["onClick"], jn = { class: "mr-2 flex items-center gap-1" }, zn = { class: "font-semibold" }, Fn = { class: "text-xs text-gray-500" }, ut = /* @__PURE__ */ ne({
|
|
3566
3566
|
__name: "filter",
|
|
3567
3567
|
props: {
|
|
3568
3568
|
schema: {},
|
|
@@ -3818,7 +3818,7 @@ const Zn = { 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
|
-
}, mt = /* @__PURE__ */
|
|
3821
|
+
}, mt = /* @__PURE__ */ ne({
|
|
3822
3822
|
__name: "pagination",
|
|
3823
3823
|
props: {
|
|
3824
3824
|
total: {},
|
|
@@ -4099,7 +4099,7 @@ function Ft(e, i) {
|
|
|
4099
4099
|
clearTimeout(a), a = setTimeout(() => e(...r), i);
|
|
4100
4100
|
};
|
|
4101
4101
|
}
|
|
4102
|
-
const fr = { class: "fixed inset-0 z-50 pointer-events-none" }, vr = { class: "text-base font-semibold text-gray-900" }, mr = { class: "px-4 pb-3 min-h-0 shrink-0 overflow-hidden" }, gr = { class: "flex flex-col flex-1 min-h-0 overflow-hidden" }, hr = { class: "text-base font-semibold text-gray-900" }, yr = { class: "flex-1 min-h-0 overflow-auto p-4" }, br = 152, Et = 96, xr = 270, Zt = 96, wr = /* @__PURE__ */
|
|
4102
|
+
const fr = { class: "fixed inset-0 z-50 pointer-events-none" }, vr = { class: "text-base font-semibold text-gray-900" }, mr = { class: "px-4 pb-3 min-h-0 shrink-0 overflow-hidden" }, gr = { class: "flex flex-col flex-1 min-h-0 overflow-hidden" }, hr = { class: "text-base font-semibold text-gray-900" }, yr = { class: "flex-1 min-h-0 overflow-auto p-4" }, br = 152, Et = 96, xr = 270, Zt = 96, wr = /* @__PURE__ */ ne({
|
|
4103
4103
|
__name: "MobileModalShell",
|
|
4104
4104
|
props: {
|
|
4105
4105
|
open: { type: Boolean },
|
|
@@ -4288,10 +4288,10 @@ const fr = { class: "fixed inset-0 z-50 pointer-events-none" }, vr = { class: "t
|
|
|
4288
4288
|
[Ve, e.open]
|
|
4289
4289
|
]);
|
|
4290
4290
|
}
|
|
4291
|
-
}), Xe = /* @__PURE__ */ Ze(wr, [["__scopeId", "data-v-
|
|
4291
|
+
}), Xe = /* @__PURE__ */ Ze(wr, [["__scopeId", "data-v-74c152ea"]]), kr = {
|
|
4292
4292
|
class: "flex flex-col gap-2 pointer-events-auto self-end",
|
|
4293
4293
|
"data-peek-controls": "1"
|
|
4294
|
-
}, Cr = /* @__PURE__ */
|
|
4294
|
+
}, Cr = /* @__PURE__ */ ne({
|
|
4295
4295
|
__name: "MapMobilePeekControlButtons",
|
|
4296
4296
|
props: {
|
|
4297
4297
|
onOpenLayers: { type: Function },
|
|
@@ -4528,7 +4528,7 @@ const Mr = [
|
|
|
4528
4528
|
}, li = ["title", "onClick"], oi = ["src"], ai = { 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" }, ni = { class: "vs-mobile-peek-controls flex justify-center w-full" }, ri = { class: "w-full" }, ii = { class: "legend-panel__header flex items-center justify-between gap-2 py-[7px] pl-[10px] pr-[7px] pb-[12px]" }, si = { class: "text-[0.875rem] font-medium text-stone-700" }, ui = { class: "legend-panel__content overflow-hidden transition-all duration-200 ease-out" }, ci = { class: "p-[10px] pt-0" }, di = { class: "flex justify-start items-center gap-2" }, pi = { class: "flex-1 flex justify-between items-center min-w-0 ml-1" }, fi = { class: "text-[0.875rem]" }, vi = {
|
|
4529
4529
|
key: 0,
|
|
4530
4530
|
class: "text-[0.8rem] text-stone-500 shrink-0 ml-2"
|
|
4531
|
-
}, Ye = "vector-clusters", Dt = /* @__PURE__ */
|
|
4531
|
+
}, Ye = "vector-clusters", Dt = /* @__PURE__ */ ne({
|
|
4532
4532
|
__name: "map",
|
|
4533
4533
|
props: {
|
|
4534
4534
|
table: {},
|
|
@@ -4567,11 +4567,11 @@ const Mr = [
|
|
|
4567
4567
|
return ((T = (R = w == null ? void 0 : w.appContext.config.globalProperties) == null ? void 0 : R.$settings) == null ? void 0 : T.basemaps) || [];
|
|
4568
4568
|
}), f = H(() => (a.layers && a.layers.length ? a.layers : p.value.length ? p.value : Mr).map((T, q) => {
|
|
4569
4569
|
var be;
|
|
4570
|
-
const E = T.id || ((be = T.name) == null ? void 0 : be.toString().toLowerCase().replace(/\s+/g, "-")) || `layer-${q}`,
|
|
4570
|
+
const E = T.id || ((be = T.name) == null ? void 0 : be.toString().toLowerCase().replace(/\s+/g, "-")) || `layer-${q}`, re = T.name || T.id || `layer-${q}`;
|
|
4571
4571
|
return {
|
|
4572
4572
|
...T,
|
|
4573
4573
|
id: E,
|
|
4574
|
-
name:
|
|
4574
|
+
name: re
|
|
4575
4575
|
};
|
|
4576
4576
|
})), z = B(""), U = H(() => f.value.find((R) => R.id === z.value) || f.value[0]);
|
|
4577
4577
|
N(f, (R) => {
|
|
@@ -4616,11 +4616,11 @@ const Mr = [
|
|
|
4616
4616
|
function L() {
|
|
4617
4617
|
if (typeof window > "u")
|
|
4618
4618
|
return { zoom: null, center: null, hasQuery: !1 };
|
|
4619
|
-
const R = new URLSearchParams(window.location.search), T = Number(R.get("z")), q = Number(R.get("y")), E = Number(R.get("x")),
|
|
4619
|
+
const R = new URLSearchParams(window.location.search), T = Number(R.get("z")), q = Number(R.get("y")), E = Number(R.get("x")), re = R.has("x") && R.has("y"), be = R.has("z");
|
|
4620
4620
|
return {
|
|
4621
4621
|
zoom: be ? T : null,
|
|
4622
|
-
center:
|
|
4623
|
-
hasQuery:
|
|
4622
|
+
center: re ? [E, q] : null,
|
|
4623
|
+
hasQuery: re || be
|
|
4624
4624
|
};
|
|
4625
4625
|
}
|
|
4626
4626
|
function X(R, T) {
|
|
@@ -4647,7 +4647,7 @@ const Mr = [
|
|
|
4647
4647
|
function lt() {
|
|
4648
4648
|
const R = tt(a.modelValue), T = ["all", R, _e], q = ["all", R, Me];
|
|
4649
4649
|
if (!l.getLayer("vector-highlight-circle")) {
|
|
4650
|
-
const
|
|
4650
|
+
const re = Pe(), be = re != null ? re - 0.01 : 24;
|
|
4651
4651
|
l.addLayer({
|
|
4652
4652
|
id: "vector-highlight-circle",
|
|
4653
4653
|
type: "circle",
|
|
@@ -4665,11 +4665,11 @@ const Mr = [
|
|
|
4665
4665
|
});
|
|
4666
4666
|
}
|
|
4667
4667
|
if (!l.getLayer("vector-highlight-fill")) {
|
|
4668
|
-
const
|
|
4668
|
+
const re = Pe();
|
|
4669
4669
|
l.addLayer({
|
|
4670
4670
|
id: "vector-highlight-fill",
|
|
4671
4671
|
type: "line",
|
|
4672
|
-
minzoom:
|
|
4672
|
+
minzoom: re ?? 24,
|
|
4673
4673
|
source: "vector",
|
|
4674
4674
|
"source-layer": a.table,
|
|
4675
4675
|
paint: {
|
|
@@ -4703,15 +4703,15 @@ const Mr = [
|
|
|
4703
4703
|
}
|
|
4704
4704
|
function ye() {
|
|
4705
4705
|
if (!(l != null && l.setLayerZoomRange)) return;
|
|
4706
|
-
const R = a.minZoom ?? 0, T = Math.min((a.maxZoom ?? 18) + 0.01, 24), E = (a.clusterZoom ?? 12) - 0.01,
|
|
4706
|
+
const R = a.minZoom ?? 0, T = Math.min((a.maxZoom ?? 18) + 0.01, 24), E = (a.clusterZoom ?? 12) - 0.01, re = Pe(), be = re - 0.01, He = _.value ? be : T, Oe = re;
|
|
4707
4707
|
a.alwaysShowPolygon ? (l.getLayer("vector-circle") && l.setLayerZoomRange("vector-circle", R, 0), l.getLayer("vector-highlight-circle") && l.setLayerZoomRange("vector-highlight-circle", R, 0), l.getLayer("vector-fill") && l.setLayerZoomRange("vector-fill", R, T), l.getLayer("vector-highlight-fill") && l.setLayerZoomRange("vector-highlight-fill", R, T), l.getLayer(Ye) && l.setLayerZoomRange(Ye, R, 0), l.getLayer("vector-cluster-count") && l.setLayerZoomRange("vector-cluster-count", R, 0)) : (l.getLayer("vector-circle") && l.setLayerZoomRange("vector-circle", R, He), l.getLayer("vector-highlight-circle") && l.setLayerZoomRange("vector-highlight-circle", R, He), l.getLayer("vector-fill") && l.setLayerZoomRange("vector-fill", Oe, T), l.getLayer("vector-stroke") && l.setLayerZoomRange("vector-stroke", Oe, T), l.getLayer("vector-highlight-fill") && l.setLayerZoomRange("vector-highlight-fill", Oe, T), l.getLayer(Ye) && l.setLayerZoomRange(Ye, R, E), l.getLayer("vector-cluster-count") && l.setLayerZoomRange("vector-cluster-count", R, E));
|
|
4708
4708
|
}
|
|
4709
4709
|
function at() {
|
|
4710
4710
|
if (l != null && l.getSource("vector")) {
|
|
4711
4711
|
try {
|
|
4712
4712
|
const T = l.querySourceFeatures("vector", { sourceLayer: a.table }).some((q) => {
|
|
4713
|
-
var
|
|
4714
|
-
const E = (
|
|
4713
|
+
var re;
|
|
4714
|
+
const E = (re = q.geometry) == null ? void 0 : re.type;
|
|
4715
4715
|
return E === "Polygon" || E === "MultiPolygon";
|
|
4716
4716
|
});
|
|
4717
4717
|
_.value = T;
|
|
@@ -4722,8 +4722,12 @@ const Mr = [
|
|
|
4722
4722
|
}
|
|
4723
4723
|
const De = L();
|
|
4724
4724
|
le = De.hasQuery, Ee(async () => {
|
|
4725
|
-
M = (await fetch(`/api/data/${a.table}/${a.colorAttr}`).then((
|
|
4726
|
-
|
|
4725
|
+
M = (await fetch(`/api/data/${a.table}/${a.colorAttr}`).then((ae) => ae.json())).rows, M.forEach((ae, ee) => {
|
|
4726
|
+
if (ae.id == null || ae.id === "") {
|
|
4727
|
+
ae.color = "#808080";
|
|
4728
|
+
return;
|
|
4729
|
+
}
|
|
4730
|
+
ae.color || Object.assign(ae, { color: P[ee % 10] });
|
|
4727
4731
|
});
|
|
4728
4732
|
const T = a.strokeAttr;
|
|
4729
4733
|
if (y = [], T) {
|
|
@@ -4739,7 +4743,7 @@ const Mr = [
|
|
|
4739
4743
|
});
|
|
4740
4744
|
const q = U.value;
|
|
4741
4745
|
if (!q) return;
|
|
4742
|
-
const E = De.center || a.center || Z,
|
|
4746
|
+
const E = De.center || a.center || Z, re = De.zoom || a.zoom || 5;
|
|
4743
4747
|
l = new maplibregl.Map({
|
|
4744
4748
|
container: n.value,
|
|
4745
4749
|
style: {
|
|
@@ -4755,14 +4759,14 @@ const Mr = [
|
|
|
4755
4759
|
},
|
|
4756
4760
|
center: E,
|
|
4757
4761
|
// [lng, lat]
|
|
4758
|
-
zoom:
|
|
4762
|
+
zoom: re,
|
|
4759
4763
|
minZoom: a.minZoom ?? 3,
|
|
4760
4764
|
maxZoom: a.maxZoom ?? 18,
|
|
4761
4765
|
attributionControl: !1
|
|
4762
4766
|
}), r("update:map", l);
|
|
4763
4767
|
const be = a.mobilePeekControls ? "bottom-right" : "top-right";
|
|
4764
4768
|
if (l.addControl(new maplibregl.NavigationControl(), be), a.mobilePeekControls) {
|
|
4765
|
-
const
|
|
4769
|
+
const ae = {
|
|
4766
4770
|
onAdd: () => {
|
|
4767
4771
|
const ee = document.createElement("div");
|
|
4768
4772
|
return b = ee, S = Ut(Cr, {
|
|
@@ -4778,7 +4782,7 @@ const Mr = [
|
|
|
4778
4782
|
S == null || S.unmount(), S = null, b = null;
|
|
4779
4783
|
}
|
|
4780
4784
|
};
|
|
4781
|
-
l.addControl(
|
|
4785
|
+
l.addControl(ae, "bottom-right"), l.once("render", () => {
|
|
4782
4786
|
if (!b) return;
|
|
4783
4787
|
const ee = l.getContainer(), oe = ee.querySelector(".maplibregl-ctrl-bottom-right"), ve = ee.querySelector(".maplibregl-ctrl-zoom-in"), pe = ve == null ? void 0 : ve.closest(".maplibregl-ctrl-group");
|
|
4784
4788
|
!oe || !pe || b.parentElement === oe && (oe.removeChild(b), oe.insertBefore(b, pe.nextSibling));
|
|
@@ -4787,7 +4791,7 @@ const Mr = [
|
|
|
4787
4791
|
l.on("zoom", () => {
|
|
4788
4792
|
}), l.on("moveend", we), l.on("zoomend", we), le && te(), l.on("load", () => {
|
|
4789
4793
|
l == null || l.resize(), m.value = !0;
|
|
4790
|
-
const
|
|
4794
|
+
const ae = M.filter((pe) => pe.id != null && pe.id !== "").reduce((pe, ke) => [String(ke.id), ke.color].concat(pe), []), ee = ["match", ["to-string", ["get", a.colorAttr]], ...ae, "#808080"], oe = (y || []).filter((pe) => pe.id != null && pe.id !== "").reduce((pe, ke) => [String(ke.id), ke.color].concat(pe), []), ve = T ? ["match", ["to-string", ["get", T]], ...oe, "rgba(0,0,0,0)"] : "rgba(0,0,0,0)";
|
|
4791
4795
|
Y = ee, _r(
|
|
4792
4796
|
a.table,
|
|
4793
4797
|
l,
|
|
@@ -4801,35 +4805,35 @@ const Mr = [
|
|
|
4801
4805
|
pe.sourceId === "vector" && pe.isSourceLoaded && Pe() != null && at();
|
|
4802
4806
|
});
|
|
4803
4807
|
});
|
|
4804
|
-
const He = (
|
|
4808
|
+
const He = (ae) => {
|
|
4805
4809
|
var oe, ve;
|
|
4806
|
-
const ee = (oe =
|
|
4810
|
+
const ee = (oe = ae.features) == null ? void 0 : oe[0];
|
|
4807
4811
|
(ve = ee == null ? void 0 : ee.properties) != null && ve.id && r("update:modelValue", ee.properties.id);
|
|
4808
4812
|
};
|
|
4809
|
-
v.forEach((
|
|
4810
|
-
l.on("click",
|
|
4811
|
-
}), l.on("click", Ye, (
|
|
4813
|
+
v.forEach((ae) => {
|
|
4814
|
+
l.on("click", ae, He);
|
|
4815
|
+
}), l.on("click", Ye, (ae) => {
|
|
4812
4816
|
var ke, Re, nt;
|
|
4813
|
-
const ee = (ke =
|
|
4817
|
+
const ee = (ke = ae.features) == null ? void 0 : ke[0];
|
|
4814
4818
|
if (!ee) return;
|
|
4815
4819
|
const { geometry: oe } = ee, ve = (oe == null ? void 0 : oe.type) === "Point" ? oe.coordinates : (nt = (Re = oe == null ? void 0 : oe.coordinates) == null ? void 0 : Re[0]) == null ? void 0 : nt[0];
|
|
4816
4820
|
if (!ve) return;
|
|
4817
4821
|
const pe = Math.min(l.getZoom() + 2, l.getMaxZoom());
|
|
4818
4822
|
l.easeTo({ center: ve, zoom: pe });
|
|
4819
|
-
}), [...v, Ye].forEach((
|
|
4820
|
-
l.on("mouseenter",
|
|
4823
|
+
}), [...v, Ye].forEach((ae) => {
|
|
4824
|
+
l.on("mouseenter", ae, () => {
|
|
4821
4825
|
l.getCanvas().style.cursor = "pointer";
|
|
4822
|
-
}), l.on("mouseleave",
|
|
4826
|
+
}), l.on("mouseleave", ae, () => {
|
|
4823
4827
|
l.getCanvas().style.cursor = "";
|
|
4824
4828
|
});
|
|
4825
|
-
}), l.on("mousemove", (
|
|
4829
|
+
}), l.on("mousemove", (ae) => {
|
|
4826
4830
|
var ke, Re;
|
|
4827
4831
|
if (!F.value) {
|
|
4828
4832
|
(ke = c == null ? void 0 : c.remove) == null || ke.call(c);
|
|
4829
4833
|
return;
|
|
4830
4834
|
}
|
|
4831
4835
|
if (!c) return;
|
|
4832
|
-
const ee = l.queryRenderedFeatures(
|
|
4836
|
+
const ee = l.queryRenderedFeatures(ae.point, { layers: v });
|
|
4833
4837
|
if (!ee || !ee.length) {
|
|
4834
4838
|
c.remove();
|
|
4835
4839
|
return;
|
|
@@ -4871,13 +4875,13 @@ const Mr = [
|
|
|
4871
4875
|
const T = tt(R), q = ["all", T, _e], E = ["all", T, Me];
|
|
4872
4876
|
if (l.getLayer("vector-highlight-circle")) {
|
|
4873
4877
|
l.setFilter("vector-highlight-circle", q);
|
|
4874
|
-
const
|
|
4875
|
-
l.setLayoutProperty("vector-highlight-circle", "visibility",
|
|
4878
|
+
const re = R ? "visible" : "none";
|
|
4879
|
+
l.setLayoutProperty("vector-highlight-circle", "visibility", re);
|
|
4876
4880
|
}
|
|
4877
4881
|
if (l.getLayer("vector-highlight-fill")) {
|
|
4878
4882
|
l.setFilter("vector-highlight-fill", E);
|
|
4879
|
-
const
|
|
4880
|
-
l.setLayoutProperty("vector-highlight-fill", "visibility",
|
|
4883
|
+
const re = R ? "visible" : "none";
|
|
4884
|
+
l.setLayoutProperty("vector-highlight-fill", "visibility", re);
|
|
4881
4885
|
}
|
|
4882
4886
|
Te(), R ? Ge() : ot();
|
|
4883
4887
|
}), N(z, (R, T) => {
|
|
@@ -4887,20 +4891,20 @@ const Mr = [
|
|
|
4887
4891
|
l.getLayer(T) && l.removeLayer(T), l.getSource(T) && l.removeSource(T);
|
|
4888
4892
|
const E = `${T}-overlay`;
|
|
4889
4893
|
l.getLayer(E) && l.removeLayer(E), l.getSource(E) && l.removeSource(E), l.addSource(R, { type: "raster", tiles: [q.url], tileSize: 256 }), q.overlayUrl && l.addSource(`${R}-overlay`, { type: "raster", tiles: [q.overlayUrl], tileSize: 256 });
|
|
4890
|
-
const
|
|
4894
|
+
const re = l.getLayer("vector-clusters") ? "vector-clusters" : l.getLayer("vector-circle") ? "vector-circle" : void 0;
|
|
4891
4895
|
l.addLayer({
|
|
4892
4896
|
id: q.id,
|
|
4893
4897
|
type: "raster",
|
|
4894
4898
|
source: q.id,
|
|
4895
4899
|
minzoom: 0,
|
|
4896
4900
|
maxzoom: 19
|
|
4897
|
-
},
|
|
4901
|
+
}, re), q.overlayUrl && l.addLayer({
|
|
4898
4902
|
id: `${R}-overlay`,
|
|
4899
4903
|
type: "raster",
|
|
4900
4904
|
source: `${R}-overlay`,
|
|
4901
4905
|
minzoom: 0,
|
|
4902
4906
|
maxzoom: 19
|
|
4903
|
-
},
|
|
4907
|
+
}, re);
|
|
4904
4908
|
}), We(() => {
|
|
4905
4909
|
ot(), l && (l.off("moveend", we), l.off("zoomend", we), l.remove());
|
|
4906
4910
|
}), (R, T) => {
|
|
@@ -5045,7 +5049,7 @@ const Mr = [
|
|
|
5045
5049
|
key: E.id,
|
|
5046
5050
|
title: E.name,
|
|
5047
5051
|
class: K(["vs-map-slot-layers__layer relative", { focused: z.value === E.id }]),
|
|
5048
|
-
onClick: (
|
|
5052
|
+
onClick: (re) => z.value = E.id
|
|
5049
5053
|
}, [
|
|
5050
5054
|
t("img", {
|
|
5051
5055
|
src: E.preview || O(E.url),
|
|
@@ -5072,7 +5076,7 @@ const Mr = [
|
|
|
5072
5076
|
key: E.id,
|
|
5073
5077
|
title: E.name,
|
|
5074
5078
|
class: K(["vs-map-slot-layers__layer relative", { focused: z.value === E.id }]),
|
|
5075
|
-
onClick: (
|
|
5079
|
+
onClick: (re) => z.value = E.id
|
|
5076
5080
|
}, [
|
|
5077
5081
|
t("img", {
|
|
5078
5082
|
src: E.preview || O(E.url),
|
|
@@ -5231,7 +5235,7 @@ const Si = /* @__PURE__ */ Ze(Ci, [["render", Mi]]), Vi = { class: "absolute ins
|
|
|
5231
5235
|
key: 0,
|
|
5232
5236
|
class: "pointer-events-none absolute top-1 right-0.5 h-3 w-3 rounded-full bg-blue-400",
|
|
5233
5237
|
"aria-hidden": "true"
|
|
5234
|
-
}, Pi = /* @__PURE__ */
|
|
5238
|
+
}, Pi = /* @__PURE__ */ ne({
|
|
5235
5239
|
__name: "MobileOverlayActions",
|
|
5236
5240
|
props: {
|
|
5237
5241
|
activeModal: {},
|
|
@@ -5318,7 +5322,7 @@ const Si = /* @__PURE__ */ Ze(Ci, [["render", Mi]]), Vi = { class: "absolute ins
|
|
|
5318
5322
|
}, rs = { class: "flex justify-between" }, is = { class: "w-full lg:w-1/2 relative" }, ss = {
|
|
5319
5323
|
key: 0,
|
|
5320
5324
|
class: "absolute inset-0 z-20 flex flex-col items-center justify-center bg-black/40 backdrop-blur-[2px]"
|
|
5321
|
-
}, Ot = "(max-width: 999px)", st = "0px", Rt = /* @__PURE__ */
|
|
5325
|
+
}, Ot = "(max-width: 999px)", st = "0px", Rt = /* @__PURE__ */ ne({
|
|
5322
5326
|
__name: "vs-parts-map",
|
|
5323
5327
|
props: {
|
|
5324
5328
|
title: {},
|
|
@@ -5374,10 +5378,10 @@ const Si = /* @__PURE__ */ Ze(Ci, [["render", Mi]]), Vi = { class: "absolute ins
|
|
|
5374
5378
|
if (!$ || $.type === "Point" || $.type === "MultiPoint") return null;
|
|
5375
5379
|
const A = l($);
|
|
5376
5380
|
if (!A.length) return null;
|
|
5377
|
-
let
|
|
5381
|
+
let ie = 1 / 0, W = 1 / 0, Ce = -1 / 0, me = -1 / 0;
|
|
5378
5382
|
return A.forEach(([ce, Se]) => {
|
|
5379
|
-
ce <
|
|
5380
|
-
}), [[
|
|
5383
|
+
ce < ie && (ie = ce), Se < W && (W = Se), ce > Ce && (Ce = ce), Se > me && (me = Se);
|
|
5384
|
+
}), [[ie, W], [Ce, me]];
|
|
5381
5385
|
}
|
|
5382
5386
|
function w($) {
|
|
5383
5387
|
return ($ == null ? void 0 : $.type) === "Polygon" || ($ == null ? void 0 : $.type) === "MultiPolygon";
|
|
@@ -5397,8 +5401,8 @@ const Si = /* @__PURE__ */ Ze(Ci, [["render", Mi]]), Vi = { class: "absolute ins
|
|
|
5397
5401
|
if (!f) return;
|
|
5398
5402
|
const $ = z.value;
|
|
5399
5403
|
z.value = f.matches, $ !== z.value && (te.value = null, je(() => {
|
|
5400
|
-
var A,
|
|
5401
|
-
(
|
|
5404
|
+
var A, ie;
|
|
5405
|
+
(ie = (A = v.value) == null ? void 0 : A.resize) == null || ie.call(A);
|
|
5402
5406
|
}));
|
|
5403
5407
|
}
|
|
5404
5408
|
const _e = B(null), Me = B(null), Pe = ($) => ($ == null ? void 0 : $[n.geom]) ?? ($ == null ? void 0 : $.geom), lt = H(() => V.value && !Pe(M.value)), Te = H({
|
|
@@ -5423,12 +5427,12 @@ const Si = /* @__PURE__ */ Ze(Ci, [["render", Mi]]), Vi = { class: "absolute ins
|
|
|
5423
5427
|
_e.value = null, Me.value = null;
|
|
5424
5428
|
return;
|
|
5425
5429
|
}
|
|
5426
|
-
const
|
|
5427
|
-
if (!
|
|
5430
|
+
const ie = c(A);
|
|
5431
|
+
if (!ie) {
|
|
5428
5432
|
_e.value = null, Me.value = null;
|
|
5429
5433
|
return;
|
|
5430
5434
|
}
|
|
5431
|
-
const W = (Se = (ce = v.value).cameraForBounds) == null ? void 0 : Se.call(ce,
|
|
5435
|
+
const W = (Se = (ce = v.value).cameraForBounds) == null ? void 0 : Se.call(ce, ie, { padding: 20, maxZoom: 16 }), Ce = W == null ? void 0 : W.zoom, me = n.clusterZoom ?? 12;
|
|
5432
5436
|
if (Ce != null && Ce < me) {
|
|
5433
5437
|
const Ne = Math.floor(Ce);
|
|
5434
5438
|
_e.value = Ne, Me.value = Ne;
|
|
@@ -5436,28 +5440,28 @@ const Si = /* @__PURE__ */ Ze(Ci, [["render", Mi]]), Vi = { class: "absolute ins
|
|
|
5436
5440
|
_e.value = null, Me.value = null;
|
|
5437
5441
|
}
|
|
5438
5442
|
function ot($) {
|
|
5439
|
-
return Object.entries($).filter(([, A]) => Array.isArray(A) ? A.length : A).map(([A,
|
|
5443
|
+
return Object.entries($).filter(([, A]) => Array.isArray(A) ? A.length : A).map(([A, ie]) => `${A}=${ie}`).join("|");
|
|
5440
5444
|
}
|
|
5441
5445
|
function vt() {
|
|
5442
5446
|
var W, Ce, me, ce;
|
|
5443
5447
|
if (!v.value || !L.value) return;
|
|
5444
5448
|
const $ = (Ce = (W = v.value).getBounds) == null ? void 0 : Ce.call(W);
|
|
5445
5449
|
if (!$) return;
|
|
5446
|
-
const A = (me = $.getSouthWest) == null ? void 0 : me.call($),
|
|
5447
|
-
!A || !
|
|
5450
|
+
const A = (me = $.getSouthWest) == null ? void 0 : me.call($), ie = (ce = $.getNorthEast) == null ? void 0 : ce.call($);
|
|
5451
|
+
!A || !ie || (X.value = `${A.lng} ${A.lat},${ie.lng} ${ie.lat}`);
|
|
5448
5452
|
}
|
|
5449
5453
|
async function ye($ = !1) {
|
|
5450
5454
|
await je();
|
|
5451
5455
|
const A = ot(P.value);
|
|
5452
5456
|
F.value = A, L.value ? vt() : X.value = "";
|
|
5453
5457
|
try {
|
|
5454
|
-
const
|
|
5458
|
+
const ie = {
|
|
5455
5459
|
search: S.value,
|
|
5456
5460
|
limit: k.value.toString(),
|
|
5457
5461
|
page: O.value.toString(),
|
|
5458
5462
|
filter: A,
|
|
5459
5463
|
...L.value && X.value ? { bbox: X.value } : {}
|
|
5460
|
-
}, W = new URL(`/api/data/${n.table}`, window.location.origin) + (y.value ? `/${y.value}` : ""), Ce = new URLSearchParams(
|
|
5464
|
+
}, W = new URL(`/api/data/${n.table}`, window.location.origin) + (y.value ? `/${y.value}` : ""), Ce = new URLSearchParams(ie).toString(), me = await fetch(`${W.toString()}?${Ce}`).then((ce) => ce.json());
|
|
5461
5465
|
if (y.value) {
|
|
5462
5466
|
let ce;
|
|
5463
5467
|
me.rows.length > 1 ? ce = me.rows.find((Ne) => Ne.id === y.value) : [ce] = me.rows, M.value = ce;
|
|
@@ -5475,8 +5479,8 @@ const Si = /* @__PURE__ */ Ze(Ci, [["render", Mi]]), Vi = { class: "absolute ins
|
|
|
5475
5479
|
id: y.value,
|
|
5476
5480
|
filterByView: L.value
|
|
5477
5481
|
});
|
|
5478
|
-
} catch (
|
|
5479
|
-
console.error(
|
|
5482
|
+
} catch (ie) {
|
|
5483
|
+
console.error(ie.message);
|
|
5480
5484
|
}
|
|
5481
5485
|
}
|
|
5482
5486
|
const at = Ft(() => ye(), 300), De = Ft(() => ye(!0), 400);
|
|
@@ -5495,7 +5499,7 @@ const Si = /* @__PURE__ */ Ze(Ci, [["render", Mi]]), Vi = { class: "absolute ins
|
|
|
5495
5499
|
function E($) {
|
|
5496
5500
|
P.value = $.data, O.value = 1, y.value ? y.value = "" : ye(), h("change:filter", $);
|
|
5497
5501
|
}
|
|
5498
|
-
async function
|
|
5502
|
+
async function re() {
|
|
5499
5503
|
if (n.filters) return;
|
|
5500
5504
|
const A = await (await fetch(`/api/filter/${n.table}`)).json();
|
|
5501
5505
|
C.value = A.list;
|
|
@@ -5504,15 +5508,15 @@ const Si = /* @__PURE__ */ Ze(Ci, [["render", Mi]]), Vi = { class: "absolute ins
|
|
|
5504
5508
|
P.value = {}, S.value = "", ye();
|
|
5505
5509
|
}
|
|
5506
5510
|
Ee(async () => {
|
|
5507
|
-
var
|
|
5511
|
+
var ie, W;
|
|
5508
5512
|
f || (f = window.matchMedia(Ot)), p.value || (z.value = f.matches, p.value = !0), f.addEventListener("change", tt), z.value && (_.value = !1);
|
|
5509
5513
|
const $ = new URLSearchParams(window.location.search);
|
|
5510
5514
|
O.value = Number($.get("page")) || 1, k.value = Number($.get("limit")) || k.value, y.value = $.get("id") || "", V.value = !!y.value, F.value = $.get("filter") || "";
|
|
5511
5515
|
const A = $.get("bbox");
|
|
5512
|
-
A !== null ? L.value = A !== "0" : L.value = !1, (W = (
|
|
5516
|
+
A !== null ? L.value = A !== "0" : L.value = !1, (W = (ie = $.get("filter")) == null ? void 0 : ie.split("|")) == null || W.forEach((Ce) => {
|
|
5513
5517
|
const [me, ce] = Ce.split("=");
|
|
5514
5518
|
me && (P.value[me] = ce != null && ce.includes(",") ? ce.split(",") : [ce]);
|
|
5515
|
-
}),
|
|
5519
|
+
}), re(), !U.value && !y.value && ye();
|
|
5516
5520
|
}), We(() => {
|
|
5517
5521
|
f == null || f.removeEventListener("change", tt), R();
|
|
5518
5522
|
});
|
|
@@ -5522,7 +5526,7 @@ const Si = /* @__PURE__ */ Ze(Ci, [["render", Mi]]), Vi = { class: "absolute ins
|
|
|
5522
5526
|
function Oe($) {
|
|
5523
5527
|
te.value = $;
|
|
5524
5528
|
}
|
|
5525
|
-
function
|
|
5529
|
+
function ae() {
|
|
5526
5530
|
te.value = null;
|
|
5527
5531
|
}
|
|
5528
5532
|
async function ee() {
|
|
@@ -5530,14 +5534,14 @@ const Si = /* @__PURE__ */ Ze(Ci, [["render", Mi]]), Vi = { class: "absolute ins
|
|
|
5530
5534
|
await je(), (A = ($ = v.value) == null ? void 0 : $.resize) == null || A.call($);
|
|
5531
5535
|
}
|
|
5532
5536
|
function oe() {
|
|
5533
|
-
He(),
|
|
5537
|
+
He(), ae();
|
|
5534
5538
|
}
|
|
5535
5539
|
function ve($) {
|
|
5536
5540
|
we.value = !0;
|
|
5537
5541
|
const A = Pe($);
|
|
5538
5542
|
if (A) {
|
|
5539
|
-
const
|
|
5540
|
-
|
|
5543
|
+
const ie = n.polygonFitBbox ? c(A) : null;
|
|
5544
|
+
ie && v.value ? v.value.fitBounds(ie, { padding: 20, maxZoom: 16, duration: 500 }) : (Z.value = r(A), I.value = 16);
|
|
5541
5545
|
} else $ != null && $[n.geom] && (Z.value = r($[n.geom]), I.value = 16);
|
|
5542
5546
|
M.value = $, y.value = $.id, Ge(), z.value && (te.value = "details");
|
|
5543
5547
|
}
|
|
@@ -5553,7 +5557,7 @@ const Si = /* @__PURE__ */ Ze(Ci, [["render", Mi]]), Vi = { class: "absolute ins
|
|
|
5553
5557
|
}), N(L, () => {
|
|
5554
5558
|
L.value ? Ke() : R(), ye();
|
|
5555
5559
|
}), ($, A) => {
|
|
5556
|
-
var
|
|
5560
|
+
var ie;
|
|
5557
5561
|
return p.value ? (s(), d("section", {
|
|
5558
5562
|
key: 0,
|
|
5559
5563
|
class: K(z.value ? "" : "pt-[20px]")
|
|
@@ -5605,7 +5609,7 @@ const Si = /* @__PURE__ */ Ze(Ci, [["render", Mi]]), Vi = { class: "absolute ins
|
|
|
5605
5609
|
"top-offset": st,
|
|
5606
5610
|
"initial-variant": "full",
|
|
5607
5611
|
"peek-mode": "clip-full",
|
|
5608
|
-
onClose:
|
|
5612
|
+
onClose: ae,
|
|
5609
5613
|
onExpand: ee,
|
|
5610
5614
|
onCollapse: ee
|
|
5611
5615
|
}, {
|
|
@@ -5624,7 +5628,7 @@ const Si = /* @__PURE__ */ Ze(Ci, [["render", Mi]]), Vi = { class: "absolute ins
|
|
|
5624
5628
|
key: 0,
|
|
5625
5629
|
rows: U.value,
|
|
5626
5630
|
selectRow: ve,
|
|
5627
|
-
closeModal:
|
|
5631
|
+
closeModal: ae
|
|
5628
5632
|
}) : (s(), d("div", Ei, [
|
|
5629
5633
|
b.value >= 1 ? fe($.$slots, "table", {
|
|
5630
5634
|
key: 0,
|
|
@@ -5662,7 +5666,7 @@ const Si = /* @__PURE__ */ Ze(Ci, [["render", Mi]]), Vi = { class: "absolute ins
|
|
|
5662
5666
|
"top-offset": st,
|
|
5663
5667
|
"initial-variant": "full",
|
|
5664
5668
|
"peek-mode": "clip-full",
|
|
5665
|
-
onClose:
|
|
5669
|
+
onClose: ae,
|
|
5666
5670
|
onExpand: ee,
|
|
5667
5671
|
onCollapse: ee
|
|
5668
5672
|
}, {
|
|
@@ -5692,7 +5696,7 @@ const Si = /* @__PURE__ */ Ze(Ci, [["render", Mi]]), Vi = { class: "absolute ins
|
|
|
5692
5696
|
"top-offset": st,
|
|
5693
5697
|
"initial-variant": "full",
|
|
5694
5698
|
"peek-mode": "clip-full",
|
|
5695
|
-
onClose:
|
|
5699
|
+
onClose: ae,
|
|
5696
5700
|
onExpand: ee,
|
|
5697
5701
|
onCollapse: ee
|
|
5698
5702
|
}, {
|
|
@@ -5820,7 +5824,7 @@ const Si = /* @__PURE__ */ Ze(Ci, [["render", Mi]]), Vi = { class: "absolute ins
|
|
|
5820
5824
|
V.value ? "hidden" : ""
|
|
5821
5825
|
])
|
|
5822
5826
|
}, [
|
|
5823
|
-
(
|
|
5827
|
+
(ie = $.$slots) != null && ie.header ? j("", !0) : (s(), d("div", Xi, [
|
|
5824
5828
|
t("div", null, [
|
|
5825
5829
|
t("span", Ji, D(n.title), 1),
|
|
5826
5830
|
t("span", es, D(b.value), 1),
|