@opengis/form 0.0.181 → 0.0.182
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-D_uNaUs8.js → index-CeWF9SU8.js} +177 -169
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +6 -6
- package/dist/src/components/inputs/date/vs-input-date2.vue.d.ts.map +1 -1
- package/dist/src/utils/dateHelper.d.ts.map +1 -1
- package/dist/{vs-richtext-Ch0P-Kk6.js → vs-richtext-D7xFC0VR.js} +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as me, ref as V, createElementBlock as m, openBlock as u, Fragment as Ae, createElementVNode as d, createBlock as xe, renderSlot as mt, createVNode as X, unref as H, Teleport as Ht, createCommentVNode as q, normalizeStyle as Oe, toDisplayString as
|
|
1
|
+
import { defineComponent as me, ref as V, createElementBlock as m, openBlock as u, Fragment as Ae, createElementVNode as d, createBlock as xe, renderSlot as mt, createVNode as X, unref as H, Teleport as Ht, createCommentVNode as q, normalizeStyle as Oe, toDisplayString as ie, computed as g, inject as dt, mergeProps as Zt, createTextVNode as lt, normalizeProps as bl, guardReactiveProps as wl, onMounted as ot, onUnmounted as cn, normalizeClass as se, mergeModels as ze, useModel as Ke, withDirectives as Be, vModelText as rt, useAttrs as ca, vModelCheckbox as pa, resolveDynamicComponent as wt, withCtx as vt, withModifiers as Te, onBeforeUnmount as It, watch as ve, vModelRadio as fa, renderList as Pe, reactive as xl, getCurrentInstance as qn, resolveComponent as yt, createSlots as ma, nextTick as tt, watchEffect as kl, vShow as Ot, Transition as Kn, isRef as Hn, defineAsyncComponent as po, createStaticVNode as _l, useSlots as fo, withKeys as mo, toRef as vo, provide as Vn } from "vue";
|
|
2
2
|
import { Info as an, Check as va, Mail as go, Phone as yo, ChevronRight as ho, ChevronLeft as bo, ChevronDown as pn, ChevronUp as wo, X as _t, Clock3 as xo, CalendarDays as ko, Table as _o, FileCode as $o, FileText as Wn, FileArchive as So, Plus as Pt, Trash2 as rn, Eye as ga, Download as $l, Upload as ya, Search as Yn, GripVertical as dn, Pencil as Co, Circle as Mo, MapPin as ha, Ruler as ba, Maximize as Lo, ZoomIn as Ao, LoaderCircle as wa, Copy as Vo } from "lucide-vue-next";
|
|
3
3
|
import { notify as Ie, VsModal as Gn, modal as Do } from "@opengis/core";
|
|
4
4
|
const xa = /* @__PURE__ */ me({
|
|
@@ -34,7 +34,7 @@ const xa = /* @__PURE__ */ me({
|
|
|
34
34
|
key: 0,
|
|
35
35
|
style: Oe(l.value),
|
|
36
36
|
class: "fixed z-[9999] max-w-xs p-2 bg-gray-900 text-white text-xs rounded-lg shadow-lg pointer-events-none"
|
|
37
|
-
},
|
|
37
|
+
}, ie(r.text), 5)) : q("", !0)
|
|
38
38
|
]))
|
|
39
39
|
], 64));
|
|
40
40
|
}
|
|
@@ -80,18 +80,18 @@ const xa = /* @__PURE__ */ me({
|
|
|
80
80
|
});
|
|
81
81
|
return (c, h) => (u(), m("div", Eo, [
|
|
82
82
|
l.value ? (u(), m("div", Fo, [
|
|
83
|
-
d("span", Oo,
|
|
83
|
+
d("span", Oo, ie(n.value), 1),
|
|
84
84
|
o.value ? (u(), m("span", Po, "*")) : q("", !0),
|
|
85
85
|
a.value ? (u(), xe(xa, {
|
|
86
86
|
key: 1,
|
|
87
87
|
text: a.value
|
|
88
88
|
}, null, 8, ["text"])) : q("", !0),
|
|
89
|
-
f.value ? (u(), m("span", Bo, " (" +
|
|
89
|
+
f.value ? (u(), m("span", Bo, " (" + ie(f.value) + ") ", 1)) : q("", !0)
|
|
90
90
|
])) : q("", !0),
|
|
91
91
|
mt(c.$slots, "default", Zt(c.$attrs, {
|
|
92
92
|
class: { "opacity-60": c.item.disabled }
|
|
93
93
|
})),
|
|
94
|
-
c.error ? (u(), m("span", Ro,
|
|
94
|
+
c.error ? (u(), m("span", Ro, ie(c.error), 1)) : q("", !0)
|
|
95
95
|
]));
|
|
96
96
|
}
|
|
97
97
|
}), jo = { class: "w-full relative flex flex-row items-center gap-2" }, zo = {
|
|
@@ -149,13 +149,13 @@ const xa = /* @__PURE__ */ me({
|
|
|
149
149
|
class: "text-sm text-gray-900 font-medium flex shrink-0 items-center gap-1",
|
|
150
150
|
style: Oe(h.value)
|
|
151
151
|
}, [
|
|
152
|
-
|
|
152
|
+
lt(ie(n.value) + " ", 1),
|
|
153
153
|
S.item?.rules?.includes("required") && n.value ? (u(), m("span", zo, "*")) : q("", !0),
|
|
154
154
|
l.value ? (u(), xe(xa, {
|
|
155
155
|
key: 1,
|
|
156
156
|
text: l.value
|
|
157
157
|
}, null, 8, ["text"])) : q("", !0),
|
|
158
|
-
r.value ? (u(), m("span", Uo, " (" +
|
|
158
|
+
r.value ? (u(), m("span", Uo, " (" + ie(r.value) + ") ", 1)) : q("", !0)
|
|
159
159
|
], 4)) : q("", !0),
|
|
160
160
|
d("div", {
|
|
161
161
|
class: "flex-1 min-w-0",
|
|
@@ -163,7 +163,7 @@ const xa = /* @__PURE__ */ me({
|
|
|
163
163
|
}, [
|
|
164
164
|
mt(S.$slots, "default", bl(wl(S.$attrs)))
|
|
165
165
|
], 4),
|
|
166
|
-
S.error ? (u(), m("span", Ho,
|
|
166
|
+
S.error ? (u(), m("span", Ho, ie(S.error), 1)) : q("", !0)
|
|
167
167
|
]));
|
|
168
168
|
}
|
|
169
169
|
}), qo = { class: "w-full relative" }, Ko = {
|
|
@@ -186,7 +186,7 @@ const xa = /* @__PURE__ */ me({
|
|
|
186
186
|
setup(e) {
|
|
187
187
|
return (t, n) => (u(), m("div", qo, [
|
|
188
188
|
mt(t.$slots, "default", bl(wl(t.$attrs))),
|
|
189
|
-
t.error ? (u(), m("span", Ko,
|
|
189
|
+
t.error ? (u(), m("span", Ko, ie(t.error), 1)) : q("", !0)
|
|
190
190
|
]));
|
|
191
191
|
}
|
|
192
192
|
}), Go = { class: "flex-1 min-w-0" }, Xo = {
|
|
@@ -235,7 +235,7 @@ const xa = /* @__PURE__ */ me({
|
|
|
235
235
|
}, [
|
|
236
236
|
d("div", Go, [
|
|
237
237
|
s.ua || s.label ? (u(), m("p", Xo, [
|
|
238
|
-
d("span", Zo,
|
|
238
|
+
d("span", Zo, ie(s.item[n.value] || s.ua || s.label), 1),
|
|
239
239
|
o.value ? (u(), m("span", Jo, "*")) : q("", !0)
|
|
240
240
|
])) : q("", !0),
|
|
241
241
|
l.value ? (u(), m("p", {
|
|
@@ -250,7 +250,7 @@ const xa = /* @__PURE__ */ me({
|
|
|
250
250
|
mt(s.$slots, "default", bl(wl(s.$attrs)))
|
|
251
251
|
], 2)
|
|
252
252
|
], 2),
|
|
253
|
-
a.value ? (u(), m("p", er,
|
|
253
|
+
a.value ? (u(), m("p", er, ie(a.value), 1)) : q("", !0)
|
|
254
254
|
], 2));
|
|
255
255
|
}
|
|
256
256
|
}), nr = {
|
|
@@ -483,7 +483,7 @@ const lr = ["placeholder", "disabled"], ar = /* @__PURE__ */ me({
|
|
|
483
483
|
style: Oe(w.value)
|
|
484
484
|
}, null, 8, ["style"])) : q("", !0),
|
|
485
485
|
mt(k.$slots, "default", {}, () => [
|
|
486
|
-
|
|
486
|
+
lt(ie(k.label), 1)
|
|
487
487
|
])
|
|
488
488
|
]))
|
|
489
489
|
], 10, dr)
|
|
@@ -576,7 +576,7 @@ const lr = ["placeholder", "disabled"], ar = /* @__PURE__ */ me({
|
|
|
576
576
|
}, null, 8, ["style"])) : q("", !0)
|
|
577
577
|
])) : q("", !0),
|
|
578
578
|
mt(b.$slots, "default", {}, () => [
|
|
579
|
-
|
|
579
|
+
lt(ie(b.label), 1)
|
|
580
580
|
])
|
|
581
581
|
]))
|
|
582
582
|
], 2));
|
|
@@ -626,7 +626,7 @@ const lr = ["placeholder", "disabled"], ar = /* @__PURE__ */ me({
|
|
|
626
626
|
error: s.error
|
|
627
627
|
}, {
|
|
628
628
|
default: vt(() => [
|
|
629
|
-
|
|
629
|
+
lt(ie(s.label), 1)
|
|
630
630
|
]),
|
|
631
631
|
_: 1
|
|
632
632
|
}, 8, ["value", "label", "html", "info", "disabled", "modelValue", "icon", "imgUrl", "option", "style", "error"]))
|
|
@@ -1019,7 +1019,7 @@ const Dr = { class: "relative w-full bg-white rounded-lg" }, Ir = { class: "abso
|
|
|
1019
1019
|
class: "h-4 w-4",
|
|
1020
1020
|
style: Oe(c.value)
|
|
1021
1021
|
}, null, 8, ["style"])) : q("", !0),
|
|
1022
|
-
d("span", Br,
|
|
1022
|
+
d("span", Br, ie(t.text), 1)
|
|
1023
1023
|
]))
|
|
1024
1024
|
], 2));
|
|
1025
1025
|
}
|
|
@@ -1104,7 +1104,7 @@ const Dr = { class: "relative w-full bg-white rounded-lg" }, Ir = { class: "abso
|
|
|
1104
1104
|
class: "h-4 w-4",
|
|
1105
1105
|
style: Oe(c.value)
|
|
1106
1106
|
}, null, 8, ["style"])) : q("", !0),
|
|
1107
|
-
d("span", Hr,
|
|
1107
|
+
d("span", Hr, ie(t.text), 1)
|
|
1108
1108
|
]))
|
|
1109
1109
|
], 2));
|
|
1110
1110
|
}
|
|
@@ -1369,7 +1369,7 @@ const Dr = { class: "relative w-full bg-white rounded-lg" }, Ir = { class: "abso
|
|
|
1369
1369
|
key: I.key,
|
|
1370
1370
|
class: "flex flex-col gap-2"
|
|
1371
1371
|
}, [
|
|
1372
|
-
I.label ? (u(), m("span", Jr,
|
|
1372
|
+
I.label ? (u(), m("span", Jr, ie(I.label), 1)) : q("", !0),
|
|
1373
1373
|
d("div", {
|
|
1374
1374
|
class: se(["p-0 w-full gap-[12px]", b.value])
|
|
1375
1375
|
}, [
|
|
@@ -1549,8 +1549,8 @@ function yn(e, t) {
|
|
|
1549
1549
|
const xs = {
|
|
1550
1550
|
"yyyy-MM-dd": /^(\d{4})-(\d{2})-(\d{2})$/,
|
|
1551
1551
|
"dd.MM.yyyy": /^(\d{2})\.(\d{2})\.(\d{4})$/,
|
|
1552
|
-
"dd.MM.yyyy HH:mm": /^(\d{2})\.(\d{2})\.(\d{4}) (\d{2}):(\d{2})
|
|
1553
|
-
"HH:mm": /^(\d{2}):(\d{2})
|
|
1552
|
+
"dd.MM.yyyy HH:mm": /^(\d{2})\.(\d{2})\.(\d{4}) (\d{1,2}):(\d{2})(?::(\d{2}))?$/,
|
|
1553
|
+
"HH:mm": /^(\d{1,2}):(\d{2})(?::(\d{2}))?$/,
|
|
1554
1554
|
"MM.yyyy": /^(\d{2})\.(\d{4})$/,
|
|
1555
1555
|
yyyy: /^(\d{4})$/
|
|
1556
1556
|
};
|
|
@@ -1572,12 +1572,19 @@ function Jl(e, t) {
|
|
|
1572
1572
|
return ht(s) ? s : null;
|
|
1573
1573
|
}
|
|
1574
1574
|
case "dd.MM.yyyy HH:mm": {
|
|
1575
|
-
const [, o, a, r, s, f] = l,
|
|
1576
|
-
|
|
1575
|
+
const [, o, a, r, s, f, c] = l, h = new Date(
|
|
1576
|
+
Number(r),
|
|
1577
|
+
Number(a) - 1,
|
|
1578
|
+
Number(o),
|
|
1579
|
+
Number(s),
|
|
1580
|
+
Number(f),
|
|
1581
|
+
Number(c || 0)
|
|
1582
|
+
);
|
|
1583
|
+
return ht(h) ? h : null;
|
|
1577
1584
|
}
|
|
1578
1585
|
case "HH:mm": {
|
|
1579
|
-
const [, o, a] = l,
|
|
1580
|
-
return
|
|
1586
|
+
const [, o, a, r] = l, s = /* @__PURE__ */ new Date();
|
|
1587
|
+
return s.setHours(Number(o), Number(a), Number(r || 0), 0), s;
|
|
1581
1588
|
}
|
|
1582
1589
|
case "MM.yyyy": {
|
|
1583
1590
|
const [, o, a] = l;
|
|
@@ -1739,7 +1746,7 @@ function Vs(e, t, n, l, o, a) {
|
|
|
1739
1746
|
!f.disabled && !f.selected ? "hover:bg-slate-100 hover:text-slate-700" : "",
|
|
1740
1747
|
!f.current && !f.selected && f.disabled ? "text-slate-300" : ""
|
|
1741
1748
|
])
|
|
1742
|
-
},
|
|
1749
|
+
}, ie(f.display), 3)
|
|
1743
1750
|
], 8, Ls))), 128))
|
|
1744
1751
|
])
|
|
1745
1752
|
], 2),
|
|
@@ -1749,12 +1756,12 @@ function Vs(e, t, n, l, o, a) {
|
|
|
1749
1756
|
type: "button",
|
|
1750
1757
|
class: "p-datepicker-today-button text-xs font-medium text-slate-500 hover:text-slate-700 transition-colors px-1.5 py-1 rounded-md hover:bg-slate-100",
|
|
1751
1758
|
onClick: t[3] || (t[3] = Te((f) => e.$emit("today"), ["stop", "prevent"]))
|
|
1752
|
-
},
|
|
1759
|
+
}, ie(e.todayLabel), 1),
|
|
1753
1760
|
d("button", {
|
|
1754
1761
|
type: "button",
|
|
1755
1762
|
class: "p-datepicker-clear-button text-xs font-medium text-slate-500 hover:text-slate-700 transition-colors px-1.5 py-1 rounded-md hover:bg-slate-100",
|
|
1756
1763
|
onClick: t[4] || (t[4] = Te((f) => e.$emit("clear"), ["stop", "prevent"]))
|
|
1757
|
-
},
|
|
1764
|
+
}, ie(e.clearLabel), 1)
|
|
1758
1765
|
])) : q("", !0)
|
|
1759
1766
|
])
|
|
1760
1767
|
], 38);
|
|
@@ -1828,7 +1835,7 @@ function Is(e, t, n, l, o, a) {
|
|
|
1828
1835
|
onElementClick: t[0] || (t[0] = (s) => e.$emit("select", s))
|
|
1829
1836
|
}, {
|
|
1830
1837
|
heading: vt(() => [
|
|
1831
|
-
|
|
1838
|
+
lt(ie(e.heading), 1)
|
|
1832
1839
|
]),
|
|
1833
1840
|
_: 1
|
|
1834
1841
|
}, 8, ["leftDisabled", "rightDisabled", "items", "onLeft", "onRight"]);
|
|
@@ -1912,7 +1919,7 @@ function Fs(e, t, n, l, o, a) {
|
|
|
1912
1919
|
onElementClick: t[1] || (t[1] = (s) => e.$emit("select", s))
|
|
1913
1920
|
}, {
|
|
1914
1921
|
heading: vt(() => [
|
|
1915
|
-
|
|
1922
|
+
lt(ie(e.heading), 1)
|
|
1916
1923
|
]),
|
|
1917
1924
|
_: 1
|
|
1918
1925
|
}, 8, ["items", "leftDisabled", "rightDisabled", "onLeft", "onRight"]);
|
|
@@ -2045,13 +2052,13 @@ function Bs(e, t, n, l, o, a) {
|
|
|
2045
2052
|
onClear: t[3] || (t[3] = (s) => e.$emit("clear"))
|
|
2046
2053
|
}, ma({
|
|
2047
2054
|
heading: vt(() => [
|
|
2048
|
-
|
|
2055
|
+
lt(ie(e.heading), 1)
|
|
2049
2056
|
]),
|
|
2050
2057
|
subheading: vt(() => [
|
|
2051
2058
|
(u(!0), m(Ae, null, Pe(e.weekDays, (s, f) => (u(), m("span", {
|
|
2052
2059
|
key: s,
|
|
2053
2060
|
class: se(`v3dp__subheading__weekday__${f}`)
|
|
2054
|
-
},
|
|
2061
|
+
}, ie(s), 3))), 128))
|
|
2055
2062
|
]),
|
|
2056
2063
|
_: 2
|
|
2057
2064
|
}, [
|
|
@@ -2141,7 +2148,7 @@ function Js(e, t, n, l, o, a) {
|
|
|
2141
2148
|
}, [
|
|
2142
2149
|
X(r, { class: "h-3.5 w-3.5" })
|
|
2143
2150
|
]),
|
|
2144
|
-
d("span", Us,
|
|
2151
|
+
d("span", Us, ie(e.padStartZero(e.hours)), 1),
|
|
2145
2152
|
d("button", {
|
|
2146
2153
|
type: "button",
|
|
2147
2154
|
class: "p-datepicker-decrement-button inline-flex size-8 items-center justify-center rounded-full text-slate-500 transition-colors hover:bg-slate-100 hover:text-slate-700 disabled:text-slate-300",
|
|
@@ -2159,7 +2166,7 @@ function Js(e, t, n, l, o, a) {
|
|
|
2159
2166
|
}, [
|
|
2160
2167
|
X(r, { class: "h-3.5 w-3.5" })
|
|
2161
2168
|
]),
|
|
2162
|
-
d("span", Ws,
|
|
2169
|
+
d("span", Ws, ie(e.padStartZero(e.minutes)), 1),
|
|
2163
2170
|
d("button", {
|
|
2164
2171
|
type: "button",
|
|
2165
2172
|
class: "p-datepicker-decrement-button inline-flex size-8 items-center justify-center rounded-full text-slate-500 transition-colors hover:bg-slate-100 hover:text-slate-700 disabled:text-slate-300",
|
|
@@ -2185,7 +2192,7 @@ function Js(e, t, n, l, o, a) {
|
|
|
2185
2192
|
}, [
|
|
2186
2193
|
X(r, { class: "h-3.5 w-3.5" })
|
|
2187
2194
|
]),
|
|
2188
|
-
d("span", Gs,
|
|
2195
|
+
d("span", Gs, ie(e.padStartZero(e.hours)), 1),
|
|
2189
2196
|
d("button", {
|
|
2190
2197
|
type: "button",
|
|
2191
2198
|
class: "p-datepicker-decrement-button inline-flex size-8 items-center justify-center rounded-full text-slate-500 transition-colors hover:bg-slate-100 hover:text-slate-700 disabled:text-slate-300",
|
|
@@ -2203,7 +2210,7 @@ function Js(e, t, n, l, o, a) {
|
|
|
2203
2210
|
}, [
|
|
2204
2211
|
X(r, { class: "h-3.5 w-3.5" })
|
|
2205
2212
|
]),
|
|
2206
|
-
d("span", Zs,
|
|
2213
|
+
d("span", Zs, ie(e.padStartZero(e.minutes)), 1),
|
|
2207
2214
|
d("button", {
|
|
2208
2215
|
type: "button",
|
|
2209
2216
|
class: "p-datepicker-decrement-button inline-flex size-8 items-center justify-center rounded-full text-slate-500 transition-colors hover:bg-slate-100 hover:text-slate-700 disabled:text-slate-300",
|
|
@@ -2405,8 +2412,8 @@ const Qs = /* @__PURE__ */ Je(Ns, [["render", Js]]), Tn = ["time", "day", "month
|
|
|
2405
2412
|
const n = V("none"), l = V(e.startingViewDate), o = V(null), a = V(null), r = V(null), s = V({}), f = V(!1), c = V(!1);
|
|
2406
2413
|
let h = null;
|
|
2407
2414
|
const w = V(""), S = (oe) => {
|
|
2408
|
-
const
|
|
2409
|
-
return /0/.test(
|
|
2415
|
+
const ue = oe.replace(/[a-zA-Z]/g, "0");
|
|
2416
|
+
return /0/.test(ue) ? ue : "";
|
|
2410
2417
|
}, k = g(() => S(e.inputFormat));
|
|
2411
2418
|
let v = null, b = null;
|
|
2412
2419
|
const y = () => {
|
|
@@ -2420,8 +2427,8 @@ const Qs = /* @__PURE__ */ Je(Ns, [["render", Js]]), Tn = ["time", "day", "month
|
|
|
2420
2427
|
}, $ = () => {
|
|
2421
2428
|
v && v.value !== w.value && (v.value = w.value ?? "");
|
|
2422
2429
|
}, L = (oe) => {
|
|
2423
|
-
const
|
|
2424
|
-
w.value !==
|
|
2430
|
+
const ue = oe && ht(oe) ? yn(oe, e.inputFormat) : "";
|
|
2431
|
+
w.value !== ue && (w.value = ue), $();
|
|
2425
2432
|
}, I = async () => {
|
|
2426
2433
|
if (y(), !a.value || !k.value) return;
|
|
2427
2434
|
v = (await C())(a.value, {
|
|
@@ -2462,18 +2469,18 @@ const Qs = /* @__PURE__ */ Je(Ns, [["render", Js]]), Tn = ["time", "day", "month
|
|
|
2462
2469
|
kl(() => {
|
|
2463
2470
|
e.disabled && F();
|
|
2464
2471
|
});
|
|
2465
|
-
const ee = (oe,
|
|
2466
|
-
l.value =
|
|
2472
|
+
const ee = (oe, ue) => {
|
|
2473
|
+
l.value = ue, oe === "year" ? t("decadePageChanged", ue) : oe === "month" ? t("yearPageChanged", ue) : oe === "day" && t("monthPageChanged", ue);
|
|
2467
2474
|
}, fe = (oe) => {
|
|
2468
2475
|
l.value = oe, e.minimumView === "year" ? (F(), L(oe), t("update:modelValue", oe)) : j("month");
|
|
2469
2476
|
}, ke = (oe) => {
|
|
2470
2477
|
l.value = oe, e.minimumView === "month" ? (F(), L(oe), t("update:modelValue", oe)) : j("day");
|
|
2471
2478
|
}, W = (oe) => {
|
|
2472
|
-
const
|
|
2479
|
+
const ue = U.value ? (() => {
|
|
2473
2480
|
const Le = e.modelValue || l.value || /* @__PURE__ */ new Date(), Ee = new Date(oe);
|
|
2474
2481
|
return Ee.setHours(Le.getHours(), Le.getMinutes(), 0, 0), Ee;
|
|
2475
2482
|
})() : oe;
|
|
2476
|
-
l.value =
|
|
2483
|
+
l.value = ue, e.minimumView === "day" ? (F(), L(ue), t("update:modelValue", ue)) : U.value ? (L(ue), t("update:modelValue", ue), j("day")) : j("time");
|
|
2477
2484
|
}, J = (oe) => {
|
|
2478
2485
|
L(oe), t("update:modelValue", oe);
|
|
2479
2486
|
}, le = () => {
|
|
@@ -2487,35 +2494,35 @@ const Qs = /* @__PURE__ */ Je(Ns, [["render", Js]]), Tn = ["time", "day", "month
|
|
|
2487
2494
|
}, ge = () => {
|
|
2488
2495
|
c.value = !1, e.typeable && te({ closeOnSuccess: !1, revertOnInvalid: !0 });
|
|
2489
2496
|
}, E = (oe) => {
|
|
2490
|
-
const
|
|
2491
|
-
if (w.value =
|
|
2497
|
+
const ue = oe.target;
|
|
2498
|
+
if (w.value = ue?.value ?? "", !e.typeable) return;
|
|
2492
2499
|
const Le = Jl(w.value, e.inputFormat);
|
|
2493
2500
|
Le && w.value === yn(Le, e.inputFormat) && (l.value = Le);
|
|
2494
2501
|
}, te = ({
|
|
2495
2502
|
closeOnSuccess: oe,
|
|
2496
|
-
revertOnInvalid:
|
|
2503
|
+
revertOnInvalid: ue
|
|
2497
2504
|
}) => {
|
|
2498
2505
|
const Le = a.value?.value ?? w.value, Ee = Jl(Le, e.inputFormat);
|
|
2499
2506
|
return !!Ee && Le === yn(Ee, e.inputFormat) && Ee ? (l.value = Ee, L(Ee), t("update:modelValue", Ee), oe && F(), !0) : (L(e.modelValue), !1);
|
|
2500
2507
|
}, B = (oe) => {
|
|
2501
|
-
const
|
|
2508
|
+
const ue = oe.keyCode ? oe.keyCode : oe.which, Le = ue === 27, Ee = ue === 13;
|
|
2502
2509
|
if (Le) {
|
|
2503
2510
|
F(), a.value?.blur();
|
|
2504
2511
|
return;
|
|
2505
2512
|
}
|
|
2506
2513
|
e.typeable && Ee && (te({ closeOnSuccess: !0, revertOnInvalid: !0 }) || a.value?.focus());
|
|
2507
2514
|
}, pe = g(() => {
|
|
2508
|
-
const oe = Tn.indexOf(e.startingView),
|
|
2509
|
-
return oe <
|
|
2515
|
+
const oe = Tn.indexOf(e.startingView), ue = Tn.indexOf(e.minimumView);
|
|
2516
|
+
return oe < ue ? e.minimumView : e.startingView;
|
|
2510
2517
|
}), ye = g(() => e.weekDayNames?.length === 7 ? e.weekDayNames : void 0), ae = () => e.startingView === "time" && e.minimumView === "time" ? null : j("day"), Me = () => {
|
|
2511
2518
|
if (!a.value || !r.value) return;
|
|
2512
|
-
const oe = 4,
|
|
2519
|
+
const oe = 4, ue = 8, Le = a.value.getBoundingClientRect(), Ee = r.value.getBoundingClientRect(), ct = r.value.firstElementChild?.getBoundingClientRect(), T = window.innerWidth, ne = window.innerHeight, de = window.scrollX || window.pageXOffset, be = window.scrollY || window.pageYOffset, Ce = Math.max(160, ne - ue * 2), Ue = Math.min(Ee.height || 0, Ce), Ye = ne - Le.bottom - oe - ue, We = Le.top - oe - ue, R = Ye < Ue && We > Ye;
|
|
2513
2520
|
let _ = R ? Le.top - oe - Ue : Le.bottom + oe;
|
|
2514
|
-
_ = Math.max(
|
|
2521
|
+
_ = Math.max(ue, Math.min(_, ne - ue - Ue));
|
|
2515
2522
|
const A = ct?.width || Ee.width || 268;
|
|
2516
2523
|
let P = Le.left;
|
|
2517
|
-
P + A > T -
|
|
2518
|
-
const ce = R ? Math.max(120, Le.top - oe -
|
|
2524
|
+
P + A > T - ue && (P = T - ue - A), P < ue && (P = ue);
|
|
2525
|
+
const ce = R ? Math.max(120, Le.top - oe - ue) : Math.max(120, ne - Le.bottom - oe - ue);
|
|
2519
2526
|
s.value = {
|
|
2520
2527
|
position: "absolute",
|
|
2521
2528
|
top: `${Math.round(_ + be)}px`,
|
|
@@ -2525,18 +2532,18 @@ const Qs = /* @__PURE__ */ Je(Ns, [["render", Js]]), Tn = ["time", "day", "month
|
|
|
2525
2532
|
overflowY: "auto",
|
|
2526
2533
|
zIndex: "2147483000"
|
|
2527
2534
|
}, U.value && n.value === "day" && (s.value.minWidth = "345px");
|
|
2528
|
-
}, Fe = (oe,
|
|
2529
|
-
const
|
|
2535
|
+
}, Fe = (oe, ue) => oe.bottom > ue.top && oe.top < ue.bottom && oe.right > ue.left && oe.left < ue.right, Ve = (oe) => {
|
|
2536
|
+
const ue = [];
|
|
2530
2537
|
let Le = oe.parentElement;
|
|
2531
2538
|
for (; Le; ) {
|
|
2532
2539
|
const Ee = window.getComputedStyle(Le), nt = Ee.overflowY, ct = Ee.overflowX, T = ["auto", "scroll", "hidden", "clip"].includes(nt), ne = ["auto", "scroll", "hidden", "clip"].includes(ct);
|
|
2533
|
-
(T || ne) &&
|
|
2540
|
+
(T || ne) && ue.push(Le), Le = Le.parentElement;
|
|
2534
2541
|
}
|
|
2535
|
-
return
|
|
2542
|
+
return ue;
|
|
2536
2543
|
}, Ge = () => {
|
|
2537
2544
|
if (!a.value) return !1;
|
|
2538
|
-
const oe = a.value.getBoundingClientRect(),
|
|
2539
|
-
return Fe(oe,
|
|
2545
|
+
const oe = a.value.getBoundingClientRect(), ue = new DOMRect(0, 0, window.innerWidth, window.innerHeight);
|
|
2546
|
+
return Fe(oe, ue) ? Ve(a.value).every((Ee) => Fe(oe, Ee.getBoundingClientRect())) : !1;
|
|
2540
2547
|
}, je = () => {
|
|
2541
2548
|
if (N.value) {
|
|
2542
2549
|
if (!Ge()) {
|
|
@@ -2563,9 +2570,9 @@ const Qs = /* @__PURE__ */ Je(Ns, [["render", Js]]), Tn = ["time", "day", "month
|
|
|
2563
2570
|
});
|
|
2564
2571
|
const Ne = (oe) => {
|
|
2565
2572
|
if (n.value === "none") return;
|
|
2566
|
-
const
|
|
2567
|
-
if (!
|
|
2568
|
-
const Le = !!o.value?.contains(
|
|
2573
|
+
const ue = oe.target;
|
|
2574
|
+
if (!ue) return;
|
|
2575
|
+
const Le = !!o.value?.contains(ue), Ee = !!r.value?.contains(ue);
|
|
2569
2576
|
!Le && !Ee && (f.value = !1, F());
|
|
2570
2577
|
};
|
|
2571
2578
|
return {
|
|
@@ -2921,10 +2928,10 @@ const ii = /* @__PURE__ */ Je(ti, [["render", si]]), ui = /* @__PURE__ */ me({
|
|
|
2921
2928
|
return te ? new Date(te, 0, 1) : null;
|
|
2922
2929
|
}
|
|
2923
2930
|
function le(E) {
|
|
2924
|
-
const te = E.match(/^(\d{1,2}):(\d{2})
|
|
2931
|
+
const te = E.trim().match(/^(\d{1,2}):(\d{2})(?::(\d{2}))?$/);
|
|
2925
2932
|
if (!te) return null;
|
|
2926
|
-
const [, B, pe] = te,
|
|
2927
|
-
return
|
|
2933
|
+
const [, B, pe, ye] = te, ae = /* @__PURE__ */ new Date();
|
|
2934
|
+
return ae.setHours(Number(B), Number(pe), Number(ye || 0), 0), ae;
|
|
2928
2935
|
}
|
|
2929
2936
|
function Z(E) {
|
|
2930
2937
|
const te = E.match(/^(\d{4})-W(\d{2})$/);
|
|
@@ -2949,6 +2956,7 @@ const ii = /* @__PURE__ */ Je(ti, [["render", si]]), ui = /* @__PURE__ */ me({
|
|
|
2949
2956
|
return (E, te) => (u(), m("div", {
|
|
2950
2957
|
class: se(["vs-date-picker", n.customClass])
|
|
2951
2958
|
}, [
|
|
2959
|
+
lt(ie(L.value) + " ", 1),
|
|
2952
2960
|
X(ii, {
|
|
2953
2961
|
modelValue: c.value,
|
|
2954
2962
|
"onUpdate:modelValue": te[0] || (te[0] = (B) => c.value = B),
|
|
@@ -2967,7 +2975,7 @@ const ii = /* @__PURE__ */ Je(ti, [["render", si]]), ui = /* @__PURE__ */ me({
|
|
|
2967
2975
|
}, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "typeable", "week-day-names", "week-starts-on", "starting-view", "minimum-view", "input-format", "upper-limit", "name", "class"])
|
|
2968
2976
|
], 2));
|
|
2969
2977
|
}
|
|
2970
|
-
}), di = /* @__PURE__ */ Je(ui, [["__scopeId", "data-v-
|
|
2978
|
+
}), di = /* @__PURE__ */ Je(ui, [["__scopeId", "data-v-ff96d610"]]), ci = (e, t) => {
|
|
2971
2979
|
if (!t || !Object.keys(t).length)
|
|
2972
2980
|
return e;
|
|
2973
2981
|
const [n, l = ""] = e.split("?"), o = new URLSearchParams(l);
|
|
@@ -3079,7 +3087,7 @@ const ii = /* @__PURE__ */ Je(ti, [["render", si]]), ui = /* @__PURE__ */ me({
|
|
|
3079
3087
|
}, [
|
|
3080
3088
|
k.isUploading ? (u(), m("div", yi, [
|
|
3081
3089
|
v[2] || (v[2] = d("div", { class: "loader" }, null, -1)),
|
|
3082
|
-
d("span", null,
|
|
3090
|
+
d("span", null, ie(k.progressPercent) + "%", 1)
|
|
3083
3091
|
])) : (u(), xe(H(Pt), {
|
|
3084
3092
|
key: 1,
|
|
3085
3093
|
class: "h-4 w-4"
|
|
@@ -3490,7 +3498,7 @@ const ii = /* @__PURE__ */ Je(ti, [["render", si]]), ui = /* @__PURE__ */ me({
|
|
|
3490
3498
|
onClick: C
|
|
3491
3499
|
}, null, 8, ["disabled", "progress-percent", "title"])
|
|
3492
3500
|
]),
|
|
3493
|
-
a.value ? (u(), m("p", Mi,
|
|
3501
|
+
a.value ? (u(), m("p", Mi, ie(a.value), 1)) : q("", !0)
|
|
3494
3502
|
]));
|
|
3495
3503
|
}
|
|
3496
3504
|
}), Li = { class: "flex items-center justify-center h-[30px] w-[30px]" }, Ai = { class: "max-w-[55vw]" }, Vi = { class: "text-sm font-semibold text-gray-800 truncate dark:text-neutral-200" }, Di = { class: "flex items-center text-xs text-gray-500 truncate dark:text-neutral-500" }, Ii = { class: "px-[5px]" }, Ti = { class: "" }, En = /* @__PURE__ */ me({
|
|
@@ -3521,15 +3529,15 @@ const ii = /* @__PURE__ */ Je(ti, [["render", si]]), ui = /* @__PURE__ */ me({
|
|
|
3521
3529
|
X(H(Wn), { class: "icon icon-tabler icons-tabler-outline icon-tabler-file h-4 w-4" })
|
|
3522
3530
|
]),
|
|
3523
3531
|
d("div", Ai, [
|
|
3524
|
-
d("p", Vi,
|
|
3532
|
+
d("p", Vi, ie(o.item?.uploaded_name), 1),
|
|
3525
3533
|
d("p", Di, [
|
|
3526
|
-
d("span", null,
|
|
3534
|
+
d("span", null, ie(o.item?.username), 1),
|
|
3527
3535
|
Be(d("span", Ii, "|", 512), [
|
|
3528
3536
|
[Ot, o.item?.username]
|
|
3529
3537
|
]),
|
|
3530
|
-
d("span", null,
|
|
3538
|
+
d("span", null, ie(n.value), 1),
|
|
3531
3539
|
a[0] || (a[0] = d("span", { class: "px-[5px]" }, "|", -1)),
|
|
3532
|
-
d("span", Ti,
|
|
3540
|
+
d("span", Ti, ie(l(o.item?.size)), 1)
|
|
3533
3541
|
])
|
|
3534
3542
|
])
|
|
3535
3543
|
], 64));
|
|
@@ -3716,7 +3724,7 @@ const ii = /* @__PURE__ */ Je(ti, [["render", si]]), ui = /* @__PURE__ */ me({
|
|
|
3716
3724
|
const N = yt("Lightbox"), Q = yt("MessageBox");
|
|
3717
3725
|
return u(), m("div", qi, [
|
|
3718
3726
|
d("div", Ki, [
|
|
3719
|
-
d("h2", Yi, " Файлів: " +
|
|
3727
|
+
d("h2", Yi, " Файлів: " + ie(h.value?.length), 1),
|
|
3720
3728
|
d("div", Gi, [
|
|
3721
3729
|
d("label", null, [
|
|
3722
3730
|
d("input", {
|
|
@@ -3806,7 +3814,7 @@ const ii = /* @__PURE__ */ Je(ti, [["render", si]]), ui = /* @__PURE__ */ me({
|
|
|
3806
3814
|
}
|
|
3807
3815
|
), (l, o) => (u(), m("div", null, [
|
|
3808
3816
|
d("div", lu, [
|
|
3809
|
-
d("p", au,
|
|
3817
|
+
d("p", au, ie(e.title), 1),
|
|
3810
3818
|
X(ka, {
|
|
3811
3819
|
modelValue: n.value,
|
|
3812
3820
|
"onUpdate:modelValue": o[0] || (o[0] = (a) => n.value = a),
|
|
@@ -3857,7 +3865,7 @@ const ii = /* @__PURE__ */ Je(ti, [["render", si]]), ui = /* @__PURE__ */ me({
|
|
|
3857
3865
|
X(H(pn), {
|
|
3858
3866
|
class: se(["h-4 w-4 duration-300", [n.value ? "-rotate-180" : ""]])
|
|
3859
3867
|
}, null, 8, ["class"]),
|
|
3860
|
-
d("span", iu,
|
|
3868
|
+
d("span", iu, ie(e.title), 1)
|
|
3861
3869
|
]),
|
|
3862
3870
|
X(Kn, { name: "slide-fade" }, {
|
|
3863
3871
|
default: vt(() => [
|
|
@@ -3886,7 +3894,7 @@ const ii = /* @__PURE__ */ Je(ti, [["render", si]]), ui = /* @__PURE__ */ me({
|
|
|
3886
3894
|
setup(e) {
|
|
3887
3895
|
return (t, n) => (u(), m("div", null, [
|
|
3888
3896
|
d("div", pu, [
|
|
3889
|
-
d("p", null,
|
|
3897
|
+
d("p", null, ie(e.title), 1)
|
|
3890
3898
|
]),
|
|
3891
3899
|
mt(t.$slots, "default")
|
|
3892
3900
|
]));
|
|
@@ -4161,7 +4169,7 @@ const Lu = /* @__PURE__ */ me({
|
|
|
4161
4169
|
key: 0,
|
|
4162
4170
|
innerHTML: a.renderTemplate(s)
|
|
4163
4171
|
}, null, 8, Eu)) : (u(), m(Ae, { key: 1 }, [
|
|
4164
|
-
|
|
4172
|
+
lt(ie(s.text), 1)
|
|
4165
4173
|
], 64))
|
|
4166
4174
|
], 8, Tu)
|
|
4167
4175
|
]),
|
|
@@ -4226,7 +4234,7 @@ const Lu = /* @__PURE__ */ me({
|
|
|
4226
4234
|
key: 2,
|
|
4227
4235
|
class: "truncate flex-1 min-w-0",
|
|
4228
4236
|
innerHTML: a.renderTemplate(a.selectedOption)
|
|
4229
|
-
}, null, 8, Ru)) : (u(), m("span", Nu,
|
|
4237
|
+
}, null, 8, Ru)) : (u(), m("span", Nu, ie(a.selectedOption?.text), 1))
|
|
4230
4238
|
], 10, Bu)) : q("", !0),
|
|
4231
4239
|
!a.isMulti && !a.disabled && a.search ? (u(), m("div", ju, [
|
|
4232
4240
|
Be(d("input", {
|
|
@@ -4250,7 +4258,7 @@ const Lu = /* @__PURE__ */ me({
|
|
|
4250
4258
|
}, null, 40, zu), [
|
|
4251
4259
|
[rt, o.value]
|
|
4252
4260
|
])
|
|
4253
|
-
])) : !a.isMulti && a.disabled && (!a.selectedOptionLabel || o.value !== "") ? (u(), m("div", Uu,
|
|
4261
|
+
])) : !a.isMulti && a.disabled && (!a.selectedOptionLabel || o.value !== "") ? (u(), m("div", Uu, ie(a.placeholder), 1)) : q("", !0)
|
|
4254
4262
|
]),
|
|
4255
4263
|
d("div", Hu, [
|
|
4256
4264
|
a.showClear ? (u(), m("button", {
|
|
@@ -4357,7 +4365,7 @@ const Lu = /* @__PURE__ */ me({
|
|
|
4357
4365
|
key: 0,
|
|
4358
4366
|
innerHTML: t.renderTemplate(l)
|
|
4359
4367
|
}, null, 8, Zu)) : (u(), m(Ae, { key: 1 }, [
|
|
4360
|
-
|
|
4368
|
+
lt(ie(l.text), 1)
|
|
4361
4369
|
], 64))
|
|
4362
4370
|
])
|
|
4363
4371
|
], 42, Gu))), 128)) : (u(), m("div", Ju, " No options "))
|
|
@@ -4479,7 +4487,7 @@ const Lu = /* @__PURE__ */ me({
|
|
|
4479
4487
|
props: n,
|
|
4480
4488
|
formValues: le,
|
|
4481
4489
|
watchParent: !1
|
|
4482
|
-
}), oe = (z) => z == null ? "" : String(z),
|
|
4490
|
+
}), oe = (z) => z == null ? "" : String(z), ue = (z) => {
|
|
4483
4491
|
if (o.value) {
|
|
4484
4492
|
if (!F.value.length) {
|
|
4485
4493
|
Ve.value = z;
|
|
@@ -4510,7 +4518,7 @@ const Lu = /* @__PURE__ */ me({
|
|
|
4510
4518
|
}, nt = async () => {
|
|
4511
4519
|
if (n.data) {
|
|
4512
4520
|
const z = await Ee(C.value);
|
|
4513
|
-
return z &&
|
|
4521
|
+
return z && ue(z), Ve.value;
|
|
4514
4522
|
}
|
|
4515
4523
|
return Ne();
|
|
4516
4524
|
}, ct = async (z) => {
|
|
@@ -4670,7 +4678,7 @@ const Lu = /* @__PURE__ */ me({
|
|
|
4670
4678
|
Ve.value = [...n.options];
|
|
4671
4679
|
else if (n.data) {
|
|
4672
4680
|
const z = await Ee("");
|
|
4673
|
-
z &&
|
|
4681
|
+
z && ue(z);
|
|
4674
4682
|
}
|
|
4675
4683
|
await Wt(), Cn.value = !1;
|
|
4676
4684
|
}), cn(() => {
|
|
@@ -4699,7 +4707,7 @@ const Lu = /* @__PURE__ */ me({
|
|
|
4699
4707
|
}
|
|
4700
4708
|
const Yt = al(async (z) => {
|
|
4701
4709
|
const re = await Ee(z);
|
|
4702
|
-
re &&
|
|
4710
|
+
re && ue(re);
|
|
4703
4711
|
}, 200);
|
|
4704
4712
|
ve(C, (z) => {
|
|
4705
4713
|
n.data && Yt(z.trim());
|
|
@@ -4882,11 +4890,11 @@ const Lu = /* @__PURE__ */ me({
|
|
|
4882
4890
|
if (!r) return !1;
|
|
4883
4891
|
const Ve = r.value?.[ae] ?? {}, Ge = (Ze, Ne, oe) => {
|
|
4884
4892
|
if (!Ne.length) return Ze;
|
|
4885
|
-
const [
|
|
4893
|
+
const [ue, ...Le] = Ne, Ee = { ...Ze };
|
|
4886
4894
|
if (!Le.length)
|
|
4887
|
-
return Ee[
|
|
4888
|
-
const nt = typeof Ze[
|
|
4889
|
-
return Ee[
|
|
4895
|
+
return Ee[ue] = oe, Ee;
|
|
4896
|
+
const nt = typeof Ze[ue] == "object" && Ze[ue] !== null ? Ze[ue] : {};
|
|
4897
|
+
return Ee[ue] = Ge(nt, Le, oe), Ee;
|
|
4890
4898
|
}, je = Ge(Ve, Me, Fe);
|
|
4891
4899
|
return r.value = {
|
|
4892
4900
|
...r.value || {},
|
|
@@ -4905,12 +4913,12 @@ const Lu = /* @__PURE__ */ me({
|
|
|
4905
4913
|
}, J = (ae) => o.value?.toString?.() === ae?.toString?.(), le = () => {
|
|
4906
4914
|
if (!w.value || typeof window > "u") return;
|
|
4907
4915
|
const ae = w.value.getBoundingClientRect(), Me = 8, Fe = 8, Ve = window.innerHeight || document.documentElement.clientHeight, Ge = window.innerWidth || document.documentElement.clientWidth, je = S.value?.offsetHeight || 260, Ze = Math.max(ae.width, 176), Ne = Math.max(Ge - Me * 2, 120), oe = Math.min(Ze, Ne);
|
|
4908
|
-
let
|
|
4909
|
-
|
|
4916
|
+
let ue = ae.left;
|
|
4917
|
+
ue + oe + Me > Ge && (ue = Ge - oe - Me), ue = Math.max(ue, Me);
|
|
4910
4918
|
const Le = Ve - ae.bottom - Fe - Me, Ee = ae.top - Fe - Me, nt = Le < Math.min(je, 260) && Ee > Le, ct = Math.max(120, Math.min(320, nt ? Ee : Le));
|
|
4911
4919
|
k.value = {
|
|
4912
4920
|
position: "fixed",
|
|
4913
|
-
left: `${
|
|
4921
|
+
left: `${ue}px`,
|
|
4914
4922
|
top: nt ? `${ae.top - Fe}px` : `${ae.bottom + Fe}px`,
|
|
4915
4923
|
transform: nt ? "translateY(-100%)" : "none",
|
|
4916
4924
|
width: `${oe}px`,
|
|
@@ -4987,7 +4995,7 @@ const Lu = /* @__PURE__ */ me({
|
|
|
4987
4995
|
]),
|
|
4988
4996
|
onClick: E
|
|
4989
4997
|
}, [
|
|
4990
|
-
d("span", ad,
|
|
4998
|
+
d("span", ad, ie(y.value), 1)
|
|
4991
4999
|
], 10, ld),
|
|
4992
5000
|
(u(), xe(Ht, { to: L.value }, [
|
|
4993
5001
|
c.value ? (u(), m("div", {
|
|
@@ -5001,7 +5009,7 @@ const Lu = /* @__PURE__ */ me({
|
|
|
5001
5009
|
}, [
|
|
5002
5010
|
d("div", od, [
|
|
5003
5011
|
d("span", rd, [
|
|
5004
|
-
d("span", sd,
|
|
5012
|
+
d("span", sd, ie(b.value), 1)
|
|
5005
5013
|
])
|
|
5006
5014
|
]),
|
|
5007
5015
|
d("div", id, [
|
|
@@ -5025,7 +5033,7 @@ const Lu = /* @__PURE__ */ me({
|
|
|
5025
5033
|
style: Oe({ backgroundColor: Fe.color })
|
|
5026
5034
|
}, null, 4)) : (u(), m("span", fd))
|
|
5027
5035
|
]),
|
|
5028
|
-
d("span", md,
|
|
5036
|
+
d("span", md, ie(N(Fe)), 1),
|
|
5029
5037
|
X(H(va), {
|
|
5030
5038
|
class: se(["shrink-0 size-3.5 ms-auto transition-opacity", J(Fe.id) ? "opacity-100" : "opacity-0"])
|
|
5031
5039
|
}, null, 8, ["class"])
|
|
@@ -5093,7 +5101,7 @@ const Lu = /* @__PURE__ */ me({
|
|
|
5093
5101
|
}),
|
|
5094
5102
|
emits: ["update:modelValue"],
|
|
5095
5103
|
setup(e) {
|
|
5096
|
-
const t = po(() => import("./vs-richtext-
|
|
5104
|
+
const t = po(() => import("./vs-richtext-D7xFC0VR.js")), n = e, { inputClass: l } = bt(n.style), o = Ke(e, "modelValue"), a = g(() => !!n.disabled), r = g(() => n.placeholder ?? ""), s = g(() => ({
|
|
5097
5105
|
height: n.richtextProps.height || "300px",
|
|
5098
5106
|
format: n.format,
|
|
5099
5107
|
...n.richtextProps
|
|
@@ -5342,7 +5350,7 @@ const kd = /* @__PURE__ */ Je(bd, [["render", xd]]), _d = { class: "bg-white rou
|
|
|
5342
5350
|
function oe(T) {
|
|
5343
5351
|
return T == null || T === "" ? "-" : Array.isArray(T) ? T.map((ne) => typeof ne == "object" ? ne?.text ?? ne?.id ?? "-" : ne).join(", ") : typeof T == "object" ? T?.text ?? T?.id ?? "-" : T;
|
|
5344
5352
|
}
|
|
5345
|
-
function
|
|
5353
|
+
function ue(T, ne) {
|
|
5346
5354
|
const de = ne.key || ne.name, be = T?.[de], Ce = s.value[de];
|
|
5347
5355
|
if (!be) return "-";
|
|
5348
5356
|
if (Array.isArray(be)) {
|
|
@@ -5400,7 +5408,7 @@ const kd = /* @__PURE__ */ Je(bd, [["render", xd]]), _d = { class: "bg-white rou
|
|
|
5400
5408
|
class: "inline-flex items-center gap-2 rounded-md border border-gray-200 bg-white px-3 py-2 text-sm font-medium text-gray-700 hover:border-gray-300 hover:bg-gray-50 transition-colors"
|
|
5401
5409
|
}, [
|
|
5402
5410
|
X(H(ya), { class: "h-4 w-4 text-gray-700" }),
|
|
5403
|
-
ne[4] || (ne[4] =
|
|
5411
|
+
ne[4] || (ne[4] = lt(" Імпорт ", -1))
|
|
5404
5412
|
])) : q("", !0),
|
|
5405
5413
|
l("export") ? (u(), m("button", {
|
|
5406
5414
|
key: 2,
|
|
@@ -5409,7 +5417,7 @@ const kd = /* @__PURE__ */ Je(bd, [["render", xd]]), _d = { class: "bg-white rou
|
|
|
5409
5417
|
class: "inline-flex items-center gap-2 rounded-md border border-gray-200 bg-white px-3 py-2 text-sm font-medium text-gray-700 hover:border-gray-300 hover:bg-gray-50 transition-colors"
|
|
5410
5418
|
}, [
|
|
5411
5419
|
X(H($l), { class: "h-4 w-4 text-gray-700" }),
|
|
5412
|
-
ne[5] || (ne[5] =
|
|
5420
|
+
ne[5] || (ne[5] = lt(" Експорт ", -1))
|
|
5413
5421
|
])) : q("", !0),
|
|
5414
5422
|
l("add") ? (u(), m("button", {
|
|
5415
5423
|
key: 3,
|
|
@@ -5418,7 +5426,7 @@ const kd = /* @__PURE__ */ Je(bd, [["render", xd]]), _d = { class: "bg-white rou
|
|
|
5418
5426
|
class: "inline-flex items-center gap-2 rounded-md bg-blue-500 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-blue-600 transition-colors"
|
|
5419
5427
|
}, [
|
|
5420
5428
|
X(H(Pt), { class: "h-4 w-4 text-white" }),
|
|
5421
|
-
ne[6] || (ne[6] =
|
|
5429
|
+
ne[6] || (ne[6] = lt(" Додати ", -1))
|
|
5422
5430
|
])) : q("", !0)
|
|
5423
5431
|
])
|
|
5424
5432
|
])) : q("", !0),
|
|
@@ -5438,8 +5446,8 @@ const kd = /* @__PURE__ */ Je(bd, [["render", xd]]), _d = { class: "bg-white rou
|
|
|
5438
5446
|
onClick: (be) => je(de),
|
|
5439
5447
|
class: "flex items-center gap-1 text-xs font-semibold text-gray-700 hover:text-gray-900 transition-colors"
|
|
5440
5448
|
}, [
|
|
5441
|
-
d("span", null,
|
|
5442
|
-
c.value === (de.key || de.name) ? (u(), m("span", Td,
|
|
5449
|
+
d("span", null, ie(de.ua || de.label), 1),
|
|
5450
|
+
c.value === (de.key || de.name) ? (u(), m("span", Td, ie(h.value === "asc" ? "▲" : "▼"), 1)) : q("", !0)
|
|
5443
5451
|
], 8, Id)
|
|
5444
5452
|
]))), 128)),
|
|
5445
5453
|
ne[7] || (ne[7] = d("th", { class: "px-4 py-3 text-left text-xs font-semibold text-gray-900 text-center w-[1%] whitespace-nowrap" }, " Дії ", -1))
|
|
@@ -5499,9 +5507,9 @@ const kd = /* @__PURE__ */ Je(bd, [["render", xd]]), _d = { class: "bg-white rou
|
|
|
5499
5507
|
}, null, 8, Nd))
|
|
5500
5508
|
], 64)) : (u(), m(Ae, { key: 1 }, [
|
|
5501
5509
|
B(Ce) === "file" ? (u(), m("div", jd, [
|
|
5502
|
-
O(
|
|
5510
|
+
O(ue(de, Ce)) ? (u(), m("div", zd, [
|
|
5503
5511
|
d("img", {
|
|
5504
|
-
src:
|
|
5512
|
+
src: ue(de, Ce),
|
|
5505
5513
|
alt: "alt",
|
|
5506
5514
|
width: "45",
|
|
5507
5515
|
class: "rounded-md max-w-[45px] h-[45px] object-cover"
|
|
@@ -5512,9 +5520,9 @@ const kd = /* @__PURE__ */ Je(bd, [["render", xd]]), _d = { class: "bg-white rou
|
|
|
5512
5520
|
])) : B(Ce) === "color" ? (u(), m("div", Wd, [
|
|
5513
5521
|
d("span", {
|
|
5514
5522
|
class: "inline-flex h-6 w-6 rounded border border-gray-200",
|
|
5515
|
-
style: Oe({ backgroundColor:
|
|
5523
|
+
style: Oe({ backgroundColor: ue(de, Ce) || "#ffffff" })
|
|
5516
5524
|
}, null, 4)
|
|
5517
|
-
])) : (u(), m("div", qd, ue(
|
|
5525
|
+
])) : (u(), m("div", qd, ie(ue(de, Ce)), 1))
|
|
5518
5526
|
], 64))
|
|
5519
5527
|
]))), 128)),
|
|
5520
5528
|
d("td", Kd, [
|
|
@@ -5818,7 +5826,7 @@ const mc = ["title", "aria-expanded"], vc = ["src"], gc = { class: "map-layers__
|
|
|
5818
5826
|
alt: ""
|
|
5819
5827
|
}, null, 8, kc)
|
|
5820
5828
|
]),
|
|
5821
|
-
d("span", _c,
|
|
5829
|
+
d("span", _c, ie(ge.name || E), 1)
|
|
5822
5830
|
], 10, wc))), 128))
|
|
5823
5831
|
])
|
|
5824
5832
|
])) : q("", !0),
|
|
@@ -5838,7 +5846,7 @@ const mc = ["title", "aria-expanded"], vc = ["src"], gc = { class: "map-layers__
|
|
|
5838
5846
|
alt: ""
|
|
5839
5847
|
}, null, 8, Lc)
|
|
5840
5848
|
]),
|
|
5841
|
-
d("span", Ac,
|
|
5849
|
+
d("span", Ac, ie(ge.name || E), 1)
|
|
5842
5850
|
], 10, Cc))), 128))
|
|
5843
5851
|
])
|
|
5844
5852
|
])) : q("", !0),
|
|
@@ -5856,7 +5864,7 @@ const mc = ["title", "aria-expanded"], vc = ["src"], gc = { class: "map-layers__
|
|
|
5856
5864
|
disabled: G.disabled,
|
|
5857
5865
|
onChange: (E) => J(ge.id)
|
|
5858
5866
|
}, null, 40, Ic),
|
|
5859
|
-
d("span", null,
|
|
5867
|
+
d("span", null, ie(ge.label), 1)
|
|
5860
5868
|
]))), 128))
|
|
5861
5869
|
])
|
|
5862
5870
|
])) : q("", !0)
|
|
@@ -6301,18 +6309,18 @@ const zc = ["title"], Uc = {
|
|
|
6301
6309
|
function oe(R) {
|
|
6302
6310
|
return Number.isFinite(R.lat) && Number.isFinite(R.lng);
|
|
6303
6311
|
}
|
|
6304
|
-
function
|
|
6312
|
+
function ue(R) {
|
|
6305
6313
|
if (R == null || typeof R == "string" && !R.trim()) return null;
|
|
6306
6314
|
const _ = Number(R);
|
|
6307
6315
|
return Number.isFinite(_) ? _ : null;
|
|
6308
6316
|
}
|
|
6309
6317
|
function Le(R) {
|
|
6310
|
-
const _ =
|
|
6318
|
+
const _ = ue(R.lng) ?? ue(R.lon) ?? ue(R.longitude) ?? ue(R.x), A = ue(R.lat) ?? ue(R.latitude) ?? ue(R.y);
|
|
6311
6319
|
if (_ != null && A != null)
|
|
6312
6320
|
return { lat: A, lng: _ };
|
|
6313
6321
|
const P = R?.geometry?.coordinates ?? R?.geom_centroid?.coordinates ?? R?.centroid?.coordinates ?? R?.geojson?.geometry?.coordinates ?? R?.geom?.coordinates;
|
|
6314
6322
|
if (Array.isArray(P) && P.length >= 2) {
|
|
6315
|
-
const ce =
|
|
6323
|
+
const ce = ue(P[0]), De = ue(P[1]);
|
|
6316
6324
|
if (ce != null && De != null) return { lat: De, lng: ce };
|
|
6317
6325
|
}
|
|
6318
6326
|
return null;
|
|
@@ -6499,7 +6507,7 @@ const zc = ["title"], Uc = {
|
|
|
6499
6507
|
class: "block w-full truncate",
|
|
6500
6508
|
title: Ve(b.value)
|
|
6501
6509
|
}, [
|
|
6502
|
-
|
|
6510
|
+
lt(ie(Ve(b.value)), 1)
|
|
6503
6511
|
], 8, zc)), [
|
|
6504
6512
|
[n, Ge(b.value)]
|
|
6505
6513
|
]),
|
|
@@ -6525,7 +6533,7 @@ const zc = ["title"], Uc = {
|
|
|
6525
6533
|
class: "px-3 py-2 cursor-pointer hover:bg-gray-100 text-gray-900",
|
|
6526
6534
|
onClick: (P) => ae(A, P)
|
|
6527
6535
|
}, [
|
|
6528
|
-
|
|
6536
|
+
lt(ie(Ve(A)), 1)
|
|
6529
6537
|
], 8, Hc)), [
|
|
6530
6538
|
[n, Ge(A)]
|
|
6531
6539
|
])), 128))
|
|
@@ -6613,7 +6621,7 @@ const zc = ["title"], Uc = {
|
|
|
6613
6621
|
style: Oe(ge)
|
|
6614
6622
|
}, [
|
|
6615
6623
|
d("div", Kc, [
|
|
6616
|
-
d("span", Yc,
|
|
6624
|
+
d("span", Yc, ie(J.value), 1),
|
|
6617
6625
|
d("button", {
|
|
6618
6626
|
type: "button",
|
|
6619
6627
|
class: "text-gray-400 hover:text-gray-600",
|
|
@@ -6627,8 +6635,8 @@ const zc = ["title"], Uc = {
|
|
|
6627
6635
|
key: A.id,
|
|
6628
6636
|
class: "px-3 py-2 cursor-pointer hover:bg-gray-50",
|
|
6629
6637
|
onClick: (P) => be(A)
|
|
6630
|
-
},
|
|
6631
|
-
])) : (u(), m("div", Jc,
|
|
6638
|
+
}, ie(A.title), 9, Zc))), 128))
|
|
6639
|
+
])) : (u(), m("div", Jc, ie(le.value), 1))
|
|
6632
6640
|
])
|
|
6633
6641
|
], 4)
|
|
6634
6642
|
])) : q("", !0)
|
|
@@ -6706,7 +6714,7 @@ const zc = ["title"], Uc = {
|
|
|
6706
6714
|
size: 12,
|
|
6707
6715
|
"stroke-width": 2
|
|
6708
6716
|
}),
|
|
6709
|
-
n[1] || (n[1] =
|
|
6717
|
+
n[1] || (n[1] = lt(" Додати ", -1))
|
|
6710
6718
|
]));
|
|
6711
6719
|
}
|
|
6712
6720
|
}), ip = /* @__PURE__ */ me({
|
|
@@ -6721,7 +6729,7 @@ const zc = ["title"], Uc = {
|
|
|
6721
6729
|
size: 12,
|
|
6722
6730
|
"stroke-width": 2
|
|
6723
6731
|
}),
|
|
6724
|
-
n[1] || (n[1] =
|
|
6732
|
+
n[1] || (n[1] = lt(" Очистити ", -1))
|
|
6725
6733
|
]));
|
|
6726
6734
|
}
|
|
6727
6735
|
}), up = /* @__PURE__ */ me({
|
|
@@ -6736,7 +6744,7 @@ const zc = ["title"], Uc = {
|
|
|
6736
6744
|
size: 12,
|
|
6737
6745
|
"stroke-width": 2
|
|
6738
6746
|
}),
|
|
6739
|
-
n[1] || (n[1] =
|
|
6747
|
+
n[1] || (n[1] = lt("Замкнути ", -1))
|
|
6740
6748
|
]));
|
|
6741
6749
|
}
|
|
6742
6750
|
}), dp = new Intl.NumberFormat("uk-UA", {
|
|
@@ -6828,7 +6836,7 @@ const cp = { class: "flex items-center gap-1.5 text-xs bg-gray-50 rounded p-1.5"
|
|
|
6828
6836
|
type: "button",
|
|
6829
6837
|
onClick: h
|
|
6830
6838
|
}, " ✓ ")
|
|
6831
|
-
])) : (u(), m("span", fp,
|
|
6839
|
+
])) : (u(), m("span", fp, ie(o.value), 1)),
|
|
6832
6840
|
a.value ? q("", !0) : (u(), m("button", {
|
|
6833
6841
|
key: 2,
|
|
6834
6842
|
class: "text-blue-500 hover:text-blue-600 px-0.5",
|
|
@@ -6954,7 +6962,7 @@ const cp = { class: "flex items-center gap-1.5 text-xs bg-gray-50 rounded p-1.5"
|
|
|
6954
6962
|
})
|
|
6955
6963
|
]),
|
|
6956
6964
|
b[1] || (b[1] = d("span", { class: "text-xs font-medium text-gray-600 flex-1" }, "Загальна відстань", -1)),
|
|
6957
|
-
d("span", hp,
|
|
6965
|
+
d("span", hp, ie(f.value), 1)
|
|
6958
6966
|
]),
|
|
6959
6967
|
d("div", bp, [
|
|
6960
6968
|
d("button", wp, [
|
|
@@ -6976,11 +6984,11 @@ const cp = { class: "flex items-center gap-1.5 text-xs bg-gray-50 rounded p-1.5"
|
|
|
6976
6984
|
l.value === y.id ? "bg-white text-green-600 font-semibold shadow-sm" : "text-gray-600 hover:bg-gray-50"
|
|
6977
6985
|
]),
|
|
6978
6986
|
onClick: Te(($) => l.value = y.id, ["stop"])
|
|
6979
|
-
},
|
|
6987
|
+
}, ie(y.label), 11, _p)), 64))
|
|
6980
6988
|
])
|
|
6981
6989
|
]),
|
|
6982
6990
|
d("div", $p, [
|
|
6983
|
-
w.value ? (u(), m("span", Sp,
|
|
6991
|
+
w.value ? (u(), m("span", Sp, ie(S.value), 1)) : (u(), m("span", Cp, "—"))
|
|
6984
6992
|
])
|
|
6985
6993
|
]),
|
|
6986
6994
|
d("div", Mp, [
|
|
@@ -6990,7 +6998,7 @@ const cp = { class: "flex items-center gap-1.5 text-xs bg-gray-50 rounded p-1.5"
|
|
|
6990
6998
|
"stroke-width": 2.5
|
|
6991
6999
|
})
|
|
6992
7000
|
]),
|
|
6993
|
-
d("span", Ap,
|
|
7001
|
+
d("span", Ap, ie(k.value), 1),
|
|
6994
7002
|
d("button", {
|
|
6995
7003
|
type: "button",
|
|
6996
7004
|
class: "text-xs text-blue-500 hover:text-blue-600 font-medium transition-colors",
|
|
@@ -7067,8 +7075,8 @@ const cp = { class: "flex items-center gap-1.5 text-xs bg-gray-50 rounded p-1.5"
|
|
|
7067
7075
|
key: f,
|
|
7068
7076
|
class: "flex items-center justify-between text-xs py-1 px-2 rounded bg-gray-50"
|
|
7069
7077
|
}, [
|
|
7070
|
-
d("span", Pp, "Точка " +
|
|
7071
|
-
d("span", Bp,
|
|
7078
|
+
d("span", Pp, "Точка " + ie(s.from) + " → Точка " + ie(s.to), 1),
|
|
7079
|
+
d("span", Bp, ie(s.label), 1)
|
|
7072
7080
|
]))), 128))
|
|
7073
7081
|
])
|
|
7074
7082
|
]));
|
|
@@ -7646,7 +7654,7 @@ const Qp = { class: "vs-map-body" }, ef = {
|
|
|
7646
7654
|
}
|
|
7647
7655
|
};
|
|
7648
7656
|
let je = !1, Ze = !1;
|
|
7649
|
-
const Ne = xl({}), oe = V([]),
|
|
7657
|
+
const Ne = xl({}), oe = V([]), ue = g(
|
|
7650
7658
|
() => oe.value.map((i) => Ne[i]).filter(Boolean)
|
|
7651
7659
|
), Le = V(null), Ee = g(() => Le.value?.entries ?? []), nt = g(() => {
|
|
7652
7660
|
if (Le.value)
|
|
@@ -7751,7 +7759,7 @@ const Qp = { class: "vs-map-body" }, ef = {
|
|
|
7751
7759
|
), _ = g(
|
|
7752
7760
|
() => T.value.point || T.value.line || T.value.polygon || T.value.rectangle
|
|
7753
7761
|
), A = g(
|
|
7754
|
-
() =>
|
|
7762
|
+
() => ue.value.map((i) => ({
|
|
7755
7763
|
id: i.id,
|
|
7756
7764
|
label: String(i.config.title || i.config.name || i.id),
|
|
7757
7765
|
visible: i.visible
|
|
@@ -7775,9 +7783,9 @@ const Qp = { class: "vs-map-body" }, ef = {
|
|
|
7775
7783
|
const Y = new Function("u", "return import(u)"), he = await Y("https://esm.sh/maplibre-gl@3.6.2"), _e = he?.default ?? he;
|
|
7776
7784
|
if (!_e) throw new Error("maplibre esm fallback failed");
|
|
7777
7785
|
window.maplibregl = _e, window.mapboxgl = _e;
|
|
7778
|
-
const Re = await Y("https://esm.sh/@mapbox/mapbox-gl-draw@1.5.0"),
|
|
7779
|
-
if (!
|
|
7780
|
-
window.MapboxDraw =
|
|
7786
|
+
const Re = await Y("https://esm.sh/@mapbox/mapbox-gl-draw@1.5.0"), at = Re?.default ?? Re;
|
|
7787
|
+
if (!at) throw new Error("mapbox draw esm fallback failed");
|
|
7788
|
+
window.MapboxDraw = at;
|
|
7781
7789
|
}, D = (async () => {
|
|
7782
7790
|
p("https://unpkg.com/maplibre-gl@3.6.2/dist/maplibre-gl.css"), p("https://unpkg.com/@mapbox/mapbox-gl-draw@1.5.0/dist/mapbox-gl-draw.css"), (!window.maplibregl || !window.MapboxDraw) && await x();
|
|
7783
7791
|
const Y = window.maplibregl, he = window.MapboxDraw;
|
|
@@ -8112,7 +8120,7 @@ const Qp = { class: "vs-map-body" }, ef = {
|
|
|
8112
8120
|
type: "vector",
|
|
8113
8121
|
tiles: [x]
|
|
8114
8122
|
});
|
|
8115
|
-
const Re = String(p.style?.type ?? "polygon").toLowerCase(),
|
|
8123
|
+
const Re = String(p.style?.type ?? "polygon").toLowerCase(), at = re(p), Ct = p.style?.opacity ?? 0.5;
|
|
8116
8124
|
if (Re === "point") {
|
|
8117
8125
|
const Mt = `vs-ov-point-${i.id}`;
|
|
8118
8126
|
K.addLayer({
|
|
@@ -8121,7 +8129,7 @@ const Qp = { class: "vs-map-body" }, ef = {
|
|
|
8121
8129
|
source: i.sourceId,
|
|
8122
8130
|
"source-layer": _e,
|
|
8123
8131
|
paint: {
|
|
8124
|
-
"circle-color":
|
|
8132
|
+
"circle-color": at,
|
|
8125
8133
|
"circle-radius": 5,
|
|
8126
8134
|
"circle-opacity": Ct
|
|
8127
8135
|
}
|
|
@@ -8135,7 +8143,7 @@ const Qp = { class: "vs-map-body" }, ef = {
|
|
|
8135
8143
|
"source-layer": _e,
|
|
8136
8144
|
layout: { "line-cap": "round", "line-join": "round" },
|
|
8137
8145
|
paint: {
|
|
8138
|
-
"line-color":
|
|
8146
|
+
"line-color": at,
|
|
8139
8147
|
"line-width": p.style?.width ?? 2,
|
|
8140
8148
|
"line-opacity": Ct
|
|
8141
8149
|
}
|
|
@@ -8148,7 +8156,7 @@ const Qp = { class: "vs-map-body" }, ef = {
|
|
|
8148
8156
|
source: i.sourceId,
|
|
8149
8157
|
"source-layer": _e,
|
|
8150
8158
|
paint: {
|
|
8151
|
-
"fill-color":
|
|
8159
|
+
"fill-color": at,
|
|
8152
8160
|
"fill-opacity": Ct
|
|
8153
8161
|
}
|
|
8154
8162
|
}), K.addLayer({
|
|
@@ -8195,10 +8203,10 @@ const Qp = { class: "vs-map-body" }, ef = {
|
|
|
8195
8203
|
entries: en,
|
|
8196
8204
|
point: { x: Ct.point.x, y: Ct.point.y }
|
|
8197
8205
|
};
|
|
8198
|
-
},
|
|
8199
|
-
K.on("mousemove", _e, Re), K.on("mouseleave", _e,
|
|
8206
|
+
}, at = () => Yt(i.id);
|
|
8207
|
+
K.on("mousemove", _e, Re), K.on("mouseleave", _e, at), D.push(
|
|
8200
8208
|
{ layerId: _e, type: "mousemove", handler: Re },
|
|
8201
|
-
{ layerId: _e, type: "mouseleave", handler:
|
|
8209
|
+
{ layerId: _e, type: "mouseleave", handler: at }
|
|
8202
8210
|
);
|
|
8203
8211
|
}), i.layerIds = M, i.boundsIds = He(i.config, i.id), i.handlers = D;
|
|
8204
8212
|
const he = i.visible ? "visible" : "none";
|
|
@@ -8274,10 +8282,10 @@ const Qp = { class: "vs-map-body" }, ef = {
|
|
|
8274
8282
|
if (!K) return;
|
|
8275
8283
|
const i = R.value.map((Re) => ce(Re)).filter((Re) => K.getLayer(Re)), p = [], x = [], M = [], D = [];
|
|
8276
8284
|
oe.value.forEach((Re) => {
|
|
8277
|
-
const
|
|
8278
|
-
if (!
|
|
8279
|
-
const Ct = String(
|
|
8280
|
-
Mt ? M.push(...
|
|
8285
|
+
const at = Ne[Re];
|
|
8286
|
+
if (!at) return;
|
|
8287
|
+
const Ct = String(at.config?.url ?? ""), Mt = /\.v(?:m)?t(?:\?|$)/i.test(Ct), en = /\.png(?:\?|$)/i.test(Ct);
|
|
8288
|
+
Mt ? M.push(...at.layerIds) : en ? p.push(...at.layerIds) : x.push(...at.layerIds), D.push(...at.boundsIds);
|
|
8281
8289
|
});
|
|
8282
8290
|
const Y = [
|
|
8283
8291
|
...i,
|
|
@@ -8293,7 +8301,7 @@ const Qp = { class: "vs-map-body" }, ef = {
|
|
|
8293
8301
|
if (_e.forEach((Re) => {
|
|
8294
8302
|
K.getLayer(Re) && K.moveLayer(Re);
|
|
8295
8303
|
}), K.getLayer(ia)) {
|
|
8296
|
-
const Re = Y.find((
|
|
8304
|
+
const Re = Y.find((at) => K.getLayer(at)) ?? (K.getLayer(un) ? un : null) ?? _e.find((at) => K.getLayer(at));
|
|
8297
8305
|
Re && K.moveLayer(ia, Re);
|
|
8298
8306
|
}
|
|
8299
8307
|
}
|
|
@@ -8952,11 +8960,11 @@ const Qp = { class: "vs-map-body" }, ef = {
|
|
|
8952
8960
|
if (!D) return;
|
|
8953
8961
|
const he = Sn(D, Y);
|
|
8954
8962
|
x.push(he), M.add(he);
|
|
8955
|
-
const _e = { ...D, id: he }, Re = Ne[he],
|
|
8963
|
+
const _e = { ...D, id: he }, Re = Ne[he], at = Re?.visible ?? !!_e.visible;
|
|
8956
8964
|
Re && K && Se(Re), Ne[he] = {
|
|
8957
8965
|
id: he,
|
|
8958
8966
|
config: _e,
|
|
8959
|
-
visible:
|
|
8967
|
+
visible: at,
|
|
8960
8968
|
sourceId: `vs-ov-src-${he}`,
|
|
8961
8969
|
layerIds: [],
|
|
8962
8970
|
boundsIds: [],
|
|
@@ -9090,7 +9098,7 @@ const Qp = { class: "vs-map-body" }, ef = {
|
|
|
9090
9098
|
onClick: lo,
|
|
9091
9099
|
disabled: r.value
|
|
9092
9100
|
}, [
|
|
9093
|
-
p[8] || (p[8] =
|
|
9101
|
+
p[8] || (p[8] = lt(" Імпорт ", -1)),
|
|
9094
9102
|
X(H(pn), {
|
|
9095
9103
|
class: se(["h-3.5 w-3.5 shrink-0 transition-transform", { "rotate-180": ae.value }])
|
|
9096
9104
|
}, null, 8, ["class"])
|
|
@@ -9242,8 +9250,8 @@ const Qp = { class: "vs-map-body" }, ef = {
|
|
|
9242
9250
|
key: `${x.key}-${x.value}`,
|
|
9243
9251
|
class: "flex justify-between gap-2"
|
|
9244
9252
|
}, [
|
|
9245
|
-
d("dt", bf,
|
|
9246
|
-
d("dd", wf,
|
|
9253
|
+
d("dt", bf, ie(x.key), 1),
|
|
9254
|
+
d("dd", wf, ie(x.value), 1)
|
|
9247
9255
|
]))), 128))
|
|
9248
9256
|
])
|
|
9249
9257
|
])
|
|
@@ -9278,7 +9286,7 @@ const Qp = { class: "vs-map-body" }, ef = {
|
|
|
9278
9286
|
class: se(["vs-map-status__chip", { "vs-map-status__chip--active": x.id === H(ft) }]),
|
|
9279
9287
|
onClick: (D) => Ja(x.id),
|
|
9280
9288
|
disabled: r.value
|
|
9281
|
-
},
|
|
9289
|
+
}, ie(x.label), 11, Cf)) : (u(), m("span", Mf, ie(x.label), 1)),
|
|
9282
9290
|
M < pl.value.length - 1 ? (u(), m("span", Lf, ", ")) : q("", !0)
|
|
9283
9291
|
], 64))), 128)) : (u(), m("span", Af, "—"))
|
|
9284
9292
|
])
|
|
@@ -9286,11 +9294,11 @@ const Qp = { class: "vs-map-body" }, ef = {
|
|
|
9286
9294
|
d("div", Vf, [
|
|
9287
9295
|
d("span", Df, [
|
|
9288
9296
|
p[10] || (p[10] = d("span", { class: "vs-map-status__label" }, "Центр:", -1)),
|
|
9289
|
-
w.value ? (u(), m("span", If,
|
|
9297
|
+
w.value ? (u(), m("span", If, ie(w.value.center.lng.toFixed(5)) + ", " + ie(w.value.center.lat.toFixed(5)), 1)) : (u(), m("span", Tf, "—"))
|
|
9290
9298
|
]),
|
|
9291
9299
|
w.value && w.value.areaKm2 !== null ? (u(), m("span", Ef, [
|
|
9292
9300
|
p[11] || (p[11] = d("span", { class: "vs-map-status__label" }, "Площа:", -1)),
|
|
9293
|
-
d("span", Ff,
|
|
9301
|
+
d("span", Ff, ie(w.value.areaKm2.toFixed(1)) + " km²", 1)
|
|
9294
9302
|
])) : q("", !0),
|
|
9295
9303
|
d("div", Of, [
|
|
9296
9304
|
d("button", {
|
|
@@ -9395,7 +9403,7 @@ const Qp = { class: "vs-map-body" }, ef = {
|
|
|
9395
9403
|
class: "flex min-w-0 bg-[#e6e6e6] rounded-sm m-0.5 box-border"
|
|
9396
9404
|
}, [
|
|
9397
9405
|
d("div", Kf, [
|
|
9398
|
-
d("div", Yf,
|
|
9406
|
+
d("div", Yf, ie(j), 1)
|
|
9399
9407
|
]),
|
|
9400
9408
|
d("div", {
|
|
9401
9409
|
role: "button",
|
|
@@ -9410,7 +9418,7 @@ const Qp = { class: "vs-map-body" }, ef = {
|
|
|
9410
9418
|
})
|
|
9411
9419
|
], 8, Gf)
|
|
9412
9420
|
]))), 128)),
|
|
9413
|
-
w.value ? (u(), m("div", Xf,
|
|
9421
|
+
w.value ? (u(), m("div", Xf, ie(h.value), 1)) : q("", !0),
|
|
9414
9422
|
d("div", Zf, [
|
|
9415
9423
|
k.value ? q("", !0) : Be((u(), m("input", {
|
|
9416
9424
|
key: 0,
|
|
@@ -9694,7 +9702,7 @@ const Qp = { class: "vs-map-body" }, ef = {
|
|
|
9694
9702
|
class: "py-1.5 px-2 flex items-center gap-x-1 text-xs font-medium rounded-full border border-dashed border-gray-200 bg-white text-gray-800 hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed"
|
|
9695
9703
|
}, [
|
|
9696
9704
|
X(H(Pt), { class: "h-4 w-4" }),
|
|
9697
|
-
|
|
9705
|
+
lt(" " + ie(H(r)), 1)
|
|
9698
9706
|
], 8, km)
|
|
9699
9707
|
])
|
|
9700
9708
|
]));
|
|
@@ -9828,7 +9836,7 @@ const Qp = { class: "vs-map-body" }, ef = {
|
|
|
9828
9836
|
class: "py-1.5 px-2 flex items-center gap-x-1 text-xs font-medium rounded-full border border-dashed border-gray-200 bg-white text-gray-800 hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed"
|
|
9829
9837
|
}, [
|
|
9830
9838
|
X(H(Pt), { class: "h-4 w-4" }),
|
|
9831
|
-
|
|
9839
|
+
lt(" " + ie(s.value), 1)
|
|
9832
9840
|
], 8, Tm)
|
|
9833
9841
|
])
|
|
9834
9842
|
]));
|
|
@@ -10252,9 +10260,9 @@ const Qp = { class: "vs-map-body" }, ef = {
|
|
|
10252
10260
|
if (_.key === "Enter") {
|
|
10253
10261
|
_.preventDefault();
|
|
10254
10262
|
const A = W.value[0];
|
|
10255
|
-
A &&
|
|
10263
|
+
A && ue(A);
|
|
10256
10264
|
}
|
|
10257
|
-
},
|
|
10265
|
+
}, ue = (_) => {
|
|
10258
10266
|
if (!_) return;
|
|
10259
10267
|
const A = O(_.id);
|
|
10260
10268
|
if (ke.value.has(A)) return;
|
|
@@ -10438,9 +10446,9 @@ const Qp = { class: "vs-map-body" }, ef = {
|
|
|
10438
10446
|
key: O(P.id),
|
|
10439
10447
|
type: "button",
|
|
10440
10448
|
class: "w-full px-3 py-2 text-left text-sm text-stone-900 hover:bg-stone-100 disabled:opacity-50",
|
|
10441
|
-
onClick: Te((ce) =>
|
|
10449
|
+
onClick: Te((ce) => ue(P), ["stop"]),
|
|
10442
10450
|
disabled: N.value
|
|
10443
|
-
},
|
|
10451
|
+
}, ie(ee(P)), 9, Jm))), 128)),
|
|
10444
10452
|
W.value.length === 0 ? (u(), m("p", Qm, " Немає варіантів ")) : q("", !0)
|
|
10445
10453
|
])
|
|
10446
10454
|
], 4)) : q("", !0)
|
|
@@ -10483,7 +10491,7 @@ const Qp = { class: "vs-map-body" }, ef = {
|
|
|
10483
10491
|
d("div", {
|
|
10484
10492
|
class: "flex-1 text-sm text-stone-900",
|
|
10485
10493
|
title: P.text
|
|
10486
|
-
},
|
|
10494
|
+
}, ie(P.text), 9, av),
|
|
10487
10495
|
d("button", {
|
|
10488
10496
|
type: "button",
|
|
10489
10497
|
class: "flex h-6 w-6 shrink-0 items-center justify-center rounded-full text-stone-400 hover:text-stone-900",
|
|
@@ -10658,7 +10666,7 @@ const Qp = { class: "vs-map-body" }, ef = {
|
|
|
10658
10666
|
key: O,
|
|
10659
10667
|
onClick: (ee) => N(F),
|
|
10660
10668
|
class: "px-3 py-2 cursor-pointer hover:bg-gray-100 border-b text-sm"
|
|
10661
|
-
},
|
|
10669
|
+
}, ie(F.display_name), 9, vv))), 128))
|
|
10662
10670
|
]),
|
|
10663
10671
|
c.value.length ? q("", !0) : (u(), m("div", gv, " Не знайдено результатів "))
|
|
10664
10672
|
])
|
|
@@ -10753,7 +10761,7 @@ const Qp = { class: "vs-map-body" }, ef = {
|
|
|
10753
10761
|
X(H(rn), { class: "h-4 w-4" })
|
|
10754
10762
|
], 8, wv)
|
|
10755
10763
|
], 2))), 128)),
|
|
10756
|
-
l.value.length === 0 ? (u(), m("div", xv,
|
|
10764
|
+
l.value.length === 0 ? (u(), m("div", xv, ie(t.emptyLabel), 1)) : q("", !0)
|
|
10757
10765
|
]),
|
|
10758
10766
|
d("button", {
|
|
10759
10767
|
type: "button",
|
|
@@ -10762,7 +10770,7 @@ const Qp = { class: "vs-map-body" }, ef = {
|
|
|
10762
10770
|
disabled: !f.value
|
|
10763
10771
|
}, [
|
|
10764
10772
|
X(H(Pt), { class: "h-4 w-4" }),
|
|
10765
|
-
|
|
10773
|
+
lt(" " + ie(t.addButtonText), 1)
|
|
10766
10774
|
], 8, kv)
|
|
10767
10775
|
]));
|
|
10768
10776
|
}
|
|
@@ -10951,7 +10959,7 @@ const Qp = { class: "vs-map-body" }, ef = {
|
|
|
10951
10959
|
class: se(["h-4 w-4 transition", O(ae) ? "-rotate-90" : "rotate-0"])
|
|
10952
10960
|
}, null, 8, ["class"])
|
|
10953
10961
|
], 8, Lv)) : q("", !0),
|
|
10954
|
-
d("div", Av,
|
|
10962
|
+
d("div", Av, ie(`${c.value} (${ae + 1})`), 1)
|
|
10955
10963
|
]),
|
|
10956
10964
|
d("div", Vv, [
|
|
10957
10965
|
d("button", {
|
|
@@ -10993,7 +11001,7 @@ const Qp = { class: "vs-map-body" }, ef = {
|
|
|
10993
11001
|
[Ot, !O(ae)]
|
|
10994
11002
|
])
|
|
10995
11003
|
], 42, Cv))), 128)),
|
|
10996
|
-
n.value.length === 0 ? (u(), m("div", Tv,
|
|
11004
|
+
n.value.length === 0 ? (u(), m("div", Tv, ie(h.value), 1)) : q("", !0),
|
|
10997
11005
|
d("button", {
|
|
10998
11006
|
type: "button",
|
|
10999
11007
|
class: "flex items-center gap-2 text-gray-600 hover:text-gray-900 font-medium transition-colors text-sm",
|
|
@@ -11001,7 +11009,7 @@ const Qp = { class: "vs-map-body" }, ef = {
|
|
|
11001
11009
|
disabled: !y.value
|
|
11002
11010
|
}, [
|
|
11003
11011
|
X(H(Pt), { class: "h-4 w-4" }),
|
|
11004
|
-
|
|
11012
|
+
lt(" " + ie(t.addButtonText), 1)
|
|
11005
11013
|
], 8, Ev)
|
|
11006
11014
|
]));
|
|
11007
11015
|
}
|
|
@@ -11224,7 +11232,7 @@ const Qp = { class: "vs-map-body" }, ef = {
|
|
|
11224
11232
|
return (o, a) => (u(), m("button", {
|
|
11225
11233
|
onClick: l,
|
|
11226
11234
|
class: "vs-button relative inline-flex border-solid justify-center items-center gap-2 rounded-md font-semibold focus:outline-none text-sm transition-all border !border-gray-200 hover:text-white bg-white text-blue-500 hover:border-blue-500 hover:bg-blue-500 focus:ring-blue-500 py-1.5 px-5 focus:ring-1 focus:ring-offset-1 ml-0 md:ml-2 mt-2 md:mt-0 py-[8px] md:w-2/4 whitespace-nowrap w-full"
|
|
11227
|
-
},
|
|
11235
|
+
}, ie(o.button), 1));
|
|
11228
11236
|
}
|
|
11229
11237
|
}), Nv = { class: "flex flex-col gap-1 w-full" }, jv = { class: "w-full" }, zv = ["disabled"], Uv = ["innerHTML"], Hv = 2e3, Wv = 10, Na = /* @__PURE__ */ me({
|
|
11230
11238
|
__name: "vs-compact-form-layout",
|
|
@@ -11579,7 +11587,7 @@ const Qp = { class: "vs-map-body" }, ef = {
|
|
|
11579
11587
|
class: se(s.value),
|
|
11580
11588
|
style: Oe(f.value)
|
|
11581
11589
|
}, [
|
|
11582
|
-
d("h2", qv,
|
|
11590
|
+
d("h2", qv, ie(ee.title), 1),
|
|
11583
11591
|
d("div", Kv, [
|
|
11584
11592
|
(u(!0), m(Ae, null, Pe(l.value, (ke) => (u(), m("div", {
|
|
11585
11593
|
key: ke.id,
|
|
@@ -11598,7 +11606,7 @@ const Qp = { class: "vs-map-body" }, ef = {
|
|
|
11598
11606
|
ke.id === o.value ? "text-gray-800" : "text-gray-500"
|
|
11599
11607
|
])
|
|
11600
11608
|
}, [
|
|
11601
|
-
d("span", null,
|
|
11609
|
+
d("span", null, ie(ke.text), 1)
|
|
11602
11610
|
], 10, Yv)
|
|
11603
11611
|
], 2))), 128))
|
|
11604
11612
|
])
|
|
@@ -12045,7 +12053,7 @@ const ug = { class: "flex w-full h-full min-h-0 gap-6" }, dg = {
|
|
|
12045
12053
|
d("div", pg, [
|
|
12046
12054
|
d("div", fg, [
|
|
12047
12055
|
d("div", mg, [
|
|
12048
|
-
d("h3", vg,
|
|
12056
|
+
d("h3", vg, ie(c.value === "add" ? "Додати" : "Змінити"), 1),
|
|
12049
12057
|
d("button", {
|
|
12050
12058
|
onClick: b,
|
|
12051
12059
|
type: "button",
|