@opengis/form 0.0.126 → 0.0.128
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as oe, ref as V, createElementBlock as m, openBlock as i, Fragment as ye, createElementVNode as u, createBlock as pe, renderSlot as ze, createVNode as N, unref as T, Teleport as Qt, createCommentVNode as j, normalizeStyle as Pe, toDisplayString as le, computed as _, mergeProps as Mt, createTextVNode as Oe, normalizeProps as
|
|
2
|
-
import { Info as Rt, Check as Wa, Mail as Ka, Phone as Ga, Table as Ya, FileCode as Za, FileText as wl, FileArchive as Ja, Trash2 as Ut, Download as
|
|
3
|
-
import { notify as $e, VsModal as
|
|
1
|
+
import { defineComponent as oe, ref as V, createElementBlock as m, openBlock as i, Fragment as ye, createElementVNode as u, createBlock as pe, renderSlot as ze, createVNode as N, unref as T, Teleport as Qt, createCommentVNode as j, normalizeStyle as Pe, toDisplayString as le, computed as _, mergeProps as Mt, createTextVNode as Oe, normalizeProps as Tl, guardReactiveProps as Bl, onMounted as qe, onUnmounted as el, normalizeClass as K, mergeModels as Se, useModel as Le, withDirectives as _e, vModelText as je, vModelCheckbox as ra, resolveDynamicComponent as yt, withCtx as Ge, withModifiers as De, onBeforeUnmount as It, watch as ue, vModelRadio as sa, renderList as Ce, reactive as ia, vModelDynamic as ja, inject as nt, vShow as $t, resolveComponent as it, Transition as Pl, nextTick as Ke, defineAsyncComponent as Ra, createStaticVNode as Ol, useSlots as Na, useAttrs as Ua, getCurrentInstance as za, watchEffect as Yt, withKeys as Ha, toRef as qa, provide as Vl } from "vue";
|
|
2
|
+
import { Info as Rt, Check as Wa, Mail as Ka, Phone as Ga, Table as Ya, FileCode as Za, FileText as wl, FileArchive as Ja, Trash2 as Ut, Download as jl, Plus as mt, Upload as ua, Search as _l, ChevronDown as Ht, X as vt, GripVertical as zt, Pencil as Xa, Circle as Qa, MapPin as da, Ruler as ca, Maximize as en, ZoomIn as tn, LoaderCircle as ln, Copy as an, ChevronRight as nn, ChevronLeft as on } from "lucide-vue-next";
|
|
3
|
+
import { notify as $e, VsModal as Rl, modal as rn } from "@opengis/core";
|
|
4
4
|
const fa = /* @__PURE__ */ oe({
|
|
5
5
|
__name: "vs-info-tooltip",
|
|
6
6
|
props: {
|
|
@@ -133,7 +133,7 @@ const fa = /* @__PURE__ */ oe({
|
|
|
133
133
|
class: "flex-1 min-w-0",
|
|
134
134
|
style: Pe(d.value)
|
|
135
135
|
}, [
|
|
136
|
-
ze(f.$slots, "default", Bl(
|
|
136
|
+
ze(f.$slots, "default", Tl(Bl(f.$attrs)))
|
|
137
137
|
], 4),
|
|
138
138
|
f.error ? (i(), m("span", gn, le(f.error), 1)) : j("", !0)
|
|
139
139
|
]));
|
|
@@ -157,7 +157,7 @@ const fa = /* @__PURE__ */ oe({
|
|
|
157
157
|
},
|
|
158
158
|
setup(e) {
|
|
159
159
|
return (l, t) => (i(), m("div", yn, [
|
|
160
|
-
ze(l.$slots, "default", Bl(
|
|
160
|
+
ze(l.$slots, "default", Tl(Bl(l.$attrs))),
|
|
161
161
|
l.error ? (i(), m("span", bn, le(l.error), 1)) : j("", !0)
|
|
162
162
|
]));
|
|
163
163
|
}
|
|
@@ -219,7 +219,7 @@ const fa = /* @__PURE__ */ oe({
|
|
|
219
219
|
u("div", {
|
|
220
220
|
class: K(["w-full", ["select", "native-select"].includes(s.item.type) ? "md:w-[30%]" : "md:w-auto"])
|
|
221
221
|
}, [
|
|
222
|
-
ze(s.$slots, "default", Bl(
|
|
222
|
+
ze(s.$slots, "default", Tl(Bl(s.$attrs)))
|
|
223
223
|
], 2)
|
|
224
224
|
], 2),
|
|
225
225
|
o.value ? (i(), m("p", Sn, le(o.value), 1)) : j("", !0)
|
|
@@ -370,7 +370,7 @@ const Ln = ["placeholder", "disabled"], Mn = /* @__PURE__ */ oe({
|
|
|
370
370
|
id: r.id,
|
|
371
371
|
disabled: o.value
|
|
372
372
|
}, null, 10, Tn), [
|
|
373
|
-
[
|
|
373
|
+
[ra, n.value]
|
|
374
374
|
]),
|
|
375
375
|
u("label", {
|
|
376
376
|
for: r.id,
|
|
@@ -423,7 +423,7 @@ const Ln = ["placeholder", "disabled"], Mn = /* @__PURE__ */ oe({
|
|
|
423
423
|
"onUpdate:modelValue": d[0] || (d[0] = (f) => n.value = f),
|
|
424
424
|
disabled: s.disabled
|
|
425
425
|
}, null, 8, jn), [
|
|
426
|
-
[
|
|
426
|
+
[ra, n.value]
|
|
427
427
|
]),
|
|
428
428
|
u("span", Rn, [
|
|
429
429
|
s.icon || s.imgUrl ? (i(), m("span", Nn, [
|
|
@@ -445,7 +445,7 @@ const Ln = ["placeholder", "disabled"], Mn = /* @__PURE__ */ oe({
|
|
|
445
445
|
])
|
|
446
446
|
], 2));
|
|
447
447
|
}
|
|
448
|
-
}), Hn = { class: "flex items-center" },
|
|
448
|
+
}), Hn = { class: "flex items-center" }, Al = /* @__PURE__ */ oe({
|
|
449
449
|
__name: "vs-input-checkbox-item",
|
|
450
450
|
props: {
|
|
451
451
|
value: { default: "" },
|
|
@@ -524,7 +524,7 @@ const Ln = ["placeholder", "disabled"], Mn = /* @__PURE__ */ oe({
|
|
|
524
524
|
setup(e) {
|
|
525
525
|
const l = e, t = Le(e, "modelValue");
|
|
526
526
|
return (a, n) => l.view === "checkbox" ? (i(), m("div", qn, [
|
|
527
|
-
N(
|
|
527
|
+
N(Al, {
|
|
528
528
|
modelValue: t.value,
|
|
529
529
|
"onUpdate:modelValue": n[0] || (n[0] = (o) => t.value = o),
|
|
530
530
|
label: a.text,
|
|
@@ -553,7 +553,7 @@ const Ln = ["placeholder", "disabled"], Mn = /* @__PURE__ */ oe({
|
|
|
553
553
|
}, null, 2)
|
|
554
554
|
], 10, Gn));
|
|
555
555
|
}
|
|
556
|
-
}), Yn = ["id", "innerHTML"],
|
|
556
|
+
}), Yn = ["id", "innerHTML"], Wl = /* @__PURE__ */ oe({
|
|
557
557
|
__name: "vs-input-static",
|
|
558
558
|
props: {
|
|
559
559
|
text: { default: "" },
|
|
@@ -764,7 +764,7 @@ const Ln = ["placeholder", "disabled"], Mn = /* @__PURE__ */ oe({
|
|
|
764
764
|
disabled: a.value,
|
|
765
765
|
class: "hidden"
|
|
766
766
|
}, null, 8, ao), [
|
|
767
|
-
[
|
|
767
|
+
[sa, t.value]
|
|
768
768
|
]),
|
|
769
769
|
u("span", {
|
|
770
770
|
class: K(["w-[16px] shrink-0 h-[16px] border rounded-full flex items-center justify-center mr-[10px]", [
|
|
@@ -815,7 +815,7 @@ const Ln = ["placeholder", "disabled"], Mn = /* @__PURE__ */ oe({
|
|
|
815
815
|
disabled: a.value,
|
|
816
816
|
class: "hidden"
|
|
817
817
|
}, null, 8, ro), [
|
|
818
|
-
[
|
|
818
|
+
[sa, t.value]
|
|
819
819
|
]),
|
|
820
820
|
u("span", so, le(l.text), 1)
|
|
821
821
|
], 2));
|
|
@@ -823,7 +823,7 @@ const Ln = ["placeholder", "disabled"], Mn = /* @__PURE__ */ oe({
|
|
|
823
823
|
}), uo = {
|
|
824
824
|
"vs-input-radio-default": oo,
|
|
825
825
|
"vs-input-radio-buttons": io
|
|
826
|
-
},
|
|
826
|
+
}, Kl = /* @__PURE__ */ oe({
|
|
827
827
|
__name: "vs-input-radio",
|
|
828
828
|
props: /* @__PURE__ */ Se({
|
|
829
829
|
options: {},
|
|
@@ -887,7 +887,7 @@ const Ln = ["placeholder", "disabled"], Mn = /* @__PURE__ */ oe({
|
|
|
887
887
|
},
|
|
888
888
|
emits: ["update:modelValue"],
|
|
889
889
|
setup(e, { emit: l }) {
|
|
890
|
-
const t = e, a = l, n = V([]), o =
|
|
890
|
+
const t = e, a = l, n = V([]), o = ia({}), r = (h) => h?.value || h?.id || h?.text || h, s = (h) => h.text || String(h), d = (h) => `lg:col-span-${h || 12}`, f = _(() => [
|
|
891
891
|
t.position === "vertical" ? "flex flex-col" : "",
|
|
892
892
|
t.colSpan ? "grid" : "flex justify-start"
|
|
893
893
|
]), y = (h) => h == null || h === "" ? null : typeof h == "string" || typeof h == "number" ? h : String(h), C = _(() => {
|
|
@@ -996,7 +996,7 @@ const Ln = ["placeholder", "disabled"], Mn = /* @__PURE__ */ oe({
|
|
|
996
996
|
u("div", {
|
|
997
997
|
class: K(["p-0 w-full gap-[12px]", f.value])
|
|
998
998
|
}, [
|
|
999
|
-
(i(!0), m(ye, null, Ce(v.options, (g) => (i(), pe(
|
|
999
|
+
(i(!0), m(ye, null, Ce(v.options, (g) => (i(), pe(Al, {
|
|
1000
1000
|
modelValue: o[r(g)],
|
|
1001
1001
|
"onUpdate:modelValue": ($) => o[r(g)] = $,
|
|
1002
1002
|
value: r(g),
|
|
@@ -1015,7 +1015,7 @@ const Ln = ["placeholder", "disabled"], Mn = /* @__PURE__ */ oe({
|
|
|
1015
1015
|
key: 0,
|
|
1016
1016
|
class: K(["p-0 w-full gap-[10px]", f.value])
|
|
1017
1017
|
}, [
|
|
1018
|
-
(i(!0), m(ye, null, Ce(n.value, (v) => (i(), pe(
|
|
1018
|
+
(i(!0), m(ye, null, Ce(n.value, (v) => (i(), pe(Al, {
|
|
1019
1019
|
modelValue: o[r(v)],
|
|
1020
1020
|
"onUpdate:modelValue": (g) => o[r(v)] = g,
|
|
1021
1021
|
value: r(v),
|
|
@@ -1082,7 +1082,7 @@ const Ln = ["placeholder", "disabled"], Mn = /* @__PURE__ */ oe({
|
|
|
1082
1082
|
});
|
|
1083
1083
|
const o = n.toString();
|
|
1084
1084
|
return o ? `${t}?${o}` : t;
|
|
1085
|
-
},
|
|
1085
|
+
}, Gl = async (e, l = {}) => {
|
|
1086
1086
|
try {
|
|
1087
1087
|
const t = new FormData();
|
|
1088
1088
|
t.append("unique", "true"), t.append("file", e);
|
|
@@ -1114,7 +1114,7 @@ const Ln = ["placeholder", "disabled"], Mn = /* @__PURE__ */ oe({
|
|
|
1114
1114
|
} catch (l) {
|
|
1115
1115
|
return console.error(l), !1;
|
|
1116
1116
|
}
|
|
1117
|
-
},
|
|
1117
|
+
}, Yl = async (e) => {
|
|
1118
1118
|
try {
|
|
1119
1119
|
const l = await fetch(`/file/download/files/uploads${e}`), t = await l.arrayBuffer(), a = l.headers["content-type"], n = new TextDecoder("utf-8").decode(t), o = new Blob([n], { type: a }), r = document.createElement("a");
|
|
1120
1120
|
r.setAttribute("download", e), r.href = window.URL.createObjectURL(o), r.click();
|
|
@@ -1168,7 +1168,7 @@ const Ln = ["placeholder", "disabled"], Mn = /* @__PURE__ */ oe({
|
|
|
1168
1168
|
src: t.value,
|
|
1169
1169
|
alt: "file",
|
|
1170
1170
|
class: "w-full h-full object-cover cursor-pointer",
|
|
1171
|
-
onClick: o[0] || (o[0] = (r) => T(
|
|
1171
|
+
onClick: o[0] || (o[0] = (r) => T(Yl)(t.value))
|
|
1172
1172
|
}, null, 8, ["src"])),
|
|
1173
1173
|
u("div", _o, [
|
|
1174
1174
|
u("button", {
|
|
@@ -1182,15 +1182,15 @@ const Ln = ["placeholder", "disabled"], Mn = /* @__PURE__ */ oe({
|
|
|
1182
1182
|
]),
|
|
1183
1183
|
u("button", {
|
|
1184
1184
|
type: "button",
|
|
1185
|
-
onClick: o[2] || (o[2] = (r) => T(
|
|
1185
|
+
onClick: o[2] || (o[2] = (r) => T(Yl)(t.value)),
|
|
1186
1186
|
class: "w-6 h-6 flex items-center justify-center text-gray-500 bg-gray-200 rounded-lg hover:text-blue-500"
|
|
1187
1187
|
}, [
|
|
1188
|
-
N(T(
|
|
1188
|
+
N(T(jl), { class: "w-4 h-4" })
|
|
1189
1189
|
])
|
|
1190
1190
|
])
|
|
1191
1191
|
], 8, ko));
|
|
1192
1192
|
}
|
|
1193
|
-
}),
|
|
1193
|
+
}), Il = /* @__PURE__ */ Te($o, [["__scopeId", "data-v-dc557562"]]), Co = { class: "flex items-center gap-x-2" }, So = ["accept", "multiple", "disabled"], Vo = {
|
|
1194
1194
|
key: 1,
|
|
1195
1195
|
class: "flex items-center flex-wrap gap-2"
|
|
1196
1196
|
}, Do = {
|
|
@@ -1303,14 +1303,14 @@ const Ln = ["placeholder", "disabled"], Mn = /* @__PURE__ */ oe({
|
|
|
1303
1303
|
r.value = !0;
|
|
1304
1304
|
try {
|
|
1305
1305
|
if (t.multiple) {
|
|
1306
|
-
const A = Array.from(w).map(async (H) => await
|
|
1306
|
+
const A = Array.from(w).map(async (H) => await Gl(H, h())), E = await Promise.all(A), Q = E.filter((H) => H !== null).map((H) => H?.file_path).filter(Boolean);
|
|
1307
1307
|
if (Q.length === 0) {
|
|
1308
1308
|
v();
|
|
1309
1309
|
return;
|
|
1310
1310
|
}
|
|
1311
1311
|
Q.length < E.length && v("Деякі файли не вдалося завантажити. Перевірте їх та спробуйте знову."), a.value = [...a.value || [], ...Q], n("change", a.value);
|
|
1312
1312
|
} else {
|
|
1313
|
-
const A = w[0], E = await
|
|
1313
|
+
const A = w[0], E = await Gl(A, h());
|
|
1314
1314
|
if (!E?.file_path) {
|
|
1315
1315
|
v();
|
|
1316
1316
|
return;
|
|
@@ -1335,14 +1335,14 @@ const Ln = ["placeholder", "disabled"], Mn = /* @__PURE__ */ oe({
|
|
|
1335
1335
|
onChange: $,
|
|
1336
1336
|
disabled: r.value || k.disabled
|
|
1337
1337
|
}, null, 40, So),
|
|
1338
|
-
!k.multiple && a.value ? (i(), pe(
|
|
1338
|
+
!k.multiple && a.value ? (i(), pe(Il, {
|
|
1339
1339
|
key: 0,
|
|
1340
1340
|
item: a.value,
|
|
1341
1341
|
"onUpdate:item": w[0] || (w[0] = (x) => a.value = x),
|
|
1342
1342
|
value: a.value,
|
|
1343
1343
|
"onUpdate:value": w[1] || (w[1] = (x) => a.value = x)
|
|
1344
1344
|
}, null, 8, ["item", "value"])) : k.multiple ? (i(), m("div", Vo, [
|
|
1345
|
-
(i(!0), m(ye, null, Ce(a.value, (x, D) => (i(), pe(
|
|
1345
|
+
(i(!0), m(ye, null, Ce(a.value, (x, D) => (i(), pe(Il, {
|
|
1346
1346
|
multiple: k.multiple,
|
|
1347
1347
|
key: D,
|
|
1348
1348
|
value: a.value,
|
|
@@ -1548,7 +1548,7 @@ const Ln = ["placeholder", "disabled"], Mn = /* @__PURE__ */ oe({
|
|
|
1548
1548
|
disabled: s.value || l.disabled,
|
|
1549
1549
|
onChange: D
|
|
1550
1550
|
}, null, 40, Fo),
|
|
1551
|
-
t.value ? (i(), pe(
|
|
1551
|
+
t.value ? (i(), pe(Il, {
|
|
1552
1552
|
key: 0,
|
|
1553
1553
|
item: t.value,
|
|
1554
1554
|
"onUpdate:item": z[0] || (z[0] = (ne) => t.value = ne),
|
|
@@ -1734,7 +1734,7 @@ const Ln = ["placeholder", "disabled"], Mn = /* @__PURE__ */ oe({
|
|
|
1734
1734
|
class: "inline-flex p-[6px] justify-center items-center gap-x-2 rounded-lg border border-transparent text-gray-500 hover:bg-gray-100 disabled:opacity-50 disabled:pointer-events-none dark:text-neutral-400 focus:outline-none focus:bg-gray-100 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700",
|
|
1735
1735
|
onClick: C[1] || (C[1] = (M) => r(y.item))
|
|
1736
1736
|
}, [
|
|
1737
|
-
N(T(
|
|
1737
|
+
N(T(jl), { class: "h-4 w-4" })
|
|
1738
1738
|
])
|
|
1739
1739
|
]),
|
|
1740
1740
|
C[3] || (C[3] = u("div", { class: "w-px h-5 mx-1 bg-gray-200 dark:bg-neutral-700" }, null, -1)),
|
|
@@ -1920,7 +1920,7 @@ const Ln = ["placeholder", "disabled"], Mn = /* @__PURE__ */ oe({
|
|
|
1920
1920
|
style: Pe(e.style)
|
|
1921
1921
|
}, null, 8, ["modelValue", "style"])
|
|
1922
1922
|
]),
|
|
1923
|
-
N(
|
|
1923
|
+
N(Pl, { name: "slide-fade" }, {
|
|
1924
1924
|
default: Ge(() => [
|
|
1925
1925
|
_e(u("div", kr, [
|
|
1926
1926
|
ze(a.$slots, "default", {}, void 0, !0)
|
|
@@ -1966,7 +1966,7 @@ const Ln = ["placeholder", "disabled"], Mn = /* @__PURE__ */ oe({
|
|
|
1966
1966
|
}, null, 8, ["class"]),
|
|
1967
1967
|
u("span", Cr, le(e.title), 1)
|
|
1968
1968
|
]),
|
|
1969
|
-
N(
|
|
1969
|
+
N(Pl, { name: "slide-fade" }, {
|
|
1970
1970
|
default: Ge(() => [
|
|
1971
1971
|
_e(u("div", Sr, [
|
|
1972
1972
|
ze(a.$slots, "default", {}, void 0, !0)
|
|
@@ -2461,7 +2461,7 @@ const Ln = ["placeholder", "disabled"], Mn = /* @__PURE__ */ oe({
|
|
|
2461
2461
|
I && me(I);
|
|
2462
2462
|
}
|
|
2463
2463
|
}), (I, q) => (i(), m(ye, null, [
|
|
2464
|
-
N(T(
|
|
2464
|
+
N(T(Rl), {
|
|
2465
2465
|
visible: bt.value,
|
|
2466
2466
|
"onUpdate:visible": q[1] || (q[1] = (U) => bt.value = U),
|
|
2467
2467
|
class: "z-[1000]",
|
|
@@ -2739,7 +2739,7 @@ const Ln = ["placeholder", "disabled"], Mn = /* @__PURE__ */ oe({
|
|
|
2739
2739
|
], 512)
|
|
2740
2740
|
], 64));
|
|
2741
2741
|
}
|
|
2742
|
-
}),
|
|
2742
|
+
}), Zl = /* @__PURE__ */ Te(ps, [["__scopeId", "data-v-4f31eacf"]]), ms = ["placeholder", "disabled"], vs = /* @__PURE__ */ oe({
|
|
2743
2743
|
__name: "vs-input-textarea",
|
|
2744
2744
|
props: /* @__PURE__ */ Se({
|
|
2745
2745
|
style: { default: () => ({}) },
|
|
@@ -2795,7 +2795,7 @@ const Ln = ["placeholder", "disabled"], Mn = /* @__PURE__ */ oe({
|
|
|
2795
2795
|
}),
|
|
2796
2796
|
emits: ["update:modelValue"],
|
|
2797
2797
|
setup(e) {
|
|
2798
|
-
const l = Ra(() => import("./vs-richtext-
|
|
2798
|
+
const l = Ra(() => import("./vs-richtext-BzIb42SO.js")), t = e, { inputClass: a } = Ye(t.style), n = Le(e, "modelValue"), o = _(() => !!t.disabled), r = _(() => t.placeholder ?? ""), s = _(() => ({
|
|
2799
2799
|
height: "300px",
|
|
2800
2800
|
format: t.format,
|
|
2801
2801
|
...t.richtextProps
|
|
@@ -2818,7 +2818,7 @@ const Ln = ["placeholder", "disabled"], Mn = /* @__PURE__ */ oe({
|
|
|
2818
2818
|
};
|
|
2819
2819
|
function bs(e, l) {
|
|
2820
2820
|
return i(), m("svg", ys, l[0] || (l[0] = [
|
|
2821
|
-
|
|
2821
|
+
Ol('<rect x="27" y="50.5" width="124" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="27" y="50.5" width="124" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-50 dark:stroke-neutral-700/10"></rect><rect x="34.5" y="58" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="61" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="73" width="77" height="6" rx="3" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-100 dark:stroke-neutral-700/30"></rect><rect x="27" y="36" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><rect x="59" y="39" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><rect x="59" y="51" width="92" height="6" rx="3" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><g filter="url(#filter1)"><rect x="12" y="6" width="154" height="40" rx="8" fill="currentColor" class="fill-white dark:fill-neutral-800" shape-rendering="crispEdges"></rect><rect x="12.5" y="6.5" width="153" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-100 dark:stroke-neutral-700/60" shape-rendering="crispEdges"></rect><rect x="20" y="14" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect><rect x="52" y="17" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect><rect x="52" y="29" width="106" height="6" rx="3" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect></g><defs><filter id="filter1" x="0" y="0" width="178" height="64" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="6"></feOffset><feGaussianBlur stdDeviation="6"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.03 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1187_14810"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1187_14810" result="shape"></feBlend></filter></defs>', 12)
|
|
2822
2822
|
]));
|
|
2823
2823
|
}
|
|
2824
2824
|
const xs = /* @__PURE__ */ Te(hs, [["render", bs]]), ws = { class: "bg-white rounded-lg shadow-sm border border-gray-200 overflow-hidden flex flex-col" }, ks = {
|
|
@@ -3070,7 +3070,7 @@ const xs = /* @__PURE__ */ Te(hs, [["render", bs]]), ws = { class: "bg-white rou
|
|
|
3070
3070
|
onClick: A,
|
|
3071
3071
|
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"
|
|
3072
3072
|
}, [
|
|
3073
|
-
N(T(
|
|
3073
|
+
N(T(jl), { class: "h-4 w-4 text-gray-700" }),
|
|
3074
3074
|
J[5] || (J[5] = Oe(" Експорт ", -1))
|
|
3075
3075
|
])) : j("", !0),
|
|
3076
3076
|
a("add") ? (i(), m("button", {
|
|
@@ -3192,7 +3192,7 @@ const xs = /* @__PURE__ */ Te(hs, [["render", bs]]), ws = { class: "bg-white rou
|
|
|
3192
3192
|
], 2)
|
|
3193
3193
|
])
|
|
3194
3194
|
]),
|
|
3195
|
-
N(T(
|
|
3195
|
+
N(T(Rl), {
|
|
3196
3196
|
visible: ne.value,
|
|
3197
3197
|
title: z.value,
|
|
3198
3198
|
size: "lg",
|
|
@@ -3258,7 +3258,7 @@ const ei = /* @__PURE__ */ Te(Js, [["render", Qs]]), ti = {}, li = {
|
|
|
3258
3258
|
};
|
|
3259
3259
|
function ai(e, l) {
|
|
3260
3260
|
return i(), m("svg", li, l[0] || (l[0] = [
|
|
3261
|
-
|
|
3261
|
+
Ol('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M12 5m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"></path><path d="M19 8m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"></path><path d="M5 11m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"></path><path d="M15 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"></path><path d="M6.5 9.5l3.5 -3"></path><path d="M14 5.5l3 1.5"></path><path d="M18.5 10l-2.5 7"></path><path d="M13.5 17.5l-7 -5"></path>', 9)
|
|
3262
3262
|
]));
|
|
3263
3263
|
}
|
|
3264
3264
|
const ni = /* @__PURE__ */ Te(ti, [["render", ai]]), oi = {}, ri = {
|
|
@@ -3273,7 +3273,7 @@ const ni = /* @__PURE__ */ Te(ti, [["render", ai]]), oi = {}, ri = {
|
|
|
3273
3273
|
};
|
|
3274
3274
|
function si(e, l) {
|
|
3275
3275
|
return i(), m("svg", ri, l[0] || (l[0] = [
|
|
3276
|
-
|
|
3276
|
+
Ol('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M8 18a2 2 0 1 0 -4 0a2 2 0 0 0 4 0z"></path><path d="M20 18a2 2 0 1 0 -4 0a2 2 0 0 0 4 0z"></path><path d="M20 6a2 2 0 1 0 -4 0a2 2 0 0 0 4 0z"></path><path d="M8 6a2 2 0 1 0 -4 0a2 2 0 0 0 4 0z"></path><path d="M6 8v8"></path><path d="M18 16v-8"></path><path d="M8 6h8"></path><path d="M16 18h-8"></path>', 9)
|
|
3277
3277
|
]));
|
|
3278
3278
|
}
|
|
3279
3279
|
const ii = /* @__PURE__ */ Te(oi, [["render", si]]), ui = { class: "bg-white/30 p-1 rounded-md shadow w-fit" }, di = { class: "flex gap-2" }, ci = ["onClick", "title"], fi = ["src"], pi = /* @__PURE__ */ oe({
|
|
@@ -4358,7 +4358,7 @@ function xu(e, l, t) {
|
|
|
4358
4358
|
return;
|
|
4359
4359
|
}
|
|
4360
4360
|
const h = o[o.length - 1];
|
|
4361
|
-
if (h &&
|
|
4361
|
+
if (h && Xl(h, M.point)) {
|
|
4362
4362
|
n.push({ line: C, message: "Послідовні точки не повинні дублюватися." });
|
|
4363
4363
|
return;
|
|
4364
4364
|
}
|
|
@@ -4377,7 +4377,7 @@ function xu(e, l, t) {
|
|
|
4377
4377
|
};
|
|
4378
4378
|
const s = [...o];
|
|
4379
4379
|
let d = !1;
|
|
4380
|
-
return
|
|
4380
|
+
return Xl(s[0], s[s.length - 1]) || (s.push(s[0]), d = !0), $u(s) ? {
|
|
4381
4381
|
ok: !1,
|
|
4382
4382
|
errors: [
|
|
4383
4383
|
{
|
|
@@ -4441,12 +4441,12 @@ function ku(e, l, t) {
|
|
|
4441
4441
|
ok: !1,
|
|
4442
4442
|
errors: [{ line: l, message: "У рядку виявлено зайві символи або значення." }]
|
|
4443
4443
|
};
|
|
4444
|
-
const o =
|
|
4444
|
+
const o = Jl(a[0], l, t === "lat-lon" ? "lat" : "lon"), r = Jl(a[1], l, t === "lat-lon" ? "lon" : "lat"), s = [];
|
|
4445
4445
|
if (o.ok || s.push(o.error), r.ok || s.push(r.error), s.length) return { ok: !1, errors: s };
|
|
4446
4446
|
const d = t === "lat-lon" ? o.value : r.value;
|
|
4447
4447
|
return { ok: !0, point: [t === "lat-lon" ? r.value : o.value, d] };
|
|
4448
4448
|
}
|
|
4449
|
-
function
|
|
4449
|
+
function Jl(e, l, t) {
|
|
4450
4450
|
const a = Number(e[1]), n = Number(e[2]), o = Number(e[3]), r = String(e[4]).toUpperCase();
|
|
4451
4451
|
if (!Number.isFinite(a) || !Number.isFinite(n) || !Number.isFinite(o))
|
|
4452
4452
|
return { ok: !1, error: { line: l, message: "Невірні значення DMS-координат." } };
|
|
@@ -4485,7 +4485,7 @@ function Xl(e, l, t) {
|
|
|
4485
4485
|
function _u(e) {
|
|
4486
4486
|
return `${e[0].toFixed(12)}:${e[1].toFixed(12)}`;
|
|
4487
4487
|
}
|
|
4488
|
-
function
|
|
4488
|
+
function Xl(e, l) {
|
|
4489
4489
|
return Math.abs(e[0] - l[0]) < jt && Math.abs(e[1] - l[1]) < jt;
|
|
4490
4490
|
}
|
|
4491
4491
|
function $u(e) {
|
|
@@ -4590,7 +4590,7 @@ const Su = {
|
|
|
4590
4590
|
Array.isArray(A.value) && A.value.length === 2 ? [...A.value] : x
|
|
4591
4591
|
), ee = V(
|
|
4592
4592
|
typeof E.value == "number" ? E.value : D
|
|
4593
|
-
), z = V(t.modelValue), ne = V(null), W = V(null), P = V([]), Z = V(!1), re = V(!1), ge = V([]), we =
|
|
4593
|
+
), z = V(t.modelValue), ne = V(null), W = V(null), P = V([]), Z = V(!1), re = V(!1), ge = V([]), we = V({
|
|
4594
4594
|
coordinates: "",
|
|
4595
4595
|
format: "decimal",
|
|
4596
4596
|
order: "lat-lon"
|
|
@@ -4620,7 +4620,7 @@ const Su = {
|
|
|
4620
4620
|
}
|
|
4621
4621
|
};
|
|
4622
4622
|
let Be = !1;
|
|
4623
|
-
const G =
|
|
4623
|
+
const G = ia({}), de = V([]), be = _(
|
|
4624
4624
|
() => de.value.map((p) => G[p]).filter(Boolean)
|
|
4625
4625
|
), ke = V(null), Me = _(() => ke.value?.entries ?? []), We = _(() => {
|
|
4626
4626
|
if (ke.value)
|
|
@@ -5418,7 +5418,7 @@ const Su = {
|
|
|
5418
5418
|
function Aa() {
|
|
5419
5419
|
o.value || (Z.value = !Z.value);
|
|
5420
5420
|
}
|
|
5421
|
-
function
|
|
5421
|
+
function ql(p) {
|
|
5422
5422
|
if (!Z.value) return;
|
|
5423
5423
|
const b = W.value;
|
|
5424
5424
|
b && !b.contains(p.target) && (Z.value = !1);
|
|
@@ -5435,9 +5435,9 @@ const Su = {
|
|
|
5435
5435
|
function Ta() {
|
|
5436
5436
|
if (o.value || !S) return;
|
|
5437
5437
|
const p = xu(
|
|
5438
|
-
we.coordinates ?? "",
|
|
5439
|
-
we.format || "decimal",
|
|
5440
|
-
we.order || "lat-lon"
|
|
5438
|
+
we.value.coordinates ?? "",
|
|
5439
|
+
we.value.format || "decimal",
|
|
5440
|
+
we.value.order || "lat-lon"
|
|
5441
5441
|
);
|
|
5442
5442
|
if (!p.ok) {
|
|
5443
5443
|
ge.value = p.errors, Ba(p.errors);
|
|
@@ -5490,7 +5490,7 @@ const Su = {
|
|
|
5490
5490
|
F.href = L, F.download = "data.geojson", F.click(), URL.revokeObjectURL(L);
|
|
5491
5491
|
}
|
|
5492
5492
|
return qe(async () => {
|
|
5493
|
-
if (window.addEventListener("click",
|
|
5493
|
+
if (window.addEventListener("click", ql, !0), !s.value) return;
|
|
5494
5494
|
const p = await ae();
|
|
5495
5495
|
me = p.maplibregl, Ae = p.MapboxDraw;
|
|
5496
5496
|
const b = Ct();
|
|
@@ -5571,7 +5571,7 @@ const Su = {
|
|
|
5571
5571
|
B && (ee.value = B.getZoom());
|
|
5572
5572
|
}));
|
|
5573
5573
|
}), el(() => {
|
|
5574
|
-
h.isRulerActive.value && h.closeRuler(), window.removeEventListener("click",
|
|
5574
|
+
h.isRulerActive.value && h.closeRuler(), window.removeEventListener("click", ql, !0), Object.values(G).forEach((p) => {
|
|
5575
5575
|
B && Ft(p);
|
|
5576
5576
|
}), Xe(), B?.remove && B.remove(), B = null, S = null, C.value = null;
|
|
5577
5577
|
}), ue(
|
|
@@ -5749,7 +5749,7 @@ const Su = {
|
|
|
5749
5749
|
}, null, 40, Iu)
|
|
5750
5750
|
])) : j("", !0)
|
|
5751
5751
|
])) : j("", !0),
|
|
5752
|
-
N(T(
|
|
5752
|
+
N(T(Rl), {
|
|
5753
5753
|
visible: re.value,
|
|
5754
5754
|
"onUpdate:visible": b[1] || (b[1] = (L) => re.value = L),
|
|
5755
5755
|
title: "Імпорт координат полігону",
|
|
@@ -5759,8 +5759,8 @@ const Su = {
|
|
|
5759
5759
|
default: Ge(() => [
|
|
5760
5760
|
N(At, {
|
|
5761
5761
|
schema: ot,
|
|
5762
|
-
values: we,
|
|
5763
|
-
"onUpdate:values": b[0] || (b[0] = (L) => we = L)
|
|
5762
|
+
values: we.value,
|
|
5763
|
+
"onUpdate:values": b[0] || (b[0] = (L) => we.value = L)
|
|
5764
5764
|
}, null, 8, ["values"]),
|
|
5765
5765
|
u("div", Eu, [
|
|
5766
5766
|
u("button", {
|
|
@@ -5934,7 +5934,7 @@ const Su = {
|
|
|
5934
5934
|
], 2)
|
|
5935
5935
|
], 8, ["disabled"]));
|
|
5936
5936
|
}
|
|
5937
|
-
}), ud = /* @__PURE__ */ Te(id, [["__scopeId", "data-v-
|
|
5937
|
+
}), ud = /* @__PURE__ */ Te(id, [["__scopeId", "data-v-ab3ec4b5"]]), dd = ["data-focus"], cd = { class: "flex items-center" }, fd = { class: "overflow-hidden text-ellipsis whitespace-nowrap rounded-sm text-[#333] text-[85%] px-0.5 py-[3px] pl-1.5 box-border" }, pd = ["onClick", "aria-label"], md = {
|
|
5938
5938
|
key: 0,
|
|
5939
5939
|
class: "absolute text-gray-500 truncate pl-2"
|
|
5940
5940
|
}, vd = { class: "flex-1 min-w-[2px]" }, gd = ["placeholder"], hd = { class: "flex items-center shrink-0" }, yd = ["disabled"], bd = /* @__PURE__ */ oe({
|
|
@@ -6976,7 +6976,7 @@ const Su = {
|
|
|
6976
6976
|
], 2)
|
|
6977
6977
|
], 10, fc),
|
|
6978
6978
|
(i(), pe(Qt, { to: "body" }, [
|
|
6979
|
-
N(
|
|
6979
|
+
N(Pl, { name: "fade" }, {
|
|
6980
6980
|
default: Ge(() => [
|
|
6981
6981
|
C.value ? (i(), m("div", {
|
|
6982
6982
|
key: 0,
|
|
@@ -7680,17 +7680,17 @@ const Su = {
|
|
|
7680
7680
|
}
|
|
7681
7681
|
}), ef = {
|
|
7682
7682
|
VsInputText: Zt,
|
|
7683
|
-
VsInputRadio:
|
|
7683
|
+
VsInputRadio: Kl,
|
|
7684
7684
|
"vs-input-text": Zt,
|
|
7685
7685
|
"vs-input-password": Mn,
|
|
7686
7686
|
"vs-input-textarea": vs,
|
|
7687
7687
|
"vs-input-richtext": gs,
|
|
7688
7688
|
"vs-input-mask": ma,
|
|
7689
7689
|
"vs-input-number": En,
|
|
7690
|
-
"vs-input-radio":
|
|
7691
|
-
"vs-input-select":
|
|
7690
|
+
"vs-input-radio": Kl,
|
|
7691
|
+
"vs-input-select": Zl,
|
|
7692
7692
|
"vs-input-switcher": pa,
|
|
7693
|
-
"vs-input-static":
|
|
7693
|
+
"vs-input-static": Wl,
|
|
7694
7694
|
"vs-input-container": Hr,
|
|
7695
7695
|
"vs-input-date": ho,
|
|
7696
7696
|
"vs-input-checkbox": vo,
|
|
@@ -7698,7 +7698,7 @@ const Su = {
|
|
|
7698
7698
|
"vs-input-file2": Dl,
|
|
7699
7699
|
file2: Dl,
|
|
7700
7700
|
File2: Dl,
|
|
7701
|
-
"vs-input-html":
|
|
7701
|
+
"vs-input-html": Wl,
|
|
7702
7702
|
"vs-input-email": va,
|
|
7703
7703
|
"vs-input-tel": ga,
|
|
7704
7704
|
"vs-input-datatable": Zs,
|
|
@@ -7713,7 +7713,7 @@ const Su = {
|
|
|
7713
7713
|
"vs-input-text[]": Qd,
|
|
7714
7714
|
"vs-input-range": sc,
|
|
7715
7715
|
"vs-input-color": ac,
|
|
7716
|
-
"vs-input-native-select":
|
|
7716
|
+
"vs-input-native-select": Zl,
|
|
7717
7717
|
VsInputArraySelect: Ml,
|
|
7718
7718
|
"vs-input-array": cc,
|
|
7719
7719
|
"vs-input-array-select": Ml,
|
|
@@ -8022,7 +8022,7 @@ const Su = {
|
|
|
8022
8022
|
tel: "Неправильний телефон",
|
|
8023
8023
|
minlength: (e) => `Мінімальна довжина — ${e} символів`,
|
|
8024
8024
|
maxlength: (e) => `Максимальна довжина — ${e} символів`
|
|
8025
|
-
}, df = (e) => typeof e == "string" ? e.trim() ? !1 : Lt.required : Array.isArray(e) ? e.map((t) => typeof t == "string" ? t.trim() : t).filter((t) => t != null && t !== "").length ? !1 : Lt.required : typeof e == "number" ? Number
|
|
8025
|
+
}, df = (e) => typeof e == "string" ? e.trim() ? !1 : Lt.required : Array.isArray(e) ? e.map((t) => typeof t == "string" ? t.trim() : t).filter((t) => t != null && t !== "").length ? !1 : Lt.required : typeof e == "number" ? Number?.isNaN(e) ? Lt?.required : !1 : e ? !1 : Lt.required, cf = (e) => {
|
|
8026
8026
|
const l = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
8027
8027
|
return e ? l.test(e) ? !1 : Lt.email : !1;
|
|
8028
8028
|
}, ff = (e) => {
|
|
@@ -8074,16 +8074,16 @@ const Su = {
|
|
|
8074
8074
|
dropzone: "file"
|
|
8075
8075
|
// mask: 'text',
|
|
8076
8076
|
};
|
|
8077
|
-
function
|
|
8077
|
+
function Ql(e) {
|
|
8078
8078
|
const l = e?.toLowerCase();
|
|
8079
8079
|
return yf[l] || l;
|
|
8080
8080
|
}
|
|
8081
|
-
function
|
|
8081
|
+
function El(e, l = !1) {
|
|
8082
8082
|
if (Array.isArray(e)) {
|
|
8083
8083
|
const a = [];
|
|
8084
8084
|
return e.forEach((n) => {
|
|
8085
8085
|
const o = { ...n };
|
|
8086
|
-
o.name = (n.name || n.id || n.key || "").toString(), o.type =
|
|
8086
|
+
o.name = (n.name || n.id || n.key || "").toString(), o.type = Ql(n.type), o.label = n.label || n.ua, o.rules = n.rules || n.validators, o.type === "email" && !o.rules && (o.rules = ["email"]), n.data && (o.api = `/api/suggest/${n.data}`), o.disabled = o.disabled ?? l, Array.isArray(o.schema) && (o.schema = El(o.schema, o.disabled)), a.push(o);
|
|
8087
8087
|
}), a;
|
|
8088
8088
|
}
|
|
8089
8089
|
const t = [];
|
|
@@ -8091,16 +8091,16 @@ function Fl(e, l = !1) {
|
|
|
8091
8091
|
const n = {
|
|
8092
8092
|
name: a[0],
|
|
8093
8093
|
...a[1],
|
|
8094
|
-
type:
|
|
8094
|
+
type: Ql(a[1].type),
|
|
8095
8095
|
label: a[1].label || a[1].ua,
|
|
8096
8096
|
rules: a[1].rules || a[1].validators,
|
|
8097
8097
|
disabled: a[1].disabled ?? l
|
|
8098
8098
|
};
|
|
8099
|
-
n.type === "email" && !n.rules && (n.rules = ["email"]), a[1].type?.includes("list") && (n.multiple = !0), !n.api && a[1].data && (n.api = `/api/suggest/${a[1].data}`), Array.isArray(n.schema) && (n.schema =
|
|
8099
|
+
n.type === "email" && !n.rules && (n.rules = ["email"]), a[1].type?.includes("list") && (n.multiple = !0), !n.api && a[1].data && (n.api = `/api/suggest/${a[1].data}`), Array.isArray(n.schema) && (n.schema = El(n.schema, n.disabled)), t.push(n);
|
|
8100
8100
|
}), t;
|
|
8101
8101
|
}
|
|
8102
8102
|
function bf(e, l, t = !1) {
|
|
8103
|
-
const a = _(() =>
|
|
8103
|
+
const a = _(() => El(
|
|
8104
8104
|
(Array.isArray(l), l),
|
|
8105
8105
|
typeof t == "boolean" ? t : t.value
|
|
8106
8106
|
)), n = V({});
|
|
@@ -8438,20 +8438,20 @@ function tl(e) {
|
|
|
8438
8438
|
const l = qt(e);
|
|
8439
8439
|
return l.setHours(23, 59, 59, 999), l;
|
|
8440
8440
|
}
|
|
8441
|
-
function
|
|
8441
|
+
function Nl(e) {
|
|
8442
8442
|
return Nt(new Date(e.getFullYear(), e.getMonth(), 1));
|
|
8443
8443
|
}
|
|
8444
|
-
function
|
|
8444
|
+
function Ul(e) {
|
|
8445
8445
|
return tl(new Date(e.getFullYear(), e.getMonth() + 1, 0));
|
|
8446
8446
|
}
|
|
8447
|
-
function
|
|
8447
|
+
function zl(e, l) {
|
|
8448
8448
|
const t = new Date(e), a = t.getDate();
|
|
8449
8449
|
t.setDate(1), t.setMonth(t.getMonth() + l);
|
|
8450
8450
|
const n = new Date(t.getFullYear(), t.getMonth() + 1, 0).getDate();
|
|
8451
8451
|
return t.setDate(Math.min(a, n)), t;
|
|
8452
8452
|
}
|
|
8453
8453
|
function Ef(e, l) {
|
|
8454
|
-
return
|
|
8454
|
+
return zl(e, -1);
|
|
8455
8455
|
}
|
|
8456
8456
|
function $l(e, l) {
|
|
8457
8457
|
const t = new Date(e);
|
|
@@ -8485,10 +8485,10 @@ function Bf(e) {
|
|
|
8485
8485
|
}
|
|
8486
8486
|
function Pf(e) {
|
|
8487
8487
|
const l = [];
|
|
8488
|
-
let t =
|
|
8489
|
-
const a =
|
|
8488
|
+
let t = Nl(e.start);
|
|
8489
|
+
const a = Ul(e.end);
|
|
8490
8490
|
for (; t <= a; )
|
|
8491
|
-
l.push(qt(t)), t =
|
|
8491
|
+
l.push(qt(t)), t = zl(t, 1);
|
|
8492
8492
|
return l;
|
|
8493
8493
|
}
|
|
8494
8494
|
function Of(e) {
|
|
@@ -8499,19 +8499,19 @@ function Of(e) {
|
|
|
8499
8499
|
l.push(qt(t)), t = $l(t, 1);
|
|
8500
8500
|
return l;
|
|
8501
8501
|
}
|
|
8502
|
-
function
|
|
8502
|
+
function Hl(e, l = 1) {
|
|
8503
8503
|
const t = Nt(e), a = (t.getDay() - l + 7) % 7;
|
|
8504
8504
|
return t.setDate(t.getDate() - a), t;
|
|
8505
8505
|
}
|
|
8506
8506
|
function jf(e, l = 1) {
|
|
8507
|
-
const t =
|
|
8507
|
+
const t = Hl(e, l);
|
|
8508
8508
|
return t.setDate(t.getDate() + 6), tl(t);
|
|
8509
8509
|
}
|
|
8510
8510
|
function Rf(e, l, t = 0) {
|
|
8511
|
-
const a =
|
|
8511
|
+
const a = Hl(e, t), n = (l - t + 7) % 7;
|
|
8512
8512
|
return a.setDate(a.getDate() + n), a;
|
|
8513
8513
|
}
|
|
8514
|
-
const xl = (e, l) => !!e && !!l && e.getFullYear() === l.getFullYear() && e.getMonth() === l.getMonth() && e.getDate() === l.getDate(),
|
|
8514
|
+
const xl = (e, l) => !!e && !!l && e.getFullYear() === l.getFullYear() && e.getMonth() === l.getMonth() && e.getDate() === l.getDate(), Fl = (e, l) => !!e && !!l && e.getFullYear() === l.getFullYear() && e.getMonth() === l.getMonth(), ea = (e, l) => !!e && !!l && e.getFullYear() === l.getFullYear(), Ca = (e, l) => !!e && !!l && xl(e, l) && e.getHours() === l.getHours(), Nf = (e, l) => !!e && !!l && Ca(e, l) && e.getMinutes() === l.getMinutes();
|
|
8515
8515
|
function Uf(e, l) {
|
|
8516
8516
|
const t = e.getTime();
|
|
8517
8517
|
return t >= l.start.getTime() && t <= l.end.getTime();
|
|
@@ -8527,20 +8527,20 @@ function Hf(e) {
|
|
|
8527
8527
|
if (l.length)
|
|
8528
8528
|
return l.reduce((t, a) => t.getTime() <= a.getTime() ? t : a);
|
|
8529
8529
|
}
|
|
8530
|
-
function
|
|
8530
|
+
function ta(e, l) {
|
|
8531
8531
|
const t = qt(e);
|
|
8532
8532
|
return typeof l.year == "number" && t.setFullYear(l.year), typeof l.month == "number" && t.setMonth(l.month), typeof l.date == "number" && t.setDate(l.date), typeof l.hours == "number" && t.setHours(l.hours), typeof l.minutes == "number" && t.setMinutes(l.minutes), typeof l.seconds == "number" && t.setSeconds(l.seconds), typeof l.milliseconds == "number" && t.setMilliseconds(l.milliseconds), t;
|
|
8533
8533
|
}
|
|
8534
8534
|
const yl = (e, l = 2) => String(e).padStart(l, "0");
|
|
8535
|
-
function
|
|
8535
|
+
function la(e, l) {
|
|
8536
8536
|
return l === "wide" ? Mf[e] : Af[e];
|
|
8537
8537
|
}
|
|
8538
8538
|
function qf(e) {
|
|
8539
8539
|
return If[e];
|
|
8540
8540
|
}
|
|
8541
8541
|
const Wf = [
|
|
8542
|
-
{ token: "LLLL", format: (e) =>
|
|
8543
|
-
{ token: "LLL", format: (e) =>
|
|
8542
|
+
{ token: "LLLL", format: (e) => la(e.getMonth(), "wide") },
|
|
8543
|
+
{ token: "LLL", format: (e) => la(e.getMonth(), "abbreviated") },
|
|
8544
8544
|
{ token: "EE", format: (e) => qf(e.getDay()) },
|
|
8545
8545
|
{ token: "yyyy", format: (e) => String(e.getFullYear()) },
|
|
8546
8546
|
{ token: "MM", format: (e) => yl(e.getMonth() + 1) },
|
|
@@ -8565,7 +8565,7 @@ const Kf = {
|
|
|
8565
8565
|
"MM.yyyy": /^(\d{2})\.(\d{4})$/,
|
|
8566
8566
|
yyyy: /^(\d{4})$/
|
|
8567
8567
|
};
|
|
8568
|
-
function
|
|
8568
|
+
function aa(e, l) {
|
|
8569
8569
|
const t = Kf[l];
|
|
8570
8570
|
if (!t) {
|
|
8571
8571
|
const n = new Date(e);
|
|
@@ -8818,7 +8818,7 @@ const rp = /* @__PURE__ */ Te(np, [["render", op]]), sp = oe({
|
|
|
8818
8818
|
setup(e, { emit: l }) {
|
|
8819
8819
|
const t = _(() => _a(e.pageDate)), a = _(() => $a(e.pageDate)), n = _(
|
|
8820
8820
|
() => (M) => kl(M, e.format)
|
|
8821
|
-
), o = (M, h, c) => !h && !c ? !0 : !(h && Jt(M,
|
|
8821
|
+
), o = (M, h, c) => !h && !c ? !0 : !(h && Jt(M, Nl(h)) || c && Xt(M, Ul(c))), r = _(() => Pf({
|
|
8822
8822
|
start: t.value,
|
|
8823
8823
|
end: a.value
|
|
8824
8824
|
}).map(
|
|
@@ -8826,13 +8826,13 @@ const rp = /* @__PURE__ */ Te(np, [["render", op]]), sp = oe({
|
|
|
8826
8826
|
value: M,
|
|
8827
8827
|
display: n.value(M),
|
|
8828
8828
|
key: n.value(M),
|
|
8829
|
-
selected: !!e.selected &&
|
|
8829
|
+
selected: !!e.selected && Fl(e.selected, M),
|
|
8830
8830
|
disabled: !o(M, e.lowerLimit, e.upperLimit)
|
|
8831
8831
|
})
|
|
8832
8832
|
)), s = _(() => pt(t.value)), d = _(
|
|
8833
|
-
() => e.lowerLimit && (
|
|
8833
|
+
() => e.lowerLimit && (ea(e.lowerLimit, e.pageDate) || Jt(e.pageDate, e.lowerLimit))
|
|
8834
8834
|
), f = _(
|
|
8835
|
-
() => e.upperLimit && (
|
|
8835
|
+
() => e.upperLimit && (ea(e.upperLimit, e.pageDate) || Xt(e.pageDate, e.upperLimit))
|
|
8836
8836
|
);
|
|
8837
8837
|
return {
|
|
8838
8838
|
months: r,
|
|
@@ -8928,11 +8928,11 @@ const up = /* @__PURE__ */ Te(sp, [["render", ip]]), dp = oe({
|
|
|
8928
8928
|
setup(e, { emit: l }) {
|
|
8929
8929
|
const t = _(
|
|
8930
8930
|
() => (g) => ($) => kl($, g)
|
|
8931
|
-
), a = _(() =>
|
|
8931
|
+
), a = _(() => Nl(e.pageDate)), n = _(() => Ul(e.pageDate)), o = _(() => ({
|
|
8932
8932
|
start: a.value,
|
|
8933
8933
|
end: n.value
|
|
8934
8934
|
})), r = _(() => ({
|
|
8935
|
-
start:
|
|
8935
|
+
start: Hl(a.value, e.weekStartsOn),
|
|
8936
8936
|
end: jf(n.value, e.weekStartsOn)
|
|
8937
8937
|
})), s = _(() => e.customWeekdays?.length === 7 ? e.customWeekdays : null), d = _(() => {
|
|
8938
8938
|
const g = e.weekStartsOn, $ = s.value;
|
|
@@ -8958,9 +8958,9 @@ const up = /* @__PURE__ */ Te(sp, [["render", ip]]), dp = oe({
|
|
|
8958
8958
|
})
|
|
8959
8959
|
);
|
|
8960
8960
|
}), C = _(() => t.value(e.headingFormat)(e.pageDate)), M = _(
|
|
8961
|
-
() => e.lowerLimit && (
|
|
8961
|
+
() => e.lowerLimit && (Fl(e.lowerLimit, e.pageDate) || Jt(e.pageDate, e.lowerLimit))
|
|
8962
8962
|
), h = _(
|
|
8963
|
-
() => e.upperLimit && (
|
|
8963
|
+
() => e.upperLimit && (Fl(e.upperLimit, e.pageDate) || Xt(e.pageDate, e.upperLimit))
|
|
8964
8964
|
);
|
|
8965
8965
|
return {
|
|
8966
8966
|
weekDays: d,
|
|
@@ -8969,7 +8969,7 @@ const up = /* @__PURE__ */ Te(sp, [["render", ip]]), dp = oe({
|
|
|
8969
8969
|
leftDisabled: M,
|
|
8970
8970
|
rightDisabled: h,
|
|
8971
8971
|
previousPage: () => l("update:pageDate", Ef(e.pageDate)),
|
|
8972
|
-
nextPage: () => l("update:pageDate",
|
|
8972
|
+
nextPage: () => l("update:pageDate", zl(e.pageDate, 1))
|
|
8973
8973
|
};
|
|
8974
8974
|
}
|
|
8975
8975
|
});
|
|
@@ -8999,7 +8999,7 @@ function cp(e, l, t, a, n, o) {
|
|
|
8999
8999
|
}, 8, ["leftDisabled", "rightDisabled", "items", "onLeft", "onRight"]);
|
|
9000
9000
|
}
|
|
9001
9001
|
const fp = /* @__PURE__ */ Te(dp, [["render", cp]]);
|
|
9002
|
-
function
|
|
9002
|
+
function na(e, l) {
|
|
9003
9003
|
const t = e.getBoundingClientRect(), a = {
|
|
9004
9004
|
height: e.clientHeight,
|
|
9005
9005
|
width: e.clientWidth
|
|
@@ -9046,7 +9046,7 @@ const pp = oe({
|
|
|
9046
9046
|
);
|
|
9047
9047
|
const s = _(() => [...Array(24).keys()].map((h) => ({
|
|
9048
9048
|
value: h,
|
|
9049
|
-
date:
|
|
9049
|
+
date: ta(new Date(n.value.getTime()), {
|
|
9050
9050
|
hours: h,
|
|
9051
9051
|
minutes: r.value,
|
|
9052
9052
|
seconds: 0
|
|
@@ -9055,7 +9055,7 @@ const pp = oe({
|
|
|
9055
9055
|
ref: V(null)
|
|
9056
9056
|
}))), d = _(() => [...Array(60).keys()].map((h) => ({
|
|
9057
9057
|
value: h,
|
|
9058
|
-
date:
|
|
9058
|
+
date: ta(new Date(n.value.getTime()), {
|
|
9059
9059
|
hours: o.value,
|
|
9060
9060
|
minutes: h,
|
|
9061
9061
|
seconds: 0
|
|
@@ -9070,7 +9070,7 @@ const pp = oe({
|
|
|
9070
9070
|
), c = d.value.find(
|
|
9071
9071
|
(v) => v.ref.value?.classList?.contains("selected") ?? !1
|
|
9072
9072
|
);
|
|
9073
|
-
h && c && (
|
|
9073
|
+
h && c && (na(t.value, h.ref.value), na(a.value, c.ref.value));
|
|
9074
9074
|
};
|
|
9075
9075
|
return ue(
|
|
9076
9076
|
() => e.visible,
|
|
@@ -9347,7 +9347,7 @@ const bp = /* @__PURE__ */ Te(pp, [["render", yp], ["__scopeId", "data-v-610b89e
|
|
|
9347
9347
|
};
|
|
9348
9348
|
Yt(() => {
|
|
9349
9349
|
if (!s.value) return;
|
|
9350
|
-
const W =
|
|
9350
|
+
const W = aa(s.value, e.inputFormat);
|
|
9351
9351
|
W && (n.value = W);
|
|
9352
9352
|
}), Yt(() => {
|
|
9353
9353
|
s.value = e.modelValue && He(e.modelValue) ? kl(e.modelValue, e.inputFormat) : "";
|
|
@@ -9392,7 +9392,7 @@ const bp = /* @__PURE__ */ Te(pp, [["render", yp], ["__scopeId", "data-v-610b89e
|
|
|
9392
9392
|
13
|
|
9393
9393
|
// enter
|
|
9394
9394
|
].includes(P) && o.value.blur(), e.typeable) {
|
|
9395
|
-
const re =
|
|
9395
|
+
const re = aa(o.value.value, e.inputFormat);
|
|
9396
9396
|
re && s.value === kl(re, e.inputFormat) && (s.value = o.value.value, l("update:modelValue", re));
|
|
9397
9397
|
}
|
|
9398
9398
|
}, R = _(() => {
|
|
@@ -9723,7 +9723,7 @@ const Sp = /* @__PURE__ */ Te(wp, [["render", Cp]]), Vp = /* @__PURE__ */ oe({
|
|
|
9723
9723
|
richtext: Ep
|
|
9724
9724
|
}
|
|
9725
9725
|
}
|
|
9726
|
-
},
|
|
9726
|
+
}, oa = (e = { mode: "edit", schema: null }) => new Promise((l) => {
|
|
9727
9727
|
const { close: t } = rn({
|
|
9728
9728
|
title: e.mode === "add" ? "Додати" : "Редагувати",
|
|
9729
9729
|
template: "",
|
|
@@ -9744,8 +9744,8 @@ const Sp = /* @__PURE__ */ Te(wp, [["render", Cp]]), Vp = /* @__PURE__ */ oe({
|
|
|
9744
9744
|
});
|
|
9745
9745
|
At.install = function(l) {
|
|
9746
9746
|
l.component("VForm", At), Object.assign(l.config.globalProperties, {
|
|
9747
|
-
$form:
|
|
9748
|
-
}), l.provide("form",
|
|
9747
|
+
$form: oa
|
|
9748
|
+
}), l.provide("form", oa), window.v3plugin || (window.v3plugin = {});
|
|
9749
9749
|
};
|
|
9750
9750
|
export {
|
|
9751
9751
|
bd as A,
|
|
@@ -9764,19 +9764,19 @@ export {
|
|
|
9764
9764
|
Zt as d,
|
|
9765
9765
|
En as e,
|
|
9766
9766
|
pa as f,
|
|
9767
|
-
|
|
9767
|
+
Wl as g,
|
|
9768
9768
|
ma as h,
|
|
9769
9769
|
ef as i,
|
|
9770
9770
|
va as j,
|
|
9771
9771
|
ga as k,
|
|
9772
9772
|
sc as l,
|
|
9773
9773
|
ac as m,
|
|
9774
|
-
|
|
9774
|
+
Kl as n,
|
|
9775
9775
|
Ao as o,
|
|
9776
9776
|
br as p,
|
|
9777
9777
|
Hr as q,
|
|
9778
9778
|
Op as r,
|
|
9779
|
-
|
|
9779
|
+
Zl as s,
|
|
9780
9780
|
vs as t,
|
|
9781
9781
|
gs as u,
|
|
9782
9782
|
Pp as v,
|