@opengis/admin 0.2.50 → 0.2.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{add-page-CqFZSfPN.js → add-page-BkQ7rV5d.js} +1 -1
- package/dist/{admin-interface-BbbMnpi9.js → admin-interface-Cmg6qRV_.js} +302 -316
- package/dist/{admin-view-CgrBpmwi.js → admin-view-B6AXI34l.js} +1 -1
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +73 -73
- package/dist/{card-view-DEYLjjBs.js → card-view-CMO4Duk9.js} +1 -1
- package/dist/{edit-page-Dbhk0RYj.js → edit-page-CxgQMttM.js} +1 -1
- package/dist/{import-file-2iLrGwLC.js → import-file-BDLZazNq.js} +10241 -10075
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/server/plugins/access/funcs/getAdminAccess.js +1 -1
- package/server/plugins/hook.js +6 -4
@@ -1,6 +1,6 @@
|
|
1
|
-
import { _ as
|
2
|
-
import { openBlock as l, createElementBlock as i, createTextVNode as j, toDisplayString as I, createCommentVNode as
|
3
|
-
const
|
1
|
+
import { _ as $, e as Be, f as Le, g as ze, d as F, I as Oe, h as O, A as U, V as Ue, i as Ne, j as Ee, k as He, l as Re, m as We, a as Je, u as Te, s as Ge } from "./import-file-BDLZazNq.js";
|
2
|
+
import { openBlock as l, createElementBlock as i, createTextVNode as j, toDisplayString as I, createCommentVNode as v, resolveComponent as p, Fragment as A, createElementVNode as o, createVNode as x, withCtx as T, createBlock as _, renderList as V, withModifiers as Ke, normalizeClass as D, createStaticVNode as Ie, withDirectives as N, vModelCheckbox as Qe, Transition as E, renderSlot as Xe, vShow as Se, normalizeStyle as B, getCurrentInstance as Ve, ref as L, resolveDynamicComponent as z } from "vue";
|
3
|
+
const Ye = {
|
4
4
|
data() {
|
5
5
|
return {
|
6
6
|
currentSort: ""
|
@@ -58,7 +58,7 @@ const Xe = {
|
|
58
58
|
return `${this.data.name}-${t}` === this.selectedSortParam;
|
59
59
|
}
|
60
60
|
}
|
61
|
-
},
|
61
|
+
}, Ze = {
|
62
62
|
scope: "col",
|
63
63
|
class: "px-2 py-1 text-start"
|
64
64
|
}, et = {
|
@@ -83,7 +83,7 @@ const Xe = {
|
|
83
83
|
class: "text-sm text-stone-500 px-[4px] py-2.5 text-start font-normal"
|
84
84
|
};
|
85
85
|
function lt(t, e, n, a, s, r) {
|
86
|
-
return l(), i("th",
|
86
|
+
return l(), i("th", Ze, [
|
87
87
|
r.getVisibleIcon ? (l(), i("button", {
|
88
88
|
key: 0,
|
89
89
|
type: "button",
|
@@ -92,16 +92,16 @@ function lt(t, e, n, a, s, r) {
|
|
92
92
|
}, [
|
93
93
|
j(I(r.label) + " ", 1),
|
94
94
|
(l(), i("svg", et, [
|
95
|
-
s.currentSort === "asc" || s.currentSort === "" ? (l(), i("path", tt)) :
|
96
|
-
s.currentSort === "desc" || s.currentSort === "" ? (l(), i("path", st)) :
|
95
|
+
s.currentSort === "asc" || s.currentSort === "" ? (l(), i("path", tt)) : v("", !0),
|
96
|
+
s.currentSort === "desc" || s.currentSort === "" ? (l(), i("path", st)) : v("", !0)
|
97
97
|
]))
|
98
98
|
])) : (l(), i("p", nt, I(r.label), 1))
|
99
99
|
]);
|
100
100
|
}
|
101
|
-
const ot = /* @__PURE__ */
|
101
|
+
const ot = /* @__PURE__ */ $(Ye, [["render", lt]]), rt = {
|
102
102
|
components: {
|
103
|
-
IconMore:
|
104
|
-
IconDelete:
|
103
|
+
IconMore: Be,
|
104
|
+
IconDelete: Le,
|
105
105
|
IconEdit: ze
|
106
106
|
},
|
107
107
|
emits: ["updateTable"],
|
@@ -186,66 +186,66 @@ const ot = /* @__PURE__ */ C(Xe, [["render", lt]]), rt = {
|
|
186
186
|
class: "h-[1px] w-[80%] bg-gray-200 ml-auto mr-auto"
|
187
187
|
}, bt = { class: "p-4" }, ht = { class: "flex justify-end mt-4 gap-x-3" };
|
188
188
|
function ft(t, e, n, a, s, r) {
|
189
|
-
const u = p("IconMore"), f = p("IconEdit"), y = p("router-link"), h = p("IconDelete"),
|
190
|
-
return l(), i(
|
189
|
+
const u = p("IconMore"), f = p("IconEdit"), y = p("router-link"), h = p("IconDelete"), k = p("VsPopover"), c = p("VsDialog");
|
190
|
+
return l(), i(A, null, [
|
191
191
|
o("div", at, [
|
192
|
-
|
192
|
+
x(k, {
|
193
193
|
trigger: "click",
|
194
194
|
placement: "bottom-left"
|
195
195
|
}, {
|
196
|
-
reference:
|
196
|
+
reference: T(() => [
|
197
197
|
o("button", it, [
|
198
|
-
|
198
|
+
x(u, {
|
199
199
|
height: "16",
|
200
200
|
width: "16"
|
201
201
|
})
|
202
202
|
])
|
203
203
|
]),
|
204
|
-
default:
|
205
|
-
var m, d, w,
|
204
|
+
default: T(() => {
|
205
|
+
var m, d, w, g, C;
|
206
206
|
return [
|
207
207
|
o("div", ct, [
|
208
|
-
(m = n.actions) != null && m.includes("edit") && n.isForm ? (l(),
|
208
|
+
(m = n.actions) != null && m.includes("edit") && n.isForm ? (l(), _(y, {
|
209
209
|
key: 0,
|
210
|
-
to: `/edit?table=${(w = (d = t.$route) == null ? void 0 : d.params) == null ? void 0 : w.catchAll}&id=${(
|
210
|
+
to: `/edit?table=${(w = (d = t.$route) == null ? void 0 : d.params) == null ? void 0 : w.catchAll}&id=${(g = n.item) == null ? void 0 : g.id}`,
|
211
211
|
class: "w-full flex items-center gap-x-3 py-1.5 px-2 rounded-lg text-[13px] text-stone-800 hover:bg-stone-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-100"
|
212
212
|
}, {
|
213
|
-
default:
|
214
|
-
|
213
|
+
default: T(() => [
|
214
|
+
x(f, { color: "#000" }),
|
215
215
|
e[4] || (e[4] = j(" Редагувати "))
|
216
216
|
]),
|
217
217
|
_: 1
|
218
|
-
}, 8, ["to"])) :
|
219
|
-
(l(!0), i(
|
218
|
+
}, 8, ["to"])) : v("", !0),
|
219
|
+
(l(!0), i(A, null, V(r.getCustomActions, (S, q) => (l(), i("button", {
|
220
220
|
key: q,
|
221
221
|
onClick: (P) => r.customButtonAction(S),
|
222
222
|
class: "w-full flex items-center gap-x-3 py-1.5 px-2 rounded-lg text-[13px] text-stone-800 hover:bg-stone-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-100"
|
223
223
|
}, [
|
224
|
-
|
224
|
+
x(h, { class: "opacity-0" }),
|
225
225
|
o("span", dt, I(S == null ? void 0 : S.label), 1)
|
226
226
|
], 8, ut))), 128)),
|
227
|
-
n.isForm ? (l(), i("div", pt)) :
|
228
|
-
(
|
227
|
+
n.isForm ? (l(), i("div", pt)) : v("", !0),
|
228
|
+
(C = n.actions) != null && C.includes("del") ? (l(), i("button", {
|
229
229
|
key: 2,
|
230
|
-
onClick: e[0] || (e[0] =
|
230
|
+
onClick: e[0] || (e[0] = Ke((...S) => r.openConfirm && r.openConfirm(...S), ["stop"])),
|
231
231
|
class: "w-full flex items-center gap-x-3 py-1.5 px-2 rounded-lg text-[13px] text-stone-800 hover:bg-stone-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-100"
|
232
232
|
}, [
|
233
|
-
|
233
|
+
x(h),
|
234
234
|
e[5] || (e[5] = o("span", { class: "text-gray-800" }, "Видалити", -1))
|
235
|
-
])) :
|
235
|
+
])) : v("", !0)
|
236
236
|
])
|
237
237
|
];
|
238
238
|
}),
|
239
239
|
_: 1
|
240
240
|
})
|
241
241
|
]),
|
242
|
-
|
242
|
+
x(c, {
|
243
243
|
visible: s.isDeleteConfirm,
|
244
244
|
"onUpdate:visible": e[3] || (e[3] = (m) => s.isDeleteConfirm = m),
|
245
245
|
size: "small",
|
246
246
|
title: "Ви впевнені?"
|
247
247
|
}, {
|
248
|
-
default:
|
248
|
+
default: T(() => [
|
249
249
|
o("div", bt, [
|
250
250
|
e[6] || (e[6] = o("p", { class: "mt-1 text-gray-500 dark:text-neutral-500" }, " Ви впевнені, що хочете видалити цей об'єкт? ", -1)),
|
251
251
|
o("div", ht, [
|
@@ -266,7 +266,7 @@ function ft(t, e, n, a, s, r) {
|
|
266
266
|
}, 8, ["visible"])
|
267
267
|
], 64);
|
268
268
|
}
|
269
|
-
const mt = /* @__PURE__ */
|
269
|
+
const mt = /* @__PURE__ */ $(rt, [["render", ft]]), gt = {}, xt = {
|
270
270
|
class: "flex-shrink-0 mt-0.5 size-3.5",
|
271
271
|
xmlns: "http://www.w3.org/2000/svg",
|
272
272
|
viewBox: "0 0 24 24",
|
@@ -284,7 +284,7 @@ function yt(t, e, n, a, s, r) {
|
|
284
284
|
o("path", { d: "M17 4v16" }, null, -1)
|
285
285
|
]));
|
286
286
|
}
|
287
|
-
const _t = /* @__PURE__ */
|
287
|
+
const _t = /* @__PURE__ */ $(gt, [["render", yt]]), kt = {}, vt = {
|
288
288
|
xmlns: "http://www.w3.org/2000/svg",
|
289
289
|
width: "24",
|
290
290
|
height: "24",
|
@@ -297,7 +297,7 @@ const _t = /* @__PURE__ */ C(gt, [["render", yt]]), vt = {}, kt = {
|
|
297
297
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-rosette-discount-check"
|
298
298
|
};
|
299
299
|
function wt(t, e, n, a, s, r) {
|
300
|
-
return l(), i("svg",
|
300
|
+
return l(), i("svg", vt, e[0] || (e[0] = [
|
301
301
|
o("path", {
|
302
302
|
stroke: "none",
|
303
303
|
d: "M0 0h24v24H0z",
|
@@ -307,7 +307,7 @@ function wt(t, e, n, a, s, r) {
|
|
307
307
|
o("path", { d: "M9 12l2 2l4 -4" }, null, -1)
|
308
308
|
]));
|
309
309
|
}
|
310
|
-
const Ct = /* @__PURE__ */
|
310
|
+
const Ct = /* @__PURE__ */ $(kt, [["render", wt]]), $t = {
|
311
311
|
components: { IconExport: _t, IconChevronDown: Oe, IconSuccess: Ct },
|
312
312
|
props: {
|
313
313
|
table: String,
|
@@ -419,7 +419,7 @@ const Ct = /* @__PURE__ */ C(vt, [["render", wt]]), $t = {
|
|
419
419
|
}, It = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, St = { class: "flex items-center" }, Vt = { class: "flex items-center gap-[10px] ml-auto" }, Dt = ["onClick"], Ft = {
|
420
420
|
key: 0,
|
421
421
|
class: "block h-[8px] w-[8px] rounded-full bg-blue-500"
|
422
|
-
}, jt = { class: "mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]" }, Mt = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, qt = { class: "mt-2 space-y-2" }, Pt = ["id", "onChange"],
|
422
|
+
}, jt = { class: "mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]" }, Mt = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, qt = { class: "mt-2 space-y-2" }, Pt = ["id", "onChange"], Bt = ["for"], Lt = {
|
423
423
|
key: 0,
|
424
424
|
class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
|
425
425
|
}, zt = {
|
@@ -427,31 +427,31 @@ const Ct = /* @__PURE__ */ C(vt, [["render", wt]]), $t = {
|
|
427
427
|
class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
|
428
428
|
};
|
429
429
|
function Ot(t, e, n, a, s, r) {
|
430
|
-
const u = p("IconExport"), f = p("IconChevronDown"), y = p("IconSuccess"), h = p("VsCheckbox"),
|
431
|
-
return l(), i(
|
430
|
+
const u = p("IconExport"), f = p("IconChevronDown"), y = p("IconSuccess"), h = p("VsCheckbox"), k = p("VsDialog");
|
431
|
+
return l(), i(A, null, [
|
432
432
|
o("button", {
|
433
433
|
onClick: e[0] || (e[0] = (c) => s.isOpen = !0),
|
434
434
|
class: "py-2 max-h-[34px] px-2.5 md:inline-flex hidden items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"
|
435
435
|
}, [
|
436
|
-
|
436
|
+
x(u, {
|
437
437
|
height: "16",
|
438
438
|
width: "16"
|
439
439
|
}),
|
440
440
|
e[7] || (e[7] = j(" Експорт ")),
|
441
|
-
|
441
|
+
x(f, {
|
442
442
|
height: "12",
|
443
443
|
width: "16"
|
444
444
|
})
|
445
445
|
]),
|
446
|
-
|
446
|
+
x(k, {
|
447
447
|
visible: s.isOpen,
|
448
448
|
"onUpdate:visible": e[6] || (e[6] = (c) => s.isOpen = c),
|
449
449
|
title: "Експорт таблиці",
|
450
450
|
size: "small",
|
451
451
|
closeClickBack: !0
|
452
452
|
}, {
|
453
|
-
footer:
|
454
|
-
s.isSuccessTemplate ? (l(), i("div",
|
453
|
+
footer: T(() => [
|
454
|
+
s.isSuccessTemplate ? (l(), i("div", Lt, [
|
455
455
|
o("button", {
|
456
456
|
type: "button",
|
457
457
|
class: "inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-gray-800 align-middle bg-white border border-gray-200 rounded-lg shadow-sm text-nowrap text-start hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700",
|
@@ -475,9 +475,9 @@ function Ot(t, e, n, a, s, r) {
|
|
475
475
|
}, " Завантажити таблицю ")
|
476
476
|
]))
|
477
477
|
]),
|
478
|
-
default:
|
478
|
+
default: T(() => [
|
479
479
|
s.isSuccessTemplate ? (l(), i("div", At, [
|
480
|
-
|
480
|
+
x(y, {
|
481
481
|
height: "100",
|
482
482
|
width: "100",
|
483
483
|
class: "text-green-200 mb-[20px]"
|
@@ -488,7 +488,7 @@ function Ot(t, e, n, a, s, r) {
|
|
488
488
|
o("div", St, [
|
489
489
|
e[9] || (e[9] = o("h2", { class: "text-sm text-gray-500" }, " Виберіть стовпці таблиці для експорту: ", -1)),
|
490
490
|
o("div", Vt, [
|
491
|
-
(l(!0), i(
|
491
|
+
(l(!0), i(A, null, V(s.actions, (c) => (l(), i("button", {
|
492
492
|
key: c == null ? void 0 : c.name,
|
493
493
|
onClick: c == null ? void 0 : c.function,
|
494
494
|
class: "inline-flex items-center gap-[8px] justify-center px-3 py-2 text-sm font-medium text-gray-800 align-middle bg-white border-gray-200 text-nowrap text-start"
|
@@ -496,19 +496,19 @@ function Ot(t, e, n, a, s, r) {
|
|
496
496
|
o("span", {
|
497
497
|
class: D(["h-[14px] w-[14px] border rounded-full flex items-center justify-center", { "border-blue-500": (c == null ? void 0 : c.name) === s.activeAction }])
|
498
498
|
}, [
|
499
|
-
(c == null ? void 0 : c.name) === s.activeAction ? (l(), i("span", Ft)) :
|
499
|
+
(c == null ? void 0 : c.name) === s.activeAction ? (l(), i("span", Ft)) : v("", !0)
|
500
500
|
], 2),
|
501
501
|
j(" " + I(c == null ? void 0 : c.label), 1)
|
502
502
|
], 8, Dt))), 128))
|
503
503
|
])
|
504
504
|
]),
|
505
505
|
o("div", jt, [
|
506
|
-
(l(!0), i(
|
506
|
+
(l(!0), i(A, null, V(n.columns, (c, m) => (l(), i("div", {
|
507
507
|
class: "flex items-center",
|
508
508
|
key: m,
|
509
509
|
style: { width: "calc((100% - 10px) / 2)" }
|
510
510
|
}, [
|
511
|
-
|
511
|
+
x(h, {
|
512
512
|
class: "[&>label]:text-sm [&>label]:text-gray-800 [&>label]:ms-3 !gap-x-[1px] !p-0",
|
513
513
|
modelValue: s.cols,
|
514
514
|
"onUpdate:modelValue": e[1] || (e[1] = (d) => s.cols = d),
|
@@ -521,7 +521,7 @@ function Ot(t, e, n, a, s, r) {
|
|
521
521
|
o("div", Mt, [
|
522
522
|
e[10] || (e[10] = o("h2", { class: "text-sm text-gray-500" }, "Виберіть формат таблиці:", -1)),
|
523
523
|
o("div", qt, [
|
524
|
-
(l(!0), i(
|
524
|
+
(l(!0), i(A, null, V(s.tableFormats, (c, m) => (l(), i("div", {
|
525
525
|
class: "flex items-center",
|
526
526
|
key: m
|
527
527
|
}, [
|
@@ -535,7 +535,7 @@ function Ot(t, e, n, a, s, r) {
|
|
535
535
|
o("label", {
|
536
536
|
for: c,
|
537
537
|
class: "text-sm text-gray-800 ms-3 dark:text-neutral-400"
|
538
|
-
}, " Формат " + I(c), 9,
|
538
|
+
}, " Формат " + I(c), 9, Bt)
|
539
539
|
]))), 128))
|
540
540
|
])
|
541
541
|
])
|
@@ -545,7 +545,7 @@ function Ot(t, e, n, a, s, r) {
|
|
545
545
|
}, 8, ["visible"])
|
546
546
|
], 64);
|
547
547
|
}
|
548
|
-
const Ut = /* @__PURE__ */
|
548
|
+
const Ut = /* @__PURE__ */ $($t, [["render", Ot]]), Nt = {}, Et = {
|
549
549
|
xmlns: "http://www.w3.org/2000/svg",
|
550
550
|
viewBox: "0 0 24 24",
|
551
551
|
fill: "none",
|
@@ -560,7 +560,7 @@ function Ht(t, e, n, a, s, r) {
|
|
560
560
|
Ie('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M4 6l5.5 0"></path><path d="M4 10l5.5 0"></path><path d="M4 14l5.5 0"></path><path d="M4 18l5.5 0"></path><path d="M14.5 6l5.5 0"></path><path d="M14.5 10l5.5 0"></path><path d="M14.5 14l5.5 0"></path><path d="M14.5 18l5.5 0"></path>', 9)
|
561
561
|
]));
|
562
562
|
}
|
563
|
-
const Rt = /* @__PURE__ */
|
563
|
+
const Rt = /* @__PURE__ */ $(Nt, [["render", Ht]]), Wt = {
|
564
564
|
props: { column: Object },
|
565
565
|
emits: ["update-column"],
|
566
566
|
data() {
|
@@ -578,20 +578,20 @@ const Rt = /* @__PURE__ */ C(Nt, [["render", Ht]]), Wt = {
|
|
578
578
|
((t = this.column) == null ? void 0 : t.hidden) !== !0 && (this.value = !0);
|
579
579
|
}
|
580
580
|
}, Jt = { class: "flex w-full gap-[8px] items-centr" };
|
581
|
-
function
|
581
|
+
function Gt(t, e, n, a, s, r) {
|
582
582
|
var u, f;
|
583
583
|
return l(), i("label", Jt, [
|
584
|
-
|
584
|
+
N(o("input", {
|
585
585
|
"onUpdate:modelValue": e[0] || (e[0] = (y) => s.value = y),
|
586
586
|
type: "checkbox"
|
587
587
|
}, null, 512), [
|
588
|
-
[
|
588
|
+
[Qe, s.value]
|
589
589
|
]),
|
590
590
|
j(" " + I(((u = n.column) == null ? void 0 : u.ua) || ((f = n.column) == null ? void 0 : f.title)), 1)
|
591
591
|
]);
|
592
592
|
}
|
593
|
-
const
|
594
|
-
components: { IconColumns: Rt, AdminTableColumnsHiddenItem:
|
593
|
+
const Kt = /* @__PURE__ */ $(Wt, [["render", Gt]]), Qt = {
|
594
|
+
components: { IconColumns: Rt, AdminTableColumnsHiddenItem: Kt },
|
595
595
|
emits: ["update-columns"],
|
596
596
|
props: { columns: Array },
|
597
597
|
methods: {
|
@@ -600,27 +600,27 @@ const Gt = /* @__PURE__ */ C(Wt, [["render", Zt]]), Kt = {
|
|
600
600
|
n[e] = t, this.$emit("update-columns", [...n]);
|
601
601
|
}
|
602
602
|
}
|
603
|
-
},
|
603
|
+
}, Xt = { class: "py-2 max-h-[34px] px-2.5 md:inline-flex hidden items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700" }, Yt = { class: "py-[10px] px-[10px] w-[260px]" }, Zt = { class: "flex flex-col gap-[3px] max-h-[400px] w-full overflow-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar:horizontal]:h-[8px] [&::-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" };
|
604
604
|
function es(t, e, n, a, s, r) {
|
605
605
|
const u = p("IconColumns"), f = p("AdminTableColumnsHiddenItem"), y = p("VsPopover");
|
606
|
-
return l(),
|
606
|
+
return l(), _(y, {
|
607
607
|
trigger: "click",
|
608
608
|
placement: "bottom"
|
609
609
|
}, {
|
610
|
-
reference:
|
611
|
-
o("button",
|
612
|
-
|
610
|
+
reference: T(() => [
|
611
|
+
o("button", Xt, [
|
612
|
+
x(u, {
|
613
613
|
height: "20",
|
614
614
|
width: "16"
|
615
615
|
})
|
616
616
|
])
|
617
617
|
]),
|
618
|
-
default:
|
619
|
-
o("div",
|
618
|
+
default: T(() => [
|
619
|
+
o("div", Yt, [
|
620
620
|
e[0] || (e[0] = o("h2", { class: "text-sm mb-[8px]" }, "Оберіть колонки, щоб приховати", -1)),
|
621
|
-
o("ul",
|
622
|
-
(l(!0), i(
|
623
|
-
|
621
|
+
o("ul", Zt, [
|
622
|
+
(l(!0), i(A, null, V(n.columns, (h, k) => (l(), i("li", { key: k }, [
|
623
|
+
x(f, {
|
624
624
|
column: h,
|
625
625
|
onUpdateColumn: r.updateColumn
|
626
626
|
}, null, 8, ["column", "onUpdateColumn"])
|
@@ -631,22 +631,7 @@ function es(t, e, n, a, s, r) {
|
|
631
631
|
_: 1
|
632
632
|
});
|
633
633
|
}
|
634
|
-
const ts = /* @__PURE__ */
|
635
|
-
class: "hidden sm:block shrink-0 size-3",
|
636
|
-
xmlns: "http://www.w3.org/2000/svg",
|
637
|
-
fill: "currentColor",
|
638
|
-
viewBox: "0 0 16 16"
|
639
|
-
};
|
640
|
-
function ls(t, e, n, a, s, r) {
|
641
|
-
return l(), i("svg", ns, e[0] || (e[0] = [
|
642
|
-
o("path", {
|
643
|
-
"fill-rule": "evenodd",
|
644
|
-
"clip-rule": "evenodd",
|
645
|
-
d: "M8 1C8.55228 1 9 1.44772 9 2V7L14 7C14.5523 7 15 7.44771 15 8C15 8.55228 14.5523 9 14 9L9 9V14C9 14.5523 8.55228 15 8 15C7.44772 15 7 14.5523 7 14V9.00001L2 9.00001C1.44772 9.00001 1 8.5523 1 8.00001C0.999999 7.44773 1.44771 7.00001 2 7.00001L7 7.00001V2C7 1.44772 7.44772 1 8 1Z"
|
646
|
-
}, null, -1)
|
647
|
-
]));
|
648
|
-
}
|
649
|
-
const E = /* @__PURE__ */ C(ss, [["render", ls]]), os = {}, rs = {
|
634
|
+
const ts = /* @__PURE__ */ $(Qt, [["render", es]]), ss = {}, ns = {
|
650
635
|
xmlns: "http://www.w3.org/2000/svg",
|
651
636
|
viewBox: "0 0 24 24",
|
652
637
|
fill: "none",
|
@@ -656,8 +641,8 @@ const E = /* @__PURE__ */ C(ss, [["render", ls]]), os = {}, rs = {
|
|
656
641
|
"stroke-linejoin": "round",
|
657
642
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-minus"
|
658
643
|
};
|
659
|
-
function
|
660
|
-
return l(), i("svg",
|
644
|
+
function ls(t, e, n, a, s, r) {
|
645
|
+
return l(), i("svg", ns, e[0] || (e[0] = [
|
661
646
|
o("path", {
|
662
647
|
stroke: "none",
|
663
648
|
d: "M0 0h24v24H0z",
|
@@ -666,8 +651,8 @@ function as(t, e, n, a, s, r) {
|
|
666
651
|
o("path", { d: "M5 12l14 0" }, null, -1)
|
667
652
|
]));
|
668
653
|
}
|
669
|
-
const
|
670
|
-
components: { IconPlus:
|
654
|
+
const os = /* @__PURE__ */ $(ss, [["render", ls]]), rs = {
|
655
|
+
components: { IconPlus: O, IconMinus: os },
|
671
656
|
props: {
|
672
657
|
title: String,
|
673
658
|
defaultValue: { type: Boolean, default: () => !1 }
|
@@ -675,33 +660,33 @@ const is = /* @__PURE__ */ C(os, [["render", as]]), cs = {
|
|
675
660
|
data() {
|
676
661
|
return { expanded: this.defaultValue };
|
677
662
|
}
|
678
|
-
},
|
679
|
-
function
|
663
|
+
}, as = { class: "hs-accordion" }, is = { class: "py-0.5 flex items-center gap-x-0.5 w-full" }, cs = { class: "text-sm font-medium" }, us = { class: "relative inline-block w-full duration-150 cursor-pointer before:block before:absolute b" };
|
664
|
+
function ds(t, e, n, a, s, r) {
|
680
665
|
const u = p("IconPlus"), f = p("IconMinus");
|
681
666
|
return l(), i("div", null, [
|
682
667
|
o("div", null, [
|
683
|
-
o("div",
|
684
|
-
o("div",
|
668
|
+
o("div", as, [
|
669
|
+
o("div", is, [
|
685
670
|
o("div", {
|
686
671
|
onClick: e[0] || (e[0] = (y) => s.expanded = !s.expanded),
|
687
672
|
class: "rounded-md cursor-pointer grow"
|
688
673
|
}, [
|
689
|
-
o("span",
|
674
|
+
o("span", cs, I(n.title), 1)
|
690
675
|
]),
|
691
676
|
o("button", {
|
692
677
|
class: "flex items-center justify-center rounded-md size-6 hover:bg-gray-100",
|
693
678
|
onClick: e[1] || (e[1] = (y) => s.expanded = !s.expanded)
|
694
679
|
}, [
|
695
|
-
s.expanded ? (l(),
|
680
|
+
s.expanded ? (l(), _(f, {
|
696
681
|
key: 1,
|
697
682
|
width: "14"
|
698
|
-
})) : (l(),
|
683
|
+
})) : (l(), _(u, { key: 0 }))
|
699
684
|
])
|
700
685
|
]),
|
701
|
-
|
702
|
-
default:
|
703
|
-
|
704
|
-
|
686
|
+
x(E, { name: "fade" }, {
|
687
|
+
default: T(() => [
|
688
|
+
N(o("div", us, [
|
689
|
+
Xe(t.$slots, "default", {}, void 0, !0)
|
705
690
|
], 512), [
|
706
691
|
[Se, s.expanded]
|
707
692
|
])
|
@@ -712,48 +697,48 @@ function hs(t, e, n, a, s, r) {
|
|
712
697
|
])
|
713
698
|
]);
|
714
699
|
}
|
715
|
-
const
|
700
|
+
const ps = /* @__PURE__ */ $(rs, [["render", ds], ["__scopeId", "data-v-c6318482"]]), bs = {
|
716
701
|
components: {
|
717
|
-
AdminComponentIs:
|
718
|
-
AdminTree:
|
702
|
+
AdminComponentIs: U,
|
703
|
+
AdminTree: ps,
|
719
704
|
VsNoData: Ue,
|
720
705
|
VsWidgetComments: Ne,
|
721
706
|
VsWidgetMap: Ee,
|
722
707
|
VsWidgetFileList: He
|
723
708
|
},
|
724
709
|
props: { table: String, columns: Array, row: Object }
|
725
|
-
},
|
710
|
+
}, hs = {
|
726
711
|
class: "hs-accordion border-gray-100 w-[360px] shrink-0 overflow-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar:horizontal]:h-[8px] [&::-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",
|
727
712
|
style: { height: "calc(100vh - 310px)" }
|
728
|
-
},
|
713
|
+
}, fs = {
|
729
714
|
class: "border-l",
|
730
715
|
style: { height: "calc(100vh - 360px)" }
|
731
|
-
},
|
732
|
-
function
|
716
|
+
}, ms = { class: "flex items-center justify-between py-1 gap-x-4" }, gs = { class: "col-span-1 w-[50%]" }, xs = { class: "inline-flex items-center gap-x-2 text-[13px] text-gray-500 dark:text-neutral-500" }, ys = { class: "col-span-2 w-[50%]" }, _s = { class: "font-medium text-[13px] text-gray-800 dark:text-neutral-200" }, ks = { class: "table-info-card" }, vs = { class: "table-info-card" };
|
717
|
+
function ws(t, e, n, a, s, r) {
|
733
718
|
var m, d, w;
|
734
|
-
const u = p("AdminComponentIs"), f = p("AdminTree"), y = p("VsWidgetMap"), h = p("VsNoData"),
|
735
|
-
return l(), i("div",
|
719
|
+
const u = p("AdminComponentIs"), f = p("AdminTree"), y = p("VsWidgetMap"), h = p("VsNoData"), k = p("VsWidgetComments"), c = p("VsWidgetFileList");
|
720
|
+
return l(), i("div", hs, [
|
736
721
|
e[0] || (e[0] = o("div", { class: "p-[10px] pl-[18px] pb-[18px] border-b" }, [
|
737
722
|
o("h2", { class: "text-sm font-medium" }, "Інформація про об'єкт")
|
738
723
|
], -1)),
|
739
|
-
o("div",
|
740
|
-
(d = (m = t.$route) == null ? void 0 : m.query) != null && d.card ? (l(), i(
|
741
|
-
n.row ? (l(),
|
724
|
+
o("div", fs, [
|
725
|
+
(d = (m = t.$route) == null ? void 0 : m.query) != null && d.card ? (l(), i(A, { key: 0 }, [
|
726
|
+
n.row ? (l(), _(f, {
|
742
727
|
key: 0,
|
743
728
|
defaultValue: !0,
|
744
729
|
title: "Основна інформація",
|
745
730
|
class: "border-b p-[10px] py-[16px]"
|
746
731
|
}, {
|
747
|
-
default:
|
748
|
-
(l(!0), i(
|
749
|
-
o("dt",
|
750
|
-
o("p",
|
732
|
+
default: T(() => [
|
733
|
+
(l(!0), i(A, null, V(n.columns, (g) => (l(), i("dl", ms, [
|
734
|
+
o("dt", gs, [
|
735
|
+
o("p", xs, I((g == null ? void 0 : g.ua) || (g == null ? void 0 : g.title)) + ": ", 1)
|
751
736
|
]),
|
752
|
-
o("dd",
|
753
|
-
o("p",
|
754
|
-
|
737
|
+
o("dd", ys, [
|
738
|
+
o("p", _s, [
|
739
|
+
x(u, {
|
755
740
|
row: n.row,
|
756
|
-
column:
|
741
|
+
column: g,
|
757
742
|
table: n.table
|
758
743
|
}, null, 8, ["row", "column", "table"])
|
759
744
|
])
|
@@ -761,20 +746,20 @@ function As(t, e, n, a, s, r) {
|
|
761
746
|
]))), 256))
|
762
747
|
]),
|
763
748
|
_: 1
|
764
|
-
})) :
|
765
|
-
(w = n.row) != null && w.geom ? (l(),
|
749
|
+
})) : v("", !0),
|
750
|
+
(w = n.row) != null && w.geom ? (l(), _(f, {
|
766
751
|
key: 1,
|
767
752
|
title: "Карта",
|
768
753
|
class: "border-b p-[10px] py-[16px]"
|
769
754
|
}, {
|
770
|
-
default:
|
771
|
-
var
|
755
|
+
default: T(() => {
|
756
|
+
var g, C;
|
772
757
|
return [
|
773
|
-
(
|
758
|
+
(g = n.row) != null && g.geom ? (l(), _(y, {
|
774
759
|
key: 0,
|
775
|
-
geometry: (
|
760
|
+
geometry: (C = n.row) == null ? void 0 : C.geom,
|
776
761
|
zoom: 14
|
777
|
-
}, null, 8, ["geometry"])) : (l(),
|
762
|
+
}, null, 8, ["geometry"])) : (l(), _(h, {
|
778
763
|
key: 1,
|
779
764
|
title: "У об'єкта відсутня геометрія",
|
780
765
|
text: "",
|
@@ -783,47 +768,48 @@ function As(t, e, n, a, s, r) {
|
|
783
768
|
];
|
784
769
|
}),
|
785
770
|
_: 1
|
786
|
-
})) :
|
787
|
-
|
771
|
+
})) : v("", !0),
|
772
|
+
x(f, {
|
788
773
|
title: "Коментарі",
|
789
774
|
class: "border-b p-[10px] py-[16px]"
|
790
775
|
}, {
|
791
|
-
default:
|
792
|
-
var
|
776
|
+
default: T(() => {
|
777
|
+
var g;
|
793
778
|
return [
|
794
|
-
o("div",
|
795
|
-
|
796
|
-
id: (
|
779
|
+
o("div", ks, [
|
780
|
+
x(k, {
|
781
|
+
id: (g = n.row) == null ? void 0 : g.id
|
797
782
|
}, null, 8, ["id"])
|
798
783
|
])
|
799
784
|
];
|
800
785
|
}),
|
801
786
|
_: 1
|
802
787
|
}),
|
803
|
-
|
788
|
+
x(f, {
|
804
789
|
title: "Файли",
|
805
790
|
class: "border-b p-[10px] py-[16px]"
|
806
791
|
}, {
|
807
|
-
default:
|
808
|
-
var
|
792
|
+
default: T(() => {
|
793
|
+
var g, C;
|
809
794
|
return [
|
810
|
-
o("div",
|
811
|
-
|
812
|
-
|
813
|
-
|
795
|
+
o("div", vs, [
|
796
|
+
(l(), _(c, {
|
797
|
+
key: (g = n.row) == null ? void 0 : g.id,
|
798
|
+
id: (C = n.row) == null ? void 0 : C.id
|
799
|
+
}, null, 8, ["id"]))
|
814
800
|
])
|
815
801
|
];
|
816
802
|
}),
|
817
803
|
_: 1
|
818
804
|
})
|
819
|
-
], 64)) : (l(),
|
805
|
+
], 64)) : (l(), _(h, {
|
820
806
|
key: 1,
|
821
807
|
text: "Оберіть один з об'єктів в таблиці для відображення інформаціі про нього"
|
822
808
|
}))
|
823
809
|
])
|
824
810
|
]);
|
825
811
|
}
|
826
|
-
const
|
812
|
+
const Cs = /* @__PURE__ */ $(bs, [["render", ws]]), $s = {}, As = {
|
827
813
|
class: "size-4",
|
828
814
|
xmlns: "http://www.w3.org/2000/svg",
|
829
815
|
viewBox: "0 0 24 24",
|
@@ -833,8 +819,8 @@ const Ts = /* @__PURE__ */ C(ms, [["render", As]]), Is = {}, Ss = {
|
|
833
819
|
"stroke-linecap": "round",
|
834
820
|
"stroke-linejoin": "round"
|
835
821
|
};
|
836
|
-
function
|
837
|
-
return l(), i("svg",
|
822
|
+
function Ts(t, e, n, a, s, r) {
|
823
|
+
return l(), i("svg", As, e[0] || (e[0] = [
|
838
824
|
o("rect", {
|
839
825
|
width: "18",
|
840
826
|
height: "18",
|
@@ -846,7 +832,7 @@ function Vs(t, e, n, a, s, r) {
|
|
846
832
|
o("path", { d: "m8 9 3 3-3 3" }, null, -1)
|
847
833
|
]));
|
848
834
|
}
|
849
|
-
const
|
835
|
+
const Is = /* @__PURE__ */ $($s, [["render", Ts]]), Ss = {}, Vs = {
|
850
836
|
class: "h21yx vs0hq",
|
851
837
|
xmlns: "http://www.w3.org/2000/svg",
|
852
838
|
width: "24",
|
@@ -858,19 +844,19 @@ const Ds = /* @__PURE__ */ C(Is, [["render", Vs]]), Fs = {}, js = {
|
|
858
844
|
"stroke-linecap": "round",
|
859
845
|
"stroke-linejoin": "round"
|
860
846
|
};
|
861
|
-
function
|
862
|
-
return l(), i("svg",
|
847
|
+
function Ds(t, e, n, a, s, r) {
|
848
|
+
return l(), i("svg", Vs, e[0] || (e[0] = [
|
863
849
|
Ie('<line x1="21" x2="14" y1="4" y2="4"></line><line x1="10" x2="3" y1="4" y2="4"></line><line x1="21" x2="12" y1="12" y2="12"></line><line x1="8" x2="3" y1="12" y2="12"></line><line x1="21" x2="16" y1="20" y2="20"></line><line x1="12" x2="3" y1="20" y2="20"></line><line x1="14" x2="14" y1="2" y2="6"></line><line x1="8" x2="8" y1="10" y2="14"></line><line x1="16" x2="16" y1="18" y2="22"></line>', 9)
|
864
850
|
]));
|
865
851
|
}
|
866
|
-
const
|
852
|
+
const Fs = /* @__PURE__ */ $(Ss, [["render", Ds]]), js = {
|
867
853
|
emits: ["filterChange"],
|
868
854
|
props: {
|
869
855
|
scheme: { type: Object },
|
870
856
|
onFilters: { type: Number },
|
871
857
|
table: { type: String }
|
872
858
|
},
|
873
|
-
components: { IconFilter:
|
859
|
+
components: { IconFilter: Fs },
|
874
860
|
data() {
|
875
861
|
return {
|
876
862
|
isFilters: !1
|
@@ -881,32 +867,32 @@ const qs = /* @__PURE__ */ C(Fs, [["render", Ms]]), Ps = {
|
|
881
867
|
this.isFilters && t.classList.contains("filter-container") && (this.isFilters = !1);
|
882
868
|
}
|
883
869
|
}
|
884
|
-
},
|
885
|
-
function
|
870
|
+
}, Ms = { key: 0 }, qs = { class: "filter-content h-screen bg-white w-[400px] p-[20px] pt-[10px] overflow-x-auto bg-white [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar:horizontal]:h-[8px] [&::-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" };
|
871
|
+
function Ps(t, e, n, a, s, r) {
|
886
872
|
const u = p("IconFilter"), f = p("VsFilter");
|
887
|
-
return l(), i(
|
873
|
+
return l(), i(A, null, [
|
888
874
|
o("button", {
|
889
875
|
onClick: e[0] || (e[0] = (y) => s.isFilters = !s.isFilters),
|
890
876
|
class: "py-2 px-2.5 max-h-[34px] inline-flex items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none"
|
891
877
|
}, [
|
892
|
-
|
878
|
+
x(u, {
|
893
879
|
height: "16",
|
894
880
|
width: "16"
|
895
881
|
}),
|
896
882
|
e[4] || (e[4] = j(" Фільтри ")),
|
897
|
-
n.onFilters ? (l(), i("span",
|
883
|
+
n.onFilters ? (l(), i("span", Ms, I(n.onFilters), 1)) : v("", !0)
|
898
884
|
]),
|
899
|
-
|
900
|
-
default:
|
885
|
+
x(E, { name: "fade" }, {
|
886
|
+
default: T(() => {
|
901
887
|
var y;
|
902
888
|
return [
|
903
|
-
|
889
|
+
N(o("div", {
|
904
890
|
onClick: e[3] || (e[3] = (...h) => r.closeFilter && r.closeFilter(...h)),
|
905
891
|
style: { height: "100vh" },
|
906
892
|
class: "fixed filter-container top-0 flex justify-end items-center z-[2] right-0 left-0 bottom-0 bg-[rgba(0,0,0,0.5)]"
|
907
893
|
}, [
|
908
|
-
o("div",
|
909
|
-
(y = n.scheme) != null && y.length ? (l(),
|
894
|
+
o("div", qs, [
|
895
|
+
(y = n.scheme) != null && y.length ? (l(), _(f, {
|
910
896
|
key: 0,
|
911
897
|
ref: "filter",
|
912
898
|
scheme: n.scheme,
|
@@ -918,7 +904,7 @@ function zs(t, e, n, a, s, r) {
|
|
918
904
|
onFilterChange: e[1] || (e[1] = (h) => t.$emit("filterChange", h)),
|
919
905
|
closeFilterBtn: !0,
|
920
906
|
onFilterClose: e[2] || (e[2] = (h) => s.isFilters = !1)
|
921
|
-
}, null, 8, ["scheme", "token"])) :
|
907
|
+
}, null, 8, ["scheme", "token"])) : v("", !0)
|
922
908
|
])
|
923
909
|
], 512), [
|
924
910
|
[Se, s.isFilters]
|
@@ -929,25 +915,25 @@ function zs(t, e, n, a, s, r) {
|
|
929
915
|
})
|
930
916
|
], 64);
|
931
917
|
}
|
932
|
-
const
|
918
|
+
const Bs = /* @__PURE__ */ $(js, [["render", Ps]]), Ls = {
|
933
919
|
props: { tabsList: { type: Array, default: () => [] }, filterState: String }
|
934
|
-
},
|
920
|
+
}, zs = {
|
935
921
|
class: "relative flex space-x-1 mb-[20px] after:absolute after:w-[99%] after:bottom-0 after:inset-x-0 after:border-b-2 after:border-gray-200 dark:after:border-neutral-700",
|
936
922
|
"aria-label": "Tabs",
|
937
923
|
role: "tablist",
|
938
924
|
"aria-orientation": "horizontal"
|
939
|
-
},
|
940
|
-
function
|
941
|
-
return l(), i("nav",
|
942
|
-
(l(!0), i(
|
925
|
+
}, Os = ["onClick"];
|
926
|
+
function Us(t, e, n, a, s, r) {
|
927
|
+
return l(), i("nav", zs, [
|
928
|
+
(l(!0), i(A, null, V(n.tabsList, (u) => (l(), i("button", {
|
943
929
|
onClick: (f) => t.$emit("update:filterState", u == null ? void 0 : u.name),
|
944
930
|
class: D(["hs-tab-active:after:bg-gray-800 hs-tab-active:text-gray-800 px-2.5 py-1.5 mb-2 relative inline-flex justify-center items-center gap-x-2 hover:bg-gray-100 text-gray-500 hover:text-gray-800 text-sm rounded-lg disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-100 after:absolute after:-bottom-2 after:inset-x-0 after:z-10 after:h-0.5 after:pointer-events-none dark:hs-tab-active:text-neutral-200 dark:hs-tab-active:after:bg-neutral-400 dark:text-neutral-500 dark:hover:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700 active", {
|
945
931
|
" font-semibold after:absolute after:bottom-[-8px] after:left-2.5 after:right-2.5 after:z-10 after:h-0.5 after:bg-gray-800": (u == null ? void 0 : u.name) === n.filterState
|
946
932
|
}])
|
947
|
-
}, I(u == null ? void 0 : u.label), 11,
|
933
|
+
}, I(u == null ? void 0 : u.label), 11, Os))), 256))
|
948
934
|
]);
|
949
935
|
}
|
950
|
-
const
|
936
|
+
const Ns = /* @__PURE__ */ $(Ls, [["render", Us]]), Es = {}, Hs = {
|
951
937
|
xmlns: "http://www.w3.org/2000/svg",
|
952
938
|
viewBox: "0 0 24 24",
|
953
939
|
fill: "none",
|
@@ -957,8 +943,8 @@ const Rs = /* @__PURE__ */ C(Us, [["render", Hs]]), Ws = {}, Js = {
|
|
957
943
|
"stroke-linejoin": "round",
|
958
944
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-filter"
|
959
945
|
};
|
960
|
-
function
|
961
|
-
return l(), i("svg",
|
946
|
+
function Rs(t, e, n, a, s, r) {
|
947
|
+
return l(), i("svg", Hs, e[0] || (e[0] = [
|
962
948
|
o("path", {
|
963
949
|
stroke: "none",
|
964
950
|
d: "M0 0h24v24H0z",
|
@@ -967,52 +953,52 @@ function Zs(t, e, n, a, s, r) {
|
|
967
953
|
o("path", { d: "M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z" }, null, -1)
|
968
954
|
]));
|
969
955
|
}
|
970
|
-
const
|
971
|
-
components: { IconFilter2:
|
956
|
+
const Ws = /* @__PURE__ */ $(Es, [["render", Rs]]), Js = {
|
957
|
+
components: { IconFilter2: Ws, IconCheck2: Re },
|
972
958
|
props: { filterCustom: String, customList: Array }
|
973
|
-
},
|
974
|
-
function
|
959
|
+
}, Gs = { class: "py-2 max-h-[34px] px-2.5 inline-flex items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700" }, Ks = { class: "flex flex-col p-[2px] gap-[2px] w-[170px]" }, Qs = ["onClick"], Xs = { class: "text-sm text-gray-800 ms-2" };
|
960
|
+
function Ys(t, e, n, a, s, r) {
|
975
961
|
const u = p("IconFilter2"), f = p("IconCheck2"), y = p("VsPopover");
|
976
|
-
return l(),
|
962
|
+
return l(), _(y, {
|
977
963
|
ref: "popover",
|
978
964
|
placement: "bottom"
|
979
965
|
}, {
|
980
|
-
reference:
|
981
|
-
o("button",
|
982
|
-
|
966
|
+
reference: T(() => [
|
967
|
+
o("button", Gs, [
|
968
|
+
x(u, {
|
983
969
|
height: "20",
|
984
970
|
width: "20"
|
985
971
|
})
|
986
972
|
])
|
987
973
|
]),
|
988
|
-
default:
|
989
|
-
o("div",
|
990
|
-
(l(!0), i(
|
974
|
+
default: T(() => [
|
975
|
+
o("div", Ks, [
|
976
|
+
(l(!0), i(A, null, V(n.customList, (h, k) => {
|
991
977
|
var c;
|
992
978
|
return l(), i("button", {
|
993
979
|
onClick: (m) => {
|
994
980
|
var d;
|
995
981
|
t.$emit("update:filterCustom", h == null ? void 0 : h.name), (d = t.$refs) == null || d.popover.togglePopover();
|
996
982
|
},
|
997
|
-
key:
|
983
|
+
key: k,
|
998
984
|
class: D(["flex items-center px-3 py-1 rounded-md cursor-pointer group hover:bg-gray-100", { "bg-gray-100": n.filterCustom === (h == null ? void 0 : h.name) }])
|
999
985
|
}, [
|
1000
986
|
o("span", {
|
1001
987
|
class: "block w-1 h-3 border-0 rounded-full appearance-none shrink-0 checked:bg-none",
|
1002
|
-
style:
|
988
|
+
style: B({ backgroundColor: ((c = t.option) == null ? void 0 : c.color) || "#ffffff" })
|
1003
989
|
}, null, 4),
|
1004
|
-
o("span",
|
1005
|
-
n.filterCustom === (h == null ? void 0 : h.name) ? (l(),
|
990
|
+
o("span", Xs, I(h == null ? void 0 : h.label), 1),
|
991
|
+
n.filterCustom === (h == null ? void 0 : h.name) ? (l(), _(f, {
|
1006
992
|
key: 0,
|
1007
993
|
class: "ml-auto size-3 shrink-0"
|
1008
|
-
})) :
|
1009
|
-
], 10,
|
994
|
+
})) : v("", !0)
|
995
|
+
], 10, Qs);
|
1010
996
|
}), 128)),
|
1011
997
|
o("button", {
|
1012
998
|
class: "flex items-center px-3 py-1 rounded-md cursor-pointer group hover:bg-gray-100",
|
1013
999
|
onClick: e[0] || (e[0] = (h) => {
|
1014
|
-
var
|
1015
|
-
t.$emit("update:filterCustom", void 0), (
|
1000
|
+
var k;
|
1001
|
+
t.$emit("update:filterCustom", void 0), (k = t.$refs) == null || k.popover.togglePopover();
|
1016
1002
|
})
|
1017
1003
|
}, " Скинути фільтри ")
|
1018
1004
|
])
|
@@ -1020,73 +1006,73 @@ function tn(t, e, n, a, s, r) {
|
|
1020
1006
|
_: 1
|
1021
1007
|
}, 512);
|
1022
1008
|
}
|
1023
|
-
const
|
1009
|
+
const Zs = /* @__PURE__ */ $(Js, [["render", Ys]]), en = { class: "flex items-center gap-x-2" }, tn = {
|
1024
1010
|
__name: "admin-table-custom-buttons",
|
1025
1011
|
props: {
|
1026
1012
|
slots: Object
|
1027
1013
|
},
|
1028
1014
|
setup(t) {
|
1029
|
-
var f, y, h,
|
1030
|
-
const { asyncTemplateSlot: e } = (c = (
|
1031
|
-
var m, d, w,
|
1015
|
+
var f, y, h, k, c;
|
1016
|
+
const { asyncTemplateSlot: e } = (c = (k = (h = (y = (f = Ve()) == null ? void 0 : f.appContext) == null ? void 0 : y.app) == null ? void 0 : h.config) == null ? void 0 : k.globalProperties) == null ? void 0 : c.utils, n = L(""), a = L(""), s = t, r = () => {
|
1017
|
+
var m, d, w, g, C;
|
1032
1018
|
if ((m = s.slots) != null && m.panelLeft || (a.value = "div"), (w = (d = s.slots) == null ? void 0 : d.panelLeft) != null && w.includes("<")) {
|
1033
|
-
const S = e("PanelLeft", (
|
1019
|
+
const S = e("PanelLeft", (g = s.slots) == null ? void 0 : g.panelLeft, [
|
1034
1020
|
"name"
|
1035
1021
|
]);
|
1036
1022
|
a.value = S;
|
1037
1023
|
} else
|
1038
|
-
a.value = (
|
1024
|
+
a.value = (C = s.slots) == null ? void 0 : C.panelLeft;
|
1039
1025
|
}, u = () => {
|
1040
|
-
var m, d, w,
|
1026
|
+
var m, d, w, g, C;
|
1041
1027
|
if ((m = s.slots) != null && m.panelRight || (n.value = "div"), (w = (d = s.slots) == null ? void 0 : d.panelRight) != null && w.includes("<")) {
|
1042
|
-
const S = e("PanelRight", (
|
1028
|
+
const S = e("PanelRight", (g = s.slots) == null ? void 0 : g.panelRight, [
|
1043
1029
|
"name"
|
1044
1030
|
]);
|
1045
1031
|
n.value = S;
|
1046
1032
|
} else
|
1047
|
-
n.value = (
|
1033
|
+
n.value = (C = s.slots) == null ? void 0 : C.panelRight;
|
1048
1034
|
};
|
1049
|
-
return r(), u(), (m, d) => (l(), i("div",
|
1050
|
-
(l(),
|
1051
|
-
(l(),
|
1035
|
+
return r(), u(), (m, d) => (l(), i("div", en, [
|
1036
|
+
(l(), _(z(a.value))),
|
1037
|
+
(l(), _(z(n.value)))
|
1052
1038
|
]));
|
1053
1039
|
}
|
1054
|
-
},
|
1040
|
+
}, sn = (t, e = 300) => {
|
1055
1041
|
let n;
|
1056
1042
|
return function(...a) {
|
1057
1043
|
clearTimeout(n), n = setTimeout(() => {
|
1058
1044
|
t.apply(this, a);
|
1059
1045
|
}, e);
|
1060
1046
|
};
|
1061
|
-
},
|
1047
|
+
}, nn = {
|
1062
1048
|
__name: "admin-custom-button-add",
|
1063
1049
|
props: {
|
1064
1050
|
slots: Object
|
1065
1051
|
},
|
1066
1052
|
setup(t) {
|
1067
1053
|
var r, u, f, y, h;
|
1068
|
-
const { asyncTemplateSlot: e } = (h = (y = (f = (u = (r = Ve()) == null ? void 0 : r.appContext) == null ? void 0 : u.app) == null ? void 0 : f.config) == null ? void 0 : y.globalProperties) == null ? void 0 : h.utils, n =
|
1054
|
+
const { asyncTemplateSlot: e } = (h = (y = (f = (u = (r = Ve()) == null ? void 0 : r.appContext) == null ? void 0 : u.app) == null ? void 0 : f.config) == null ? void 0 : y.globalProperties) == null ? void 0 : h.utils, n = L(""), a = t;
|
1069
1055
|
return (() => {
|
1070
|
-
var
|
1071
|
-
if ((
|
1072
|
-
const
|
1056
|
+
var k, c, m, d, w;
|
1057
|
+
if ((k = a.slots) != null && k.addButton || (n.value = "div"), (m = (c = a.slots) == null ? void 0 : c.addButton) != null && m.includes("<")) {
|
1058
|
+
const g = e("addButton", (d = a.slots) == null ? void 0 : d.addButton, [
|
1073
1059
|
"IconPlus"
|
1074
1060
|
]);
|
1075
|
-
n.value =
|
1061
|
+
n.value = g;
|
1076
1062
|
} else
|
1077
1063
|
n.value = (w = a.slots) == null ? void 0 : w.addButton;
|
1078
|
-
})(), (
|
1064
|
+
})(), (k, c) => n.value ? (l(), _(z(n.value), {
|
1079
1065
|
key: 0,
|
1080
|
-
IconPlus:
|
1081
|
-
})) :
|
1066
|
+
IconPlus: O
|
1067
|
+
})) : v("", !0);
|
1082
1068
|
}
|
1083
|
-
},
|
1069
|
+
}, ln = {
|
1084
1070
|
key: 0,
|
1085
1071
|
class: "px-4 py-3 text-sm text-gray-800 font-[500]"
|
1086
|
-
},
|
1072
|
+
}, on = {
|
1087
1073
|
key: 1,
|
1088
1074
|
class: "px-4 py-3 text-sm text-gray-800 font-[700]"
|
1089
|
-
},
|
1075
|
+
}, rn = {
|
1090
1076
|
__name: "admin-table-totals-list",
|
1091
1077
|
props: {
|
1092
1078
|
columns: { type: Array, default: () => [] },
|
@@ -1095,22 +1081,22 @@ const sn = /* @__PURE__ */ C(Ks, [["render", tn]]), nn = { class: "flex items-ce
|
|
1095
1081
|
},
|
1096
1082
|
setup(t) {
|
1097
1083
|
return (e, n) => (l(), i("tr", null, [
|
1098
|
-
(l(!0), i(
|
1084
|
+
(l(!0), i(A, null, V(t.columns, (a) => {
|
1099
1085
|
var s;
|
1100
|
-
return l(), i(
|
1086
|
+
return l(), i(A, {
|
1101
1087
|
key: a == null ? void 0 : a.name
|
1102
1088
|
}, [
|
1103
|
-
(s = t.agg) != null && s[a == null ? void 0 : a.name] ? (l(), i("td",
|
1104
|
-
|
1089
|
+
(s = t.agg) != null && s[a == null ? void 0 : a.name] ? (l(), i("td", ln, [
|
1090
|
+
x(U, {
|
1105
1091
|
column: a,
|
1106
1092
|
row: t.agg
|
1107
1093
|
}, null, 8, ["column", "row"])
|
1108
|
-
])) : (l(), i("td",
|
1094
|
+
])) : (l(), i("td", on))
|
1109
1095
|
], 64);
|
1110
1096
|
}), 128))
|
1111
1097
|
]));
|
1112
1098
|
}
|
1113
|
-
},
|
1099
|
+
}, an = {
|
1114
1100
|
props: { table: String, title: String },
|
1115
1101
|
components: {
|
1116
1102
|
AdminTableControl: mt,
|
@@ -1118,17 +1104,17 @@ const sn = /* @__PURE__ */ C(Ks, [["render", tn]]), nn = { class: "flex items-ce
|
|
1118
1104
|
AdminTableColumnsHidden: ts,
|
1119
1105
|
AdminTableColumn: ot,
|
1120
1106
|
AdminNodata: We,
|
1121
|
-
IconPlus:
|
1107
|
+
IconPlus: O,
|
1122
1108
|
IconSearch: Je,
|
1123
|
-
AdminTableCardInfo:
|
1124
|
-
IconOpenCard:
|
1125
|
-
AdminComponentIs:
|
1126
|
-
AdminTableFilters:
|
1127
|
-
AdminTableTabs:
|
1128
|
-
AdminTableCustomFilters:
|
1129
|
-
AdminTableCustomButtons:
|
1130
|
-
AdminCustomButtonAdd:
|
1131
|
-
AdminTableTotalsList:
|
1109
|
+
AdminTableCardInfo: Cs,
|
1110
|
+
IconOpenCard: Is,
|
1111
|
+
AdminComponentIs: U,
|
1112
|
+
AdminTableFilters: Bs,
|
1113
|
+
AdminTableTabs: Ns,
|
1114
|
+
AdminTableCustomFilters: Zs,
|
1115
|
+
AdminTableCustomButtons: tn,
|
1116
|
+
AdminCustomButtonAdd: nn,
|
1117
|
+
AdminTableTotalsList: rn
|
1132
1118
|
},
|
1133
1119
|
data() {
|
1134
1120
|
return {
|
@@ -1184,7 +1170,7 @@ const sn = /* @__PURE__ */ C(Ks, [["render", tn]]), nn = { class: "flex items-ce
|
|
1184
1170
|
this.tableData = null, await this.getTableData();
|
1185
1171
|
},
|
1186
1172
|
searchValue: {
|
1187
|
-
handler:
|
1173
|
+
handler: sn(async function(t) {
|
1188
1174
|
var e;
|
1189
1175
|
await this.getTableData(), this.$router.push({
|
1190
1176
|
...this.$route,
|
@@ -1230,8 +1216,8 @@ const sn = /* @__PURE__ */ C(Ks, [["render", tn]]), nn = { class: "flex items-ce
|
|
1230
1216
|
},
|
1231
1217
|
methods: {
|
1232
1218
|
async checkUrlMounted() {
|
1233
|
-
var t, e, n, a, s, r, u, f, y, h,
|
1234
|
-
this.page = ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1, this.limit = ((a = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : a.limit) || 20, this.filters = ((u = decodeURI((r = (s = this.$route) == null ? void 0 : s.query) == null ? void 0 : r.filter)) == null ? void 0 : u.replaceAll("+", " ")) || null, this.filterState = ((y = (f = this.$route) == null ? void 0 : f.query) == null ? void 0 : y.filterState) || null, this.filterCustom = ((
|
1219
|
+
var t, e, n, a, s, r, u, f, y, h, k, c, m, d, w, g, C;
|
1220
|
+
this.page = ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1, this.limit = ((a = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : a.limit) || 20, this.filters = ((u = decodeURI((r = (s = this.$route) == null ? void 0 : s.query) == null ? void 0 : r.filter)) == null ? void 0 : u.replaceAll("+", " ")) || null, this.filterState = ((y = (f = this.$route) == null ? void 0 : f.query) == null ? void 0 : y.filterState) || null, this.filterCustom = ((k = (h = this.$route) == null ? void 0 : h.query) == null ? void 0 : k.custom) || null, this.searchValue = ((m = (c = this.$route) == null ? void 0 : c.query) == null ? void 0 : m.search) || "", this.visibleColumns = ((g = (w = (d = this.$route) == null ? void 0 : d.query) == null ? void 0 : w.columns) == null ? void 0 : g.split(",")) || [], (C = this.$route) != null && C.query.card && (this.isVisibleCardInfo = !0);
|
1235
1221
|
},
|
1236
1222
|
rowWidth(t) {
|
1237
1223
|
var n, a;
|
@@ -1245,7 +1231,7 @@ const sn = /* @__PURE__ */ C(Ks, [["render", tn]]), nn = { class: "flex items-ce
|
|
1245
1231
|
this.page = 1, this.visibleColumns = [], this.filterCustom = null, this.filterState = null, this.isVisibleCardInfo = !1, this.filterScheme = null, this.filters = null, this.onFilters = 0, this.searchValue = "";
|
1246
1232
|
},
|
1247
1233
|
async getTableData() {
|
1248
|
-
var t, e, n, a, s, r, u, f, y, h,
|
1234
|
+
var t, e, n, a, s, r, u, f, y, h, k;
|
1249
1235
|
try {
|
1250
1236
|
const { data: c } = await F.get(`/api/template/table/${this.table}`), m = await F.get(`/api/table-data/${this.table}`, {
|
1251
1237
|
params: {
|
@@ -1264,7 +1250,7 @@ const sn = /* @__PURE__ */ C(Ks, [["render", tn]]), nn = { class: "flex items-ce
|
|
1264
1250
|
}, this.initialHiddenColumns = (r = (s = (a = (n = this.tableData) == null ? void 0 : n.columns) == null ? void 0 : a.filter((d) => (d == null ? void 0 : d.hidden) !== !0)) == null ? void 0 : s.map((d) => d == null ? void 0 : d.name)) == null ? void 0 : r.join(","), (u = this.visibleColumns) != null && u.length ? (f = this.tableData) == null || f.columns.forEach((d) => {
|
1265
1251
|
var w;
|
1266
1252
|
(w = this.visibleColumns) != null && w.includes(d == null ? void 0 : d.name) ? d.hidden = !1 : d.hidden = !0;
|
1267
|
-
}) : this.visibleColumns = (
|
1253
|
+
}) : this.visibleColumns = (k = (h = (y = this.tableData) == null ? void 0 : y.columns) == null ? void 0 : h.filter((d) => (d == null ? void 0 : d.hidden) !== !0)) == null ? void 0 : k.map((d) => d == null ? void 0 : d.name);
|
1268
1254
|
} catch {
|
1269
1255
|
}
|
1270
1256
|
},
|
@@ -1312,36 +1298,36 @@ const sn = /* @__PURE__ */ C(Ks, [["render", tn]]), nn = { class: "flex items-ce
|
|
1312
1298
|
});
|
1313
1299
|
}
|
1314
1300
|
}
|
1315
|
-
},
|
1301
|
+
}, cn = { class: "w-[calc(100vw - 320px)] bg-gray-50" }, un = { class: "h-[76px] mt-[15px] flex items-center justify-between mx-[20px] px-[20px] bg-white border rounded-xl" }, dn = { class: "text-xl font-medium" }, pn = {
|
1316
1302
|
style: { height: "calc(100vh - 155px)" },
|
1317
1303
|
class: "bg-gray-50 p-[20px] flex pt-[10px] lg:w-[calc(100vw-260px)] w-[100vw]"
|
1318
|
-
},
|
1304
|
+
}, bn = { class: "bg-white w-full rounded-xl border p-[20px] pr-0" }, hn = { class: "flex" }, fn = { class: "flex gap-[6px] ml-auto" }, mn = { class: "inline-block w-full align-middle" }, gn = {
|
1319
1305
|
key: 0,
|
1320
1306
|
class: "relative min-w-full divide-y divide-gray-200 table-fixed w-max dark:divide-neutral-700"
|
1321
|
-
},
|
1307
|
+
}, xn = { class: "sticky top-[-1px] bg-white w-full after:absolute after:content-[''] after:block after:w-full after:h-px after:bg-stone-200" }, yn = { class: "right-0 border-t border-stone-200" }, _n = {
|
1322
1308
|
key: 0,
|
1323
1309
|
class: "w-[70px] sticky right-0 top-0"
|
1324
|
-
},
|
1310
|
+
}, kn = { class: "divide-y divide-gray-200" }, vn = { class: "px-4 py-3 text-sm text-gray-600" }, wn = ["onClick"], Cn = ["onClick"], $n = { class: "p-[20px] flex justify-start items-center w-full" }, An = { class: "w-[200px] md:inline-flex hidden" }, Tn = { class: "text-sm text-gray-600 dark:text-neutral-400" }, In = { class: "font-semibold text-gray-800 dark:text-neutral-200" }, Sn = { key: 0 }, Vn = {
|
1325
1311
|
key: 0,
|
1326
1312
|
class: "font-semibold text-gray-800 dark:text-neutral-200"
|
1327
1313
|
};
|
1328
|
-
function
|
1329
|
-
var H, R, W, J,
|
1330
|
-
const u = p("AdminCustomButtonAdd"), f = p("IconPlus"), y = p("router-link"), h = p("AdminTableTabs"),
|
1331
|
-
return l(), i("div",
|
1332
|
-
o("div",
|
1333
|
-
o("h2",
|
1334
|
-
r.isForm ? (l(), i(
|
1335
|
-
(R = (H = s.tableData) == null ? void 0 : H.slots) != null && R.addButton ? (l(),
|
1314
|
+
function Dn(t, e, n, a, s, r) {
|
1315
|
+
var H, R, W, J, G, K, Q, X, Y, Z, ee, te, se, ne, le, oe, re, ae, ie, ce, ue, de, pe, be, he, fe, me;
|
1316
|
+
const u = p("AdminCustomButtonAdd"), f = p("IconPlus"), y = p("router-link"), h = p("AdminTableTabs"), k = p("IconSearch"), c = p("VsText"), m = p("AdminTableCustomButtons"), d = p("AdminTableCustomFilters"), w = p("AdminTableColumnsHidden"), g = p("AdminTableExport"), C = p("AdminTableFilters"), S = p("IconOpenCard"), q = p("AdminTableColumn"), P = p("AdminComponentIs"), De = p("AdminTableControl"), Fe = p("AdminTableTotalsList"), je = p("AdminNodata"), Me = p("VsPagination"), qe = p("AdminTableCardInfo");
|
1317
|
+
return l(), i("div", cn, [
|
1318
|
+
o("div", un, [
|
1319
|
+
o("h2", dn, I(n.title), 1),
|
1320
|
+
r.isForm ? (l(), i(A, { key: 0 }, [
|
1321
|
+
(R = (H = s.tableData) == null ? void 0 : H.slots) != null && R.addButton ? (l(), _(u, {
|
1336
1322
|
key: 0,
|
1337
1323
|
slots: (W = s.tableData) == null ? void 0 : W.slots
|
1338
|
-
}, null, 8, ["slots"])) : (l(),
|
1324
|
+
}, null, 8, ["slots"])) : (l(), _(y, {
|
1339
1325
|
key: 1,
|
1340
|
-
to: `/add?table=${(
|
1326
|
+
to: `/add?table=${(G = (J = t.$route) == null ? void 0 : J.params) == null ? void 0 : G.catchAll}`,
|
1341
1327
|
class: "inline-flex items-center px-3 py-2 text-sm font-medium text-white duration-300 bg-blue-600 border border-transparent rounded-lg gap-x-2 hover:bg-blue-700 hover:text-white"
|
1342
1328
|
}, {
|
1343
|
-
default:
|
1344
|
-
|
1329
|
+
default: T(() => [
|
1330
|
+
x(f, {
|
1345
1331
|
height: "16",
|
1346
1332
|
width: "16"
|
1347
1333
|
}),
|
@@ -1349,51 +1335,51 @@ function Mn(t, e, n, a, s, r) {
|
|
1349
1335
|
]),
|
1350
1336
|
_: 1
|
1351
1337
|
}, 8, ["to"]))
|
1352
|
-
], 64)) :
|
1338
|
+
], 64)) : v("", !0)
|
1353
1339
|
]),
|
1354
|
-
o("div",
|
1355
|
-
o("div",
|
1356
|
-
(
|
1340
|
+
o("div", pn, [
|
1341
|
+
o("div", bn, [
|
1342
|
+
(Q = (K = s.tableData) == null ? void 0 : K.filterState) != null && Q.length ? (l(), _(h, {
|
1357
1343
|
key: 0,
|
1358
|
-
tabsList: (
|
1344
|
+
tabsList: (X = s.tableData) == null ? void 0 : X.filterState,
|
1359
1345
|
filterState: s.filterState,
|
1360
1346
|
"onUpdate:filterState": e[0] || (e[0] = (b) => s.filterState = b)
|
1361
|
-
}, null, 8, ["tabsList", "filterState"])) :
|
1362
|
-
o("div",
|
1347
|
+
}, null, 8, ["tabsList", "filterState"])) : v("", !0),
|
1348
|
+
o("div", hn, [
|
1363
1349
|
o("div", {
|
1364
1350
|
class: D([s.isVisibleCardInfo ? "w-[calc(100%-360px)]" : "w-full"])
|
1365
1351
|
}, [
|
1366
1352
|
o("div", {
|
1367
1353
|
class: D(["flex sm:grid sm:grid-cols-2 gap-x-2 sm:gap-x-5 mb-[10px] relative", { "pr-[20px]": !s.isVisibleCardInfo }])
|
1368
1354
|
}, [
|
1369
|
-
|
1355
|
+
x(k, {
|
1370
1356
|
height: "14",
|
1371
1357
|
width: "14",
|
1372
1358
|
class: "absolute top-[10px] left-[14px] text-gray-500 z-[1]"
|
1373
1359
|
}),
|
1374
|
-
|
1360
|
+
x(c, {
|
1375
1361
|
modelValue: s.searchValue,
|
1376
1362
|
"onUpdate:modelValue": e[1] || (e[1] = (b) => s.searchValue = b),
|
1377
1363
|
placeholder: "Пошук...",
|
1378
1364
|
clearable: !0,
|
1379
1365
|
class: "[&>input]:py-[7px] [&>input]:ps-10 [&>input]:pe-8 [&>input]:block [&>input]:w-full [&>input]:bg-gray-100 [&>input]:border-transparent [&>input]:rounded-lg [&>input]:text-sm [&>input]:focus:bg-white [&>input]:focus:border-blue-500 [&>input]:focus:ring-blue-500 [&>input]:disabled:opacity-50 [&>input]:disabled:pointer-events-none [&>input]:dark:bg-neutral-700 [&>input]:dark:border-transparent [&>input]:dark:text-neutral-400 [&>input]:dark:placeholder:text-neutral-400 dark:focus:bg-neutral-800 dark:focus:ring-neutral-600"
|
1380
1366
|
}, null, 8, ["modelValue"]),
|
1381
|
-
o("div",
|
1382
|
-
(
|
1367
|
+
o("div", fn, [
|
1368
|
+
(Y = s.tableData) != null && Y.slots ? (l(), _(m, {
|
1383
1369
|
key: 0,
|
1384
|
-
slots: (
|
1385
|
-
}, null, 8, ["slots"])) :
|
1386
|
-
(te = (ee = s.tableData) == null ? void 0 : ee.filterCustom) != null && te.length ? (l(),
|
1370
|
+
slots: (Z = s.tableData) == null ? void 0 : Z.slots
|
1371
|
+
}, null, 8, ["slots"])) : v("", !0),
|
1372
|
+
(te = (ee = s.tableData) == null ? void 0 : ee.filterCustom) != null && te.length ? (l(), _(d, {
|
1387
1373
|
key: 1,
|
1388
1374
|
customList: (se = s.tableData) == null ? void 0 : se.filterCustom,
|
1389
1375
|
filterCustom: s.filterCustom,
|
1390
1376
|
"onUpdate:filterCustom": e[2] || (e[2] = (b) => s.filterCustom = b)
|
1391
|
-
}, null, 8, ["customList", "filterCustom"])) :
|
1392
|
-
|
1377
|
+
}, null, 8, ["customList", "filterCustom"])) : v("", !0),
|
1378
|
+
x(w, {
|
1393
1379
|
columns: (ne = s.tableData) == null ? void 0 : ne.columns,
|
1394
1380
|
onUpdateColumns: e[3] || (e[3] = (b) => s.tableData.columns = b)
|
1395
1381
|
}, null, 8, ["columns"]),
|
1396
|
-
((le = s.tableData) == null ? void 0 : le.export) !== !1 ? (l(),
|
1382
|
+
((le = s.tableData) == null ? void 0 : le.export) !== !1 ? (l(), _(g, {
|
1397
1383
|
key: 2,
|
1398
1384
|
table: n.table,
|
1399
1385
|
columns: (oe = s.tableData) == null ? void 0 : oe.columns,
|
@@ -1401,19 +1387,19 @@ function Mn(t, e, n, a, s, r) {
|
|
1401
1387
|
"filter-state": s.filterState,
|
1402
1388
|
"filter-custom": s.filterCustom,
|
1403
1389
|
filters: s.filters
|
1404
|
-
}, null, 8, ["table", "columns", "page", "filter-state", "filter-custom", "filters"])) :
|
1405
|
-
(re = s.filterScheme) != null && re.length ? (l(),
|
1390
|
+
}, null, 8, ["table", "columns", "page", "filter-state", "filter-custom", "filters"])) : v("", !0),
|
1391
|
+
(re = s.filterScheme) != null && re.length ? (l(), _(C, {
|
1406
1392
|
key: 3,
|
1407
1393
|
scheme: s.filterScheme,
|
1408
1394
|
onFilters: s.onFilters,
|
1409
1395
|
table: n.table,
|
1410
1396
|
onFilterChange: r.filterChange
|
1411
|
-
}, null, 8, ["scheme", "onFilters", "table", "onFilterChange"])) :
|
1397
|
+
}, null, 8, ["scheme", "onFilters", "table", "onFilterChange"])) : v("", !0),
|
1412
1398
|
o("button", {
|
1413
1399
|
onClick: e[4] || (e[4] = (...b) => r.toggleCardInfo && r.toggleCardInfo(...b)),
|
1414
1400
|
class: "py-2 px-2.5 max-h-[34px] md:inline-flex hidden items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"
|
1415
1401
|
}, [
|
1416
|
-
|
1402
|
+
x(S, {
|
1417
1403
|
class: D({ "rotate-180 duration-300": !s.isVisibleCardInfo })
|
1418
1404
|
}, null, 8, ["class"])
|
1419
1405
|
])
|
@@ -1423,18 +1409,18 @@ function Mn(t, e, n, a, s, r) {
|
|
1423
1409
|
class: D(["flex items-start justify-start w-full space-y-5", { "pr-[20px]": !s.isVisibleCardInfo }])
|
1424
1410
|
}, [
|
1425
1411
|
o("div", {
|
1426
|
-
style:
|
1412
|
+
style: B({
|
1427
1413
|
height: (ie = (ae = s.tableData) == null ? void 0 : ae.filterState) != null && ie.length ? "calc(100vh - 370px)" : "calc(100vh - 330px)"
|
1428
1414
|
}),
|
1429
1415
|
class: "overflow-x-auto w-full [&::-webkit-scrollbar]:h-2 [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-stone-100 [&::-webkit-scrollbar-thumb]:bg-stone-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500"
|
1430
1416
|
}, [
|
1431
|
-
o("div",
|
1432
|
-
r.isNoData ? (l(),
|
1433
|
-
o("thead",
|
1434
|
-
o("tr",
|
1435
|
-
(l(!0), i(
|
1417
|
+
o("div", mn, [
|
1418
|
+
r.isNoData ? (l(), _(je, { key: 1 })) : (l(), i("table", gn, [
|
1419
|
+
o("thead", xn, [
|
1420
|
+
o("tr", yn, [
|
1421
|
+
(l(!0), i(A, null, V(r.columns, (b) => (l(), _(q, {
|
1436
1422
|
key: b.name,
|
1437
|
-
style:
|
1423
|
+
style: B({
|
1438
1424
|
width: r.rowWidth(b == null ? void 0 : b.name),
|
1439
1425
|
textAlign: b == null ? void 0 : b.align,
|
1440
1426
|
wordBreak: b == null ? void 0 : b.wrap
|
@@ -1445,66 +1431,66 @@ function Mn(t, e, n, a, s, r) {
|
|
1445
1431
|
}, null, 8, ["style", "data", "activeColumn", "onChangeActive"]))), 128)),
|
1446
1432
|
(ue = (ce = r.getActions) == null ? void 0 : ce.filter(
|
1447
1433
|
(b) => b !== "add" && b !== "view"
|
1448
|
-
)) != null && ue.length ? (l(), i("th",
|
1434
|
+
)) != null && ue.length ? (l(), i("th", _n)) : v("", !0)
|
1449
1435
|
])
|
1450
1436
|
]),
|
1451
|
-
o("tbody",
|
1452
|
-
(l(!0), i(
|
1453
|
-
var ge, xe, ye, _e,
|
1437
|
+
o("tbody", kn, [
|
1438
|
+
(l(!0), i(A, null, V((de = s.tableData) == null ? void 0 : de.rows, (b, Pe) => {
|
1439
|
+
var ge, xe, ye, _e, ke, ve, we, Ce, $e, Ae;
|
1454
1440
|
return l(), i("tr", {
|
1455
1441
|
key: Pe,
|
1456
1442
|
class: D({
|
1457
1443
|
"bg-gray-50": ((xe = (ge = t.$route) == null ? void 0 : ge.query) == null ? void 0 : xe.card) === (b == null ? void 0 : b.id)
|
1458
1444
|
})
|
1459
1445
|
}, [
|
1460
|
-
o("td",
|
1446
|
+
o("td", vn, [
|
1461
1447
|
o("button", {
|
1462
1448
|
onClick: () => r.pushToCard(b == null ? void 0 : b.id),
|
1463
1449
|
class: D(["text-sm font-medium", [
|
1464
1450
|
((ye = s.tableData) == null ? void 0 : ye.card) === !1 ? "" : "text-blue-600 decoration-2 focus:outline-none focus:underline hover:text-blue-600 hover:underline"
|
1465
1451
|
]])
|
1466
1452
|
}, [
|
1467
|
-
|
1453
|
+
x(P, {
|
1468
1454
|
row: b,
|
1469
1455
|
column: r.columns[0],
|
1470
1456
|
table: n.table,
|
1471
1457
|
onUpdateTable: r.getTableData
|
1472
1458
|
}, null, 8, ["row", "column", "table", "onUpdateTable"])
|
1473
|
-
], 10,
|
1459
|
+
], 10, wn)
|
1474
1460
|
]),
|
1475
|
-
(l(!0), i(
|
1476
|
-
onClick: (
|
1461
|
+
(l(!0), i(A, null, V((_e = r.columns) == null ? void 0 : _e.slice(1), (M) => (l(), i("td", {
|
1462
|
+
onClick: (Pn) => r.changeActiveCardInfo(b == null ? void 0 : b.id),
|
1477
1463
|
class: D(["px-3 py-3 text-sm text-gray-600 text-start", { "cursor-pointer": s.isVisibleCardInfo }]),
|
1478
1464
|
key: M.name
|
1479
1465
|
}, [
|
1480
|
-
|
1466
|
+
x(P, {
|
1481
1467
|
row: b,
|
1482
1468
|
column: M,
|
1483
1469
|
table: n.table,
|
1484
1470
|
onUpdateTable: r.getTableData
|
1485
1471
|
}, null, 8, ["row", "column", "table", "onUpdateTable"])
|
1486
|
-
], 10,
|
1487
|
-
(
|
1472
|
+
], 10, Cn))), 128)),
|
1473
|
+
(ve = (ke = r.getActions) == null ? void 0 : ke.filter(
|
1488
1474
|
(M) => M !== "add" && M !== "view"
|
1489
|
-
)) != null &&
|
1475
|
+
)) != null && ve.length ? (l(), i("td", {
|
1490
1476
|
key: 0,
|
1491
1477
|
class: D(["text-center sticky right-0 w-[80px] px-[10px]", {
|
1492
1478
|
"bg-gray-50": ((Ce = (we = t.$route) == null ? void 0 : we.query) == null ? void 0 : Ce.card) === (b == null ? void 0 : b.id),
|
1493
1479
|
"bg-white": ((Ae = ($e = t.$route) == null ? void 0 : $e.query) == null ? void 0 : Ae.card) !== (b == null ? void 0 : b.id)
|
1494
1480
|
}])
|
1495
1481
|
}, [
|
1496
|
-
|
1482
|
+
x(De, {
|
1497
1483
|
actions: r.getActions,
|
1498
1484
|
isForm: r.isForm,
|
1499
1485
|
item: b,
|
1500
1486
|
table: n.table,
|
1501
1487
|
onUpdateTable: r.getTableData
|
1502
1488
|
}, null, 8, ["actions", "isForm", "item", "table", "onUpdateTable"])
|
1503
|
-
], 2)) :
|
1489
|
+
], 2)) : v("", !0)
|
1504
1490
|
], 2);
|
1505
1491
|
}), 128))
|
1506
1492
|
]),
|
1507
|
-
|
1493
|
+
x(Fe, {
|
1508
1494
|
columns: r.columns,
|
1509
1495
|
agg: (pe = s.tableData) == null ? void 0 : pe.agg
|
1510
1496
|
}, null, 8, ["columns", "agg"])
|
@@ -1512,17 +1498,17 @@ function Mn(t, e, n, a, s, r) {
|
|
1512
1498
|
])
|
1513
1499
|
], 4)
|
1514
1500
|
], 2),
|
1515
|
-
o("div",
|
1516
|
-
o("div",
|
1517
|
-
o("p",
|
1518
|
-
o("span",
|
1501
|
+
o("div", $n, [
|
1502
|
+
o("div", An, [
|
1503
|
+
o("p", Tn, [
|
1504
|
+
o("span", In, [
|
1519
1505
|
j(I(s.filters || s.searchValue ? "Знайдено" : "Об'єктів") + " " + I(((be = s.tableData) == null ? void 0 : be.count) || "0 ") + " ", 1),
|
1520
|
-
s.filters || s.searchValue ? (l(), i("span",
|
1506
|
+
s.filters || s.searchValue ? (l(), i("span", Sn, " з")) : v("", !0)
|
1521
1507
|
]),
|
1522
|
-
s.filters || s.searchValue ? (l(), i("span",
|
1508
|
+
s.filters || s.searchValue ? (l(), i("span", Vn, I(" " + ((he = s.tableData) == null ? void 0 : he.filtered) || 0), 1)) : v("", !0)
|
1523
1509
|
])
|
1524
1510
|
]),
|
1525
|
-
Math.ceil(((fe = s.tableData) == null ? void 0 : fe.filtered) / s.limit) > 1 ? (l(),
|
1511
|
+
Math.ceil(((fe = s.tableData) == null ? void 0 : fe.filtered) / s.limit) > 1 ? (l(), _(Me, {
|
1526
1512
|
key: 0,
|
1527
1513
|
goTo: !1,
|
1528
1514
|
class: "justify-end",
|
@@ -1533,19 +1519,19 @@ function Mn(t, e, n, a, s, r) {
|
|
1533
1519
|
pageSizes: [10, 16, 20],
|
1534
1520
|
onPageSizeChange: r.changeLimit,
|
1535
1521
|
backgroundColor: "#F3F4F6"
|
1536
|
-
}, null, 8, ["default-page", "total", "pageSize", "onPageChange", "onPageSizeChange"])) :
|
1522
|
+
}, null, 8, ["default-page", "total", "pageSize", "onPageChange", "onPageSizeChange"])) : v("", !0)
|
1537
1523
|
])
|
1538
1524
|
], 2),
|
1539
|
-
|
1540
|
-
default:
|
1525
|
+
x(E, { name: "slide-fade" }, {
|
1526
|
+
default: T(() => {
|
1541
1527
|
var b;
|
1542
1528
|
return [
|
1543
|
-
s.isVisibleCardInfo ? (l(),
|
1529
|
+
s.isVisibleCardInfo ? (l(), _(qe, {
|
1544
1530
|
key: 0,
|
1545
1531
|
table: n.table,
|
1546
1532
|
columns: (b = s.tableData) == null ? void 0 : b.columns,
|
1547
1533
|
row: r.activeCardRow
|
1548
|
-
}, null, 8, ["table", "columns", "row"])) :
|
1534
|
+
}, null, 8, ["table", "columns", "row"])) : v("", !0)
|
1549
1535
|
];
|
1550
1536
|
}),
|
1551
1537
|
_: 1
|
@@ -1555,8 +1541,8 @@ function Mn(t, e, n, a, s, r) {
|
|
1555
1541
|
])
|
1556
1542
|
]);
|
1557
1543
|
}
|
1558
|
-
const
|
1559
|
-
components: { AdminTable:
|
1544
|
+
const Fn = /* @__PURE__ */ $(an, [["render", Dn], ["__scopeId", "data-v-e94dc211"]]), jn = {
|
1545
|
+
components: { AdminTable: Fn },
|
1560
1546
|
data() {
|
1561
1547
|
return {
|
1562
1548
|
table: !1,
|
@@ -1574,7 +1560,7 @@ const qn = /* @__PURE__ */ C(dn, [["render", Mn], ["__scopeId", "data-v-e94dc211
|
|
1574
1560
|
},
|
1575
1561
|
title(t) {
|
1576
1562
|
var e;
|
1577
|
-
t && (document.title = (((e =
|
1563
|
+
t && (document.title = (((e = Ge.value) == null ? void 0 : e.titlePrefix) || "") + t);
|
1578
1564
|
}
|
1579
1565
|
},
|
1580
1566
|
async mounted() {
|
@@ -1611,10 +1597,10 @@ const qn = /* @__PURE__ */ C(dn, [["render", Mn], ["__scopeId", "data-v-e94dc211
|
|
1611
1597
|
}
|
1612
1598
|
}
|
1613
1599
|
}
|
1614
|
-
},
|
1615
|
-
function
|
1600
|
+
}, Mn = ["innerHTML"];
|
1601
|
+
function qn(t, e, n, a, s, r) {
|
1616
1602
|
const u = p("AdminTable");
|
1617
|
-
return s.table ? (l(),
|
1603
|
+
return s.table ? (l(), _(u, {
|
1618
1604
|
key: 0,
|
1619
1605
|
table: s.table,
|
1620
1606
|
title: s.title
|
@@ -1623,9 +1609,9 @@ function Bn(t, e, n, a, s, r) {
|
|
1623
1609
|
class: "w-full bg-gray-50",
|
1624
1610
|
style: { height: "calc(100vh - 120px)" },
|
1625
1611
|
innerHTML: s.interface
|
1626
|
-
}, null, 8,
|
1612
|
+
}, null, 8, Mn));
|
1627
1613
|
}
|
1628
|
-
const
|
1614
|
+
const zn = /* @__PURE__ */ $(jn, [["render", qn]]);
|
1629
1615
|
export {
|
1630
|
-
|
1616
|
+
zn as default
|
1631
1617
|
};
|