@opengis/form 0.0.30 → 0.0.32
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/components/inputs/index.d.ts +1 -0
- package/dist/components/inputs/index.d.ts.map +1 -1
- package/dist/components/inputs/vs-input-select.vue.d.ts +1 -0
- package/dist/components/inputs/vs-input-select.vue.d.ts.map +1 -1
- package/dist/index.js +153 -153
- package/dist/index.umd.cjs +3 -3
- package/package.json +67 -67
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as D, ref as x, onMounted as xe, onUnmounted as Ne, createElementBlock as c, openBlock as i, normalizeClass as V, createCommentVNode as F, renderSlot as $e, createElementVNode as l, toDisplayString as T, normalizeProps as qe, guardReactiveProps as Ge, createTextVNode as fe, computed as A, mergeModels as Z, useModel as W, withDirectives as K, unref as q, vModelText as
|
|
1
|
+
import { defineComponent as D, ref as x, onMounted as xe, onUnmounted as Ne, createElementBlock as c, openBlock as i, normalizeClass as V, createCommentVNode as F, renderSlot as $e, createElementVNode as l, toDisplayString as T, normalizeProps as qe, guardReactiveProps as Ge, createTextVNode as fe, computed as A, mergeModels as Z, useModel as W, withDirectives as K, unref as q, vModelText as ne, vModelCheckbox as ft, createVNode as B, createBlock as se, resolveDynamicComponent as Be, normalizeStyle as ye, withCtx as Le, withModifiers as ve, onBeforeUnmount as St, watch as le, createStaticVNode as ce, vModelRadio as vt, Fragment as Y, renderList as oe, mergeProps as Ee, reactive as Bt, vModelDynamic as jt, vShow as Je, inject as Me, resolveComponent as at, Transition as mt, nextTick as ze, Teleport as It, getCurrentInstance as zt, provide as st } from "vue";
|
|
2
2
|
import { notify as be, VsModal as ht, modal as Et } from "@opengis/core";
|
|
3
3
|
const Dt = {
|
|
4
4
|
key: 0,
|
|
@@ -135,7 +135,7 @@ const Zt = ["placeholder", "disabled"], Wt = /* @__PURE__ */ D({
|
|
|
135
135
|
border: "1px solid #CFD9E0"
|
|
136
136
|
}
|
|
137
137
|
}, null, 10, Zt)), [
|
|
138
|
-
[
|
|
138
|
+
[ne, n.value]
|
|
139
139
|
]);
|
|
140
140
|
}
|
|
141
141
|
}), Qt = ["placeholder", "disabled"], Ue = /* @__PURE__ */ D({
|
|
@@ -165,7 +165,7 @@ const Zt = ["placeholder", "disabled"], Wt = /* @__PURE__ */ D({
|
|
|
165
165
|
border: "1px solid #CFD9E0"
|
|
166
166
|
}
|
|
167
167
|
}, null, 10, Qt)), [
|
|
168
|
-
[
|
|
168
|
+
[ne, n.value]
|
|
169
169
|
]);
|
|
170
170
|
}
|
|
171
171
|
}), Xt = ["placeholder"], Yt = /* @__PURE__ */ D({
|
|
@@ -195,10 +195,10 @@ const Zt = ["placeholder", "disabled"], Wt = /* @__PURE__ */ D({
|
|
|
195
195
|
border: "1px solid #CFD9E0"
|
|
196
196
|
}
|
|
197
197
|
}, null, 10, Xt)), [
|
|
198
|
-
[
|
|
198
|
+
[ne, n.value]
|
|
199
199
|
]);
|
|
200
200
|
}
|
|
201
|
-
}),
|
|
201
|
+
}), N = (o, e) => {
|
|
202
202
|
const t = o.__vccOpts || o;
|
|
203
203
|
for (const [n, s] of e)
|
|
204
204
|
t[n] = s;
|
|
@@ -223,7 +223,7 @@ function ll(o, e) {
|
|
|
223
223
|
l("path", { d: "M5 12l5 5l10 -10" }, null, -1)
|
|
224
224
|
]));
|
|
225
225
|
}
|
|
226
|
-
const ol = /* @__PURE__ */
|
|
226
|
+
const ol = /* @__PURE__ */ N(el, [["render", ll]]), al = { class: "flex items-center gap-[4px]" }, sl = ["value", "id", "disabled"], nl = ["for"], rl = { class: "text-[14px] text-gray-700 flex items-center gap-x-1 ml-1 dark:text-neutral-400" }, il = /* @__PURE__ */ D({
|
|
227
227
|
__name: "vs-checkbox-default",
|
|
228
228
|
props: {
|
|
229
229
|
value: { default: "" },
|
|
@@ -355,7 +355,7 @@ const ol = /* @__PURE__ */ H(el, [["render", ll]]), al = { class: "flex items-ce
|
|
|
355
355
|
}
|
|
356
356
|
}), a = x(`vs-checkbox-${t.view || "default"}`);
|
|
357
357
|
return (d, u) => (i(), c("div", vl, [
|
|
358
|
-
(i(),
|
|
358
|
+
(i(), se(Be(a.value === "vs-checkbox-buttons" ? q(fl) : q(il)), {
|
|
359
359
|
value: d.value,
|
|
360
360
|
label: d.label,
|
|
361
361
|
info: d.option?.info,
|
|
@@ -395,7 +395,7 @@ function gl(o, e) {
|
|
|
395
395
|
l("path", { d: "M6 9l6 6l6 -6" }, null, -1)
|
|
396
396
|
]));
|
|
397
397
|
}
|
|
398
|
-
const bl = /* @__PURE__ */
|
|
398
|
+
const bl = /* @__PURE__ */ N(ml, [["render", gl]]), yl = {}, xl = {
|
|
399
399
|
xmlns: "http://www.w3.org/2000/svg",
|
|
400
400
|
viewBox: "0 0 24 24",
|
|
401
401
|
fill: "none",
|
|
@@ -416,7 +416,7 @@ function wl(o, e) {
|
|
|
416
416
|
l("path", { d: "M6 6l12 12" }, null, -1)
|
|
417
417
|
]));
|
|
418
418
|
}
|
|
419
|
-
const kl = /* @__PURE__ */
|
|
419
|
+
const kl = /* @__PURE__ */ N(yl, [["render", wl]]), _l = {}, $l = {
|
|
420
420
|
xmlns: "http://www.w3.org/2000/svg",
|
|
421
421
|
width: "24",
|
|
422
422
|
height: "24",
|
|
@@ -439,7 +439,7 @@ function Cl(o, e) {
|
|
|
439
439
|
l("path", { d: "M12 3c7.2 0 9 1.8 9 9s-1.8 9 -9 9s-9 -1.8 -9 -9s1.8 -9 9 -9z" }, null, -1)
|
|
440
440
|
]));
|
|
441
441
|
}
|
|
442
|
-
const Vl = /* @__PURE__ */
|
|
442
|
+
const Vl = /* @__PURE__ */ N(_l, [["render", Cl]]), Ml = {
|
|
443
443
|
key: 0,
|
|
444
444
|
class: "flex items-start gap-x-1"
|
|
445
445
|
}, Ll = {
|
|
@@ -555,7 +555,7 @@ const Vl = /* @__PURE__ */ H(_l, [["render", Cl]]), Ml = {
|
|
|
555
555
|
}
|
|
556
556
|
}), St(() => {
|
|
557
557
|
r?.destroy();
|
|
558
|
-
}),
|
|
558
|
+
}), le(() => e.mask, (a) => {
|
|
559
559
|
r && r.updateOptions({
|
|
560
560
|
mask: a,
|
|
561
561
|
definitions: {
|
|
@@ -564,7 +564,7 @@ const Vl = /* @__PURE__ */ H(_l, [["render", Cl]]), Ml = {
|
|
|
564
564
|
"*": /[a-zA-Z0-9]/
|
|
565
565
|
}
|
|
566
566
|
});
|
|
567
|
-
}),
|
|
567
|
+
}), le(n, (a) => {
|
|
568
568
|
r && r.unmaskedValue !== a && (r.value = a || "");
|
|
569
569
|
}), (a, d) => (i(), c("input", {
|
|
570
570
|
type: "text",
|
|
@@ -608,7 +608,7 @@ const Vl = /* @__PURE__ */ H(_l, [["render", Cl]]), Ml = {
|
|
|
608
608
|
border: "1px solid #CFD9E0"
|
|
609
609
|
}
|
|
610
610
|
}, null, 10, Dl), [
|
|
611
|
-
[
|
|
611
|
+
[ne, n.value]
|
|
612
612
|
])
|
|
613
613
|
]));
|
|
614
614
|
}
|
|
@@ -720,7 +720,7 @@ const Vl = /* @__PURE__ */ H(_l, [["render", Cl]]), Ml = {
|
|
|
720
720
|
return (s, r) => (i(), c("div", {
|
|
721
721
|
class: V([s.position === "horizontal" ? "flex items-center flex-wrap gap-2" : ""])
|
|
722
722
|
}, [
|
|
723
|
-
(i(!0), c(Y, null,
|
|
723
|
+
(i(!0), c(Y, null, oe(s.options, (a) => (i(), se(Be(n.value), Ee({
|
|
724
724
|
key: a?.id,
|
|
725
725
|
text: a.text,
|
|
726
726
|
value: a.id.toString(),
|
|
@@ -757,7 +757,7 @@ const Vl = /* @__PURE__ */ H(_l, [["render", Cl]]), Ml = {
|
|
|
757
757
|
console.error(p);
|
|
758
758
|
}
|
|
759
759
|
};
|
|
760
|
-
return
|
|
760
|
+
return le(
|
|
761
761
|
() => t.modelValue,
|
|
762
762
|
(p) => {
|
|
763
763
|
if (typeof p == "boolean" && s.value.length === 1) {
|
|
@@ -774,7 +774,7 @@ const Vl = /* @__PURE__ */ H(_l, [["render", Cl]]), Ml = {
|
|
|
774
774
|
}
|
|
775
775
|
},
|
|
776
776
|
{ immediate: !0 }
|
|
777
|
-
),
|
|
777
|
+
), le(
|
|
778
778
|
r,
|
|
779
779
|
() => {
|
|
780
780
|
if (!s.value.length) {
|
|
@@ -816,7 +816,7 @@ const Vl = /* @__PURE__ */ H(_l, [["render", Cl]]), Ml = {
|
|
|
816
816
|
}), (p, w) => (i(), c("div", {
|
|
817
817
|
class: V(["p-0 w-full gap-[6px]", [p.position === "vertical" ? "flex-col" : "", p.colSpan ? "grid" : "flex justify-start"]])
|
|
818
818
|
}, [
|
|
819
|
-
(i(!0), c(Y, null,
|
|
819
|
+
(i(!0), c(Y, null, oe(s.value, (b) => (i(), se(gt, {
|
|
820
820
|
modelValue: r[a(b)],
|
|
821
821
|
"onUpdate:modelValue": ($) => r[a(b)] = $,
|
|
822
822
|
value: a(b),
|
|
@@ -831,7 +831,7 @@ const Vl = /* @__PURE__ */ H(_l, [["render", Cl]]), Ml = {
|
|
|
831
831
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value", "class", "disabled", "label", "icon", "imgUrl", "option", "view"]))), 128))
|
|
832
832
|
], 2));
|
|
833
833
|
}
|
|
834
|
-
}), ql = /* @__PURE__ */
|
|
834
|
+
}), ql = /* @__PURE__ */ N(Nl, [["__scopeId", "data-v-91f3584a"]]), Gl = ["type", "placeholder", "disabled"], Jl = /* @__PURE__ */ D({
|
|
835
835
|
__name: "vs-input-date1",
|
|
836
836
|
props: {
|
|
837
837
|
style: { default: () => ({}) },
|
|
@@ -915,7 +915,7 @@ function Xl(o, e) {
|
|
|
915
915
|
l("path", { d: "M12 5v14" }, null, -1)
|
|
916
916
|
]));
|
|
917
917
|
}
|
|
918
|
-
const De = /* @__PURE__ */
|
|
918
|
+
const De = /* @__PURE__ */ N(Wl, [["render", Xl]]), Yl = {}, eo = {
|
|
919
919
|
xmlns: "http://www.w3.org/2000/svg",
|
|
920
920
|
class: "icon icon-tabler icon-tabler-file-text",
|
|
921
921
|
width: "44",
|
|
@@ -932,7 +932,7 @@ function to(o, e, t, n, s, r) {
|
|
|
932
932
|
ce('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M14 3v4a1 1 0 0 0 1 1h4"></path><path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"></path><line x1="9" y1="9" x2="10" y2="9"></line><line x1="9" y1="13" x2="15" y2="13"></line><line x1="9" y1="17" x2="15" y2="17"></line>', 6)
|
|
933
933
|
]));
|
|
934
934
|
}
|
|
935
|
-
const lo = /* @__PURE__ */
|
|
935
|
+
const lo = /* @__PURE__ */ N(Yl, [["render", to]]), oo = {}, ao = {
|
|
936
936
|
xmlns: "http://www.w3.org/2000/svg",
|
|
937
937
|
class: "icon icon-tabler icon-tabler-table",
|
|
938
938
|
width: "44",
|
|
@@ -972,7 +972,7 @@ function so(o, e, t, n, s, r) {
|
|
|
972
972
|
}, null, -1)
|
|
973
973
|
]));
|
|
974
974
|
}
|
|
975
|
-
const no = /* @__PURE__ */
|
|
975
|
+
const no = /* @__PURE__ */ N(oo, [["render", so]]), ro = {}, io = {
|
|
976
976
|
xmlns: "http://www.w3.org/2000/svg",
|
|
977
977
|
width: "24",
|
|
978
978
|
height: "24",
|
|
@@ -989,7 +989,7 @@ function uo(o, e, t, n, s, r) {
|
|
|
989
989
|
ce('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M14 3v4a1 1 0 0 0 1 1h4"></path><path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"></path><path d="M12 17v.01"></path><path d="M12 14a1.5 1.5 0 1 0 -1.14 -2.474"></path>', 5)
|
|
990
990
|
]));
|
|
991
991
|
}
|
|
992
|
-
const co = /* @__PURE__ */
|
|
992
|
+
const co = /* @__PURE__ */ N(ro, [["render", uo]]), po = {}, fo = {
|
|
993
993
|
xmlns: "http://www.w3.org/2000/svg",
|
|
994
994
|
class: "icon icon-tabler icon-tabler-file-zip",
|
|
995
995
|
width: "44",
|
|
@@ -1006,7 +1006,7 @@ function vo(o, e, t, n, s, r) {
|
|
|
1006
1006
|
ce('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M6 20.735a2 2 0 0 1 -1 -1.735v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2h-1"></path><path d="M11 17a2 2 0 0 1 2 2v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1v-2a2 2 0 0 1 2 -2z"></path><line x1="11" y1="5" x2="10" y2="5"></line><line x1="13" y1="7" x2="12" y2="7"></line><line x1="11" y1="9" x2="10" y2="9"></line><line x1="13" y1="11" x2="12" y2="11"></line><line x1="11" y1="13" x2="10" y2="13"></line><line x1="13" y1="15" x2="12" y2="15"></line>', 9)
|
|
1007
1007
|
]));
|
|
1008
1008
|
}
|
|
1009
|
-
const mo = /* @__PURE__ */
|
|
1009
|
+
const mo = /* @__PURE__ */ N(po, [["render", vo]]), ho = {}, go = {
|
|
1010
1010
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1011
1011
|
class: "icon icon-tabler icon-tabler-file-code",
|
|
1012
1012
|
width: "44",
|
|
@@ -1023,7 +1023,7 @@ function bo(o, e, t, n, s, r) {
|
|
|
1023
1023
|
ce('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M14 3v4a1 1 0 0 0 1 1h4"></path><path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"></path><path d="M10 13l-1 2l1 2"></path><path d="M14 13l1 2l-1 2"></path>', 5)
|
|
1024
1024
|
]));
|
|
1025
1025
|
}
|
|
1026
|
-
const yo = /* @__PURE__ */
|
|
1026
|
+
const yo = /* @__PURE__ */ N(ho, [["render", bo]]), xo = (o) => {
|
|
1027
1027
|
if (!o) return "";
|
|
1028
1028
|
const e = o?.split(".");
|
|
1029
1029
|
return e[e.length - 1];
|
|
@@ -1053,7 +1053,7 @@ function $o(o, e) {
|
|
|
1053
1053
|
ce('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M4 7l16 0"></path><path d="M10 11l0 6"></path><path d="M14 11l0 6"></path><path d="M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12"></path><path d="M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3"></path>', 6)
|
|
1054
1054
|
]));
|
|
1055
1055
|
}
|
|
1056
|
-
const Te = /* @__PURE__ */
|
|
1056
|
+
const Te = /* @__PURE__ */ N(ko, [["render", $o]]), Co = {}, Vo = {
|
|
1057
1057
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1058
1058
|
width: "24",
|
|
1059
1059
|
height: "24",
|
|
@@ -1077,7 +1077,7 @@ function Mo(o, e) {
|
|
|
1077
1077
|
l("path", { d: "M12 4l0 12" }, null, -1)
|
|
1078
1078
|
]));
|
|
1079
1079
|
}
|
|
1080
|
-
const yt = /* @__PURE__ */
|
|
1080
|
+
const yt = /* @__PURE__ */ N(Co, [["render", Mo]]), Lo = { class: "h-[120px] w-[120px] border text-gray-300 border-dashed border-[#CFD9E0] rounded-lg overflow-hidden relative item-file" }, So = { class: "absolute hidden top-0 right-0 flex items-center gap-x-2 w-full h-full justify-center" }, Bo = /* @__PURE__ */ D({
|
|
1081
1081
|
__name: "vs-input-file-list-item",
|
|
1082
1082
|
props: /* @__PURE__ */ Z({
|
|
1083
1083
|
format: {},
|
|
@@ -1099,7 +1099,7 @@ const yt = /* @__PURE__ */ H(Co, [["render", Mo]]), Lo = { class: "h-[120px] w-[
|
|
|
1099
1099
|
setup(o) {
|
|
1100
1100
|
const e = W(o, "value"), t = W(o, "item"), n = o;
|
|
1101
1101
|
return (s, r) => (i(), c("div", Lo, [
|
|
1102
|
-
(i(),
|
|
1102
|
+
(i(), se(Be(q(wo)(t.value)), {
|
|
1103
1103
|
src: t.value,
|
|
1104
1104
|
alt: "file",
|
|
1105
1105
|
class: "w-full h-full object-cover cursor-pointer",
|
|
@@ -1125,7 +1125,7 @@ const yt = /* @__PURE__ */ H(Co, [["render", Mo]]), Lo = { class: "h-[120px] w-[
|
|
|
1125
1125
|
])
|
|
1126
1126
|
]));
|
|
1127
1127
|
}
|
|
1128
|
-
}), ut = /* @__PURE__ */
|
|
1128
|
+
}), ut = /* @__PURE__ */ N(Bo, [["__scopeId", "data-v-0ca886b3"]]), jo = { class: "flex items-center gap-x-2" }, Io = {
|
|
1129
1129
|
key: 1,
|
|
1130
1130
|
class: "flex items-center flex-wrap gap-2"
|
|
1131
1131
|
}, zo = /* @__PURE__ */ D({
|
|
@@ -1165,14 +1165,14 @@ const yt = /* @__PURE__ */ H(Co, [["render", Mo]]), Lo = { class: "h-[120px] w-[
|
|
|
1165
1165
|
type: "file",
|
|
1166
1166
|
onChange: r
|
|
1167
1167
|
}, null, 544),
|
|
1168
|
-
!a.multiple && t.value ? (i(),
|
|
1168
|
+
!a.multiple && t.value ? (i(), se(ut, {
|
|
1169
1169
|
key: 0,
|
|
1170
1170
|
item: t.value,
|
|
1171
1171
|
"onUpdate:item": d[0] || (d[0] = (u) => t.value = u),
|
|
1172
1172
|
value: t.value,
|
|
1173
1173
|
"onUpdate:value": d[1] || (d[1] = (u) => t.value = u)
|
|
1174
1174
|
}, null, 8, ["item", "value"])) : a.multiple ? (i(), c("div", Io, [
|
|
1175
|
-
(i(!0), c(Y, null,
|
|
1175
|
+
(i(!0), c(Y, null, oe(t.value, (u, v) => (i(), se(ut, {
|
|
1176
1176
|
multiple: a.multiple,
|
|
1177
1177
|
key: v,
|
|
1178
1178
|
value: t.value,
|
|
@@ -1366,7 +1366,7 @@ function Xo(o, e) {
|
|
|
1366
1366
|
l("path", { d: "M12 4l0 12" }, null, -1)
|
|
1367
1367
|
]));
|
|
1368
1368
|
}
|
|
1369
|
-
const Yo = /* @__PURE__ */
|
|
1369
|
+
const Yo = /* @__PURE__ */ N(Wo, [["render", Xo]]), ea = { class: "flex flex-col widget-file xl:bg-white xl:rounded-xl dark:xl:bg-neutral-800 dark:xl:border-neutral-700 w-full" }, ta = { class: "flex w-full mb-[12px] items-center gap-x-2" }, la = { class: "font-semibold text-gray-800 dark:text-neutral-200 text-[14px]" }, oa = { class1: "ml-auto" }, aa = { class: "py-1.5 px-4 inline-flex items-center gap-x-2 text-sm font-medium rounded-lg bg-gray-100 cursor-pointer hover:bg-gray-200 text-gray-800 shadow-2xs hover:bg-gray-50 focus:outline-hidden focus:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:text-white dark:hover:bg-neutral-700 dark:focus:bg-neutral-700" }, sa = {
|
|
1370
1370
|
key: 0,
|
|
1371
1371
|
class: "py-4 mb-4 space-y-4 border-gray-200 border-y dark:border-neutral-700"
|
|
1372
1372
|
}, na = { class: "relative" }, ra = {
|
|
@@ -1420,7 +1420,7 @@ const Yo = /* @__PURE__ */ H(Wo, [["render", Xo]]), ea = { class: "flex flex-col
|
|
|
1420
1420
|
}, j = (m) => {
|
|
1421
1421
|
v.value = E(m), u.value = !0;
|
|
1422
1422
|
};
|
|
1423
|
-
return
|
|
1423
|
+
return le(s, (m) => {
|
|
1424
1424
|
m && R();
|
|
1425
1425
|
}), xe(() => {
|
|
1426
1426
|
s.value && R();
|
|
@@ -1476,7 +1476,7 @@ const Yo = /* @__PURE__ */ H(Wo, [["render", Xo]]), ea = { class: "flex flex-col
|
|
|
1476
1476
|
placeholder: "Введіть назву файлу"
|
|
1477
1477
|
}, null, 512), [
|
|
1478
1478
|
[
|
|
1479
|
-
|
|
1479
|
+
ne,
|
|
1480
1480
|
w.value,
|
|
1481
1481
|
void 0,
|
|
1482
1482
|
{ trim: !0 }
|
|
@@ -1486,7 +1486,7 @@ const Yo = /* @__PURE__ */ H(Wo, [["render", Xo]]), ea = { class: "flex flex-col
|
|
|
1486
1486
|
])
|
|
1487
1487
|
])) : F("", !0),
|
|
1488
1488
|
p.value?.length ? (i(), c("div", ra, [
|
|
1489
|
-
(i(!0), c(Y, null,
|
|
1489
|
+
(i(!0), c(Y, null, oe($.value, (O, ue) => (i(), se(Zo, {
|
|
1490
1490
|
key: ue,
|
|
1491
1491
|
prefix: m.prefix,
|
|
1492
1492
|
item: O,
|
|
@@ -1532,7 +1532,7 @@ const Yo = /* @__PURE__ */ H(Wo, [["render", Xo]]), ea = { class: "flex flex-col
|
|
|
1532
1532
|
},
|
|
1533
1533
|
setup(o) {
|
|
1534
1534
|
const e = o, t = x(e.isOpen);
|
|
1535
|
-
return
|
|
1535
|
+
return le(
|
|
1536
1536
|
() => e.isOpen,
|
|
1537
1537
|
(n) => {
|
|
1538
1538
|
t.value = n;
|
|
@@ -1558,7 +1558,7 @@ const Yo = /* @__PURE__ */ H(Wo, [["render", Xo]]), ea = { class: "flex flex-col
|
|
|
1558
1558
|
})
|
|
1559
1559
|
]));
|
|
1560
1560
|
}
|
|
1561
|
-
}), va = /* @__PURE__ */
|
|
1561
|
+
}), va = /* @__PURE__ */ N(fa, [["__scopeId", "data-v-90320b87"]]), ma = { class: "text-[16px] text-gray-900 font-medium" }, ha = { class: "grid gap-3" }, ga = /* @__PURE__ */ D({
|
|
1562
1562
|
__name: "vs-container-accordion",
|
|
1563
1563
|
props: {
|
|
1564
1564
|
title: {
|
|
@@ -1576,7 +1576,7 @@ const Yo = /* @__PURE__ */ H(Wo, [["render", Xo]]), ea = { class: "flex flex-col
|
|
|
1576
1576
|
},
|
|
1577
1577
|
setup(o) {
|
|
1578
1578
|
const e = o, t = x(e.isOpen);
|
|
1579
|
-
return
|
|
1579
|
+
return le(
|
|
1580
1580
|
() => e.isOpen,
|
|
1581
1581
|
(n) => {
|
|
1582
1582
|
t.value = n;
|
|
@@ -1604,7 +1604,7 @@ const Yo = /* @__PURE__ */ H(Wo, [["render", Xo]]), ea = { class: "flex flex-col
|
|
|
1604
1604
|
})
|
|
1605
1605
|
]));
|
|
1606
1606
|
}
|
|
1607
|
-
}), ba = /* @__PURE__ */
|
|
1607
|
+
}), ba = /* @__PURE__ */ N(ga, [["__scopeId", "data-v-590eff11"]]), ya = { class: "flex items-center justify-between" }, xa = /* @__PURE__ */ D({
|
|
1608
1608
|
__name: "vs-container-default",
|
|
1609
1609
|
props: {
|
|
1610
1610
|
title: {
|
|
@@ -1698,13 +1698,13 @@ const Yo = /* @__PURE__ */ H(Wo, [["render", Xo]]), ea = { class: "flex flex-col
|
|
|
1698
1698
|
const u = Array.isArray(d) ? d[0] : d, v = t?.value?.[u];
|
|
1699
1699
|
return xt(v, d);
|
|
1700
1700
|
})), r = A(() => wa[e.view]);
|
|
1701
|
-
return (a, d) => o.schema?.length ? (i(),
|
|
1701
|
+
return (a, d) => o.schema?.length ? (i(), se(Be(r.value), {
|
|
1702
1702
|
key: 0,
|
|
1703
1703
|
title: o.title,
|
|
1704
1704
|
style: ye(o.style)
|
|
1705
1705
|
}, {
|
|
1706
1706
|
default: Le(() => [
|
|
1707
|
-
(i(!0), c(Y, null,
|
|
1707
|
+
(i(!0), c(Y, null, oe(s.value, (u) => (i(), se(wt, Ee({
|
|
1708
1708
|
key: u.name
|
|
1709
1709
|
}, { ref_for: !0 }, u, {
|
|
1710
1710
|
item: u,
|
|
@@ -1736,7 +1736,7 @@ const Yo = /* @__PURE__ */ H(Wo, [["render", Xo]]), ea = { class: "flex flex-col
|
|
|
1736
1736
|
host: { default: "" },
|
|
1737
1737
|
data: {},
|
|
1738
1738
|
options: { default: () => [] },
|
|
1739
|
-
api: {},
|
|
1739
|
+
api: { default: "" },
|
|
1740
1740
|
maxHeight: { default: 400 },
|
|
1741
1741
|
parent: {},
|
|
1742
1742
|
add: {},
|
|
@@ -1775,13 +1775,13 @@ const Yo = /* @__PURE__ */ H(Wo, [["render", Xo]]), ea = { class: "flex flex-col
|
|
|
1775
1775
|
let h = t.options ?? [];
|
|
1776
1776
|
if (g?.trim()) {
|
|
1777
1777
|
const _ = g.toLowerCase();
|
|
1778
|
-
h = h.filter((
|
|
1778
|
+
h = h.filter((H) => H.text?.toLowerCase?.().includes(_));
|
|
1779
1779
|
}
|
|
1780
1780
|
return h;
|
|
1781
1781
|
}
|
|
1782
1782
|
try {
|
|
1783
|
-
const h = t.host ?? "", _ = t.prefix ?? "api",
|
|
1784
|
-
return ie.set("json", "1"), g && ie.set("key", g), we.value !== void 0 && we.value !== null && we.value !== "" && ie.set("parent", String(we.value)), (await fetch(`${
|
|
1783
|
+
const h = t.host ?? "", _ = t.prefix ?? "api", H = t.api ?? `/${_}/suggest/${t.data}`, te = `${h}${H}`, ie = new URLSearchParams();
|
|
1784
|
+
return ie.set("json", "1"), g && ie.set("key", g), we.value !== void 0 && we.value !== null && we.value !== "" && ie.set("parent", String(we.value)), (await fetch(`${te}?${ie.toString()}`).then((Ie) => Ie.json()))?.data ?? [];
|
|
1785
1785
|
} catch {
|
|
1786
1786
|
return [];
|
|
1787
1787
|
}
|
|
@@ -1789,16 +1789,16 @@ const Yo = /* @__PURE__ */ H(Wo, [["render", Xo]]), ea = { class: "flex flex-col
|
|
|
1789
1789
|
t.data ? $.value = await z(C.value) : $.value = t.options ? [...t.options] : [];
|
|
1790
1790
|
}, I = async (g) => {
|
|
1791
1791
|
if (g == null) return null;
|
|
1792
|
-
const h = $.value?.find((
|
|
1792
|
+
const h = $.value?.find((H) => H?.id?.toString() === String(g));
|
|
1793
1793
|
return h || ((await z(String(g)))?.[0] ?? null);
|
|
1794
1794
|
}, G = async (g) => {
|
|
1795
|
-
const h = new Set($.value.map((
|
|
1796
|
-
_.length && await _.reduce(async (
|
|
1797
|
-
await
|
|
1798
|
-
const ie = await I(
|
|
1795
|
+
const h = new Set($.value.map((H) => H.id?.toString())), _ = g.filter((H) => !h.has(H?.toString()));
|
|
1796
|
+
_.length && await _.reduce(async (H, te) => {
|
|
1797
|
+
await H;
|
|
1798
|
+
const ie = await I(te);
|
|
1799
1799
|
ie && $.value.push(ie);
|
|
1800
1800
|
}, Promise.resolve());
|
|
1801
|
-
},
|
|
1801
|
+
}, ae = async () => {
|
|
1802
1802
|
r.value || (p.value = !0, await M(), await ze(() => {
|
|
1803
1803
|
ge(), E.value?.focus(), X.value.length ? S.value = 0 : S.value = -1;
|
|
1804
1804
|
}));
|
|
@@ -1806,9 +1806,9 @@ const Yo = /* @__PURE__ */ H(Wo, [["render", Xo]]), ea = { class: "flex flex-col
|
|
|
1806
1806
|
p.value = !1, S.value = -1;
|
|
1807
1807
|
}, ke = async (g) => {
|
|
1808
1808
|
if (r.value) return;
|
|
1809
|
-
!p.value ? await
|
|
1809
|
+
!p.value ? await ae() : de();
|
|
1810
1810
|
}, y = async () => {
|
|
1811
|
-
p.value ? E.value?.focus() : await
|
|
1811
|
+
p.value ? E.value?.focus() : await ae();
|
|
1812
1812
|
}, k = () => {
|
|
1813
1813
|
s.value ? (f.value = [], a.value = [], n("change", [])) : (b.value = null, a.value = null, n("change", null)), C.value = "", ze(() => E.value?.focus());
|
|
1814
1814
|
}, P = (g) => {
|
|
@@ -1817,13 +1817,13 @@ const Yo = /* @__PURE__ */ H(Wo, [["render", Xo]]), ea = { class: "flex flex-col
|
|
|
1817
1817
|
s.value ? (ee(g.id) || (f.value = [...f.value, g.id], a.value = [...f.value], n("change", a.value)), C.value = "", ze(() => {
|
|
1818
1818
|
E.value?.focus(), S.value = Math.min(S.value, X.value.length - 1);
|
|
1819
1819
|
})) : (b.value = g, a.value = g.id, n("change", a.value), C.value = "", de());
|
|
1820
|
-
},
|
|
1820
|
+
}, re = (g) => {
|
|
1821
1821
|
ee(g.id) || J(g);
|
|
1822
1822
|
}, _e = (g, h) => {
|
|
1823
1823
|
if (!g || !h) return;
|
|
1824
|
-
const _ = g.offsetTop,
|
|
1824
|
+
const _ = g.offsetTop, H = _ + g.offsetHeight, te = h.scrollTop, ie = te + h.clientHeight;
|
|
1825
1825
|
let Se = h.scrollTop;
|
|
1826
|
-
_ <
|
|
1826
|
+
_ < te ? Se = _ - 80 : H > ie && (Se = H - h.clientHeight + 4);
|
|
1827
1827
|
const Ie = h;
|
|
1828
1828
|
Ie.scrollTop = Se;
|
|
1829
1829
|
}, he = (g) => {
|
|
@@ -1831,19 +1831,19 @@ const Yo = /* @__PURE__ */ H(Wo, [["render", Xo]]), ea = { class: "flex flex-col
|
|
|
1831
1831
|
for (; h; ) {
|
|
1832
1832
|
if (h.classList.contains("ui-dialog__content"))
|
|
1833
1833
|
return h;
|
|
1834
|
-
const _ = window.getComputedStyle(h),
|
|
1835
|
-
if (
|
|
1834
|
+
const _ = window.getComputedStyle(h), H = _.overflow + _.overflowY + _.overflowX;
|
|
1835
|
+
if (H.includes("auto") || H.includes("scroll") || h === document.body || h === document.documentElement)
|
|
1836
1836
|
return h;
|
|
1837
1837
|
h = h.parentElement;
|
|
1838
1838
|
}
|
|
1839
1839
|
return document.body;
|
|
1840
1840
|
}, ge = () => {
|
|
1841
1841
|
if (!u.value) return;
|
|
1842
|
-
const g = u.value.getBoundingClientRect(), _ = he(u.value).getBoundingClientRect(),
|
|
1842
|
+
const g = u.value.getBoundingClientRect(), _ = he(u.value).getBoundingClientRect(), H = 300, te = 20, ie = 8, Se = g.top - _.top, Ie = g.bottom - _.top, lt = _.height - Ie - ie - te, ot = Se - ie - te;
|
|
1843
1843
|
let Pe = !1;
|
|
1844
1844
|
if (lt >= ot ? Pe = !0 : Pe = !1, Pe) {
|
|
1845
1845
|
j.value = "bottom";
|
|
1846
|
-
const He = Math.min(
|
|
1846
|
+
const He = Math.min(H, Math.max(lt + te, 50));
|
|
1847
1847
|
m.value = {
|
|
1848
1848
|
top: `${g.height + ie}px`,
|
|
1849
1849
|
left: "0px",
|
|
@@ -1853,7 +1853,7 @@ const Yo = /* @__PURE__ */ H(Wo, [["render", Xo]]), ea = { class: "flex flex-col
|
|
|
1853
1853
|
};
|
|
1854
1854
|
} else {
|
|
1855
1855
|
j.value = "top";
|
|
1856
|
-
const He = Math.min(
|
|
1856
|
+
const He = Math.min(H, Math.max(ot + te, 50));
|
|
1857
1857
|
m.value = {
|
|
1858
1858
|
top: "auto",
|
|
1859
1859
|
left: "0px",
|
|
@@ -1863,7 +1863,7 @@ const Yo = /* @__PURE__ */ H(Wo, [["render", Xo]]), ea = { class: "flex flex-col
|
|
|
1863
1863
|
};
|
|
1864
1864
|
}
|
|
1865
1865
|
}, Ce = async (g) => {
|
|
1866
|
-
r.value || !p.value && (g.key === "ArrowDown" || g.key === "ArrowUp") && (g.preventDefault(), await
|
|
1866
|
+
r.value || !p.value && (g.key === "ArrowDown" || g.key === "ArrowUp") && (g.preventDefault(), await ae());
|
|
1867
1867
|
}, Ve = (g) => {
|
|
1868
1868
|
if (!p.value) return;
|
|
1869
1869
|
const { key: h } = g;
|
|
@@ -1891,7 +1891,7 @@ const Yo = /* @__PURE__ */ H(Wo, [["render", Xo]]), ea = { class: "flex flex-col
|
|
|
1891
1891
|
}, Xe = () => {
|
|
1892
1892
|
p.value && ge();
|
|
1893
1893
|
};
|
|
1894
|
-
|
|
1894
|
+
le(() => t.options, (g) => {
|
|
1895
1895
|
g?.length && ($.value = [...g]);
|
|
1896
1896
|
}, { immediate: !0 });
|
|
1897
1897
|
const Ye = async () => {
|
|
@@ -1905,7 +1905,7 @@ const Yo = /* @__PURE__ */ H(Wo, [["render", Xo]]), ea = { class: "flex flex-col
|
|
|
1905
1905
|
b.value = await I(a.value);
|
|
1906
1906
|
}
|
|
1907
1907
|
};
|
|
1908
|
-
|
|
1908
|
+
le(a, () => {
|
|
1909
1909
|
Ye();
|
|
1910
1910
|
}), xe(async () => {
|
|
1911
1911
|
addEventListener("keydown", Ke), addEventListener("scroll", We, !0), addEventListener("resize", Qe), document.addEventListener("click", Ze, !0), u.value && he(u.value).addEventListener("scroll", Xe, !0), t.options?.length ? $.value = [...t.options] : t.data && ($.value = await z("")), await Ye();
|
|
@@ -1916,14 +1916,14 @@ const Yo = /* @__PURE__ */ H(Wo, [["render", Xo]]), ea = { class: "flex flex-col
|
|
|
1916
1916
|
async function Ct() {
|
|
1917
1917
|
if (!t.add?.token || tt?.value.validate())
|
|
1918
1918
|
return;
|
|
1919
|
-
const
|
|
1919
|
+
const h = t.add.api ?? `/api/table/${t.add.token}`, { id: _ } = await fetch(h, {
|
|
1920
1920
|
method: "POST",
|
|
1921
1921
|
headers: { "Content-Type": "application/json" },
|
|
1922
1922
|
body: JSON.stringify(Re.value)
|
|
1923
|
-
}).then((
|
|
1923
|
+
}).then((H) => H.json());
|
|
1924
1924
|
if (!t.options?.length && t.data) {
|
|
1925
|
-
const { data:
|
|
1926
|
-
b.value =
|
|
1925
|
+
const { data: H } = await fetch(`${t.api ?? `/api/suggest/${t.data}`}?val=${_}`).then((te) => te.json());
|
|
1926
|
+
b.value = H[0], $.value.push(H[0]), a.value = _;
|
|
1927
1927
|
}
|
|
1928
1928
|
Oe.value = !1, be({ title: "Success!", message: "Object created." });
|
|
1929
1929
|
}
|
|
@@ -1934,20 +1934,20 @@ const Yo = /* @__PURE__ */ H(Wo, [["render", Xo]]), ea = { class: "flex flex-col
|
|
|
1934
1934
|
}
|
|
1935
1935
|
function Mt(g, h = 200) {
|
|
1936
1936
|
let _;
|
|
1937
|
-
return (...
|
|
1938
|
-
_ && clearTimeout(_), _ = window.setTimeout(() => g(...
|
|
1937
|
+
return (...H) => {
|
|
1938
|
+
_ && clearTimeout(_), _ = window.setTimeout(() => g(...H), h);
|
|
1939
1939
|
};
|
|
1940
1940
|
}
|
|
1941
1941
|
const Lt = Mt(async (g) => {
|
|
1942
1942
|
$.value = await z(g);
|
|
1943
1943
|
}, 200);
|
|
1944
|
-
return
|
|
1944
|
+
return le(C, (g) => {
|
|
1945
1945
|
t.data && Lt(g.trim());
|
|
1946
|
-
}),
|
|
1946
|
+
}), le(() => t.options, (g) => {
|
|
1947
1947
|
!t.data && g?.length && ($.value = [...g]);
|
|
1948
|
-
}, { immediate: !0 }),
|
|
1948
|
+
}, { immediate: !0 }), le(() => t.parent ?? t.parentValue, () => {
|
|
1949
1949
|
t.data && M();
|
|
1950
|
-
}),
|
|
1950
|
+
}), le(we, async () => {
|
|
1951
1951
|
t.data && (s.value ? (f.value = [], a.value = [], n("change", [])) : (b.value = null, a.value = null, n("change", null)));
|
|
1952
1952
|
}), (g, h) => (i(), c(Y, null, [
|
|
1953
1953
|
B(q(ht), {
|
|
@@ -2008,7 +2008,7 @@ const Yo = /* @__PURE__ */ H(Wo, [["render", Xo]]), ea = { class: "flex flex-col
|
|
|
2008
2008
|
ref_key: "triggerRef",
|
|
2009
2009
|
ref: u
|
|
2010
2010
|
}, [
|
|
2011
|
-
s.value && f.value.length ? (i(!0), c(Y, { key: 0 },
|
|
2011
|
+
s.value && f.value.length ? (i(!0), c(Y, { key: 0 }, oe(Q.value, (_) => (i(), c("div", {
|
|
2012
2012
|
class: "flex min-w-0 bg-[#e6e6e6] rounded-sm m-0.5 box-border",
|
|
2013
2013
|
key: _.id
|
|
2014
2014
|
}, [
|
|
@@ -2026,7 +2026,7 @@ const Yo = /* @__PURE__ */ H(Wo, [["render", Xo]]), ea = { class: "flex flex-col
|
|
|
2026
2026
|
l("div", {
|
|
2027
2027
|
role: "button",
|
|
2028
2028
|
class: "flex items-center rounded-sm px-1 box-border hover:bg-[#ffbdad] hover:text-[#de350b]",
|
|
2029
|
-
onClick: ve((
|
|
2029
|
+
onClick: ve((H) => P(_.id), ["stop"])
|
|
2030
2030
|
}, h[5] || (h[5] = [
|
|
2031
2031
|
l("svg", {
|
|
2032
2032
|
height: "14",
|
|
@@ -2073,7 +2073,7 @@ const Yo = /* @__PURE__ */ H(Wo, [["render", Xo]]), ea = { class: "flex flex-col
|
|
|
2073
2073
|
onBlur: $t,
|
|
2074
2074
|
onKeydown: Ve
|
|
2075
2075
|
}, null, 40, Pa)), [
|
|
2076
|
-
[
|
|
2076
|
+
[ne, C.value]
|
|
2077
2077
|
]) : F("", !0)
|
|
2078
2078
|
])
|
|
2079
2079
|
], 512),
|
|
@@ -2130,19 +2130,19 @@ const Yo = /* @__PURE__ */ H(Wo, [["render", Xo]]), ea = { class: "flex flex-col
|
|
|
2130
2130
|
ref_key: "listRef",
|
|
2131
2131
|
ref: v
|
|
2132
2132
|
}, [
|
|
2133
|
-
X.value.length ? (i(!0), c(Y, { key: 0 },
|
|
2133
|
+
X.value.length ? (i(!0), c(Y, { key: 0 }, oe(X.value, (_, H) => (i(), c("div", {
|
|
2134
2134
|
key: _.id,
|
|
2135
2135
|
ref_for: !0,
|
|
2136
|
-
ref: (
|
|
2136
|
+
ref: (te) => R.value[H] = te,
|
|
2137
2137
|
class: V([
|
|
2138
2138
|
"flex px-3 py-2 cursor-default select-none text-gray-900 hover:bg-blue-100",
|
|
2139
|
-
S.value ===
|
|
2139
|
+
S.value === H ? "bg-blue-100" : "",
|
|
2140
2140
|
ee(_.id) ? "bg-blue-50" : "bg-white"
|
|
2141
2141
|
]),
|
|
2142
2142
|
"aria-disabled": ee(_.id) ? "true" : "false",
|
|
2143
2143
|
role: "option",
|
|
2144
2144
|
tabindex: "-1",
|
|
2145
|
-
onClick: (
|
|
2145
|
+
onClick: (te) => re(_)
|
|
2146
2146
|
}, [
|
|
2147
2147
|
_?.color ? (i(), c("span", {
|
|
2148
2148
|
key: 0,
|
|
@@ -2154,7 +2154,7 @@ const Yo = /* @__PURE__ */ H(Wo, [["render", Xo]]), ea = { class: "flex flex-col
|
|
|
2154
2154
|
"leading-[19px]",
|
|
2155
2155
|
S.value === _.id ? "text-white" : "",
|
|
2156
2156
|
// active style like react-select
|
|
2157
|
-
(S.value ===
|
|
2157
|
+
(S.value === H, "")
|
|
2158
2158
|
])
|
|
2159
2159
|
}, T(_.text), 3)
|
|
2160
2160
|
], 10, Ga))), 128)) : (i(), c("div", Ja, " No options "))
|
|
@@ -2204,7 +2204,7 @@ const Yo = /* @__PURE__ */ H(Wo, [["render", Xo]]), ea = { class: "flex flex-col
|
|
|
2204
2204
|
border: "1px solid #CFD9E0"
|
|
2205
2205
|
}
|
|
2206
2206
|
}, null, 10, Wa)), [
|
|
2207
|
-
[
|
|
2207
|
+
[ne, n.value]
|
|
2208
2208
|
]);
|
|
2209
2209
|
}
|
|
2210
2210
|
}), Xa = {}, Ya = {
|
|
@@ -2228,7 +2228,7 @@ function es(o, e) {
|
|
|
2228
2228
|
l("path", { d: "M21 21l-6 -6" }, null, -1)
|
|
2229
2229
|
]));
|
|
2230
2230
|
}
|
|
2231
|
-
const ts = /* @__PURE__ */
|
|
2231
|
+
const ts = /* @__PURE__ */ N(Xa, [["render", es]]), ls = {}, os = {
|
|
2232
2232
|
class: "flex-shrink-0 mt-0.5 size-3.5",
|
|
2233
2233
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2234
2234
|
viewBox: "0 0 24 24",
|
|
@@ -2246,7 +2246,7 @@ function as(o, e) {
|
|
|
2246
2246
|
l("path", { d: "M17 4v16" }, null, -1)
|
|
2247
2247
|
]));
|
|
2248
2248
|
}
|
|
2249
|
-
const ss = /* @__PURE__ */
|
|
2249
|
+
const ss = /* @__PURE__ */ N(ls, [["render", as]]), ns = {}, rs = {
|
|
2250
2250
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2251
2251
|
width: "14",
|
|
2252
2252
|
height: "14",
|
|
@@ -2269,7 +2269,7 @@ function is(o, e) {
|
|
|
2269
2269
|
l("path", { d: "M12 4l0 12" }, null, -1)
|
|
2270
2270
|
]));
|
|
2271
2271
|
}
|
|
2272
|
-
const us = /* @__PURE__ */
|
|
2272
|
+
const us = /* @__PURE__ */ N(ns, [["render", is]]), ds = {}, cs = {
|
|
2273
2273
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2274
2274
|
viewBox: "0 0 24 24",
|
|
2275
2275
|
fill: "none",
|
|
@@ -2290,7 +2290,7 @@ function ps(o, e) {
|
|
|
2290
2290
|
l("path", { d: "M12 4l0 12" }, null, -1)
|
|
2291
2291
|
]));
|
|
2292
2292
|
}
|
|
2293
|
-
const fs = /* @__PURE__ */
|
|
2293
|
+
const fs = /* @__PURE__ */ N(ds, [["render", ps]]), vs = {}, ms = {
|
|
2294
2294
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2295
2295
|
viewBox: "0 0 24 24",
|
|
2296
2296
|
fill: "none",
|
|
@@ -2304,7 +2304,7 @@ function hs(o, e) {
|
|
|
2304
2304
|
ce('<circle cx="9" cy="12" r="1"></circle><circle cx="9" cy="5" r="1"></circle><circle cx="9" cy="19" r="1"></circle><circle cx="15" cy="12" r="1"></circle><circle cx="15" cy="5" r="1"></circle><circle cx="15" cy="19" r="1"></circle>', 6)
|
|
2305
2305
|
]));
|
|
2306
2306
|
}
|
|
2307
|
-
const dt = /* @__PURE__ */
|
|
2307
|
+
const dt = /* @__PURE__ */ N(vs, [["render", hs]]), gs = {}, bs = {
|
|
2308
2308
|
viewBox: "0 0 178 90",
|
|
2309
2309
|
fill: "none",
|
|
2310
2310
|
xmlns: "http://www.w3.org/2000/svg"
|
|
@@ -2314,7 +2314,7 @@ function ys(o, e) {
|
|
|
2314
2314
|
ce('<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)
|
|
2315
2315
|
]));
|
|
2316
2316
|
}
|
|
2317
|
-
const xs = /* @__PURE__ */
|
|
2317
|
+
const xs = /* @__PURE__ */ N(gs, [["render", ys]]), ws = {}, ks = {
|
|
2318
2318
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2319
2319
|
viewBox: "0 0 24 24",
|
|
2320
2320
|
fill: "none",
|
|
@@ -2328,7 +2328,7 @@ function _s(o, e) {
|
|
|
2328
2328
|
l("path", { d: "M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z" }, null, -1)
|
|
2329
2329
|
]));
|
|
2330
2330
|
}
|
|
2331
|
-
const $s = /* @__PURE__ */
|
|
2331
|
+
const $s = /* @__PURE__ */ N(ws, [["render", _s]]), Cs = { class: "vs-datatable border rounded-xl w-full flex-grow" }, Vs = { class: "flex items-center npm gap-[16px] justify-between p-[20px] pb-[16px]" }, Ms = { class: "relative w-full" }, Ls = { class: "table-wrapper flex gap-2" }, Ss = { class: "vs-popover inline-block text-slate-700" }, Bs = { class: "text-center" }, js = { class: "" }, Is = { class: "py-1 px-0 w-full text-sm text-stone-800 bg-white shadow-[0_10px_40px_10px_rgba(0,0,0,0.08)] rounded-lg focus:outline-none focus:bg-stone-100 dark:bg-neutral-900 dark:text-neutral-200 dark:focus:bg-neutral-800 after:h-4 after:absolute after:-bottom-4 after:start-0 after:w-full before:h-4 before:absolute before:-top-4 before:start-0 before:w-full" }, zs = { class: "flex flex-col p-[1px] gap-[2px] w-[140px]" }, Es = { class: "text-sm items-center text-gray-800 flex gap-1" }, Ds = { class: "w-full overflow-x-auto" }, Fs = { class: "w-full table-auto caption-bottom text-sm" }, Os = { class: "[&_tr]:border-b" }, As = { class: "border-b data-[state=selected]:bg-muted bg-slate-50/50 dark:bg-slate-700/50 hover:bg-slate-50/80 dark:hover:bg-slate-700/80 transition-colors" }, Us = { class: "h-10 px-2 align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px] w-12 text-center" }, Ts = {
|
|
2332
2332
|
key: 0,
|
|
2333
2333
|
colspan: "100%",
|
|
2334
2334
|
class: "text-center"
|
|
@@ -2376,9 +2376,9 @@ const $s = /* @__PURE__ */ H(ws, [["render", _s]]), Cs = { class: "vs-datatable
|
|
|
2376
2376
|
const I = z.target.files?.[0];
|
|
2377
2377
|
if (!I) return;
|
|
2378
2378
|
const G = new FileReader();
|
|
2379
|
-
G.onload = (
|
|
2379
|
+
G.onload = (ae) => {
|
|
2380
2380
|
try {
|
|
2381
|
-
const de =
|
|
2381
|
+
const de = ae.target?.result;
|
|
2382
2382
|
if (typeof de == "string") {
|
|
2383
2383
|
const ke = JSON.parse(de);
|
|
2384
2384
|
Array.isArray(ke) && t.value.push(...ke);
|
|
@@ -2437,7 +2437,7 @@ const $s = /* @__PURE__ */ H(ws, [["render", _s]]), Cs = { class: "vs-datatable
|
|
|
2437
2437
|
placeholder: "Пошук",
|
|
2438
2438
|
class: "py-2 px-3 pl-10 w-full bg-gray-100 h-[36px] rounded-[8px] text-[15px] leading-[18px] focus:border-1 text-stone-800 placeholder:text-[#6B7280] focus:outline-blue-500 focus:outline-2"
|
|
2439
2439
|
}, null, 512), [
|
|
2440
|
-
[
|
|
2440
|
+
[ne, s.value]
|
|
2441
2441
|
])
|
|
2442
2442
|
]),
|
|
2443
2443
|
l("div", Ls, [
|
|
@@ -2465,7 +2465,7 @@ const $s = /* @__PURE__ */ H(ws, [["render", _s]]), Cs = { class: "vs-datatable
|
|
|
2465
2465
|
])
|
|
2466
2466
|
])
|
|
2467
2467
|
]),
|
|
2468
|
-
(i(),
|
|
2468
|
+
(i(), se(It, { to: "body" }, [
|
|
2469
2469
|
u.value ? (i(), c("div", {
|
|
2470
2470
|
key: 0,
|
|
2471
2471
|
class: "text-slate-700 vsTailwind vs-popover__content bottom",
|
|
@@ -2482,7 +2482,7 @@ const $s = /* @__PURE__ */ H(ws, [["render", _s]]), Cs = { class: "vs-datatable
|
|
|
2482
2482
|
width: "14",
|
|
2483
2483
|
height: "14"
|
|
2484
2484
|
}),
|
|
2485
|
-
M[4] || (M[4] = fe(" Імпортувати "))
|
|
2485
|
+
M[4] || (M[4] = fe(" Імпортувати ", -1))
|
|
2486
2486
|
]),
|
|
2487
2487
|
l("button", {
|
|
2488
2488
|
onClick: E,
|
|
@@ -2494,7 +2494,7 @@ const $s = /* @__PURE__ */ H(ws, [["render", _s]]), Cs = { class: "vs-datatable
|
|
|
2494
2494
|
width: "14",
|
|
2495
2495
|
height: "14"
|
|
2496
2496
|
}),
|
|
2497
|
-
M[5] || (M[5] = fe(" Експортувати "))
|
|
2497
|
+
M[5] || (M[5] = fe(" Експортувати ", -1))
|
|
2498
2498
|
])
|
|
2499
2499
|
])
|
|
2500
2500
|
])
|
|
@@ -2506,7 +2506,7 @@ const $s = /* @__PURE__ */ H(ws, [["render", _s]]), Cs = { class: "vs-datatable
|
|
|
2506
2506
|
class: "text-slate-700 bg-white hover:bg-gray-100 font-semibold text-[15px] leadig-[18.5px] py-[10px] px-[12px] border border-[#E5E7EB] rounded-[8px] h-[38px] max-h-[38px] gap-[8px] flex items-center"
|
|
2507
2507
|
}, [
|
|
2508
2508
|
B(De),
|
|
2509
|
-
M[6] || (M[6] = fe(" Додати "))
|
|
2509
|
+
M[6] || (M[6] = fe(" Додати ", -1))
|
|
2510
2510
|
])
|
|
2511
2511
|
]),
|
|
2512
2512
|
l("div", Ds, [
|
|
@@ -2520,7 +2520,7 @@ const $s = /* @__PURE__ */ H(ws, [["render", _s]]), Cs = { class: "vs-datatable
|
|
|
2520
2520
|
class: "w-4 h-4 mx-auto text-slate-400 dark:text-slate-500"
|
|
2521
2521
|
})
|
|
2522
2522
|
]),
|
|
2523
|
-
(i(!0), c(Y, null,
|
|
2523
|
+
(i(!0), c(Y, null, oe(z.colModel, (I) => (i(), c("th", {
|
|
2524
2524
|
key: I.key,
|
|
2525
2525
|
class: "h-10 px-2 text-left align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px] font-semibold text-slate-700 dark:text-slate-300 min-w-[150px]"
|
|
2526
2526
|
}, T(I.ua || I.label), 1))), 128)),
|
|
@@ -2541,16 +2541,16 @@ const $s = /* @__PURE__ */ H(ws, [["render", _s]]), Cs = { class: "vs-datatable
|
|
|
2541
2541
|
])
|
|
2542
2542
|
])
|
|
2543
2543
|
])) : F("", !0),
|
|
2544
|
-
(i(!0), c(Y, null,
|
|
2544
|
+
(i(!0), c(Y, null, oe(r.value, (I, G) => (i(), c("tr", {
|
|
2545
2545
|
key: I.id,
|
|
2546
2546
|
class: V(["border-b data-[state=selected]:bg-muted transition-all duration-200 hover:bg-slate-50/60 dark:hover:bg-slate-700/60 cursor-move", {
|
|
2547
2547
|
"opacity-50": a.value === G,
|
|
2548
2548
|
"border-t-2 border-b-2 border-blue-500 bg-blue-50 dark:bg-blue-900/20": d.value === G
|
|
2549
2549
|
}]),
|
|
2550
2550
|
draggable: "true",
|
|
2551
|
-
onDragstart: (
|
|
2552
|
-
onDragover: ve((
|
|
2553
|
-
onDrop: (
|
|
2551
|
+
onDragstart: (ae) => w(G),
|
|
2552
|
+
onDragover: ve((ae) => b(G), ["prevent"]),
|
|
2553
|
+
onDrop: (ae) => $(G)
|
|
2554
2554
|
}, [
|
|
2555
2555
|
l("td", Ns, [
|
|
2556
2556
|
l("div", qs, [
|
|
@@ -2561,16 +2561,16 @@ const $s = /* @__PURE__ */ H(ws, [["render", _s]]), Cs = { class: "vs-datatable
|
|
|
2561
2561
|
})
|
|
2562
2562
|
])
|
|
2563
2563
|
]),
|
|
2564
|
-
(i(!0), c(Y, null,
|
|
2565
|
-
key:
|
|
2564
|
+
(i(!0), c(Y, null, oe(z.colModel, (ae) => (i(), c("td", {
|
|
2565
|
+
key: ae.key,
|
|
2566
2566
|
class: "p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]"
|
|
2567
2567
|
}, [
|
|
2568
|
-
l("div", Gs, T(ee(I,
|
|
2568
|
+
l("div", Gs, T(ee(I, ae)), 1)
|
|
2569
2569
|
]))), 128)),
|
|
2570
2570
|
l("td", Js, [
|
|
2571
2571
|
l("div", Ks, [
|
|
2572
2572
|
l("button", {
|
|
2573
|
-
onClick: (
|
|
2573
|
+
onClick: (ae) => X(I, G),
|
|
2574
2574
|
class: "text-slate-700 inline-flex items-center justify-center whitespace-nowrap font-medium focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 border rounded-md text-xs h-7 w-7 p-0 border-slate-300 dark:border-slate-600 bg-white dark:bg-slate-700 hover:bg-blue-50 dark:hover:bg-slate-600 hover:border-blue-300 dark:hover:border-slate-500 hover:text-blue-600 dark:hover:text-slate-200 transition-all duration-200 shadow-sm"
|
|
2575
2575
|
}, [
|
|
2576
2576
|
B($s, {
|
|
@@ -2580,7 +2580,7 @@ const $s = /* @__PURE__ */ H(ws, [["render", _s]]), Cs = { class: "vs-datatable
|
|
|
2580
2580
|
})
|
|
2581
2581
|
], 8, Zs),
|
|
2582
2582
|
l("button", {
|
|
2583
|
-
onClick: (
|
|
2583
|
+
onClick: (ae) => we(G),
|
|
2584
2584
|
class: "text-slate-700 inline-flex items-center justify-center whitespace-nowrap font-medium focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 border rounded-md text-xs h-7 w-7 p-0 border-slate-300 dark:border-slate-600 bg-white dark:bg-slate-700 hover:bg-red-50 dark:hover:bg-slate-600 hover:border-red-300 dark:hover:border-slate-500 hover:text-red-600 dark:hover:text-slate-200 transition-all duration-200 shadow-sm"
|
|
2585
2585
|
}, [
|
|
2586
2586
|
B(Te, {
|
|
@@ -2768,7 +2768,7 @@ function on(o, e) {
|
|
|
2768
2768
|
l("path", { d: "M17.657 16.657l-4.243 4.243a2 2 0 0 1 -2.827 0l-4.244 -4.243a8 8 0 1 1 11.314 0z" }, null, -1)
|
|
2769
2769
|
]));
|
|
2770
2770
|
}
|
|
2771
|
-
const an = /* @__PURE__ */
|
|
2771
|
+
const an = /* @__PURE__ */ N(tn, [["render", on]]), sn = {}, nn = {
|
|
2772
2772
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2773
2773
|
viewBox: "0 0 24 24",
|
|
2774
2774
|
fill: "none",
|
|
@@ -2790,7 +2790,7 @@ function rn(o, e) {
|
|
|
2790
2790
|
l("path", { d: "M7.5 16.5l9 -9" }, null, -1)
|
|
2791
2791
|
]));
|
|
2792
2792
|
}
|
|
2793
|
-
const un = /* @__PURE__ */
|
|
2793
|
+
const un = /* @__PURE__ */ N(sn, [["render", rn]]), dn = {}, cn = {
|
|
2794
2794
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2795
2795
|
viewBox: "0 0 24 24",
|
|
2796
2796
|
fill: "none",
|
|
@@ -2805,7 +2805,7 @@ function pn(o, e) {
|
|
|
2805
2805
|
ce('<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)
|
|
2806
2806
|
]));
|
|
2807
2807
|
}
|
|
2808
|
-
const fn = /* @__PURE__ */
|
|
2808
|
+
const fn = /* @__PURE__ */ N(dn, [["render", pn]]), vn = {}, mn = {
|
|
2809
2809
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2810
2810
|
viewBox: "0 0 24 24",
|
|
2811
2811
|
fill: "none",
|
|
@@ -2820,7 +2820,7 @@ function hn(o, e) {
|
|
|
2820
2820
|
ce('<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)
|
|
2821
2821
|
]));
|
|
2822
2822
|
}
|
|
2823
|
-
const gn = /* @__PURE__ */
|
|
2823
|
+
const gn = /* @__PURE__ */ N(vn, [["render", hn]]), bn = {}, yn = {
|
|
2824
2824
|
version: "1.1",
|
|
2825
2825
|
viewBox: "0 0 14 14",
|
|
2826
2826
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2858,7 +2858,7 @@ function xn(o, e) {
|
|
|
2858
2858
|
], -1)
|
|
2859
2859
|
]));
|
|
2860
2860
|
}
|
|
2861
|
-
const wn = /* @__PURE__ */
|
|
2861
|
+
const wn = /* @__PURE__ */ N(bn, [["render", xn]]), kn = { class: "form-geom__search" }, _n = { class: "map-search__input" }, $n = { class: "flex flex-nowrap relative" }, Cn = { class: "form-autocomplete relative min-w-[6rem] vsTailwind map-search__select hidden" }, Vn = { class: "flex items-center w-full" }, Mn = { class: "max-w-[90%] truncate" }, Ln = {
|
|
2862
2862
|
key: 0,
|
|
2863
2863
|
class: "absolute z-[3100] mt-0.5 left-0 right-0"
|
|
2864
2864
|
}, Sn = { class: "form-autocomplete__wrapper mt-[10px] z-50 w-full min-w-36 max-h-72 p-0 space-y-0.5 bg-white rounded-xl shadow-[0_10px_40px_10px_rgba(0,0,0,0.08)] dark:bg-neutral-900 top-full opened" }, Bn = { class: "form-autocomplete__list vsTailwind px-2 pb-2 pt-0 max-h-200 relative [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500 dark:bg-neutral-900" }, jn = ["onClick"], In = { class: "flex justify-between items-center w-full" }, zn = { class: "flex items-center" }, En = {
|
|
@@ -2970,7 +2970,7 @@ const wn = /* @__PURE__ */ H(bn, [["render", xn]]), kn = { class: "form-geom__se
|
|
|
2970
2970
|
n.value ? (i(), c("div", Ln, [
|
|
2971
2971
|
l("div", Sn, [
|
|
2972
2972
|
l("div", Bn, [
|
|
2973
|
-
(i(), c(Y, null,
|
|
2973
|
+
(i(), c(Y, null, oe(p, (f) => l("div", {
|
|
2974
2974
|
onClick: (Q) => b(f),
|
|
2975
2975
|
key: f.value,
|
|
2976
2976
|
class: "form-autocomplete__item cursor-pointer hs-selected:bg-stone-100 dark:hs-selected:bg-neutral-800 py-2 px-4 w-full text-sm text-gray-800 hover:bg-gray-100 rounded-lg focus:outline-none focus:bg-stone-100 dark:bg-neutral-900 dark:hover:bg-neutral-800 dark:text-neutral-200 dark:focus:bg-neutral-800 cursor-default"
|
|
@@ -3021,7 +3021,7 @@ const wn = /* @__PURE__ */ H(bn, [["render", xn]]), kn = { class: "form-geom__se
|
|
|
3021
3021
|
placeholder: "lat, lng ex. 50, 30",
|
|
3022
3022
|
class: "bg-white h-[38px] text-sm py-2 px-3 ps-9 pe-8 block w-full border border-solid placeholder:text-nowrap border-stone-200 rounded-lg text-stone-800 placeholder:text-stone-400 focus:outline focus:z-10 focus:border-blue-500 focus:ring-blue-500 focus:outline-blue-500"
|
|
3023
3023
|
}, null, 544), [
|
|
3024
|
-
[
|
|
3024
|
+
[ne, r.value]
|
|
3025
3025
|
]),
|
|
3026
3026
|
r.value ? (i(), c("button", {
|
|
3027
3027
|
key: 0,
|
|
@@ -3047,7 +3047,7 @@ const wn = /* @__PURE__ */ H(bn, [["render", xn]]), kn = { class: "form-geom__se
|
|
|
3047
3047
|
]))) : F("", !0),
|
|
3048
3048
|
d.value && s.value !== "coordinates" ? (i(), c("div", On, [
|
|
3049
3049
|
a.value.length ? (i(), c("ul", An, [
|
|
3050
|
-
(i(!0), c(Y, null,
|
|
3050
|
+
(i(!0), c(Y, null, oe(a.value, (f) => (i(), c("li", {
|
|
3051
3051
|
key: f.properties.place_id,
|
|
3052
3052
|
onClick: (Q) => E(f),
|
|
3053
3053
|
class: "px-3 py-2 text-sm cursor-pointer hover:bg-gray-100"
|
|
@@ -3073,7 +3073,7 @@ const wn = /* @__PURE__ */ H(bn, [["render", xn]]), kn = { class: "form-geom__se
|
|
|
3073
3073
|
}
|
|
3074
3074
|
return (a, d) => (i(), c("div", Hn, [
|
|
3075
3075
|
l("div", Nn, [
|
|
3076
|
-
(i(!0), c(Y, null,
|
|
3076
|
+
(i(!0), c(Y, null, oe(a.basemaps, (u, v) => (i(), c("div", {
|
|
3077
3077
|
key: v,
|
|
3078
3078
|
class: V(["cursor-pointer border rounded-lg overflow-hidden hover:shadow-sm", { "ring-2 ring-blue-500 border-blue-300": n.value === v }]),
|
|
3079
3079
|
onClick: (p) => r(v),
|
|
@@ -3121,18 +3121,18 @@ const wn = /* @__PURE__ */ H(bn, [["render", xn]]), kn = { class: "form-geom__se
|
|
|
3121
3121
|
function j() {
|
|
3122
3122
|
return new Promise((y, k) => {
|
|
3123
3123
|
window.L && window.L.Draw && y(0);
|
|
3124
|
-
const P = (
|
|
3125
|
-
if (Array.from(document.styleSheets).some((ge) => ge?.href?.includes(
|
|
3124
|
+
const P = (re) => {
|
|
3125
|
+
if (Array.from(document.styleSheets).some((ge) => ge?.href?.includes(re))) return;
|
|
3126
3126
|
const he = document.createElement("link");
|
|
3127
|
-
he.rel = "stylesheet", he.href =
|
|
3128
|
-
}, J = (
|
|
3129
|
-
const ge = Array.from(document.scripts).find((Ve) => Ve.src ===
|
|
3127
|
+
he.rel = "stylesheet", he.href = re, document.head.appendChild(he);
|
|
3128
|
+
}, J = (re) => new Promise((_e, he) => {
|
|
3129
|
+
const ge = Array.from(document.scripts).find((Ve) => Ve.src === re);
|
|
3130
3130
|
if (ge) {
|
|
3131
3131
|
ge.addEventListener("load", () => _e()), ge.addEventListener("error", (Ve) => he(Ve));
|
|
3132
3132
|
return;
|
|
3133
3133
|
}
|
|
3134
3134
|
const Ce = document.createElement("script");
|
|
3135
|
-
Ce.src =
|
|
3135
|
+
Ce.src = re, Ce.async = !0, Ce.onload = () => _e(), Ce.onerror = (Ve) => he(Ve), document.body.appendChild(Ce);
|
|
3136
3136
|
});
|
|
3137
3137
|
P("https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"), P("https://unpkg.com/leaflet-draw@1.0.4/dist/leaflet.draw.css"), J("https://unpkg.com/leaflet@1.9.4/dist/leaflet.js").then(() => J("https://unpkg.com/leaflet-draw@1.0.4/dist/leaflet.draw.js")).then(() => y(0)).catch(k);
|
|
3138
3138
|
});
|
|
@@ -3178,11 +3178,11 @@ const wn = /* @__PURE__ */ H(bn, [["render", xn]]), kn = { class: "form-geom__se
|
|
|
3178
3178
|
S.value = null, b.value = 0;
|
|
3179
3179
|
return;
|
|
3180
3180
|
}
|
|
3181
|
-
const k = y[y.length - 1], P = O(k), J = ee(k),
|
|
3181
|
+
const k = y[y.length - 1], P = O(k), J = ee(k), re = ue(k);
|
|
3182
3182
|
S.value = {
|
|
3183
3183
|
type: P,
|
|
3184
3184
|
center: J,
|
|
3185
|
-
areaKm2:
|
|
3185
|
+
areaKm2: re,
|
|
3186
3186
|
layer: k
|
|
3187
3187
|
}, b.value = y.length;
|
|
3188
3188
|
}
|
|
@@ -3249,8 +3249,8 @@ const wn = /* @__PURE__ */ H(bn, [["render", xn]]), kn = { class: "form-geom__se
|
|
|
3249
3249
|
if (typeof P.result == "string")
|
|
3250
3250
|
try {
|
|
3251
3251
|
const J = JSON.parse(P.result);
|
|
3252
|
-
d.clearLayers(), J && L.geoJSON({ type: "Feature", geometry: J }).eachLayer((
|
|
3253
|
-
d.addLayer(
|
|
3252
|
+
d.clearLayers(), J && L.geoJSON({ type: "Feature", geometry: J }).eachLayer((re) => {
|
|
3253
|
+
d.addLayer(re);
|
|
3254
3254
|
}), m(), X(), f();
|
|
3255
3255
|
} finally {
|
|
3256
3256
|
y.target.value = "";
|
|
@@ -3260,17 +3260,17 @@ const wn = /* @__PURE__ */ H(bn, [["render", xn]]), kn = { class: "form-geom__se
|
|
|
3260
3260
|
function G(y) {
|
|
3261
3261
|
a && (C && a.removeLayer(C), C = L.tileLayer(R[y].url, { maxZoom: 19, minZoom: 6 }).addTo(a), E.value = y);
|
|
3262
3262
|
}
|
|
3263
|
-
function
|
|
3263
|
+
function ae(y) {
|
|
3264
3264
|
const k = L.latLng(y[0], y[1]);
|
|
3265
3265
|
a.setView(k, 13);
|
|
3266
3266
|
}
|
|
3267
|
-
|
|
3267
|
+
le(
|
|
3268
3268
|
() => n.modelValue,
|
|
3269
3269
|
(y) => {
|
|
3270
3270
|
console.log("update map"), d.clearLayers(), y && L.geoJSON({ type: "Feature", geometry: y }).eachLayer((k) => {
|
|
3271
3271
|
d.addLayer(k), k.dragging?.enable(), k.dragging?.enabled(), k.on("dragend", (P) => {
|
|
3272
|
-
const
|
|
3273
|
-
s("update:modelValue", { type: "Point", coordinates: [
|
|
3272
|
+
const re = P.target.getLatLng();
|
|
3273
|
+
s("update:modelValue", { type: "Point", coordinates: [re.lng, re.lat] });
|
|
3274
3274
|
});
|
|
3275
3275
|
}), b.value = d.getLayers().length, X(), f();
|
|
3276
3276
|
}
|
|
@@ -3292,7 +3292,7 @@ const wn = /* @__PURE__ */ H(bn, [["render", xn]]), kn = { class: "form-geom__se
|
|
|
3292
3292
|
};
|
|
3293
3293
|
}
|
|
3294
3294
|
const ke = x(!1);
|
|
3295
|
-
return
|
|
3295
|
+
return le(ke, () => {
|
|
3296
3296
|
setTimeout(() => {
|
|
3297
3297
|
a.invalidateSize();
|
|
3298
3298
|
}, 50);
|
|
@@ -3305,7 +3305,7 @@ const wn = /* @__PURE__ */ H(bn, [["render", xn]]), kn = { class: "form-geom__se
|
|
|
3305
3305
|
class: "w-full h-full"
|
|
3306
3306
|
}, null, 512),
|
|
3307
3307
|
l("div", Kn, [
|
|
3308
|
-
B(Pn, { onGoToCoordinates:
|
|
3308
|
+
B(Pn, { onGoToCoordinates: ae }),
|
|
3309
3309
|
l("div", Zn, [
|
|
3310
3310
|
l("div", Wn, [
|
|
3311
3311
|
l("button", {
|
|
@@ -3391,19 +3391,19 @@ const wn = /* @__PURE__ */ H(bn, [["render", xn]]), kn = { class: "form-geom__se
|
|
|
3391
3391
|
l("div", ar, [
|
|
3392
3392
|
S.value ? (i(), c("div", sr, [
|
|
3393
3393
|
l("div", nr, [
|
|
3394
|
-
k[7] || (k[7] = fe(" Тип: ")),
|
|
3394
|
+
k[7] || (k[7] = fe(" Тип: ", -1)),
|
|
3395
3395
|
l("span", rr, T(S.value.type), 1)
|
|
3396
3396
|
]),
|
|
3397
3397
|
l("div", ir, [
|
|
3398
3398
|
l("div", ur, [
|
|
3399
|
-
k[8] || (k[8] = fe(" Центр: ")),
|
|
3399
|
+
k[8] || (k[8] = fe(" Центр: ", -1)),
|
|
3400
3400
|
l("b", null, T(S.value.center.lat.toFixed(5)) + ", " + T(S.value.center.lng.toFixed(5)), 1)
|
|
3401
3401
|
]),
|
|
3402
3402
|
S.value.areaKm2 !== null ? (i(), c("div", dr, [
|
|
3403
|
-
k[9] || (k[9] = fe(" Площа: ")),
|
|
3403
|
+
k[9] || (k[9] = fe(" Площа: ", -1)),
|
|
3404
3404
|
l("b", null, T(S.value.areaKm2.toFixed(1)) + "км²", 1)
|
|
3405
3405
|
])) : (i(), c("div", cr, k[10] || (k[10] = [
|
|
3406
|
-
fe(" Площа: "),
|
|
3406
|
+
fe(" Площа: ", -1),
|
|
3407
3407
|
l("b", null, "—", -1)
|
|
3408
3408
|
]))),
|
|
3409
3409
|
l("button", {
|
|
@@ -3425,7 +3425,7 @@ const wn = /* @__PURE__ */ H(bn, [["render", xn]]), kn = { class: "form-geom__se
|
|
|
3425
3425
|
])
|
|
3426
3426
|
], 2));
|
|
3427
3427
|
}
|
|
3428
|
-
}), fr = /* @__PURE__ */
|
|
3428
|
+
}), fr = /* @__PURE__ */ N(pr, [["__scopeId", "data-v-5a4c21a7"]]), vr = ["data-focus"], mr = { class: "flex items-center" }, hr = { class: "overflow-hidden text-ellipsis whitespace-nowrap rounded-sm text-[#333] text-[85%] px-0.5 py-[3px] pl-1.5 box-border" }, gr = ["onClick", "aria-label"], br = {
|
|
3429
3429
|
key: 0,
|
|
3430
3430
|
class: "absolute text-gray-500 truncate pl-2"
|
|
3431
3431
|
}, yr = { class: "flex-1 min-w-[2px]" }, xr = ["placeholder"], wr = { class: "flex items-center shrink-0" }, kr = ["disabled"], _r = /* @__PURE__ */ D({
|
|
@@ -3495,7 +3495,7 @@ const wn = /* @__PURE__ */ H(bn, [["render", xn]]), kn = { class: "form-geom__se
|
|
|
3495
3495
|
ref_key: "chipsRef",
|
|
3496
3496
|
ref: r
|
|
3497
3497
|
}, [
|
|
3498
|
-
(i(!0), c(Y, null,
|
|
3498
|
+
(i(!0), c(Y, null, oe(v.value, (ue, ee) => (i(), c("div", {
|
|
3499
3499
|
key: ee,
|
|
3500
3500
|
class: "flex min-w-0 bg-[#e6e6e6] rounded-sm m-0.5 box-border"
|
|
3501
3501
|
}, [
|
|
@@ -3540,7 +3540,7 @@ const wn = /* @__PURE__ */ H(bn, [["render", xn]]), kn = { class: "form-geom__se
|
|
|
3540
3540
|
onKeydown: Q,
|
|
3541
3541
|
placeholder: v.value && v.value.length ? "" : void 0
|
|
3542
3542
|
}, null, 40, xr)), [
|
|
3543
|
-
[
|
|
3543
|
+
[ne, u.value]
|
|
3544
3544
|
])
|
|
3545
3545
|
])
|
|
3546
3546
|
], 512),
|
|
@@ -3634,7 +3634,7 @@ const wn = /* @__PURE__ */ H(bn, [["render", xn]]), kn = { class: "form-geom__se
|
|
|
3634
3634
|
"onUpdate:modelValue": d[0] || (d[0] = (u) => n.value = u),
|
|
3635
3635
|
class: "block w-full px-3 py-2 text-sm border border-solid rounded-lg placeholder:text-nowrap border-stone-200 text-stone-800 placeholder:text-stone-400 focus:outline focus:z-10 focus:border-blue-500 focus:ring-blue-500 focus:outline-blue-500"
|
|
3636
3636
|
}, null, 8, Cr), [
|
|
3637
|
-
[
|
|
3637
|
+
[ne, n.value]
|
|
3638
3638
|
]),
|
|
3639
3639
|
l("button", {
|
|
3640
3640
|
class: "px-2 bg-gray-100 border rounded-lg hover:bg-gray-200",
|
|
@@ -3642,7 +3642,7 @@ const wn = /* @__PURE__ */ H(bn, [["render", xn]]), kn = { class: "form-geom__se
|
|
|
3642
3642
|
}, " Gen ")
|
|
3643
3643
|
]));
|
|
3644
3644
|
}
|
|
3645
|
-
}), Mr = /* @__PURE__ */
|
|
3645
|
+
}), Mr = /* @__PURE__ */ N(Vr, [["__scopeId", "data-v-b0eba370"]]), Lr = { class: "w-full" }, Sr = {
|
|
3646
3646
|
ref: "sortableContainer",
|
|
3647
3647
|
class: "flex flex-col gap-1"
|
|
3648
3648
|
}, Br = ["onDragstart", "onDrop"], jr = { class: "w-1/3" }, Ir = { class: "w-2/3" }, zr = ["onClick"], Er = {
|
|
@@ -3682,7 +3682,7 @@ const wn = /* @__PURE__ */ H(bn, [["render", xn]]), kn = { class: "form-geom__se
|
|
|
3682
3682
|
}, R = (C) => {
|
|
3683
3683
|
u.value = u.value.filter((E) => E.id !== C);
|
|
3684
3684
|
};
|
|
3685
|
-
return
|
|
3685
|
+
return le(
|
|
3686
3686
|
u,
|
|
3687
3687
|
(C) => {
|
|
3688
3688
|
const E = {};
|
|
@@ -3700,7 +3700,7 @@ const wn = /* @__PURE__ */ H(bn, [["render", xn]]), kn = { class: "form-geom__se
|
|
|
3700
3700
|
{ deep: !0 }
|
|
3701
3701
|
), (C, E) => (i(), c("div", Lr, [
|
|
3702
3702
|
l("div", Sr, [
|
|
3703
|
-
(i(!0), c(Y, null,
|
|
3703
|
+
(i(!0), c(Y, null, oe(u.value, (j, m) => (i(), c("div", {
|
|
3704
3704
|
key: j.id,
|
|
3705
3705
|
class: V(["flex items-center gap-2 w-full", { "opacity-50": v.value === m }]),
|
|
3706
3706
|
draggable: "true",
|
|
@@ -3752,7 +3752,7 @@ const wn = /* @__PURE__ */ H(bn, [["render", xn]]), kn = { class: "form-geom__se
|
|
|
3752
3752
|
])
|
|
3753
3753
|
]));
|
|
3754
3754
|
}
|
|
3755
|
-
}), Ar = /* @__PURE__ */
|
|
3755
|
+
}), Ar = /* @__PURE__ */ N(Or, [["__scopeId", "data-v-a0f7fbfc"]]), Ur = { class: "flex items-center gap-2 w-full" }, Tr = ["disabled"], Rr = /* @__PURE__ */ D({
|
|
3756
3756
|
__name: "vs-input-color",
|
|
3757
3757
|
props: {
|
|
3758
3758
|
style: { default: () => ({}) },
|
|
@@ -3778,13 +3778,13 @@ const wn = /* @__PURE__ */ H(bn, [["render", xn]]), kn = { class: "form-geom__se
|
|
|
3778
3778
|
class: V(["py-1.5 px-1 block w-full bg-white cursor-pointer max-w-[50px]", [a.modelValue ? "" : "text-opacity-50", q(n)].join(" ")]),
|
|
3779
3779
|
style: { border: "1px solid #CFD9E0" }
|
|
3780
3780
|
}, null, 10, Tr), [
|
|
3781
|
-
[
|
|
3781
|
+
[ne, r.value]
|
|
3782
3782
|
]),
|
|
3783
3783
|
K(l("input", {
|
|
3784
3784
|
class: "text-sm text-gray-600 border border-solid border-stone-200 rounded-md p-2",
|
|
3785
3785
|
"onUpdate:modelValue": d[1] || (d[1] = (u) => r.value = u)
|
|
3786
3786
|
}, null, 512), [
|
|
3787
|
-
[
|
|
3787
|
+
[ne, r.value]
|
|
3788
3788
|
])
|
|
3789
3789
|
]));
|
|
3790
3790
|
}
|
|
@@ -3819,14 +3819,14 @@ const wn = /* @__PURE__ */ H(bn, [["render", xn]]), kn = { class: "form-geom__se
|
|
|
3819
3819
|
ref: "range",
|
|
3820
3820
|
class: V(["w-full cursor-pointer accent-blue-500", [a.modelValue ? "" : "text-opacity-50", q(n)].join(" ")])
|
|
3821
3821
|
}, null, 10, Hr), [
|
|
3822
|
-
[
|
|
3822
|
+
[ne, r.value]
|
|
3823
3823
|
]),
|
|
3824
3824
|
K(l("input", {
|
|
3825
3825
|
class: "text-sm text-gray-600 border border-solid border-stone-200 rounded-md p-2 max-w-[100px]",
|
|
3826
3826
|
type: "number",
|
|
3827
3827
|
"onUpdate:modelValue": d[1] || (d[1] = (u) => r.value = u)
|
|
3828
3828
|
}, null, 512), [
|
|
3829
|
-
[
|
|
3829
|
+
[ne, r.value]
|
|
3830
3830
|
])
|
|
3831
3831
|
]));
|
|
3832
3832
|
}
|
|
@@ -3913,7 +3913,7 @@ const wn = /* @__PURE__ */ H(bn, [["render", xn]]), kn = { class: "form-geom__se
|
|
|
3913
3913
|
const d = e.item ?? {}, u = r.value;
|
|
3914
3914
|
return u.size ? Object.fromEntries(Object.entries(d).filter(([v]) => u.has(v))) : {};
|
|
3915
3915
|
});
|
|
3916
|
-
return (d, u) => (i(),
|
|
3916
|
+
return (d, u) => (i(), se(Be(n.value), {
|
|
3917
3917
|
ua: e.item.ua,
|
|
3918
3918
|
error: e.error || "",
|
|
3919
3919
|
item: d.item,
|
|
@@ -3923,11 +3923,11 @@ const wn = /* @__PURE__ */ H(bn, [["render", xn]]), kn = { class: "form-geom__se
|
|
|
3923
3923
|
l("div", {
|
|
3924
3924
|
class: V(["flex w-full", `${e.item.type}-component`])
|
|
3925
3925
|
}, [
|
|
3926
|
-
(i(),
|
|
3926
|
+
(i(), se(Be(s.value), Ee(a.value, {
|
|
3927
3927
|
modelValue: t.value,
|
|
3928
3928
|
"onUpdate:modelValue": u[0] || (u[0] = (v) => t.value = v)
|
|
3929
3929
|
}), null, 16, ["modelValue"])),
|
|
3930
|
-
d.item.behavior?.api && d.item.behavior?.button ? (i(),
|
|
3930
|
+
d.item.behavior?.api && d.item.behavior?.button ? (i(), se(Gr, Ee({ key: 0 }, d.item.behavior, { value: t.value }), null, 16, ["value"])) : F("", !0)
|
|
3931
3931
|
], 2)
|
|
3932
3932
|
]),
|
|
3933
3933
|
_: 1
|
|
@@ -3985,7 +3985,7 @@ function Yr(o) {
|
|
|
3985
3985
|
label: t[1].label || t[1].ua,
|
|
3986
3986
|
rules: t[1].rules || t[1].validators
|
|
3987
3987
|
};
|
|
3988
|
-
t[1].type.includes("list") && (n.multiple = !0), t[1].data && (n.api = `/api/suggest/${t[1].data}`), e.push(n);
|
|
3988
|
+
t[1].type.includes("list") && (n.multiple = !0), !n.api && t[1].data && (n.api = `/api/suggest/${t[1].data}`), e.push(n);
|
|
3989
3989
|
}), e;
|
|
3990
3990
|
}
|
|
3991
3991
|
function ei(o, e) {
|
|
@@ -4059,7 +4059,7 @@ const Fe = /* @__PURE__ */ D({
|
|
|
4059
4059
|
onSubmit: ve(w, ["prevent"]),
|
|
4060
4060
|
class: V(["grid grid-cols-12", $.layout === "default" ? "gap-6" : "gap-4"])
|
|
4061
4061
|
}, [
|
|
4062
|
-
(i(!0), c(Y, null,
|
|
4062
|
+
(i(!0), c(Y, null, oe(q(p), (R) => (i(), se(wt, {
|
|
4063
4063
|
key: R.name,
|
|
4064
4064
|
class: V($.layout === "horizontal" ? "col-span-12" : `col-span-${R.col || 12} `),
|
|
4065
4065
|
style: ye($.style),
|
|
@@ -4173,7 +4173,7 @@ const Fe = /* @__PURE__ */ D({
|
|
|
4173
4173
|
]))
|
|
4174
4174
|
]),
|
|
4175
4175
|
l("div", ni, [
|
|
4176
|
-
s.value ? (i(),
|
|
4176
|
+
s.value ? (i(), se(Fe, {
|
|
4177
4177
|
key: 0,
|
|
4178
4178
|
schema: s.value,
|
|
4179
4179
|
values: r.value,
|