@opengis/form 0.0.72 → 0.0.73
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 +15 -15
- package/dist/index.js +705 -705
- package/dist/index.umd.cjs +3 -3
- package/package.json +67 -67
package/dist/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as q, ref as V, onMounted as xe, onUnmounted as st, createElementBlock as u, openBlock as r, createCommentVNode as O, renderSlot as Ee, createElementVNode as l, toDisplayString as K, mergeProps as Fe, computed as L, normalizeStyle as ye, createTextVNode as ge, normalizeProps as gt, guardReactiveProps as bt, normalizeClass as D, mergeModels as re, useModel as ue, withDirectives as se, unref as ee, vModelText as ve, vModelCheckbox as
|
|
2
|
-
import { notify as pe, VsModal as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as q, ref as V, onMounted as xe, onUnmounted as st, createElementBlock as u, openBlock as r, createCommentVNode as O, renderSlot as Ee, createElementVNode as l, toDisplayString as K, mergeProps as Fe, computed as L, normalizeStyle as ye, createTextVNode as ge, normalizeProps as gt, guardReactiveProps as bt, normalizeClass as D, mergeModels as re, useModel as ue, withDirectives as se, unref as ee, vModelText as ve, vModelCheckbox as At, createVNode as P, createBlock as ce, resolveDynamicComponent as Ue, withCtx as Ae, withModifiers as me, onBeforeUnmount as rt, watch as ae, createStaticVNode as we, vModelRadio as zt, Fragment as ne, renderList as de, reactive as Tt, vModelDynamic as Kt, vShow as yt, inject as Ie, resolveComponent as _t, Transition as xt, nextTick as je, Teleport as it, getCurrentInstance as qt, watchEffect as Gt, withKeys as Zt, toRef as Wt, provide as $t } from "vue";
|
|
2
|
+
import { notify as pe, VsModal as Ot, modal as Jt } from "@opengis/core";
|
|
3
|
+
const Yt = { class: "w-full relative" }, Xt = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "text-[14px] font-medium text-gray-900 mb-2"
|
|
6
|
-
},
|
|
6
|
+
}, Qt = { class: "opacity-100" }, el = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "text-red-500 text-[14px]"
|
|
9
|
-
},
|
|
9
|
+
}, tl = {
|
|
10
10
|
key: 1,
|
|
11
11
|
class: "text-red-500 text-[10px] absolute bottom-[-14px]"
|
|
12
|
-
},
|
|
12
|
+
}, ll = /* @__PURE__ */ q({
|
|
13
13
|
__name: "vs-layout-default",
|
|
14
14
|
props: {
|
|
15
15
|
ua: { default: "" },
|
|
@@ -31,24 +31,24 @@ const Xt = { class: "w-full relative" }, Qt = {
|
|
|
31
31
|
e.value = localStorage.locale, window.addEventListener("storage", t);
|
|
32
32
|
}), st(() => {
|
|
33
33
|
window.removeEventListener("resize", t);
|
|
34
|
-
}), (n, o) => (r(), u("div",
|
|
35
|
-
n.ua || n.label ? (r(), u("div",
|
|
36
|
-
l("span",
|
|
37
|
-
n.item?.rules?.includes("required") ? (r(), u("span",
|
|
34
|
+
}), (n, o) => (r(), u("div", Yt, [
|
|
35
|
+
n.ua || n.label ? (r(), u("div", Xt, [
|
|
36
|
+
l("span", Qt, K(n.item[e.value] || n.ua || n.label), 1),
|
|
37
|
+
n.item?.rules?.includes("required") ? (r(), u("span", el, "*")) : O("", !0)
|
|
38
38
|
])) : O("", !0),
|
|
39
39
|
Ee(n.$slots, "default", Fe(n.$attrs, {
|
|
40
40
|
class: { "opacity-60": n.item.disabled }
|
|
41
41
|
})),
|
|
42
|
-
n.error ? (r(), u("span",
|
|
42
|
+
n.error ? (r(), u("span", tl, K(n.error), 1)) : O("", !0)
|
|
43
43
|
]));
|
|
44
44
|
}
|
|
45
|
-
}),
|
|
45
|
+
}), ol = { class: "w-full relative flex flex-row items-center gap-2" }, al = {
|
|
46
46
|
key: 0,
|
|
47
47
|
class: "text-red-500 text-[14px]"
|
|
48
|
-
},
|
|
48
|
+
}, nl = {
|
|
49
49
|
key: 1,
|
|
50
50
|
class: "text-red-500 text-[10px] absolute bottom-[-14px]"
|
|
51
|
-
},
|
|
51
|
+
}, sl = /* @__PURE__ */ q({
|
|
52
52
|
__name: "vs-layout-horizontal",
|
|
53
53
|
props: {
|
|
54
54
|
ua: { default: "" },
|
|
@@ -80,14 +80,14 @@ const Xt = { class: "w-full relative" }, Qt = {
|
|
|
80
80
|
const m = `${p * 100}%`;
|
|
81
81
|
return { flexBasis: m, maxWidth: m };
|
|
82
82
|
});
|
|
83
|
-
return (d, c) => (r(), u("div",
|
|
83
|
+
return (d, c) => (r(), u("div", ol, [
|
|
84
84
|
o.value ? (r(), u("span", {
|
|
85
85
|
key: 0,
|
|
86
86
|
class: "text-sm text-gray-900 font-medium flex shrink-0",
|
|
87
87
|
style: ye(s.value)
|
|
88
88
|
}, [
|
|
89
89
|
ge(K(d.ua || d.label) + " ", 1),
|
|
90
|
-
d.item?.rules?.includes("required") && (d.ua || d.label) ? (r(), u("span",
|
|
90
|
+
d.item?.rules?.includes("required") && (d.ua || d.label) ? (r(), u("span", al, "*")) : O("", !0)
|
|
91
91
|
], 4)) : O("", !0),
|
|
92
92
|
l("div", {
|
|
93
93
|
class: "flex-1 min-w-0",
|
|
@@ -95,13 +95,13 @@ const Xt = { class: "w-full relative" }, Qt = {
|
|
|
95
95
|
}, [
|
|
96
96
|
Ee(d.$slots, "default", gt(bt(d.$attrs)))
|
|
97
97
|
], 4),
|
|
98
|
-
d.error ? (r(), u("span",
|
|
98
|
+
d.error ? (r(), u("span", nl, K(d.error), 1)) : O("", !0)
|
|
99
99
|
]));
|
|
100
100
|
}
|
|
101
|
-
}),
|
|
101
|
+
}), rl = { class: "w-full relative" }, il = {
|
|
102
102
|
key: 0,
|
|
103
103
|
class: "text-red-500 text-[10px] absolute bottom-[-14px]"
|
|
104
|
-
},
|
|
104
|
+
}, ul = /* @__PURE__ */ q({
|
|
105
105
|
__name: "vs-layout-inline",
|
|
106
106
|
props: {
|
|
107
107
|
ua: { default: "" },
|
|
@@ -116,24 +116,24 @@ const Xt = { class: "w-full relative" }, Qt = {
|
|
|
116
116
|
columns: {}
|
|
117
117
|
},
|
|
118
118
|
setup(a) {
|
|
119
|
-
return (e, t) => (r(), u("div",
|
|
119
|
+
return (e, t) => (r(), u("div", rl, [
|
|
120
120
|
Ee(e.$slots, "default", gt(bt(e.$attrs))),
|
|
121
|
-
e.error ? (r(), u("span",
|
|
121
|
+
e.error ? (r(), u("span", il, K(e.error), 1)) : O("", !0)
|
|
122
122
|
]));
|
|
123
123
|
}
|
|
124
|
-
}),
|
|
124
|
+
}), dl = { class: "flex-1 min-w-0" }, cl = {
|
|
125
125
|
key: 0,
|
|
126
126
|
class: "text-sm font-medium text-slate-700 dark:text-slate-200 flex items-center gap-1"
|
|
127
|
-
},
|
|
127
|
+
}, pl = { class: "truncate" }, fl = {
|
|
128
128
|
key: 0,
|
|
129
129
|
class: "text-red-500 text-[14px]"
|
|
130
|
-
},
|
|
130
|
+
}, vl = {
|
|
131
131
|
key: 1,
|
|
132
132
|
class: "text-xs text-slate-500 dark:text-slate-400"
|
|
133
|
-
},
|
|
133
|
+
}, ml = {
|
|
134
134
|
key: 0,
|
|
135
135
|
class: "mt-1 text-xs text-red-500"
|
|
136
|
-
},
|
|
136
|
+
}, hl = /* @__PURE__ */ q({
|
|
137
137
|
__name: "vs-layout-settings",
|
|
138
138
|
props: {
|
|
139
139
|
ua: { default: "" },
|
|
@@ -167,12 +167,12 @@ const Xt = { class: "w-full relative" }, Qt = {
|
|
|
167
167
|
l("div", {
|
|
168
168
|
class: D(["gap-2 md:flex-row md:items-center md:justify-between", [["switcher", "native-select"].includes(d.item.type) ? "flex flex-col" : ""]])
|
|
169
169
|
}, [
|
|
170
|
-
l("div",
|
|
171
|
-
d.ua || d.label ? (r(), u("p",
|
|
172
|
-
l("span",
|
|
173
|
-
o.value ? (r(), u("span",
|
|
170
|
+
l("div", dl, [
|
|
171
|
+
d.ua || d.label ? (r(), u("p", cl, [
|
|
172
|
+
l("span", pl, K(d.item[t.value] || d.ua || d.label), 1),
|
|
173
|
+
o.value ? (r(), u("span", fl, "*")) : O("", !0)
|
|
174
174
|
])) : O("", !0),
|
|
175
|
-
n.value ? (r(), u("p",
|
|
175
|
+
n.value ? (r(), u("p", vl, K(n.value), 1)) : O("", !0)
|
|
176
176
|
]),
|
|
177
177
|
l("div", {
|
|
178
178
|
class: D(["w-full", ["select", "native-select"].includes(d.item.type) ? "md:w-[30%]" : "md:w-auto"])
|
|
@@ -180,14 +180,14 @@ const Xt = { class: "w-full relative" }, Qt = {
|
|
|
180
180
|
Ee(d.$slots, "default", gt(bt(d.$attrs)))
|
|
181
181
|
], 2)
|
|
182
182
|
], 2),
|
|
183
|
-
s.value ? (r(), u("p",
|
|
183
|
+
s.value ? (r(), u("p", ml, K(s.value), 1)) : O("", !0)
|
|
184
184
|
], 2));
|
|
185
185
|
}
|
|
186
|
-
}),
|
|
187
|
-
default:
|
|
188
|
-
horizontal:
|
|
189
|
-
inline:
|
|
190
|
-
settings:
|
|
186
|
+
}), gl = {
|
|
187
|
+
default: ll,
|
|
188
|
+
horizontal: sl,
|
|
189
|
+
inline: ul,
|
|
190
|
+
settings: hl
|
|
191
191
|
};
|
|
192
192
|
function ke(a) {
|
|
193
193
|
return {
|
|
@@ -197,7 +197,7 @@ function ke(a) {
|
|
|
197
197
|
})
|
|
198
198
|
};
|
|
199
199
|
}
|
|
200
|
-
const
|
|
200
|
+
const bl = ["placeholder", "disabled"], yl = /* @__PURE__ */ q({
|
|
201
201
|
__name: "vs-input-password",
|
|
202
202
|
props: /* @__PURE__ */ re({
|
|
203
203
|
style: { default: () => ({}) },
|
|
@@ -223,11 +223,11 @@ const yl = ["placeholder", "disabled"], xl = /* @__PURE__ */ q({
|
|
|
223
223
|
style: {
|
|
224
224
|
border: "1px solid #CFD9E0"
|
|
225
225
|
}
|
|
226
|
-
}, null, 10,
|
|
226
|
+
}, null, 10, bl)), [
|
|
227
227
|
[ve, n.value]
|
|
228
228
|
]);
|
|
229
229
|
}
|
|
230
|
-
}),
|
|
230
|
+
}), xl = ["placeholder", "disabled"], We = /* @__PURE__ */ q({
|
|
231
231
|
__name: "vs-input-text",
|
|
232
232
|
props: /* @__PURE__ */ re({
|
|
233
233
|
style: { default: () => ({}) },
|
|
@@ -249,15 +249,15 @@ const yl = ["placeholder", "disabled"], xl = /* @__PURE__ */ q({
|
|
|
249
249
|
"onUpdate:modelValue": d[0] || (d[0] = (c) => n.value = c),
|
|
250
250
|
placeholder: s.value,
|
|
251
251
|
disabled: o.value,
|
|
252
|
-
class: D(["py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [ee(t), { "!border-red-600": i.error }]]),
|
|
252
|
+
class: D(["py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [i.customClass, ee(t), { "!border-red-600": i.error }]]),
|
|
253
253
|
style: {
|
|
254
254
|
border: "1px solid #CFD9E0"
|
|
255
255
|
}
|
|
256
|
-
}, null, 10,
|
|
256
|
+
}, null, 10, xl)), [
|
|
257
257
|
[ve, n.value]
|
|
258
258
|
]);
|
|
259
259
|
}
|
|
260
|
-
}),
|
|
260
|
+
}), wl = ["placeholder", "disabled", "min", "max"], kl = /* @__PURE__ */ q({
|
|
261
261
|
__name: "vs-input-number",
|
|
262
262
|
props: /* @__PURE__ */ re({
|
|
263
263
|
min: {},
|
|
@@ -288,7 +288,7 @@ const yl = ["placeholder", "disabled"], xl = /* @__PURE__ */ q({
|
|
|
288
288
|
},
|
|
289
289
|
min: s.min,
|
|
290
290
|
max: s.max
|
|
291
|
-
}, null, 10,
|
|
291
|
+
}, null, 10, wl)), [
|
|
292
292
|
[ve, n.value]
|
|
293
293
|
]);
|
|
294
294
|
}
|
|
@@ -297,7 +297,7 @@ const yl = ["placeholder", "disabled"], xl = /* @__PURE__ */ q({
|
|
|
297
297
|
for (const [n, o] of e)
|
|
298
298
|
t[n] = o;
|
|
299
299
|
return t;
|
|
300
|
-
},
|
|
300
|
+
}, _l = {}, $l = {
|
|
301
301
|
xmlns: "http://www.w3.org/2000/svg",
|
|
302
302
|
viewBox: "0 0 24 24",
|
|
303
303
|
fill: "none",
|
|
@@ -307,8 +307,8 @@ const yl = ["placeholder", "disabled"], xl = /* @__PURE__ */ q({
|
|
|
307
307
|
"stroke-linejoin": "round",
|
|
308
308
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-check"
|
|
309
309
|
};
|
|
310
|
-
function
|
|
311
|
-
return r(), u("svg",
|
|
310
|
+
function Cl(a, e) {
|
|
311
|
+
return r(), u("svg", $l, e[0] || (e[0] = [
|
|
312
312
|
l("path", {
|
|
313
313
|
stroke: "none",
|
|
314
314
|
d: "M0 0h24v24H0z",
|
|
@@ -317,7 +317,7 @@ function Vl(a, e) {
|
|
|
317
317
|
l("path", { d: "M5 12l5 5l10 -10" }, null, -1)
|
|
318
318
|
]));
|
|
319
319
|
}
|
|
320
|
-
const
|
|
320
|
+
const Vl = /* @__PURE__ */ Y(_l, [["render", Cl]]), Ml = { class: "flex items-center gap-[4px]" }, Ll = ["value", "id", "disabled"], Sl = ["for"], Bl = { class: "text-[14px] text-gray-700 flex items-center dark:text-neutral-400" }, jl = /* @__PURE__ */ q({
|
|
321
321
|
__name: "vs-checkbox-default",
|
|
322
322
|
props: {
|
|
323
323
|
value: { default: "" },
|
|
@@ -334,7 +334,7 @@ const Ml = /* @__PURE__ */ Y($l, [["render", Vl]]), Ll = { class: "flex items-ce
|
|
|
334
334
|
get: () => n.modelValue,
|
|
335
335
|
set: (i) => t("update:modelValue", i)
|
|
336
336
|
}), s = L(() => !!n.disabled);
|
|
337
|
-
return (i, d) => (r(), u("div",
|
|
337
|
+
return (i, d) => (r(), u("div", Ml, [
|
|
338
338
|
se(l("input", {
|
|
339
339
|
type: "checkbox",
|
|
340
340
|
value: i.value,
|
|
@@ -342,8 +342,8 @@ const Ml = /* @__PURE__ */ Y($l, [["render", Vl]]), Ll = { class: "flex items-ce
|
|
|
342
342
|
class: D(["shrink-0 border border-solid hidden border-gray-700 w-3.5 h-3.5 rounded text-blue-600 focus:ring-offset-0 dark:bg-neutral-800 dark:border-neutral-700 cursor-pointer", { "!cursor-not-allowed": s.value }]),
|
|
343
343
|
id: i.id,
|
|
344
344
|
disabled: s.value
|
|
345
|
-
}, null, 10,
|
|
346
|
-
[
|
|
345
|
+
}, null, 10, Ll), [
|
|
346
|
+
[At, o.value]
|
|
347
347
|
]),
|
|
348
348
|
l("label", {
|
|
349
349
|
for: i.id,
|
|
@@ -352,23 +352,23 @@ const Ml = /* @__PURE__ */ Y($l, [["render", Vl]]), Ll = { class: "flex items-ce
|
|
|
352
352
|
l("div", {
|
|
353
353
|
class: D(["h-[16px] text-white w-[16px] flex items-center justify-center shrink-0 border rounded", [o.value ? "bg-blue-600 border-blue-600" : "bg-white border-gray-600", i.error ? "border-red-600" : ""]])
|
|
354
354
|
}, [
|
|
355
|
-
P(
|
|
355
|
+
P(Vl, {
|
|
356
356
|
height: "12",
|
|
357
357
|
width: "12"
|
|
358
358
|
})
|
|
359
359
|
], 2),
|
|
360
|
-
l("span",
|
|
360
|
+
l("span", Bl, [
|
|
361
361
|
Ee(i.$slots, "default", {}, () => [
|
|
362
362
|
ge(K(i.label), 1)
|
|
363
363
|
])
|
|
364
364
|
])
|
|
365
|
-
], 10,
|
|
365
|
+
], 10, Sl)
|
|
366
366
|
]));
|
|
367
367
|
}
|
|
368
|
-
}),
|
|
368
|
+
}), El = ["name", "value", "disabled"], Il = { class: "flex items-center gap-[6px] text-[14px]" }, Al = {
|
|
369
369
|
key: 0,
|
|
370
370
|
class: "text-[16px]"
|
|
371
|
-
},
|
|
371
|
+
}, zl = ["src"], Tl = /* @__PURE__ */ q({
|
|
372
372
|
__name: "vs-checkbox-buttons",
|
|
373
373
|
props: {
|
|
374
374
|
value: { type: [String, Number, Boolean], default: "" },
|
|
@@ -398,11 +398,11 @@ const Ml = /* @__PURE__ */ Y($l, [["render", Vl]]), Ll = { class: "flex items-ce
|
|
|
398
398
|
value: d.value,
|
|
399
399
|
"onUpdate:modelValue": c[0] || (c[0] = (p) => o.value = p),
|
|
400
400
|
disabled: d.disabled
|
|
401
|
-
}, null, 8,
|
|
402
|
-
[
|
|
401
|
+
}, null, 8, El), [
|
|
402
|
+
[At, o.value]
|
|
403
403
|
]),
|
|
404
|
-
l("span",
|
|
405
|
-
d.icon || d.imgUrl ? (r(), u("span",
|
|
404
|
+
l("span", Il, [
|
|
405
|
+
d.icon || d.imgUrl ? (r(), u("span", Al, [
|
|
406
406
|
d.icon ? (r(), u("i", {
|
|
407
407
|
key: 0,
|
|
408
408
|
class: D(d.icon)
|
|
@@ -413,7 +413,7 @@ const Ml = /* @__PURE__ */ Y($l, [["render", Vl]]), Ll = { class: "flex items-ce
|
|
|
413
413
|
width: "16",
|
|
414
414
|
height: "16",
|
|
415
415
|
alt: "icon"
|
|
416
|
-
}, null, 8,
|
|
416
|
+
}, null, 8, zl)) : O("", !0)
|
|
417
417
|
])) : O("", !0),
|
|
418
418
|
Ee(d.$slots, "default", {}, () => [
|
|
419
419
|
ge(K(d.label), 1)
|
|
@@ -421,7 +421,7 @@ const Ml = /* @__PURE__ */ Y($l, [["render", Vl]]), Ll = { class: "flex items-ce
|
|
|
421
421
|
])
|
|
422
422
|
], 2));
|
|
423
423
|
}
|
|
424
|
-
}),
|
|
424
|
+
}), Ol = { class: "flex items-center" }, mt = /* @__PURE__ */ q({
|
|
425
425
|
__name: "vs-input-checkbox-item",
|
|
426
426
|
props: {
|
|
427
427
|
value: { default: "" },
|
|
@@ -448,8 +448,8 @@ const Ml = /* @__PURE__ */ Y($l, [["render", Vl]]), Ll = { class: "flex items-ce
|
|
|
448
448
|
n("update:modelValue", d);
|
|
449
449
|
}
|
|
450
450
|
}), i = V(`vs-checkbox-${t.view || "default"}`);
|
|
451
|
-
return (d, c) => (r(), u("div",
|
|
452
|
-
(r(), ce(Ue(i.value === "vs-checkbox-buttons" ? ee(
|
|
451
|
+
return (d, c) => (r(), u("div", Ol, [
|
|
452
|
+
(r(), ce(Ue(i.value === "vs-checkbox-buttons" ? ee(Tl) : ee(jl)), {
|
|
453
453
|
value: d.value,
|
|
454
454
|
label: d.label,
|
|
455
455
|
info: d.option?.info,
|
|
@@ -469,7 +469,7 @@ const Ml = /* @__PURE__ */ Y($l, [["render", Vl]]), Ll = { class: "flex items-ce
|
|
|
469
469
|
}, 8, ["value", "label", "info", "disabled", "modelValue", "icon", "imgUrl", "style", "error"]))
|
|
470
470
|
]));
|
|
471
471
|
}
|
|
472
|
-
}),
|
|
472
|
+
}), Dl = {}, Fl = {
|
|
473
473
|
xmlns: "http://www.w3.org/2000/svg",
|
|
474
474
|
viewBox: "0 0 24 24",
|
|
475
475
|
fill: "none",
|
|
@@ -479,8 +479,8 @@ const Ml = /* @__PURE__ */ Y($l, [["render", Vl]]), Ll = { class: "flex items-ce
|
|
|
479
479
|
"stroke-linejoin": "round",
|
|
480
480
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-chevron-down"
|
|
481
481
|
};
|
|
482
|
-
function
|
|
483
|
-
return r(), u("svg",
|
|
482
|
+
function Ul(a, e) {
|
|
483
|
+
return r(), u("svg", Fl, e[0] || (e[0] = [
|
|
484
484
|
l("path", {
|
|
485
485
|
stroke: "none",
|
|
486
486
|
d: "M0 0h24v24H0z",
|
|
@@ -489,7 +489,7 @@ function Rl(a, e) {
|
|
|
489
489
|
l("path", { d: "M6 9l6 6l6 -6" }, null, -1)
|
|
490
490
|
]));
|
|
491
491
|
}
|
|
492
|
-
const
|
|
492
|
+
const Rl = /* @__PURE__ */ Y(Dl, [["render", Ul]]), Pl = {}, Hl = {
|
|
493
493
|
xmlns: "http://www.w3.org/2000/svg",
|
|
494
494
|
viewBox: "0 0 24 24",
|
|
495
495
|
fill: "none",
|
|
@@ -499,8 +499,8 @@ const Pl = /* @__PURE__ */ Y(Fl, [["render", Rl]]), Hl = {}, Nl = {
|
|
|
499
499
|
"stroke-linejoin": "round",
|
|
500
500
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-x"
|
|
501
501
|
};
|
|
502
|
-
function
|
|
503
|
-
return r(), u("svg",
|
|
502
|
+
function Nl(a, e) {
|
|
503
|
+
return r(), u("svg", Hl, e[0] || (e[0] = [
|
|
504
504
|
l("path", {
|
|
505
505
|
stroke: "none",
|
|
506
506
|
d: "M0 0h24v24H0z",
|
|
@@ -510,7 +510,7 @@ function Kl(a, e) {
|
|
|
510
510
|
l("path", { d: "M6 6l12 12" }, null, -1)
|
|
511
511
|
]));
|
|
512
512
|
}
|
|
513
|
-
const wt = /* @__PURE__ */ Y(
|
|
513
|
+
const wt = /* @__PURE__ */ Y(Pl, [["render", Nl]]), Kl = {}, ql = {
|
|
514
514
|
xmlns: "http://www.w3.org/2000/svg",
|
|
515
515
|
width: "24",
|
|
516
516
|
height: "24",
|
|
@@ -521,8 +521,8 @@ const wt = /* @__PURE__ */ Y(Hl, [["render", Kl]]), ql = {}, Gl = {
|
|
|
521
521
|
"stroke-linecap": "round",
|
|
522
522
|
"stroke-linejoin": "round"
|
|
523
523
|
};
|
|
524
|
-
function
|
|
525
|
-
return r(), u("svg",
|
|
524
|
+
function Gl(a, e) {
|
|
525
|
+
return r(), u("svg", ql, e[0] || (e[0] = [
|
|
526
526
|
l("path", {
|
|
527
527
|
stroke: "none",
|
|
528
528
|
d: "M0 0h24v24H0z",
|
|
@@ -533,13 +533,13 @@ function Zl(a, e) {
|
|
|
533
533
|
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)
|
|
534
534
|
]));
|
|
535
535
|
}
|
|
536
|
-
const
|
|
536
|
+
const Zl = /* @__PURE__ */ Y(Kl, [["render", Gl]]), Wl = {
|
|
537
537
|
key: 0,
|
|
538
538
|
class: "flex items-start gap-x-1"
|
|
539
|
-
},
|
|
539
|
+
}, Jl = {
|
|
540
540
|
key: 0,
|
|
541
541
|
class: "text-red-500 text-[14px]"
|
|
542
|
-
},
|
|
542
|
+
}, Yl = ["title"], Xl = ["disabled"], Dt = /* @__PURE__ */ q({
|
|
543
543
|
__name: "vs-input-switcher",
|
|
544
544
|
props: /* @__PURE__ */ re({
|
|
545
545
|
rules: { default: () => [] },
|
|
@@ -561,14 +561,14 @@ const Wl = /* @__PURE__ */ Y(ql, [["render", Zl]]), Jl = {
|
|
|
561
561
|
emits: ["update:modelValue"],
|
|
562
562
|
setup(a) {
|
|
563
563
|
const e = a, t = ue(a, "modelValue");
|
|
564
|
-
return (n, o) => e.view === "checkbox" ? (r(), u("div",
|
|
564
|
+
return (n, o) => e.view === "checkbox" ? (r(), u("div", Wl, [
|
|
565
565
|
P(mt, {
|
|
566
566
|
modelValue: t.value,
|
|
567
567
|
"onUpdate:modelValue": o[0] || (o[0] = (s) => t.value = s),
|
|
568
568
|
label: n.text,
|
|
569
569
|
error: n.error || ""
|
|
570
570
|
}, null, 8, ["modelValue", "label", "error"]),
|
|
571
|
-
n.rules?.includes("required") ? (r(), u("span",
|
|
571
|
+
n.rules?.includes("required") ? (r(), u("span", Jl, "*")) : O("", !0),
|
|
572
572
|
n.i ? (r(), u("button", {
|
|
573
573
|
key: 1,
|
|
574
574
|
class: "cursor-pointer",
|
|
@@ -576,8 +576,8 @@ const Wl = /* @__PURE__ */ Y(ql, [["render", Zl]]), Jl = {
|
|
|
576
576
|
onClick: o[1] || (o[1] = me(() => {
|
|
577
577
|
}, ["prevent"]))
|
|
578
578
|
}, [
|
|
579
|
-
P(ee(
|
|
580
|
-
], 8,
|
|
579
|
+
P(ee(Zl), { class: "text-gray-500 w-[14px] h-[14px]" })
|
|
580
|
+
], 8, Yl)) : O("", !0)
|
|
581
581
|
])) : (r(), u("button", {
|
|
582
582
|
key: 1,
|
|
583
583
|
type: "button",
|
|
@@ -589,9 +589,9 @@ const Wl = /* @__PURE__ */ Y(ql, [["render", Zl]]), Jl = {
|
|
|
589
589
|
"data-state": "checked",
|
|
590
590
|
class: D(["pointer-events-none block h-4 w-4 rounded-full bg-white shadow-lg ring-0 transition-transform", [t.value ? "translate-x-4" : "translate-x-0"]])
|
|
591
591
|
}, null, 2)
|
|
592
|
-
], 10,
|
|
592
|
+
], 10, Xl));
|
|
593
593
|
}
|
|
594
|
-
}),
|
|
594
|
+
}), Ql = ["id", "innerHTML"], Ct = /* @__PURE__ */ q({
|
|
595
595
|
__name: "vs-input-static",
|
|
596
596
|
props: {
|
|
597
597
|
text: { default: "" },
|
|
@@ -609,9 +609,9 @@ const Wl = /* @__PURE__ */ Y(ql, [["render", Zl]]), Jl = {
|
|
|
609
609
|
id: e.name,
|
|
610
610
|
class: D(["text-gray-900", e.customClass]),
|
|
611
611
|
innerHTML: e.html ? e.html : e.text
|
|
612
|
-
}, null, 10,
|
|
612
|
+
}, null, 10, Ql));
|
|
613
613
|
}
|
|
614
|
-
}),
|
|
614
|
+
}), eo = ["placeholder", "disabled", "name"], to = /* @__PURE__ */ q({
|
|
615
615
|
__name: "vs-input-mask",
|
|
616
616
|
props: /* @__PURE__ */ re({
|
|
617
617
|
name: {},
|
|
@@ -672,9 +672,9 @@ const Wl = /* @__PURE__ */ Y(ql, [["render", Zl]]), Jl = {
|
|
|
672
672
|
style: {
|
|
673
673
|
border: "1px solid #CFD9E0"
|
|
674
674
|
}
|
|
675
|
-
}, null, 10,
|
|
675
|
+
}, null, 10, eo));
|
|
676
676
|
}
|
|
677
|
-
}),
|
|
677
|
+
}), lo = { class: "relative w-full bg-white rounded-lg" }, oo = ["placeholder", "disabled"], ao = /* @__PURE__ */ q({
|
|
678
678
|
__name: "vs-input-email",
|
|
679
679
|
props: /* @__PURE__ */ re({
|
|
680
680
|
style: { default: () => ({}) },
|
|
@@ -691,7 +691,7 @@ const Wl = /* @__PURE__ */ Y(ql, [["render", Zl]]), Jl = {
|
|
|
691
691
|
emits: ["update:modelValue"],
|
|
692
692
|
setup(a) {
|
|
693
693
|
const e = a, { inputClass: t } = ke(e.style), n = ue(a, "modelValue");
|
|
694
|
-
return (o, s) => (r(), u("div",
|
|
694
|
+
return (o, s) => (r(), u("div", lo, [
|
|
695
695
|
s[1] || (s[1] = we('<div class="absolute bottom-2/4 translate-y-2/4 left-[10px] cursor-pointer"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="stroke-gray-500 transition-all"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M3 7a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10z"></path><path d="M3 7l9 6l9 -6"></path></svg></div>', 1)),
|
|
696
696
|
se(l("input", {
|
|
697
697
|
type: "email",
|
|
@@ -702,12 +702,12 @@ const Wl = /* @__PURE__ */ Y(ql, [["render", Zl]]), Jl = {
|
|
|
702
702
|
style: {
|
|
703
703
|
border: "1px solid #CFD9E0"
|
|
704
704
|
}
|
|
705
|
-
}, null, 10,
|
|
705
|
+
}, null, 10, oo), [
|
|
706
706
|
[ve, n.value]
|
|
707
707
|
])
|
|
708
708
|
]));
|
|
709
709
|
}
|
|
710
|
-
}),
|
|
710
|
+
}), no = ["value", "disabled"], so = { class: "text-[13px] text-gray-700" }, ro = /* @__PURE__ */ q({
|
|
711
711
|
__name: "vs-input-radio-default",
|
|
712
712
|
props: /* @__PURE__ */ re({
|
|
713
713
|
style: {},
|
|
@@ -735,8 +735,8 @@ const Wl = /* @__PURE__ */ Y(ql, [["render", Zl]]), Jl = {
|
|
|
735
735
|
value: e.value,
|
|
736
736
|
disabled: n.value,
|
|
737
737
|
class: "hidden"
|
|
738
|
-
}, null, 8,
|
|
739
|
-
[
|
|
738
|
+
}, null, 8, no), [
|
|
739
|
+
[zt, t.value]
|
|
740
740
|
]),
|
|
741
741
|
l("span", {
|
|
742
742
|
class: D(["w-[16px] shrink-0 h-[16px] border rounded-full flex items-center justify-center mr-[10px]", [
|
|
@@ -749,10 +749,10 @@ const Wl = /* @__PURE__ */ Y(ql, [["render", Zl]]), Jl = {
|
|
|
749
749
|
class: D(["w-[12px] h-[12px] shrink-0 rounded-full", [`bg-${e.style?.primaryColor || "blue"}-500`]])
|
|
750
750
|
}, null, 2)) : O("", !0)
|
|
751
751
|
], 2),
|
|
752
|
-
l("span",
|
|
752
|
+
l("span", so, K(e.text), 1)
|
|
753
753
|
], 2));
|
|
754
754
|
}
|
|
755
|
-
}),
|
|
755
|
+
}), io = ["value", "disabled"], uo = { class: "text-[13px] text-gray-700" }, co = /* @__PURE__ */ q({
|
|
756
756
|
__name: "vs-input-radio-buttons",
|
|
757
757
|
props: /* @__PURE__ */ re({
|
|
758
758
|
style: {},
|
|
@@ -784,15 +784,15 @@ const Wl = /* @__PURE__ */ Y(ql, [["render", Zl]]), Jl = {
|
|
|
784
784
|
value: e.value,
|
|
785
785
|
disabled: n.value,
|
|
786
786
|
class: "hidden"
|
|
787
|
-
}, null, 8,
|
|
788
|
-
[
|
|
787
|
+
}, null, 8, io), [
|
|
788
|
+
[zt, t.value]
|
|
789
789
|
]),
|
|
790
|
-
l("span",
|
|
790
|
+
l("span", uo, K(e.text), 1)
|
|
791
791
|
], 2));
|
|
792
792
|
}
|
|
793
|
-
}),
|
|
794
|
-
"vs-input-radio-default":
|
|
795
|
-
"vs-input-radio-buttons":
|
|
793
|
+
}), po = {
|
|
794
|
+
"vs-input-radio-default": ro,
|
|
795
|
+
"vs-input-radio-buttons": co
|
|
796
796
|
}, Vt = /* @__PURE__ */ q({
|
|
797
797
|
__name: "vs-input-radio",
|
|
798
798
|
props: /* @__PURE__ */ re({
|
|
@@ -812,7 +812,7 @@ const Wl = /* @__PURE__ */ Y(ql, [["render", Zl]]), Jl = {
|
|
|
812
812
|
}),
|
|
813
813
|
emits: ["update:modelValue"],
|
|
814
814
|
setup(a) {
|
|
815
|
-
const e = a, t = ue(a, "modelValue"), n = L(() =>
|
|
815
|
+
const e = a, t = ue(a, "modelValue"), n = L(() => po[`vs-input-radio-${e.view}`]);
|
|
816
816
|
return (o, s) => (r(), u("div", {
|
|
817
817
|
class: D([o.position === "horizontal" ? "flex items-center flex-wrap gap-2" : ""])
|
|
818
818
|
}, [
|
|
@@ -826,13 +826,13 @@ const Wl = /* @__PURE__ */ Y(ql, [["render", Zl]]), Jl = {
|
|
|
826
826
|
}, { ref_for: !0 }, o.$attrs), null, 16, ["text", "value", "checked", "modelValue"]))), 128))
|
|
827
827
|
], 2));
|
|
828
828
|
}
|
|
829
|
-
}),
|
|
829
|
+
}), fo = {
|
|
830
830
|
key: 1,
|
|
831
831
|
class: "w-full flex flex-col gap-4"
|
|
832
|
-
},
|
|
832
|
+
}, vo = {
|
|
833
833
|
key: 0,
|
|
834
834
|
class: "text-sm font-medium text-muted-foreground my-2"
|
|
835
|
-
},
|
|
835
|
+
}, mo = "Без категорії", ho = /* @__PURE__ */ q({
|
|
836
836
|
__name: "vs-input-checkbox",
|
|
837
837
|
props: {
|
|
838
838
|
options: { default: () => [] },
|
|
@@ -853,7 +853,7 @@ const Wl = /* @__PURE__ */ Y(ql, [["render", Zl]]), Jl = {
|
|
|
853
853
|
},
|
|
854
854
|
emits: ["update:modelValue"],
|
|
855
855
|
setup(a, { emit: e }) {
|
|
856
|
-
const t = a, n = e, o = V([]), s =
|
|
856
|
+
const t = a, n = e, o = V([]), s = Tt({}), i = (g) => g?.value || g?.id || g?.text || g, d = (g) => g.text || String(g), c = (g) => `lg:col-span-${g || 12}`, p = L(() => [
|
|
857
857
|
t.position === "vertical" ? "flex flex-col" : "",
|
|
858
858
|
t.colSpan ? "grid" : "flex justify-start"
|
|
859
859
|
]), m = (g) => g == null || g === "" ? null : typeof g == "string" || typeof g == "number" ? g : String(g), v = L(() => {
|
|
@@ -873,7 +873,7 @@ const Wl = /* @__PURE__ */ Y(ql, [["render", Zl]]), Jl = {
|
|
|
873
873
|
const B = g.get(k) || [];
|
|
874
874
|
if (!B.length)
|
|
875
875
|
return null;
|
|
876
|
-
const b = k === null ? "group-null" : `group-${String(k)}`, $ = k === null ?
|
|
876
|
+
const b = k === null ? "group-null" : `group-${String(k)}`, $ = k === null ? mo : String(k);
|
|
877
877
|
return h.add(k), {
|
|
878
878
|
key: b,
|
|
879
879
|
label: $,
|
|
@@ -953,12 +953,12 @@ const Wl = /* @__PURE__ */ Y(ql, [["render", Zl]]), Jl = {
|
|
|
953
953
|
}
|
|
954
954
|
});
|
|
955
955
|
}
|
|
956
|
-
}), (g, j) => t.group ? (r(), u("div",
|
|
956
|
+
}), (g, j) => t.group ? (r(), u("div", fo, [
|
|
957
957
|
(r(!0), u(ne, null, de(v.value, (h) => (r(), u("div", {
|
|
958
958
|
key: h.key,
|
|
959
959
|
class: "flex flex-col gap-2"
|
|
960
960
|
}, [
|
|
961
|
-
h.label ? (r(), u("span",
|
|
961
|
+
h.label ? (r(), u("span", vo, K(h.label), 1)) : O("", !0),
|
|
962
962
|
l("div", {
|
|
963
963
|
class: D(["p-0 w-full gap-[12px]", p.value])
|
|
964
964
|
}, [
|
|
@@ -996,7 +996,7 @@ const Wl = /* @__PURE__ */ Y(ql, [["render", Zl]]), Jl = {
|
|
|
996
996
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value", "class", "disabled", "label", "icon", "imgUrl", "option", "view"]))), 128))
|
|
997
997
|
], 2));
|
|
998
998
|
}
|
|
999
|
-
}),
|
|
999
|
+
}), go = /* @__PURE__ */ Y(ho, [["__scopeId", "data-v-8e66207e"]]), bo = ["type", "placeholder", "disabled"], yo = /* @__PURE__ */ q({
|
|
1000
1000
|
__name: "vs-input-date1",
|
|
1001
1001
|
props: {
|
|
1002
1002
|
style: { default: () => ({}) },
|
|
@@ -1028,8 +1028,8 @@ const Wl = /* @__PURE__ */ Y(ql, [["render", Zl]]), Jl = {
|
|
|
1028
1028
|
style: {
|
|
1029
1029
|
border: "1px solid #CFD9E0"
|
|
1030
1030
|
}
|
|
1031
|
-
}, null, 10,
|
|
1032
|
-
[
|
|
1031
|
+
}, null, 10, bo)), [
|
|
1032
|
+
[Kt, i.value]
|
|
1033
1033
|
]);
|
|
1034
1034
|
}
|
|
1035
1035
|
}), Mt = async (a, e, t, n) => {
|
|
@@ -1050,7 +1050,7 @@ const Wl = /* @__PURE__ */ Y(ql, [["render", Zl]]), Jl = {
|
|
|
1050
1050
|
position: "right-bottom"
|
|
1051
1051
|
}), console.error("Сталась помилка завантаження файлу", o), null;
|
|
1052
1052
|
}
|
|
1053
|
-
},
|
|
1053
|
+
}, xo = async (a) => {
|
|
1054
1054
|
try {
|
|
1055
1055
|
return await fetch(`file/delete${a}`), !0;
|
|
1056
1056
|
} catch (e) {
|
|
@@ -1063,7 +1063,7 @@ const Wl = /* @__PURE__ */ Y(ql, [["render", Zl]]), Jl = {
|
|
|
1063
1063
|
} catch (e) {
|
|
1064
1064
|
console.error(e.message);
|
|
1065
1065
|
}
|
|
1066
|
-
},
|
|
1066
|
+
}, wo = {}, ko = {
|
|
1067
1067
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1068
1068
|
width: "24",
|
|
1069
1069
|
height: "24",
|
|
@@ -1074,13 +1074,13 @@ const Wl = /* @__PURE__ */ Y(ql, [["render", Zl]]), Jl = {
|
|
|
1074
1074
|
"stroke-linecap": "round",
|
|
1075
1075
|
"stroke-linejoin": "round"
|
|
1076
1076
|
};
|
|
1077
|
-
function
|
|
1078
|
-
return r(), u("svg",
|
|
1077
|
+
function _o(a, e) {
|
|
1078
|
+
return r(), u("svg", ko, e[0] || (e[0] = [
|
|
1079
1079
|
l("path", { d: "M5 12h14" }, null, -1),
|
|
1080
1080
|
l("path", { d: "M12 5v14" }, null, -1)
|
|
1081
1081
|
]));
|
|
1082
1082
|
}
|
|
1083
|
-
const Te = /* @__PURE__ */ Y(
|
|
1083
|
+
const Te = /* @__PURE__ */ Y(wo, [["render", _o]]), $o = {}, Co = {
|
|
1084
1084
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1085
1085
|
class: "icon icon-tabler icon-tabler-file-text",
|
|
1086
1086
|
width: "44",
|
|
@@ -1092,12 +1092,12 @@ const Te = /* @__PURE__ */ Y(ko, [["render", $o]]), Co = {}, Vo = {
|
|
|
1092
1092
|
"stroke-linecap": "round",
|
|
1093
1093
|
"stroke-linejoin": "round"
|
|
1094
1094
|
};
|
|
1095
|
-
function
|
|
1096
|
-
return r(), u("svg",
|
|
1095
|
+
function Vo(a, e, t, n, o, s) {
|
|
1096
|
+
return r(), u("svg", Co, e[0] || (e[0] = [
|
|
1097
1097
|
we('<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)
|
|
1098
1098
|
]));
|
|
1099
1099
|
}
|
|
1100
|
-
const
|
|
1100
|
+
const Mo = /* @__PURE__ */ Y($o, [["render", Vo]]), Lo = {}, So = {
|
|
1101
1101
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1102
1102
|
class: "icon icon-tabler icon-tabler-table",
|
|
1103
1103
|
width: "44",
|
|
@@ -1109,8 +1109,8 @@ const Lo = /* @__PURE__ */ Y(Co, [["render", Mo]]), So = {}, Bo = {
|
|
|
1109
1109
|
"stroke-linecap": "round",
|
|
1110
1110
|
"stroke-linejoin": "round"
|
|
1111
1111
|
};
|
|
1112
|
-
function
|
|
1113
|
-
return r(), u("svg",
|
|
1112
|
+
function Bo(a, e, t, n, o, s) {
|
|
1113
|
+
return r(), u("svg", So, e[0] || (e[0] = [
|
|
1114
1114
|
l("path", {
|
|
1115
1115
|
stroke: "none",
|
|
1116
1116
|
d: "M0 0h24v24H0z",
|
|
@@ -1137,7 +1137,7 @@ function jo(a, e, t, n, o, s) {
|
|
|
1137
1137
|
}, null, -1)
|
|
1138
1138
|
]));
|
|
1139
1139
|
}
|
|
1140
|
-
const
|
|
1140
|
+
const jo = /* @__PURE__ */ Y(Lo, [["render", Bo]]), Eo = {}, Io = {
|
|
1141
1141
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1142
1142
|
width: "24",
|
|
1143
1143
|
height: "24",
|
|
@@ -1148,12 +1148,12 @@ const Eo = /* @__PURE__ */ Y(So, [["render", jo]]), Io = {}, Ao = {
|
|
|
1148
1148
|
"stroke-linecap": "round",
|
|
1149
1149
|
"stroke-linejoin": "round"
|
|
1150
1150
|
};
|
|
1151
|
-
function
|
|
1152
|
-
return r(), u("svg",
|
|
1151
|
+
function Ao(a, e) {
|
|
1152
|
+
return r(), u("svg", Io, e[0] || (e[0] = [
|
|
1153
1153
|
we('<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="M9 9l1 0"></path><path d="M9 13l6 0"></path><path d="M9 17l6 0"></path>', 6)
|
|
1154
1154
|
]));
|
|
1155
1155
|
}
|
|
1156
|
-
const
|
|
1156
|
+
const Ft = /* @__PURE__ */ Y(Eo, [["render", Ao]]), zo = {}, To = {
|
|
1157
1157
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1158
1158
|
class: "icon icon-tabler icon-tabler-file-zip",
|
|
1159
1159
|
width: "44",
|
|
@@ -1165,12 +1165,12 @@ const Ut = /* @__PURE__ */ Y(Io, [["render", zo]]), To = {}, Oo = {
|
|
|
1165
1165
|
"stroke-linecap": "round",
|
|
1166
1166
|
"stroke-linejoin": "round"
|
|
1167
1167
|
};
|
|
1168
|
-
function
|
|
1169
|
-
return r(), u("svg",
|
|
1168
|
+
function Oo(a, e, t, n, o, s) {
|
|
1169
|
+
return r(), u("svg", To, e[0] || (e[0] = [
|
|
1170
1170
|
we('<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)
|
|
1171
1171
|
]));
|
|
1172
1172
|
}
|
|
1173
|
-
const
|
|
1173
|
+
const Do = /* @__PURE__ */ Y(zo, [["render", Oo]]), Fo = {}, Uo = {
|
|
1174
1174
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1175
1175
|
class: "icon icon-tabler icon-tabler-file-code",
|
|
1176
1176
|
width: "44",
|
|
@@ -1182,25 +1182,25 @@ const Fo = /* @__PURE__ */ Y(To, [["render", Do]]), Uo = {}, Ro = {
|
|
|
1182
1182
|
"stroke-linecap": "round",
|
|
1183
1183
|
"stroke-linejoin": "round"
|
|
1184
1184
|
};
|
|
1185
|
-
function
|
|
1186
|
-
return r(), u("svg",
|
|
1185
|
+
function Ro(a, e, t, n, o, s) {
|
|
1186
|
+
return r(), u("svg", Uo, e[0] || (e[0] = [
|
|
1187
1187
|
we('<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)
|
|
1188
1188
|
]));
|
|
1189
1189
|
}
|
|
1190
|
-
const
|
|
1190
|
+
const Po = /* @__PURE__ */ Y(Fo, [["render", Ro]]), Ho = (a) => {
|
|
1191
1191
|
if (!a) return "";
|
|
1192
1192
|
const e = a?.split(".");
|
|
1193
1193
|
return e[e.length - 1];
|
|
1194
|
-
},
|
|
1195
|
-
const e =
|
|
1194
|
+
}, No = (a) => {
|
|
1195
|
+
const e = Ho(a), t = {
|
|
1196
1196
|
imageFormat: ["tiff", "jpg", "jpeg", "png", "svg", "ico", "webp"],
|
|
1197
1197
|
sheetsFormat: ["xls", "csv", "xlsx"],
|
|
1198
1198
|
archivesFormat: ["zip", "rar"],
|
|
1199
1199
|
textsFormat: ["json", "geojson", "txt", "yml", "yaml", "shp"],
|
|
1200
1200
|
documentsFormat: ["pdf"]
|
|
1201
1201
|
};
|
|
1202
|
-
return t.imageFormat.includes(e) ? "img" : t.sheetsFormat.includes(e) ?
|
|
1203
|
-
},
|
|
1202
|
+
return t.imageFormat.includes(e) ? "img" : t.sheetsFormat.includes(e) ? jo : t.textsFormat.includes(e) ? Po : t.documentsFormat.includes(e) ? Mo : t.archivesFormat.includes(e) ? Do : Ft;
|
|
1203
|
+
}, Ko = {}, qo = {
|
|
1204
1204
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1205
1205
|
width: "24",
|
|
1206
1206
|
height: "24",
|
|
@@ -1212,12 +1212,12 @@ const Ho = /* @__PURE__ */ Y(Uo, [["render", Po]]), No = (a) => {
|
|
|
1212
1212
|
"stroke-linejoin": "round",
|
|
1213
1213
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-trash"
|
|
1214
1214
|
};
|
|
1215
|
-
function
|
|
1216
|
-
return r(), u("svg",
|
|
1215
|
+
function Go(a, e) {
|
|
1216
|
+
return r(), u("svg", qo, e[0] || (e[0] = [
|
|
1217
1217
|
we('<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)
|
|
1218
1218
|
]));
|
|
1219
1219
|
}
|
|
1220
|
-
const ut = /* @__PURE__ */ Y(
|
|
1220
|
+
const ut = /* @__PURE__ */ Y(Ko, [["render", Go]]), Zo = {}, Wo = {
|
|
1221
1221
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1222
1222
|
width: "24",
|
|
1223
1223
|
height: "24",
|
|
@@ -1229,8 +1229,8 @@ const ut = /* @__PURE__ */ Y(qo, [["render", Zo]]), Wo = {}, Jo = {
|
|
|
1229
1229
|
"stroke-linejoin": "round",
|
|
1230
1230
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-download"
|
|
1231
1231
|
};
|
|
1232
|
-
function
|
|
1233
|
-
return r(), u("svg",
|
|
1232
|
+
function Jo(a, e) {
|
|
1233
|
+
return r(), u("svg", Wo, e[0] || (e[0] = [
|
|
1234
1234
|
l("path", {
|
|
1235
1235
|
stroke: "none",
|
|
1236
1236
|
d: "M0 0h24v24H0z",
|
|
@@ -1241,7 +1241,7 @@ function Yo(a, e) {
|
|
|
1241
1241
|
l("path", { d: "M12 4l0 12" }, null, -1)
|
|
1242
1242
|
]));
|
|
1243
1243
|
}
|
|
1244
|
-
const
|
|
1244
|
+
const Ut = /* @__PURE__ */ Y(Zo, [["render", Jo]]), Yo = ["title"], Xo = { class: "absolute hidden top-0 right-0 flex items-center gap-x-2 w-full h-full justify-center" }, Qo = /* @__PURE__ */ q({
|
|
1245
1245
|
__name: "vs-input-file-list-item",
|
|
1246
1246
|
props: /* @__PURE__ */ re({
|
|
1247
1247
|
format: {},
|
|
@@ -1267,17 +1267,17 @@ const Rt = /* @__PURE__ */ Y(Wo, [["render", Yo]]), Xo = ["title"], Qo = { class
|
|
|
1267
1267
|
title: t.value,
|
|
1268
1268
|
class: "h-[120px] w-[120px] border text-gray-300 border-dashed border-[#CFD9E0] rounded-lg overflow-hidden relative item-file"
|
|
1269
1269
|
}, [
|
|
1270
|
-
(r(), ce(Ue(ee(
|
|
1270
|
+
(r(), ce(Ue(ee(No)(t.value)), {
|
|
1271
1271
|
src: t.value,
|
|
1272
1272
|
alt: "file",
|
|
1273
1273
|
class: "w-full h-full object-cover cursor-pointer",
|
|
1274
1274
|
onClick: s[0] || (s[0] = (i) => ee(Lt)(t.value))
|
|
1275
1275
|
}, null, 8, ["src"])),
|
|
1276
|
-
l("div",
|
|
1276
|
+
l("div", Xo, [
|
|
1277
1277
|
l("button", {
|
|
1278
1278
|
type: "button",
|
|
1279
1279
|
onClick: s[1] || (s[1] = (i) => {
|
|
1280
|
-
ee(
|
|
1280
|
+
ee(xo)(t.value), e.value = n.multiple ? e.value?.filter((d) => d !== t.value) : "";
|
|
1281
1281
|
}),
|
|
1282
1282
|
class: "w-6 h-6 flex items-center justify-center text-gray-500 bg-gray-200 rounded-lg hover:text-red-500"
|
|
1283
1283
|
}, [
|
|
@@ -1288,21 +1288,21 @@ const Rt = /* @__PURE__ */ Y(Wo, [["render", Yo]]), Xo = ["title"], Qo = { class
|
|
|
1288
1288
|
onClick: s[2] || (s[2] = (i) => ee(Lt)(t.value)),
|
|
1289
1289
|
class: "w-6 h-6 flex items-center justify-center text-gray-500 bg-gray-200 rounded-lg hover:text-blue-500"
|
|
1290
1290
|
}, [
|
|
1291
|
-
P(
|
|
1291
|
+
P(Ut, { class: "w-4 h-4" })
|
|
1292
1292
|
])
|
|
1293
1293
|
])
|
|
1294
|
-
], 8,
|
|
1294
|
+
], 8, Yo));
|
|
1295
1295
|
}
|
|
1296
|
-
}), St = /* @__PURE__ */ Y(
|
|
1296
|
+
}), St = /* @__PURE__ */ Y(Qo, [["__scopeId", "data-v-286cdbc0"]]), ea = { class: "flex items-center gap-x-2" }, ta = ["multiple", "disabled"], la = {
|
|
1297
1297
|
key: 1,
|
|
1298
1298
|
class: "flex items-center flex-wrap gap-2"
|
|
1299
|
-
},
|
|
1299
|
+
}, oa = {
|
|
1300
1300
|
key: 1,
|
|
1301
1301
|
class: "loader"
|
|
1302
|
-
},
|
|
1302
|
+
}, aa = {
|
|
1303
1303
|
key: 1,
|
|
1304
1304
|
class: "loader"
|
|
1305
|
-
},
|
|
1305
|
+
}, na = /* @__PURE__ */ q({
|
|
1306
1306
|
__name: "vs-input-file",
|
|
1307
1307
|
props: /* @__PURE__ */ re({
|
|
1308
1308
|
format: {},
|
|
@@ -1356,7 +1356,7 @@ const Rt = /* @__PURE__ */ Y(Wo, [["render", Yo]]), Xo = ["title"], Qo = { class
|
|
|
1356
1356
|
i.value = !1, s.value && (s.value.value = "");
|
|
1357
1357
|
}
|
|
1358
1358
|
};
|
|
1359
|
-
return (m, v) => (r(), u("div",
|
|
1359
|
+
return (m, v) => (r(), u("div", ea, [
|
|
1360
1360
|
l("input", {
|
|
1361
1361
|
class: "hidden",
|
|
1362
1362
|
ref_key: "fileInput",
|
|
@@ -1365,14 +1365,14 @@ const Rt = /* @__PURE__ */ Y(Wo, [["render", Yo]]), Xo = ["title"], Qo = { class
|
|
|
1365
1365
|
multiple: m.multiple,
|
|
1366
1366
|
onChange: p,
|
|
1367
1367
|
disabled: i.value || m.disabled
|
|
1368
|
-
}, null, 40,
|
|
1368
|
+
}, null, 40, ta),
|
|
1369
1369
|
!m.multiple && n.value ? (r(), ce(St, {
|
|
1370
1370
|
key: 0,
|
|
1371
1371
|
item: n.value,
|
|
1372
1372
|
"onUpdate:item": v[0] || (v[0] = (S) => n.value = S),
|
|
1373
1373
|
value: n.value,
|
|
1374
1374
|
"onUpdate:value": v[1] || (v[1] = (S) => n.value = S)
|
|
1375
|
-
}, null, 8, ["item", "value"])) : m.multiple ? (r(), u("div",
|
|
1375
|
+
}, null, 8, ["item", "value"])) : m.multiple ? (r(), u("div", la, [
|
|
1376
1376
|
(r(!0), u(ne, null, de(n.value, (S, g) => (r(), ce(St, {
|
|
1377
1377
|
multiple: m.multiple,
|
|
1378
1378
|
key: g,
|
|
@@ -1387,7 +1387,7 @@ const Rt = /* @__PURE__ */ Y(Wo, [["render", Yo]]), Xo = ["title"], Qo = { class
|
|
|
1387
1387
|
m.disabled || i.value ? "opacity-50 cursor-not-allowed" : "cursor-pointer hover:border-blue-500 hover:bg-blue-50"
|
|
1388
1388
|
])
|
|
1389
1389
|
}, [
|
|
1390
|
-
i.value ? (r(), u("div",
|
|
1390
|
+
i.value ? (r(), u("div", oa)) : (r(), ce(Te, {
|
|
1391
1391
|
key: 0,
|
|
1392
1392
|
class: "w-6 h-6"
|
|
1393
1393
|
}))
|
|
@@ -1398,14 +1398,14 @@ const Rt = /* @__PURE__ */ Y(Wo, [["render", Yo]]), Xo = ["title"], Qo = { class
|
|
|
1398
1398
|
onClick: v[4] || (v[4] = (S) => s.value?.click()),
|
|
1399
1399
|
class: D([m.disabled || i.value ? "opacity-50 cursor-not-allowed" : "cursor-pointer hover:border-blue-500", "relative h-[120px] w-[120px] border text-gray-300 hover:text-blue-500 border-dashed border-gray-300 rounded-lg flex items-center justify-center cursor-pointer hover:border-blue-500 transition-all duration-300 hover:bg-blue-50"])
|
|
1400
1400
|
}, [
|
|
1401
|
-
i.value ? (r(), u("div",
|
|
1401
|
+
i.value ? (r(), u("div", aa)) : (r(), ce(Te, {
|
|
1402
1402
|
key: 0,
|
|
1403
1403
|
class: "w-6 h-6"
|
|
1404
1404
|
}))
|
|
1405
1405
|
], 2))
|
|
1406
1406
|
]));
|
|
1407
1407
|
}
|
|
1408
|
-
}),
|
|
1408
|
+
}), sa = /* @__PURE__ */ Y(na, [["__scopeId", "data-v-70ddd946"]]), ra = { class: "max-w-[55vw]" }, ia = { class: "text-sm font-semibold text-gray-800 truncate dark:text-neutral-200" }, ua = { class: "flex items-center text-xs text-gray-500 truncate dark:text-neutral-500" }, da = { class: "px-[5px]" }, ca = { class: "" }, nt = /* @__PURE__ */ q({
|
|
1409
1409
|
__name: "vs-widget-file-info",
|
|
1410
1410
|
props: {
|
|
1411
1411
|
item: { default: null }
|
|
@@ -1430,33 +1430,33 @@ const Rt = /* @__PURE__ */ Y(Wo, [["render", Yo]]), Xo = ["title"], Qo = { class
|
|
|
1430
1430
|
}
|
|
1431
1431
|
return (o, s) => (r(), u(ne, null, [
|
|
1432
1432
|
s[1] || (s[1] = we('<div class="flex items-center justify-center h-[30px] w-[30px]"><svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-file"><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></svg></div>', 1)),
|
|
1433
|
-
l("div",
|
|
1434
|
-
l("p",
|
|
1435
|
-
l("p",
|
|
1433
|
+
l("div", ra, [
|
|
1434
|
+
l("p", ia, K(o.item?.uploaded_name), 1),
|
|
1435
|
+
l("p", ua, [
|
|
1436
1436
|
l("span", null, K(o.item?.username), 1),
|
|
1437
|
-
se(l("span",
|
|
1437
|
+
se(l("span", da, "|", 512), [
|
|
1438
1438
|
[yt, o.item?.username]
|
|
1439
1439
|
]),
|
|
1440
1440
|
l("span", null, K(t.value), 1),
|
|
1441
1441
|
s[0] || (s[0] = l("span", { class: "px-[5px]" }, "|", -1)),
|
|
1442
|
-
l("span",
|
|
1442
|
+
l("span", ca, K(n(o.item?.size)), 1)
|
|
1443
1443
|
])
|
|
1444
1444
|
])
|
|
1445
1445
|
], 64));
|
|
1446
1446
|
}
|
|
1447
|
-
}),
|
|
1447
|
+
}), pa = { class: "p-3 relative group flex items-center gap-x-3 border border-gray-200 bg-white rounded-md w-full" }, fa = {
|
|
1448
1448
|
key: 0,
|
|
1449
1449
|
class: "flex w-full gap-x-3 items-center"
|
|
1450
|
-
},
|
|
1450
|
+
}, va = {
|
|
1451
1451
|
key: 1,
|
|
1452
1452
|
class: "flex gap-x-3 w-full items-center"
|
|
1453
|
-
},
|
|
1453
|
+
}, ma = {
|
|
1454
1454
|
key: 2,
|
|
1455
1455
|
class: "flex gap-x-3 w-full items-center"
|
|
1456
|
-
},
|
|
1456
|
+
}, ha = ["href"], ga = {
|
|
1457
1457
|
key: 3,
|
|
1458
1458
|
class: "flex gap-x-3 w-full items-center"
|
|
1459
|
-
},
|
|
1459
|
+
}, ba = { class: "lg:absolute lg:top-3 lg:end-1 opacity-100" }, ya = { class: "p-0.5 sm:p-1 inline-flex items-center gap-0.5 bg-white rounded-lg dark:bg-neutral-800 dark:border-neutral-700" }, xa = { class: "inline-block" }, wa = { class: "inline-block" }, ka = /* @__PURE__ */ q({
|
|
1460
1460
|
__name: "vs-widget-file-item",
|
|
1461
1461
|
props: {
|
|
1462
1462
|
item: { default: null },
|
|
@@ -1498,42 +1498,42 @@ const Rt = /* @__PURE__ */ Y(Wo, [["render", Yo]]), Xo = ["title"], Qo = { class
|
|
|
1498
1498
|
function p(m) {
|
|
1499
1499
|
(t.item.ext === "jpg" || t.item.ext === "png") && n("openLightbox", { item: t.item, index: m });
|
|
1500
1500
|
}
|
|
1501
|
-
return (m, v) => (r(), u("div",
|
|
1502
|
-
m.item.ext === "jpg" || m.item.ext === "png" ? (r(), u("div",
|
|
1501
|
+
return (m, v) => (r(), u("div", pa, [
|
|
1502
|
+
m.item.ext === "jpg" || m.item.ext === "png" ? (r(), u("div", fa, [
|
|
1503
1503
|
l("div", {
|
|
1504
1504
|
class: "max-w-[55vw] cursor-pointer flex gap-x-3 w-full items-center",
|
|
1505
1505
|
onClick: v[0] || (v[0] = (S) => p(m.index))
|
|
1506
1506
|
}, [
|
|
1507
1507
|
P(nt, { item: m.item }, null, 8, ["item"])
|
|
1508
1508
|
])
|
|
1509
|
-
])) : o(m.item) ? (r(), u("div",
|
|
1509
|
+
])) : o(m.item) ? (r(), u("div", va, [
|
|
1510
1510
|
P(nt, { item: m.item }, null, 8, ["item"])
|
|
1511
|
-
])) : s(m.item) ? (r(), u("div",
|
|
1511
|
+
])) : s(m.item) ? (r(), u("div", ma, [
|
|
1512
1512
|
l("a", {
|
|
1513
1513
|
href: `/api/file-preview?id=${m.item.file_id}`,
|
|
1514
1514
|
target: "_blank",
|
|
1515
1515
|
class: "flex gap-x-3 w-full items-center"
|
|
1516
1516
|
}, [
|
|
1517
1517
|
P(nt, { item: m.item }, null, 8, ["item"])
|
|
1518
|
-
], 8,
|
|
1519
|
-
])) : (r(), u("div",
|
|
1518
|
+
], 8, ha)
|
|
1519
|
+
])) : (r(), u("div", ga, [
|
|
1520
1520
|
P(nt, { item: m.item }, null, 8, ["item"])
|
|
1521
1521
|
])),
|
|
1522
|
-
l("div",
|
|
1523
|
-
l("div",
|
|
1524
|
-
l("div",
|
|
1522
|
+
l("div", ba, [
|
|
1523
|
+
l("div", ya, [
|
|
1524
|
+
l("div", xa, [
|
|
1525
1525
|
l("button", {
|
|
1526
1526
|
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",
|
|
1527
1527
|
onClick: v[1] || (v[1] = (S) => i(m.item))
|
|
1528
1528
|
}, [
|
|
1529
|
-
P(
|
|
1529
|
+
P(Ut, {
|
|
1530
1530
|
height: "14",
|
|
1531
1531
|
width: "14"
|
|
1532
1532
|
})
|
|
1533
1533
|
])
|
|
1534
1534
|
]),
|
|
1535
1535
|
v[3] || (v[3] = l("div", { class: "w-px h-5 mx-1 bg-gray-200 dark:bg-neutral-700" }, null, -1)),
|
|
1536
|
-
l("div",
|
|
1536
|
+
l("div", wa, [
|
|
1537
1537
|
l("button", {
|
|
1538
1538
|
type: "button",
|
|
1539
1539
|
class: "size-[30px] inline-flex justify-center items-center gap-x-2 rounded-lg border border-transparent text-red-600 hover:bg-red-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-red-100 dark:text-red-500 dark:hover:bg-red-500/20 dark:focus:bg-red-500/20",
|
|
@@ -1549,7 +1549,7 @@ const Rt = /* @__PURE__ */ Y(Wo, [["render", Yo]]), Xo = ["title"], Qo = { class
|
|
|
1549
1549
|
])
|
|
1550
1550
|
]));
|
|
1551
1551
|
}
|
|
1552
|
-
}),
|
|
1552
|
+
}), _a = {}, $a = {
|
|
1553
1553
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1554
1554
|
width: "24",
|
|
1555
1555
|
height: "24",
|
|
@@ -1561,8 +1561,8 @@ const Rt = /* @__PURE__ */ Y(Wo, [["render", Yo]]), Xo = ["title"], Qo = { class
|
|
|
1561
1561
|
"stroke-linejoin": "round",
|
|
1562
1562
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-download"
|
|
1563
1563
|
};
|
|
1564
|
-
function
|
|
1565
|
-
return r(), u("svg",
|
|
1564
|
+
function Ca(a, e) {
|
|
1565
|
+
return r(), u("svg", $a, e[0] || (e[0] = [
|
|
1566
1566
|
l("path", {
|
|
1567
1567
|
stroke: "none",
|
|
1568
1568
|
d: "M0 0h24v24H0z",
|
|
@@ -1573,13 +1573,13 @@ function Va(a, e) {
|
|
|
1573
1573
|
l("path", { d: "M12 4l0 12" }, null, -1)
|
|
1574
1574
|
]));
|
|
1575
1575
|
}
|
|
1576
|
-
const
|
|
1576
|
+
const Va = /* @__PURE__ */ Y(_a, [["render", Ca]]), Ma = { class: "flex flex-col widget-file xl:bg-white xl:rounded-xl dark:xl:bg-neutral-800 dark:xl:border-neutral-700 w-full" }, La = { class: "flex w-full mb-[12px] items-center gap-x-2" }, Sa = { class: "font-semibold text-gray-800 dark:text-neutral-200 text-[14px]" }, Ba = { class1: "ml-auto" }, ja = { 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" }, Ea = {
|
|
1577
1577
|
key: 0,
|
|
1578
1578
|
class: "py-4 mb-4 space-y-4 border-gray-200 border-y dark:border-neutral-700"
|
|
1579
|
-
},
|
|
1579
|
+
}, Ia = { class: "relative" }, Aa = {
|
|
1580
1580
|
key: 1,
|
|
1581
1581
|
class: "space-y-3 max-h-[300px] overflow-y-auto [&::-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"
|
|
1582
|
-
},
|
|
1582
|
+
}, za = { key: 0 }, Ta = /* @__PURE__ */ q({
|
|
1583
1583
|
__name: "vs-input-file-list",
|
|
1584
1584
|
props: {
|
|
1585
1585
|
id: { default: "" },
|
|
@@ -1641,18 +1641,18 @@ const Ma = /* @__PURE__ */ Y($a, [["render", Va]]), La = { class: "flex flex-col
|
|
|
1641
1641
|
o.value && h();
|
|
1642
1642
|
}), (B, b) => {
|
|
1643
1643
|
const $ = _t("Lightbox"), z = _t("MessageBox");
|
|
1644
|
-
return r(), u("div",
|
|
1645
|
-
l("div",
|
|
1646
|
-
l("h2",
|
|
1647
|
-
l("div",
|
|
1644
|
+
return r(), u("div", Ma, [
|
|
1645
|
+
l("div", La, [
|
|
1646
|
+
l("h2", Sa, " Файлів: " + K(m.value?.length), 1),
|
|
1647
|
+
l("div", Ba, [
|
|
1648
1648
|
l("label", null, [
|
|
1649
1649
|
l("input", {
|
|
1650
1650
|
type: "file",
|
|
1651
1651
|
class: "hidden",
|
|
1652
1652
|
onChange: b[0] || (b[0] = (A) => y(A))
|
|
1653
1653
|
}, null, 32),
|
|
1654
|
-
l("div",
|
|
1655
|
-
P(
|
|
1654
|
+
l("div", ja, [
|
|
1655
|
+
P(Va, {
|
|
1656
1656
|
height: "16",
|
|
1657
1657
|
width: "16"
|
|
1658
1658
|
})
|
|
@@ -1660,9 +1660,9 @@ const Ma = /* @__PURE__ */ Y($a, [["render", Va]]), La = { class: "flex flex-col
|
|
|
1660
1660
|
])
|
|
1661
1661
|
])
|
|
1662
1662
|
]),
|
|
1663
|
-
m.value?.length > 4 ? (r(), u("div",
|
|
1663
|
+
m.value?.length > 4 ? (r(), u("div", Ea, [
|
|
1664
1664
|
l("div", null, [
|
|
1665
|
-
l("div",
|
|
1665
|
+
l("div", Ia, [
|
|
1666
1666
|
b[8] || (b[8] = l("div", { class: "absolute inset-y-0 start-0 flex items-center pointer-events-none z-[1] ps-3.5" }, [
|
|
1667
1667
|
l("svg", {
|
|
1668
1668
|
class: "flex-shrink-0 text-gray-500 size-4 dark:text-neutral-400",
|
|
@@ -1700,8 +1700,8 @@ const Ma = /* @__PURE__ */ Y($a, [["render", Va]]), La = { class: "flex flex-col
|
|
|
1700
1700
|
])
|
|
1701
1701
|
])
|
|
1702
1702
|
])) : O("", !0),
|
|
1703
|
-
m.value?.length ? (r(), u("div",
|
|
1704
|
-
(r(!0), u(ne, null, de(g.value, (A, H) => (r(), ce(
|
|
1703
|
+
m.value?.length ? (r(), u("div", Aa, [
|
|
1704
|
+
(r(!0), u(ne, null, de(g.value, (A, H) => (r(), ce(ka, {
|
|
1705
1705
|
key: H,
|
|
1706
1706
|
prefix: B.prefix,
|
|
1707
1707
|
item: A,
|
|
@@ -1710,7 +1710,7 @@ const Ma = /* @__PURE__ */ Y($a, [["render", Va]]), La = { class: "flex flex-col
|
|
|
1710
1710
|
onOpenModal: b[3] || (b[3] = (te) => k(te)),
|
|
1711
1711
|
onOpenLightbox: b[4] || (b[4] = (te) => j(te))
|
|
1712
1712
|
}, null, 8, ["prefix", "item", "index"]))), 128)),
|
|
1713
|
-
g.value.length ? O("", !0) : (r(), u("div",
|
|
1713
|
+
g.value.length ? O("", !0) : (r(), u("div", za, b[9] || (b[9] = [
|
|
1714
1714
|
l("p", { class: "text-sm text-gray-600 font-sm" }, " Файлів з такою назвою не існує, введіть інше пошукове слово ", -1)
|
|
1715
1715
|
])))
|
|
1716
1716
|
])) : O("", !0),
|
|
@@ -1729,7 +1729,7 @@ const Ma = /* @__PURE__ */ Y($a, [["render", Va]]), La = { class: "flex flex-col
|
|
|
1729
1729
|
]);
|
|
1730
1730
|
};
|
|
1731
1731
|
}
|
|
1732
|
-
}),
|
|
1732
|
+
}), Oa = { class: "flex items-center justify-between" }, Da = { class: "text-[16px] text-gray-900 font-medium" }, Fa = { class: "grid gap-3" }, Ua = /* @__PURE__ */ q({
|
|
1733
1733
|
__name: "vs-container-switcher",
|
|
1734
1734
|
props: {
|
|
1735
1735
|
title: {
|
|
@@ -1753,9 +1753,9 @@ const Ma = /* @__PURE__ */ Y($a, [["render", Va]]), La = { class: "flex flex-col
|
|
|
1753
1753
|
t.value = n;
|
|
1754
1754
|
}
|
|
1755
1755
|
), (n, o) => (r(), u("div", null, [
|
|
1756
|
-
l("div",
|
|
1757
|
-
l("p",
|
|
1758
|
-
P(
|
|
1756
|
+
l("div", Oa, [
|
|
1757
|
+
l("p", Da, K(a.title), 1),
|
|
1758
|
+
P(Dt, {
|
|
1759
1759
|
modelValue: t.value,
|
|
1760
1760
|
"onUpdate:modelValue": o[0] || (o[0] = (s) => t.value = s),
|
|
1761
1761
|
style: ye(a.style)
|
|
@@ -1763,7 +1763,7 @@ const Ma = /* @__PURE__ */ Y($a, [["render", Va]]), La = { class: "flex flex-col
|
|
|
1763
1763
|
]),
|
|
1764
1764
|
P(xt, { name: "slide-fade" }, {
|
|
1765
1765
|
default: Ae(() => [
|
|
1766
|
-
se(l("div",
|
|
1766
|
+
se(l("div", Fa, [
|
|
1767
1767
|
Ee(n.$slots, "default", {}, void 0, !0)
|
|
1768
1768
|
], 512), [
|
|
1769
1769
|
[yt, t.value]
|
|
@@ -1773,7 +1773,7 @@ const Ma = /* @__PURE__ */ Y($a, [["render", Va]]), La = { class: "flex flex-col
|
|
|
1773
1773
|
})
|
|
1774
1774
|
]));
|
|
1775
1775
|
}
|
|
1776
|
-
}),
|
|
1776
|
+
}), Ra = /* @__PURE__ */ Y(Ua, [["__scopeId", "data-v-90320b87"]]), Pa = { class: "text-[16px] text-gray-900 font-medium" }, Ha = { class: "grid gap-3" }, Na = /* @__PURE__ */ q({
|
|
1777
1777
|
__name: "vs-container-accordion",
|
|
1778
1778
|
props: {
|
|
1779
1779
|
title: {
|
|
@@ -1802,14 +1802,14 @@ const Ma = /* @__PURE__ */ Y($a, [["render", Va]]), La = { class: "flex flex-col
|
|
|
1802
1802
|
onClick: o[0] || (o[0] = (s) => t.value = !t.value),
|
|
1803
1803
|
class: "flex items-center gap-2"
|
|
1804
1804
|
}, [
|
|
1805
|
-
P(ee(
|
|
1805
|
+
P(ee(Rl), {
|
|
1806
1806
|
class: D(["h-4 w-4 duration-300", [t.value ? "-rotate-180" : ""]])
|
|
1807
1807
|
}, null, 8, ["class"]),
|
|
1808
|
-
l("span",
|
|
1808
|
+
l("span", Pa, K(a.title), 1)
|
|
1809
1809
|
]),
|
|
1810
1810
|
P(xt, { name: "slide-fade" }, {
|
|
1811
1811
|
default: Ae(() => [
|
|
1812
|
-
se(l("div",
|
|
1812
|
+
se(l("div", Ha, [
|
|
1813
1813
|
Ee(n.$slots, "default", {}, void 0, !0)
|
|
1814
1814
|
], 512), [
|
|
1815
1815
|
[yt, t.value]
|
|
@@ -1819,7 +1819,7 @@ const Ma = /* @__PURE__ */ Y($a, [["render", Va]]), La = { class: "flex flex-col
|
|
|
1819
1819
|
})
|
|
1820
1820
|
]));
|
|
1821
1821
|
}
|
|
1822
|
-
}),
|
|
1822
|
+
}), Ka = /* @__PURE__ */ Y(Na, [["__scopeId", "data-v-590eff11"]]), qa = { class: "flex items-center justify-between" }, Ga = /* @__PURE__ */ q({
|
|
1823
1823
|
__name: "vs-container-default",
|
|
1824
1824
|
props: {
|
|
1825
1825
|
title: {
|
|
@@ -1833,16 +1833,16 @@ const Ma = /* @__PURE__ */ Y($a, [["render", Va]]), La = { class: "flex flex-col
|
|
|
1833
1833
|
},
|
|
1834
1834
|
setup(a) {
|
|
1835
1835
|
return (e, t) => (r(), u("div", null, [
|
|
1836
|
-
l("div",
|
|
1836
|
+
l("div", qa, [
|
|
1837
1837
|
l("p", null, K(a.title), 1)
|
|
1838
1838
|
]),
|
|
1839
1839
|
Ee(e.$slots, "default")
|
|
1840
1840
|
]));
|
|
1841
1841
|
}
|
|
1842
|
-
}),
|
|
1843
|
-
switcher:
|
|
1844
|
-
accordion:
|
|
1845
|
-
default:
|
|
1842
|
+
}), Za = {
|
|
1843
|
+
switcher: Ra,
|
|
1844
|
+
accordion: Ka,
|
|
1845
|
+
default: Ga
|
|
1846
1846
|
}, $e = {
|
|
1847
1847
|
Equal: "==",
|
|
1848
1848
|
Inequal: "!=",
|
|
@@ -1856,37 +1856,37 @@ const Ma = /* @__PURE__ */ Y($a, [["render", Va]]), La = { class: "flex flex-col
|
|
|
1856
1856
|
Contain: "*",
|
|
1857
1857
|
In: "in",
|
|
1858
1858
|
NotIn: "not_in"
|
|
1859
|
-
},
|
|
1859
|
+
}, Wa = (a, e) => String(a) === String(e), Ja = (a, e) => String(a) !== String(e), Ya = (a, e) => a > e, Xa = (a, e) => a >= e, Qa = (a, e) => a < e, en = (a, e) => a <= e, tn = (a, e) => Array.isArray(e) && e.length === 2 ? a >= e[0] && a <= e[1] : !1, ln = (a, e) => String(a).startsWith(String(e)), on = (a, e) => String(a).endsWith(String(e)), an = (a, e) => String(a).includes(String(e)), nn = (a, e) => Array.isArray(e) ? e.includes(a) : !1, sn = (a, e) => Array.isArray(e) ? !e.includes(a) : !0, Rt = (a, e) => {
|
|
1860
1860
|
if (!e) return !0;
|
|
1861
1861
|
switch (e?.[1]) {
|
|
1862
1862
|
case $e.Equal:
|
|
1863
|
-
return
|
|
1863
|
+
return Wa(a, e?.[2]);
|
|
1864
1864
|
case $e.Inequal:
|
|
1865
|
-
return
|
|
1865
|
+
return Ja(a, e?.[2]);
|
|
1866
1866
|
case $e.Higer:
|
|
1867
|
-
return
|
|
1867
|
+
return Ya(a, e?.[2]);
|
|
1868
1868
|
case $e.HigerOrEqual:
|
|
1869
|
-
return
|
|
1869
|
+
return Xa(a, e?.[2]);
|
|
1870
1870
|
case $e.Lower:
|
|
1871
|
-
return
|
|
1871
|
+
return Qa(a, e?.[2]);
|
|
1872
1872
|
case $e.LowerOrEqual:
|
|
1873
|
-
return
|
|
1873
|
+
return en(a, e?.[2]);
|
|
1874
1874
|
case $e.Between:
|
|
1875
|
-
return
|
|
1875
|
+
return tn(a, e?.[2]);
|
|
1876
1876
|
case $e.StartWith:
|
|
1877
|
-
return
|
|
1877
|
+
return ln(a, e?.[2]);
|
|
1878
1878
|
case $e.EndWith:
|
|
1879
|
-
return
|
|
1879
|
+
return on(a, e?.[2]);
|
|
1880
1880
|
case $e.Contain:
|
|
1881
|
-
return
|
|
1881
|
+
return an(a, e?.[2]);
|
|
1882
1882
|
case $e.In:
|
|
1883
|
-
return
|
|
1883
|
+
return nn(a, e?.[2]);
|
|
1884
1884
|
case $e.NotIn:
|
|
1885
|
-
return
|
|
1885
|
+
return sn(a, e?.[2]);
|
|
1886
1886
|
default:
|
|
1887
1887
|
return !0;
|
|
1888
1888
|
}
|
|
1889
|
-
},
|
|
1889
|
+
}, rn = /* @__PURE__ */ q({
|
|
1890
1890
|
__name: "vs-input-container",
|
|
1891
1891
|
props: {
|
|
1892
1892
|
style: {
|
|
@@ -1915,8 +1915,8 @@ const Ma = /* @__PURE__ */ Y($a, [["render", Va]]), La = { class: "flex flex-col
|
|
|
1915
1915
|
const c = d?.conditions;
|
|
1916
1916
|
if (!c) return !0;
|
|
1917
1917
|
const p = Array.isArray(c) ? c[0] : c, m = e.name ? t.value?.[e.name]?.[p] ?? t.value?.[p] : t.value?.[p];
|
|
1918
|
-
return
|
|
1919
|
-
})), s = L(() =>
|
|
1918
|
+
return Rt(m, c);
|
|
1919
|
+
})), s = L(() => Za[e.view]), i = L(() => {
|
|
1920
1920
|
if (t.value || (t.value = {}), !e.name) return t.value;
|
|
1921
1921
|
const d = t.value[e.name];
|
|
1922
1922
|
if (d) return d;
|
|
@@ -1932,7 +1932,7 @@ const Ma = /* @__PURE__ */ Y($a, [["render", Va]]), La = { class: "flex flex-col
|
|
|
1932
1932
|
style: ye(a.style)
|
|
1933
1933
|
}, {
|
|
1934
1934
|
default: Ae(() => [
|
|
1935
|
-
(r(!0), u(ne, null, de(o.value, (p) => (r(), ce(
|
|
1935
|
+
(r(!0), u(ne, null, de(o.value, (p) => (r(), ce(Pt, Fe({
|
|
1936
1936
|
key: p.name
|
|
1937
1937
|
}, { ref_for: !0 }, p, {
|
|
1938
1938
|
item: p,
|
|
@@ -1945,16 +1945,16 @@ const Ma = /* @__PURE__ */ Y($a, [["render", Va]]), La = { class: "flex flex-col
|
|
|
1945
1945
|
_: 1
|
|
1946
1946
|
}, 8, ["title", "style"])) : O("", !0);
|
|
1947
1947
|
}
|
|
1948
|
-
}),
|
|
1948
|
+
}), un = ["aria-expanded", "data-focus"], dn = {
|
|
1949
1949
|
key: 0,
|
|
1950
1950
|
class: "flex flex-wrap items-center gap-1 overflow-y-auto min-w-0 flex-1"
|
|
1951
|
-
},
|
|
1951
|
+
}, cn = { class: "flex items-center min-w-0" }, pn = ["title"], fn = ["innerHTML"], vn = ["onClick"], mn = { class: "flex-1 min-w-[2px]" }, hn = ["placeholder"], gn = ["title"], bn = ["innerHTML"], yn = {
|
|
1952
1952
|
key: 2,
|
|
1953
1953
|
class: "flex-1 min-w-[2px]"
|
|
1954
|
-
},
|
|
1954
|
+
}, xn = ["placeholder"], wn = { class: "flex items-center shrink-0" }, kn = ["disabled"], _n = ["disabled", "title"], $n = ["aria-disabled", "onClick"], Cn = ["innerHTML"], Vn = {
|
|
1955
1955
|
key: 1,
|
|
1956
1956
|
class: "px-3 py-2 text-center text-gray-500"
|
|
1957
|
-
},
|
|
1957
|
+
}, Mn = ["disabled"], Bt = /* @__PURE__ */ q({
|
|
1958
1958
|
__name: "vs-input-select",
|
|
1959
1959
|
props: {
|
|
1960
1960
|
multiple: { type: Boolean, default: !1 },
|
|
@@ -2113,7 +2113,7 @@ const Ma = /* @__PURE__ */ Y($a, [["render", Va]]), La = { class: "flex flex-col
|
|
|
2113
2113
|
qe > 0 && Ge > qe && (Ge = qe);
|
|
2114
2114
|
let { left: Ze } = _;
|
|
2115
2115
|
Ze + Ge + Z > E && (Ze = E - Ge - Z), Ze = Math.max(Ze, Z);
|
|
2116
|
-
const
|
|
2116
|
+
const Nt = Math.min(
|
|
2117
2117
|
fe,
|
|
2118
2118
|
Math.max(Ke ? _e : ze, 50)
|
|
2119
2119
|
);
|
|
@@ -2122,7 +2122,7 @@ const Ma = /* @__PURE__ */ Y($a, [["render", Va]]), La = { class: "flex flex-col
|
|
|
2122
2122
|
left: `${Ze}px`,
|
|
2123
2123
|
width: `${Ge}px`,
|
|
2124
2124
|
minWidth: "300px",
|
|
2125
|
-
maxHeight: `${
|
|
2125
|
+
maxHeight: `${Nt}px`,
|
|
2126
2126
|
transform: Ke ? "none" : "translateY(-100%)",
|
|
2127
2127
|
top: Ke ? `${_.bottom + ie}px` : `${_.top - ie}px`
|
|
2128
2128
|
};
|
|
@@ -2220,7 +2220,7 @@ const Ma = /* @__PURE__ */ Y($a, [["render", Va]]), La = { class: "flex flex-col
|
|
|
2220
2220
|
_ && Re(_);
|
|
2221
2221
|
}
|
|
2222
2222
|
}), (_, M) => (r(), u(ne, null, [
|
|
2223
|
-
P(ee(
|
|
2223
|
+
P(ee(Ot), {
|
|
2224
2224
|
visible: f.value,
|
|
2225
2225
|
"onUpdate:visible": M[1] || (M[1] = (E) => f.value = E),
|
|
2226
2226
|
title: "Додати",
|
|
@@ -2279,12 +2279,12 @@ const Ma = /* @__PURE__ */ Y($a, [["render", Va]]), La = { class: "flex flex-col
|
|
|
2279
2279
|
ref_key: "triggerRef",
|
|
2280
2280
|
ref: c
|
|
2281
2281
|
}, [
|
|
2282
|
-
o.value ? (r(), u("div",
|
|
2282
|
+
o.value ? (r(), u("div", dn, [
|
|
2283
2283
|
(r(!0), u(ne, null, de(z.value, (E) => (r(), u("div", {
|
|
2284
2284
|
class: "flex min-w-0 bg-[#e6e6e6] rounded-sm m-0.5 box-border max-w-full",
|
|
2285
2285
|
key: E.id
|
|
2286
2286
|
}, [
|
|
2287
|
-
l("div",
|
|
2287
|
+
l("div", cn, [
|
|
2288
2288
|
E?.color ? (r(), u("span", {
|
|
2289
2289
|
key: 0,
|
|
2290
2290
|
class: "w-[16px] h-[16px] rounded-md block ml-1.5 flex-shrink-0",
|
|
@@ -2297,10 +2297,10 @@ const Ma = /* @__PURE__ */ Y($a, [["render", Va]]), La = { class: "flex flex-col
|
|
|
2297
2297
|
U.value ? (r(), u("span", {
|
|
2298
2298
|
key: 0,
|
|
2299
2299
|
innerHTML: C(E)
|
|
2300
|
-
}, null, 8,
|
|
2300
|
+
}, null, 8, fn)) : (r(), u(ne, { key: 1 }, [
|
|
2301
2301
|
ge(K(E.text), 1)
|
|
2302
2302
|
], 64))
|
|
2303
|
-
], 8,
|
|
2303
|
+
], 8, pn)
|
|
2304
2304
|
]),
|
|
2305
2305
|
l("div", {
|
|
2306
2306
|
role: "button",
|
|
@@ -2317,9 +2317,9 @@ const Ma = /* @__PURE__ */ Y($a, [["render", Va]]), La = { class: "flex flex-col
|
|
|
2317
2317
|
}, [
|
|
2318
2318
|
l("path", { d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z" })
|
|
2319
2319
|
], -1)
|
|
2320
|
-
]), 8,
|
|
2320
|
+
]), 8, vn)
|
|
2321
2321
|
]))), 128)),
|
|
2322
|
-
l("div",
|
|
2322
|
+
l("div", mn, [
|
|
2323
2323
|
!s.value && _.search ? se((r(), u("input", {
|
|
2324
2324
|
key: 0,
|
|
2325
2325
|
ref_key: "inputRef",
|
|
@@ -2337,7 +2337,7 @@ const Ma = /* @__PURE__ */ Y($a, [["render", Va]]), La = { class: "flex flex-col
|
|
|
2337
2337
|
onFocus: Pe,
|
|
2338
2338
|
onBlur: et,
|
|
2339
2339
|
onKeydown: Qe
|
|
2340
|
-
}, null, 40,
|
|
2340
|
+
}, null, 40, hn)), [
|
|
2341
2341
|
[ve, w.value]
|
|
2342
2342
|
]) : O("", !0)
|
|
2343
2343
|
])
|
|
@@ -2355,12 +2355,12 @@ const Ma = /* @__PURE__ */ Y($a, [["render", Va]]), La = { class: "flex flex-col
|
|
|
2355
2355
|
key: 1,
|
|
2356
2356
|
class: D({ "pl-5": g.value?.color }),
|
|
2357
2357
|
innerHTML: C(g.value)
|
|
2358
|
-
}, null, 10,
|
|
2358
|
+
}, null, 10, bn)) : (r(), u("span", {
|
|
2359
2359
|
key: 2,
|
|
2360
2360
|
class: D({ "pl-5": g.value?.color })
|
|
2361
2361
|
}, K(g.value?.text), 3))
|
|
2362
|
-
], 8,
|
|
2363
|
-
o.value ? O("", !0) : (r(), u("div",
|
|
2362
|
+
], 8, gn)) : O("", !0),
|
|
2363
|
+
o.value ? O("", !0) : (r(), u("div", yn, [
|
|
2364
2364
|
!s.value && _.search ? se((r(), u("input", {
|
|
2365
2365
|
key: 0,
|
|
2366
2366
|
ref_key: "inputRef",
|
|
@@ -2378,12 +2378,12 @@ const Ma = /* @__PURE__ */ Y($a, [["render", Va]]), La = { class: "flex flex-col
|
|
|
2378
2378
|
onFocus: Pe,
|
|
2379
2379
|
onBlur: et,
|
|
2380
2380
|
onKeydown: Qe
|
|
2381
|
-
}, null, 40,
|
|
2381
|
+
}, null, 40, xn)), [
|
|
2382
2382
|
[ve, w.value]
|
|
2383
2383
|
]) : O("", !0)
|
|
2384
2384
|
]))
|
|
2385
2385
|
], 512),
|
|
2386
|
-
l("div",
|
|
2386
|
+
l("div", wn, [
|
|
2387
2387
|
te.value ? (r(), u("button", {
|
|
2388
2388
|
key: 0,
|
|
2389
2389
|
type: "button",
|
|
@@ -2400,7 +2400,7 @@ const Ma = /* @__PURE__ */ Y($a, [["render", Va]]), La = { class: "flex flex-col
|
|
|
2400
2400
|
}, [
|
|
2401
2401
|
l("path", { d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z" })
|
|
2402
2402
|
], -1)
|
|
2403
|
-
]), 8,
|
|
2403
|
+
]), 8, kn)) : O("", !0),
|
|
2404
2404
|
M[9] || (M[9] = l("div", { class: "self-stretch w-px bg-[#ccc] my-[1px]" }, null, -1)),
|
|
2405
2405
|
l("button", {
|
|
2406
2406
|
type: "button",
|
|
@@ -2418,9 +2418,9 @@ const Ma = /* @__PURE__ */ Y($a, [["render", Va]]), La = { class: "flex flex-col
|
|
|
2418
2418
|
}, [
|
|
2419
2419
|
l("path", { d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z" })
|
|
2420
2420
|
], -1)
|
|
2421
|
-
]), 8,
|
|
2421
|
+
]), 8, _n)
|
|
2422
2422
|
])
|
|
2423
|
-
], 42,
|
|
2423
|
+
], 42, un),
|
|
2424
2424
|
(r(), ce(it, { to: "body" }, [
|
|
2425
2425
|
v.value ? (r(), u("div", {
|
|
2426
2426
|
key: 0,
|
|
@@ -2468,11 +2468,11 @@ const Ma = /* @__PURE__ */ Y($a, [["render", Va]]), La = { class: "flex flex-col
|
|
|
2468
2468
|
U.value ? (r(), u("span", {
|
|
2469
2469
|
key: 0,
|
|
2470
2470
|
innerHTML: C(E)
|
|
2471
|
-
}, null, 8,
|
|
2471
|
+
}, null, 8, Cn)) : (r(), u(ne, { key: 1 }, [
|
|
2472
2472
|
ge(K(E.text), 1)
|
|
2473
2473
|
], 64))
|
|
2474
2474
|
], 2)
|
|
2475
|
-
], 10,
|
|
2475
|
+
], 10, $n))), 128)) : (r(), u("div", Vn, " No options "))
|
|
2476
2476
|
], 4)
|
|
2477
2477
|
], 4)) : O("", !0)
|
|
2478
2478
|
]))
|
|
@@ -2489,11 +2489,11 @@ const Ma = /* @__PURE__ */ Y($a, [["render", Va]]), La = { class: "flex flex-col
|
|
|
2489
2489
|
height: "16"
|
|
2490
2490
|
}),
|
|
2491
2491
|
M[12] || (M[12] = l("span", null, "Додати", -1))
|
|
2492
|
-
], 8,
|
|
2492
|
+
], 8, Mn)) : O("", !0)
|
|
2493
2493
|
], 512)
|
|
2494
2494
|
], 64));
|
|
2495
2495
|
}
|
|
2496
|
-
}),
|
|
2496
|
+
}), Ln = ["placeholder", "disabled"], Sn = /* @__PURE__ */ q({
|
|
2497
2497
|
__name: "vs-input-textarea",
|
|
2498
2498
|
props: /* @__PURE__ */ re({
|
|
2499
2499
|
style: { default: () => ({}) },
|
|
@@ -2519,11 +2519,11 @@ const Ma = /* @__PURE__ */ Y($a, [["render", Va]]), La = { class: "flex flex-col
|
|
|
2519
2519
|
style: {
|
|
2520
2520
|
border: "1px solid #CFD9E0"
|
|
2521
2521
|
}
|
|
2522
|
-
}, null, 10,
|
|
2522
|
+
}, null, 10, Ln)), [
|
|
2523
2523
|
[ve, n.value]
|
|
2524
2524
|
]);
|
|
2525
2525
|
}
|
|
2526
|
-
}),
|
|
2526
|
+
}), Bn = {}, jn = {
|
|
2527
2527
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2528
2528
|
viewBox: "0 0 24 24",
|
|
2529
2529
|
fill: "none",
|
|
@@ -2533,8 +2533,8 @@ const Ma = /* @__PURE__ */ Y($a, [["render", Va]]), La = { class: "flex flex-col
|
|
|
2533
2533
|
"stroke-linejoin": "round",
|
|
2534
2534
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-search stroke-gray-500 transition-all"
|
|
2535
2535
|
};
|
|
2536
|
-
function
|
|
2537
|
-
return r(), u("svg",
|
|
2536
|
+
function En(a, e) {
|
|
2537
|
+
return r(), u("svg", jn, e[0] || (e[0] = [
|
|
2538
2538
|
l("path", {
|
|
2539
2539
|
stroke: "none",
|
|
2540
2540
|
d: "M0 0h24v24H0z",
|
|
@@ -2544,7 +2544,7 @@ function In(a, e) {
|
|
|
2544
2544
|
l("path", { d: "M21 21l-6 -6" }, null, -1)
|
|
2545
2545
|
]));
|
|
2546
2546
|
}
|
|
2547
|
-
const
|
|
2547
|
+
const In = /* @__PURE__ */ Y(Bn, [["render", En]]), An = {}, zn = {
|
|
2548
2548
|
class: "flex-shrink-0 mt-0.5 size-3.5",
|
|
2549
2549
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2550
2550
|
viewBox: "0 0 24 24",
|
|
@@ -2554,15 +2554,15 @@ const An = /* @__PURE__ */ Y(jn, [["render", In]]), zn = {}, Tn = {
|
|
|
2554
2554
|
"stroke-linecap": "round",
|
|
2555
2555
|
"stroke-linejoin": "round"
|
|
2556
2556
|
};
|
|
2557
|
-
function
|
|
2558
|
-
return r(), u("svg",
|
|
2557
|
+
function Tn(a, e) {
|
|
2558
|
+
return r(), u("svg", zn, e[0] || (e[0] = [
|
|
2559
2559
|
l("path", { d: "m3 16 4 4 4-4" }, null, -1),
|
|
2560
2560
|
l("path", { d: "M7 20V4" }, null, -1),
|
|
2561
2561
|
l("path", { d: "m21 8-4-4-4 4" }, null, -1),
|
|
2562
2562
|
l("path", { d: "M17 4v16" }, null, -1)
|
|
2563
2563
|
]));
|
|
2564
2564
|
}
|
|
2565
|
-
const
|
|
2565
|
+
const On = /* @__PURE__ */ Y(An, [["render", Tn]]), Dn = {}, Fn = {
|
|
2566
2566
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2567
2567
|
width: "14",
|
|
2568
2568
|
height: "14",
|
|
@@ -2573,8 +2573,8 @@ const Dn = /* @__PURE__ */ Y(zn, [["render", On]]), Fn = {}, Un = {
|
|
|
2573
2573
|
"stroke-linecap": "round",
|
|
2574
2574
|
"stroke-linejoin": "round"
|
|
2575
2575
|
};
|
|
2576
|
-
function
|
|
2577
|
-
return r(), u("svg",
|
|
2576
|
+
function Un(a, e) {
|
|
2577
|
+
return r(), u("svg", Fn, e[0] || (e[0] = [
|
|
2578
2578
|
l("path", {
|
|
2579
2579
|
stroke: "none",
|
|
2580
2580
|
d: "M0 0h24v24H0z",
|
|
@@ -2585,7 +2585,7 @@ function Rn(a, e) {
|
|
|
2585
2585
|
l("path", { d: "M12 4l0 12" }, null, -1)
|
|
2586
2586
|
]));
|
|
2587
2587
|
}
|
|
2588
|
-
const
|
|
2588
|
+
const Rn = /* @__PURE__ */ Y(Dn, [["render", Un]]), Pn = {}, Hn = {
|
|
2589
2589
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2590
2590
|
viewBox: "0 0 24 24",
|
|
2591
2591
|
fill: "none",
|
|
@@ -2594,8 +2594,8 @@ const Pn = /* @__PURE__ */ Y(Fn, [["render", Rn]]), Hn = {}, Nn = {
|
|
|
2594
2594
|
"stroke-linecap": "round",
|
|
2595
2595
|
"stroke-linejoin": "round"
|
|
2596
2596
|
};
|
|
2597
|
-
function
|
|
2598
|
-
return r(), u("svg",
|
|
2597
|
+
function Nn(a, e) {
|
|
2598
|
+
return r(), u("svg", Hn, e[0] || (e[0] = [
|
|
2599
2599
|
l("path", {
|
|
2600
2600
|
stroke: "none",
|
|
2601
2601
|
d: "M0 0h24v24H0z",
|
|
@@ -2606,7 +2606,7 @@ function Kn(a, e) {
|
|
|
2606
2606
|
l("path", { d: "M12 4l0 12" }, null, -1)
|
|
2607
2607
|
]));
|
|
2608
2608
|
}
|
|
2609
|
-
const
|
|
2609
|
+
const Kn = /* @__PURE__ */ Y(Pn, [["render", Nn]]), qn = {}, Gn = {
|
|
2610
2610
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2611
2611
|
viewBox: "0 0 24 24",
|
|
2612
2612
|
fill: "none",
|
|
@@ -2615,22 +2615,22 @@ const qn = /* @__PURE__ */ Y(Hn, [["render", Kn]]), Gn = {}, Zn = {
|
|
|
2615
2615
|
"stroke-linecap": "round",
|
|
2616
2616
|
"stroke-linejoin": "round"
|
|
2617
2617
|
};
|
|
2618
|
-
function
|
|
2619
|
-
return r(), u("svg",
|
|
2618
|
+
function Zn(a, e) {
|
|
2619
|
+
return r(), u("svg", Gn, e[0] || (e[0] = [
|
|
2620
2620
|
we('<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)
|
|
2621
2621
|
]));
|
|
2622
2622
|
}
|
|
2623
|
-
const jt = /* @__PURE__ */ Y(
|
|
2623
|
+
const jt = /* @__PURE__ */ Y(qn, [["render", Zn]]), Wn = {}, Jn = {
|
|
2624
2624
|
viewBox: "0 0 178 90",
|
|
2625
2625
|
fill: "none",
|
|
2626
2626
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2627
2627
|
};
|
|
2628
|
-
function
|
|
2629
|
-
return r(), u("svg",
|
|
2628
|
+
function Yn(a, e) {
|
|
2629
|
+
return r(), u("svg", Jn, e[0] || (e[0] = [
|
|
2630
2630
|
we('<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)
|
|
2631
2631
|
]));
|
|
2632
2632
|
}
|
|
2633
|
-
const
|
|
2633
|
+
const Xn = /* @__PURE__ */ Y(Wn, [["render", Yn]]), Qn = {}, es = {
|
|
2634
2634
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2635
2635
|
viewBox: "0 0 24 24",
|
|
2636
2636
|
fill: "none",
|
|
@@ -2639,28 +2639,28 @@ const Qn = /* @__PURE__ */ Y(Jn, [["render", Xn]]), es = {}, ts = {
|
|
|
2639
2639
|
"stroke-linecap": "round",
|
|
2640
2640
|
"stroke-linejoin": "round"
|
|
2641
2641
|
};
|
|
2642
|
-
function
|
|
2643
|
-
return r(), u("svg",
|
|
2642
|
+
function ts(a, e) {
|
|
2643
|
+
return r(), u("svg", es, e[0] || (e[0] = [
|
|
2644
2644
|
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)
|
|
2645
2645
|
]));
|
|
2646
2646
|
}
|
|
2647
|
-
const
|
|
2647
|
+
const ls = /* @__PURE__ */ Y(Qn, [["render", ts]]), os = { class: "vs-datatable border rounded-xl w-full flex-grow" }, as = { class: "flex items-center npm gap-[16px] justify-between p-[20px] pb-[16px]" }, ns = { class: "relative w-full" }, ss = { class: "table-wrapper flex gap-2" }, rs = { class: "vs-popover inline-block text-slate-700" }, is = { class: "text-center" }, us = { class: "" }, ds = { 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" }, cs = { class: "flex flex-col p-[1px] gap-[2px] w-[140px]" }, ps = { class: "text-sm items-center text-gray-800 flex gap-1" }, fs = { class: "w-full overflow-x-auto" }, vs = { class: "w-full table-auto caption-bottom text-sm" }, ms = { class: "[&_tr]:border-b" }, hs = { 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" }, gs = { 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" }, bs = {
|
|
2648
2648
|
key: 0,
|
|
2649
2649
|
colspan: "100%",
|
|
2650
2650
|
class: "text-center"
|
|
2651
|
-
},
|
|
2651
|
+
}, ys = { class: "w-full" }, xs = { class: "p-5 min-h-[200px] flex flex-col justify-center items-center text-center" }, ws = ["onDragstart", "onDragover", "onDrop"], ks = { class: "p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px] text-center" }, _s = { class: "flex items-center justify-center" }, $s = {
|
|
2652
2652
|
key: 0,
|
|
2653
2653
|
class: "inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 border-transparent bg-slate-100 dark:bg-slate-700 text-slate-700 dark:text-slate-300 hover:bg-slate-200 dark:hover:bg-slate-600 transition-colors"
|
|
2654
|
-
},
|
|
2654
|
+
}, Cs = { key: 0 }, Vs = ["src"], Ms = {
|
|
2655
2655
|
key: 1,
|
|
2656
2656
|
class: "rounded-md max-w-[45px] w-[45px] max-h-[45px] h-[45px] bg-gray-200 flex items-center justify-center"
|
|
2657
|
-
},
|
|
2657
|
+
}, Ls = ["innerHTML"], Ss = {
|
|
2658
2658
|
key: 2,
|
|
2659
2659
|
class: "line-clamp-2 rounded-md border px-2.5 py-0.5 text-xs font-semibold focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 border-transparent bg-slate-100 dark:bg-slate-700 text-slate-700 dark:text-slate-300 hover:bg-slate-200 dark:hover:bg-slate-600 transition-colors"
|
|
2660
|
-
},
|
|
2660
|
+
}, Bs = {
|
|
2661
2661
|
key: 3,
|
|
2662
2662
|
class: "inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 border-transparent bg-slate-100 dark:bg-slate-700 text-slate-700 dark:text-slate-300 hover:bg-slate-200 dark:hover:bg-slate-600 transition-colors"
|
|
2663
|
-
},
|
|
2663
|
+
}, js = { class: "p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]" }, Es = { class: "flex items-center justify-center gap-2" }, Is = ["onClick"], As = ["onClick"], zs = { class: "vs-form__head mr-5 mt-3 flex items-center justify-end sticky top-0 left-0 z-[60] bg-white" }, Ts = /* @__PURE__ */ q({
|
|
2664
2664
|
__name: "vs-input-datatable",
|
|
2665
2665
|
props: /* @__PURE__ */ re({
|
|
2666
2666
|
colModel: {},
|
|
@@ -2757,10 +2757,10 @@ const os = /* @__PURE__ */ Y(es, [["render", ls]]), as = { class: "vs-datatable
|
|
|
2757
2757
|
function le() {
|
|
2758
2758
|
b.value = !1;
|
|
2759
2759
|
}
|
|
2760
|
-
return (U, C) => (r(), u("div",
|
|
2761
|
-
l("div",
|
|
2762
|
-
l("div",
|
|
2763
|
-
P(
|
|
2760
|
+
return (U, C) => (r(), u("div", os, [
|
|
2761
|
+
l("div", as, [
|
|
2762
|
+
l("div", ns, [
|
|
2763
|
+
P(In, {
|
|
2764
2764
|
width: "14",
|
|
2765
2765
|
height: "14",
|
|
2766
2766
|
class: "absolute left-3 top-1/2 transform -translate-y-1/2 text-stone-500"
|
|
@@ -2774,7 +2774,7 @@ const os = /* @__PURE__ */ Y(es, [["render", ls]]), as = { class: "vs-datatable
|
|
|
2774
2774
|
[ve, o.value]
|
|
2775
2775
|
])
|
|
2776
2776
|
]),
|
|
2777
|
-
l("div",
|
|
2777
|
+
l("div", ss, [
|
|
2778
2778
|
l("input", {
|
|
2779
2779
|
ref_key: "fileInput",
|
|
2780
2780
|
ref: p,
|
|
@@ -2783,14 +2783,14 @@ const os = /* @__PURE__ */ Y(es, [["render", ls]]), as = { class: "vs-datatable
|
|
|
2783
2783
|
accept: ".json",
|
|
2784
2784
|
type: "file"
|
|
2785
2785
|
}, null, 544),
|
|
2786
|
-
l("div",
|
|
2787
|
-
l("div",
|
|
2788
|
-
l("div",
|
|
2786
|
+
l("div", rs, [
|
|
2787
|
+
l("div", is, [
|
|
2788
|
+
l("div", us, [
|
|
2789
2789
|
l("button", {
|
|
2790
2790
|
onClick: j,
|
|
2791
2791
|
class: "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"
|
|
2792
2792
|
}, [
|
|
2793
|
-
P(
|
|
2793
|
+
P(On, {
|
|
2794
2794
|
height: "16",
|
|
2795
2795
|
width: "16"
|
|
2796
2796
|
})
|
|
@@ -2805,30 +2805,30 @@ const os = /* @__PURE__ */ Y(es, [["render", ls]]), as = { class: "vs-datatable
|
|
|
2805
2805
|
class: "text-slate-700 vsTailwind vs-popover__content bottom",
|
|
2806
2806
|
style: ye([{ width: "fit-content", "z-index": "10002", position: "fixed" }, { position: "absolute", top: m.value.top + "px", left: m.value.left + "px" }])
|
|
2807
2807
|
}, [
|
|
2808
|
-
l("div",
|
|
2809
|
-
l("div",
|
|
2808
|
+
l("div", ds, [
|
|
2809
|
+
l("div", cs, [
|
|
2810
2810
|
l("button", {
|
|
2811
2811
|
onClick: h,
|
|
2812
2812
|
class: "text-slate-700 flex items-center gap-1 px-3 py-2 rounded-md cursor-pointer group hover:bg-gray-100"
|
|
2813
2813
|
}, [
|
|
2814
|
-
P(
|
|
2814
|
+
P(Rn, {
|
|
2815
2815
|
class: "text-black",
|
|
2816
2816
|
width: "14",
|
|
2817
2817
|
height: "14"
|
|
2818
2818
|
}),
|
|
2819
|
-
C[4] || (C[4] = ge(" Імпортувати "))
|
|
2819
|
+
C[4] || (C[4] = ge(" Імпортувати ", -1))
|
|
2820
2820
|
]),
|
|
2821
2821
|
l("button", {
|
|
2822
2822
|
onClick: k,
|
|
2823
2823
|
class: "text-slate-700 flex items-center px-3 py-2 rounded-md cursor-pointer group hover:bg-gray-100"
|
|
2824
2824
|
}, [
|
|
2825
|
-
l("span",
|
|
2826
|
-
P(
|
|
2825
|
+
l("span", ps, [
|
|
2826
|
+
P(Kn, {
|
|
2827
2827
|
class: "text-black",
|
|
2828
2828
|
width: "14",
|
|
2829
2829
|
height: "14"
|
|
2830
2830
|
}),
|
|
2831
|
-
C[5] || (C[5] = ge(" Експортувати "))
|
|
2831
|
+
C[5] || (C[5] = ge(" Експортувати ", -1))
|
|
2832
2832
|
])
|
|
2833
2833
|
])
|
|
2834
2834
|
])
|
|
@@ -2840,14 +2840,14 @@ const os = /* @__PURE__ */ Y(es, [["render", ls]]), as = { class: "vs-datatable
|
|
|
2840
2840
|
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"
|
|
2841
2841
|
}, [
|
|
2842
2842
|
P(Te),
|
|
2843
|
-
C[6] || (C[6] = ge(" Додати "))
|
|
2843
|
+
C[6] || (C[6] = ge(" Додати ", -1))
|
|
2844
2844
|
])
|
|
2845
2845
|
]),
|
|
2846
|
-
l("div",
|
|
2847
|
-
l("table",
|
|
2848
|
-
l("thead",
|
|
2849
|
-
l("tr",
|
|
2850
|
-
l("th",
|
|
2846
|
+
l("div", fs, [
|
|
2847
|
+
l("table", vs, [
|
|
2848
|
+
l("thead", ms, [
|
|
2849
|
+
l("tr", hs, [
|
|
2850
|
+
l("th", gs, [
|
|
2851
2851
|
P(jt, {
|
|
2852
2852
|
width: "24",
|
|
2853
2853
|
height: "24",
|
|
@@ -2864,10 +2864,10 @@ const os = /* @__PURE__ */ Y(es, [["render", ls]]), as = { class: "vs-datatable
|
|
|
2864
2864
|
l("tbody", {
|
|
2865
2865
|
class: D({ "[&_tr:last-child]:border-0": !d.value })
|
|
2866
2866
|
}, [
|
|
2867
|
-
s.value.length === 0 ? (r(), u("td",
|
|
2868
|
-
l("div",
|
|
2869
|
-
l("div",
|
|
2870
|
-
P(
|
|
2867
|
+
s.value.length === 0 ? (r(), u("td", bs, [
|
|
2868
|
+
l("div", ys, [
|
|
2869
|
+
l("div", xs, [
|
|
2870
|
+
P(Xn, { class: "w-48 mx-auto" }),
|
|
2871
2871
|
C[8] || (C[8] = l("div", { class: "max-w-sm mx-auto mt-6" }, [
|
|
2872
2872
|
l("p", { class: "font-medium text-gray-800 dark:text-neutral-200" }, "Нічого не знайдено"),
|
|
2873
2873
|
l("p", { class: "mt-2 text-sm text-gray-500 dark:text-neutral-500" })
|
|
@@ -2886,8 +2886,8 @@ const os = /* @__PURE__ */ Y(es, [["render", ls]]), as = { class: "vs-datatable
|
|
|
2886
2886
|
onDragover: me((X) => S(N), ["prevent"]),
|
|
2887
2887
|
onDrop: (X) => g(N)
|
|
2888
2888
|
}, [
|
|
2889
|
-
l("td",
|
|
2890
|
-
l("div",
|
|
2889
|
+
l("td", ks, [
|
|
2890
|
+
l("div", _s, [
|
|
2891
2891
|
P(jt, {
|
|
2892
2892
|
width: "24",
|
|
2893
2893
|
height: "24",
|
|
@@ -2899,35 +2899,35 @@ const os = /* @__PURE__ */ Y(es, [["render", ls]]), as = { class: "vs-datatable
|
|
|
2899
2899
|
key: X.key,
|
|
2900
2900
|
class: "p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]"
|
|
2901
2901
|
}, [
|
|
2902
|
-
X.type === "file" ? (r(), u("div",
|
|
2903
|
-
y(J(T, X)) ? (r(), u("div",
|
|
2902
|
+
X.type === "file" ? (r(), u("div", $s, [
|
|
2903
|
+
y(J(T, X)) ? (r(), u("div", Cs, [
|
|
2904
2904
|
l("img", {
|
|
2905
2905
|
src: J(T, X),
|
|
2906
2906
|
alt: "alt",
|
|
2907
2907
|
width: "45",
|
|
2908
2908
|
class: "rounded-md max-w-[45px] h-[45px] object-cover"
|
|
2909
|
-
}, null, 8,
|
|
2910
|
-
])) : (r(), u("div",
|
|
2911
|
-
P(
|
|
2909
|
+
}, null, 8, Vs)
|
|
2910
|
+
])) : (r(), u("div", Ms, [
|
|
2911
|
+
P(Ft, { class: "w-[25px] min-w-[25px] h-[25px]" })
|
|
2912
2912
|
]))
|
|
2913
2913
|
])) : X.type === "tiptap-editor" ? (r(), u("div", {
|
|
2914
2914
|
key: 1,
|
|
2915
2915
|
class: "rounded-md border px-2.5 py-0.5 text-xs font-semibold focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 border-transparent bg-slate-100 dark:bg-slate-700 text-slate-700 dark:text-slate-300 hover:bg-slate-200 dark:hover:bg-slate-600 transition-colors line-clamp-3",
|
|
2916
2916
|
innerHTML: J(T, X)
|
|
2917
|
-
}, null, 8,
|
|
2917
|
+
}, null, 8, Ls)) : X.type === "reference" ? (r(), u("div", Ss, K(J(T, X)), 1)) : (r(), u("div", Bs, K(J(T, X)), 1))
|
|
2918
2918
|
]))), 128)),
|
|
2919
|
-
l("td",
|
|
2920
|
-
l("div",
|
|
2919
|
+
l("td", js, [
|
|
2920
|
+
l("div", Es, [
|
|
2921
2921
|
l("button", {
|
|
2922
2922
|
onClick: (X) => F(T, N),
|
|
2923
2923
|
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"
|
|
2924
2924
|
}, [
|
|
2925
|
-
P(
|
|
2925
|
+
P(ls, {
|
|
2926
2926
|
width: "24",
|
|
2927
2927
|
height: "24",
|
|
2928
2928
|
class: "w-3 h-3"
|
|
2929
2929
|
})
|
|
2930
|
-
], 8,
|
|
2930
|
+
], 8, Is),
|
|
2931
2931
|
l("button", {
|
|
2932
2932
|
onClick: (X) => Q(N),
|
|
2933
2933
|
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"
|
|
@@ -2937,14 +2937,14 @@ const os = /* @__PURE__ */ Y(es, [["render", ls]]), as = { class: "vs-datatable
|
|
|
2937
2937
|
height: "24",
|
|
2938
2938
|
class: "w-3 h-3"
|
|
2939
2939
|
})
|
|
2940
|
-
], 8,
|
|
2940
|
+
], 8, As)
|
|
2941
2941
|
])
|
|
2942
2942
|
])
|
|
2943
|
-
], 42,
|
|
2943
|
+
], 42, ws))), 128))
|
|
2944
2944
|
], 2)
|
|
2945
2945
|
])
|
|
2946
2946
|
]),
|
|
2947
|
-
P(ee(
|
|
2947
|
+
P(ee(Ot), {
|
|
2948
2948
|
teleport: "#modal",
|
|
2949
2949
|
visible: b.value,
|
|
2950
2950
|
title: B.value,
|
|
@@ -2959,7 +2959,7 @@ const os = /* @__PURE__ */ Y(es, [["render", ls]]), as = { class: "vs-datatable
|
|
|
2959
2959
|
form: H.value,
|
|
2960
2960
|
"onUpdate:form": C[2] || (C[2] = (T) => H.value = T)
|
|
2961
2961
|
}, null, 8, ["schema", "values", "form"]),
|
|
2962
|
-
l("div",
|
|
2962
|
+
l("div", zs, [
|
|
2963
2963
|
l("button", {
|
|
2964
2964
|
type: "button",
|
|
2965
2965
|
onClick: C[3] || (C[3] = (T) => b.value = !1),
|
|
@@ -2976,7 +2976,7 @@ const os = /* @__PURE__ */ Y(es, [["render", ls]]), as = { class: "vs-datatable
|
|
|
2976
2976
|
}, 8, ["visible", "title"])
|
|
2977
2977
|
]));
|
|
2978
2978
|
}
|
|
2979
|
-
}),
|
|
2979
|
+
}), Os = {
|
|
2980
2980
|
draw: {
|
|
2981
2981
|
toolbar: {
|
|
2982
2982
|
actions: {
|
|
@@ -3083,7 +3083,7 @@ const os = /* @__PURE__ */ Y(es, [["render", ls]]), as = { class: "vs-datatable
|
|
|
3083
3083
|
}
|
|
3084
3084
|
}
|
|
3085
3085
|
}
|
|
3086
|
-
},
|
|
3086
|
+
}, Ds = {}, Fs = {
|
|
3087
3087
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3088
3088
|
viewBox: "0 0 24 24",
|
|
3089
3089
|
stroke: "currentColor",
|
|
@@ -3093,8 +3093,8 @@ const os = /* @__PURE__ */ Y(es, [["render", ls]]), as = { class: "vs-datatable
|
|
|
3093
3093
|
"stroke-linejoin": "round",
|
|
3094
3094
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-map-pin"
|
|
3095
3095
|
};
|
|
3096
|
-
function
|
|
3097
|
-
return r(), u("svg",
|
|
3096
|
+
function Us(a, e) {
|
|
3097
|
+
return r(), u("svg", Fs, e[0] || (e[0] = [
|
|
3098
3098
|
l("path", {
|
|
3099
3099
|
stroke: "none",
|
|
3100
3100
|
d: "M0 0h24v24H0z",
|
|
@@ -3104,7 +3104,7 @@ function Rs(a, e) {
|
|
|
3104
3104
|
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)
|
|
3105
3105
|
]));
|
|
3106
3106
|
}
|
|
3107
|
-
const
|
|
3107
|
+
const Rs = /* @__PURE__ */ Y(Ds, [["render", Us]]), Ps = {}, Hs = {
|
|
3108
3108
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3109
3109
|
viewBox: "0 0 24 24",
|
|
3110
3110
|
fill: "none",
|
|
@@ -3114,8 +3114,8 @@ const Ps = /* @__PURE__ */ Y(Fs, [["render", Rs]]), Hs = {}, Ns = {
|
|
|
3114
3114
|
"stroke-linejoin": "round",
|
|
3115
3115
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-line"
|
|
3116
3116
|
};
|
|
3117
|
-
function
|
|
3118
|
-
return r(), u("svg",
|
|
3117
|
+
function Ns(a, e) {
|
|
3118
|
+
return r(), u("svg", Hs, e[0] || (e[0] = [
|
|
3119
3119
|
l("path", {
|
|
3120
3120
|
stroke: "none",
|
|
3121
3121
|
d: "M0 0h24v24H0z",
|
|
@@ -3126,7 +3126,7 @@ function Ks(a, e) {
|
|
|
3126
3126
|
l("path", { d: "M7.5 16.5l9 -9" }, null, -1)
|
|
3127
3127
|
]));
|
|
3128
3128
|
}
|
|
3129
|
-
const
|
|
3129
|
+
const Ks = /* @__PURE__ */ Y(Ps, [["render", Ns]]), qs = {}, Gs = {
|
|
3130
3130
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3131
3131
|
viewBox: "0 0 24 24",
|
|
3132
3132
|
fill: "none",
|
|
@@ -3136,12 +3136,12 @@ const qs = /* @__PURE__ */ Y(Hs, [["render", Ks]]), Gs = {}, Zs = {
|
|
|
3136
3136
|
"stroke-linejoin": "round",
|
|
3137
3137
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-polygon"
|
|
3138
3138
|
};
|
|
3139
|
-
function
|
|
3140
|
-
return r(), u("svg",
|
|
3139
|
+
function Zs(a, e) {
|
|
3140
|
+
return r(), u("svg", Gs, e[0] || (e[0] = [
|
|
3141
3141
|
we('<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)
|
|
3142
3142
|
]));
|
|
3143
3143
|
}
|
|
3144
|
-
const
|
|
3144
|
+
const Ws = /* @__PURE__ */ Y(qs, [["render", Zs]]), Js = {}, Ys = {
|
|
3145
3145
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3146
3146
|
viewBox: "0 0 24 24",
|
|
3147
3147
|
fill: "none",
|
|
@@ -3151,12 +3151,12 @@ const Js = /* @__PURE__ */ Y(Gs, [["render", Ws]]), Ys = {}, Xs = {
|
|
|
3151
3151
|
"stroke-linejoin": "round",
|
|
3152
3152
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-topology-ring-3"
|
|
3153
3153
|
};
|
|
3154
|
-
function
|
|
3155
|
-
return r(), u("svg",
|
|
3154
|
+
function Xs(a, e) {
|
|
3155
|
+
return r(), u("svg", Ys, e[0] || (e[0] = [
|
|
3156
3156
|
we('<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)
|
|
3157
3157
|
]));
|
|
3158
3158
|
}
|
|
3159
|
-
const
|
|
3159
|
+
const Qs = /* @__PURE__ */ Y(Js, [["render", Xs]]), er = {}, tr = {
|
|
3160
3160
|
version: "1.1",
|
|
3161
3161
|
viewBox: "0 0 14 14",
|
|
3162
3162
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3164,8 +3164,8 @@ const er = /* @__PURE__ */ Y(Ys, [["render", Qs]]), tr = {}, lr = {
|
|
|
3164
3164
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
3165
3165
|
class: "fullscreen-icon"
|
|
3166
3166
|
};
|
|
3167
|
-
function
|
|
3168
|
-
return r(), u("svg",
|
|
3167
|
+
function lr(a, e) {
|
|
3168
|
+
return r(), u("svg", tr, e[0] || (e[0] = [
|
|
3169
3169
|
l("title", null, null, -1),
|
|
3170
3170
|
l("desc", null, null, -1),
|
|
3171
3171
|
l("defs", null, null, -1),
|
|
@@ -3194,10 +3194,10 @@ function or(a, e) {
|
|
|
3194
3194
|
], -1)
|
|
3195
3195
|
]));
|
|
3196
3196
|
}
|
|
3197
|
-
const
|
|
3197
|
+
const or = /* @__PURE__ */ Y(er, [["render", lr]]), ar = { class: "map-search-widget flex flex-col gap-2 rounded-xl widget min-w-[200px]" }, nr = {
|
|
3198
3198
|
key: 0,
|
|
3199
3199
|
class: "vs-select__options absolute z-50 mt-1 w-full bg-white border border-gray-300 shadow-lg rounded-lg text-sm"
|
|
3200
|
-
},
|
|
3200
|
+
}, sr = ["onClick"], rr = { class: "relative flex-1 min-w-[140px]" }, ir = ["placeholder"], ur = "https://data.softpro.ua/api-user/gis-url-proxy", dr = "https://geo.rv.ua/api-user/dzk.api", cr = /* @__PURE__ */ q({
|
|
3201
3201
|
__name: "map-search",
|
|
3202
3202
|
props: {
|
|
3203
3203
|
config: {}
|
|
@@ -3292,7 +3292,7 @@ const ar = /* @__PURE__ */ Y(tr, [["render", or]]), nr = { class: "map-search-wi
|
|
|
3292
3292
|
return;
|
|
3293
3293
|
}
|
|
3294
3294
|
try {
|
|
3295
|
-
const $ = new URL(d.value === "here" ?
|
|
3295
|
+
const $ = new URL(d.value === "here" ? ur : dr);
|
|
3296
3296
|
if (d.value === "here")
|
|
3297
3297
|
$.searchParams.set("searchtext", b);
|
|
3298
3298
|
else {
|
|
@@ -3317,7 +3317,7 @@ const ar = /* @__PURE__ */ Y(tr, [["render", or]]), nr = { class: "map-search-wi
|
|
|
3317
3317
|
}
|
|
3318
3318
|
}
|
|
3319
3319
|
}
|
|
3320
|
-
return (b, $) => (r(), u("div",
|
|
3320
|
+
return (b, $) => (r(), u("div", ar, [
|
|
3321
3321
|
l("form", {
|
|
3322
3322
|
class: "flex gap-2",
|
|
3323
3323
|
onSubmit: me(B, ["prevent"])
|
|
@@ -3349,23 +3349,23 @@ const ar = /* @__PURE__ */ Y(tr, [["render", or]]), nr = { class: "map-search-wi
|
|
|
3349
3349
|
}, null, -1)
|
|
3350
3350
|
]), 2))
|
|
3351
3351
|
]),
|
|
3352
|
-
p.value ? (r(), u("div",
|
|
3352
|
+
p.value ? (r(), u("div", nr, [
|
|
3353
3353
|
l("ul", null, [
|
|
3354
3354
|
(r(!0), u(ne, null, de(s.value, (z) => (r(), u("li", {
|
|
3355
3355
|
key: z,
|
|
3356
3356
|
class: "px-3 py-2 cursor-pointer hover:bg-gray-100",
|
|
3357
3357
|
onClick: (A) => v(z)
|
|
3358
|
-
}, K(g(z)), 9,
|
|
3358
|
+
}, K(g(z)), 9, sr))), 128))
|
|
3359
3359
|
])
|
|
3360
3360
|
])) : O("", !0)
|
|
3361
3361
|
], 512)) : O("", !0),
|
|
3362
|
-
l("div",
|
|
3362
|
+
l("div", rr, [
|
|
3363
3363
|
se(l("input", {
|
|
3364
3364
|
"onUpdate:modelValue": $[1] || ($[1] = (z) => c.value = z),
|
|
3365
3365
|
placeholder: i.value,
|
|
3366
3366
|
type: "text",
|
|
3367
3367
|
class: "vs-input transition-all border block w-full border-gray-200 rounded-md focus:border-blue-100 border-solid !pr-8 py-1.5 pl-3 text-sm"
|
|
3368
|
-
}, null, 8,
|
|
3368
|
+
}, null, 8, ir), [
|
|
3369
3369
|
[
|
|
3370
3370
|
ve,
|
|
3371
3371
|
c.value,
|
|
@@ -3397,7 +3397,7 @@ const ar = /* @__PURE__ */ Y(tr, [["render", or]]), nr = { class: "map-search-wi
|
|
|
3397
3397
|
], 32)
|
|
3398
3398
|
]));
|
|
3399
3399
|
}
|
|
3400
|
-
}),
|
|
3400
|
+
}), pr = /* @__PURE__ */ Y(cr, [["__scopeId", "data-v-3048520a"]]), fr = { class: "bg-white/30 p-1 rounded-md shadow w-fit" }, vr = { class: "flex gap-2" }, mr = ["onClick", "title"], hr = ["src"], gr = /* @__PURE__ */ q({
|
|
3401
3401
|
__name: "map-layers",
|
|
3402
3402
|
props: {
|
|
3403
3403
|
basemaps: {}
|
|
@@ -3408,8 +3408,8 @@ const ar = /* @__PURE__ */ Y(tr, [["render", or]]), nr = { class: "map-search-wi
|
|
|
3408
3408
|
function s(i) {
|
|
3409
3409
|
o("onLayerChange", i), n.value = i;
|
|
3410
3410
|
}
|
|
3411
|
-
return (i, d) => (r(), u("div",
|
|
3412
|
-
l("div",
|
|
3411
|
+
return (i, d) => (r(), u("div", fr, [
|
|
3412
|
+
l("div", vr, [
|
|
3413
3413
|
(r(!0), u(ne, null, de(i.basemaps, (c, p) => (r(), u("div", {
|
|
3414
3414
|
key: p,
|
|
3415
3415
|
class: D(["cursor-pointer border rounded-lg overflow-hidden hover:shadow-sm", { "ring-2 ring-blue-500 border-blue-300": n.value === p }]),
|
|
@@ -3422,33 +3422,33 @@ const ar = /* @__PURE__ */ Y(tr, [["render", or]]), nr = { class: "map-search-wi
|
|
|
3422
3422
|
src: c.preview,
|
|
3423
3423
|
alt: "",
|
|
3424
3424
|
class: "w-10 h-10 object-cover"
|
|
3425
|
-
}, null, 8,
|
|
3426
|
-
], 10,
|
|
3425
|
+
}, null, 8, hr)
|
|
3426
|
+
], 10, mr))), 128))
|
|
3427
3427
|
])
|
|
3428
3428
|
]));
|
|
3429
3429
|
}
|
|
3430
|
-
}),
|
|
3430
|
+
}), br = {
|
|
3431
3431
|
key: 0,
|
|
3432
3432
|
class: "absolute inset-0 z-[2000] flex items-center justify-center pointer-events-none bg-black/20"
|
|
3433
|
-
},
|
|
3433
|
+
}, yr = { class: "bg-black/50 text-white px-6 py-2 rounded-lg text-center max-w-sm mx-4 backdrop-blur-sm" }, xr = { class: "text-sm font-medium" }, wr = {
|
|
3434
3434
|
key: 0,
|
|
3435
3435
|
class: "absolute top-4 left-4 z-[1000] w-[calc(100%-20px)] sm:w-[350px]"
|
|
3436
|
-
},
|
|
3436
|
+
}, kr = {
|
|
3437
3437
|
key: 1,
|
|
3438
3438
|
class: "form-geom__panel flex gap-1 items-start mt-2"
|
|
3439
|
-
},
|
|
3439
|
+
}, _r = { class: "flex items-center gap-1" }, $r = ["disabled"], Cr = ["disabled"], Vr = ["disabled"], Mr = { class: "absolute top-4 right-4 z-[1000]" }, Lr = { class: "flex flex-col gap-[2px]" }, Sr = ["disabled"], Br = ["disabled"], jr = ["disabled"], Er = ["disabled"], Ir = { class: "flex flex-col gap-2" }, Ar = {
|
|
3440
3440
|
key: 0,
|
|
3441
3441
|
class: "bg-white/95 border border-gray-200 rounded-md shadow-sm px-3 py-2 text-xs text-gray-700 min-w-[200px]"
|
|
3442
|
-
},
|
|
3442
|
+
}, zr = { class: "flex flex-col gap-1" }, Tr = ["checked", "disabled", "onChange"], Or = { class: "text-gray-700 text-xs font-medium" }, Dr = { class: "absolute bottom-0 left-0 right-0 z-[1000] bg-white/95 border-t border-gray-200 text-xs text-gray-700 flex items-center gap-4 pt-1" }, Fr = {
|
|
3443
3443
|
key: 0,
|
|
3444
3444
|
class: "form-geom__feature flex items-center text-xs transition-all gap-2 w-full"
|
|
3445
|
-
},
|
|
3445
|
+
}, Ur = { class: "shrink-0" }, Rr = { class: "font-bold" }, Pr = { class: "flex items-center" }, Hr = { class: "text-xs mr-2" }, Nr = {
|
|
3446
3446
|
key: 0,
|
|
3447
3447
|
class: "text-xs"
|
|
3448
|
-
},
|
|
3448
|
+
}, Kr = {
|
|
3449
3449
|
key: 1,
|
|
3450
3450
|
class: "text-xs"
|
|
3451
|
-
},
|
|
3451
|
+
}, qr = ["disabled"], Gr = ["disabled"], Zr = /* @__PURE__ */ q({
|
|
3452
3452
|
__name: "vs-input-map",
|
|
3453
3453
|
props: {
|
|
3454
3454
|
tools: {},
|
|
@@ -3467,7 +3467,7 @@ const ar = /* @__PURE__ */ Y(tr, [["render", or]]), nr = { class: "map-search-wi
|
|
|
3467
3467
|
},
|
|
3468
3468
|
emits: ["update:modelValue"],
|
|
3469
3469
|
setup(a, { emit: e }) {
|
|
3470
|
-
const n =
|
|
3470
|
+
const n = qt()?.appContext?.config?.globalProperties?.$settings ?? {}, o = Array.isArray(n.center) && n.center.length === 2 ? n.center : [50, 30], s = typeof n.zoom == "number" ? n.zoom : typeof n.defaultZoom == "number" ? n.defaultZoom : 10, i = a, d = e, c = L(() => !!i.disabled), p = V(!1), m = V(null), v = V(!1), S = V(""), g = V(null), j = V(null), h = V(!1), y = V(null), w = V(null), k = V(0), B = V(o), b = V(s), $ = V(null), z = L(() => {
|
|
3471
3471
|
const x = { search: !1, import: !1, export: !1, point: !1, line: !1, polygon: !1, rectangle: !1 };
|
|
3472
3472
|
if (!i.tools?.length) return x;
|
|
3473
3473
|
const f = new Set(i.tools.map((I) => I.toLowerCase()));
|
|
@@ -3480,7 +3480,7 @@ const ar = /* @__PURE__ */ Y(tr, [["render", or]]), nr = { class: "map-search-wi
|
|
|
3480
3480
|
polygon: f.has("polygon"),
|
|
3481
3481
|
rectangle: f.has("rectangle")
|
|
3482
3482
|
};
|
|
3483
|
-
}), A =
|
|
3483
|
+
}), A = Tt({}), H = V([]), te = L(() => H.value.map((x) => A[x]).filter(Boolean));
|
|
3484
3484
|
function J(x) {
|
|
3485
3485
|
if (typeof x != "string" || !x.trim()) return "";
|
|
3486
3486
|
if (/^https?:\/\//i.test(x)) return x;
|
|
@@ -3764,7 +3764,7 @@ const ar = /* @__PURE__ */ Y(tr, [["render", or]]), nr = { class: "map-search-wi
|
|
|
3764
3764
|
return xe(async () => {
|
|
3765
3765
|
$.value = await X();
|
|
3766
3766
|
const x = $.value;
|
|
3767
|
-
x.drawLocal =
|
|
3767
|
+
x.drawLocal = Os, C = x.map(m.value, { zoomControl: !1, scrollWheelZoom: !1 }).setView(B.value, b.value), x.control.zoom({ position: "bottomright" }).addTo(C);
|
|
3768
3768
|
const f = le.value || Object.keys(W)[0];
|
|
3769
3769
|
f && W[f] && (le.value = f, U = x.tileLayer(W[f].url, { maxZoom: 19, minZoom: 6 }).addTo(C)), T = new x.FeatureGroup().addTo(C), C.on(x.Draw.Event.CREATED, (R) => {
|
|
3770
3770
|
if (c.value) return;
|
|
@@ -3813,35 +3813,35 @@ const ar = /* @__PURE__ */ Y(tr, [["render", or]]), nr = { class: "map-search-wi
|
|
|
3813
3813
|
"leave-to-class": "opacity-0"
|
|
3814
3814
|
}, {
|
|
3815
3815
|
default: Ae(() => [
|
|
3816
|
-
v.value && i.handleZoom ? (r(), u("div",
|
|
3817
|
-
l("div",
|
|
3818
|
-
l("p",
|
|
3816
|
+
v.value && i.handleZoom ? (r(), u("div", br, [
|
|
3817
|
+
l("div", yr, [
|
|
3818
|
+
l("p", xr, K(S.value), 1)
|
|
3819
3819
|
])
|
|
3820
3820
|
])) : O("", !0)
|
|
3821
3821
|
]),
|
|
3822
3822
|
_: 1
|
|
3823
3823
|
}),
|
|
3824
|
-
z.value.search || z.value.import || z.value.export ? (r(), u("div",
|
|
3825
|
-
z.value.search ? (r(), ce(
|
|
3824
|
+
z.value.search || z.value.import || z.value.export ? (r(), u("div", wr, [
|
|
3825
|
+
z.value.search ? (r(), ce(pr, {
|
|
3826
3826
|
key: 0,
|
|
3827
3827
|
onGoToCoordinates: at
|
|
3828
3828
|
})) : O("", !0),
|
|
3829
|
-
z.value.import || z.value.export ? (r(), u("div",
|
|
3830
|
-
l("div",
|
|
3829
|
+
z.value.import || z.value.export ? (r(), u("div", kr, [
|
|
3830
|
+
l("div", _r, [
|
|
3831
3831
|
z.value.import ? (r(), u("button", {
|
|
3832
3832
|
key: 0,
|
|
3833
3833
|
type: "button",
|
|
3834
3834
|
class: "inline-flex items-center gap-2 text-sm font-medium border rounded-md px-3 py-2 bg-white text-blue-600 border-stone-200 hover:bg-blue-500 hover:text-white transition",
|
|
3835
3835
|
onClick: et,
|
|
3836
3836
|
disabled: c.value
|
|
3837
|
-
}, " Import ", 8,
|
|
3837
|
+
}, " Import ", 8, $r)) : O("", !0),
|
|
3838
3838
|
z.value.export ? (r(), u("button", {
|
|
3839
3839
|
key: 1,
|
|
3840
3840
|
type: "button",
|
|
3841
3841
|
class: "inline-flex items-center gap-2 text-sm font-medium border rounded-md px-3 py-2 bg-white text-blue-600 border-stone-200 hover:bg-blue-500 hover:text-white transition",
|
|
3842
3842
|
onClick: lt,
|
|
3843
3843
|
disabled: c.value || k.value === 0
|
|
3844
|
-
}, " Export ", 8,
|
|
3844
|
+
}, " Export ", 8, Cr)) : O("", !0)
|
|
3845
3845
|
]),
|
|
3846
3846
|
l("input", {
|
|
3847
3847
|
ref_key: "importRef",
|
|
@@ -3851,11 +3851,11 @@ const ar = /* @__PURE__ */ Y(tr, [["render", or]]), nr = { class: "map-search-wi
|
|
|
3851
3851
|
accept: ".json,.geojson",
|
|
3852
3852
|
class: "hidden",
|
|
3853
3853
|
disabled: c.value
|
|
3854
|
-
}, null, 40,
|
|
3854
|
+
}, null, 40, Vr)
|
|
3855
3855
|
])) : O("", !0)
|
|
3856
3856
|
])) : O("", !0),
|
|
3857
|
-
l("div",
|
|
3858
|
-
l("div",
|
|
3857
|
+
l("div", Mr, [
|
|
3858
|
+
l("div", Lr, [
|
|
3859
3859
|
z.value.point ? (r(), u("button", {
|
|
3860
3860
|
key: 0,
|
|
3861
3861
|
class: D(["vs-btn", { "vs-active": Se.value === "marker" }]),
|
|
@@ -3863,8 +3863,8 @@ const ar = /* @__PURE__ */ Y(tr, [["render", or]]), nr = { class: "map-search-wi
|
|
|
3863
3863
|
onClick: f[0] || (f[0] = (I) => Be("marker")),
|
|
3864
3864
|
disabled: c.value
|
|
3865
3865
|
}, [
|
|
3866
|
-
P(
|
|
3867
|
-
], 10,
|
|
3866
|
+
P(Rs)
|
|
3867
|
+
], 10, Sr)) : O("", !0),
|
|
3868
3868
|
z.value.line ? (r(), u("button", {
|
|
3869
3869
|
key: 1,
|
|
3870
3870
|
class: D(["vs-btn", { "vs-active": Se.value === "polyline" }]),
|
|
@@ -3872,8 +3872,8 @@ const ar = /* @__PURE__ */ Y(tr, [["render", or]]), nr = { class: "map-search-wi
|
|
|
3872
3872
|
onClick: f[1] || (f[1] = (I) => Be("polyline")),
|
|
3873
3873
|
disabled: c.value
|
|
3874
3874
|
}, [
|
|
3875
|
-
P(
|
|
3876
|
-
], 10,
|
|
3875
|
+
P(Ks)
|
|
3876
|
+
], 10, Br)) : O("", !0),
|
|
3877
3877
|
z.value.polygon ? (r(), u("button", {
|
|
3878
3878
|
key: 2,
|
|
3879
3879
|
class: D(["vs-btn", { "vs-active": Se.value === "polygon" }]),
|
|
@@ -3881,8 +3881,8 @@ const ar = /* @__PURE__ */ Y(tr, [["render", or]]), nr = { class: "map-search-wi
|
|
|
3881
3881
|
onClick: f[2] || (f[2] = (I) => Be("polygon")),
|
|
3882
3882
|
disabled: c.value
|
|
3883
3883
|
}, [
|
|
3884
|
-
P(
|
|
3885
|
-
], 10,
|
|
3884
|
+
P(Ws)
|
|
3885
|
+
], 10, jr)) : O("", !0),
|
|
3886
3886
|
z.value.rectangle ? (r(), u("button", {
|
|
3887
3887
|
key: 3,
|
|
3888
3888
|
class: D(["vs-btn", { "vs-active": Se.value === "rectangle" }]),
|
|
@@ -3890,28 +3890,28 @@ const ar = /* @__PURE__ */ Y(tr, [["render", or]]), nr = { class: "map-search-wi
|
|
|
3890
3890
|
onClick: f[3] || (f[3] = (I) => Be("rectangle")),
|
|
3891
3891
|
disabled: c.value
|
|
3892
3892
|
}, [
|
|
3893
|
-
P(
|
|
3894
|
-
], 10,
|
|
3893
|
+
P(Qs)
|
|
3894
|
+
], 10, Er)) : O("", !0),
|
|
3895
3895
|
l("button", {
|
|
3896
3896
|
class: "vs-btn mt-5",
|
|
3897
3897
|
onClick: f[4] || (f[4] = (I) => p.value = !p.value),
|
|
3898
3898
|
title: "Full Screen"
|
|
3899
3899
|
}, [
|
|
3900
|
-
P(
|
|
3900
|
+
P(or, { style: { width: "12px", height: "12px" } })
|
|
3901
3901
|
])
|
|
3902
3902
|
])
|
|
3903
3903
|
]),
|
|
3904
3904
|
l("div", {
|
|
3905
3905
|
class: D(["absolute left-4 z-[1000]", j.value ? "bottom-8" : "bottom-4"])
|
|
3906
3906
|
}, [
|
|
3907
|
-
l("div",
|
|
3908
|
-
P(
|
|
3907
|
+
l("div", Ir, [
|
|
3908
|
+
P(gr, {
|
|
3909
3909
|
basemaps: ee(W),
|
|
3910
3910
|
onOnLayerChange: ot
|
|
3911
3911
|
}, null, 8, ["basemaps"]),
|
|
3912
|
-
te.value.length ? (r(), u("div",
|
|
3912
|
+
te.value.length ? (r(), u("div", Ar, [
|
|
3913
3913
|
f[9] || (f[9] = l("p", { class: "font-semibold text-[11px] uppercase tracking-wide text-gray-500 mb-2" }, "Layers", -1)),
|
|
3914
|
-
l("div",
|
|
3914
|
+
l("div", zr, [
|
|
3915
3915
|
(r(!0), u(ne, null, de(te.value, (I) => (r(), u("label", {
|
|
3916
3916
|
key: I.id,
|
|
3917
3917
|
class: "flex items-center gap-2 cursor-pointer select-none"
|
|
@@ -3922,23 +3922,23 @@ const ar = /* @__PURE__ */ Y(tr, [["render", or]]), nr = { class: "map-search-wi
|
|
|
3922
3922
|
checked: I.visible,
|
|
3923
3923
|
disabled: c.value,
|
|
3924
3924
|
onChange: (R) => ct(I.id)
|
|
3925
|
-
}, null, 40,
|
|
3926
|
-
l("span",
|
|
3925
|
+
}, null, 40, Tr),
|
|
3926
|
+
l("span", Or, K(I.config.title || I.config.name || I.id), 1)
|
|
3927
3927
|
]))), 128))
|
|
3928
3928
|
])
|
|
3929
3929
|
])) : O("", !0)
|
|
3930
3930
|
])
|
|
3931
3931
|
], 2),
|
|
3932
|
-
l("div",
|
|
3933
|
-
j.value ? (r(), u("div",
|
|
3932
|
+
l("div", Dr, [
|
|
3933
|
+
j.value ? (r(), u("div", Fr, [
|
|
3934
3934
|
l("div", {
|
|
3935
3935
|
class: "mr-auto flex items-center gap-2 min-w-0 relative",
|
|
3936
3936
|
onMouseenter: f[5] || (f[5] = (I) => h.value = !0),
|
|
3937
3937
|
onMouseleave: f[6] || (f[6] = (I) => h.value = !1)
|
|
3938
3938
|
}, [
|
|
3939
|
-
l("div",
|
|
3940
|
-
f[10] || (f[10] = ge(" Type: ")),
|
|
3941
|
-
l("span",
|
|
3939
|
+
l("div", Ur, [
|
|
3940
|
+
f[10] || (f[10] = ge(" Type: ", -1)),
|
|
3941
|
+
l("span", Rr, K(j.value.type), 1)
|
|
3942
3942
|
]),
|
|
3943
3943
|
g.value ? (r(), u("div", {
|
|
3944
3944
|
key: 0,
|
|
@@ -3955,16 +3955,16 @@ const ar = /* @__PURE__ */ Y(tr, [["render", or]]), nr = { class: "map-search-wi
|
|
|
3955
3955
|
}, K(g.value), 5)) : O("", !0)
|
|
3956
3956
|
]))
|
|
3957
3957
|
], 32),
|
|
3958
|
-
l("div",
|
|
3959
|
-
l("div",
|
|
3960
|
-
f[11] || (f[11] = ge(" Center: ")),
|
|
3958
|
+
l("div", Pr, [
|
|
3959
|
+
l("div", Hr, [
|
|
3960
|
+
f[11] || (f[11] = ge(" Center: ", -1)),
|
|
3961
3961
|
l("b", null, K(j.value.center.lat.toFixed(5)) + ", " + K(j.value.center.lng.toFixed(5)), 1)
|
|
3962
3962
|
]),
|
|
3963
|
-
j.value.areaKm2 !== null ? (r(), u("div",
|
|
3964
|
-
f[12] || (f[12] = ge(" Area: ")),
|
|
3963
|
+
j.value.areaKm2 !== null ? (r(), u("div", Nr, [
|
|
3964
|
+
f[12] || (f[12] = ge(" Area: ", -1)),
|
|
3965
3965
|
l("b", null, K(j.value.areaKm2.toFixed(1)) + " km²", 1)
|
|
3966
|
-
])) : (r(), u("div",
|
|
3967
|
-
ge("Area: "),
|
|
3966
|
+
])) : (r(), u("div", Kr, f[13] || (f[13] = [
|
|
3967
|
+
ge("Area: ", -1),
|
|
3968
3968
|
l("b", null, "—", -1)
|
|
3969
3969
|
]))),
|
|
3970
3970
|
l("button", {
|
|
@@ -3974,7 +3974,7 @@ const ar = /* @__PURE__ */ Y(tr, [["render", or]]), nr = { class: "map-search-wi
|
|
|
3974
3974
|
disabled: c.value
|
|
3975
3975
|
}, f[14] || (f[14] = [
|
|
3976
3976
|
we('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-3 h-3" data-v-878b95a9><path d="M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0" data-v-878b95a9></path><path d="M7 10l6 0" data-v-878b95a9></path><path d="M10 7l0 6" data-v-878b95a9></path><path d="M21 21l-6 -6" data-v-878b95a9></path></svg>', 1)
|
|
3977
|
-
]), 8,
|
|
3977
|
+
]), 8, qr),
|
|
3978
3978
|
l("button", {
|
|
3979
3979
|
class: "tool bg-gray-100 py-1.5 px-2 rounded-lg text-md cursor-pointer hover:bg-blue-500 hover:text-white transition-all",
|
|
3980
3980
|
title: "Delete feature",
|
|
@@ -3982,16 +3982,16 @@ const ar = /* @__PURE__ */ Y(tr, [["render", or]]), nr = { class: "map-search-wi
|
|
|
3982
3982
|
disabled: c.value
|
|
3983
3983
|
}, [
|
|
3984
3984
|
P(ut, { class: "w-3 h-3" })
|
|
3985
|
-
], 8,
|
|
3985
|
+
], 8, Gr)
|
|
3986
3986
|
])
|
|
3987
3987
|
])) : O("", !0)
|
|
3988
3988
|
])
|
|
3989
3989
|
], 2));
|
|
3990
3990
|
}
|
|
3991
|
-
}),
|
|
3991
|
+
}), Wr = /* @__PURE__ */ Y(Zr, [["__scopeId", "data-v-878b95a9"]]), Jr = ["data-focus"], Yr = { class: "flex items-center" }, Xr = { class: "overflow-hidden text-ellipsis whitespace-nowrap rounded-sm text-[#333] text-[85%] px-0.5 py-[3px] pl-1.5 box-border" }, Qr = ["onClick", "aria-label"], ei = {
|
|
3992
3992
|
key: 0,
|
|
3993
3993
|
class: "absolute text-gray-500 truncate pl-2"
|
|
3994
|
-
},
|
|
3994
|
+
}, ti = { class: "flex-1 min-w-[2px]" }, li = ["placeholder"], oi = { class: "flex items-center shrink-0" }, ai = ["disabled"], ni = /* @__PURE__ */ q({
|
|
3995
3995
|
__name: "vs-input-tag",
|
|
3996
3996
|
props: /* @__PURE__ */ re({
|
|
3997
3997
|
unique: { type: Boolean, default: !0 },
|
|
@@ -4062,8 +4062,8 @@ const ar = /* @__PURE__ */ Y(tr, [["render", or]]), nr = { class: "map-search-wi
|
|
|
4062
4062
|
key: te,
|
|
4063
4063
|
class: "flex min-w-0 bg-[#e6e6e6] rounded-sm m-0.5 box-border"
|
|
4064
4064
|
}, [
|
|
4065
|
-
l("div",
|
|
4066
|
-
l("div",
|
|
4065
|
+
l("div", Yr, [
|
|
4066
|
+
l("div", Xr, K(H), 1)
|
|
4067
4067
|
]),
|
|
4068
4068
|
l("div", {
|
|
4069
4069
|
role: "button",
|
|
@@ -4081,10 +4081,10 @@ const ar = /* @__PURE__ */ Y(tr, [["render", or]]), nr = { class: "map-search-wi
|
|
|
4081
4081
|
}, [
|
|
4082
4082
|
l("path", { d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z" })
|
|
4083
4083
|
], -1)
|
|
4084
|
-
]), 8,
|
|
4084
|
+
]), 8, Qr)
|
|
4085
4085
|
]))), 128)),
|
|
4086
|
-
v.value ? (r(), u("div",
|
|
4087
|
-
l("div",
|
|
4086
|
+
v.value ? (r(), u("div", ei, K(m.value), 1)) : O("", !0),
|
|
4087
|
+
l("div", ti, [
|
|
4088
4088
|
g.value ? O("", !0) : se((r(), u("input", {
|
|
4089
4089
|
key: 0,
|
|
4090
4090
|
ref_key: "inputRef",
|
|
@@ -4102,12 +4102,12 @@ const ar = /* @__PURE__ */ Y(tr, [["render", or]]), nr = { class: "map-search-wi
|
|
|
4102
4102
|
onBlur: b,
|
|
4103
4103
|
onKeydown: $,
|
|
4104
4104
|
placeholder: p.value && p.value.length ? "" : void 0
|
|
4105
|
-
}, null, 40,
|
|
4105
|
+
}, null, 40, li)), [
|
|
4106
4106
|
[ve, c.value]
|
|
4107
4107
|
])
|
|
4108
4108
|
])
|
|
4109
4109
|
], 512),
|
|
4110
|
-
l("div",
|
|
4110
|
+
l("div", oi, [
|
|
4111
4111
|
S.value ? (r(), u("button", {
|
|
4112
4112
|
key: 0,
|
|
4113
4113
|
type: "button",
|
|
@@ -4124,13 +4124,13 @@ const ar = /* @__PURE__ */ Y(tr, [["render", or]]), nr = { class: "map-search-wi
|
|
|
4124
4124
|
}, [
|
|
4125
4125
|
l("path", { d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z" })
|
|
4126
4126
|
], -1)
|
|
4127
|
-
]), 8,
|
|
4127
|
+
]), 8, ai)) : O("", !0)
|
|
4128
4128
|
])
|
|
4129
|
-
], 10,
|
|
4129
|
+
], 10, Jr)
|
|
4130
4130
|
], 2)
|
|
4131
4131
|
], 512));
|
|
4132
4132
|
}
|
|
4133
|
-
}),
|
|
4133
|
+
}), si = { class: "relative flex gap-1 bg-white w-full" }, ri = ["disabled", "placeholder"], ii = /* @__PURE__ */ q({
|
|
4134
4134
|
__name: "vs-input-slug",
|
|
4135
4135
|
props: /* @__PURE__ */ re({
|
|
4136
4136
|
disabled: { type: Boolean },
|
|
@@ -4189,14 +4189,14 @@ const ar = /* @__PURE__ */ Y(tr, [["render", or]]), nr = { class: "map-search-wi
|
|
|
4189
4189
|
const i = e?.value?.[t.parent || ""]?.toString(), d = o(i);
|
|
4190
4190
|
n.value = d.toString();
|
|
4191
4191
|
};
|
|
4192
|
-
return (i, d) => (r(), u("div",
|
|
4192
|
+
return (i, d) => (r(), u("div", si, [
|
|
4193
4193
|
se(l("input", {
|
|
4194
4194
|
ref: "vsText",
|
|
4195
4195
|
disabled: i.disabled,
|
|
4196
4196
|
placeholder: i.placeholder,
|
|
4197
4197
|
"onUpdate:modelValue": d[0] || (d[0] = (c) => n.value = c),
|
|
4198
4198
|
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"
|
|
4199
|
-
}, null, 8,
|
|
4199
|
+
}, null, 8, ri), [
|
|
4200
4200
|
[ve, n.value]
|
|
4201
4201
|
]),
|
|
4202
4202
|
l("button", {
|
|
@@ -4205,7 +4205,7 @@ const ar = /* @__PURE__ */ Y(tr, [["render", or]]), nr = { class: "map-search-wi
|
|
|
4205
4205
|
}, " Gen ")
|
|
4206
4206
|
]));
|
|
4207
4207
|
}
|
|
4208
|
-
}),
|
|
4208
|
+
}), ui = /* @__PURE__ */ Y(ii, [["__scopeId", "data-v-b0eba370"]]), di = { class: "relative flex gap-1 bg-white w-full" }, ci = ["disabled", "placeholder"], pi = ["disabled"], fi = { key: 0 }, vi = { key: 1 }, mi = /* @__PURE__ */ q({
|
|
4209
4209
|
__name: "vs-input-codegen",
|
|
4210
4210
|
props: /* @__PURE__ */ re({
|
|
4211
4211
|
table: {},
|
|
@@ -4252,13 +4252,13 @@ const ar = /* @__PURE__ */ Y(tr, [["render", or]]), nr = { class: "map-search-wi
|
|
|
4252
4252
|
() => {
|
|
4253
4253
|
c();
|
|
4254
4254
|
}
|
|
4255
|
-
), (p, m) => (r(), u("div",
|
|
4255
|
+
), (p, m) => (r(), u("div", di, [
|
|
4256
4256
|
se(l("input", {
|
|
4257
4257
|
disabled: p.disabled,
|
|
4258
4258
|
placeholder: p.placeholder,
|
|
4259
4259
|
"onUpdate:modelValue": m[0] || (m[0] = (v) => t.value = v),
|
|
4260
4260
|
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"
|
|
4261
|
-
}, null, 8,
|
|
4261
|
+
}, null, 8, ci), [
|
|
4262
4262
|
[ve, t.value]
|
|
4263
4263
|
]),
|
|
4264
4264
|
l("button", {
|
|
@@ -4266,17 +4266,17 @@ const ar = /* @__PURE__ */ Y(tr, [["render", or]]), nr = { class: "map-search-wi
|
|
|
4266
4266
|
disabled: n.value || p.disabled || !s.value,
|
|
4267
4267
|
onClick: d
|
|
4268
4268
|
}, [
|
|
4269
|
-
n.value ? (r(), u("span",
|
|
4270
|
-
], 8,
|
|
4269
|
+
n.value ? (r(), u("span", vi, "...")) : (r(), u("span", fi, "Gen"))
|
|
4270
|
+
], 8, pi)
|
|
4271
4271
|
]));
|
|
4272
4272
|
}
|
|
4273
|
-
}),
|
|
4273
|
+
}), hi = /* @__PURE__ */ Y(mi, [["__scopeId", "data-v-6ee5237d"]]), gi = { class: "w-full" }, bi = {
|
|
4274
4274
|
ref: "sortableContainer",
|
|
4275
4275
|
class: "flex flex-col gap-1"
|
|
4276
|
-
},
|
|
4276
|
+
}, yi = ["onDragstart", "onDrop"], xi = { class: "w-1/3" }, wi = { class: "w-2/3" }, ki = ["onClick"], _i = {
|
|
4277
4277
|
key: 0,
|
|
4278
4278
|
class: "text-[14px] text-gray-700"
|
|
4279
|
-
},
|
|
4279
|
+
}, $i = { class: "mt-2 w-full flex items-center" }, Ci = ["disabled"], Vi = /* @__PURE__ */ q({
|
|
4280
4280
|
__name: "vs-input-key-value",
|
|
4281
4281
|
props: {
|
|
4282
4282
|
parent: {},
|
|
@@ -4326,8 +4326,8 @@ const ar = /* @__PURE__ */ Y(tr, [["render", or]]), nr = { class: "map-search-wi
|
|
|
4326
4326
|
}), s("update:modelValue", w);
|
|
4327
4327
|
},
|
|
4328
4328
|
{ deep: !0 }
|
|
4329
|
-
), (y, w) => (r(), u("div",
|
|
4330
|
-
l("div",
|
|
4329
|
+
), (y, w) => (r(), u("div", gi, [
|
|
4330
|
+
l("div", bi, [
|
|
4331
4331
|
(r(!0), u(ne, null, de(c.value, (k, B) => (r(), u("div", {
|
|
4332
4332
|
key: k.id,
|
|
4333
4333
|
class: D(["flex items-center gap-2 w-full", { "opacity-50": p.value === B }]),
|
|
@@ -4338,14 +4338,14 @@ const ar = /* @__PURE__ */ Y(tr, [["render", or]]), nr = { class: "map-search-wi
|
|
|
4338
4338
|
onDrop: (b) => S(B)
|
|
4339
4339
|
}, [
|
|
4340
4340
|
w[1] || (w[1] = we('<button class="cursor-move" data-v-a0f7fbfc><svg fill="#000000" width="20" height="20" viewBox="0 0 36 36" data-v-a0f7fbfc><circle cx="15" cy="12" r="1.5" data-v-a0f7fbfc></circle><circle cx="15" cy="24" r="1.5" data-v-a0f7fbfc></circle><circle cx="21" cy="12" r="1.5" data-v-a0f7fbfc></circle><circle cx="21" cy="24" r="1.5" data-v-a0f7fbfc></circle><circle cx="21" cy="18" r="1.5" data-v-a0f7fbfc></circle><circle cx="15" cy="18" r="1.5" data-v-a0f7fbfc></circle></svg></button>', 1)),
|
|
4341
|
-
l("div",
|
|
4341
|
+
l("div", xi, [
|
|
4342
4342
|
P(We, {
|
|
4343
4343
|
modelValue: k.key,
|
|
4344
4344
|
"onUpdate:modelValue": (b) => k.key = b,
|
|
4345
4345
|
placeholder: "Ключ"
|
|
4346
4346
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
4347
4347
|
]),
|
|
4348
|
-
l("div",
|
|
4348
|
+
l("div", wi, [
|
|
4349
4349
|
P(We, {
|
|
4350
4350
|
modelValue: k.value,
|
|
4351
4351
|
"onUpdate:modelValue": (b) => k.value = b,
|
|
@@ -4360,11 +4360,11 @@ const ar = /* @__PURE__ */ Y(tr, [["render", or]]), nr = { class: "map-search-wi
|
|
|
4360
4360
|
height: "16",
|
|
4361
4361
|
width: "16"
|
|
4362
4362
|
})
|
|
4363
|
-
], 8,
|
|
4364
|
-
], 42,
|
|
4363
|
+
], 8, ki)
|
|
4364
|
+
], 42, yi))), 128))
|
|
4365
4365
|
], 512),
|
|
4366
|
-
c.value.length ? O("", !0) : (r(), u("span",
|
|
4367
|
-
l("div",
|
|
4366
|
+
c.value.length ? O("", !0) : (r(), u("span", _i, " Дані для відображення відсутні ")),
|
|
4367
|
+
l("div", $i, [
|
|
4368
4368
|
l("button", {
|
|
4369
4369
|
type: "button",
|
|
4370
4370
|
onClick: j,
|
|
@@ -4376,17 +4376,17 @@ const ar = /* @__PURE__ */ Y(tr, [["render", or]]), nr = { class: "map-search-wi
|
|
|
4376
4376
|
width: "14"
|
|
4377
4377
|
}),
|
|
4378
4378
|
ge(" " + K(ee(i)), 1)
|
|
4379
|
-
], 8,
|
|
4379
|
+
], 8, Ci)
|
|
4380
4380
|
])
|
|
4381
4381
|
]));
|
|
4382
4382
|
}
|
|
4383
|
-
}),
|
|
4383
|
+
}), Mi = /* @__PURE__ */ Y(Vi, [["__scopeId", "data-v-a0f7fbfc"]]), Li = { class: "w-full" }, Si = {
|
|
4384
4384
|
ref: "sortableContainer",
|
|
4385
4385
|
class: "flex flex-col gap-1"
|
|
4386
|
-
},
|
|
4386
|
+
}, Bi = ["onDragstart", "onDrop"], ji = ["disabled"], Ei = { class: "flex-1" }, Ii = ["onClick", "disabled"], Ai = {
|
|
4387
4387
|
key: 0,
|
|
4388
4388
|
class: "text-[14px] text-gray-700"
|
|
4389
|
-
},
|
|
4389
|
+
}, zi = { class: "mt-2 w-full flex items-center" }, Ti = ["disabled"], Oi = /* @__PURE__ */ q({
|
|
4390
4390
|
__name: "vs-input-text-array",
|
|
4391
4391
|
props: /* @__PURE__ */ re({
|
|
4392
4392
|
addButtonText: { default: "Додати" },
|
|
@@ -4439,8 +4439,8 @@ const ar = /* @__PURE__ */ Y(tr, [["render", or]]), nr = { class: "map-search-wi
|
|
|
4439
4439
|
const w = [...n.value], [k] = w.splice(o.value, 1);
|
|
4440
4440
|
w.splice(y, 0, k), n.value = w, o.value = null;
|
|
4441
4441
|
}
|
|
4442
|
-
return (y, w) => (r(), u("div",
|
|
4443
|
-
l("div",
|
|
4442
|
+
return (y, w) => (r(), u("div", Li, [
|
|
4443
|
+
l("div", Si, [
|
|
4444
4444
|
(r(!0), u(ne, null, de(n.value, (k, B) => (r(), u("div", {
|
|
4445
4445
|
key: k.id,
|
|
4446
4446
|
class: D(["flex items-center gap-2 w-full", { "opacity-50": o.value === B }]),
|
|
@@ -4456,8 +4456,8 @@ const ar = /* @__PURE__ */ Y(tr, [["render", or]]), nr = { class: "map-search-wi
|
|
|
4456
4456
|
disabled: s.value
|
|
4457
4457
|
}, w[1] || (w[1] = [
|
|
4458
4458
|
we('<svg fill="#000000" width="20" height="20" viewBox="0 0 36 36" data-v-efa2057b><circle cx="15" cy="12" r="1.5" data-v-efa2057b></circle><circle cx="15" cy="24" r="1.5" data-v-efa2057b></circle><circle cx="21" cy="12" r="1.5" data-v-efa2057b></circle><circle cx="21" cy="24" r="1.5" data-v-efa2057b></circle><circle cx="21" cy="18" r="1.5" data-v-efa2057b></circle><circle cx="15" cy="18" r="1.5" data-v-efa2057b></circle></svg>', 1)
|
|
4459
|
-
]), 8,
|
|
4460
|
-
l("div",
|
|
4459
|
+
]), 8, ji),
|
|
4460
|
+
l("div", Ei, [
|
|
4461
4461
|
P(We, {
|
|
4462
4462
|
modelValue: k.value,
|
|
4463
4463
|
"onUpdate:modelValue": (b) => k.value = b,
|
|
@@ -4475,11 +4475,11 @@ const ar = /* @__PURE__ */ Y(tr, [["render", or]]), nr = { class: "map-search-wi
|
|
|
4475
4475
|
height: "16",
|
|
4476
4476
|
width: "16"
|
|
4477
4477
|
})
|
|
4478
|
-
], 8,
|
|
4479
|
-
], 42,
|
|
4478
|
+
], 8, Ii)
|
|
4479
|
+
], 42, Bi))), 128))
|
|
4480
4480
|
], 512),
|
|
4481
|
-
n.value.length ? O("", !0) : (r(), u("span",
|
|
4482
|
-
l("div",
|
|
4481
|
+
n.value.length ? O("", !0) : (r(), u("span", Ai, " Дані для відображення відсутні ")),
|
|
4482
|
+
l("div", zi, [
|
|
4483
4483
|
l("button", {
|
|
4484
4484
|
type: "button",
|
|
4485
4485
|
onClick: S,
|
|
@@ -4491,11 +4491,11 @@ const ar = /* @__PURE__ */ Y(tr, [["render", or]]), nr = { class: "map-search-wi
|
|
|
4491
4491
|
width: "14"
|
|
4492
4492
|
}),
|
|
4493
4493
|
ge(" " + K(d.value), 1)
|
|
4494
|
-
], 8,
|
|
4494
|
+
], 8, Ti)
|
|
4495
4495
|
])
|
|
4496
4496
|
]));
|
|
4497
4497
|
}
|
|
4498
|
-
}),
|
|
4498
|
+
}), Di = /* @__PURE__ */ Y(Oi, [["__scopeId", "data-v-efa2057b"]]), Fi = { class: "flex items-center gap-2 w-full" }, Ui = ["disabled"], Ri = ["disabled"], Pi = /* @__PURE__ */ q({
|
|
4499
4499
|
__name: "vs-input-color",
|
|
4500
4500
|
props: {
|
|
4501
4501
|
style: { default: () => ({}) },
|
|
@@ -4575,7 +4575,162 @@ const ar = /* @__PURE__ */ Y(tr, [["render", or]]), nr = { class: "map-search-wi
|
|
|
4575
4575
|
])
|
|
4576
4576
|
]));
|
|
4577
4577
|
}
|
|
4578
|
-
}), Gi =
|
|
4578
|
+
}), Gi = ["placeholder", "disabled", "name"], Zi = ["type", "value", "onInput", "placeholder", "disabled"], Wi = ["onClick"], Ji = /* @__PURE__ */ q({
|
|
4579
|
+
__name: "vs-input-array",
|
|
4580
|
+
props: /* @__PURE__ */ re({
|
|
4581
|
+
count: { default: 1 },
|
|
4582
|
+
limit: { default: 1 },
|
|
4583
|
+
mask: { default: "" },
|
|
4584
|
+
unmask: { type: Boolean, default: !1 },
|
|
4585
|
+
inputType: { default: "text" },
|
|
4586
|
+
isAdded: { type: Boolean, default: !1 },
|
|
4587
|
+
style: { default: () => ({}) },
|
|
4588
|
+
customClass: { default: "" },
|
|
4589
|
+
disabled: { type: Boolean, default: !1 },
|
|
4590
|
+
modelValue: {},
|
|
4591
|
+
error: { default: "" },
|
|
4592
|
+
name: {},
|
|
4593
|
+
placeholder: { default: "" }
|
|
4594
|
+
}, {
|
|
4595
|
+
modelValue: { default: [] },
|
|
4596
|
+
modelModifiers: {}
|
|
4597
|
+
}),
|
|
4598
|
+
emits: ["update:modelValue"],
|
|
4599
|
+
setup(a) {
|
|
4600
|
+
const e = a, t = V(e.count), n = L(() => e.limit), { inputClass: o } = ke(e.style), s = ue(a, "modelValue"), i = L(() => !!e.disabled), d = L(() => e.placeholder ?? "");
|
|
4601
|
+
Gt(() => {
|
|
4602
|
+
const h = s.value?.length ?? 0;
|
|
4603
|
+
h < t.value && (s.value = [
|
|
4604
|
+
...s.value ?? [],
|
|
4605
|
+
...Array(t.value - h)
|
|
4606
|
+
]);
|
|
4607
|
+
});
|
|
4608
|
+
const c = V({}), p = V({});
|
|
4609
|
+
function m(h, y) {
|
|
4610
|
+
h && (c.value[y] = h);
|
|
4611
|
+
}
|
|
4612
|
+
async function v(h, y) {
|
|
4613
|
+
if (!h || e.inputType !== "mask") return;
|
|
4614
|
+
const { default: w } = await import("./index-W-qQIppj.js");
|
|
4615
|
+
p.value[y] && p.value[y].destroy(), p.value[y] = w(h, {
|
|
4616
|
+
mask: e.mask || "",
|
|
4617
|
+
definitions: {
|
|
4618
|
+
9: /[0-9]/,
|
|
4619
|
+
A: /[a-zA-Z]/,
|
|
4620
|
+
"*": /[a-zA-Z0-9]/
|
|
4621
|
+
},
|
|
4622
|
+
lazy: !1
|
|
4623
|
+
}), p.value[y].on("accept", () => {
|
|
4624
|
+
const k = [...s.value || []];
|
|
4625
|
+
k[y] = e.unmask ? p.value[y].unmaskedValue : p.value[y].value, s.value = k;
|
|
4626
|
+
}), p.value[y].on("complete", () => {
|
|
4627
|
+
const k = [...s.value || []];
|
|
4628
|
+
k[y] = e.unmask ? p.value[y].unmaskedValue : p.value[y].value, s.value = k;
|
|
4629
|
+
}), s.value?.[y] && (p.value[y].value = s.value[y]);
|
|
4630
|
+
}
|
|
4631
|
+
function S(h, y) {
|
|
4632
|
+
if (i.value) return;
|
|
4633
|
+
const w = h.target.value ?? null, k = [...s.value];
|
|
4634
|
+
k[y] = e.inputType === "text" ? w : Number(w), s.value = k;
|
|
4635
|
+
}
|
|
4636
|
+
function g() {
|
|
4637
|
+
t.value += 1;
|
|
4638
|
+
const h = e.inputType === "text" || e.inputType === "mask" ? null : 0;
|
|
4639
|
+
s.value = [...s.value, h], e.inputType === "mask" && setTimeout(() => {
|
|
4640
|
+
const y = t.value - 1;
|
|
4641
|
+
c.value[y] && v(c.value[y], y);
|
|
4642
|
+
}, 0);
|
|
4643
|
+
}
|
|
4644
|
+
function j(h) {
|
|
4645
|
+
if (t.value > 1) {
|
|
4646
|
+
p.value[h] && (p.value[h].destroy(), delete p.value[h]), t.value -= 1, s.value = s.value.filter((w, k) => k !== h);
|
|
4647
|
+
const y = {};
|
|
4648
|
+
Object.keys(p.value).forEach((w) => {
|
|
4649
|
+
const k = parseInt(w, 10);
|
|
4650
|
+
k > h ? y[k - 1] = p.value[k] : k < h && (y[k] = p.value[k]);
|
|
4651
|
+
}), p.value = y;
|
|
4652
|
+
}
|
|
4653
|
+
}
|
|
4654
|
+
return xe(() => {
|
|
4655
|
+
if (e.inputType === "mask")
|
|
4656
|
+
for (let h = 0; h < t.value; h += 1)
|
|
4657
|
+
c.value[h] && v(c.value[h], h);
|
|
4658
|
+
}), rt(() => {
|
|
4659
|
+
Object.values(p.value).forEach((h) => {
|
|
4660
|
+
h && h.destroy();
|
|
4661
|
+
});
|
|
4662
|
+
}), ae(() => e.mask, (h) => {
|
|
4663
|
+
e.inputType === "mask" && Object.values(p.value).forEach((y) => {
|
|
4664
|
+
y && y.updateOptions({
|
|
4665
|
+
mask: h,
|
|
4666
|
+
definitions: {
|
|
4667
|
+
9: /[0-9]/,
|
|
4668
|
+
A: /[a-zA-Z]/,
|
|
4669
|
+
"*": /[a-zA-Z0-9]/
|
|
4670
|
+
}
|
|
4671
|
+
});
|
|
4672
|
+
});
|
|
4673
|
+
}), ae(s, (h) => {
|
|
4674
|
+
e.inputType === "mask" && h && h.forEach((y, w) => {
|
|
4675
|
+
p.value[w] && p.value[w].value !== y && (p.value[w].value = y || "");
|
|
4676
|
+
});
|
|
4677
|
+
}, { deep: !0 }), (h, y) => (r(), u("div", {
|
|
4678
|
+
class: D(["grid gap-2", `grid-cols-${n.value}`])
|
|
4679
|
+
}, [
|
|
4680
|
+
(r(!0), u(ne, null, de(t.value, (w) => (r(), u("div", {
|
|
4681
|
+
key: w,
|
|
4682
|
+
class: "flex items-center gap-2 w-full"
|
|
4683
|
+
}, [
|
|
4684
|
+
h.inputType === "mask" ? (r(), u("input", {
|
|
4685
|
+
key: 0,
|
|
4686
|
+
type: "text",
|
|
4687
|
+
ref_for: !0,
|
|
4688
|
+
ref: (k) => m(k, w - 1),
|
|
4689
|
+
placeholder: h.placeholder,
|
|
4690
|
+
disabled: h.disabled,
|
|
4691
|
+
name: `${h.name}[${w - 1}]`,
|
|
4692
|
+
class: D(["py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [ee(o), { "!border-red-600": h.error }]]),
|
|
4693
|
+
style: {
|
|
4694
|
+
border: "1px solid #CFD9E0"
|
|
4695
|
+
}
|
|
4696
|
+
}, null, 10, Gi)) : (r(), u("input", {
|
|
4697
|
+
key: 1,
|
|
4698
|
+
type: h.inputType,
|
|
4699
|
+
value: s.value?.[w - 1],
|
|
4700
|
+
onInput: (k) => S(k, w - 1),
|
|
4701
|
+
placeholder: d.value,
|
|
4702
|
+
disabled: i.value,
|
|
4703
|
+
class: D(["py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [ee(o), { "!border-red-600": h.error }]]),
|
|
4704
|
+
style: {
|
|
4705
|
+
border: "1px solid #CFD9E0"
|
|
4706
|
+
}
|
|
4707
|
+
}, null, 42, Zi)),
|
|
4708
|
+
!h.disabled && w === t.value && h.isAdded ? (r(), u("button", {
|
|
4709
|
+
key: 2,
|
|
4710
|
+
type: "button",
|
|
4711
|
+
onClick: me(g, ["stop"]),
|
|
4712
|
+
class: "cursor-pointer shrink-0 w-[38px] text-green-600 h-[38px] rounded-md flex items-center justify-center border border-stone-200 hover:bg-stone-100"
|
|
4713
|
+
}, [
|
|
4714
|
+
P(Te, {
|
|
4715
|
+
height: "18",
|
|
4716
|
+
width: "18"
|
|
4717
|
+
})
|
|
4718
|
+
])) : O("", !0),
|
|
4719
|
+
!h.disabled && t.value > 1 && h.isAdded ? (r(), u("button", {
|
|
4720
|
+
key: 3,
|
|
4721
|
+
type: "button",
|
|
4722
|
+
onClick: me((k) => j(w - 1), ["stop"]),
|
|
4723
|
+
class: "cursor-pointer shrink-0 w-[38px] text-red-600 h-[38px] rounded-md flex items-center justify-center border border-stone-200 hover:bg-stone-100"
|
|
4724
|
+
}, [
|
|
4725
|
+
P(wt, {
|
|
4726
|
+
height: "18",
|
|
4727
|
+
width: "18"
|
|
4728
|
+
})
|
|
4729
|
+
], 8, Wi)) : O("", !0)
|
|
4730
|
+
]))), 128))
|
|
4731
|
+
], 2));
|
|
4732
|
+
}
|
|
4733
|
+
}), Yi = { class: "flex items-center gap-2 w-full" }, Xi = { class: "relative flex-1" }, Qi = ["placeholder", "disabled", "onKeydown"], eu = ["disabled"], tu = {
|
|
4579
4734
|
key: 0,
|
|
4580
4735
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4581
4736
|
width: "18",
|
|
@@ -4586,19 +4741,19 @@ const ar = /* @__PURE__ */ Y(tr, [["render", or]]), nr = { class: "map-search-wi
|
|
|
4586
4741
|
"stroke-width": "2",
|
|
4587
4742
|
"stroke-linecap": "round",
|
|
4588
4743
|
"stroke-linejoin": "round"
|
|
4589
|
-
},
|
|
4744
|
+
}, lu = {
|
|
4590
4745
|
key: 1,
|
|
4591
4746
|
class: "animate-spin h-5 w-5 text-gray-400",
|
|
4592
4747
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4593
4748
|
fill: "none",
|
|
4594
4749
|
viewBox: "0 0 24 24"
|
|
4595
|
-
},
|
|
4750
|
+
}, ou = {
|
|
4596
4751
|
key: 0,
|
|
4597
4752
|
class: "fixed inset-0 z-50 flex items-center justify-center bg-black/50"
|
|
4598
|
-
},
|
|
4753
|
+
}, au = { class: "bg-white text-gray-900 rounded-lg shadow-lg w-[480px] max-h-[80vh] overflow-y-auto" }, nu = { class: "p-3 border-b font-semibold text-gray-900 flex justify-between items-center" }, su = ["onClick"], ru = {
|
|
4599
4754
|
key: 0,
|
|
4600
4755
|
class: "p-4 text-sm text-gray-500"
|
|
4601
|
-
},
|
|
4756
|
+
}, iu = /* @__PURE__ */ q({
|
|
4602
4757
|
__name: "vs-input-address",
|
|
4603
4758
|
props: /* @__PURE__ */ re({
|
|
4604
4759
|
style: { default: () => ({}) },
|
|
@@ -4657,8 +4812,8 @@ const ar = /* @__PURE__ */ Y(tr, [["render", or]]), nr = { class: "map-search-wi
|
|
|
4657
4812
|
};
|
|
4658
4813
|
t.geom && S?.value && (S.value[t.geom] = b), n("update:geom", b);
|
|
4659
4814
|
}
|
|
4660
|
-
return (w, k) => (r(), u("div",
|
|
4661
|
-
l("div",
|
|
4815
|
+
return (w, k) => (r(), u("div", Yi, [
|
|
4816
|
+
l("div", Xi, [
|
|
4662
4817
|
se(l("input", {
|
|
4663
4818
|
type: "text",
|
|
4664
4819
|
"onUpdate:modelValue": k[0] || (k[0] = (B) => i.value = B),
|
|
@@ -4667,7 +4822,7 @@ const ar = /* @__PURE__ */ Y(tr, [["render", or]]), nr = { class: "map-search-wi
|
|
|
4667
4822
|
class: D(["py-1.5 px-3 block w-full bg-white border rounded-md placeholder:text-gray-400 focus:ring-2 focus:ring-blue-500", [ee(o), { "!border-red-600": t.error }]]),
|
|
4668
4823
|
style: { border: "1px solid #CFD9E0" },
|
|
4669
4824
|
onKeydown: Zt(me(g, ["prevent"]), ["enter"])
|
|
4670
|
-
}, null, 42,
|
|
4825
|
+
}, null, 42, Qi), [
|
|
4671
4826
|
[ve, i.value]
|
|
4672
4827
|
]),
|
|
4673
4828
|
c.value.length ? (r(), u("button", {
|
|
@@ -4704,7 +4859,7 @@ const ar = /* @__PURE__ */ Y(tr, [["render", or]]), nr = { class: "map-search-wi
|
|
|
4704
4859
|
class: "flex items-center justify-center px-2 py-2 border rounded-md bg-white hover:bg-gray-50 text-gray-600 hover:text-blue-600 disabled:opacity-50 h-[38px]",
|
|
4705
4860
|
disabled: d.value || !i.value?.trim()
|
|
4706
4861
|
}, [
|
|
4707
|
-
d.value ? (r(), u("svg",
|
|
4862
|
+
d.value ? (r(), u("svg", lu, k[4] || (k[4] = [
|
|
4708
4863
|
l("circle", {
|
|
4709
4864
|
class: "opacity-25",
|
|
4710
4865
|
cx: "12",
|
|
@@ -4718,7 +4873,7 @@ const ar = /* @__PURE__ */ Y(tr, [["render", or]]), nr = { class: "map-search-wi
|
|
|
4718
4873
|
fill: "currentColor",
|
|
4719
4874
|
d: "M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"
|
|
4720
4875
|
}, null, -1)
|
|
4721
|
-
]))) : (r(), u("svg",
|
|
4876
|
+
]))) : (r(), u("svg", tu, k[3] || (k[3] = [
|
|
4722
4877
|
l("circle", {
|
|
4723
4878
|
cx: "11",
|
|
4724
4879
|
cy: "11",
|
|
@@ -4731,11 +4886,11 @@ const ar = /* @__PURE__ */ Y(tr, [["render", or]]), nr = { class: "map-search-wi
|
|
|
4731
4886
|
y2: "16.65"
|
|
4732
4887
|
}, null, -1)
|
|
4733
4888
|
])))
|
|
4734
|
-
], 8,
|
|
4889
|
+
], 8, eu),
|
|
4735
4890
|
(r(), ce(it, { to: "body" }, [
|
|
4736
|
-
p.value ? (r(), u("div",
|
|
4737
|
-
l("div",
|
|
4738
|
-
l("div",
|
|
4891
|
+
p.value ? (r(), u("div", ou, [
|
|
4892
|
+
l("div", au, [
|
|
4893
|
+
l("div", nu, [
|
|
4739
4894
|
k[6] || (k[6] = l("span", null, "Search results", -1)),
|
|
4740
4895
|
l("button", {
|
|
4741
4896
|
class: "text-gray-500 hover:text-blue-600",
|
|
@@ -4773,46 +4928,46 @@ const ar = /* @__PURE__ */ Y(tr, [["render", or]]), nr = { class: "map-search-wi
|
|
|
4773
4928
|
key: b,
|
|
4774
4929
|
onClick: ($) => y(B),
|
|
4775
4930
|
class: "px-3 py-2 cursor-pointer hover:bg-gray-100 border-b text-sm"
|
|
4776
|
-
}, K(B.display_name), 9,
|
|
4931
|
+
}, K(B.display_name), 9, su))), 128))
|
|
4777
4932
|
]),
|
|
4778
|
-
c.value.length ? O("", !0) : (r(), u("div",
|
|
4933
|
+
c.value.length ? O("", !0) : (r(), u("div", ru, " No results found "))
|
|
4779
4934
|
])
|
|
4780
4935
|
])) : O("", !0)
|
|
4781
4936
|
]))
|
|
4782
4937
|
]));
|
|
4783
4938
|
}
|
|
4784
|
-
}),
|
|
4939
|
+
}), uu = {
|
|
4785
4940
|
VsInputText: We,
|
|
4786
4941
|
VsInputRadio: Vt,
|
|
4787
4942
|
"vs-input-text": We,
|
|
4788
|
-
"vs-input-password":
|
|
4789
|
-
"vs-input-textarea":
|
|
4790
|
-
"vs-input-mask":
|
|
4791
|
-
"vs-input-number":
|
|
4943
|
+
"vs-input-password": yl,
|
|
4944
|
+
"vs-input-textarea": Sn,
|
|
4945
|
+
"vs-input-mask": to,
|
|
4946
|
+
"vs-input-number": kl,
|
|
4792
4947
|
"vs-input-radio": Vt,
|
|
4793
4948
|
"vs-input-select": Bt,
|
|
4794
|
-
"vs-input-switcher":
|
|
4949
|
+
"vs-input-switcher": Dt,
|
|
4795
4950
|
"vs-input-static": Ct,
|
|
4796
|
-
"vs-input-container":
|
|
4797
|
-
"vs-input-date":
|
|
4798
|
-
"vs-input-checkbox":
|
|
4799
|
-
"vs-input-file":
|
|
4951
|
+
"vs-input-container": rn,
|
|
4952
|
+
"vs-input-date": yo,
|
|
4953
|
+
"vs-input-checkbox": go,
|
|
4954
|
+
"vs-input-file": sa,
|
|
4800
4955
|
"vs-input-html": Ct,
|
|
4801
|
-
"vs-input-email":
|
|
4802
|
-
"vs-input-datatable":
|
|
4803
|
-
"vs-input-map":
|
|
4804
|
-
"vs-input-file-list":
|
|
4805
|
-
"vs-input-tags":
|
|
4806
|
-
"vs-input-slug":
|
|
4807
|
-
"vs-input-codegen":
|
|
4808
|
-
"vs-input-key-value":
|
|
4809
|
-
"vs-input-text[]":
|
|
4956
|
+
"vs-input-email": ao,
|
|
4957
|
+
"vs-input-datatable": Ts,
|
|
4958
|
+
"vs-input-map": Wr,
|
|
4959
|
+
"vs-input-file-list": Ta,
|
|
4960
|
+
"vs-input-tags": ni,
|
|
4961
|
+
"vs-input-slug": ui,
|
|
4962
|
+
"vs-input-codegen": hi,
|
|
4963
|
+
"vs-input-key-value": Mi,
|
|
4964
|
+
"vs-input-text[]": Di,
|
|
4810
4965
|
"vs-input-range": qi,
|
|
4811
4966
|
"vs-input-color": Pi,
|
|
4812
4967
|
"vs-input-native-select": Bt,
|
|
4813
|
-
"vs-input-array":
|
|
4814
|
-
"vs-input-address":
|
|
4815
|
-
},
|
|
4968
|
+
"vs-input-array": Ji,
|
|
4969
|
+
"vs-input-address": iu
|
|
4970
|
+
}, du = /* @__PURE__ */ q({
|
|
4816
4971
|
__name: "behavior",
|
|
4817
4972
|
props: {
|
|
4818
4973
|
api: {},
|
|
@@ -4844,10 +4999,10 @@ const ar = /* @__PURE__ */ Y(tr, [["render", or]]), nr = { class: "map-search-wi
|
|
|
4844
4999
|
class: "vs-button relative inline-flex border-solid justify-center items-center gap-2 rounded-md font-semibold focus:outline-none text-sm transition-all border !border-gray-200 hover:text-white bg-white text-blue-500 hover:border-blue-500 hover:bg-blue-500 focus:ring-blue-500 py-1.5 px-5 focus:ring-1 focus:ring-offset-1 ml-0 md:ml-2 mt-2 md:mt-0 py-[8px] md:w-2/4 whitespace-nowrap w-full"
|
|
4845
5000
|
}, K(o.button), 1));
|
|
4846
5001
|
}
|
|
4847
|
-
}),
|
|
5002
|
+
}), cu = { class: "flex flex-col gap-1 w-full" }, pu = {
|
|
4848
5003
|
key: 0,
|
|
4849
5004
|
class: "text-sm text-gray-500"
|
|
4850
|
-
},
|
|
5005
|
+
}, Pt = /* @__PURE__ */ q({
|
|
4851
5006
|
__name: "vs-compact-form-layout",
|
|
4852
5007
|
props: /* @__PURE__ */ re({
|
|
4853
5008
|
item: { default: {} },
|
|
@@ -4862,7 +5017,7 @@ const ar = /* @__PURE__ */ Y(tr, [["render", or]]), nr = { class: "map-search-wi
|
|
|
4862
5017
|
}),
|
|
4863
5018
|
emits: ["update:modelValue"],
|
|
4864
5019
|
setup(a) {
|
|
4865
|
-
const e = a, t = ue(a, "modelValue"), n = L(() =>
|
|
5020
|
+
const e = a, t = ue(a, "modelValue"), n = L(() => gl[`${e.layout}`]), o = L(() => uu?.[`vs-input-${e.item.type}`]), s = L(() => {
|
|
4866
5021
|
const d = ee(o);
|
|
4867
5022
|
if (!d) return /* @__PURE__ */ new Set();
|
|
4868
5023
|
const c = d.props ?? d.__vccOpts?.props;
|
|
@@ -4884,20 +5039,20 @@ const ar = /* @__PURE__ */ Y(tr, [["render", or]]), nr = { class: "map-search-wi
|
|
|
4884
5039
|
l("div", {
|
|
4885
5040
|
class: D(["flex w-full", `${e.item.type}-component`])
|
|
4886
5041
|
}, [
|
|
4887
|
-
l("div",
|
|
5042
|
+
l("div", cu, [
|
|
4888
5043
|
(r(), ce(Ue(o.value), Fe(i.value, {
|
|
4889
5044
|
modelValue: t.value,
|
|
4890
5045
|
"onUpdate:modelValue": c[0] || (c[0] = (p) => t.value = p)
|
|
4891
5046
|
}), null, 16, ["modelValue"])),
|
|
4892
|
-
d.item.description && e.layout !== "settings" ? (r(), u("p",
|
|
5047
|
+
d.item.description && e.layout !== "settings" ? (r(), u("p", pu, K(d.item.description), 1)) : O("", !0)
|
|
4893
5048
|
]),
|
|
4894
|
-
d.item.behavior?.api && d.item.behavior?.button ? (r(), ce(
|
|
5049
|
+
d.item.behavior?.api && d.item.behavior?.button ? (r(), ce(du, Fe({ key: 0 }, d.item.behavior, { value: t.value }), null, 16, ["value"])) : O("", !0)
|
|
4895
5050
|
], 2)
|
|
4896
5051
|
]),
|
|
4897
5052
|
_: 1
|
|
4898
5053
|
}, 8, ["ua", "error", "item", "columns", "label"]));
|
|
4899
5054
|
}
|
|
4900
|
-
}),
|
|
5055
|
+
}), fu = { class: "text-sm text-gray-800 mb-[4px] font-medium dark:text-neutral-300" }, vu = { class: "vs-compact-form-navigation__rail mt-[6px]" }, mu = ["onClick"], hu = /* @__PURE__ */ q({
|
|
4901
5056
|
__name: "vs-compact-form-navigation",
|
|
4902
5057
|
props: {
|
|
4903
5058
|
target: {},
|
|
@@ -5029,8 +5184,8 @@ const ar = /* @__PURE__ */ Y(tr, [["render", or]]), nr = { class: "map-search-wi
|
|
|
5029
5184
|
class: D(d.value),
|
|
5030
5185
|
style: ye(c.value)
|
|
5031
5186
|
}, [
|
|
5032
|
-
l("h2",
|
|
5033
|
-
l("div",
|
|
5187
|
+
l("h2", fu, K(F.title), 1),
|
|
5188
|
+
l("div", vu, [
|
|
5034
5189
|
(r(!0), u(ne, null, de(n.value, (Q) => (r(), u("div", {
|
|
5035
5190
|
key: Q.id,
|
|
5036
5191
|
class: D([
|
|
@@ -5049,38 +5204,38 @@ const ar = /* @__PURE__ */ Y(tr, [["render", or]]), nr = { class: "map-search-wi
|
|
|
5049
5204
|
])
|
|
5050
5205
|
}, [
|
|
5051
5206
|
l("span", null, K(Q.text), 1)
|
|
5052
|
-
], 10,
|
|
5207
|
+
], 10, mu)
|
|
5053
5208
|
], 2))), 128))
|
|
5054
5209
|
])
|
|
5055
5210
|
], 6)) : O("", !0);
|
|
5056
5211
|
}
|
|
5057
|
-
}),
|
|
5212
|
+
}), gu = /* @__PURE__ */ Y(hu, [["__scopeId", "data-v-1584a562"]]), Ht = {
|
|
5058
5213
|
required: "Це поле є обов’язковим",
|
|
5059
5214
|
email: "Неправильний email"
|
|
5060
|
-
},
|
|
5215
|
+
}, bu = (a) => a ? !1 : Ht.required, yu = (a) => {
|
|
5061
5216
|
const e = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
5062
|
-
return a ? e.test(a) ? !1 :
|
|
5063
|
-
},
|
|
5217
|
+
return a ? e.test(a) ? !1 : Ht.email : !1;
|
|
5218
|
+
}, xu = (a, e) => {
|
|
5064
5219
|
const t = e.pattern ?? e.regexp, n = typeof t == "string" ? new RegExp(t) : t;
|
|
5065
5220
|
if (Array.isArray(a)) {
|
|
5066
5221
|
const o = a.filter(Boolean);
|
|
5067
5222
|
return o.length === 0 || o.every((s) => n.test(s)) ? !1 : e.message;
|
|
5068
5223
|
}
|
|
5069
5224
|
return !n.test(a) && a ? e.message : !1;
|
|
5070
|
-
},
|
|
5225
|
+
}, wu = (a, e) => !1, ku = (a, e) => {
|
|
5071
5226
|
switch (typeof e == "string" ? e : e.type) {
|
|
5072
5227
|
case "required":
|
|
5073
|
-
return
|
|
5228
|
+
return bu(a);
|
|
5074
5229
|
case "email":
|
|
5075
|
-
return
|
|
5230
|
+
return yu(a);
|
|
5076
5231
|
case "regexp":
|
|
5077
|
-
return
|
|
5232
|
+
return xu(a, e);
|
|
5078
5233
|
case "custom":
|
|
5079
|
-
return
|
|
5234
|
+
return wu();
|
|
5080
5235
|
default:
|
|
5081
5236
|
return !1;
|
|
5082
5237
|
}
|
|
5083
|
-
},
|
|
5238
|
+
}, _u = {
|
|
5084
5239
|
autocomplete: "select",
|
|
5085
5240
|
combobox: "select",
|
|
5086
5241
|
datepicker: "date",
|
|
@@ -5093,16 +5248,16 @@ const ar = /* @__PURE__ */ Y(tr, [["render", or]]), nr = { class: "map-search-wi
|
|
|
5093
5248
|
dropzone: "file"
|
|
5094
5249
|
// mask: 'text',
|
|
5095
5250
|
};
|
|
5096
|
-
function
|
|
5251
|
+
function Et(a) {
|
|
5097
5252
|
const e = a.toLowerCase();
|
|
5098
|
-
return
|
|
5253
|
+
return _u[e] || e;
|
|
5099
5254
|
}
|
|
5100
5255
|
function ht(a, e = !1) {
|
|
5101
5256
|
if (Array.isArray(a)) {
|
|
5102
5257
|
const n = [];
|
|
5103
5258
|
return a.forEach((o) => {
|
|
5104
5259
|
const s = { ...o };
|
|
5105
|
-
s.name = (o.name || o.id || o.key || "").toString(), s.type =
|
|
5260
|
+
s.name = (o.name || o.id || o.key || "").toString(), s.type = Et(o.type), s.label = o.label || o.ua, s.rules = o.rules || o.validators, s.type === "email" && !s.rules && (s.rules = ["email"]), o.data && (s.api = `/api/suggest/${o.data}`), s.disabled = e || s.disabled, Array.isArray(s.schema) && (s.schema = ht(s.schema, s.disabled)), n.push(s);
|
|
5106
5261
|
}), n;
|
|
5107
5262
|
}
|
|
5108
5263
|
const t = [];
|
|
@@ -5110,7 +5265,7 @@ function ht(a, e = !1) {
|
|
|
5110
5265
|
const o = {
|
|
5111
5266
|
name: n[0],
|
|
5112
5267
|
...n[1],
|
|
5113
|
-
type:
|
|
5268
|
+
type: Et(n[1].type),
|
|
5114
5269
|
label: n[1].label || n[1].ua,
|
|
5115
5270
|
rules: n[1].rules || n[1].validators,
|
|
5116
5271
|
disabled: e
|
|
@@ -5118,7 +5273,7 @@ function ht(a, e = !1) {
|
|
|
5118
5273
|
o.type === "email" && !o.rules && (o.rules = ["email"]), n[1].type.includes("list") && (o.multiple = !0), !o.api && n[1].data && (o.api = `/api/suggest/${n[1].data}`), Array.isArray(o.schema) && (o.schema = ht(o.schema, o.disabled)), t.push(o);
|
|
5119
5274
|
}), t;
|
|
5120
5275
|
}
|
|
5121
|
-
function
|
|
5276
|
+
function $u(a, e, t = !1) {
|
|
5122
5277
|
const n = L(() => ht(
|
|
5123
5278
|
(Array.isArray(e), e),
|
|
5124
5279
|
typeof t == "boolean" ? t : t.value
|
|
@@ -5127,7 +5282,7 @@ function xu(a, e, t = !1) {
|
|
|
5127
5282
|
const m = p?.conditions;
|
|
5128
5283
|
if (!m) return !0;
|
|
5129
5284
|
const v = Array.isArray(m) ? m[0] : m, S = a?.value?.[v];
|
|
5130
|
-
return
|
|
5285
|
+
return Rt(S, m);
|
|
5131
5286
|
}
|
|
5132
5287
|
const i = (p = n.value, m = !0) => (p.forEach((v) => {
|
|
5133
5288
|
if (v.rules) {
|
|
@@ -5137,7 +5292,7 @@ function xu(a, e, t = !1) {
|
|
|
5137
5292
|
}
|
|
5138
5293
|
let S = !1, g = null;
|
|
5139
5294
|
v.rules.forEach((j) => {
|
|
5140
|
-
const h =
|
|
5295
|
+
const h = ku(a.value[v.name], j);
|
|
5141
5296
|
h && (S = !0, !g && typeof h == "string" && (g = h));
|
|
5142
5297
|
}), S && g ? o.value[v.name] = g : delete o.value[v.name];
|
|
5143
5298
|
}
|
|
@@ -5152,7 +5307,7 @@ function xu(a, e, t = !1) {
|
|
|
5152
5307
|
visibleSchema: d
|
|
5153
5308
|
};
|
|
5154
5309
|
}
|
|
5155
|
-
const
|
|
5310
|
+
const Cu = { class: "flex w-full h-full min-h-0 gap-6" }, Vu = {
|
|
5156
5311
|
key: 0,
|
|
5157
5312
|
"data-orientation": "horizontal",
|
|
5158
5313
|
role: "none",
|
|
@@ -5182,7 +5337,7 @@ const wu = { class: "flex w-full h-full min-h-0 gap-6" }, ku = {
|
|
|
5182
5337
|
validate: c,
|
|
5183
5338
|
reset: p,
|
|
5184
5339
|
visibleSchema: m
|
|
5185
|
-
} =
|
|
5340
|
+
} = $u(i, o.schema, Wt(o, "disabled")), v = V(null), S = V(null), g = L(() => o.navigation), j = L(() => o.navWidth), h = L(() => o.style?.columns), y = Object.freeze({ container: 12, label: 3 }), w = L(() => o.columns ?? h.value ?? y), k = L(() => o.columns != null || h.value != null), B = L(() => k.value ? "horizontal" : o.layout), b = (H) => H?.columns ? "horizontal" : B.value, $ = (H) => H?.columns ?? w.value, z = () => {
|
|
5186
5341
|
n("update:modelValue", i.value), c(), n("handle-submit", i.value);
|
|
5187
5342
|
};
|
|
5188
5343
|
e({
|
|
@@ -5204,7 +5359,7 @@ const wu = { class: "flex w-full h-full min-h-0 gap-6" }, ku = {
|
|
|
5204
5359
|
const J = Object.keys(H), F = Object.keys(te);
|
|
5205
5360
|
return J.length !== F.length ? !1 : J.every((W) => H[W] === te[W]);
|
|
5206
5361
|
}
|
|
5207
|
-
return $t("form", s), $t("values", i), (H, te) => (r(), u("div",
|
|
5362
|
+
return $t("form", s), $t("values", i), (H, te) => (r(), u("div", Cu, [
|
|
5208
5363
|
l("div", {
|
|
5209
5364
|
class: "flex-1 min-h-0 overflow-y-auto overflow-x-visible",
|
|
5210
5365
|
ref_key: "formScrollContainer",
|
|
@@ -5220,7 +5375,7 @@ const wu = { class: "flex w-full h-full min-h-0 gap-6" }, ku = {
|
|
|
5220
5375
|
key: J.name,
|
|
5221
5376
|
class: D(b(J) === "horizontal" ? "col-span-12" : `col-span-${J.col || 12}`)
|
|
5222
5377
|
}, [
|
|
5223
|
-
P(
|
|
5378
|
+
P(Pt, {
|
|
5224
5379
|
style: ye(H.style),
|
|
5225
5380
|
item: J,
|
|
5226
5381
|
layout: b(J),
|
|
@@ -5232,11 +5387,11 @@ const wu = { class: "flex w-full h-full min-h-0 gap-6" }, ku = {
|
|
|
5232
5387
|
},
|
|
5233
5388
|
error: ee(d)[J.name]
|
|
5234
5389
|
}, null, 8, ["style", "item", "layout", "columns", "model-value", "onUpdate:modelValue", "error"]),
|
|
5235
|
-
b(J) === "settings" && F + 1 !== ee(m).length ? (r(), u("div",
|
|
5390
|
+
b(J) === "settings" && F + 1 !== ee(m).length ? (r(), u("div", Vu)) : O("", !0)
|
|
5236
5391
|
], 2))), 128))
|
|
5237
5392
|
], 34)
|
|
5238
5393
|
], 512),
|
|
5239
|
-
P(
|
|
5394
|
+
P(gu, {
|
|
5240
5395
|
target: v.value,
|
|
5241
5396
|
"scroll-container": S.value,
|
|
5242
5397
|
enabled: g.value,
|
|
@@ -5244,7 +5399,7 @@ const wu = { class: "flex w-full h-full min-h-0 gap-6" }, ku = {
|
|
|
5244
5399
|
}, null, 8, ["target", "scroll-container", "enabled", "width"])
|
|
5245
5400
|
]));
|
|
5246
5401
|
}
|
|
5247
|
-
}),
|
|
5402
|
+
}), Mu = { class: "relative" }, Lu = { class: "w-full h-full fixed top-0 start-0 z-[1000] bg-black bg-opacity-50" }, Su = { class: "m-[10px] fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 min-h-0 h-fit max-h-[80vh] overflow-hidden opacity-1 flex flex-col bg-white dark:bg-[#1A1A1A] border dark:border-[#454545] pointer-events-auto shadow-[0_10px_40px_10px_rgba(0,0,0,0.08)] rounded-xl lg:w-7/12 w-11/12" }, Bu = { class: "py-2.5 px-4 flex justify-between items-center border-0 border-b border-solid border-gray-200 dark:border-b-[#454545]" }, ju = { class: "font-medium text-gray-800 dark:text-[#ffffff]" }, Eu = { class: "p-4 mim-h-0 h-full overflow-auto" }, Iu = /* @__PURE__ */ q({
|
|
5248
5403
|
__name: "modal-edit",
|
|
5249
5404
|
props: {
|
|
5250
5405
|
schema: {},
|
|
@@ -5340,11 +5495,11 @@ const wu = { class: "flex w-full h-full min-h-0 gap-6" }, ku = {
|
|
|
5340
5495
|
message: v.message || "Unexpected error"
|
|
5341
5496
|
}), console.error(v);
|
|
5342
5497
|
}
|
|
5343
|
-
}), (v, S) => (r(), u("div",
|
|
5344
|
-
l("div",
|
|
5345
|
-
l("div",
|
|
5346
|
-
l("div",
|
|
5347
|
-
l("h3",
|
|
5498
|
+
}), (v, S) => (r(), u("div", Mu, [
|
|
5499
|
+
l("div", Lu, [
|
|
5500
|
+
l("div", Su, [
|
|
5501
|
+
l("div", Bu, [
|
|
5502
|
+
l("h3", ju, K(c.value === "add" ? "Додати" : "Змінити"), 1),
|
|
5348
5503
|
l("button", {
|
|
5349
5504
|
onClick: m,
|
|
5350
5505
|
type: "button",
|
|
@@ -5368,7 +5523,7 @@ const wu = { class: "flex w-full h-full min-h-0 gap-6" }, ku = {
|
|
|
5368
5523
|
], -1)
|
|
5369
5524
|
]))
|
|
5370
5525
|
]),
|
|
5371
|
-
l("div",
|
|
5526
|
+
l("div", Eu, [
|
|
5372
5527
|
o.value ? (r(), ce(Je, {
|
|
5373
5528
|
key: 0,
|
|
5374
5529
|
schema: o.value,
|
|
@@ -5394,169 +5549,14 @@ const wu = { class: "flex w-full h-full min-h-0 gap-6" }, ku = {
|
|
|
5394
5549
|
])
|
|
5395
5550
|
]));
|
|
5396
5551
|
}
|
|
5397
|
-
}),
|
|
5398
|
-
|
|
5399
|
-
props: /* @__PURE__ */ re({
|
|
5400
|
-
count: { default: 1 },
|
|
5401
|
-
limit: { default: 1 },
|
|
5402
|
-
mask: { default: "" },
|
|
5403
|
-
unmask: { type: Boolean, default: !1 },
|
|
5404
|
-
inputType: { default: "text" },
|
|
5405
|
-
isAdded: { type: Boolean, default: !1 },
|
|
5406
|
-
style: { default: () => ({}) },
|
|
5407
|
-
customClass: { default: "" },
|
|
5408
|
-
disabled: { type: Boolean, default: !1 },
|
|
5409
|
-
modelValue: {},
|
|
5410
|
-
error: { default: "" },
|
|
5411
|
-
name: {},
|
|
5412
|
-
placeholder: { default: "" }
|
|
5413
|
-
}, {
|
|
5414
|
-
modelValue: { default: [] },
|
|
5415
|
-
modelModifiers: {}
|
|
5416
|
-
}),
|
|
5417
|
-
emits: ["update:modelValue"],
|
|
5418
|
-
setup(a) {
|
|
5419
|
-
const e = a, t = V(e.count), n = L(() => e.limit), { inputClass: o } = ke(e.style), s = ue(a, "modelValue"), i = L(() => !!e.disabled), d = L(() => e.placeholder ?? "");
|
|
5420
|
-
Jt(() => {
|
|
5421
|
-
const h = s.value?.length ?? 0;
|
|
5422
|
-
h < t.value && (s.value = [
|
|
5423
|
-
...s.value ?? [],
|
|
5424
|
-
...Array(t.value - h)
|
|
5425
|
-
]);
|
|
5426
|
-
});
|
|
5427
|
-
const c = V({}), p = V({});
|
|
5428
|
-
function m(h, y) {
|
|
5429
|
-
h && (c.value[y] = h);
|
|
5430
|
-
}
|
|
5431
|
-
async function v(h, y) {
|
|
5432
|
-
if (!h || e.inputType !== "mask") return;
|
|
5433
|
-
const { default: w } = await import("./index-W-qQIppj.js");
|
|
5434
|
-
p.value[y] && p.value[y].destroy(), p.value[y] = w(h, {
|
|
5435
|
-
mask: e.mask || "",
|
|
5436
|
-
definitions: {
|
|
5437
|
-
9: /[0-9]/,
|
|
5438
|
-
A: /[a-zA-Z]/,
|
|
5439
|
-
"*": /[a-zA-Z0-9]/
|
|
5440
|
-
},
|
|
5441
|
-
lazy: !1
|
|
5442
|
-
}), p.value[y].on("accept", () => {
|
|
5443
|
-
const k = [...s.value || []];
|
|
5444
|
-
k[y] = e.unmask ? p.value[y].unmaskedValue : p.value[y].value, s.value = k;
|
|
5445
|
-
}), p.value[y].on("complete", () => {
|
|
5446
|
-
const k = [...s.value || []];
|
|
5447
|
-
k[y] = e.unmask ? p.value[y].unmaskedValue : p.value[y].value, s.value = k;
|
|
5448
|
-
}), s.value?.[y] && (p.value[y].value = s.value[y]);
|
|
5449
|
-
}
|
|
5450
|
-
function S(h, y) {
|
|
5451
|
-
if (i.value) return;
|
|
5452
|
-
const w = h.target.value ?? null, k = [...s.value];
|
|
5453
|
-
k[y] = e.inputType === "text" ? w : Number(w), s.value = k;
|
|
5454
|
-
}
|
|
5455
|
-
function g() {
|
|
5456
|
-
t.value += 1;
|
|
5457
|
-
const h = e.inputType === "text" || e.inputType === "mask" ? null : 0;
|
|
5458
|
-
s.value = [...s.value, h], e.inputType === "mask" && setTimeout(() => {
|
|
5459
|
-
const y = t.value - 1;
|
|
5460
|
-
c.value[y] && v(c.value[y], y);
|
|
5461
|
-
}, 0);
|
|
5462
|
-
}
|
|
5463
|
-
function j(h) {
|
|
5464
|
-
if (t.value > 1) {
|
|
5465
|
-
p.value[h] && (p.value[h].destroy(), delete p.value[h]), t.value -= 1, s.value = s.value.filter((w, k) => k !== h);
|
|
5466
|
-
const y = {};
|
|
5467
|
-
Object.keys(p.value).forEach((w) => {
|
|
5468
|
-
const k = parseInt(w, 10);
|
|
5469
|
-
k > h ? y[k - 1] = p.value[k] : k < h && (y[k] = p.value[k]);
|
|
5470
|
-
}), p.value = y;
|
|
5471
|
-
}
|
|
5472
|
-
}
|
|
5473
|
-
return xe(() => {
|
|
5474
|
-
if (e.inputType === "mask")
|
|
5475
|
-
for (let h = 0; h < t.value; h += 1)
|
|
5476
|
-
c.value[h] && v(c.value[h], h);
|
|
5477
|
-
}), rt(() => {
|
|
5478
|
-
Object.values(p.value).forEach((h) => {
|
|
5479
|
-
h && h.destroy();
|
|
5480
|
-
});
|
|
5481
|
-
}), ae(() => e.mask, (h) => {
|
|
5482
|
-
e.inputType === "mask" && Object.values(p.value).forEach((y) => {
|
|
5483
|
-
y && y.updateOptions({
|
|
5484
|
-
mask: h,
|
|
5485
|
-
definitions: {
|
|
5486
|
-
9: /[0-9]/,
|
|
5487
|
-
A: /[a-zA-Z]/,
|
|
5488
|
-
"*": /[a-zA-Z0-9]/
|
|
5489
|
-
}
|
|
5490
|
-
});
|
|
5491
|
-
});
|
|
5492
|
-
}), ae(s, (h) => {
|
|
5493
|
-
e.inputType === "mask" && h && h.forEach((y, w) => {
|
|
5494
|
-
p.value[w] && p.value[w].value !== y && (p.value[w].value = y || "");
|
|
5495
|
-
});
|
|
5496
|
-
}, { deep: !0 }), (h, y) => (r(), u("div", {
|
|
5497
|
-
class: D(["grid gap-2", `grid-cols-${n.value}`])
|
|
5498
|
-
}, [
|
|
5499
|
-
(r(!0), u(ne, null, de(t.value, (w) => (r(), u("div", {
|
|
5500
|
-
key: w,
|
|
5501
|
-
class: "flex items-center gap-2 w-full"
|
|
5502
|
-
}, [
|
|
5503
|
-
h.inputType === "mask" ? (r(), u("input", {
|
|
5504
|
-
key: 0,
|
|
5505
|
-
type: "text",
|
|
5506
|
-
ref_for: !0,
|
|
5507
|
-
ref: (k) => m(k, w - 1),
|
|
5508
|
-
placeholder: h.placeholder,
|
|
5509
|
-
disabled: h.disabled,
|
|
5510
|
-
name: `${h.name}[${w - 1}]`,
|
|
5511
|
-
class: D(["py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [ee(o), { "!border-red-600": h.error }]]),
|
|
5512
|
-
style: {
|
|
5513
|
-
border: "1px solid #CFD9E0"
|
|
5514
|
-
}
|
|
5515
|
-
}, null, 10, Bu)) : (r(), u("input", {
|
|
5516
|
-
key: 1,
|
|
5517
|
-
type: h.inputType,
|
|
5518
|
-
value: s.value?.[w - 1],
|
|
5519
|
-
onInput: (k) => S(k, w - 1),
|
|
5520
|
-
placeholder: d.value,
|
|
5521
|
-
disabled: i.value,
|
|
5522
|
-
class: D(["py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [ee(o), { "!border-red-600": h.error }]]),
|
|
5523
|
-
style: {
|
|
5524
|
-
border: "1px solid #CFD9E0"
|
|
5525
|
-
}
|
|
5526
|
-
}, null, 42, ju)),
|
|
5527
|
-
!h.disabled && w === t.value && h.isAdded ? (r(), u("button", {
|
|
5528
|
-
key: 2,
|
|
5529
|
-
type: "button",
|
|
5530
|
-
onClick: me(g, ["stop"]),
|
|
5531
|
-
class: "cursor-pointer shrink-0 w-[38px] text-green-600 h-[38px] rounded-md flex items-center justify-center border border-stone-200 hover:bg-stone-100"
|
|
5532
|
-
}, [
|
|
5533
|
-
P(Te, {
|
|
5534
|
-
height: "18",
|
|
5535
|
-
width: "18"
|
|
5536
|
-
})
|
|
5537
|
-
])) : O("", !0),
|
|
5538
|
-
!h.disabled && t.value > 1 && h.isAdded ? (r(), u("button", {
|
|
5539
|
-
key: 3,
|
|
5540
|
-
type: "button",
|
|
5541
|
-
onClick: me((k) => j(w - 1), ["stop"]),
|
|
5542
|
-
class: "cursor-pointer shrink-0 w-[38px] text-red-600 h-[38px] rounded-md flex items-center justify-center border border-stone-200 hover:bg-stone-100"
|
|
5543
|
-
}, [
|
|
5544
|
-
P(wt, {
|
|
5545
|
-
height: "18",
|
|
5546
|
-
width: "18"
|
|
5547
|
-
})
|
|
5548
|
-
], 8, Eu)) : O("", !0)
|
|
5549
|
-
]))), 128))
|
|
5550
|
-
], 2));
|
|
5551
|
-
}
|
|
5552
|
-
}), At = (a = { mode: "edit", schema: null }) => new Promise((e) => {
|
|
5553
|
-
const { close: t } = Yt({
|
|
5552
|
+
}), It = (a = { mode: "edit", schema: null }) => new Promise((e) => {
|
|
5553
|
+
const { close: t } = Jt({
|
|
5554
5554
|
title: a.mode === "add" ? "Додати" : "Редагувати",
|
|
5555
5555
|
template: "",
|
|
5556
5556
|
visible: !0,
|
|
5557
5557
|
size: "medium",
|
|
5558
5558
|
closeClickBack: !0,
|
|
5559
|
-
content:
|
|
5559
|
+
content: Iu,
|
|
5560
5560
|
contentProps: {
|
|
5561
5561
|
...a,
|
|
5562
5562
|
onClose: () => {
|
|
@@ -5570,37 +5570,37 @@ const wu = { class: "flex w-full h-full min-h-0 gap-6" }, ku = {
|
|
|
5570
5570
|
});
|
|
5571
5571
|
Je.install = function(e) {
|
|
5572
5572
|
e.component("VForm", Je), Object.assign(e.config.globalProperties, {
|
|
5573
|
-
$form:
|
|
5574
|
-
}), e.provide("form",
|
|
5573
|
+
$form: It
|
|
5574
|
+
}), e.provide("form", It), window.v3plugin || (window.v3plugin = {});
|
|
5575
5575
|
};
|
|
5576
5576
|
export {
|
|
5577
|
-
|
|
5577
|
+
Iu as ModalEdit,
|
|
5578
5578
|
Je as VForm,
|
|
5579
|
-
|
|
5580
|
-
|
|
5581
|
-
|
|
5582
|
-
|
|
5579
|
+
iu as VsInputAddress,
|
|
5580
|
+
Ji as VsInputArray,
|
|
5581
|
+
go as VsInputCheckbox,
|
|
5582
|
+
hi as VsInputCodegen,
|
|
5583
5583
|
Pi as VsInputColor,
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5584
|
+
rn as VsInputContainer,
|
|
5585
|
+
yo as VsInputDate,
|
|
5586
|
+
ao as VsInputEmail,
|
|
5587
|
+
sa as VsInputFile,
|
|
5588
|
+
Ta as VsInputFileList,
|
|
5589
|
+
Mi as VsInputKeyValue,
|
|
5590
|
+
to as VsInputMask,
|
|
5591
|
+
kl as VsInputNumber,
|
|
5592
5592
|
Vt as VsInputRadio,
|
|
5593
5593
|
qi as VsInputRange,
|
|
5594
5594
|
Bt as VsInputSelect,
|
|
5595
|
-
|
|
5595
|
+
ui as VsInputSlug,
|
|
5596
5596
|
Ct as VsInputStatic,
|
|
5597
|
-
|
|
5598
|
-
|
|
5597
|
+
Dt as VsInputSwitcher,
|
|
5598
|
+
ni as VsInputTag,
|
|
5599
5599
|
We as VsInputText,
|
|
5600
|
-
|
|
5601
|
-
|
|
5600
|
+
Di as VsInputTextArray,
|
|
5601
|
+
Sn as VsInputTextarea,
|
|
5602
5602
|
Je as default,
|
|
5603
|
-
|
|
5604
|
-
|
|
5605
|
-
|
|
5603
|
+
uu as inputs,
|
|
5604
|
+
Ts as vsInputDatatable,
|
|
5605
|
+
Wr as vsInputMap
|
|
5606
5606
|
};
|