@opengis/form 0.0.101 → 0.0.103
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +61 -61
- package/dist/api/suggest/suggestions_list.json +7 -7
- package/dist/components/inputs/base/vs-input-richtext.vue.d.ts.map +1 -1
- package/dist/components/inputs/date/datepicker/Datepicker.vue.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +525 -510
- package/dist/index.umd.cjs +4 -4
- package/package.json +68 -68
package/dist/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { defineComponent as oe, ref as V, createElementBlock as p, openBlock as d, Fragment as ve, createElementVNode as o, createBlock as ge, renderSlot as ze, Teleport as wt, createCommentVNode as R, normalizeStyle as Ae, toDisplayString as te, computed as w, mergeProps as lt, createTextVNode as Ee, normalizeProps as ll, guardReactiveProps as nl, onMounted as
|
|
1
|
+
import { defineComponent as oe, ref as V, createElementBlock as p, openBlock as d, Fragment as ve, createElementVNode as o, createBlock as ge, renderSlot as ze, Teleport as wt, createCommentVNode as R, normalizeStyle as Ae, toDisplayString as te, computed as w, mergeProps as lt, createTextVNode as Ee, normalizeProps as ll, guardReactiveProps as nl, onMounted as Ue, onUnmounted as $t, normalizeClass as G, mergeModels as xe, useModel as Ce, withDirectives as we, unref as _e, vModelText as je, vModelCheckbox as xl, createVNode as le, resolveDynamicComponent as rt, withCtx as Re, withModifiers as Le, onBeforeUnmount as dt, watch as se, createStaticVNode as Ge, vModelRadio as kl, renderList as Ve, reactive as _l, vModelDynamic as Pl, inject as qe, vShow as tt, resolveComponent as Je, Transition as Pt, nextTick as Oe, useSlots as Ul, getCurrentInstance as Nl, watchEffect as yt, withKeys as Rl, toRef as Hl, provide as Wt } from "vue";
|
|
2
2
|
import { notify as Be, VsModal as $l, modal as ql } from "@opengis/core";
|
|
3
|
-
import { VsRichtext as Gl } from "@opengis/richtext";
|
|
4
3
|
const Cl = /* @__PURE__ */ oe({
|
|
5
4
|
__name: "vs-info-tooltip",
|
|
6
5
|
props: {
|
|
@@ -57,16 +56,16 @@ const Cl = /* @__PURE__ */ oe({
|
|
|
57
56
|
]))
|
|
58
57
|
], 64));
|
|
59
58
|
}
|
|
60
|
-
}),
|
|
59
|
+
}), Gl = { class: "w-full relative" }, Kl = {
|
|
61
60
|
key: 0,
|
|
62
61
|
class: "text-[14px] font-medium text-gray-900 mb-2 flex items-center gap-1"
|
|
63
|
-
},
|
|
62
|
+
}, Wl = { class: "opacity-100" }, Yl = {
|
|
64
63
|
key: 0,
|
|
65
64
|
class: "text-red-500 text-[14px]"
|
|
66
|
-
},
|
|
65
|
+
}, Zl = {
|
|
67
66
|
key: 1,
|
|
68
67
|
class: "text-red-500 text-[10px] absolute bottom-[-14px]"
|
|
69
|
-
},
|
|
68
|
+
}, Jl = /* @__PURE__ */ oe({
|
|
70
69
|
__name: "vs-layout-default",
|
|
71
70
|
props: {
|
|
72
71
|
ua: { default: "" },
|
|
@@ -82,10 +81,10 @@ const Cl = /* @__PURE__ */ oe({
|
|
|
82
81
|
},
|
|
83
82
|
setup(e) {
|
|
84
83
|
const t = e, l = w(() => typeof t.item?.label == "string" && t.item.label ? t.item.label : t.item?.ua || t.label || t.ua), n = w(() => !!l.value), r = w(() => !!t.item?.rules?.includes("required")), a = w(() => t.item?.info || "");
|
|
85
|
-
return (s, i) => (d(), p("div",
|
|
86
|
-
n.value ? (d(), p("div",
|
|
87
|
-
o("span",
|
|
88
|
-
r.value ? (d(), p("span",
|
|
84
|
+
return (s, i) => (d(), p("div", Gl, [
|
|
85
|
+
n.value ? (d(), p("div", Kl, [
|
|
86
|
+
o("span", Wl, te(l.value), 1),
|
|
87
|
+
r.value ? (d(), p("span", Yl, "*")) : R("", !0),
|
|
89
88
|
a.value ? (d(), ge(Cl, {
|
|
90
89
|
key: 1,
|
|
91
90
|
text: a.value
|
|
@@ -94,16 +93,16 @@ const Cl = /* @__PURE__ */ oe({
|
|
|
94
93
|
ze(s.$slots, "default", lt(s.$attrs, {
|
|
95
94
|
class: { "opacity-60": s.item.disabled }
|
|
96
95
|
})),
|
|
97
|
-
s.error ? (d(), p("span",
|
|
96
|
+
s.error ? (d(), p("span", Zl, te(s.error), 1)) : R("", !0)
|
|
98
97
|
]));
|
|
99
98
|
}
|
|
100
|
-
}),
|
|
99
|
+
}), Xl = { class: "w-full relative flex flex-row items-center gap-2" }, Ql = {
|
|
101
100
|
key: 0,
|
|
102
101
|
class: "text-red-500 text-[14px]"
|
|
103
|
-
},
|
|
102
|
+
}, en = {
|
|
104
103
|
key: 1,
|
|
105
104
|
class: "text-red-500 text-[10px] absolute bottom-[-14px]"
|
|
106
|
-
},
|
|
105
|
+
}, tn = /* @__PURE__ */ oe({
|
|
107
106
|
__name: "vs-layout-horizontal",
|
|
108
107
|
props: {
|
|
109
108
|
ua: { default: "" },
|
|
@@ -135,14 +134,14 @@ const Cl = /* @__PURE__ */ oe({
|
|
|
135
134
|
const L = `${g * 100}%`;
|
|
136
135
|
return { flexBasis: L, maxWidth: L };
|
|
137
136
|
});
|
|
138
|
-
return (m, v) => (d(), p("div",
|
|
137
|
+
return (m, v) => (d(), p("div", Xl, [
|
|
139
138
|
s.value ? (d(), p("span", {
|
|
140
139
|
key: 0,
|
|
141
140
|
class: "text-sm text-gray-900 font-medium flex shrink-0 items-center gap-1",
|
|
142
141
|
style: Ae(i.value)
|
|
143
142
|
}, [
|
|
144
143
|
Ee(te(l.value) + " ", 1),
|
|
145
|
-
m.item?.rules?.includes("required") && l.value ? (d(), p("span",
|
|
144
|
+
m.item?.rules?.includes("required") && l.value ? (d(), p("span", Ql, "*")) : R("", !0),
|
|
146
145
|
n.value ? (d(), ge(Cl, {
|
|
147
146
|
key: 1,
|
|
148
147
|
text: n.value
|
|
@@ -154,13 +153,13 @@ const Cl = /* @__PURE__ */ oe({
|
|
|
154
153
|
}, [
|
|
155
154
|
ze(m.$slots, "default", ll(nl(m.$attrs)))
|
|
156
155
|
], 4),
|
|
157
|
-
m.error ? (d(), p("span",
|
|
156
|
+
m.error ? (d(), p("span", en, te(m.error), 1)) : R("", !0)
|
|
158
157
|
]));
|
|
159
158
|
}
|
|
160
|
-
}),
|
|
159
|
+
}), ln = { class: "w-full relative" }, nn = {
|
|
161
160
|
key: 0,
|
|
162
161
|
class: "text-red-500 text-[10px] absolute bottom-[-14px]"
|
|
163
|
-
},
|
|
162
|
+
}, an = /* @__PURE__ */ oe({
|
|
164
163
|
__name: "vs-layout-inline",
|
|
165
164
|
props: {
|
|
166
165
|
ua: { default: "" },
|
|
@@ -175,21 +174,21 @@ const Cl = /* @__PURE__ */ oe({
|
|
|
175
174
|
columns: {}
|
|
176
175
|
},
|
|
177
176
|
setup(e) {
|
|
178
|
-
return (t, l) => (d(), p("div",
|
|
177
|
+
return (t, l) => (d(), p("div", ln, [
|
|
179
178
|
ze(t.$slots, "default", ll(nl(t.$attrs))),
|
|
180
|
-
t.error ? (d(), p("span",
|
|
179
|
+
t.error ? (d(), p("span", nn, te(t.error), 1)) : R("", !0)
|
|
181
180
|
]));
|
|
182
181
|
}
|
|
183
|
-
}),
|
|
182
|
+
}), on = { class: "flex-1 min-w-0" }, rn = {
|
|
184
183
|
key: 0,
|
|
185
184
|
class: "text-sm font-medium text-slate-700 dark:text-slate-200 flex items-center gap-1"
|
|
186
|
-
},
|
|
185
|
+
}, sn = { class: "truncate" }, un = {
|
|
187
186
|
key: 0,
|
|
188
187
|
class: "text-red-500 text-[14px]"
|
|
189
|
-
},
|
|
188
|
+
}, dn = ["innerHTML"], cn = {
|
|
190
189
|
key: 0,
|
|
191
190
|
class: "mt-1 text-xs text-red-500"
|
|
192
|
-
},
|
|
191
|
+
}, fn = /* @__PURE__ */ oe({
|
|
193
192
|
__name: "vs-layout-settings",
|
|
194
193
|
props: {
|
|
195
194
|
ua: { default: "" },
|
|
@@ -210,7 +209,7 @@ const Cl = /* @__PURE__ */ oe({
|
|
|
210
209
|
const i = typeof localStorage < "u" ? localStorage.getItem("locale") : null;
|
|
211
210
|
l.value = i || "uk";
|
|
212
211
|
};
|
|
213
|
-
return
|
|
212
|
+
return Ue(() => {
|
|
214
213
|
try {
|
|
215
214
|
typeof localStorage < "u" && localStorage.locale && (l.value = localStorage.locale);
|
|
216
215
|
} catch {
|
|
@@ -224,16 +223,16 @@ const Cl = /* @__PURE__ */ oe({
|
|
|
224
223
|
o("div", {
|
|
225
224
|
class: G(["gap-2 md:flex-row md:items-center md:justify-between", [["switcher", "native-select"].includes(i.item.type) ? "flex flex-col" : ""]])
|
|
226
225
|
}, [
|
|
227
|
-
o("div",
|
|
228
|
-
i.ua || i.label ? (d(), p("p",
|
|
229
|
-
o("span",
|
|
230
|
-
r.value ? (d(), p("span",
|
|
226
|
+
o("div", on, [
|
|
227
|
+
i.ua || i.label ? (d(), p("p", rn, [
|
|
228
|
+
o("span", sn, te(i.item[l.value] || i.ua || i.label), 1),
|
|
229
|
+
r.value ? (d(), p("span", un, "*")) : R("", !0)
|
|
231
230
|
])) : R("", !0),
|
|
232
231
|
n.value ? (d(), p("p", {
|
|
233
232
|
key: 1,
|
|
234
233
|
class: "text-xs text-slate-500 dark:text-slate-400",
|
|
235
234
|
innerHTML: n.value
|
|
236
|
-
}, null, 8,
|
|
235
|
+
}, null, 8, dn)) : R("", !0)
|
|
237
236
|
]),
|
|
238
237
|
o("div", {
|
|
239
238
|
class: G(["w-full", ["select", "native-select"].includes(i.item.type) ? "md:w-[30%]" : "md:w-auto"])
|
|
@@ -241,14 +240,14 @@ const Cl = /* @__PURE__ */ oe({
|
|
|
241
240
|
ze(i.$slots, "default", ll(nl(i.$attrs)))
|
|
242
241
|
], 2)
|
|
243
242
|
], 2),
|
|
244
|
-
a.value ? (d(), p("p",
|
|
243
|
+
a.value ? (d(), p("p", cn, te(a.value), 1)) : R("", !0)
|
|
245
244
|
], 2));
|
|
246
245
|
}
|
|
247
|
-
}),
|
|
248
|
-
default:
|
|
249
|
-
horizontal:
|
|
250
|
-
inline:
|
|
251
|
-
settings:
|
|
246
|
+
}), pn = {
|
|
247
|
+
default: Jl,
|
|
248
|
+
horizontal: tn,
|
|
249
|
+
inline: an,
|
|
250
|
+
settings: fn
|
|
252
251
|
};
|
|
253
252
|
function He(e) {
|
|
254
253
|
return {
|
|
@@ -258,9 +257,9 @@ function He(e) {
|
|
|
258
257
|
})
|
|
259
258
|
};
|
|
260
259
|
}
|
|
261
|
-
const
|
|
260
|
+
const mn = ["placeholder", "disabled"], vn = /* @__PURE__ */ oe({
|
|
262
261
|
__name: "vs-input-password",
|
|
263
|
-
props: /* @__PURE__ */
|
|
262
|
+
props: /* @__PURE__ */ xe({
|
|
264
263
|
style: { default: () => ({}) },
|
|
265
264
|
customClass: { default: "" },
|
|
266
265
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -282,17 +281,17 @@ const vn = ["placeholder", "disabled"], hn = /* @__PURE__ */ oe({
|
|
|
282
281
|
"onUpdate:modelValue": i[0] || (i[0] = (f) => n.value = f),
|
|
283
282
|
placeholder: a.value,
|
|
284
283
|
disabled: r.value,
|
|
285
|
-
class: G(["py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [
|
|
284
|
+
class: G(["py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [_e(l), { "!border-red-600": s.error }]]),
|
|
286
285
|
style: {
|
|
287
286
|
border: "1px solid #CFD9E0"
|
|
288
287
|
}
|
|
289
|
-
}, null, 10,
|
|
288
|
+
}, null, 10, mn)), [
|
|
290
289
|
[je, n.value]
|
|
291
290
|
]);
|
|
292
291
|
}
|
|
293
|
-
}),
|
|
292
|
+
}), hn = ["placeholder", "disabled", "maxlength", "minlength"], xt = /* @__PURE__ */ oe({
|
|
294
293
|
__name: "vs-input-text",
|
|
295
|
-
props: /* @__PURE__ */
|
|
294
|
+
props: /* @__PURE__ */ xe({
|
|
296
295
|
style: { default: () => ({}) },
|
|
297
296
|
customClass: { default: "" },
|
|
298
297
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -320,15 +319,15 @@ const vn = ["placeholder", "disabled"], hn = /* @__PURE__ */ oe({
|
|
|
320
319
|
maxlength: s.value,
|
|
321
320
|
minlength: i.value,
|
|
322
321
|
onBlur: f,
|
|
323
|
-
class: G(["py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [m.customClass,
|
|
322
|
+
class: G(["py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [m.customClass, _e(l), { "!border-red-600": m.error }]]),
|
|
324
323
|
style: { border: "1px solid #CFD9E0" }
|
|
325
|
-
}, null, 42,
|
|
324
|
+
}, null, 42, hn)), [
|
|
326
325
|
[je, n.value]
|
|
327
326
|
]);
|
|
328
327
|
}
|
|
329
|
-
}),
|
|
328
|
+
}), gn = ["placeholder", "disabled", "min", "max"], yn = /* @__PURE__ */ oe({
|
|
330
329
|
__name: "vs-input-number",
|
|
331
|
-
props: /* @__PURE__ */
|
|
330
|
+
props: /* @__PURE__ */ xe({
|
|
332
331
|
min: {},
|
|
333
332
|
max: {},
|
|
334
333
|
style: { default: () => ({}) },
|
|
@@ -353,13 +352,13 @@ const vn = ["placeholder", "disabled"], hn = /* @__PURE__ */ oe({
|
|
|
353
352
|
"onUpdate:modelValue": s[0] || (s[0] = (i) => n.value = i),
|
|
354
353
|
placeholder: a.placeholder,
|
|
355
354
|
disabled: r.value,
|
|
356
|
-
class: G(["py-1.5 px-3 block w-full bg-white", [
|
|
355
|
+
class: G(["py-1.5 px-3 block w-full bg-white", [_e(l)]]),
|
|
357
356
|
style: {
|
|
358
357
|
border: "1px solid #CFD9E0"
|
|
359
358
|
},
|
|
360
359
|
min: a.min,
|
|
361
360
|
max: a.max
|
|
362
|
-
}, null, 10,
|
|
361
|
+
}, null, 10, gn)), [
|
|
363
362
|
[je, n.value]
|
|
364
363
|
]);
|
|
365
364
|
}
|
|
@@ -368,7 +367,7 @@ const vn = ["placeholder", "disabled"], hn = /* @__PURE__ */ oe({
|
|
|
368
367
|
for (const [n, r] of t)
|
|
369
368
|
l[n] = r;
|
|
370
369
|
return l;
|
|
371
|
-
},
|
|
370
|
+
}, bn = {}, wn = {
|
|
372
371
|
xmlns: "http://www.w3.org/2000/svg",
|
|
373
372
|
viewBox: "0 0 24 24",
|
|
374
373
|
fill: "none",
|
|
@@ -378,17 +377,17 @@ const vn = ["placeholder", "disabled"], hn = /* @__PURE__ */ oe({
|
|
|
378
377
|
"stroke-linejoin": "round",
|
|
379
378
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-check"
|
|
380
379
|
};
|
|
381
|
-
function
|
|
382
|
-
return d(), p("svg",
|
|
380
|
+
function xn(e, t) {
|
|
381
|
+
return d(), p("svg", wn, t[0] || (t[0] = [
|
|
383
382
|
o("path", {
|
|
384
383
|
stroke: "none",
|
|
385
384
|
d: "M0 0h24v24H0z",
|
|
386
385
|
fill: "none"
|
|
387
386
|
}, null, -1),
|
|
388
387
|
o("path", { d: "M5 12l5 5l10 -10" }, null, -1)
|
|
389
|
-
])
|
|
388
|
+
]));
|
|
390
389
|
}
|
|
391
|
-
const
|
|
390
|
+
const kn = /* @__PURE__ */ fe(bn, [["render", xn]]), _n = { class: "flex items-center gap-[4px]" }, $n = ["value", "id", "disabled"], Cn = ["for"], Vn = { class: "text-[14px] text-gray-700 flex items-center dark:text-neutral-400" }, Ln = /* @__PURE__ */ oe({
|
|
392
391
|
__name: "vs-checkbox-default",
|
|
393
392
|
props: {
|
|
394
393
|
value: { default: "" },
|
|
@@ -405,7 +404,7 @@ const _n = /* @__PURE__ */ fe(wn, [["render", kn]]), $n = { class: "flex items-c
|
|
|
405
404
|
get: () => n.modelValue,
|
|
406
405
|
set: (s) => l("update:modelValue", s)
|
|
407
406
|
}), a = w(() => !!n.disabled);
|
|
408
|
-
return (s, i) => (d(), p("div",
|
|
407
|
+
return (s, i) => (d(), p("div", _n, [
|
|
409
408
|
we(o("input", {
|
|
410
409
|
type: "checkbox",
|
|
411
410
|
value: s.value,
|
|
@@ -413,7 +412,7 @@ const _n = /* @__PURE__ */ fe(wn, [["render", kn]]), $n = { class: "flex items-c
|
|
|
413
412
|
class: G(["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": a.value }]),
|
|
414
413
|
id: s.id,
|
|
415
414
|
disabled: a.value
|
|
416
|
-
}, null, 10,
|
|
415
|
+
}, null, 10, $n), [
|
|
417
416
|
[xl, r.value]
|
|
418
417
|
]),
|
|
419
418
|
o("label", {
|
|
@@ -423,23 +422,23 @@ const _n = /* @__PURE__ */ fe(wn, [["render", kn]]), $n = { class: "flex items-c
|
|
|
423
422
|
o("div", {
|
|
424
423
|
class: G(["h-[16px] text-white w-[16px] flex items-center justify-center shrink-0 border rounded", [r.value ? "bg-blue-600 border-blue-600" : "bg-white border-gray-600", s.error ? "border-red-600" : ""]])
|
|
425
424
|
}, [
|
|
426
|
-
le(
|
|
425
|
+
le(kn, {
|
|
427
426
|
height: "12",
|
|
428
427
|
width: "12"
|
|
429
428
|
})
|
|
430
429
|
], 2),
|
|
431
|
-
o("span",
|
|
430
|
+
o("span", Vn, [
|
|
432
431
|
ze(s.$slots, "default", {}, () => [
|
|
433
432
|
Ee(te(s.label), 1)
|
|
434
433
|
])
|
|
435
434
|
])
|
|
436
|
-
], 10,
|
|
435
|
+
], 10, Cn)
|
|
437
436
|
]));
|
|
438
437
|
}
|
|
439
|
-
}),
|
|
438
|
+
}), Mn = ["name", "value", "disabled"], Sn = { class: "flex items-center gap-[6px] text-[14px]" }, Dn = {
|
|
440
439
|
key: 0,
|
|
441
440
|
class: "text-[16px]"
|
|
442
|
-
},
|
|
441
|
+
}, Bn = ["src"], An = /* @__PURE__ */ oe({
|
|
443
442
|
__name: "vs-checkbox-buttons",
|
|
444
443
|
props: {
|
|
445
444
|
value: { type: [String, Number, Boolean], default: "" },
|
|
@@ -469,11 +468,11 @@ const _n = /* @__PURE__ */ fe(wn, [["render", kn]]), $n = { class: "flex items-c
|
|
|
469
468
|
value: i.value,
|
|
470
469
|
"onUpdate:modelValue": f[0] || (f[0] = (m) => r.value = m),
|
|
471
470
|
disabled: i.disabled
|
|
472
|
-
}, null, 8,
|
|
471
|
+
}, null, 8, Mn), [
|
|
473
472
|
[xl, r.value]
|
|
474
473
|
]),
|
|
475
|
-
o("span",
|
|
476
|
-
i.icon || i.imgUrl ? (d(), p("span",
|
|
474
|
+
o("span", Sn, [
|
|
475
|
+
i.icon || i.imgUrl ? (d(), p("span", Dn, [
|
|
477
476
|
i.icon ? (d(), p("i", {
|
|
478
477
|
key: 0,
|
|
479
478
|
class: G(i.icon)
|
|
@@ -484,7 +483,7 @@ const _n = /* @__PURE__ */ fe(wn, [["render", kn]]), $n = { class: "flex items-c
|
|
|
484
483
|
width: "16",
|
|
485
484
|
height: "16",
|
|
486
485
|
alt: "icon"
|
|
487
|
-
}, null, 8,
|
|
486
|
+
}, null, 8, Bn)) : R("", !0)
|
|
488
487
|
])) : R("", !0),
|
|
489
488
|
ze(i.$slots, "default", {}, () => [
|
|
490
489
|
Ee(te(i.label), 1)
|
|
@@ -492,7 +491,7 @@ const _n = /* @__PURE__ */ fe(wn, [["render", kn]]), $n = { class: "flex items-c
|
|
|
492
491
|
])
|
|
493
492
|
], 2));
|
|
494
493
|
}
|
|
495
|
-
}),
|
|
494
|
+
}), Tn = { class: "flex items-center" }, Xt = /* @__PURE__ */ oe({
|
|
496
495
|
__name: "vs-input-checkbox-item",
|
|
497
496
|
props: {
|
|
498
497
|
value: { default: "" },
|
|
@@ -519,8 +518,8 @@ const _n = /* @__PURE__ */ fe(wn, [["render", kn]]), $n = { class: "flex items-c
|
|
|
519
518
|
n("update:modelValue", i);
|
|
520
519
|
}
|
|
521
520
|
}), s = V(`vs-checkbox-${l.view || "default"}`);
|
|
522
|
-
return (i, f) => (d(), p("div",
|
|
523
|
-
(d(), ge(
|
|
521
|
+
return (i, f) => (d(), p("div", Tn, [
|
|
522
|
+
(d(), ge(rt(s.value === "vs-checkbox-buttons" ? _e(An) : _e(Ln)), {
|
|
524
523
|
value: i.value,
|
|
525
524
|
label: i.label,
|
|
526
525
|
info: i.option?.info,
|
|
@@ -533,14 +532,14 @@ const _n = /* @__PURE__ */ fe(wn, [["render", kn]]), $n = { class: "flex items-c
|
|
|
533
532
|
style: Ae(i.style),
|
|
534
533
|
error: i.error
|
|
535
534
|
}, {
|
|
536
|
-
default:
|
|
535
|
+
default: Re(() => [
|
|
537
536
|
Ee(te(i.label), 1)
|
|
538
537
|
]),
|
|
539
538
|
_: 1
|
|
540
539
|
}, 8, ["value", "label", "info", "disabled", "modelValue", "icon", "imgUrl", "style", "error"]))
|
|
541
540
|
]));
|
|
542
541
|
}
|
|
543
|
-
}),
|
|
542
|
+
}), En = {}, In = {
|
|
544
543
|
xmlns: "http://www.w3.org/2000/svg",
|
|
545
544
|
viewBox: "0 0 24 24",
|
|
546
545
|
fill: "none",
|
|
@@ -550,17 +549,17 @@ const _n = /* @__PURE__ */ fe(wn, [["render", kn]]), $n = { class: "flex items-c
|
|
|
550
549
|
"stroke-linejoin": "round",
|
|
551
550
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-chevron-down"
|
|
552
551
|
};
|
|
553
|
-
function
|
|
554
|
-
return d(), p("svg",
|
|
552
|
+
function jn(e, t) {
|
|
553
|
+
return d(), p("svg", In, t[0] || (t[0] = [
|
|
555
554
|
o("path", {
|
|
556
555
|
stroke: "none",
|
|
557
556
|
d: "M0 0h24v24H0z",
|
|
558
557
|
fill: "none"
|
|
559
558
|
}, null, -1),
|
|
560
559
|
o("path", { d: "M6 9l6 6l6 -6" }, null, -1)
|
|
561
|
-
])
|
|
560
|
+
]));
|
|
562
561
|
}
|
|
563
|
-
const al = /* @__PURE__ */ fe(
|
|
562
|
+
const al = /* @__PURE__ */ fe(En, [["render", jn]]), Fn = {}, On = {
|
|
564
563
|
xmlns: "http://www.w3.org/2000/svg",
|
|
565
564
|
viewBox: "0 0 24 24",
|
|
566
565
|
fill: "none",
|
|
@@ -570,8 +569,8 @@ const al = /* @__PURE__ */ fe(In, [["render", Fn]]), On = {}, zn = {
|
|
|
570
569
|
"stroke-linejoin": "round",
|
|
571
570
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-x"
|
|
572
571
|
};
|
|
573
|
-
function
|
|
574
|
-
return d(), p("svg",
|
|
572
|
+
function zn(e, t) {
|
|
573
|
+
return d(), p("svg", On, t[0] || (t[0] = [
|
|
575
574
|
o("path", {
|
|
576
575
|
stroke: "none",
|
|
577
576
|
d: "M0 0h24v24H0z",
|
|
@@ -579,9 +578,9 @@ function Pn(e, t) {
|
|
|
579
578
|
}, null, -1),
|
|
580
579
|
o("path", { d: "M18 6l-12 12" }, null, -1),
|
|
581
580
|
o("path", { d: "M6 6l12 12" }, null, -1)
|
|
582
|
-
])
|
|
581
|
+
]));
|
|
583
582
|
}
|
|
584
|
-
const Ut = /* @__PURE__ */ fe(
|
|
583
|
+
const Ut = /* @__PURE__ */ fe(Fn, [["render", zn]]), Pn = {}, Un = {
|
|
585
584
|
xmlns: "http://www.w3.org/2000/svg",
|
|
586
585
|
width: "24",
|
|
587
586
|
height: "24",
|
|
@@ -592,8 +591,8 @@ const Ut = /* @__PURE__ */ fe(On, [["render", Pn]]), Un = {}, Nn = {
|
|
|
592
591
|
"stroke-linecap": "round",
|
|
593
592
|
"stroke-linejoin": "round"
|
|
594
593
|
};
|
|
595
|
-
function
|
|
596
|
-
return d(), p("svg",
|
|
594
|
+
function Nn(e, t) {
|
|
595
|
+
return d(), p("svg", Un, t[0] || (t[0] = [
|
|
597
596
|
o("path", {
|
|
598
597
|
stroke: "none",
|
|
599
598
|
d: "M0 0h24v24H0z",
|
|
@@ -602,17 +601,17 @@ function Rn(e, t) {
|
|
|
602
601
|
o("path", { d: "M12 9h.01" }, null, -1),
|
|
603
602
|
o("path", { d: "M11 12h1v4h1" }, null, -1),
|
|
604
603
|
o("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)
|
|
605
|
-
])
|
|
604
|
+
]));
|
|
606
605
|
}
|
|
607
|
-
const
|
|
606
|
+
const Rn = /* @__PURE__ */ fe(Pn, [["render", Nn]]), Hn = {
|
|
608
607
|
key: 0,
|
|
609
608
|
class: "flex items-start gap-x-1"
|
|
610
|
-
},
|
|
609
|
+
}, qn = {
|
|
611
610
|
key: 0,
|
|
612
611
|
class: "text-red-500 text-[14px]"
|
|
613
|
-
},
|
|
612
|
+
}, Gn = ["title"], Kn = ["disabled"], Vl = /* @__PURE__ */ oe({
|
|
614
613
|
__name: "vs-input-switcher",
|
|
615
|
-
props: /* @__PURE__ */
|
|
614
|
+
props: /* @__PURE__ */ xe({
|
|
616
615
|
rules: { default: () => [] },
|
|
617
616
|
view: { default: "checkbox" },
|
|
618
617
|
label: { default: "" },
|
|
@@ -634,14 +633,14 @@ const Hn = /* @__PURE__ */ fe(Un, [["render", Rn]]), qn = {
|
|
|
634
633
|
emits: ["update:modelValue"],
|
|
635
634
|
setup(e) {
|
|
636
635
|
const t = e, l = Ce(e, "modelValue");
|
|
637
|
-
return (n, r) => t.view === "checkbox" ? (d(), p("div",
|
|
636
|
+
return (n, r) => t.view === "checkbox" ? (d(), p("div", Hn, [
|
|
638
637
|
le(Xt, {
|
|
639
638
|
modelValue: l.value,
|
|
640
639
|
"onUpdate:modelValue": r[0] || (r[0] = (a) => l.value = a),
|
|
641
640
|
label: n.text,
|
|
642
641
|
error: n.error || ""
|
|
643
642
|
}, null, 8, ["modelValue", "label", "error"]),
|
|
644
|
-
n.rules?.includes("required") ? (d(), p("span",
|
|
643
|
+
n.rules?.includes("required") ? (d(), p("span", qn, "*")) : R("", !0),
|
|
645
644
|
n.i ? (d(), p("button", {
|
|
646
645
|
key: 1,
|
|
647
646
|
class: "cursor-pointer",
|
|
@@ -649,8 +648,8 @@ const Hn = /* @__PURE__ */ fe(Un, [["render", Rn]]), qn = {
|
|
|
649
648
|
onClick: r[1] || (r[1] = Le(() => {
|
|
650
649
|
}, ["prevent"]))
|
|
651
650
|
}, [
|
|
652
|
-
le(
|
|
653
|
-
], 8,
|
|
651
|
+
le(_e(Rn), { class: "text-gray-500 w-[14px] h-[14px]" })
|
|
652
|
+
], 8, Gn)) : R("", !0)
|
|
654
653
|
])) : (d(), p("button", {
|
|
655
654
|
key: 1,
|
|
656
655
|
type: "button",
|
|
@@ -662,9 +661,9 @@ const Hn = /* @__PURE__ */ fe(Un, [["render", Rn]]), qn = {
|
|
|
662
661
|
"data-state": "checked",
|
|
663
662
|
class: G(["pointer-events-none block h-4 w-4 rounded-full bg-white shadow-lg ring-0 transition-transform", [l.value ? "translate-x-4" : "translate-x-0"]])
|
|
664
663
|
}, null, 2)
|
|
665
|
-
], 10,
|
|
664
|
+
], 10, Kn));
|
|
666
665
|
}
|
|
667
|
-
}),
|
|
666
|
+
}), Wn = ["id", "innerHTML"], ul = /* @__PURE__ */ oe({
|
|
668
667
|
__name: "vs-input-static",
|
|
669
668
|
props: {
|
|
670
669
|
text: { default: "" },
|
|
@@ -684,11 +683,11 @@ const Hn = /* @__PURE__ */ fe(Un, [["render", Rn]]), qn = {
|
|
|
684
683
|
id: t.name,
|
|
685
684
|
class: G(["text-gray-900", t.customClass]),
|
|
686
685
|
innerHTML: t.html ? t.html : t.text
|
|
687
|
-
}, null, 10,
|
|
686
|
+
}, null, 10, Wn));
|
|
688
687
|
}
|
|
689
|
-
}),
|
|
688
|
+
}), Yn = ["placeholder", "disabled", "name"], Ll = /* @__PURE__ */ oe({
|
|
690
689
|
__name: "vs-input-mask",
|
|
691
|
-
props: /* @__PURE__ */
|
|
690
|
+
props: /* @__PURE__ */ xe({
|
|
692
691
|
name: {},
|
|
693
692
|
mask: { default: "" },
|
|
694
693
|
unmask: { type: Boolean, default: !1 },
|
|
@@ -728,7 +727,7 @@ const Hn = /* @__PURE__ */ fe(Un, [["render", Rn]]), qn = {
|
|
|
728
727
|
lazy: !1
|
|
729
728
|
};
|
|
730
729
|
}
|
|
731
|
-
return
|
|
730
|
+
return Ue(async () => {
|
|
732
731
|
if (r.value) {
|
|
733
732
|
const { default: i } = await import("./index-W-qQIppj.js"), f = s(t.mask || "");
|
|
734
733
|
a = i(r.value, f), a.on("accept", () => {
|
|
@@ -753,15 +752,15 @@ const Hn = /* @__PURE__ */ fe(Un, [["render", Rn]]), qn = {
|
|
|
753
752
|
placeholder: i.placeholder,
|
|
754
753
|
disabled: i.disabled,
|
|
755
754
|
name: i.name,
|
|
756
|
-
class: G(["py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [
|
|
755
|
+
class: G(["py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [_e(l)]]),
|
|
757
756
|
style: {
|
|
758
757
|
border: "1px solid #CFD9E0"
|
|
759
758
|
}
|
|
760
|
-
}, null, 10,
|
|
759
|
+
}, null, 10, Yn));
|
|
761
760
|
}
|
|
762
|
-
}),
|
|
761
|
+
}), Zn = { class: "relative w-full bg-white rounded-lg" }, Jn = ["placeholder", "disabled"], Ml = /* @__PURE__ */ oe({
|
|
763
762
|
__name: "vs-input-email",
|
|
764
|
-
props: /* @__PURE__ */
|
|
763
|
+
props: /* @__PURE__ */ xe({
|
|
765
764
|
style: { default: () => ({}) },
|
|
766
765
|
customClass: { default: "" },
|
|
767
766
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -778,25 +777,25 @@ const Hn = /* @__PURE__ */ fe(Un, [["render", Rn]]), qn = {
|
|
|
778
777
|
emits: ["update:modelValue"],
|
|
779
778
|
setup(e) {
|
|
780
779
|
const t = e, { inputClass: l } = He(t.style), n = Ce(e, "modelValue");
|
|
781
|
-
return (r, a) => (d(), p("div",
|
|
780
|
+
return (r, a) => (d(), p("div", Zn, [
|
|
782
781
|
a[1] || (a[1] = Ge('<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)),
|
|
783
782
|
we(o("input", {
|
|
784
783
|
type: "email",
|
|
785
784
|
"onUpdate:modelValue": a[0] || (a[0] = (s) => n.value = s),
|
|
786
785
|
placeholder: r.placeholder,
|
|
787
786
|
disabled: r.disabled,
|
|
788
|
-
class: G(["!pl-8 py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [
|
|
787
|
+
class: G(["!pl-8 py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [_e(l), { "!border-red-600": r.error }]]),
|
|
789
788
|
style: {
|
|
790
789
|
border: "1px solid #CFD9E0"
|
|
791
790
|
}
|
|
792
|
-
}, null, 10,
|
|
791
|
+
}, null, 10, Jn), [
|
|
793
792
|
[je, n.value]
|
|
794
793
|
])
|
|
795
794
|
]));
|
|
796
795
|
}
|
|
797
|
-
}),
|
|
796
|
+
}), Xn = { class: "relative w-full bg-white rounded-lg" }, Qn = ["value", "placeholder", "disabled"], Sl = /* @__PURE__ */ oe({
|
|
798
797
|
__name: "vs-input-tel",
|
|
799
|
-
props: /* @__PURE__ */
|
|
798
|
+
props: /* @__PURE__ */ xe({
|
|
800
799
|
style: { default: () => ({}) },
|
|
801
800
|
customClass: { default: "" },
|
|
802
801
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -821,7 +820,7 @@ const Hn = /* @__PURE__ */ fe(Un, [["render", Rn]]), qn = {
|
|
|
821
820
|
};
|
|
822
821
|
return se(() => n.value, (i) => {
|
|
823
822
|
i && !i.startsWith("+") ? n.value = `+${i.replace(/^\+/, "")}` : i || (n.value = "");
|
|
824
|
-
}, { immediate: !0 }), (i, f) => (d(), p("div",
|
|
823
|
+
}, { immediate: !0 }), (i, f) => (d(), p("div", Xn, [
|
|
825
824
|
f[0] || (f[0] = o("div", { class: "absolute bottom-2/4 translate-y-2/4 left-[10px] cursor-pointer" }, [
|
|
826
825
|
o("svg", {
|
|
827
826
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -848,16 +847,16 @@ const Hn = /* @__PURE__ */ fe(Un, [["render", Rn]]), qn = {
|
|
|
848
847
|
maxlength: "15",
|
|
849
848
|
placeholder: i.placeholder,
|
|
850
849
|
disabled: i.disabled,
|
|
851
|
-
class: G(["!pl-10 py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [
|
|
850
|
+
class: G(["!pl-10 py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [_e(l), { "!border-red-600": i.error }]]),
|
|
852
851
|
style: {
|
|
853
852
|
border: "1px solid #CFD9E0"
|
|
854
853
|
}
|
|
855
|
-
}, null, 42,
|
|
854
|
+
}, null, 42, Qn)
|
|
856
855
|
]));
|
|
857
856
|
}
|
|
858
|
-
}),
|
|
857
|
+
}), ea = ["value", "disabled"], ta = { class: "text-[13px] text-gray-700" }, la = /* @__PURE__ */ oe({
|
|
859
858
|
__name: "vs-input-radio-default",
|
|
860
|
-
props: /* @__PURE__ */
|
|
859
|
+
props: /* @__PURE__ */ xe({
|
|
861
860
|
style: {},
|
|
862
861
|
customClass: { default: "" },
|
|
863
862
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -885,7 +884,7 @@ const Hn = /* @__PURE__ */ fe(Un, [["render", Rn]]), qn = {
|
|
|
885
884
|
value: t.value,
|
|
886
885
|
disabled: n.value,
|
|
887
886
|
class: "hidden"
|
|
888
|
-
}, null, 8,
|
|
887
|
+
}, null, 8, ea), [
|
|
889
888
|
[kl, l.value]
|
|
890
889
|
]),
|
|
891
890
|
o("span", {
|
|
@@ -899,12 +898,12 @@ const Hn = /* @__PURE__ */ fe(Un, [["render", Rn]]), qn = {
|
|
|
899
898
|
class: G(["w-[12px] h-[12px] shrink-0 rounded-full", [`bg-${t.style?.primaryColor || "blue"}-500`]])
|
|
900
899
|
}, null, 2)) : R("", !0)
|
|
901
900
|
], 2),
|
|
902
|
-
o("span",
|
|
901
|
+
o("span", ta, te(t.text), 1)
|
|
903
902
|
], 2));
|
|
904
903
|
}
|
|
905
|
-
}),
|
|
904
|
+
}), na = ["value", "disabled"], aa = { class: "text-[13px] text-gray-700" }, oa = /* @__PURE__ */ oe({
|
|
906
905
|
__name: "vs-input-radio-buttons",
|
|
907
|
-
props: /* @__PURE__ */
|
|
906
|
+
props: /* @__PURE__ */ xe({
|
|
908
907
|
style: {},
|
|
909
908
|
customClass: { default: "" },
|
|
910
909
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -936,18 +935,18 @@ const Hn = /* @__PURE__ */ fe(Un, [["render", Rn]]), qn = {
|
|
|
936
935
|
value: t.value,
|
|
937
936
|
disabled: n.value,
|
|
938
937
|
class: "hidden"
|
|
939
|
-
}, null, 8,
|
|
938
|
+
}, null, 8, na), [
|
|
940
939
|
[kl, l.value]
|
|
941
940
|
]),
|
|
942
|
-
o("span",
|
|
941
|
+
o("span", aa, te(t.text), 1)
|
|
943
942
|
], 2));
|
|
944
943
|
}
|
|
945
|
-
}),
|
|
946
|
-
"vs-input-radio-default":
|
|
947
|
-
"vs-input-radio-buttons":
|
|
944
|
+
}), ra = {
|
|
945
|
+
"vs-input-radio-default": la,
|
|
946
|
+
"vs-input-radio-buttons": oa
|
|
948
947
|
}, dl = /* @__PURE__ */ oe({
|
|
949
948
|
__name: "vs-input-radio",
|
|
950
|
-
props: /* @__PURE__ */
|
|
949
|
+
props: /* @__PURE__ */ xe({
|
|
951
950
|
options: {},
|
|
952
951
|
position: { default: "vertical" },
|
|
953
952
|
view: { default: "default" },
|
|
@@ -966,11 +965,11 @@ const Hn = /* @__PURE__ */ fe(Un, [["render", Rn]]), qn = {
|
|
|
966
965
|
}),
|
|
967
966
|
emits: ["update:modelValue"],
|
|
968
967
|
setup(e) {
|
|
969
|
-
const t = e, l = Ce(e, "modelValue"), n = w(() =>
|
|
968
|
+
const t = e, l = Ce(e, "modelValue"), n = w(() => ra[`vs-input-radio-${t.view}`]);
|
|
970
969
|
return (r, a) => (d(), p("div", {
|
|
971
970
|
class: G([r.position === "horizontal" ? "flex items-center flex-wrap gap-2" : ""])
|
|
972
971
|
}, [
|
|
973
|
-
(d(!0), p(ve, null, Ve(r.options, (s) => (d(), ge(
|
|
972
|
+
(d(!0), p(ve, null, Ve(r.options, (s) => (d(), ge(rt(n.value), lt({
|
|
974
973
|
key: s?.id,
|
|
975
974
|
text: s.text,
|
|
976
975
|
value: s.id.toString(),
|
|
@@ -980,13 +979,13 @@ const Hn = /* @__PURE__ */ fe(Un, [["render", Rn]]), qn = {
|
|
|
980
979
|
}, { ref_for: !0 }, r.$attrs), null, 16, ["text", "value", "checked", "modelValue"]))), 128))
|
|
981
980
|
], 2));
|
|
982
981
|
}
|
|
983
|
-
}),
|
|
982
|
+
}), sa = {
|
|
984
983
|
key: 1,
|
|
985
984
|
class: "w-full flex flex-col gap-4"
|
|
986
|
-
},
|
|
985
|
+
}, ia = {
|
|
987
986
|
key: 0,
|
|
988
987
|
class: "text-sm font-medium text-muted-foreground my-2"
|
|
989
|
-
},
|
|
988
|
+
}, ua = "Без категорії", da = /* @__PURE__ */ oe({
|
|
990
989
|
__name: "vs-input-checkbox",
|
|
991
990
|
props: {
|
|
992
991
|
options: { default: () => [] },
|
|
@@ -1029,7 +1028,7 @@ const Hn = /* @__PURE__ */ fe(Un, [["render", Rn]]), qn = {
|
|
|
1029
1028
|
const _ = y.get(h) || [];
|
|
1030
1029
|
if (!_.length)
|
|
1031
1030
|
return null;
|
|
1032
|
-
const k = h === null ? "group-null" : `group-${String(h)}`, S = h === null ?
|
|
1031
|
+
const k = h === null ? "group-null" : `group-${String(h)}`, S = h === null ? ua : String(h);
|
|
1033
1032
|
return b.add(h), {
|
|
1034
1033
|
key: k,
|
|
1035
1034
|
label: S,
|
|
@@ -1081,7 +1080,7 @@ const Hn = /* @__PURE__ */ fe(Un, [["render", Rn]]), qn = {
|
|
|
1081
1080
|
n("update:modelValue", y.length === 0 ? [] : y);
|
|
1082
1081
|
},
|
|
1083
1082
|
{ deep: !0 }
|
|
1084
|
-
),
|
|
1083
|
+
), Ue(() => {
|
|
1085
1084
|
if (l.data)
|
|
1086
1085
|
L().then(() => {
|
|
1087
1086
|
if (typeof l.modelValue == "boolean" && r.value.length === 1) {
|
|
@@ -1109,12 +1108,12 @@ const Hn = /* @__PURE__ */ fe(Un, [["render", Rn]]), qn = {
|
|
|
1109
1108
|
}
|
|
1110
1109
|
});
|
|
1111
1110
|
}
|
|
1112
|
-
}), (y, B) => l.group ? (d(), p("div",
|
|
1111
|
+
}), (y, B) => l.group ? (d(), p("div", sa, [
|
|
1113
1112
|
(d(!0), p(ve, null, Ve(g.value, (b) => (d(), p("div", {
|
|
1114
1113
|
key: b.key,
|
|
1115
1114
|
class: "flex flex-col gap-2"
|
|
1116
1115
|
}, [
|
|
1117
|
-
b.label ? (d(), p("span",
|
|
1116
|
+
b.label ? (d(), p("span", ia, te(b.label), 1)) : R("", !0),
|
|
1118
1117
|
o("div", {
|
|
1119
1118
|
class: G(["p-0 w-full gap-[12px]", m.value])
|
|
1120
1119
|
}, [
|
|
@@ -1152,7 +1151,7 @@ const Hn = /* @__PURE__ */ fe(Un, [["render", Rn]]), qn = {
|
|
|
1152
1151
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value", "class", "disabled", "label", "icon", "imgUrl", "option", "view"]))), 128))
|
|
1153
1152
|
], 2));
|
|
1154
1153
|
}
|
|
1155
|
-
}),
|
|
1154
|
+
}), ca = /* @__PURE__ */ fe(da, [["__scopeId", "data-v-8e66207e"]]), fa = ["type", "placeholder", "disabled"], pa = /* @__PURE__ */ oe({
|
|
1156
1155
|
__name: "vs-input-date1",
|
|
1157
1156
|
props: {
|
|
1158
1157
|
style: { default: () => ({}) },
|
|
@@ -1182,15 +1181,15 @@ const Hn = /* @__PURE__ */ fe(Un, [["render", Rn]]), qn = {
|
|
|
1182
1181
|
placeholder: m.value,
|
|
1183
1182
|
disabled: f.value,
|
|
1184
1183
|
ref: "date",
|
|
1185
|
-
class: G(["py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [v.modelValue ? "" : "text-opacity-50",
|
|
1184
|
+
class: G(["py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [v.modelValue ? "" : "text-opacity-50", _e(r)].join(" ")]),
|
|
1186
1185
|
style: {
|
|
1187
1186
|
border: "1px solid #CFD9E0"
|
|
1188
1187
|
}
|
|
1189
|
-
}, null, 10,
|
|
1188
|
+
}, null, 10, fa)), [
|
|
1190
1189
|
[Pl, s.value]
|
|
1191
1190
|
]);
|
|
1192
1191
|
}
|
|
1193
|
-
}),
|
|
1192
|
+
}), ma = (e, t) => {
|
|
1194
1193
|
if (!t || !Object.keys(t).length)
|
|
1195
1194
|
return e;
|
|
1196
1195
|
const [l, n = ""] = e.split("?"), r = new URLSearchParams(n);
|
|
@@ -1209,7 +1208,7 @@ const Hn = /* @__PURE__ */ fe(Un, [["render", Rn]]), qn = {
|
|
|
1209
1208
|
form: a = "form",
|
|
1210
1209
|
table: s = "table",
|
|
1211
1210
|
customParams: i
|
|
1212
|
-
} = t, f = n || `/file/upload/uploads?id=${r || ""}&form=${a || ""}&table=${s || ""}`, m =
|
|
1211
|
+
} = t, f = n || `/file/upload/uploads?id=${r || ""}&form=${a || ""}&table=${s || ""}`, m = ma(f, i);
|
|
1213
1212
|
return (await fetch(
|
|
1214
1213
|
m,
|
|
1215
1214
|
{
|
|
@@ -1225,7 +1224,7 @@ const Hn = /* @__PURE__ */ fe(Un, [["render", Rn]]), qn = {
|
|
|
1225
1224
|
position: "right-bottom"
|
|
1226
1225
|
}), console.error("Сталась помилка завантаження файлу", l), null;
|
|
1227
1226
|
}
|
|
1228
|
-
},
|
|
1227
|
+
}, va = async (e) => {
|
|
1229
1228
|
try {
|
|
1230
1229
|
return await fetch(`file/delete${e}`), !0;
|
|
1231
1230
|
} catch (t) {
|
|
@@ -1238,7 +1237,7 @@ const Hn = /* @__PURE__ */ fe(Un, [["render", Rn]]), qn = {
|
|
|
1238
1237
|
} catch (t) {
|
|
1239
1238
|
console.error(t.message);
|
|
1240
1239
|
}
|
|
1241
|
-
},
|
|
1240
|
+
}, ha = {}, ga = {
|
|
1242
1241
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1243
1242
|
width: "24",
|
|
1244
1243
|
height: "24",
|
|
@@ -1249,13 +1248,13 @@ const Hn = /* @__PURE__ */ fe(Un, [["render", Rn]]), qn = {
|
|
|
1249
1248
|
"stroke-linecap": "round",
|
|
1250
1249
|
"stroke-linejoin": "round"
|
|
1251
1250
|
};
|
|
1252
|
-
function
|
|
1253
|
-
return d(), p("svg",
|
|
1251
|
+
function ya(e, t) {
|
|
1252
|
+
return d(), p("svg", ga, t[0] || (t[0] = [
|
|
1254
1253
|
o("path", { d: "M5 12h14" }, null, -1),
|
|
1255
1254
|
o("path", { d: "M12 5v14" }, null, -1)
|
|
1256
|
-
])
|
|
1255
|
+
]));
|
|
1257
1256
|
}
|
|
1258
|
-
const Xe = /* @__PURE__ */ fe(
|
|
1257
|
+
const Xe = /* @__PURE__ */ fe(ha, [["render", ya]]), ba = {}, wa = {
|
|
1259
1258
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1260
1259
|
class: "icon icon-tabler icon-tabler-file-text",
|
|
1261
1260
|
width: "44",
|
|
@@ -1267,12 +1266,12 @@ const Xe = /* @__PURE__ */ fe(ga, [["render", ba]]), wa = {}, xa = {
|
|
|
1267
1266
|
"stroke-linecap": "round",
|
|
1268
1267
|
"stroke-linejoin": "round"
|
|
1269
1268
|
};
|
|
1270
|
-
function
|
|
1271
|
-
return d(), p("svg",
|
|
1269
|
+
function xa(e, t, l, n, r, a) {
|
|
1270
|
+
return d(), p("svg", wa, t[0] || (t[0] = [
|
|
1272
1271
|
Ge('<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)
|
|
1273
|
-
])
|
|
1272
|
+
]));
|
|
1274
1273
|
}
|
|
1275
|
-
const
|
|
1274
|
+
const ka = /* @__PURE__ */ fe(ba, [["render", xa]]), _a = {}, $a = {
|
|
1276
1275
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1277
1276
|
class: "icon icon-tabler icon-tabler-table",
|
|
1278
1277
|
width: "44",
|
|
@@ -1284,8 +1283,8 @@ const _a = /* @__PURE__ */ fe(wa, [["render", ka]]), $a = {}, Ca = {
|
|
|
1284
1283
|
"stroke-linecap": "round",
|
|
1285
1284
|
"stroke-linejoin": "round"
|
|
1286
1285
|
};
|
|
1287
|
-
function
|
|
1288
|
-
return d(), p("svg",
|
|
1286
|
+
function Ca(e, t, l, n, r, a) {
|
|
1287
|
+
return d(), p("svg", $a, t[0] || (t[0] = [
|
|
1289
1288
|
o("path", {
|
|
1290
1289
|
stroke: "none",
|
|
1291
1290
|
d: "M0 0h24v24H0z",
|
|
@@ -1310,9 +1309,9 @@ function Va(e, t, l, n, r, a) {
|
|
|
1310
1309
|
x2: "10",
|
|
1311
1310
|
y2: "20"
|
|
1312
1311
|
}, null, -1)
|
|
1313
|
-
])
|
|
1312
|
+
]));
|
|
1314
1313
|
}
|
|
1315
|
-
const
|
|
1314
|
+
const Va = /* @__PURE__ */ fe(_a, [["render", Ca]]), La = {}, Ma = {
|
|
1316
1315
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1317
1316
|
width: "24",
|
|
1318
1317
|
height: "24",
|
|
@@ -1323,12 +1322,12 @@ const La = /* @__PURE__ */ fe($a, [["render", Va]]), Ma = {}, Sa = {
|
|
|
1323
1322
|
"stroke-linecap": "round",
|
|
1324
1323
|
"stroke-linejoin": "round"
|
|
1325
1324
|
};
|
|
1326
|
-
function
|
|
1327
|
-
return d(), p("svg",
|
|
1325
|
+
function Sa(e, t) {
|
|
1326
|
+
return d(), p("svg", Ma, t[0] || (t[0] = [
|
|
1328
1327
|
Ge('<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)
|
|
1329
|
-
])
|
|
1328
|
+
]));
|
|
1330
1329
|
}
|
|
1331
|
-
const Dl = /* @__PURE__ */ fe(
|
|
1330
|
+
const Dl = /* @__PURE__ */ fe(La, [["render", Sa]]), Da = {}, Ba = {
|
|
1332
1331
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1333
1332
|
class: "icon icon-tabler icon-tabler-file-zip",
|
|
1334
1333
|
width: "44",
|
|
@@ -1340,12 +1339,12 @@ const Dl = /* @__PURE__ */ fe(Ma, [["render", Da]]), Ba = {}, Aa = {
|
|
|
1340
1339
|
"stroke-linecap": "round",
|
|
1341
1340
|
"stroke-linejoin": "round"
|
|
1342
1341
|
};
|
|
1343
|
-
function
|
|
1344
|
-
return d(), p("svg",
|
|
1342
|
+
function Aa(e, t, l, n, r, a) {
|
|
1343
|
+
return d(), p("svg", Ba, t[0] || (t[0] = [
|
|
1345
1344
|
Ge('<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)
|
|
1346
|
-
])
|
|
1345
|
+
]));
|
|
1347
1346
|
}
|
|
1348
|
-
const
|
|
1347
|
+
const Ta = /* @__PURE__ */ fe(Da, [["render", Aa]]), Ea = {}, Ia = {
|
|
1349
1348
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1350
1349
|
class: "icon icon-tabler icon-tabler-file-code",
|
|
1351
1350
|
width: "44",
|
|
@@ -1357,25 +1356,25 @@ const Ea = /* @__PURE__ */ fe(Ba, [["render", Ta]]), Ia = {}, ja = {
|
|
|
1357
1356
|
"stroke-linecap": "round",
|
|
1358
1357
|
"stroke-linejoin": "round"
|
|
1359
1358
|
};
|
|
1360
|
-
function
|
|
1361
|
-
return d(), p("svg",
|
|
1359
|
+
function ja(e, t, l, n, r, a) {
|
|
1360
|
+
return d(), p("svg", Ia, t[0] || (t[0] = [
|
|
1362
1361
|
Ge('<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)
|
|
1363
|
-
])
|
|
1362
|
+
]));
|
|
1364
1363
|
}
|
|
1365
|
-
const
|
|
1364
|
+
const Fa = /* @__PURE__ */ fe(Ea, [["render", ja]]), Oa = (e) => {
|
|
1366
1365
|
if (!e) return "";
|
|
1367
1366
|
const t = e?.split(".");
|
|
1368
1367
|
return t[t.length - 1];
|
|
1369
|
-
},
|
|
1370
|
-
const t =
|
|
1368
|
+
}, za = (e) => {
|
|
1369
|
+
const t = Oa(e), l = {
|
|
1371
1370
|
imageFormat: ["tiff", "jpg", "jpeg", "png", "svg", "ico", "webp"],
|
|
1372
1371
|
sheetsFormat: ["xls", "csv", "xlsx"],
|
|
1373
1372
|
archivesFormat: ["zip", "rar"],
|
|
1374
1373
|
textsFormat: ["json", "geojson", "txt", "yml", "yaml", "shp"],
|
|
1375
1374
|
documentsFormat: ["pdf"]
|
|
1376
1375
|
};
|
|
1377
|
-
return l.imageFormat.includes(t) ? "img" : l.sheetsFormat.includes(t) ?
|
|
1378
|
-
},
|
|
1376
|
+
return l.imageFormat.includes(t) ? "img" : l.sheetsFormat.includes(t) ? Va : l.textsFormat.includes(t) ? Fa : l.documentsFormat.includes(t) ? ka : l.archivesFormat.includes(t) ? Ta : Dl;
|
|
1377
|
+
}, Pa = {}, Ua = {
|
|
1379
1378
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1380
1379
|
width: "24",
|
|
1381
1380
|
height: "24",
|
|
@@ -1387,12 +1386,12 @@ const Oa = /* @__PURE__ */ fe(Ia, [["render", Fa]]), za = (e) => {
|
|
|
1387
1386
|
"stroke-linejoin": "round",
|
|
1388
1387
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-trash"
|
|
1389
1388
|
};
|
|
1390
|
-
function
|
|
1391
|
-
return d(), p("svg",
|
|
1389
|
+
function Na(e, t) {
|
|
1390
|
+
return d(), p("svg", Ua, t[0] || (t[0] = [
|
|
1392
1391
|
Ge('<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)
|
|
1393
|
-
])
|
|
1392
|
+
]));
|
|
1394
1393
|
}
|
|
1395
|
-
const ct = /* @__PURE__ */ fe(
|
|
1394
|
+
const ct = /* @__PURE__ */ fe(Pa, [["render", Na]]), Ra = {}, Ha = {
|
|
1396
1395
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1397
1396
|
width: "24",
|
|
1398
1397
|
height: "24",
|
|
@@ -1404,8 +1403,8 @@ const ct = /* @__PURE__ */ fe(Ua, [["render", Ra]]), Ha = {}, qa = {
|
|
|
1404
1403
|
"stroke-linejoin": "round",
|
|
1405
1404
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-download"
|
|
1406
1405
|
};
|
|
1407
|
-
function
|
|
1408
|
-
return d(), p("svg",
|
|
1406
|
+
function qa(e, t) {
|
|
1407
|
+
return d(), p("svg", Ha, t[0] || (t[0] = [
|
|
1409
1408
|
o("path", {
|
|
1410
1409
|
stroke: "none",
|
|
1411
1410
|
d: "M0 0h24v24H0z",
|
|
@@ -1414,11 +1413,11 @@ function Ga(e, t) {
|
|
|
1414
1413
|
o("path", { d: "M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2" }, null, -1),
|
|
1415
1414
|
o("path", { d: "M7 11l5 5l5 -5" }, null, -1),
|
|
1416
1415
|
o("path", { d: "M12 4l0 12" }, null, -1)
|
|
1417
|
-
])
|
|
1416
|
+
]));
|
|
1418
1417
|
}
|
|
1419
|
-
const Bl = /* @__PURE__ */ fe(
|
|
1418
|
+
const Bl = /* @__PURE__ */ fe(Ra, [["render", qa]]), Ga = ["title"], Ka = { class: "absolute hidden top-0 right-0 flex items-center gap-x-2 w-full h-full justify-center" }, Wa = /* @__PURE__ */ oe({
|
|
1420
1419
|
__name: "vs-input-file-list-item",
|
|
1421
|
-
props: /* @__PURE__ */
|
|
1420
|
+
props: /* @__PURE__ */ xe({
|
|
1422
1421
|
format: {},
|
|
1423
1422
|
multiple: { type: Boolean },
|
|
1424
1423
|
max_size: {},
|
|
@@ -1446,17 +1445,17 @@ const Bl = /* @__PURE__ */ fe(Ha, [["render", Ga]]), Ka = ["title"], Wa = { clas
|
|
|
1446
1445
|
title: l.value,
|
|
1447
1446
|
class: "h-[120px] w-[120px] border text-gray-300 border-dashed border-[#CFD9E0] rounded-lg overflow-hidden relative item-file"
|
|
1448
1447
|
}, [
|
|
1449
|
-
(d(), ge(
|
|
1448
|
+
(d(), ge(rt(_e(za)(l.value)), {
|
|
1450
1449
|
src: l.value,
|
|
1451
1450
|
alt: "file",
|
|
1452
1451
|
class: "w-full h-full object-cover cursor-pointer",
|
|
1453
|
-
onClick: a[0] || (a[0] = (s) =>
|
|
1452
|
+
onClick: a[0] || (a[0] = (s) => _e(fl)(l.value))
|
|
1454
1453
|
}, null, 8, ["src"])),
|
|
1455
|
-
o("div",
|
|
1454
|
+
o("div", Ka, [
|
|
1456
1455
|
o("button", {
|
|
1457
1456
|
type: "button",
|
|
1458
1457
|
onClick: a[1] || (a[1] = (s) => {
|
|
1459
|
-
|
|
1458
|
+
_e(va)(l.value), t.value = n.multiple ? t.value?.filter((i) => i !== l.value) : "";
|
|
1460
1459
|
}),
|
|
1461
1460
|
class: "w-6 h-6 flex items-center justify-center text-gray-500 bg-gray-200 rounded-lg hover:text-red-500"
|
|
1462
1461
|
}, [
|
|
@@ -1464,26 +1463,26 @@ const Bl = /* @__PURE__ */ fe(Ha, [["render", Ga]]), Ka = ["title"], Wa = { clas
|
|
|
1464
1463
|
]),
|
|
1465
1464
|
o("button", {
|
|
1466
1465
|
type: "button",
|
|
1467
|
-
onClick: a[2] || (a[2] = (s) =>
|
|
1466
|
+
onClick: a[2] || (a[2] = (s) => _e(fl)(l.value)),
|
|
1468
1467
|
class: "w-6 h-6 flex items-center justify-center text-gray-500 bg-gray-200 rounded-lg hover:text-blue-500"
|
|
1469
1468
|
}, [
|
|
1470
1469
|
le(Bl, { class: "w-4 h-4" })
|
|
1471
1470
|
])
|
|
1472
1471
|
])
|
|
1473
|
-
], 8,
|
|
1472
|
+
], 8, Ga));
|
|
1474
1473
|
}
|
|
1475
|
-
}), Qt = /* @__PURE__ */ fe(
|
|
1474
|
+
}), Qt = /* @__PURE__ */ fe(Wa, [["__scopeId", "data-v-286cdbc0"]]), Ya = { class: "flex items-center gap-x-2" }, Za = ["accept", "multiple", "disabled"], Ja = {
|
|
1476
1475
|
key: 1,
|
|
1477
1476
|
class: "flex items-center flex-wrap gap-2"
|
|
1478
|
-
},
|
|
1477
|
+
}, Xa = {
|
|
1479
1478
|
key: 1,
|
|
1480
1479
|
class: "loader"
|
|
1481
|
-
},
|
|
1480
|
+
}, Qa = {
|
|
1482
1481
|
key: 1,
|
|
1483
1482
|
class: "loader"
|
|
1484
|
-
},
|
|
1483
|
+
}, eo = /* @__PURE__ */ oe({
|
|
1485
1484
|
__name: "vs-input-file",
|
|
1486
|
-
props: /* @__PURE__ */
|
|
1485
|
+
props: /* @__PURE__ */ xe({
|
|
1487
1486
|
format: {},
|
|
1488
1487
|
multiple: { type: Boolean },
|
|
1489
1488
|
max_size: {},
|
|
@@ -1502,7 +1501,7 @@ const Bl = /* @__PURE__ */ fe(Ha, [["render", Ga]]), Ka = ["title"], Wa = { clas
|
|
|
1502
1501
|
modelValue: {},
|
|
1503
1502
|
modelModifiers: {}
|
|
1504
1503
|
}),
|
|
1505
|
-
emits: /* @__PURE__ */
|
|
1504
|
+
emits: /* @__PURE__ */ xe(["change"], ["update:modelValue"]),
|
|
1506
1505
|
setup(e, { emit: t }) {
|
|
1507
1506
|
const l = e, n = Ce(e, "modelValue"), r = t, a = V(null), s = V(!1), i = qe("values"), f = w(() => l.format ? l.format.split(",").map((h) => h.trim().toLowerCase()).filter(Boolean) : []), m = (h) => Array.isArray(n.value) && n.value[h] || "", v = (h) => {
|
|
1508
1507
|
if (l.max_size && h.size > l.max_size * 1024 * 1024) {
|
|
@@ -1606,7 +1605,7 @@ const Bl = /* @__PURE__ */ fe(Ha, [["render", Ga]]), Ka = ["title"], Wa = { clas
|
|
|
1606
1605
|
s.value = !1, a.value && (a.value.value = "");
|
|
1607
1606
|
}
|
|
1608
1607
|
};
|
|
1609
|
-
return (h, _) => (d(), p("div",
|
|
1608
|
+
return (h, _) => (d(), p("div", Ya, [
|
|
1610
1609
|
o("input", {
|
|
1611
1610
|
class: "hidden",
|
|
1612
1611
|
ref_key: "fileInput",
|
|
@@ -1616,14 +1615,14 @@ const Bl = /* @__PURE__ */ fe(Ha, [["render", Ga]]), Ka = ["title"], Wa = { clas
|
|
|
1616
1615
|
multiple: h.multiple,
|
|
1617
1616
|
onChange: C,
|
|
1618
1617
|
disabled: s.value || h.disabled
|
|
1619
|
-
}, null, 40,
|
|
1618
|
+
}, null, 40, Za),
|
|
1620
1619
|
!h.multiple && n.value ? (d(), ge(Qt, {
|
|
1621
1620
|
key: 0,
|
|
1622
1621
|
item: n.value,
|
|
1623
1622
|
"onUpdate:item": _[0] || (_[0] = (k) => n.value = k),
|
|
1624
1623
|
value: n.value,
|
|
1625
1624
|
"onUpdate:value": _[1] || (_[1] = (k) => n.value = k)
|
|
1626
|
-
}, null, 8, ["item", "value"])) : h.multiple ? (d(), p("div",
|
|
1625
|
+
}, null, 8, ["item", "value"])) : h.multiple ? (d(), p("div", Ja, [
|
|
1627
1626
|
(d(!0), p(ve, null, Ve(n.value, (k, S) => (d(), ge(Qt, {
|
|
1628
1627
|
multiple: h.multiple,
|
|
1629
1628
|
key: S,
|
|
@@ -1638,7 +1637,7 @@ const Bl = /* @__PURE__ */ fe(Ha, [["render", Ga]]), Ka = ["title"], Wa = { clas
|
|
|
1638
1637
|
h.disabled || s.value ? "opacity-50 cursor-not-allowed" : "cursor-pointer hover:border-blue-500 hover:bg-blue-50"
|
|
1639
1638
|
])
|
|
1640
1639
|
}, [
|
|
1641
|
-
s.value ? (d(), p("div",
|
|
1640
|
+
s.value ? (d(), p("div", Xa)) : (d(), ge(Xe, {
|
|
1642
1641
|
key: 0,
|
|
1643
1642
|
class: "w-6 h-6"
|
|
1644
1643
|
}))
|
|
@@ -1649,25 +1648,25 @@ const Bl = /* @__PURE__ */ fe(Ha, [["render", Ga]]), Ka = ["title"], Wa = { clas
|
|
|
1649
1648
|
onClick: x,
|
|
1650
1649
|
class: G([h.disabled || s.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"])
|
|
1651
1650
|
}, [
|
|
1652
|
-
s.value ? (d(), p("div",
|
|
1651
|
+
s.value ? (d(), p("div", Qa)) : (d(), ge(Xe, {
|
|
1653
1652
|
key: 0,
|
|
1654
1653
|
class: "w-6 h-6"
|
|
1655
1654
|
}))
|
|
1656
1655
|
], 2))
|
|
1657
1656
|
]));
|
|
1658
1657
|
}
|
|
1659
|
-
}),
|
|
1658
|
+
}), to = /* @__PURE__ */ fe(eo, [["__scopeId", "data-v-cf6efbaa"]]), lo = { class: "vs-input-file2 flex flex-col gap-4" }, no = { class: "flex items-center gap-x-2" }, ao = ["accept", "disabled"], oo = {
|
|
1660
1659
|
key: 0,
|
|
1661
1660
|
class: "absolute inset-0 flex flex-col items-center justify-center gap-1 rounded-lg bg-white/90 text-xs font-medium text-slate-600"
|
|
1662
|
-
},
|
|
1661
|
+
}, ro = {
|
|
1663
1662
|
key: 0,
|
|
1664
1663
|
class: "rounded-lg border border-[#CFD9E0] bg-white p-4 shadow-sm"
|
|
1665
|
-
},
|
|
1664
|
+
}, so = { class: "flex items-center justify-between text-sm" }, io = { class: "truncate pr-4" }, uo = { class: "font-medium text-slate-800 truncate" }, co = { class: "text-slate-500" }, fo = { class: "text-slate-500 whitespace-nowrap" }, po = { class: "mt-3 h-2 rounded-full bg-slate-100 overflow-hidden" }, mo = { class: "mt-3 flex flex-wrap gap-2 text-sm" }, vo = {
|
|
1666
1665
|
key: 0,
|
|
1667
1666
|
class: "mt-2 text-sm text-rose-600"
|
|
1668
|
-
},
|
|
1667
|
+
}, ho = /* @__PURE__ */ oe({
|
|
1669
1668
|
__name: "vs-input-file2",
|
|
1670
|
-
props: /* @__PURE__ */
|
|
1669
|
+
props: /* @__PURE__ */ xe({
|
|
1671
1670
|
format: {},
|
|
1672
1671
|
max_size: {},
|
|
1673
1672
|
api: {},
|
|
@@ -1819,8 +1818,8 @@ const Bl = /* @__PURE__ */ fe(Ha, [["render", Ga]]), Ka = ["title"], Wa = { clas
|
|
|
1819
1818
|
const P = n.value;
|
|
1820
1819
|
P && (P.value = ""), r.value = null, a.value = "", s.value = 0, f.value = "";
|
|
1821
1820
|
};
|
|
1822
|
-
return (P, N) => (d(), p("div",
|
|
1823
|
-
o("div",
|
|
1821
|
+
return (P, N) => (d(), p("div", lo, [
|
|
1822
|
+
o("div", no, [
|
|
1824
1823
|
o("input", {
|
|
1825
1824
|
ref_key: "fileInput",
|
|
1826
1825
|
ref: n,
|
|
@@ -1829,7 +1828,7 @@ const Bl = /* @__PURE__ */ fe(Ha, [["render", Ga]]), Ka = ["title"], Wa = { clas
|
|
|
1829
1828
|
accept: t.format,
|
|
1830
1829
|
disabled: i.value || t.disabled,
|
|
1831
1830
|
onChange: S
|
|
1832
|
-
}, null, 40,
|
|
1831
|
+
}, null, 40, ao),
|
|
1833
1832
|
l.value ? (d(), ge(Qt, {
|
|
1834
1833
|
key: 0,
|
|
1835
1834
|
item: l.value,
|
|
@@ -1841,7 +1840,7 @@ const Bl = /* @__PURE__ */ fe(Ha, [["render", Ga]]), Ka = ["title"], Wa = { clas
|
|
|
1841
1840
|
onClick: b,
|
|
1842
1841
|
class: G(["relative h-[120px] w-[120px] border text-gray-300 border-dashed border-[#CFD9E0] rounded-lg flex items-center justify-center transition-all duration-300", B.value])
|
|
1843
1842
|
}, [
|
|
1844
|
-
i.value ? (d(), p("div",
|
|
1843
|
+
i.value ? (d(), p("div", oo, [
|
|
1845
1844
|
N[2] || (N[2] = o("div", { class: "loader" }, null, -1)),
|
|
1846
1845
|
o("span", null, te(L.value) + "%", 1)
|
|
1847
1846
|
])) : (d(), ge(Xe, {
|
|
@@ -1850,21 +1849,21 @@ const Bl = /* @__PURE__ */ fe(Ha, [["render", Ga]]), Ka = ["title"], Wa = { clas
|
|
|
1850
1849
|
}))
|
|
1851
1850
|
], 2))
|
|
1852
1851
|
]),
|
|
1853
|
-
r.value && !l.value ? (d(), p("div",
|
|
1854
|
-
o("div",
|
|
1855
|
-
o("div",
|
|
1856
|
-
o("div",
|
|
1857
|
-
o("div",
|
|
1852
|
+
r.value && !l.value ? (d(), p("div", ro, [
|
|
1853
|
+
o("div", so, [
|
|
1854
|
+
o("div", io, [
|
|
1855
|
+
o("div", uo, te(r.value.name), 1),
|
|
1856
|
+
o("div", co, te(x(r.value.size)), 1)
|
|
1858
1857
|
]),
|
|
1859
|
-
o("div",
|
|
1858
|
+
o("div", fo, te(y.value), 1)
|
|
1860
1859
|
]),
|
|
1861
|
-
o("div",
|
|
1860
|
+
o("div", po, [
|
|
1862
1861
|
o("div", {
|
|
1863
1862
|
class: "h-full rounded-full bg-blue-500 transition-all duration-300",
|
|
1864
1863
|
style: Ae({ width: `${L.value}%` })
|
|
1865
1864
|
}, null, 4)
|
|
1866
1865
|
]),
|
|
1867
|
-
o("div",
|
|
1866
|
+
o("div", mo, [
|
|
1868
1867
|
!i.value && s.value > 0 && s.value < (r.value?.size || 0) ? (d(), p("button", {
|
|
1869
1868
|
key: 0,
|
|
1870
1869
|
type: "button",
|
|
@@ -1889,11 +1888,11 @@ const Bl = /* @__PURE__ */ fe(Ha, [["render", Ga]]), Ka = ["title"], Wa = { clas
|
|
|
1889
1888
|
onClick: X
|
|
1890
1889
|
}, " Cancel ")
|
|
1891
1890
|
]),
|
|
1892
|
-
f.value ? (d(), p("p",
|
|
1891
|
+
f.value ? (d(), p("p", vo, te(f.value), 1)) : R("", !0)
|
|
1893
1892
|
])) : R("", !0)
|
|
1894
1893
|
]));
|
|
1895
1894
|
}
|
|
1896
|
-
}), Yt = /* @__PURE__ */ fe(
|
|
1895
|
+
}), Yt = /* @__PURE__ */ fe(ho, [["__scopeId", "data-v-ea9f874f"]]), go = { class: "max-w-[55vw]" }, yo = { class: "text-sm font-semibold text-gray-800 truncate dark:text-neutral-200" }, bo = { class: "flex items-center text-xs text-gray-500 truncate dark:text-neutral-500" }, wo = { class: "px-[5px]" }, xo = { class: "" }, St = /* @__PURE__ */ oe({
|
|
1897
1896
|
__name: "vs-widget-file-info",
|
|
1898
1897
|
props: {
|
|
1899
1898
|
item: { default: null }
|
|
@@ -1918,33 +1917,33 @@ const Bl = /* @__PURE__ */ fe(Ha, [["render", Ga]]), Ka = ["title"], Wa = { clas
|
|
|
1918
1917
|
}
|
|
1919
1918
|
return (r, a) => (d(), p(ve, null, [
|
|
1920
1919
|
a[1] || (a[1] = Ge('<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)),
|
|
1921
|
-
o("div",
|
|
1922
|
-
o("p",
|
|
1923
|
-
o("p",
|
|
1920
|
+
o("div", go, [
|
|
1921
|
+
o("p", yo, te(r.item?.uploaded_name), 1),
|
|
1922
|
+
o("p", bo, [
|
|
1924
1923
|
o("span", null, te(r.item?.username), 1),
|
|
1925
|
-
we(o("span",
|
|
1924
|
+
we(o("span", wo, "|", 512), [
|
|
1926
1925
|
[tt, r.item?.username]
|
|
1927
1926
|
]),
|
|
1928
1927
|
o("span", null, te(l.value), 1),
|
|
1929
1928
|
a[0] || (a[0] = o("span", { class: "px-[5px]" }, "|", -1)),
|
|
1930
|
-
o("span",
|
|
1929
|
+
o("span", xo, te(n(r.item?.size)), 1)
|
|
1931
1930
|
])
|
|
1932
1931
|
])
|
|
1933
1932
|
], 64));
|
|
1934
1933
|
}
|
|
1935
|
-
}),
|
|
1934
|
+
}), ko = { class: "p-3 relative group flex items-center gap-x-3 border border-gray-200 bg-white rounded-md w-full" }, _o = {
|
|
1936
1935
|
key: 0,
|
|
1937
1936
|
class: "flex w-full gap-x-3 items-center"
|
|
1938
|
-
},
|
|
1937
|
+
}, $o = {
|
|
1939
1938
|
key: 1,
|
|
1940
1939
|
class: "flex gap-x-3 w-full items-center"
|
|
1941
|
-
},
|
|
1940
|
+
}, Co = {
|
|
1942
1941
|
key: 2,
|
|
1943
1942
|
class: "flex gap-x-3 w-full items-center"
|
|
1944
|
-
},
|
|
1943
|
+
}, Vo = ["href"], Lo = {
|
|
1945
1944
|
key: 3,
|
|
1946
1945
|
class: "flex gap-x-3 w-full items-center"
|
|
1947
|
-
},
|
|
1946
|
+
}, Mo = { class: "lg:absolute lg:top-3 lg:end-1 opacity-100" }, So = { 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" }, Do = { class: "inline-block" }, Bo = { class: "inline-block" }, Ao = /* @__PURE__ */ oe({
|
|
1948
1947
|
__name: "vs-widget-file-item",
|
|
1949
1948
|
props: {
|
|
1950
1949
|
item: { default: null },
|
|
@@ -1986,30 +1985,30 @@ const Bl = /* @__PURE__ */ fe(Ha, [["render", Ga]]), Ka = ["title"], Wa = { clas
|
|
|
1986
1985
|
function m(v) {
|
|
1987
1986
|
(l.item.ext === "jpg" || l.item.ext === "png") && n("openLightbox", { item: l.item, index: v });
|
|
1988
1987
|
}
|
|
1989
|
-
return (v, g) => (d(), p("div",
|
|
1990
|
-
v.item.ext === "jpg" || v.item.ext === "png" ? (d(), p("div",
|
|
1988
|
+
return (v, g) => (d(), p("div", ko, [
|
|
1989
|
+
v.item.ext === "jpg" || v.item.ext === "png" ? (d(), p("div", _o, [
|
|
1991
1990
|
o("div", {
|
|
1992
1991
|
class: "max-w-[55vw] cursor-pointer flex gap-x-3 w-full items-center",
|
|
1993
1992
|
onClick: g[0] || (g[0] = (L) => m(v.index))
|
|
1994
1993
|
}, [
|
|
1995
1994
|
le(St, { item: v.item }, null, 8, ["item"])
|
|
1996
1995
|
])
|
|
1997
|
-
])) : r(v.item) ? (d(), p("div",
|
|
1996
|
+
])) : r(v.item) ? (d(), p("div", $o, [
|
|
1998
1997
|
le(St, { item: v.item }, null, 8, ["item"])
|
|
1999
|
-
])) : a(v.item) ? (d(), p("div",
|
|
1998
|
+
])) : a(v.item) ? (d(), p("div", Co, [
|
|
2000
1999
|
o("a", {
|
|
2001
2000
|
href: `/api/file-preview?id=${v.item.file_id}`,
|
|
2002
2001
|
target: "_blank",
|
|
2003
2002
|
class: "flex gap-x-3 w-full items-center"
|
|
2004
2003
|
}, [
|
|
2005
2004
|
le(St, { item: v.item }, null, 8, ["item"])
|
|
2006
|
-
], 8,
|
|
2007
|
-
])) : (d(), p("div",
|
|
2005
|
+
], 8, Vo)
|
|
2006
|
+
])) : (d(), p("div", Lo, [
|
|
2008
2007
|
le(St, { item: v.item }, null, 8, ["item"])
|
|
2009
2008
|
])),
|
|
2010
|
-
o("div",
|
|
2011
|
-
o("div",
|
|
2012
|
-
o("div",
|
|
2009
|
+
o("div", Mo, [
|
|
2010
|
+
o("div", So, [
|
|
2011
|
+
o("div", Do, [
|
|
2013
2012
|
o("button", {
|
|
2014
2013
|
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",
|
|
2015
2014
|
onClick: g[1] || (g[1] = (L) => s(v.item))
|
|
@@ -2021,7 +2020,7 @@ const Bl = /* @__PURE__ */ fe(Ha, [["render", Ga]]), Ka = ["title"], Wa = { clas
|
|
|
2021
2020
|
])
|
|
2022
2021
|
]),
|
|
2023
2022
|
g[3] || (g[3] = o("div", { class: "w-px h-5 mx-1 bg-gray-200 dark:bg-neutral-700" }, null, -1)),
|
|
2024
|
-
o("div",
|
|
2023
|
+
o("div", Bo, [
|
|
2025
2024
|
o("button", {
|
|
2026
2025
|
type: "button",
|
|
2027
2026
|
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",
|
|
@@ -2037,7 +2036,7 @@ const Bl = /* @__PURE__ */ fe(Ha, [["render", Ga]]), Ka = ["title"], Wa = { clas
|
|
|
2037
2036
|
])
|
|
2038
2037
|
]));
|
|
2039
2038
|
}
|
|
2040
|
-
}),
|
|
2039
|
+
}), To = {}, Eo = {
|
|
2041
2040
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2042
2041
|
width: "24",
|
|
2043
2042
|
height: "24",
|
|
@@ -2049,8 +2048,8 @@ const Bl = /* @__PURE__ */ fe(Ha, [["render", Ga]]), Ka = ["title"], Wa = { clas
|
|
|
2049
2048
|
"stroke-linejoin": "round",
|
|
2050
2049
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-download"
|
|
2051
2050
|
};
|
|
2052
|
-
function
|
|
2053
|
-
return d(), p("svg",
|
|
2051
|
+
function Io(e, t) {
|
|
2052
|
+
return d(), p("svg", Eo, t[0] || (t[0] = [
|
|
2054
2053
|
o("path", {
|
|
2055
2054
|
stroke: "none",
|
|
2056
2055
|
d: "M0 0h24v24H0z",
|
|
@@ -2059,15 +2058,15 @@ function jo(e, t) {
|
|
|
2059
2058
|
o("path", { d: "M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2" }, null, -1),
|
|
2060
2059
|
o("path", { d: "M7 11l5 5l5 -5" }, null, -1),
|
|
2061
2060
|
o("path", { d: "M12 4l0 12" }, null, -1)
|
|
2062
|
-
])
|
|
2061
|
+
]));
|
|
2063
2062
|
}
|
|
2064
|
-
const
|
|
2063
|
+
const jo = /* @__PURE__ */ fe(To, [["render", Io]]), Fo = { class: "flex flex-col widget-file xl:bg-white xl:rounded-xl dark:xl:bg-neutral-800 dark:xl:border-neutral-700 w-full" }, Oo = { class: "flex w-full mb-[12px] items-center gap-x-2" }, zo = { class: "font-semibold text-gray-800 dark:text-neutral-200 text-[14px]" }, Po = { class1: "ml-auto" }, Uo = { 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" }, No = {
|
|
2065
2064
|
key: 0,
|
|
2066
2065
|
class: "py-4 mb-4 space-y-4 border-gray-200 border-y dark:border-neutral-700"
|
|
2067
|
-
},
|
|
2066
|
+
}, Ro = { class: "relative" }, Ho = {
|
|
2068
2067
|
key: 1,
|
|
2069
2068
|
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"
|
|
2070
|
-
},
|
|
2069
|
+
}, qo = { key: 0 }, Go = /* @__PURE__ */ oe({
|
|
2071
2070
|
__name: "vs-input-file-list",
|
|
2072
2071
|
props: {
|
|
2073
2072
|
id: { default: "" },
|
|
@@ -2127,22 +2126,22 @@ const Fo = /* @__PURE__ */ fe(Eo, [["render", jo]]), Oo = { class: "flex flex-co
|
|
|
2127
2126
|
};
|
|
2128
2127
|
return se(r, (_) => {
|
|
2129
2128
|
_ && b();
|
|
2130
|
-
}),
|
|
2129
|
+
}), Ue(() => {
|
|
2131
2130
|
r.value && b();
|
|
2132
2131
|
}), (_, k) => {
|
|
2133
2132
|
const S = Je("Lightbox"), I = Je("MessageBox");
|
|
2134
|
-
return d(), p("div",
|
|
2135
|
-
o("div",
|
|
2136
|
-
o("h2",
|
|
2137
|
-
o("div",
|
|
2133
|
+
return d(), p("div", Fo, [
|
|
2134
|
+
o("div", Oo, [
|
|
2135
|
+
o("h2", zo, " Файлів: " + te(v.value?.length), 1),
|
|
2136
|
+
o("div", Po, [
|
|
2138
2137
|
o("label", null, [
|
|
2139
2138
|
o("input", {
|
|
2140
2139
|
type: "file",
|
|
2141
2140
|
class: "hidden",
|
|
2142
2141
|
onChange: k[0] || (k[0] = (M) => x(M))
|
|
2143
2142
|
}, null, 32),
|
|
2144
|
-
o("div",
|
|
2145
|
-
le(
|
|
2143
|
+
o("div", Uo, [
|
|
2144
|
+
le(jo, {
|
|
2146
2145
|
height: "16",
|
|
2147
2146
|
width: "16"
|
|
2148
2147
|
})
|
|
@@ -2150,9 +2149,9 @@ const Fo = /* @__PURE__ */ fe(Eo, [["render", jo]]), Oo = { class: "flex flex-co
|
|
|
2150
2149
|
])
|
|
2151
2150
|
])
|
|
2152
2151
|
]),
|
|
2153
|
-
v.value?.length > 4 ? (d(), p("div",
|
|
2152
|
+
v.value?.length > 4 ? (d(), p("div", No, [
|
|
2154
2153
|
o("div", null, [
|
|
2155
|
-
o("div",
|
|
2154
|
+
o("div", Ro, [
|
|
2156
2155
|
k[8] || (k[8] = o("div", { class: "absolute inset-y-0 start-0 flex items-center pointer-events-none z-[1] ps-3.5" }, [
|
|
2157
2156
|
o("svg", {
|
|
2158
2157
|
class: "flex-shrink-0 text-gray-500 size-4 dark:text-neutral-400",
|
|
@@ -2190,8 +2189,8 @@ const Fo = /* @__PURE__ */ fe(Eo, [["render", jo]]), Oo = { class: "flex flex-co
|
|
|
2190
2189
|
])
|
|
2191
2190
|
])
|
|
2192
2191
|
])) : R("", !0),
|
|
2193
|
-
v.value?.length ? (d(), p("div",
|
|
2194
|
-
(d(!0), p(ve, null, Ve(y.value, (M, T) => (d(), ge(
|
|
2192
|
+
v.value?.length ? (d(), p("div", Ho, [
|
|
2193
|
+
(d(!0), p(ve, null, Ve(y.value, (M, T) => (d(), ge(Ao, {
|
|
2195
2194
|
key: T,
|
|
2196
2195
|
prefix: _.prefix,
|
|
2197
2196
|
item: M,
|
|
@@ -2200,9 +2199,9 @@ const Fo = /* @__PURE__ */ fe(Eo, [["render", jo]]), Oo = { class: "flex flex-co
|
|
|
2200
2199
|
onOpenModal: k[3] || (k[3] = (Y) => h(Y)),
|
|
2201
2200
|
onOpenLightbox: k[4] || (k[4] = (Y) => B(Y))
|
|
2202
2201
|
}, null, 8, ["prefix", "item", "index"]))), 128)),
|
|
2203
|
-
y.value.length ? R("", !0) : (d(), p("div",
|
|
2202
|
+
y.value.length ? R("", !0) : (d(), p("div", qo, k[9] || (k[9] = [
|
|
2204
2203
|
o("p", { class: "text-sm text-gray-600 font-sm" }, " Файлів з такою назвою не існує, введіть інше пошукове слово ", -1)
|
|
2205
|
-
])
|
|
2204
|
+
])))
|
|
2206
2205
|
])) : R("", !0),
|
|
2207
2206
|
le(S, {
|
|
2208
2207
|
modelValue: a.value,
|
|
@@ -2219,7 +2218,7 @@ const Fo = /* @__PURE__ */ fe(Eo, [["render", jo]]), Oo = { class: "flex flex-co
|
|
|
2219
2218
|
]);
|
|
2220
2219
|
};
|
|
2221
2220
|
}
|
|
2222
|
-
}),
|
|
2221
|
+
}), Ko = { class: "flex items-center justify-between" }, Wo = { class: "text-[16px] text-gray-900 font-medium" }, Yo = { class: "grid gap-3" }, Zo = /* @__PURE__ */ oe({
|
|
2223
2222
|
__name: "vs-container-switcher",
|
|
2224
2223
|
props: {
|
|
2225
2224
|
title: {
|
|
@@ -2243,8 +2242,8 @@ const Fo = /* @__PURE__ */ fe(Eo, [["render", jo]]), Oo = { class: "flex flex-co
|
|
|
2243
2242
|
l.value = n;
|
|
2244
2243
|
}
|
|
2245
2244
|
), (n, r) => (d(), p("div", null, [
|
|
2246
|
-
o("div",
|
|
2247
|
-
o("p",
|
|
2245
|
+
o("div", Ko, [
|
|
2246
|
+
o("p", Wo, te(e.title), 1),
|
|
2248
2247
|
le(Vl, {
|
|
2249
2248
|
modelValue: l.value,
|
|
2250
2249
|
"onUpdate:modelValue": r[0] || (r[0] = (a) => l.value = a),
|
|
@@ -2252,8 +2251,8 @@ const Fo = /* @__PURE__ */ fe(Eo, [["render", jo]]), Oo = { class: "flex flex-co
|
|
|
2252
2251
|
}, null, 8, ["modelValue", "style"])
|
|
2253
2252
|
]),
|
|
2254
2253
|
le(Pt, { name: "slide-fade" }, {
|
|
2255
|
-
default:
|
|
2256
|
-
we(o("div",
|
|
2254
|
+
default: Re(() => [
|
|
2255
|
+
we(o("div", Yo, [
|
|
2257
2256
|
ze(n.$slots, "default", {}, void 0, !0)
|
|
2258
2257
|
], 512), [
|
|
2259
2258
|
[tt, l.value]
|
|
@@ -2263,7 +2262,7 @@ const Fo = /* @__PURE__ */ fe(Eo, [["render", jo]]), Oo = { class: "flex flex-co
|
|
|
2263
2262
|
})
|
|
2264
2263
|
]));
|
|
2265
2264
|
}
|
|
2266
|
-
}),
|
|
2265
|
+
}), Jo = /* @__PURE__ */ fe(Zo, [["__scopeId", "data-v-90320b87"]]), Xo = { class: "text-[16px] text-gray-900 font-medium" }, Qo = { class: "grid gap-3" }, er = /* @__PURE__ */ oe({
|
|
2267
2266
|
__name: "vs-container-accordion",
|
|
2268
2267
|
props: {
|
|
2269
2268
|
title: {
|
|
@@ -2292,14 +2291,14 @@ const Fo = /* @__PURE__ */ fe(Eo, [["render", jo]]), Oo = { class: "flex flex-co
|
|
|
2292
2291
|
onClick: r[0] || (r[0] = (a) => l.value = !l.value),
|
|
2293
2292
|
class: "flex items-center gap-2"
|
|
2294
2293
|
}, [
|
|
2295
|
-
le(
|
|
2294
|
+
le(_e(al), {
|
|
2296
2295
|
class: G(["h-4 w-4 duration-300", [l.value ? "-rotate-180" : ""]])
|
|
2297
2296
|
}, null, 8, ["class"]),
|
|
2298
|
-
o("span",
|
|
2297
|
+
o("span", Xo, te(e.title), 1)
|
|
2299
2298
|
]),
|
|
2300
2299
|
le(Pt, { name: "slide-fade" }, {
|
|
2301
|
-
default:
|
|
2302
|
-
we(o("div",
|
|
2300
|
+
default: Re(() => [
|
|
2301
|
+
we(o("div", Qo, [
|
|
2303
2302
|
ze(n.$slots, "default", {}, void 0, !0)
|
|
2304
2303
|
], 512), [
|
|
2305
2304
|
[tt, l.value]
|
|
@@ -2309,7 +2308,7 @@ const Fo = /* @__PURE__ */ fe(Eo, [["render", jo]]), Oo = { class: "flex flex-co
|
|
|
2309
2308
|
})
|
|
2310
2309
|
]));
|
|
2311
2310
|
}
|
|
2312
|
-
}),
|
|
2311
|
+
}), tr = /* @__PURE__ */ fe(er, [["__scopeId", "data-v-590eff11"]]), lr = { class: "flex items-center justify-between" }, nr = /* @__PURE__ */ oe({
|
|
2313
2312
|
__name: "vs-container-default",
|
|
2314
2313
|
props: {
|
|
2315
2314
|
title: {
|
|
@@ -2323,16 +2322,16 @@ const Fo = /* @__PURE__ */ fe(Eo, [["render", jo]]), Oo = { class: "flex flex-co
|
|
|
2323
2322
|
},
|
|
2324
2323
|
setup(e) {
|
|
2325
2324
|
return (t, l) => (d(), p("div", null, [
|
|
2326
|
-
o("div",
|
|
2325
|
+
o("div", lr, [
|
|
2327
2326
|
o("p", null, te(e.title), 1)
|
|
2328
2327
|
]),
|
|
2329
2328
|
ze(t.$slots, "default")
|
|
2330
2329
|
]));
|
|
2331
2330
|
}
|
|
2332
|
-
}),
|
|
2333
|
-
switcher:
|
|
2334
|
-
accordion:
|
|
2335
|
-
default:
|
|
2331
|
+
}), ar = {
|
|
2332
|
+
switcher: Jo,
|
|
2333
|
+
accordion: tr,
|
|
2334
|
+
default: nr
|
|
2336
2335
|
}, Ke = {
|
|
2337
2336
|
Equal: "==",
|
|
2338
2337
|
Inequal: "!=",
|
|
@@ -2346,37 +2345,37 @@ const Fo = /* @__PURE__ */ fe(Eo, [["render", jo]]), Oo = { class: "flex flex-co
|
|
|
2346
2345
|
Contain: "*",
|
|
2347
2346
|
In: "in",
|
|
2348
2347
|
NotIn: "not_in"
|
|
2349
|
-
},
|
|
2348
|
+
}, or = (e, t) => String(e) === String(t), rr = (e, t) => String(e) !== String(t), sr = (e, t) => e > t, ir = (e, t) => e >= t, ur = (e, t) => e < t, dr = (e, t) => e <= t, cr = (e, t) => Array.isArray(t) && t.length === 2 ? e >= t[0] && e <= t[1] : !1, fr = (e, t) => String(e).startsWith(String(t)), pr = (e, t) => String(e).endsWith(String(t)), mr = (e, t) => String(e).includes(String(t)), vr = (e, t) => Array.isArray(t) ? t.includes(e) : !1, hr = (e, t) => Array.isArray(t) ? !t.includes(e) : !0, Al = (e, t) => {
|
|
2350
2349
|
if (!t) return !0;
|
|
2351
2350
|
switch (t?.[1]) {
|
|
2352
2351
|
case Ke.Equal:
|
|
2353
|
-
return
|
|
2352
|
+
return or(e, t?.[2]);
|
|
2354
2353
|
case Ke.Inequal:
|
|
2355
|
-
return
|
|
2354
|
+
return rr(e, t?.[2]);
|
|
2356
2355
|
case Ke.Higer:
|
|
2357
|
-
return
|
|
2356
|
+
return sr(e, t?.[2]);
|
|
2358
2357
|
case Ke.HigerOrEqual:
|
|
2359
|
-
return
|
|
2358
|
+
return ir(e, t?.[2]);
|
|
2360
2359
|
case Ke.Lower:
|
|
2361
|
-
return
|
|
2360
|
+
return ur(e, t?.[2]);
|
|
2362
2361
|
case Ke.LowerOrEqual:
|
|
2363
|
-
return
|
|
2362
|
+
return dr(e, t?.[2]);
|
|
2364
2363
|
case Ke.Between:
|
|
2365
|
-
return
|
|
2364
|
+
return cr(e, t?.[2]);
|
|
2366
2365
|
case Ke.StartWith:
|
|
2367
|
-
return
|
|
2366
|
+
return fr(e, t?.[2]);
|
|
2368
2367
|
case Ke.EndWith:
|
|
2369
|
-
return
|
|
2368
|
+
return pr(e, t?.[2]);
|
|
2370
2369
|
case Ke.Contain:
|
|
2371
|
-
return
|
|
2370
|
+
return mr(e, t?.[2]);
|
|
2372
2371
|
case Ke.In:
|
|
2373
|
-
return
|
|
2372
|
+
return vr(e, t?.[2]);
|
|
2374
2373
|
case Ke.NotIn:
|
|
2375
|
-
return
|
|
2374
|
+
return hr(e, t?.[2]);
|
|
2376
2375
|
default:
|
|
2377
2376
|
return !0;
|
|
2378
2377
|
}
|
|
2379
|
-
},
|
|
2378
|
+
}, gr = /* @__PURE__ */ oe({
|
|
2380
2379
|
__name: "vs-input-container",
|
|
2381
2380
|
props: {
|
|
2382
2381
|
style: {
|
|
@@ -2406,7 +2405,7 @@ const Fo = /* @__PURE__ */ fe(Eo, [["render", jo]]), Oo = { class: "flex flex-co
|
|
|
2406
2405
|
if (!f) return !0;
|
|
2407
2406
|
const m = Array.isArray(f) ? f[0] : f, v = t.name ? l.value?.[t.name]?.[m] ?? l.value?.[m] : l.value?.[m];
|
|
2408
2407
|
return Al(v, f);
|
|
2409
|
-
})), a = w(() =>
|
|
2408
|
+
})), a = w(() => ar[t.view]), s = w(() => {
|
|
2410
2409
|
if (l.value || (l.value = {}), !t.name) return l.value;
|
|
2411
2410
|
const i = l.value[t.name];
|
|
2412
2411
|
if (i) return i;
|
|
@@ -2416,12 +2415,12 @@ const Fo = /* @__PURE__ */ fe(Eo, [["render", jo]]), Oo = { class: "flex flex-co
|
|
|
2416
2415
|
[t.name]: f
|
|
2417
2416
|
}, f;
|
|
2418
2417
|
});
|
|
2419
|
-
return (i, f) => e.schema?.length ? (d(), ge(
|
|
2418
|
+
return (i, f) => e.schema?.length ? (d(), ge(rt(a.value), {
|
|
2420
2419
|
key: 0,
|
|
2421
2420
|
title: e.title,
|
|
2422
2421
|
style: Ae(e.style)
|
|
2423
2422
|
}, {
|
|
2424
|
-
default:
|
|
2423
|
+
default: Re(() => [
|
|
2425
2424
|
(d(!0), p(ve, null, Ve(r.value, (m) => (d(), ge(El, lt({
|
|
2426
2425
|
key: m.name
|
|
2427
2426
|
}, { ref_for: !0 }, m, {
|
|
@@ -2429,22 +2428,22 @@ const Fo = /* @__PURE__ */ fe(Eo, [["render", jo]]), Oo = { class: "flex flex-co
|
|
|
2429
2428
|
modelValue: s.value[m.name],
|
|
2430
2429
|
"onUpdate:modelValue": (v) => s.value[m.name] = v,
|
|
2431
2430
|
style: e.style,
|
|
2432
|
-
error:
|
|
2431
|
+
error: _e(n)?.errors?.[m.name]
|
|
2433
2432
|
}), null, 16, ["item", "modelValue", "onUpdate:modelValue", "style", "error"]))), 128))
|
|
2434
2433
|
]),
|
|
2435
2434
|
_: 1
|
|
2436
2435
|
}, 8, ["title", "style"])) : R("", !0);
|
|
2437
2436
|
}
|
|
2438
|
-
}),
|
|
2437
|
+
}), yr = ["aria-expanded", "data-focus"], br = { class: "flex flex-1 items-center gap-1 py-0.5 pl-2 pr-0 overflow-hidden h-full" }, wr = {
|
|
2439
2438
|
key: 0,
|
|
2440
2439
|
class: "flex flex-nowrap items-center gap-1 overflow-x-auto overflow-y-hidden min-w-0 flex-1 py-0.5"
|
|
2441
|
-
},
|
|
2440
|
+
}, xr = { class: "flex items-center min-w-0" }, kr = ["title"], _r = ["innerHTML"], $r = ["onClick"], Cr = { class: "flex-1 min-w-[2px]" }, Vr = ["placeholder"], Lr = ["title"], Mr = ["innerHTML"], Sr = {
|
|
2442
2441
|
key: 2,
|
|
2443
2442
|
class: "flex-1 min-w-[2px]"
|
|
2444
|
-
},
|
|
2443
|
+
}, Dr = ["placeholder"], Br = { class: "flex items-center shrink-0" }, Ar = ["disabled"], Tr = ["disabled", "title"], Er = ["aria-disabled", "onClick"], Ir = ["innerHTML"], jr = {
|
|
2445
2444
|
key: 1,
|
|
2446
2445
|
class: "px-3 py-2 text-center text-gray-500"
|
|
2447
|
-
},
|
|
2446
|
+
}, Fr = ["disabled"], pl = /* @__PURE__ */ oe({
|
|
2448
2447
|
__name: "vs-input-select",
|
|
2449
2448
|
props: {
|
|
2450
2449
|
multiple: { type: Boolean, default: !1 },
|
|
@@ -2620,7 +2619,7 @@ const Fo = /* @__PURE__ */ fe(Eo, [["render", jo]]), Oo = { class: "flex flex-co
|
|
|
2620
2619
|
r.value ? (X(A.id) || (S.value = [...S.value, A.id], s.value = [...S.value], n("change", s.value), ie(A)), C.value = "", Oe(() => {
|
|
2621
2620
|
h.value?.focus(), b.value = Math.min(b.value, H.value.length - 1);
|
|
2622
2621
|
}), me(null)) : (y.value = A, s.value = A.id, n("change", s.value), ie(A), C.value = "", Fe(), me(A));
|
|
2623
|
-
},
|
|
2622
|
+
}, ke = (A) => {
|
|
2624
2623
|
if (X(A.id)) {
|
|
2625
2624
|
r.value || Fe();
|
|
2626
2625
|
return;
|
|
@@ -2677,7 +2676,7 @@ const Fo = /* @__PURE__ */ fe(Eo, [["render", jo]]), Oo = { class: "flex flex-co
|
|
|
2677
2676
|
const c = H.value[b.value];
|
|
2678
2677
|
c && ce(c), h.value?.blur();
|
|
2679
2678
|
} else u === "Escape" ? (A.preventDefault(), Fe()) : u === "Backspace" ? r.value && C.value === "" && S.value.length && (S.value = S.value.slice(0, -1), s.value = [...S.value], n("change", s.value)) : u === "Home" ? (b.value = 0, Se(x.value[0], m.value)) : u === "End" ? (b.value = H.value.length - 1, Se(x.value[b.value], m.value)) : u === "Tab" && Fe();
|
|
2680
|
-
},
|
|
2679
|
+
}, Ne = () => {
|
|
2681
2680
|
a.value || (L.value = !0);
|
|
2682
2681
|
}, pt = () => {
|
|
2683
2682
|
L.value = !1, C.value = "";
|
|
@@ -2709,7 +2708,7 @@ const Fo = /* @__PURE__ */ fe(Eo, [["render", jo]]), Oo = { class: "flex flex-co
|
|
|
2709
2708
|
}
|
|
2710
2709
|
se(s, () => {
|
|
2711
2710
|
Ye();
|
|
2712
|
-
}),
|
|
2711
|
+
}), Ue(async () => {
|
|
2713
2712
|
addEventListener("keydown", nt), addEventListener("scroll", at, !0), addEventListener("resize", mt), document.addEventListener("click", Vt, !0), f.value && D(f.value).addEventListener("scroll", ot, !0), l.options?.length && !l.data ? B.value = [...l.options] : l.data && (B.value = await z("")), await Ye(), Mt.value = !1;
|
|
2714
2713
|
}), $t(() => {
|
|
2715
2714
|
removeEventListener("keydown", nt), removeEventListener("scroll", at, !0), removeEventListener("resize", mt), document.removeEventListener("click", Vt, !0), f.value && D(f.value).removeEventListener("scroll", ot, !0);
|
|
@@ -2757,7 +2756,7 @@ const Fo = /* @__PURE__ */ fe(Eo, [["render", jo]]), Oo = { class: "flex flex-co
|
|
|
2757
2756
|
A && ce(A);
|
|
2758
2757
|
}
|
|
2759
2758
|
}), (A, u) => (d(), p(ve, null, [
|
|
2760
|
-
le(
|
|
2759
|
+
le(_e($l), {
|
|
2761
2760
|
visible: Qe.value,
|
|
2762
2761
|
"onUpdate:visible": u[1] || (u[1] = (c) => Qe.value = c),
|
|
2763
2762
|
class: "z-[1000]",
|
|
@@ -2766,7 +2765,7 @@ const Fo = /* @__PURE__ */ fe(Eo, [["render", jo]]), Oo = { class: "flex flex-co
|
|
|
2766
2765
|
onDone: Ht,
|
|
2767
2766
|
teleport: A.teleport
|
|
2768
2767
|
}, {
|
|
2769
|
-
default:
|
|
2768
|
+
default: Re(() => [
|
|
2770
2769
|
le(it, {
|
|
2771
2770
|
schema: Lt.value,
|
|
2772
2771
|
modelValue: vt.value,
|
|
@@ -2814,13 +2813,13 @@ const Fo = /* @__PURE__ */ fe(Eo, [["render", jo]]), Oo = { class: "flex flex-co
|
|
|
2814
2813
|
ref_key: "triggerRef",
|
|
2815
2814
|
ref: f
|
|
2816
2815
|
}, [
|
|
2817
|
-
o("div",
|
|
2818
|
-
r.value ? (d(), p("div",
|
|
2816
|
+
o("div", br, [
|
|
2817
|
+
r.value ? (d(), p("div", wr, [
|
|
2819
2818
|
(d(!0), p(ve, null, Ve(I.value, (c) => (d(), p("div", {
|
|
2820
2819
|
class: "flex min-w-0 bg-[rgb(230,230,230)] rounded-[2px] m-[2px] box-border max-w-full",
|
|
2821
2820
|
key: c.id
|
|
2822
2821
|
}, [
|
|
2823
|
-
o("div",
|
|
2822
|
+
o("div", xr, [
|
|
2824
2823
|
c?.color ? (d(), p("span", {
|
|
2825
2824
|
key: 0,
|
|
2826
2825
|
class: "w-[16px] h-[16px] rounded-md block ml-1.5 flex-shrink-0",
|
|
@@ -2833,16 +2832,16 @@ const Fo = /* @__PURE__ */ fe(Eo, [["render", jo]]), Oo = { class: "flex flex-co
|
|
|
2833
2832
|
j.value ? (d(), p("span", {
|
|
2834
2833
|
key: 0,
|
|
2835
2834
|
innerHTML: ne(c)
|
|
2836
|
-
}, null, 8,
|
|
2835
|
+
}, null, 8, _r)) : (d(), p(ve, { key: 1 }, [
|
|
2837
2836
|
Ee(te(c.text), 1)
|
|
2838
2837
|
], 64))
|
|
2839
|
-
], 8,
|
|
2838
|
+
], 8, kr)
|
|
2840
2839
|
]),
|
|
2841
2840
|
o("div", {
|
|
2842
2841
|
role: "button",
|
|
2843
2842
|
class: "flex items-center rounded-sm px-1 box-border text-[#172b4d] hover:bg-[rgb(255,189,173)] hover:text-[rgb(222,53,11)] flex-shrink-0",
|
|
2844
2843
|
onClick: Le(($) => Z(c.id), ["stop"])
|
|
2845
|
-
},
|
|
2844
|
+
}, u[6] || (u[6] = [
|
|
2846
2845
|
o("svg", {
|
|
2847
2846
|
height: "14",
|
|
2848
2847
|
width: "14",
|
|
@@ -2853,9 +2852,9 @@ const Fo = /* @__PURE__ */ fe(Eo, [["render", jo]]), Oo = { class: "flex flex-co
|
|
|
2853
2852
|
}, [
|
|
2854
2853
|
o("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" })
|
|
2855
2854
|
], -1)
|
|
2856
|
-
])
|
|
2855
|
+
]), 8, $r)
|
|
2857
2856
|
]))), 128)),
|
|
2858
|
-
o("div",
|
|
2857
|
+
o("div", Cr, [
|
|
2859
2858
|
!a.value && A.search ? we((d(), p("input", {
|
|
2860
2859
|
key: 0,
|
|
2861
2860
|
ref_key: "inputRef",
|
|
@@ -2870,10 +2869,10 @@ const Fo = /* @__PURE__ */ fe(Eo, [["render", jo]]), Oo = { class: "flex flex-co
|
|
|
2870
2869
|
"aria-autocomplete": "list",
|
|
2871
2870
|
placeholder: S.value.length ? " " : M.value,
|
|
2872
2871
|
"onUpdate:modelValue": u[2] || (u[2] = (c) => C.value = c),
|
|
2873
|
-
onFocus:
|
|
2872
|
+
onFocus: Ne,
|
|
2874
2873
|
onBlur: pt,
|
|
2875
2874
|
onKeydown: he
|
|
2876
|
-
}, null, 40,
|
|
2875
|
+
}, null, 40, Vr)), [
|
|
2877
2876
|
[je, C.value]
|
|
2878
2877
|
]) : R("", !0)
|
|
2879
2878
|
])
|
|
@@ -2891,12 +2890,12 @@ const Fo = /* @__PURE__ */ fe(Eo, [["render", jo]]), Oo = { class: "flex flex-co
|
|
|
2891
2890
|
key: 1,
|
|
2892
2891
|
class: G({ "pl-5": y.value?.color }),
|
|
2893
2892
|
innerHTML: ne(y.value)
|
|
2894
|
-
}, null, 10,
|
|
2893
|
+
}, null, 10, Mr)) : (d(), p("span", {
|
|
2895
2894
|
key: 2,
|
|
2896
2895
|
class: G({ "pl-5": y.value?.color })
|
|
2897
2896
|
}, te(y.value?.text), 3))
|
|
2898
|
-
], 8,
|
|
2899
|
-
r.value ? R("", !0) : (d(), p("div",
|
|
2897
|
+
], 8, Lr)) : R("", !0),
|
|
2898
|
+
r.value ? R("", !0) : (d(), p("div", Sr, [
|
|
2900
2899
|
!a.value && A.search ? we((d(), p("input", {
|
|
2901
2900
|
key: 0,
|
|
2902
2901
|
ref_key: "inputRef",
|
|
@@ -2911,15 +2910,15 @@ const Fo = /* @__PURE__ */ fe(Eo, [["render", jo]]), Oo = { class: "flex flex-co
|
|
|
2911
2910
|
"aria-autocomplete": "list",
|
|
2912
2911
|
placeholder: T.value ? " " : M.value,
|
|
2913
2912
|
"onUpdate:modelValue": u[3] || (u[3] = (c) => C.value = c),
|
|
2914
|
-
onFocus:
|
|
2913
|
+
onFocus: Ne,
|
|
2915
2914
|
onBlur: pt,
|
|
2916
2915
|
onKeydown: he
|
|
2917
|
-
}, null, 40,
|
|
2916
|
+
}, null, 40, Dr)), [
|
|
2918
2917
|
[je, C.value]
|
|
2919
2918
|
]) : R("", !0)
|
|
2920
2919
|
]))
|
|
2921
2920
|
]),
|
|
2922
|
-
o("div",
|
|
2921
|
+
o("div", Br, [
|
|
2923
2922
|
Y.value ? (d(), p("button", {
|
|
2924
2923
|
key: 0,
|
|
2925
2924
|
type: "button",
|
|
@@ -2927,7 +2926,7 @@ const Fo = /* @__PURE__ */ fe(Eo, [["render", jo]]), Oo = { class: "flex flex-co
|
|
|
2927
2926
|
"aria-hidden": "true",
|
|
2928
2927
|
disabled: a.value,
|
|
2929
2928
|
onClick: Le(q, ["stop"])
|
|
2930
|
-
},
|
|
2929
|
+
}, u[7] || (u[7] = [
|
|
2931
2930
|
o("svg", {
|
|
2932
2931
|
height: "20",
|
|
2933
2932
|
width: "20",
|
|
@@ -2936,7 +2935,7 @@ const Fo = /* @__PURE__ */ fe(Eo, [["render", jo]]), Oo = { class: "flex flex-co
|
|
|
2936
2935
|
}, [
|
|
2937
2936
|
o("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" })
|
|
2938
2937
|
], -1)
|
|
2939
|
-
])
|
|
2938
|
+
]), 8, Ar)) : R("", !0),
|
|
2940
2939
|
u[9] || (u[9] = o("div", { class: "self-stretch w-px bg-[#ccc] my-[1px]" }, null, -1)),
|
|
2941
2940
|
o("button", {
|
|
2942
2941
|
type: "button",
|
|
@@ -2945,7 +2944,7 @@ const Fo = /* @__PURE__ */ fe(Eo, [["render", jo]]), Oo = { class: "flex flex-co
|
|
|
2945
2944
|
disabled: a.value,
|
|
2946
2945
|
onClick: u[4] || (u[4] = Le((c) => We(), ["stop"])),
|
|
2947
2946
|
title: g.value ? "Закрити список" : "Відкрити список"
|
|
2948
|
-
},
|
|
2947
|
+
}, u[8] || (u[8] = [
|
|
2949
2948
|
o("svg", {
|
|
2950
2949
|
height: "20",
|
|
2951
2950
|
width: "20",
|
|
@@ -2954,9 +2953,9 @@ const Fo = /* @__PURE__ */ fe(Eo, [["render", jo]]), Oo = { class: "flex flex-co
|
|
|
2954
2953
|
}, [
|
|
2955
2954
|
o("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" })
|
|
2956
2955
|
], -1)
|
|
2957
|
-
])
|
|
2956
|
+
]), 8, Tr)
|
|
2958
2957
|
])
|
|
2959
|
-
], 42,
|
|
2958
|
+
], 42, yr),
|
|
2960
2959
|
(d(), ge(wt, { to: "body" }, [
|
|
2961
2960
|
g.value ? (d(), p("div", {
|
|
2962
2961
|
key: 0,
|
|
@@ -2986,7 +2985,7 @@ const Fo = /* @__PURE__ */ fe(Eo, [["render", jo]]), Oo = { class: "flex flex-co
|
|
|
2986
2985
|
"aria-disabled": X(c.id) ? "true" : "false",
|
|
2987
2986
|
role: "option",
|
|
2988
2987
|
tabindex: "-1",
|
|
2989
|
-
onClick: (E) =>
|
|
2988
|
+
onClick: (E) => ke(c)
|
|
2990
2989
|
}, [
|
|
2991
2990
|
c?.color ? (d(), p("span", {
|
|
2992
2991
|
key: 0,
|
|
@@ -3004,11 +3003,11 @@ const Fo = /* @__PURE__ */ fe(Eo, [["render", jo]]), Oo = { class: "flex flex-co
|
|
|
3004
3003
|
j.value ? (d(), p("span", {
|
|
3005
3004
|
key: 0,
|
|
3006
3005
|
innerHTML: ne(c)
|
|
3007
|
-
}, null, 8,
|
|
3006
|
+
}, null, 8, Ir)) : (d(), p(ve, { key: 1 }, [
|
|
3008
3007
|
Ee(te(c.text), 1)
|
|
3009
3008
|
], 64))
|
|
3010
3009
|
], 2)
|
|
3011
|
-
], 10,
|
|
3010
|
+
], 10, Er))), 128)) : (d(), p("div", jr, " No options "))
|
|
3012
3011
|
], 4)
|
|
3013
3012
|
], 4)) : R("", !0)
|
|
3014
3013
|
]))
|
|
@@ -3025,13 +3024,13 @@ const Fo = /* @__PURE__ */ fe(Eo, [["render", jo]]), Oo = { class: "flex flex-co
|
|
|
3025
3024
|
height: "16"
|
|
3026
3025
|
}),
|
|
3027
3026
|
u[12] || (u[12] = o("span", null, "Додати", -1))
|
|
3028
|
-
], 8,
|
|
3027
|
+
], 8, Fr)) : R("", !0)
|
|
3029
3028
|
], 512)
|
|
3030
3029
|
], 64));
|
|
3031
3030
|
}
|
|
3032
|
-
}),
|
|
3031
|
+
}), Or = ["placeholder", "disabled"], zr = /* @__PURE__ */ oe({
|
|
3033
3032
|
__name: "vs-input-textarea",
|
|
3034
|
-
props: /* @__PURE__ */
|
|
3033
|
+
props: /* @__PURE__ */ xe({
|
|
3035
3034
|
style: { default: () => ({}) },
|
|
3036
3035
|
customClass: { default: "" },
|
|
3037
3036
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -3057,17 +3056,20 @@ const Fo = /* @__PURE__ */ fe(Eo, [["render", jo]]), Oo = { class: "flex flex-co
|
|
|
3057
3056
|
disabled: r.value,
|
|
3058
3057
|
row: "2",
|
|
3059
3058
|
onBlur: s,
|
|
3060
|
-
class: G(["py-1.5 px-3 block w-full placeholder:text[#767f8f] h-auto bg-white", [
|
|
3059
|
+
class: G(["py-1.5 px-3 block w-full placeholder:text[#767f8f] h-auto bg-white", [_e(l)]]),
|
|
3061
3060
|
style: {
|
|
3062
3061
|
border: "1px solid #CFD9E0"
|
|
3063
3062
|
}
|
|
3064
|
-
}, null, 42,
|
|
3063
|
+
}, null, 42, Or)), [
|
|
3065
3064
|
[je, n.value]
|
|
3066
3065
|
]);
|
|
3067
3066
|
}
|
|
3068
|
-
}),
|
|
3067
|
+
}), Pr = {
|
|
3068
|
+
key: 1,
|
|
3069
|
+
class: "richtext-error"
|
|
3070
|
+
}, Ur = /* @__PURE__ */ oe({
|
|
3069
3071
|
__name: "vs-input-richtext",
|
|
3070
|
-
props: /* @__PURE__ */
|
|
3072
|
+
props: /* @__PURE__ */ xe({
|
|
3071
3073
|
style: { default: () => ({}) },
|
|
3072
3074
|
customClass: { default: "" },
|
|
3073
3075
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -3084,19 +3086,32 @@ const Fo = /* @__PURE__ */ fe(Eo, [["render", jo]]), Oo = { class: "flex flex-co
|
|
|
3084
3086
|
}),
|
|
3085
3087
|
emits: ["update:modelValue"],
|
|
3086
3088
|
setup(e) {
|
|
3087
|
-
const t =
|
|
3089
|
+
const t = V(null);
|
|
3090
|
+
Ue(async () => {
|
|
3091
|
+
try {
|
|
3092
|
+
const m = await new Function("specifier", "return import(specifier)")("@opengis/richtext");
|
|
3093
|
+
t.value = m.VsRichtext;
|
|
3094
|
+
} catch {
|
|
3095
|
+
console.warn("@opengis/richtext is not installed. Please install it to use richtext input.");
|
|
3096
|
+
}
|
|
3097
|
+
});
|
|
3098
|
+
const l = e, { inputClass: n } = He(l.style), r = Ce(e, "modelValue"), a = w(() => !!l.disabled), s = w(() => l.placeholder ?? ""), i = w(() => ({
|
|
3088
3099
|
height: "300px",
|
|
3089
|
-
...
|
|
3100
|
+
...l.richtextProps
|
|
3090
3101
|
}));
|
|
3091
|
-
return (
|
|
3092
|
-
class: G(["richtext-wrapper !h-full !border-transparent", [
|
|
3093
|
-
style: Ae(
|
|
3102
|
+
return (f, m) => (d(), p("div", {
|
|
3103
|
+
class: G(["richtext-wrapper !h-full !border-transparent", [f.customClass, _e(n), { "richtext-disabled": a.value }]]),
|
|
3104
|
+
style: Ae(a.value ? { pointerEvents: "none", opacity: 0.6 } : {})
|
|
3094
3105
|
}, [
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3106
|
+
t.value ? (d(), ge(rt(t.value), lt({
|
|
3107
|
+
key: 0,
|
|
3108
|
+
modelValue: r.value,
|
|
3109
|
+
"onUpdate:modelValue": m[0] || (m[0] = (v) => r.value = v),
|
|
3110
|
+
placeholder: s.value
|
|
3111
|
+
}, i.value), null, 16, ["modelValue", "placeholder"])) : (d(), p("div", Pr, m[1] || (m[1] = [
|
|
3112
|
+
o("p", null, "@opengis/richtext package is not installed.", -1),
|
|
3113
|
+
o("p", null, "Please install it: npm install @opengis/richtext", -1)
|
|
3114
|
+
])))
|
|
3100
3115
|
], 6));
|
|
3101
3116
|
}
|
|
3102
3117
|
}), Nr = {}, Rr = {
|
|
@@ -3110,7 +3125,7 @@ const Fo = /* @__PURE__ */ fe(Eo, [["render", jo]]), Oo = { class: "flex flex-co
|
|
|
3110
3125
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-search stroke-gray-500 transition-all"
|
|
3111
3126
|
};
|
|
3112
3127
|
function Hr(e, t) {
|
|
3113
|
-
return d(), p("svg", Rr,
|
|
3128
|
+
return d(), p("svg", Rr, t[0] || (t[0] = [
|
|
3114
3129
|
o("path", {
|
|
3115
3130
|
stroke: "none",
|
|
3116
3131
|
d: "M0 0h24v24H0z",
|
|
@@ -3118,7 +3133,7 @@ function Hr(e, t) {
|
|
|
3118
3133
|
}, null, -1),
|
|
3119
3134
|
o("path", { d: "M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0" }, null, -1),
|
|
3120
3135
|
o("path", { d: "M21 21l-6 -6" }, null, -1)
|
|
3121
|
-
])
|
|
3136
|
+
]));
|
|
3122
3137
|
}
|
|
3123
3138
|
const qr = /* @__PURE__ */ fe(Nr, [["render", Hr]]), Gr = {}, Kr = {
|
|
3124
3139
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3132,7 +3147,7 @@ const qr = /* @__PURE__ */ fe(Nr, [["render", Hr]]), Gr = {}, Kr = {
|
|
|
3132
3147
|
"stroke-linejoin": "round"
|
|
3133
3148
|
};
|
|
3134
3149
|
function Wr(e, t) {
|
|
3135
|
-
return d(), p("svg", Kr,
|
|
3150
|
+
return d(), p("svg", Kr, t[0] || (t[0] = [
|
|
3136
3151
|
o("path", {
|
|
3137
3152
|
stroke: "none",
|
|
3138
3153
|
d: "M0 0h24v24H0z",
|
|
@@ -3141,7 +3156,7 @@ function Wr(e, t) {
|
|
|
3141
3156
|
o("path", { d: "M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2" }, null, -1),
|
|
3142
3157
|
o("path", { d: "M7 9l5 -5l5 5" }, null, -1),
|
|
3143
3158
|
o("path", { d: "M12 4l0 12" }, null, -1)
|
|
3144
|
-
])
|
|
3159
|
+
]));
|
|
3145
3160
|
}
|
|
3146
3161
|
const Yr = /* @__PURE__ */ fe(Gr, [["render", Wr]]), Zr = {}, Jr = {
|
|
3147
3162
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3153,7 +3168,7 @@ const Yr = /* @__PURE__ */ fe(Gr, [["render", Wr]]), Zr = {}, Jr = {
|
|
|
3153
3168
|
"stroke-linejoin": "round"
|
|
3154
3169
|
};
|
|
3155
3170
|
function Xr(e, t) {
|
|
3156
|
-
return d(), p("svg", Jr,
|
|
3171
|
+
return d(), p("svg", Jr, t[0] || (t[0] = [
|
|
3157
3172
|
o("path", {
|
|
3158
3173
|
stroke: "none",
|
|
3159
3174
|
d: "M0 0h24v24H0z",
|
|
@@ -3162,7 +3177,7 @@ function Xr(e, t) {
|
|
|
3162
3177
|
o("path", { d: "M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2" }, null, -1),
|
|
3163
3178
|
o("path", { d: "M7 11l5 5l5 -5" }, null, -1),
|
|
3164
3179
|
o("path", { d: "M12 4l0 12" }, null, -1)
|
|
3165
|
-
])
|
|
3180
|
+
]));
|
|
3166
3181
|
}
|
|
3167
3182
|
const Qr = /* @__PURE__ */ fe(Zr, [["render", Xr]]), es = {}, ts = {
|
|
3168
3183
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3174,9 +3189,9 @@ const Qr = /* @__PURE__ */ fe(Zr, [["render", Xr]]), es = {}, ts = {
|
|
|
3174
3189
|
"stroke-linejoin": "round"
|
|
3175
3190
|
};
|
|
3176
3191
|
function ls(e, t) {
|
|
3177
|
-
return d(), p("svg", ts,
|
|
3192
|
+
return d(), p("svg", ts, t[0] || (t[0] = [
|
|
3178
3193
|
Ge('<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)
|
|
3179
|
-
])
|
|
3194
|
+
]));
|
|
3180
3195
|
}
|
|
3181
3196
|
const Ot = /* @__PURE__ */ fe(es, [["render", ls]]), ns = {}, as = {
|
|
3182
3197
|
viewBox: "0 0 178 90",
|
|
@@ -3184,9 +3199,9 @@ const Ot = /* @__PURE__ */ fe(es, [["render", ls]]), ns = {}, as = {
|
|
|
3184
3199
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3185
3200
|
};
|
|
3186
3201
|
function os(e, t) {
|
|
3187
|
-
return d(), p("svg", as,
|
|
3202
|
+
return d(), p("svg", as, t[0] || (t[0] = [
|
|
3188
3203
|
Ge('<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)
|
|
3189
|
-
])
|
|
3204
|
+
]));
|
|
3190
3205
|
}
|
|
3191
3206
|
const rs = /* @__PURE__ */ fe(ns, [["render", os]]), ss = {}, is = {
|
|
3192
3207
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3198,9 +3213,9 @@ const rs = /* @__PURE__ */ fe(ns, [["render", os]]), ss = {}, is = {
|
|
|
3198
3213
|
"stroke-linejoin": "round"
|
|
3199
3214
|
};
|
|
3200
3215
|
function us(e, t) {
|
|
3201
|
-
return d(), p("svg", is,
|
|
3216
|
+
return d(), p("svg", is, t[0] || (t[0] = [
|
|
3202
3217
|
o("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)
|
|
3203
|
-
])
|
|
3218
|
+
]));
|
|
3204
3219
|
}
|
|
3205
3220
|
const ds = /* @__PURE__ */ fe(ss, [["render", us]]), cs = { class: "bg-white rounded-lg shadow-sm border border-gray-200 overflow-hidden flex flex-col" }, fs = { class: "flex flex-col gap-2 !p-4 border-b border-gray-200 sm:flex-row sm:items-center sm:justify-between bg-gray-50" }, ps = { class: "relative w-full" }, ms = { class: "flex flex-nowrap items-center justify-end gap-2 w-full overflow-x-auto" }, vs = { class: "w-full overflow-x-auto" }, hs = { class: "w-full min-w-[640px] divide-y divide-gray-200" }, gs = { class: "bg-gray-50" }, ys = { class: "border-b border-gray-200" }, bs = { class: "px-4 py-3 text-left text-xs font-semibold text-gray-900 w-12 text-center" }, ws = ["onClick"], xs = {
|
|
3206
3221
|
key: 0,
|
|
@@ -3223,7 +3238,7 @@ const ds = /* @__PURE__ */ fe(ss, [["render", us]]), cs = { class: "bg-white rou
|
|
|
3223
3238
|
class: "text-sm font-medium text-gray-900"
|
|
3224
3239
|
}, Is = { class: "px-4 py-3 text-right" }, js = { class: "flex items-center justify-end gap-2" }, Fs = ["onClick"], Os = ["onClick"], zs = { class: "vs-form__head mr-5 mt-3 flex items-center justify-end sticky top-0 left-0 z-[60] bg-white" }, Ps = /* @__PURE__ */ oe({
|
|
3225
3240
|
__name: "vs-input-datatable",
|
|
3226
|
-
props: /* @__PURE__ */
|
|
3241
|
+
props: /* @__PURE__ */ xe({
|
|
3227
3242
|
colModel: {},
|
|
3228
3243
|
style: {},
|
|
3229
3244
|
customClass: {},
|
|
@@ -3241,15 +3256,15 @@ const ds = /* @__PURE__ */ fe(ss, [["render", us]]), cs = { class: "bg-white rou
|
|
|
3241
3256
|
emits: ["update:modelValue"],
|
|
3242
3257
|
setup(e) {
|
|
3243
3258
|
const t = e, l = Ul(), n = Ce(e, "modelValue"), r = V({}), a = V(""), s = V(null), i = V("asc"), f = w(() => {
|
|
3244
|
-
const F = n.value ?? [], q = a.value ? F.filter((ce) => t.colModel?.some((
|
|
3245
|
-
const Se =
|
|
3259
|
+
const F = n.value ?? [], q = a.value ? F.filter((ce) => t.colModel?.some((ke) => {
|
|
3260
|
+
const Se = ke.key || ke.name;
|
|
3246
3261
|
if (!Se) return !1;
|
|
3247
3262
|
const D = ce[Se];
|
|
3248
3263
|
return D ? Array.isArray(D) ? D.join(", ").toLowerCase().includes(a.value.toLowerCase()) : String(D).toLowerCase().includes(a.value.toLowerCase()) : !1;
|
|
3249
3264
|
})) : F;
|
|
3250
3265
|
if (!s.value) return q;
|
|
3251
|
-
const Z = s.value, ie = [...q].sort((ce,
|
|
3252
|
-
const Se = me(ce?.[Z]), D = me(
|
|
3266
|
+
const Z = s.value, ie = [...q].sort((ce, ke) => {
|
|
3267
|
+
const Se = me(ce?.[Z]), D = me(ke?.[Z]);
|
|
3253
3268
|
return typeof Se == "number" && typeof D == "number" ? Se - D : String(Se).localeCompare(String(D));
|
|
3254
3269
|
});
|
|
3255
3270
|
return i.value === "asc" ? ie : ie.reverse();
|
|
@@ -3275,13 +3290,13 @@ const ds = /* @__PURE__ */ fe(ss, [["render", us]]), cs = { class: "bg-white rou
|
|
|
3275
3290
|
const ie = new FileReader();
|
|
3276
3291
|
ie.onload = (ce) => {
|
|
3277
3292
|
try {
|
|
3278
|
-
const
|
|
3279
|
-
if (typeof
|
|
3280
|
-
const Se = JSON.parse(
|
|
3293
|
+
const ke = ce.target?.result;
|
|
3294
|
+
if (typeof ke == "string") {
|
|
3295
|
+
const Se = JSON.parse(ke);
|
|
3281
3296
|
Array.isArray(Se) && n.value.push(...Se);
|
|
3282
3297
|
}
|
|
3283
|
-
} catch (
|
|
3284
|
-
console.error("Error parsing file:",
|
|
3298
|
+
} catch (ke) {
|
|
3299
|
+
console.error("Error parsing file:", ke);
|
|
3285
3300
|
}
|
|
3286
3301
|
}, ie.readAsText(Z);
|
|
3287
3302
|
}, h = () => {
|
|
@@ -3302,8 +3317,8 @@ const ds = /* @__PURE__ */ fe(ss, [["render", us]]), cs = { class: "bg-white rou
|
|
|
3302
3317
|
const ie = Z?.[F];
|
|
3303
3318
|
if (ie == null || ie === "") return;
|
|
3304
3319
|
if (Array.isArray(ie)) {
|
|
3305
|
-
ie.forEach((
|
|
3306
|
-
const Se = I(
|
|
3320
|
+
ie.forEach((ke) => {
|
|
3321
|
+
const Se = I(ke);
|
|
3307
3322
|
Se !== null && q.add(Se);
|
|
3308
3323
|
});
|
|
3309
3324
|
return;
|
|
@@ -3317,9 +3332,9 @@ const ds = /* @__PURE__ */ fe(ss, [["render", us]]), cs = { class: "bg-white rou
|
|
|
3317
3332
|
F.length && await Promise.all(F.map(async (q) => {
|
|
3318
3333
|
const Z = q.key || q.name;
|
|
3319
3334
|
if (!Z) return;
|
|
3320
|
-
const ie = M(Z), ce = Array.from(ie).map((D) => String(D)).sort(),
|
|
3321
|
-
if (!ce.length || k.get(Z) ===
|
|
3322
|
-
k.set(Z,
|
|
3335
|
+
const ie = M(Z), ce = Array.from(ie).map((D) => String(D)).sort(), ke = ce.join(",");
|
|
3336
|
+
if (!ce.length || k.get(Z) === ke) return;
|
|
3337
|
+
k.set(Z, ke);
|
|
3323
3338
|
const Se = ce.map(encodeURIComponent).join(",");
|
|
3324
3339
|
try {
|
|
3325
3340
|
const Q = await (await fetch(S(q.data, Se))).json();
|
|
@@ -3385,8 +3400,8 @@ const ds = /* @__PURE__ */ fe(ss, [["render", us]]), cs = { class: "bg-white rou
|
|
|
3385
3400
|
const Se = ie.map((D) => O(ce, D)).filter(Boolean);
|
|
3386
3401
|
return Se.length ? Se.join(", ") : de(ie);
|
|
3387
3402
|
}
|
|
3388
|
-
const
|
|
3389
|
-
return
|
|
3403
|
+
const ke = O(ce, ie);
|
|
3404
|
+
return ke || de(ie);
|
|
3390
3405
|
}
|
|
3391
3406
|
async function $e(F, q) {
|
|
3392
3407
|
Y.value = "Редагувати", X.value = !0, H = "edit", P = q, U.value = { ...F };
|
|
@@ -3588,14 +3603,14 @@ const ds = /* @__PURE__ */ fe(ss, [["render", us]]), cs = { class: "bg-white rou
|
|
|
3588
3603
|
], 2)
|
|
3589
3604
|
])
|
|
3590
3605
|
]),
|
|
3591
|
-
le(
|
|
3606
|
+
le(_e($l), {
|
|
3592
3607
|
visible: X.value,
|
|
3593
3608
|
title: Y.value,
|
|
3594
3609
|
size: "lg",
|
|
3595
3610
|
onClose: We,
|
|
3596
3611
|
teleport: "#modal"
|
|
3597
3612
|
}, {
|
|
3598
|
-
default:
|
|
3613
|
+
default: Re(() => [
|
|
3599
3614
|
le(it, {
|
|
3600
3615
|
schema: J.value,
|
|
3601
3616
|
values: U.value,
|
|
@@ -3738,7 +3753,7 @@ const ds = /* @__PURE__ */ fe(ss, [["render", us]]), cs = { class: "bg-white rou
|
|
|
3738
3753
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-map-pin"
|
|
3739
3754
|
};
|
|
3740
3755
|
function Hs(e, t) {
|
|
3741
|
-
return d(), p("svg", Rs,
|
|
3756
|
+
return d(), p("svg", Rs, t[0] || (t[0] = [
|
|
3742
3757
|
o("path", {
|
|
3743
3758
|
stroke: "none",
|
|
3744
3759
|
d: "M0 0h24v24H0z",
|
|
@@ -3746,7 +3761,7 @@ function Hs(e, t) {
|
|
|
3746
3761
|
}, null, -1),
|
|
3747
3762
|
o("path", { d: "M9 11a3 3 0 1 0 6 0a3 3 0 0 0 -6 0" }, null, -1),
|
|
3748
3763
|
o("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)
|
|
3749
|
-
])
|
|
3764
|
+
]));
|
|
3750
3765
|
}
|
|
3751
3766
|
const qs = /* @__PURE__ */ fe(Ns, [["render", Hs]]), Gs = {}, Ks = {
|
|
3752
3767
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3759,7 +3774,7 @@ const qs = /* @__PURE__ */ fe(Ns, [["render", Hs]]), Gs = {}, Ks = {
|
|
|
3759
3774
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-line"
|
|
3760
3775
|
};
|
|
3761
3776
|
function Ws(e, t) {
|
|
3762
|
-
return d(), p("svg", Ks,
|
|
3777
|
+
return d(), p("svg", Ks, t[0] || (t[0] = [
|
|
3763
3778
|
o("path", {
|
|
3764
3779
|
stroke: "none",
|
|
3765
3780
|
d: "M0 0h24v24H0z",
|
|
@@ -3768,7 +3783,7 @@ function Ws(e, t) {
|
|
|
3768
3783
|
o("path", { d: "M6 18m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" }, null, -1),
|
|
3769
3784
|
o("path", { d: "M18 6m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" }, null, -1),
|
|
3770
3785
|
o("path", { d: "M7.5 16.5l9 -9" }, null, -1)
|
|
3771
|
-
])
|
|
3786
|
+
]));
|
|
3772
3787
|
}
|
|
3773
3788
|
const Ys = /* @__PURE__ */ fe(Gs, [["render", Ws]]), Zs = {}, Js = {
|
|
3774
3789
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3781,9 +3796,9 @@ const Ys = /* @__PURE__ */ fe(Gs, [["render", Ws]]), Zs = {}, Js = {
|
|
|
3781
3796
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-polygon"
|
|
3782
3797
|
};
|
|
3783
3798
|
function Xs(e, t) {
|
|
3784
|
-
return d(), p("svg", Js,
|
|
3799
|
+
return d(), p("svg", Js, t[0] || (t[0] = [
|
|
3785
3800
|
Ge('<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)
|
|
3786
|
-
])
|
|
3801
|
+
]));
|
|
3787
3802
|
}
|
|
3788
3803
|
const Qs = /* @__PURE__ */ fe(Zs, [["render", Xs]]), ei = {}, ti = {
|
|
3789
3804
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3796,9 +3811,9 @@ const Qs = /* @__PURE__ */ fe(Zs, [["render", Xs]]), ei = {}, ti = {
|
|
|
3796
3811
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-topology-ring-3"
|
|
3797
3812
|
};
|
|
3798
3813
|
function li(e, t) {
|
|
3799
|
-
return d(), p("svg", ti,
|
|
3814
|
+
return d(), p("svg", ti, t[0] || (t[0] = [
|
|
3800
3815
|
Ge('<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)
|
|
3801
|
-
])
|
|
3816
|
+
]));
|
|
3802
3817
|
}
|
|
3803
3818
|
const ni = /* @__PURE__ */ fe(ei, [["render", li]]), ai = {}, oi = {
|
|
3804
3819
|
version: "1.1",
|
|
@@ -3809,7 +3824,7 @@ const ni = /* @__PURE__ */ fe(ei, [["render", li]]), ai = {}, oi = {
|
|
|
3809
3824
|
class: "fullscreen-icon"
|
|
3810
3825
|
};
|
|
3811
3826
|
function ri(e, t) {
|
|
3812
|
-
return d(), p("svg", oi,
|
|
3827
|
+
return d(), p("svg", oi, t[0] || (t[0] = [
|
|
3813
3828
|
o("title", null, null, -1),
|
|
3814
3829
|
o("desc", null, null, -1),
|
|
3815
3830
|
o("defs", null, null, -1),
|
|
@@ -3836,7 +3851,7 @@ function ri(e, t) {
|
|
|
3836
3851
|
])
|
|
3837
3852
|
])
|
|
3838
3853
|
], -1)
|
|
3839
|
-
])
|
|
3854
|
+
]));
|
|
3840
3855
|
}
|
|
3841
3856
|
const si = /* @__PURE__ */ fe(ai, [["render", ri]]), ii = { class: "map-search-widget flex flex-col gap-2 rounded-xl widget min-w-[200px]" }, ui = {
|
|
3842
3857
|
key: 0,
|
|
@@ -3867,7 +3882,7 @@ const si = /* @__PURE__ */ fe(ai, [["render", ri]]), ii = { class: "map-search-w
|
|
|
3867
3882
|
const S = v.value;
|
|
3868
3883
|
S && !S.contains(k.target) && (m.value = !1);
|
|
3869
3884
|
}
|
|
3870
|
-
|
|
3885
|
+
Ue(() => {
|
|
3871
3886
|
window.addEventListener("click", L, !0);
|
|
3872
3887
|
}), dt(() => {
|
|
3873
3888
|
window.removeEventListener("click", L, !0);
|
|
@@ -3984,7 +3999,7 @@ const si = /* @__PURE__ */ fe(ai, [["render", ri]]), ii = { class: "map-search-w
|
|
|
3984
3999
|
viewBox: "0 0 24 24",
|
|
3985
4000
|
fill: "none",
|
|
3986
4001
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3987
|
-
},
|
|
4002
|
+
}, S[2] || (S[2] = [
|
|
3988
4003
|
o("path", {
|
|
3989
4004
|
d: "M6 9l6 6 6-6",
|
|
3990
4005
|
stroke: "currentColor",
|
|
@@ -3992,7 +4007,7 @@ const si = /* @__PURE__ */ fe(ai, [["render", ri]]), ii = { class: "map-search-w
|
|
|
3992
4007
|
"stroke-linecap": "round",
|
|
3993
4008
|
"stroke-linejoin": "round"
|
|
3994
4009
|
}, null, -1)
|
|
3995
|
-
])
|
|
4010
|
+
]), 2))
|
|
3996
4011
|
]),
|
|
3997
4012
|
m.value ? (d(), p("div", ui, [
|
|
3998
4013
|
o("ul", null, [
|
|
@@ -4042,7 +4057,7 @@ const si = /* @__PURE__ */ fe(ai, [["render", ri]]), ii = { class: "map-search-w
|
|
|
4042
4057
|
], 32)
|
|
4043
4058
|
]));
|
|
4044
4059
|
}
|
|
4045
|
-
}), hi = /* @__PURE__ */ fe(vi, [["__scopeId", "data-v-
|
|
4060
|
+
}), hi = /* @__PURE__ */ fe(vi, [["__scopeId", "data-v-b5059a01"]]), gi = { class: "bg-white/30 p-1 rounded-md shadow w-fit" }, yi = { class: "flex gap-2" }, bi = ["onClick", "title"], wi = ["src"], xi = /* @__PURE__ */ oe({
|
|
4046
4061
|
__name: "map-layers",
|
|
4047
4062
|
props: {
|
|
4048
4063
|
basemaps: {}
|
|
@@ -4329,7 +4344,7 @@ ${ue}`, document.head.appendChild(be);
|
|
|
4329
4344
|
if (!z || !c?.latlng) return;
|
|
4330
4345
|
const $ = z.latLngToContainerPoint(c.latlng), E = Z(c), K = ie(u, E);
|
|
4331
4346
|
if (!K.length) {
|
|
4332
|
-
|
|
4347
|
+
ke(u.id);
|
|
4333
4348
|
return;
|
|
4334
4349
|
}
|
|
4335
4350
|
N.value = {
|
|
@@ -4340,7 +4355,7 @@ ${ue}`, document.head.appendChild(be);
|
|
|
4340
4355
|
point: { x: $.x, y: $.y }
|
|
4341
4356
|
};
|
|
4342
4357
|
}
|
|
4343
|
-
function
|
|
4358
|
+
function ke(u) {
|
|
4344
4359
|
u && N.value?.layerId !== u || (N.value = null);
|
|
4345
4360
|
}
|
|
4346
4361
|
function Se(u) {
|
|
@@ -4357,7 +4372,7 @@ ${ue}`, document.head.appendChild(be);
|
|
|
4357
4372
|
default: q(u)
|
|
4358
4373
|
}
|
|
4359
4374
|
});
|
|
4360
|
-
return W?.on?.("mouseover", (ae) => ce(u, ae)), W?.on?.("mousemove", (ae) => ce(u, ae)), W?.on?.("mouseout", () =>
|
|
4375
|
+
return W?.on?.("mouseover", (ae) => ce(u, ae)), W?.on?.("mousemove", (ae) => ce(u, ae)), W?.on?.("mouseout", () => ke(u.id)), W;
|
|
4361
4376
|
}
|
|
4362
4377
|
if (K?.maplibreGL && window?.maplibregl) {
|
|
4363
4378
|
const W = $;
|
|
@@ -4425,13 +4440,13 @@ ${ue}`, document.head.appendChild(be);
|
|
|
4425
4440
|
function he() {
|
|
4426
4441
|
!z || !T.value || H.value.forEach((u) => {
|
|
4427
4442
|
const c = X[u];
|
|
4428
|
-
c && (c.visible ? (c.layer || (c.layer = Se(c.config)), c.boundsLayer || (c.boundsLayer = D(c.config)), c.layer && !z.hasLayer(c.layer) && c.layer.addTo(z), c.boundsLayer && !z.hasLayer(c.boundsLayer) && c.boundsLayer.addTo(z)) : (c.layer && z.hasLayer(c.layer) && z.removeLayer(c.layer), c.boundsLayer && z.hasLayer(c.boundsLayer) && z.removeLayer(c.boundsLayer),
|
|
4443
|
+
c && (c.visible ? (c.layer || (c.layer = Se(c.config)), c.boundsLayer || (c.boundsLayer = D(c.config)), c.layer && !z.hasLayer(c.layer) && c.layer.addTo(z), c.boundsLayer && !z.hasLayer(c.boundsLayer) && c.boundsLayer.addTo(z)) : (c.layer && z.hasLayer(c.layer) && z.removeLayer(c.layer), c.boundsLayer && z.hasLayer(c.boundsLayer) && z.removeLayer(c.boundsLayer), ke(c.id)));
|
|
4429
4444
|
});
|
|
4430
4445
|
}
|
|
4431
|
-
function
|
|
4446
|
+
function Ne(u) {
|
|
4432
4447
|
if (f.value) return;
|
|
4433
4448
|
const c = X[u];
|
|
4434
|
-
c && (c.visible = !c.visible, c.visible ? (c.layer || (c.layer = Se(c.config)), c.boundsLayer || (c.boundsLayer = D(c.config)), c.layer && !z.hasLayer(c.layer) && c.layer.addTo(z), c.boundsLayer && !z.hasLayer(c.boundsLayer) && c.boundsLayer.addTo(z)) : (c.layer && z.hasLayer(c.layer) && z.removeLayer(c.layer), c.boundsLayer && z.hasLayer(c.boundsLayer) && z.removeLayer(c.boundsLayer),
|
|
4449
|
+
c && (c.visible = !c.visible, c.visible ? (c.layer || (c.layer = Se(c.config)), c.boundsLayer || (c.boundsLayer = D(c.config)), c.layer && !z.hasLayer(c.layer) && c.layer.addTo(z), c.boundsLayer && !z.hasLayer(c.boundsLayer) && c.boundsLayer.addTo(z)) : (c.layer && z.hasLayer(c.layer) && z.removeLayer(c.layer), c.boundsLayer && z.hasLayer(c.boundsLayer) && z.removeLayer(c.boundsLayer), ke(c.id)));
|
|
4435
4450
|
}
|
|
4436
4451
|
se(
|
|
4437
4452
|
() => s.layers,
|
|
@@ -4442,7 +4457,7 @@ ${ue}`, document.head.appendChild(be);
|
|
|
4442
4457
|
const ae = We(K, W);
|
|
4443
4458
|
$.push(ae), E.add(ae);
|
|
4444
4459
|
const ue = X[ae], be = { ...K, id: ae }, De = ue?.visible ?? !!be?.visible;
|
|
4445
|
-
ue && (ue.layer && z?.hasLayer(ue.layer) && z.removeLayer(ue.layer), ue.boundsLayer && z?.hasLayer(ue.boundsLayer) && z.removeLayer(ue.boundsLayer),
|
|
4460
|
+
ue && (ue.layer && z?.hasLayer(ue.layer) && z.removeLayer(ue.layer), ue.boundsLayer && z?.hasLayer(ue.boundsLayer) && z.removeLayer(ue.boundsLayer), ke(ae)), X[ae] = {
|
|
4446
4461
|
id: ae,
|
|
4447
4462
|
config: be,
|
|
4448
4463
|
visible: De,
|
|
@@ -4452,7 +4467,7 @@ ${ue}`, document.head.appendChild(be);
|
|
|
4452
4467
|
}), Object.keys(X).forEach((K) => {
|
|
4453
4468
|
if (!E.has(K)) {
|
|
4454
4469
|
const W = X[K];
|
|
4455
|
-
W?.layer && z?.hasLayer(W.layer) && z.removeLayer(W.layer), W?.boundsLayer && z?.hasLayer(W.boundsLayer) && z.removeLayer(W.boundsLayer),
|
|
4470
|
+
W?.layer && z?.hasLayer(W.layer) && z.removeLayer(W.layer), W?.boundsLayer && z?.hasLayer(W.boundsLayer) && z.removeLayer(W.boundsLayer), ke(K), delete X[K];
|
|
4456
4471
|
}
|
|
4457
4472
|
}), H.value = $, he();
|
|
4458
4473
|
},
|
|
@@ -4684,7 +4699,7 @@ ${ue}`, document.head.appendChild(be);
|
|
|
4684
4699
|
z.setView(c, 13);
|
|
4685
4700
|
}
|
|
4686
4701
|
let A = null;
|
|
4687
|
-
return
|
|
4702
|
+
return Ue(async () => {
|
|
4688
4703
|
T.value = await $e();
|
|
4689
4704
|
const u = T.value;
|
|
4690
4705
|
u.drawLocal = Us, z = u.map(v.value, { zoomControl: !1, scrollWheelZoom: !1 }).setView(_.value, k.value), u.control.zoom({ position: "bottomright" }).addTo(z);
|
|
@@ -4720,7 +4735,7 @@ ${ue}`, document.head.appendChild(be);
|
|
|
4720
4735
|
typeof u == "number" && (k.value = u, z && z.setZoom(u));
|
|
4721
4736
|
}
|
|
4722
4737
|
), $t(() => {
|
|
4723
|
-
A?.(),
|
|
4738
|
+
A?.(), ke(), pe && z?.hasLayer(pe) && (z.removeLayer(pe), pe = null), z?.remove && z.remove();
|
|
4724
4739
|
}), se(m, () => {
|
|
4725
4740
|
setTimeout(() => {
|
|
4726
4741
|
z?.invalidateSize && z.invalidateSize();
|
|
@@ -4754,7 +4769,7 @@ ${ue}`, document.head.appendChild(be);
|
|
|
4754
4769
|
"leave-from-class": "opacity-100",
|
|
4755
4770
|
"leave-to-class": "opacity-0"
|
|
4756
4771
|
}, {
|
|
4757
|
-
default:
|
|
4772
|
+
default: Re(() => [
|
|
4758
4773
|
g.value && s.handleZoom ? (d(), p("div", _i, [
|
|
4759
4774
|
o("div", $i, [
|
|
4760
4775
|
o("p", Ci, te(L.value), 1)
|
|
@@ -4865,7 +4880,7 @@ ${ue}`, document.head.appendChild(be);
|
|
|
4865
4880
|
}, [
|
|
4866
4881
|
o("div", Ni, [
|
|
4867
4882
|
le(xi, {
|
|
4868
|
-
basemaps:
|
|
4883
|
+
basemaps: _e(ee),
|
|
4869
4884
|
onOnLayerChange: Kt
|
|
4870
4885
|
}, null, 8, ["basemaps"]),
|
|
4871
4886
|
P.value.length ? (d(), p("div", Ri, [
|
|
@@ -4880,7 +4895,7 @@ ${ue}`, document.head.appendChild(be);
|
|
|
4880
4895
|
class: "rounded border-gray-300 text-blue-600 focus:ring-blue-500",
|
|
4881
4896
|
checked: $.visible,
|
|
4882
4897
|
disabled: f.value,
|
|
4883
|
-
onChange: (E) =>
|
|
4898
|
+
onChange: (E) => Ne($.id)
|
|
4884
4899
|
}, null, 40, qi),
|
|
4885
4900
|
o("span", Gi, te($.config.title || $.config.name || $.id), 1)
|
|
4886
4901
|
]))), 128))
|
|
@@ -4922,16 +4937,16 @@ ${ue}`, document.head.appendChild(be);
|
|
|
4922
4937
|
B.value.areaKm2 !== null ? (d(), p("div", Qi, [
|
|
4923
4938
|
c[12] || (c[12] = Ee(" Area: ", -1)),
|
|
4924
4939
|
o("b", null, te(B.value.areaKm2.toFixed(1)) + " km²", 1)
|
|
4925
|
-
])) : (d(), p("div", eu,
|
|
4940
|
+
])) : (d(), p("div", eu, c[13] || (c[13] = [
|
|
4926
4941
|
Ee("Area: ", -1),
|
|
4927
4942
|
o("b", null, "—", -1)
|
|
4928
|
-
])
|
|
4943
|
+
]))),
|
|
4929
4944
|
o("button", {
|
|
4930
4945
|
class: "tool bg-gray-100 py-1.5 px-2 rounded-lg text-md mr-1 cursor-pointer hover:bg-blue-500 hover:text-white transition-all",
|
|
4931
4946
|
title: "Zoom to feature",
|
|
4932
4947
|
onClick: c[7] || (c[7] = ($) => vt()),
|
|
4933
4948
|
disabled: f.value
|
|
4934
|
-
},
|
|
4949
|
+
}, c[14] || (c[14] = [
|
|
4935
4950
|
o("svg", {
|
|
4936
4951
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4937
4952
|
viewBox: "0 0 24 24",
|
|
@@ -4947,7 +4962,7 @@ ${ue}`, document.head.appendChild(be);
|
|
|
4947
4962
|
o("path", { d: "M10 7l0 6" }),
|
|
4948
4963
|
o("path", { d: "M21 21l-6 -6" })
|
|
4949
4964
|
], -1)
|
|
4950
|
-
])
|
|
4965
|
+
]), 8, tu),
|
|
4951
4966
|
o("button", {
|
|
4952
4967
|
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",
|
|
4953
4968
|
title: "Delete feature",
|
|
@@ -4962,12 +4977,12 @@ ${ue}`, document.head.appendChild(be);
|
|
|
4962
4977
|
], 2)
|
|
4963
4978
|
], 8, ["disabled"]));
|
|
4964
4979
|
}
|
|
4965
|
-
}), au = /* @__PURE__ */ fe(nu, [["__scopeId", "data-v-
|
|
4980
|
+
}), au = /* @__PURE__ */ fe(nu, [["__scopeId", "data-v-85843f06"]]), ou = ["data-focus"], ru = { class: "flex items-center" }, su = { class: "overflow-hidden text-ellipsis whitespace-nowrap rounded-sm text-[#333] text-[85%] px-0.5 py-[3px] pl-1.5 box-border" }, iu = ["onClick", "aria-label"], uu = {
|
|
4966
4981
|
key: 0,
|
|
4967
4982
|
class: "absolute text-gray-500 truncate pl-2"
|
|
4968
4983
|
}, du = { class: "flex-1 min-w-[2px]" }, cu = ["placeholder"], fu = { class: "flex items-center shrink-0" }, pu = ["disabled"], mu = /* @__PURE__ */ oe({
|
|
4969
4984
|
__name: "vs-input-tag",
|
|
4970
|
-
props: /* @__PURE__ */
|
|
4985
|
+
props: /* @__PURE__ */ xe({
|
|
4971
4986
|
unique: { type: Boolean, default: !0 },
|
|
4972
4987
|
style: { default: () => ({}) },
|
|
4973
4988
|
customClass: { default: "" },
|
|
@@ -4982,7 +4997,7 @@ ${ue}`, document.head.appendChild(be);
|
|
|
4982
4997
|
modelValue: { default: [] },
|
|
4983
4998
|
modelModifiers: {}
|
|
4984
4999
|
}),
|
|
4985
|
-
emits: /* @__PURE__ */
|
|
5000
|
+
emits: /* @__PURE__ */ xe(["update:modelValue"], ["update:modelValue"]),
|
|
4986
5001
|
setup(e, { emit: t }) {
|
|
4987
5002
|
const l = e, n = t;
|
|
4988
5003
|
He(l.style);
|
|
@@ -5046,7 +5061,7 @@ ${ue}`, document.head.appendChild(be);
|
|
|
5046
5061
|
class: "flex items-center rounded-sm px-1 box-border hover:bg-[#ffbdad] hover:text-[#de350b]",
|
|
5047
5062
|
onClick: Le((X) => C(Y), ["stop"]),
|
|
5048
5063
|
"aria-label": `Remove ${T}`
|
|
5049
|
-
},
|
|
5064
|
+
}, M[2] || (M[2] = [
|
|
5050
5065
|
o("svg", {
|
|
5051
5066
|
height: "14",
|
|
5052
5067
|
width: "14",
|
|
@@ -5057,7 +5072,7 @@ ${ue}`, document.head.appendChild(be);
|
|
|
5057
5072
|
}, [
|
|
5058
5073
|
o("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" })
|
|
5059
5074
|
], -1)
|
|
5060
|
-
])
|
|
5075
|
+
]), 8, iu)
|
|
5061
5076
|
]))), 128)),
|
|
5062
5077
|
g.value ? (d(), p("div", uu, te(v.value), 1)) : R("", !0),
|
|
5063
5078
|
o("div", du, [
|
|
@@ -5091,7 +5106,7 @@ ${ue}`, document.head.appendChild(be);
|
|
|
5091
5106
|
"aria-label": "Clear all tags",
|
|
5092
5107
|
disabled: y.value,
|
|
5093
5108
|
onClick: Le(h, ["stop"])
|
|
5094
|
-
},
|
|
5109
|
+
}, M[3] || (M[3] = [
|
|
5095
5110
|
o("svg", {
|
|
5096
5111
|
height: "20",
|
|
5097
5112
|
width: "20",
|
|
@@ -5100,7 +5115,7 @@ ${ue}`, document.head.appendChild(be);
|
|
|
5100
5115
|
}, [
|
|
5101
5116
|
o("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" })
|
|
5102
5117
|
], -1)
|
|
5103
|
-
])
|
|
5118
|
+
]), 8, pu)) : R("", !0)
|
|
5104
5119
|
])
|
|
5105
5120
|
], 10, ou)
|
|
5106
5121
|
], 2)
|
|
@@ -5108,7 +5123,7 @@ ${ue}`, document.head.appendChild(be);
|
|
|
5108
5123
|
}
|
|
5109
5124
|
}), vu = { class: "relative flex gap-1 bg-white w-full" }, hu = ["disabled", "placeholder"], gu = /* @__PURE__ */ oe({
|
|
5110
5125
|
__name: "vs-input-slug",
|
|
5111
|
-
props: /* @__PURE__ */
|
|
5126
|
+
props: /* @__PURE__ */ xe({
|
|
5112
5127
|
disabled: { type: Boolean },
|
|
5113
5128
|
placeholder: {},
|
|
5114
5129
|
parent: {}
|
|
@@ -5181,9 +5196,9 @@ ${ue}`, document.head.appendChild(be);
|
|
|
5181
5196
|
}, " Gen ")
|
|
5182
5197
|
]));
|
|
5183
5198
|
}
|
|
5184
|
-
}), yu = /* @__PURE__ */ fe(gu, [["__scopeId", "data-v-
|
|
5199
|
+
}), yu = /* @__PURE__ */ fe(gu, [["__scopeId", "data-v-b0eba370"]]), bu = { class: "relative flex gap-1 bg-white w-full" }, wu = ["disabled", "placeholder"], xu = ["disabled"], ku = { key: 0 }, _u = { key: 1 }, $u = /* @__PURE__ */ oe({
|
|
5185
5200
|
__name: "vs-input-codegen",
|
|
5186
|
-
props: /* @__PURE__ */
|
|
5201
|
+
props: /* @__PURE__ */ xe({
|
|
5187
5202
|
table: {},
|
|
5188
5203
|
code: {},
|
|
5189
5204
|
init: { type: Boolean },
|
|
@@ -5223,7 +5238,7 @@ ${ue}`, document.head.appendChild(be);
|
|
|
5223
5238
|
}, f = () => {
|
|
5224
5239
|
r.value && (l.value || i());
|
|
5225
5240
|
};
|
|
5226
|
-
return
|
|
5241
|
+
return Ue(() => {
|
|
5227
5242
|
f();
|
|
5228
5243
|
}), se(
|
|
5229
5244
|
() => [t.table, t.code, t.init],
|
|
@@ -5248,7 +5263,7 @@ ${ue}`, document.head.appendChild(be);
|
|
|
5248
5263
|
], 8, xu)
|
|
5249
5264
|
]));
|
|
5250
5265
|
}
|
|
5251
|
-
}), Cu = /* @__PURE__ */ fe($u, [["__scopeId", "data-v-
|
|
5266
|
+
}), Cu = /* @__PURE__ */ fe($u, [["__scopeId", "data-v-6ee5237d"]]), Vu = { class: "w-full" }, Lu = {
|
|
5252
5267
|
ref: "sortableContainer",
|
|
5253
5268
|
class: "flex flex-col gap-1"
|
|
5254
5269
|
}, Mu = ["onDragstart", "onDrop"], Su = { class: "w-1/3" }, Du = { class: "w-2/3" }, Bu = ["onClick"], Au = {
|
|
@@ -5313,7 +5328,7 @@ ${ue}`, document.head.appendChild(be);
|
|
|
5313
5328
|
}, ["prevent"])),
|
|
5314
5329
|
onDrop: (k) => L(_)
|
|
5315
5330
|
}, [
|
|
5316
|
-
C[1] || (C[1] = Ge('<button class="cursor-move" data-v-
|
|
5331
|
+
C[1] || (C[1] = Ge('<button class="cursor-move" data-v-81b9444f><svg fill="#000000" width="20" height="20" viewBox="0 0 36 36" data-v-81b9444f><circle cx="15" cy="12" r="1.5" data-v-81b9444f></circle><circle cx="15" cy="24" r="1.5" data-v-81b9444f></circle><circle cx="21" cy="12" r="1.5" data-v-81b9444f></circle><circle cx="21" cy="24" r="1.5" data-v-81b9444f></circle><circle cx="21" cy="18" r="1.5" data-v-81b9444f></circle><circle cx="15" cy="18" r="1.5" data-v-81b9444f></circle></svg></button>', 1)),
|
|
5317
5332
|
o("div", Su, [
|
|
5318
5333
|
le(xt, {
|
|
5319
5334
|
modelValue: h.key,
|
|
@@ -5332,7 +5347,7 @@ ${ue}`, document.head.appendChild(be);
|
|
|
5332
5347
|
onClick: (k) => b(h.id),
|
|
5333
5348
|
class: "shrink-0 w-[30px] text-gray-600 h-[30px] rounded-full flex items-center justify-center bg-gray-100 hover:bg-gray-200"
|
|
5334
5349
|
}, [
|
|
5335
|
-
le(
|
|
5350
|
+
le(_e(Ut), {
|
|
5336
5351
|
height: "16",
|
|
5337
5352
|
width: "16"
|
|
5338
5353
|
})
|
|
@@ -5351,12 +5366,12 @@ ${ue}`, document.head.appendChild(be);
|
|
|
5351
5366
|
height: "14",
|
|
5352
5367
|
width: "14"
|
|
5353
5368
|
}),
|
|
5354
|
-
Ee(" " + te(
|
|
5369
|
+
Ee(" " + te(_e(s)), 1)
|
|
5355
5370
|
], 8, Eu)
|
|
5356
5371
|
])
|
|
5357
5372
|
]));
|
|
5358
5373
|
}
|
|
5359
|
-
}), ju = /* @__PURE__ */ fe(Iu, [["__scopeId", "data-v-
|
|
5374
|
+
}), ju = /* @__PURE__ */ fe(Iu, [["__scopeId", "data-v-81b9444f"]]), Fu = { class: "w-full" }, Ou = {
|
|
5360
5375
|
ref: "sortableContainer",
|
|
5361
5376
|
class: "flex flex-col gap-1"
|
|
5362
5377
|
}, zu = ["onDragstart", "onDrop"], Pu = ["disabled"], Uu = { class: "flex-1" }, Nu = ["onClick", "disabled"], Ru = {
|
|
@@ -5364,7 +5379,7 @@ ${ue}`, document.head.appendChild(be);
|
|
|
5364
5379
|
class: "text-[14px] text-gray-700"
|
|
5365
5380
|
}, Hu = { class: "mt-2 w-full flex items-center" }, qu = ["disabled"], Gu = /* @__PURE__ */ oe({
|
|
5366
5381
|
__name: "vs-input-text-array",
|
|
5367
|
-
props: /* @__PURE__ */
|
|
5382
|
+
props: /* @__PURE__ */ xe({
|
|
5368
5383
|
addButtonText: { default: "Додати" },
|
|
5369
5384
|
inputType: { default: "text" },
|
|
5370
5385
|
placeholder: { default: "Значення" },
|
|
@@ -5432,9 +5447,9 @@ ${ue}`, document.head.appendChild(be);
|
|
|
5432
5447
|
class: "cursor-move",
|
|
5433
5448
|
type: "button",
|
|
5434
5449
|
disabled: a.value
|
|
5435
|
-
},
|
|
5436
|
-
Ge('<svg fill="#000000" width="20" height="20" viewBox="0 0 36 36" data-v-
|
|
5437
|
-
])
|
|
5450
|
+
}, C[1] || (C[1] = [
|
|
5451
|
+
Ge('<svg fill="#000000" width="20" height="20" viewBox="0 0 36 36" data-v-66316a33><circle cx="15" cy="12" r="1.5" data-v-66316a33></circle><circle cx="15" cy="24" r="1.5" data-v-66316a33></circle><circle cx="21" cy="12" r="1.5" data-v-66316a33></circle><circle cx="21" cy="24" r="1.5" data-v-66316a33></circle><circle cx="21" cy="18" r="1.5" data-v-66316a33></circle><circle cx="15" cy="18" r="1.5" data-v-66316a33></circle></svg>', 1)
|
|
5452
|
+
]), 8, Pu),
|
|
5438
5453
|
o("div", Uu, [
|
|
5439
5454
|
x.inputType === "text" ? (d(), ge(xt, {
|
|
5440
5455
|
key: 0,
|
|
@@ -5472,7 +5487,7 @@ ${ue}`, document.head.appendChild(be);
|
|
|
5472
5487
|
disabled: a.value,
|
|
5473
5488
|
class: "shrink-0 w-[30px] text-gray-600 h-[30px] rounded-full flex items-center justify-center bg-gray-100 hover:bg-gray-200 disabled:opacity-50"
|
|
5474
5489
|
}, [
|
|
5475
|
-
le(
|
|
5490
|
+
le(_e(Ut), {
|
|
5476
5491
|
height: "16",
|
|
5477
5492
|
width: "16"
|
|
5478
5493
|
})
|
|
@@ -5496,7 +5511,7 @@ ${ue}`, document.head.appendChild(be);
|
|
|
5496
5511
|
])
|
|
5497
5512
|
]));
|
|
5498
5513
|
}
|
|
5499
|
-
}), Ku = /* @__PURE__ */ fe(Gu, [["__scopeId", "data-v-
|
|
5514
|
+
}), Ku = /* @__PURE__ */ fe(Gu, [["__scopeId", "data-v-66316a33"]]), Wu = { class: "flex items-center gap-2 w-full" }, Yu = ["disabled"], Zu = ["disabled"], Ju = /* @__PURE__ */ oe({
|
|
5500
5515
|
__name: "vs-input-color",
|
|
5501
5516
|
props: {
|
|
5502
5517
|
style: { default: () => ({}) },
|
|
@@ -5521,7 +5536,7 @@ ${ue}`, document.head.appendChild(be);
|
|
|
5521
5536
|
"onUpdate:modelValue": f[0] || (f[0] = (m) => a.value = m),
|
|
5522
5537
|
disabled: s.value,
|
|
5523
5538
|
ref: "color",
|
|
5524
|
-
class: G(["py-1.5 px-1 block w-full bg-white cursor-pointer max-w-[50px]", [i.modelValue ? "" : "text-opacity-50",
|
|
5539
|
+
class: G(["py-1.5 px-1 block w-full bg-white cursor-pointer max-w-[50px]", [i.modelValue ? "" : "text-opacity-50", _e(n)].join(" ")]),
|
|
5525
5540
|
style: { border: "1px solid #CFD9E0" }
|
|
5526
5541
|
}, null, 10, Yu), [
|
|
5527
5542
|
[je, a.value]
|
|
@@ -5566,7 +5581,7 @@ ${ue}`, document.head.appendChild(be);
|
|
|
5566
5581
|
step: i.step,
|
|
5567
5582
|
disabled: s.value,
|
|
5568
5583
|
ref: "range",
|
|
5569
|
-
class: G(["w-full cursor-pointer accent-blue-500", [i.modelValue ? "" : "text-opacity-50",
|
|
5584
|
+
class: G(["w-full cursor-pointer accent-blue-500", [i.modelValue ? "" : "text-opacity-50", _e(n)].join(" ")])
|
|
5570
5585
|
}, null, 10, Qu), [
|
|
5571
5586
|
[je, a.value]
|
|
5572
5587
|
]),
|
|
@@ -5582,7 +5597,7 @@ ${ue}`, document.head.appendChild(be);
|
|
|
5582
5597
|
}
|
|
5583
5598
|
}), ld = ["placeholder", "disabled", "name"], nd = ["type", "value", "onInput", "placeholder", "disabled"], ad = ["onClick"], od = /* @__PURE__ */ oe({
|
|
5584
5599
|
__name: "vs-input-array",
|
|
5585
|
-
props: /* @__PURE__ */
|
|
5600
|
+
props: /* @__PURE__ */ xe({
|
|
5586
5601
|
count: { default: 1 },
|
|
5587
5602
|
limit: { default: 1 },
|
|
5588
5603
|
mask: { default: "" },
|
|
@@ -5658,7 +5673,7 @@ ${ue}`, document.head.appendChild(be);
|
|
|
5658
5673
|
}), m.value = x;
|
|
5659
5674
|
}
|
|
5660
5675
|
}
|
|
5661
|
-
return
|
|
5676
|
+
return Ue(() => {
|
|
5662
5677
|
if (t.inputType === "mask")
|
|
5663
5678
|
for (let b = 0; b < l.value; b += 1)
|
|
5664
5679
|
f.value[b] && g(f.value[b], b);
|
|
@@ -5696,7 +5711,7 @@ ${ue}`, document.head.appendChild(be);
|
|
|
5696
5711
|
placeholder: b.placeholder,
|
|
5697
5712
|
disabled: b.disabled,
|
|
5698
5713
|
name: `${b.name}[${C - 1}]`,
|
|
5699
|
-
class: G(["py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [
|
|
5714
|
+
class: G(["py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [_e(r), { "!border-red-600": b.error }]]),
|
|
5700
5715
|
style: {
|
|
5701
5716
|
border: "1px solid #CFD9E0"
|
|
5702
5717
|
}
|
|
@@ -5707,7 +5722,7 @@ ${ue}`, document.head.appendChild(be);
|
|
|
5707
5722
|
onInput: (h) => L(h, C - 1),
|
|
5708
5723
|
placeholder: i.value,
|
|
5709
5724
|
disabled: s.value,
|
|
5710
|
-
class: G(["py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [
|
|
5725
|
+
class: G(["py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [_e(r), { "!border-red-600": b.error }]]),
|
|
5711
5726
|
style: {
|
|
5712
5727
|
border: "1px solid #CFD9E0"
|
|
5713
5728
|
}
|
|
@@ -5745,7 +5760,7 @@ ${ue}`, document.head.appendChild(be);
|
|
|
5745
5760
|
class: "text-xs text-stone-500"
|
|
5746
5761
|
}, gd = /* @__PURE__ */ oe({
|
|
5747
5762
|
__name: "vs-input-array-select",
|
|
5748
|
-
props: /* @__PURE__ */
|
|
5763
|
+
props: /* @__PURE__ */ xe({
|
|
5749
5764
|
options: { default: () => [] },
|
|
5750
5765
|
data: { default: "" },
|
|
5751
5766
|
api: { default: "" },
|
|
@@ -5769,7 +5784,7 @@ ${ue}`, document.head.appendChild(be);
|
|
|
5769
5784
|
modelValue: { default: [] },
|
|
5770
5785
|
modelModifiers: {}
|
|
5771
5786
|
}),
|
|
5772
|
-
emits: /* @__PURE__ */
|
|
5787
|
+
emits: /* @__PURE__ */ xe(["change", "update:modelValue", "value-selected"], ["update:modelValue"]),
|
|
5773
5788
|
setup(e, { emit: t }) {
|
|
5774
5789
|
const l = e, n = t, r = Ce(e, "modelValue"), a = V([]), s = V(l.options ?? []), i = V({}), f = V({}), m = V({ keyword: "", parent: null }), v = V(""), g = V(!1), L = V(null), y = V(null), B = V(null);
|
|
5775
5790
|
let b = !1, x = !1;
|
|
@@ -5827,7 +5842,7 @@ ${ue}`, document.head.appendChild(be);
|
|
|
5827
5842
|
if (!l.data || !D.length) return [];
|
|
5828
5843
|
const Q = N();
|
|
5829
5844
|
if (!Q) return [];
|
|
5830
|
-
const re = Array.from(new Set(D.map((
|
|
5845
|
+
const re = Array.from(new Set(D.map((Ne) => T(Ne)))), he = new URLSearchParams();
|
|
5831
5846
|
he.set("json", "1"), he.set("val", re.join(",")), l.start === 1 && he.set("start", "1"), M.value !== null && M.value !== void 0 && M.value !== "" && he.set("parent", String(M.value));
|
|
5832
5847
|
try {
|
|
5833
5848
|
const nt = (await (await fetch(`${Q}?${he.toString()}`)).json())?.data ?? [];
|
|
@@ -5840,8 +5855,8 @@ ${ue}`, document.head.appendChild(be);
|
|
|
5840
5855
|
const re = M.value ?? null;
|
|
5841
5856
|
if (!Q && m.value.keyword === D && m.value.parent === re && s.value.length > 0) return;
|
|
5842
5857
|
m.value = { keyword: D, parent: re };
|
|
5843
|
-
const
|
|
5844
|
-
j(
|
|
5858
|
+
const Ne = await ee(D);
|
|
5859
|
+
j(Ne);
|
|
5845
5860
|
}, z = ((D, Q = 200) => {
|
|
5846
5861
|
let re;
|
|
5847
5862
|
return (...he) => {
|
|
@@ -5912,10 +5927,10 @@ ${ue}`, document.head.appendChild(be);
|
|
|
5912
5927
|
if (h.value || L.value === null || L.value === D) return;
|
|
5913
5928
|
const Q = [...a.value], [re] = Q.splice(L.value, 1);
|
|
5914
5929
|
Q.splice(D, 0, re), L.value = null, a.value = Q;
|
|
5915
|
-
},
|
|
5930
|
+
}, ke = async () => {
|
|
5916
5931
|
const Q = (Array.isArray(r.value) ? [...r.value] : []).filter((he) => he != null);
|
|
5917
5932
|
if (l.data && Q.length) {
|
|
5918
|
-
const he = Q.filter((
|
|
5933
|
+
const he = Q.filter((Ne) => !i.value[T(Ne)]);
|
|
5919
5934
|
he.length && await ye(he);
|
|
5920
5935
|
}
|
|
5921
5936
|
const re = Q.map((he) => ({
|
|
@@ -5937,15 +5952,15 @@ ${ue}`, document.head.appendChild(be);
|
|
|
5937
5952
|
x = !1;
|
|
5938
5953
|
return;
|
|
5939
5954
|
}
|
|
5940
|
-
|
|
5955
|
+
ke();
|
|
5941
5956
|
}, { deep: !0 }), se(v, (D) => {
|
|
5942
5957
|
!l.data || !g.value || z(D.trim());
|
|
5943
5958
|
}), se(h, (D) => {
|
|
5944
5959
|
D && pe();
|
|
5945
5960
|
}), se(() => l.options, async (D) => {
|
|
5946
|
-
l.data || (j(D ?? []), await
|
|
5961
|
+
l.data || (j(D ?? []), await ke());
|
|
5947
5962
|
}, { immediate: !0, deep: !0 }), se(() => l.data, async (D) => {
|
|
5948
|
-
D && (await me(v.value.trim()), await
|
|
5963
|
+
D && (await me(v.value.trim()), await ke());
|
|
5949
5964
|
}, { immediate: !0 });
|
|
5950
5965
|
const Se = V(!1);
|
|
5951
5966
|
return se(M, async () => {
|
|
@@ -5954,10 +5969,10 @@ ${ue}`, document.head.appendChild(be);
|
|
|
5954
5969
|
Se.value = !0;
|
|
5955
5970
|
return;
|
|
5956
5971
|
}
|
|
5957
|
-
a.value = [], await me(v.value.trim()), await
|
|
5972
|
+
a.value = [], await me(v.value.trim()), await ke();
|
|
5958
5973
|
}
|
|
5959
|
-
}),
|
|
5960
|
-
document.addEventListener("click", Fe, !0), window.addEventListener("keydown", Me), await
|
|
5974
|
+
}), Ue(async () => {
|
|
5975
|
+
document.addEventListener("click", Fe, !0), window.addEventListener("keydown", Me), await ke();
|
|
5961
5976
|
}), $t(() => {
|
|
5962
5977
|
document.removeEventListener("click", Fe, !0), window.removeEventListener("keydown", Me);
|
|
5963
5978
|
}), (D, Q) => (d(), p("div", {
|
|
@@ -6007,7 +6022,7 @@ ${ue}`, document.head.appendChild(be);
|
|
|
6007
6022
|
], 2)
|
|
6008
6023
|
], 10, rd),
|
|
6009
6024
|
le(Pt, { name: "fade" }, {
|
|
6010
|
-
default:
|
|
6025
|
+
default: Re(() => [
|
|
6011
6026
|
g.value ? (d(), p("div", {
|
|
6012
6027
|
key: 0,
|
|
6013
6028
|
class: "absolute left-0 right-0 z-10 mt-1 rounded-md border border-stone-200 bg-white shadow-lg overflow-auto",
|
|
@@ -6033,11 +6048,11 @@ ${ue}`, document.head.appendChild(be);
|
|
|
6033
6048
|
key: re.key,
|
|
6034
6049
|
class: G(["flex items-center gap-2 rounded-md border border-stone-200 bg-white px-2 py-2", { "opacity-60": L.value === he }]),
|
|
6035
6050
|
draggable: "true",
|
|
6036
|
-
onDragstart: (
|
|
6051
|
+
onDragstart: (Ne) => ie(he),
|
|
6037
6052
|
onDragover: Q[3] || (Q[3] = Le(() => {
|
|
6038
6053
|
}, ["prevent"])),
|
|
6039
|
-
onDrop: (
|
|
6040
|
-
onDragend: Q[4] || (Q[4] = (
|
|
6054
|
+
onDrop: (Ne) => ce(he),
|
|
6055
|
+
onDragend: Q[4] || (Q[4] = (Ne) => L.value = null)
|
|
6041
6056
|
}, [
|
|
6042
6057
|
o("button", {
|
|
6043
6058
|
type: "button",
|
|
@@ -6058,7 +6073,7 @@ ${ue}`, document.head.appendChild(be);
|
|
|
6058
6073
|
type: "button",
|
|
6059
6074
|
class: "flex h-6 w-6 shrink-0 items-center justify-center rounded-full text-stone-400 hover:text-stone-900",
|
|
6060
6075
|
disabled: h.value,
|
|
6061
|
-
onClick: Le((
|
|
6076
|
+
onClick: Le((Ne) => Z(re.id), ["stop"]),
|
|
6062
6077
|
"aria-label": `Видалити ${re.text}`
|
|
6063
6078
|
}, [
|
|
6064
6079
|
le(Ut, {
|
|
@@ -6071,7 +6086,7 @@ ${ue}`, document.head.appendChild(be);
|
|
|
6071
6086
|
])
|
|
6072
6087
|
], 512));
|
|
6073
6088
|
}
|
|
6074
|
-
}), Jt = /* @__PURE__ */ fe(gd, [["__scopeId", "data-v-
|
|
6089
|
+
}), Jt = /* @__PURE__ */ fe(gd, [["__scopeId", "data-v-8dc8c204"]]), yd = { class: "flex items-center gap-2 w-full" }, bd = { class: "relative flex-1" }, wd = ["placeholder", "disabled", "onKeydown"], xd = ["disabled"], kd = {
|
|
6075
6090
|
key: 0,
|
|
6076
6091
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6077
6092
|
width: "18",
|
|
@@ -6096,7 +6111,7 @@ ${ue}`, document.head.appendChild(be);
|
|
|
6096
6111
|
class: "p-4 text-sm text-gray-500"
|
|
6097
6112
|
}, Sd = /* @__PURE__ */ oe({
|
|
6098
6113
|
__name: "vs-input-address",
|
|
6099
|
-
props: /* @__PURE__ */
|
|
6114
|
+
props: /* @__PURE__ */ xe({
|
|
6100
6115
|
api: { default: "" },
|
|
6101
6116
|
geom: { default: "" },
|
|
6102
6117
|
includes: { default: () => [] },
|
|
@@ -6114,7 +6129,7 @@ ${ue}`, document.head.appendChild(be);
|
|
|
6114
6129
|
modelValue: { default: "" },
|
|
6115
6130
|
modelModifiers: {}
|
|
6116
6131
|
}),
|
|
6117
|
-
emits: /* @__PURE__ */
|
|
6132
|
+
emits: /* @__PURE__ */ xe(["update:modelValue", "update:geom"], ["update:modelValue"]),
|
|
6118
6133
|
setup(e, { emit: t }) {
|
|
6119
6134
|
const l = /{{\s*([^}]+?)\s*}}/g, n = e, r = t, { inputClass: a } = He(n.style), s = Ce(e, "modelValue"), i = w({
|
|
6120
6135
|
get: () => s.value,
|
|
@@ -6199,7 +6214,7 @@ ${ue}`, document.head.appendChild(be);
|
|
|
6199
6214
|
"onUpdate:modelValue": T[0] || (T[0] = (Y) => i.value = Y),
|
|
6200
6215
|
placeholder: L.value,
|
|
6201
6216
|
disabled: y.value,
|
|
6202
|
-
class: G(["py-1.5 px-3 block w-full bg-white border rounded-md placeholder:text-gray-400 focus:ring-2 focus:ring-blue-500", [
|
|
6217
|
+
class: G(["py-1.5 px-3 block w-full bg-white border rounded-md placeholder:text-gray-400 focus:ring-2 focus:ring-blue-500", [_e(a), { "!border-red-600": n.error }]]),
|
|
6203
6218
|
style: { border: "1px solid #CFD9E0" },
|
|
6204
6219
|
onKeydown: Rl(Le(h, ["prevent"]), ["enter"])
|
|
6205
6220
|
}, null, 42, wd), [
|
|
@@ -6211,7 +6226,7 @@ ${ue}`, document.head.appendChild(be);
|
|
|
6211
6226
|
class: "absolute right-2 top-1/2 -translate-y-1/2 text-gray-500 hover:text-blue-600",
|
|
6212
6227
|
onClick: k,
|
|
6213
6228
|
title: "Show search results"
|
|
6214
|
-
},
|
|
6229
|
+
}, T[2] || (T[2] = [
|
|
6215
6230
|
o("svg", {
|
|
6216
6231
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6217
6232
|
width: "18",
|
|
@@ -6231,7 +6246,7 @@ ${ue}`, document.head.appendChild(be);
|
|
|
6231
6246
|
o("path", { d: "M12 16v-4" }),
|
|
6232
6247
|
o("path", { d: "M12 8h.01" })
|
|
6233
6248
|
], -1)
|
|
6234
|
-
])
|
|
6249
|
+
]))) : R("", !0)
|
|
6235
6250
|
]),
|
|
6236
6251
|
o("button", {
|
|
6237
6252
|
type: "button",
|
|
@@ -6239,7 +6254,7 @@ ${ue}`, document.head.appendChild(be);
|
|
|
6239
6254
|
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]",
|
|
6240
6255
|
disabled: f.value || !i.value?.trim()
|
|
6241
6256
|
}, [
|
|
6242
|
-
f.value ? (d(), p("svg", _d,
|
|
6257
|
+
f.value ? (d(), p("svg", _d, T[4] || (T[4] = [
|
|
6243
6258
|
o("circle", {
|
|
6244
6259
|
class: "opacity-25",
|
|
6245
6260
|
cx: "12",
|
|
@@ -6253,7 +6268,7 @@ ${ue}`, document.head.appendChild(be);
|
|
|
6253
6268
|
fill: "currentColor",
|
|
6254
6269
|
d: "M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"
|
|
6255
6270
|
}, null, -1)
|
|
6256
|
-
])
|
|
6271
|
+
]))) : (d(), p("svg", kd, T[3] || (T[3] = [
|
|
6257
6272
|
o("circle", {
|
|
6258
6273
|
cx: "11",
|
|
6259
6274
|
cy: "11",
|
|
@@ -6265,7 +6280,7 @@ ${ue}`, document.head.appendChild(be);
|
|
|
6265
6280
|
x2: "16.65",
|
|
6266
6281
|
y2: "16.65"
|
|
6267
6282
|
}, null, -1)
|
|
6268
|
-
])
|
|
6283
|
+
])))
|
|
6269
6284
|
], 8, xd),
|
|
6270
6285
|
(d(), ge(wt, { to: "body" }, [
|
|
6271
6286
|
v.value ? (d(), p("div", $d, [
|
|
@@ -6276,7 +6291,7 @@ ${ue}`, document.head.appendChild(be);
|
|
|
6276
6291
|
class: "text-gray-500 hover:text-blue-600",
|
|
6277
6292
|
onClick: T[1] || (T[1] = (Y) => v.value = !1),
|
|
6278
6293
|
title: "Close"
|
|
6279
|
-
},
|
|
6294
|
+
}, T[5] || (T[5] = [
|
|
6280
6295
|
o("svg", {
|
|
6281
6296
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6282
6297
|
width: "20",
|
|
@@ -6301,7 +6316,7 @@ ${ue}`, document.head.appendChild(be);
|
|
|
6301
6316
|
y2: "18"
|
|
6302
6317
|
})
|
|
6303
6318
|
], -1)
|
|
6304
|
-
])
|
|
6319
|
+
]))
|
|
6305
6320
|
]),
|
|
6306
6321
|
o("ul", null, [
|
|
6307
6322
|
(d(!0), p(ve, null, Ve(m.value, (Y, X) => (d(), p("li", {
|
|
@@ -6321,7 +6336,7 @@ ${ue}`, document.head.appendChild(be);
|
|
|
6321
6336
|
class: "rounded-lg border border-dashed border-gray-200 p-4 text-sm text-gray-500"
|
|
6322
6337
|
}, Ed = ["disabled"], Id = /* @__PURE__ */ oe({
|
|
6323
6338
|
__name: "vs-input-datalist",
|
|
6324
|
-
props: /* @__PURE__ */
|
|
6339
|
+
props: /* @__PURE__ */ xe({
|
|
6325
6340
|
schema: { default: () => [] },
|
|
6326
6341
|
minItems: { default: 0 },
|
|
6327
6342
|
maxItems: { default: void 0 },
|
|
@@ -6411,7 +6426,7 @@ ${ue}`, document.head.appendChild(be);
|
|
|
6411
6426
|
], 8, Ed)
|
|
6412
6427
|
]));
|
|
6413
6428
|
}
|
|
6414
|
-
}), jd = /* @__PURE__ */ fe(Id, [["__scopeId", "data-v-
|
|
6429
|
+
}), jd = /* @__PURE__ */ fe(Id, [["__scopeId", "data-v-8bcb5436"]]), Fd = {};
|
|
6415
6430
|
function Od(e, t) {
|
|
6416
6431
|
return d(), p("svg", lt({
|
|
6417
6432
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6423,7 +6438,7 @@ function Od(e, t) {
|
|
|
6423
6438
|
"stroke-width": "2",
|
|
6424
6439
|
"stroke-linecap": "round",
|
|
6425
6440
|
"stroke-linejoin": "round"
|
|
6426
|
-
}, e.$attrs),
|
|
6441
|
+
}, e.$attrs), t[0] || (t[0] = [
|
|
6427
6442
|
o("rect", {
|
|
6428
6443
|
width: "14",
|
|
6429
6444
|
height: "14",
|
|
@@ -6433,14 +6448,14 @@ function Od(e, t) {
|
|
|
6433
6448
|
ry: "2"
|
|
6434
6449
|
}, null, -1),
|
|
6435
6450
|
o("path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" }, null, -1)
|
|
6436
|
-
])
|
|
6451
|
+
]), 16);
|
|
6437
6452
|
}
|
|
6438
6453
|
const zd = /* @__PURE__ */ fe(Fd, [["render", Od]]), Pd = { class: "vs-dataform space-y-4" }, Ud = ["draggable", "onDragstart", "onDragover", "onDragenter", "onDrop"], Nd = { class: "flex items-center gap-2" }, Rd = ["onClick"], Hd = { class: "text-sm font-medium text-gray-700" }, qd = { class: "flex items-center gap-2" }, Gd = ["title", "onClick", "disabled"], Kd = ["title", "onClick", "disabled"], Wd = {
|
|
6439
6454
|
key: 0,
|
|
6440
6455
|
class: "rounded-lg border border-dashed border-gray-200 p-4 text-sm text-gray-500"
|
|
6441
6456
|
}, Yd = ["disabled"], Zd = /* @__PURE__ */ oe({
|
|
6442
6457
|
__name: "vs-input-dataform",
|
|
6443
|
-
props: /* @__PURE__ */
|
|
6458
|
+
props: /* @__PURE__ */ xe({
|
|
6444
6459
|
schema: { default: () => [] },
|
|
6445
6460
|
minGroups: { default: 0 },
|
|
6446
6461
|
maxGroups: { default: void 0 },
|
|
@@ -6674,9 +6689,9 @@ const zd = /* @__PURE__ */ fe(Fd, [["render", Od]]), Pd = { class: "vs-dataform
|
|
|
6674
6689
|
], 8, Yd)
|
|
6675
6690
|
]));
|
|
6676
6691
|
}
|
|
6677
|
-
}), Jd = /* @__PURE__ */ fe(Zd, [["__scopeId", "data-v-
|
|
6692
|
+
}), Jd = /* @__PURE__ */ fe(Zd, [["__scopeId", "data-v-3b71fe50"]]), Tt = "__vs_form_monaco_loader__", Xd = /* @__PURE__ */ oe({
|
|
6678
6693
|
__name: "vs-input-monaco",
|
|
6679
|
-
props: /* @__PURE__ */
|
|
6694
|
+
props: /* @__PURE__ */ xe({
|
|
6680
6695
|
syntax: { default: "xml" },
|
|
6681
6696
|
theme: { default: "vs-light" },
|
|
6682
6697
|
height: { default: 280 },
|
|
@@ -6769,7 +6784,7 @@ const zd = /* @__PURE__ */ fe(Fd, [["render", Od]]), Pd = { class: "vs-dataform
|
|
|
6769
6784
|
(v) => {
|
|
6770
6785
|
a && a.updateOptions({ minimap: { enabled: !!v } });
|
|
6771
6786
|
}
|
|
6772
|
-
),
|
|
6787
|
+
), Ue(async () => {
|
|
6773
6788
|
try {
|
|
6774
6789
|
const v = await f();
|
|
6775
6790
|
if (!v || !v.editor) return;
|
|
@@ -6794,19 +6809,19 @@ const zd = /* @__PURE__ */ fe(Fd, [["render", Od]]), Pd = { class: "vs-dataform
|
|
|
6794
6809
|
VsInputText: xt,
|
|
6795
6810
|
VsInputRadio: dl,
|
|
6796
6811
|
"vs-input-text": xt,
|
|
6797
|
-
"vs-input-password":
|
|
6798
|
-
"vs-input-textarea":
|
|
6812
|
+
"vs-input-password": vn,
|
|
6813
|
+
"vs-input-textarea": zr,
|
|
6799
6814
|
"vs-input-richtext": Ur,
|
|
6800
6815
|
"vs-input-mask": Ll,
|
|
6801
|
-
"vs-input-number":
|
|
6816
|
+
"vs-input-number": yn,
|
|
6802
6817
|
"vs-input-radio": dl,
|
|
6803
6818
|
"vs-input-select": pl,
|
|
6804
6819
|
"vs-input-switcher": Vl,
|
|
6805
6820
|
"vs-input-static": ul,
|
|
6806
|
-
"vs-input-container":
|
|
6807
|
-
"vs-input-date":
|
|
6808
|
-
"vs-input-checkbox":
|
|
6809
|
-
"vs-input-file":
|
|
6821
|
+
"vs-input-container": gr,
|
|
6822
|
+
"vs-input-date": pa,
|
|
6823
|
+
"vs-input-checkbox": ca,
|
|
6824
|
+
"vs-input-file": to,
|
|
6810
6825
|
"vs-input-file2": Yt,
|
|
6811
6826
|
file2: Yt,
|
|
6812
6827
|
File2: Yt,
|
|
@@ -6817,7 +6832,7 @@ const zd = /* @__PURE__ */ fe(Fd, [["render", Od]]), Pd = { class: "vs-dataform
|
|
|
6817
6832
|
// 20kb
|
|
6818
6833
|
"vs-input-map": au,
|
|
6819
6834
|
// 50kb
|
|
6820
|
-
"vs-input-file-list":
|
|
6835
|
+
"vs-input-file-list": Go,
|
|
6821
6836
|
"vs-input-tags": mu,
|
|
6822
6837
|
"vs-input-slug": yu,
|
|
6823
6838
|
"vs-input-codegen": Cu,
|
|
@@ -6871,7 +6886,7 @@ const zd = /* @__PURE__ */ fe(Fd, [["render", Od]]), Pd = { class: "vs-dataform
|
|
|
6871
6886
|
}
|
|
6872
6887
|
}), tc = { class: "flex flex-col gap-1 w-full" }, lc = ["innerHTML"], El = /* @__PURE__ */ oe({
|
|
6873
6888
|
__name: "vs-compact-form-layout",
|
|
6874
|
-
props: /* @__PURE__ */
|
|
6889
|
+
props: /* @__PURE__ */ xe({
|
|
6875
6890
|
item: { default: {} },
|
|
6876
6891
|
layout: { default: "default" },
|
|
6877
6892
|
style: { default: {} },
|
|
@@ -6882,10 +6897,10 @@ const zd = /* @__PURE__ */ fe(Fd, [["render", Od]]), Pd = { class: "vs-dataform
|
|
|
6882
6897
|
modelValue: { default: null },
|
|
6883
6898
|
modelModifiers: {}
|
|
6884
6899
|
}),
|
|
6885
|
-
emits: /* @__PURE__ */
|
|
6900
|
+
emits: /* @__PURE__ */ xe(["value-selected"], ["update:modelValue"]),
|
|
6886
6901
|
setup(e, { emit: t }) {
|
|
6887
|
-
const l = e, n = Ce(e, "modelValue"), r = t, a = w(() =>
|
|
6888
|
-
const _ =
|
|
6902
|
+
const l = e, n = Ce(e, "modelValue"), r = t, a = w(() => pn[`${l.layout}`]), s = ["label", "placeholder", "info", "description", "text", "html"], i = V(C()), f = w(() => B(l.item, i.value)), m = w(() => Qd?.[`vs-input-${l.item.type}`]), v = qe("field-props"), g = w(() => {
|
|
6903
|
+
const _ = _e(m);
|
|
6889
6904
|
if (!_) return /* @__PURE__ */ new Set();
|
|
6890
6905
|
const k = _.props ?? _.__vccOpts?.props;
|
|
6891
6906
|
if (!k) return /* @__PURE__ */ new Set();
|
|
@@ -6903,7 +6918,7 @@ const zd = /* @__PURE__ */ fe(Fd, [["render", Od]]), Pd = { class: "vs-dataform
|
|
|
6903
6918
|
name: k.name ?? l.item?.name
|
|
6904
6919
|
});
|
|
6905
6920
|
};
|
|
6906
|
-
|
|
6921
|
+
Ue(() => {
|
|
6907
6922
|
i.value = C(), window.addEventListener("storage", h);
|
|
6908
6923
|
}), $t(() => {
|
|
6909
6924
|
window.removeEventListener("storage", h);
|
|
@@ -6942,19 +6957,19 @@ const zd = /* @__PURE__ */ fe(Fd, [["render", Od]]), Pd = { class: "vs-dataform
|
|
|
6942
6957
|
function h() {
|
|
6943
6958
|
i.value = C();
|
|
6944
6959
|
}
|
|
6945
|
-
return (_, k) => (d(), ge(
|
|
6960
|
+
return (_, k) => (d(), ge(rt(a.value), {
|
|
6946
6961
|
ua: f.value.ua,
|
|
6947
6962
|
error: l.error || "",
|
|
6948
6963
|
item: f.value,
|
|
6949
6964
|
columns: l.columns,
|
|
6950
6965
|
label: f.value.label
|
|
6951
6966
|
}, {
|
|
6952
|
-
default:
|
|
6967
|
+
default: Re(() => [
|
|
6953
6968
|
o("div", {
|
|
6954
6969
|
class: G(["flex w-full", `${l.item.type}-component`])
|
|
6955
6970
|
}, [
|
|
6956
6971
|
o("div", tc, [
|
|
6957
|
-
(d(), ge(
|
|
6972
|
+
(d(), ge(rt(m.value), lt(L.value, {
|
|
6958
6973
|
modelValue: n.value,
|
|
6959
6974
|
"onUpdate:modelValue": k[0] || (k[0] = (S) => n.value = S),
|
|
6960
6975
|
onValueSelected: y
|
|
@@ -7013,7 +7028,7 @@ const zd = /* @__PURE__ */ fe(Fd, [["render", Od]]), Pd = { class: "vs-dataform
|
|
|
7013
7028
|
C(H ?? null), Oe(() => h());
|
|
7014
7029
|
},
|
|
7015
7030
|
{ immediate: !0 }
|
|
7016
|
-
),
|
|
7031
|
+
), Ue(() => {
|
|
7017
7032
|
l.scrollContainer || C(null), h();
|
|
7018
7033
|
}), dt(() => {
|
|
7019
7034
|
I(), C(null, !0), L = null, typeof window < "u" && (v && window.cancelAnimationFrame(v), g && window.cancelAnimationFrame(g));
|
|
@@ -7128,26 +7143,26 @@ const zd = /* @__PURE__ */ fe(Fd, [["render", Od]]), Pd = { class: "vs-dataform
|
|
|
7128
7143
|
])
|
|
7129
7144
|
], 6)) : R("", !0);
|
|
7130
7145
|
}
|
|
7131
|
-
}), sc = /* @__PURE__ */ fe(rc, [["__scopeId", "data-v-
|
|
7146
|
+
}), sc = /* @__PURE__ */ fe(rc, [["__scopeId", "data-v-1584a562"]]), st = {
|
|
7132
7147
|
required: "Це поле є обов’язковим",
|
|
7133
7148
|
email: "Неправильний email",
|
|
7134
7149
|
tel: "Неправильний телефон",
|
|
7135
7150
|
minlength: (e) => `Мінімальна довжина — ${e} символів`,
|
|
7136
7151
|
maxlength: (e) => `Максимальна довжина — ${e} символів`
|
|
7137
|
-
}, ic = (e) => typeof e == "string" ? e.trim() ? !1 :
|
|
7152
|
+
}, ic = (e) => typeof e == "string" ? e.trim() ? !1 : st.required : Array.isArray(e) ? e.map((l) => typeof l == "string" ? l.trim() : l).filter((l) => l != null && l !== "").length ? !1 : st.required : e ? !1 : st.required, uc = (e) => {
|
|
7138
7153
|
const t = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
7139
|
-
return e ? t.test(e) ? !1 :
|
|
7154
|
+
return e ? t.test(e) ? !1 : st.email : !1;
|
|
7140
7155
|
}, dc = (e) => {
|
|
7141
7156
|
const t = /^\+[1-9]\d{1,14}$/;
|
|
7142
|
-
return e ? t.test(e) ? !1 :
|
|
7157
|
+
return e ? t.test(e) ? !1 : st.tel : !1;
|
|
7143
7158
|
}, Il = (e) => e == null ? 0 : typeof e == "string" ? e.trim().length : Array.isArray(e) ? e.length : typeof e == "number" ? e.toString().length : String(e).length, cc = (e, t) => {
|
|
7144
7159
|
if (e == null) return !1;
|
|
7145
7160
|
const l = Number(t?.value ?? t?.length);
|
|
7146
|
-
return Number.isFinite(l) && Il(e) < l ? t?.message ||
|
|
7161
|
+
return Number.isFinite(l) && Il(e) < l ? t?.message || st.minlength(l) : !1;
|
|
7147
7162
|
}, fc = (e, t) => {
|
|
7148
7163
|
if (e == null || e === "") return !1;
|
|
7149
7164
|
const l = Number(t?.value ?? t?.length);
|
|
7150
|
-
return Number.isFinite(l) && Il(e) > l ? t?.message ||
|
|
7165
|
+
return Number.isFinite(l) && Il(e) > l ? t?.message || st.maxlength(l) : !1;
|
|
7151
7166
|
}, pc = (e, t) => {
|
|
7152
7167
|
const l = t.pattern ?? t.regexp, n = typeof l == "string" ? new RegExp(l) : l;
|
|
7153
7168
|
if (Array.isArray(e)) {
|
|
@@ -7255,7 +7270,7 @@ const yc = { class: "flex w-full h-full min-h-0 gap-6" }, bc = {
|
|
|
7255
7270
|
class: "mt-1 shrink-0 h-[1px] w-full bg-slate-100 dark:bg-slate-600"
|
|
7256
7271
|
}, it = /* @__PURE__ */ oe({
|
|
7257
7272
|
__name: "vs-compact-form",
|
|
7258
|
-
props: /* @__PURE__ */
|
|
7273
|
+
props: /* @__PURE__ */ xe({
|
|
7259
7274
|
schema: { default: () => [] },
|
|
7260
7275
|
style: { default: () => ({}) },
|
|
7261
7276
|
modelValue: {},
|
|
@@ -7273,7 +7288,7 @@ const yc = { class: "flex w-full h-full min-h-0 gap-6" }, bc = {
|
|
|
7273
7288
|
values: { default: void 0 },
|
|
7274
7289
|
valuesModifiers: {}
|
|
7275
7290
|
}),
|
|
7276
|
-
emits: /* @__PURE__ */
|
|
7291
|
+
emits: /* @__PURE__ */ xe(["handle-submit", "update:modelValue", "value-selected"], ["update:form", "update:modelValue", "update:values"]),
|
|
7277
7292
|
setup(e, { expose: t, emit: l }) {
|
|
7278
7293
|
const n = l, r = e, a = Ce(e, "form"), s = Ce(e, "modelValue"), i = Ce(e, "values"), f = w({
|
|
7279
7294
|
get: () => i.value ?? s.value,
|
|
@@ -7294,7 +7309,7 @@ const yc = { class: "flex w-full h-full min-h-0 gap-6" }, bc = {
|
|
|
7294
7309
|
validate: v,
|
|
7295
7310
|
reset: g,
|
|
7296
7311
|
errors: m
|
|
7297
|
-
}),
|
|
7312
|
+
}), Ue(() => {
|
|
7298
7313
|
a.value = {
|
|
7299
7314
|
value: f.value,
|
|
7300
7315
|
errors: m.value,
|
|
@@ -7321,7 +7336,7 @@ const yc = { class: "flex w-full h-full min-h-0 gap-6" }, bc = {
|
|
|
7321
7336
|
onSubmit: Le(Y, ["prevent"]),
|
|
7322
7337
|
class: G(["grid grid-cols-12 p-1", I.value === "default" ? "gap-6" : "gap-4"])
|
|
7323
7338
|
}, [
|
|
7324
|
-
(d(!0), p(ve, null, Ve(
|
|
7339
|
+
(d(!0), p(ve, null, Ve(_e(L), (J, U) => (d(), p("div", {
|
|
7325
7340
|
key: J.name,
|
|
7326
7341
|
class: G(M(J) === "horizontal" ? "col-span-12" : `col-span-${J.col || 12}`)
|
|
7327
7342
|
}, [
|
|
@@ -7335,10 +7350,10 @@ const yc = { class: "flex w-full h-full min-h-0 gap-6" }, bc = {
|
|
|
7335
7350
|
const ne = f.value[J.name];
|
|
7336
7351
|
H(ne, j) || (f.value[J.name] = j);
|
|
7337
7352
|
},
|
|
7338
|
-
error:
|
|
7353
|
+
error: _e(m)[J.name],
|
|
7339
7354
|
onValueSelected: X
|
|
7340
7355
|
}, null, 8, ["style", "item", "layout", "columns", "model-value", "onUpdate:modelValue", "error"]),
|
|
7341
|
-
M(J) === "settings" && U + 1 !==
|
|
7356
|
+
M(J) === "settings" && U + 1 !== _e(L).length ? (d(), p("div", bc)) : R("", !0)
|
|
7342
7357
|
], 2))), 128))
|
|
7343
7358
|
], 34)
|
|
7344
7359
|
], 512),
|
|
@@ -7413,7 +7428,7 @@ const yc = { class: "flex w-full h-full min-h-0 gap-6" }, bc = {
|
|
|
7413
7428
|
function v() {
|
|
7414
7429
|
n("close");
|
|
7415
7430
|
}
|
|
7416
|
-
return
|
|
7431
|
+
return Ue(async () => {
|
|
7417
7432
|
try {
|
|
7418
7433
|
if (l.form && !l.schema) {
|
|
7419
7434
|
const g = await fetch(`/api/template/form/${l.form}`);
|
|
@@ -7460,7 +7475,7 @@ const yc = { class: "flex w-full h-full min-h-0 gap-6" }, bc = {
|
|
|
7460
7475
|
onClick: v,
|
|
7461
7476
|
type: "button",
|
|
7462
7477
|
class: "size-8 inline-flex justify-center items-center gap-x-2 rounded-full border border-transparent bg-gray-100 text-gray-800 hover:bg-gray-200 focus:outline-none focus:bg-gray-200 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-700 dark:hover:bg-neutral-600 dark:text-neutral-400 dark:focus:bg-neutral-600"
|
|
7463
|
-
},
|
|
7478
|
+
}, L[2] || (L[2] = [
|
|
7464
7479
|
o("span", { class: "sr-only" }, "Close", -1),
|
|
7465
7480
|
o("svg", {
|
|
7466
7481
|
class: "flex-shrink-0 w-4 h-4",
|
|
@@ -7477,7 +7492,7 @@ const yc = { class: "flex w-full h-full min-h-0 gap-6" }, bc = {
|
|
|
7477
7492
|
o("path", { d: "M18 6 6 18" }),
|
|
7478
7493
|
o("path", { d: "m6 6 12 12" })
|
|
7479
7494
|
], -1)
|
|
7480
|
-
])
|
|
7495
|
+
]))
|
|
7481
7496
|
]),
|
|
7482
7497
|
o("div", Cc, [
|
|
7483
7498
|
r.value ? (d(), ge(it, {
|
|
@@ -7753,11 +7768,11 @@ function tf(e, t, l, n, r, a) {
|
|
|
7753
7768
|
], -1))
|
|
7754
7769
|
], !0)
|
|
7755
7770
|
], 8, Yc),
|
|
7756
|
-
(d(), ge(
|
|
7771
|
+
(d(), ge(rt(e.headingClickable ? "button" : "span"), {
|
|
7757
7772
|
class: "v3dp__heading__center",
|
|
7758
7773
|
onClick: t[1] || (t[1] = Le((s) => e.$emit("heading"), ["stop", "prevent"]))
|
|
7759
7774
|
}, {
|
|
7760
|
-
default:
|
|
7775
|
+
default: Re(() => [
|
|
7761
7776
|
ze(e.$slots, "heading", {}, void 0, !0)
|
|
7762
7777
|
]),
|
|
7763
7778
|
_: 3
|
|
@@ -7819,7 +7834,7 @@ function tf(e, t, l, n, r, a) {
|
|
|
7819
7834
|
])
|
|
7820
7835
|
], 38);
|
|
7821
7836
|
}
|
|
7822
|
-
const Rt = /* @__PURE__ */ fe(Kc, [["render", tf], ["__scopeId", "data-v-
|
|
7837
|
+
const Rt = /* @__PURE__ */ fe(Kc, [["render", tf], ["__scopeId", "data-v-bc92af04"]]), lf = oe({
|
|
7823
7838
|
components: {
|
|
7824
7839
|
PickerPopup: Rt
|
|
7825
7840
|
},
|
|
@@ -7887,7 +7902,7 @@ function nf(e, t, l, n, r, a) {
|
|
|
7887
7902
|
onRight: e.nextPage,
|
|
7888
7903
|
onElementClick: t[0] || (t[0] = (i) => e.$emit("select", i))
|
|
7889
7904
|
}, {
|
|
7890
|
-
heading:
|
|
7905
|
+
heading: Re(() => [
|
|
7891
7906
|
Ee(te(e.heading), 1)
|
|
7892
7907
|
]),
|
|
7893
7908
|
_: 1
|
|
@@ -7971,7 +7986,7 @@ function rf(e, t, l, n, r, a) {
|
|
|
7971
7986
|
onHeading: t[0] || (t[0] = (i) => e.$emit("back")),
|
|
7972
7987
|
onElementClick: t[1] || (t[1] = (i) => e.$emit("select", i))
|
|
7973
7988
|
}, {
|
|
7974
|
-
heading:
|
|
7989
|
+
heading: Re(() => [
|
|
7975
7990
|
Ee(te(e.heading), 1)
|
|
7976
7991
|
]),
|
|
7977
7992
|
_: 1
|
|
@@ -8099,10 +8114,10 @@ function df(e, t, l, n, r, a) {
|
|
|
8099
8114
|
onHeading: t[0] || (t[0] = (i) => e.$emit("back")),
|
|
8100
8115
|
onElementClick: t[1] || (t[1] = (i) => e.$emit("select", i))
|
|
8101
8116
|
}, {
|
|
8102
|
-
heading:
|
|
8117
|
+
heading: Re(() => [
|
|
8103
8118
|
Ee(te(e.heading), 1)
|
|
8104
8119
|
]),
|
|
8105
|
-
subheading:
|
|
8120
|
+
subheading: Re(() => [
|
|
8106
8121
|
(d(!0), p(ve, null, Ve(e.weekDays, (i, f) => (d(), p("span", {
|
|
8107
8122
|
key: i,
|
|
8108
8123
|
class: G(`v3dp__subheading__weekday__${f}`)
|
|
@@ -8222,10 +8237,10 @@ function gf(e, t, l, n, r, a) {
|
|
|
8222
8237
|
viewMode: "time",
|
|
8223
8238
|
onHeading: t[0] || (t[0] = (i) => e.$emit("back"))
|
|
8224
8239
|
}, {
|
|
8225
|
-
heading:
|
|
8240
|
+
heading: Re(() => [
|
|
8226
8241
|
Ee(te(e.padStartZero(e.hours)) + ":" + te(e.padStartZero(e.minutes)), 1)
|
|
8227
8242
|
]),
|
|
8228
|
-
body:
|
|
8243
|
+
body: Re(() => [
|
|
8229
8244
|
o("div", pf, [
|
|
8230
8245
|
(d(!0), p(ve, null, Ve(e.hoursList, (i) => (d(), p("button", {
|
|
8231
8246
|
key: i.value,
|
|
@@ -8254,7 +8269,7 @@ function gf(e, t, l, n, r, a) {
|
|
|
8254
8269
|
_: 1
|
|
8255
8270
|
});
|
|
8256
8271
|
}
|
|
8257
|
-
const yf = /* @__PURE__ */ fe(ff, [["render", gf], ["__scopeId", "data-v-
|
|
8272
|
+
const yf = /* @__PURE__ */ fe(ff, [["render", gf], ["__scopeId", "data-v-610b89e1"]]), jt = ["time", "day", "month", "year"], bf = (e, t, l = void 0) => {
|
|
8258
8273
|
let n = l || /* @__PURE__ */ new Date();
|
|
8259
8274
|
const r = Uc([e, n]);
|
|
8260
8275
|
r && (n = r);
|
|
@@ -8464,7 +8479,7 @@ const yf = /* @__PURE__ */ fe(ff, [["render", gf], ["__scopeId", "data-v-43e01bf
|
|
|
8464
8479
|
U && (r.value = U);
|
|
8465
8480
|
}), yt(() => {
|
|
8466
8481
|
i.value = e.modelValue && Pe(e.modelValue) ? zt(e.modelValue, e.inputFormat) : "";
|
|
8467
|
-
}),
|
|
8482
|
+
}), Ue(() => {
|
|
8468
8483
|
m.value && Oe(() => {
|
|
8469
8484
|
b();
|
|
8470
8485
|
});
|
|
@@ -8821,7 +8836,7 @@ const Cf = /* @__PURE__ */ fe(wf, [["render", $f]]), Vf = /* @__PURE__ */ oe({
|
|
|
8821
8836
|
}, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "typeable", "week-day-names", "week-starts-on", "starting-view", "minimum-view", "input-format", "name", "class"])
|
|
8822
8837
|
], 6));
|
|
8823
8838
|
}
|
|
8824
|
-
}),
|
|
8839
|
+
}), Sf = /* @__PURE__ */ fe(Vf, [["__scopeId", "data-v-a65a2ac3"]]), wl = (e = { mode: "edit", schema: null }) => new Promise((t) => {
|
|
8825
8840
|
const { close: l } = ql({
|
|
8826
8841
|
title: e.mode === "add" ? "Додати" : "Редагувати",
|
|
8827
8842
|
template: "",
|
|
@@ -8851,17 +8866,17 @@ export {
|
|
|
8851
8866
|
Sd as VsInputAddress,
|
|
8852
8867
|
od as VsInputArray,
|
|
8853
8868
|
Jt as VsInputArraySelect,
|
|
8854
|
-
|
|
8869
|
+
ca as VsInputCheckbox,
|
|
8855
8870
|
Cu as VsInputCodegen,
|
|
8856
8871
|
Ju as VsInputColor,
|
|
8857
|
-
|
|
8858
|
-
|
|
8872
|
+
gr as VsInputContainer,
|
|
8873
|
+
Sf as VsInputDate,
|
|
8859
8874
|
Ml as VsInputEmail,
|
|
8860
|
-
|
|
8861
|
-
|
|
8875
|
+
to as VsInputFile,
|
|
8876
|
+
Go as VsInputFileList,
|
|
8862
8877
|
ju as VsInputKeyValue,
|
|
8863
8878
|
Ll as VsInputMask,
|
|
8864
|
-
|
|
8879
|
+
yn as VsInputNumber,
|
|
8865
8880
|
dl as VsInputRadio,
|
|
8866
8881
|
td as VsInputRange,
|
|
8867
8882
|
Ur as VsInputRichtext,
|
|
@@ -8873,7 +8888,7 @@ export {
|
|
|
8873
8888
|
Sl as VsInputTel,
|
|
8874
8889
|
xt as VsInputText,
|
|
8875
8890
|
Ku as VsInputTextArray,
|
|
8876
|
-
|
|
8891
|
+
zr as VsInputTextarea,
|
|
8877
8892
|
it as default,
|
|
8878
8893
|
Qd as inputs,
|
|
8879
8894
|
Ps as vsInputDatatable,
|