@opengis/admin 0.2.50 → 0.2.52
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-DgID9avj.js} +1 -1
- package/dist/{admin-interface-BbbMnpi9.js → admin-interface-B7FhOD-k.js} +321 -352
- package/dist/{admin-view-CgrBpmwi.js → admin-view-KZi0UOB_.js} +1 -1
- package/dist/admin.js +2 -2
- package/dist/admin.umd.cjs +52 -52
- package/dist/{card-view-DEYLjjBs.js → card-view-Etr3nv0Q.js} +1 -1
- package/dist/{edit-page-Dbhk0RYj.js → edit-page-RxY_dX87.js} +1 -1
- package/dist/{import-file-2iLrGwLC.js → import-file-wDumTumx.js} +11861 -11592
- 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 T, e as Pe, f as Be, g as Le, d as F, I as ze, h as O, A as U, V as Oe, i as Ue, j as Ne, k as Ee, l as He, m as Re, n as We, a as Je, u as Te, s as Ge } from "./import-file-wDumTumx.js";
|
2
|
+
import { openBlock as l, createElementBlock as i, createTextVNode as j, toDisplayString as I, createCommentVNode as v, resolveComponent as p, Fragment as $, createElementVNode as o, createVNode as x, withCtx as A, createBlock as _, renderList as V, withModifiers as Ke, normalizeClass as D, createStaticVNode as Qe, withDirectives as N, vModelCheckbox as Xe, Transition as E, renderSlot as Ye, vShow as Ie, normalizeStyle as B, getCurrentInstance as Se, ref as L, resolveDynamicComponent as z } from "vue";
|
3
|
+
const Ze = {
|
4
4
|
data() {
|
5
5
|
return {
|
6
6
|
currentSort: ""
|
@@ -58,10 +58,10 @@ const Xe = {
|
|
58
58
|
return `${this.data.name}-${t}` === this.selectedSortParam;
|
59
59
|
}
|
60
60
|
}
|
61
|
-
},
|
61
|
+
}, et = {
|
62
62
|
scope: "col",
|
63
63
|
class: "px-2 py-1 text-start"
|
64
|
-
},
|
64
|
+
}, tt = {
|
65
65
|
class: "flex-shrink-0 size-3.5",
|
66
66
|
xmlns: "http://www.w3.org/2000/svg",
|
67
67
|
width: "24",
|
@@ -72,18 +72,18 @@ const Xe = {
|
|
72
72
|
"stroke-width": "2",
|
73
73
|
"stroke-linecap": "round",
|
74
74
|
"stroke-linejoin": "round"
|
75
|
-
},
|
75
|
+
}, st = {
|
76
76
|
key: 0,
|
77
77
|
d: "m7 15 5 5 5-5"
|
78
|
-
},
|
78
|
+
}, nt = {
|
79
79
|
key: 1,
|
80
80
|
d: "m7 9 5-5 5 5"
|
81
|
-
},
|
81
|
+
}, lt = {
|
82
82
|
key: 1,
|
83
83
|
class: "text-sm text-stone-500 px-[4px] py-2.5 text-start font-normal"
|
84
84
|
};
|
85
|
-
function
|
86
|
-
return l(), i("th",
|
85
|
+
function ot(t, e, n, a, s, r) {
|
86
|
+
return l(), i("th", et, [
|
87
87
|
r.getVisibleIcon ? (l(), i("button", {
|
88
88
|
key: 0,
|
89
89
|
type: "button",
|
@@ -91,18 +91,18 @@ function lt(t, e, n, a, s, r) {
|
|
91
91
|
onClick: e[0] || (e[0] = (u) => r.handleClickSortBtn(s.currentSort))
|
92
92
|
}, [
|
93
93
|
j(I(r.label) + " ", 1),
|
94
|
-
(l(), i("svg",
|
95
|
-
s.currentSort === "asc" || s.currentSort === "" ? (l(), i("path",
|
96
|
-
s.currentSort === "desc" || s.currentSort === "" ? (l(), i("path",
|
94
|
+
(l(), i("svg", tt, [
|
95
|
+
s.currentSort === "asc" || s.currentSort === "" ? (l(), i("path", st)) : v("", !0),
|
96
|
+
s.currentSort === "desc" || s.currentSort === "" ? (l(), i("path", nt)) : v("", !0)
|
97
97
|
]))
|
98
|
-
])) : (l(), i("p",
|
98
|
+
])) : (l(), i("p", lt, I(r.label), 1))
|
99
99
|
]);
|
100
100
|
}
|
101
|
-
const
|
101
|
+
const rt = /* @__PURE__ */ T(Ze, [["render", ot]]), at = {
|
102
102
|
components: {
|
103
|
-
IconMore:
|
103
|
+
IconMore: Pe,
|
104
104
|
IconDelete: Be,
|
105
|
-
IconEdit:
|
105
|
+
IconEdit: Le
|
106
106
|
},
|
107
107
|
emits: ["updateTable"],
|
108
108
|
props: {
|
@@ -181,74 +181,74 @@ const ot = /* @__PURE__ */ C(Xe, [["render", lt]]), rt = {
|
|
181
181
|
});
|
182
182
|
}
|
183
183
|
}
|
184
|
-
},
|
184
|
+
}, it = { class: "inline-flex" }, ct = { class: "inline-flex items-center justify-center bg-white border rounded-lg shadow-sm size-7 gap-x-2 border-stone-200 text-stone-800 hover:bg-stone-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-50" }, ut = { class: "flex flex-col items-start" }, dt = ["onClick"], pt = { class: "text-gray-800" }, bt = {
|
185
185
|
key: 1,
|
186
186
|
class: "h-[1px] w-[80%] bg-gray-200 ml-auto mr-auto"
|
187
|
-
},
|
188
|
-
function
|
189
|
-
const u = p("IconMore"), f = p("IconEdit"), y = p("router-link"), h = p("IconDelete"),
|
187
|
+
}, ht = { class: "p-4" }, ft = { class: "flex justify-end mt-4 gap-x-3" };
|
188
|
+
function mt(t, e, n, a, s, r) {
|
189
|
+
const u = p("IconMore"), f = p("IconEdit"), y = p("router-link"), h = p("IconDelete"), k = p("VsPopover"), c = p("VsDialog");
|
190
190
|
return l(), i($, null, [
|
191
|
-
o("div",
|
192
|
-
|
191
|
+
o("div", it, [
|
192
|
+
x(k, {
|
193
193
|
trigger: "click",
|
194
194
|
placement: "bottom-left"
|
195
195
|
}, {
|
196
196
|
reference: A(() => [
|
197
|
-
o("button",
|
198
|
-
|
197
|
+
o("button", ct, [
|
198
|
+
x(u, {
|
199
199
|
height: "16",
|
200
200
|
width: "16"
|
201
201
|
})
|
202
202
|
])
|
203
203
|
]),
|
204
204
|
default: A(() => {
|
205
|
-
var m, d, w,
|
205
|
+
var m, d, w, g, C;
|
206
206
|
return [
|
207
|
-
o("div",
|
208
|
-
(m = n.actions) != null && m.includes("edit") && n.isForm ? (l(),
|
207
|
+
o("div", ut, [
|
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
213
|
default: A(() => [
|
214
|
-
|
214
|
+
x(f, { color: "#000" }),
|
215
215
|
e[4] || (e[4] = j(" Редагувати "))
|
216
216
|
]),
|
217
217
|
_: 1
|
218
|
-
}, 8, ["to"])) :
|
218
|
+
}, 8, ["to"])) : v("", !0),
|
219
219
|
(l(!0), i($, 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
|
-
|
225
|
-
o("span",
|
226
|
-
], 8,
|
227
|
-
n.isForm ? (l(), i("div",
|
228
|
-
(
|
224
|
+
x(h, { class: "opacity-0" }),
|
225
|
+
o("span", pt, I(S == null ? void 0 : S.label), 1)
|
226
|
+
], 8, dt))), 128)),
|
227
|
+
n.isForm ? (l(), i("div", bt)) : 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
248
|
default: A(() => [
|
249
|
-
o("div",
|
249
|
+
o("div", ht, [
|
250
250
|
e[6] || (e[6] = o("p", { class: "mt-1 text-gray-500 dark:text-neutral-500" }, " Ви впевнені, що хочете видалити цей об'єкт? ", -1)),
|
251
|
-
o("div",
|
251
|
+
o("div", ft, [
|
252
252
|
o("button", {
|
253
253
|
type: "button",
|
254
254
|
class: "inline-flex items-center px-3 py-2 text-sm font-medium text-gray-800 bg-white border border-gray-200 rounded-lg shadow-sm gap-x-2 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",
|
@@ -266,7 +266,7 @@ function ft(t, e, n, a, s, r) {
|
|
266
266
|
}, 8, ["visible"])
|
267
267
|
], 64);
|
268
268
|
}
|
269
|
-
const
|
269
|
+
const gt = /* @__PURE__ */ T(at, [["render", mt]]), xt = {}, yt = {
|
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",
|
@@ -276,15 +276,15 @@ const mt = /* @__PURE__ */ C(rt, [["render", ft]]), gt = {}, xt = {
|
|
276
276
|
"stroke-linecap": "round",
|
277
277
|
"stroke-linejoin": "round"
|
278
278
|
};
|
279
|
-
function
|
280
|
-
return l(), i("svg",
|
279
|
+
function _t(t, e, n, a, s, r) {
|
280
|
+
return l(), i("svg", yt, e[0] || (e[0] = [
|
281
281
|
o("path", { d: "m3 16 4 4 4-4" }, null, -1),
|
282
282
|
o("path", { d: "M7 20V4" }, null, -1),
|
283
283
|
o("path", { d: "m21 8-4-4-4 4" }, null, -1),
|
284
284
|
o("path", { d: "M17 4v16" }, null, -1)
|
285
285
|
]));
|
286
286
|
}
|
287
|
-
const
|
287
|
+
const kt = /* @__PURE__ */ T(xt, [["render", _t]]), vt = {}, wt = {
|
288
288
|
xmlns: "http://www.w3.org/2000/svg",
|
289
289
|
width: "24",
|
290
290
|
height: "24",
|
@@ -296,8 +296,8 @@ const _t = /* @__PURE__ */ C(gt, [["render", yt]]), vt = {}, kt = {
|
|
296
296
|
"stroke-linejoin": "round",
|
297
297
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-rosette-discount-check"
|
298
298
|
};
|
299
|
-
function
|
300
|
-
return l(), i("svg",
|
299
|
+
function Ct(t, e, n, a, s, r) {
|
300
|
+
return l(), i("svg", wt, e[0] || (e[0] = [
|
301
301
|
o("path", {
|
302
302
|
stroke: "none",
|
303
303
|
d: "M0 0h24v24H0z",
|
@@ -307,8 +307,8 @@ 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
|
311
|
-
components: { IconExport:
|
310
|
+
const $t = /* @__PURE__ */ T(vt, [["render", Ct]]), At = {
|
311
|
+
components: { IconExport: kt, IconChevronDown: ze, IconSuccess: $t },
|
312
312
|
props: {
|
313
313
|
table: String,
|
314
314
|
columns: Array,
|
@@ -410,40 +410,40 @@ const Ct = /* @__PURE__ */ C(vt, [["render", wt]]), $t = {
|
|
410
410
|
this.cols = (e = (t = this.columns) == null ? void 0 : t.filter((n) => (n == null ? void 0 : n.hidden) !== !0)) == null ? void 0 : e.map((n) => n == null ? void 0 : n.name), this.activeAction = "choceVisible";
|
411
411
|
}
|
412
412
|
}
|
413
|
-
},
|
413
|
+
}, Tt = {
|
414
414
|
key: 0,
|
415
415
|
class: "flex flex-col items-center"
|
416
|
-
},
|
416
|
+
}, It = {
|
417
417
|
key: 1,
|
418
418
|
class: "p-4"
|
419
|
-
},
|
419
|
+
}, St = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, Vt = { class: "flex items-center" }, Dt = { class: "flex items-center gap-[10px] ml-auto" }, Ft = ["onClick"], jt = {
|
420
420
|
key: 0,
|
421
421
|
class: "block h-[8px] w-[8px] rounded-full bg-blue-500"
|
422
|
-
},
|
422
|
+
}, Mt = { class: "mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]" }, qt = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, Pt = { class: "mt-2 space-y-2" }, Bt = ["id", "onChange"], Lt = ["for"], zt = {
|
423
423
|
key: 0,
|
424
424
|
class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
|
425
|
-
},
|
425
|
+
}, Ot = {
|
426
426
|
key: 1,
|
427
427
|
class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
|
428
428
|
};
|
429
|
-
function
|
430
|
-
const u = p("IconExport"), f = p("IconChevronDown"), y = p("IconSuccess"), h = p("VsCheckbox"),
|
429
|
+
function Ut(t, e, n, a, s, r) {
|
430
|
+
const u = p("IconExport"), f = p("IconChevronDown"), y = p("IconSuccess"), h = p("VsCheckbox"), k = p("VsDialog");
|
431
431
|
return l(), i($, 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: "Експорт таблиці",
|
@@ -451,7 +451,7 @@ function Ot(t, e, n, a, s, r) {
|
|
451
451
|
closeClickBack: !0
|
452
452
|
}, {
|
453
453
|
footer: A(() => [
|
454
|
-
s.isSuccessTemplate ? (l(), i("div",
|
454
|
+
s.isSuccessTemplate ? (l(), i("div", zt, [
|
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",
|
@@ -462,7 +462,7 @@ function Ot(t, e, n, a, s, r) {
|
|
462
462
|
class: "inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-white align-middle bg-blue-600 border border-blue-600 rounded-lg shadow-sm text-nowrap gap-x-2 text-start hover:bg-blue-700 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:ring-1 focus:ring-blue-300 dark:focus:ring-blue-500",
|
463
463
|
onClick: e[3] || (e[3] = (c) => s.isSuccessTemplate = !1)
|
464
464
|
}, " Вигрузити ще ")
|
465
|
-
])) : (l(), i("div",
|
465
|
+
])) : (l(), i("div", Ot, [
|
466
466
|
o("button", {
|
467
467
|
type: "button",
|
468
468
|
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",
|
@@ -476,18 +476,18 @@ function Ot(t, e, n, a, s, r) {
|
|
476
476
|
]))
|
477
477
|
]),
|
478
478
|
default: A(() => [
|
479
|
-
s.isSuccessTemplate ? (l(), i("div",
|
480
|
-
|
479
|
+
s.isSuccessTemplate ? (l(), i("div", Tt, [
|
480
|
+
x(y, {
|
481
481
|
height: "100",
|
482
482
|
width: "100",
|
483
483
|
class: "text-green-200 mb-[20px]"
|
484
484
|
}),
|
485
485
|
e[8] || (e[8] = o("h2", null, "Звіт сформовано і збережено", -1))
|
486
|
-
])) : (l(), i("div",
|
487
|
-
o("div",
|
488
|
-
o("div",
|
486
|
+
])) : (l(), i("div", It, [
|
487
|
+
o("div", St, [
|
488
|
+
o("div", Vt, [
|
489
489
|
e[9] || (e[9] = o("h2", { class: "text-sm text-gray-500" }, " Виберіть стовпці таблиці для експорту: ", -1)),
|
490
|
-
o("div",
|
490
|
+
o("div", Dt, [
|
491
491
|
(l(!0), i($, 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,
|
@@ -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",
|
499
|
+
(c == null ? void 0 : c.name) === s.activeAction ? (l(), i("span", jt)) : v("", !0)
|
500
500
|
], 2),
|
501
501
|
j(" " + I(c == null ? void 0 : c.label), 1)
|
502
|
-
], 8,
|
502
|
+
], 8, Ft))), 128))
|
503
503
|
])
|
504
504
|
]),
|
505
|
-
o("div",
|
505
|
+
o("div", Mt, [
|
506
506
|
(l(!0), i($, 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),
|
@@ -518,9 +518,9 @@ function Ot(t, e, n, a, s, r) {
|
|
518
518
|
]))), 128))
|
519
519
|
])
|
520
520
|
]),
|
521
|
-
o("div",
|
521
|
+
o("div", qt, [
|
522
522
|
e[10] || (e[10] = o("h2", { class: "text-sm text-gray-500" }, "Виберіть формат таблиці:", -1)),
|
523
|
-
o("div",
|
523
|
+
o("div", Pt, [
|
524
524
|
(l(!0), i($, null, V(s.tableFormats, (c, m) => (l(), i("div", {
|
525
525
|
class: "flex items-center",
|
526
526
|
key: m
|
@@ -531,7 +531,7 @@ function Ot(t, e, n, a, s, r) {
|
|
531
531
|
class: "text-blue-600 border-gray-300 rounded-full shrink-0 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-500 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-offset-gray-800",
|
532
532
|
id: c,
|
533
533
|
onChange: (d) => r.selectFormat(c)
|
534
|
-
}, null, 40,
|
534
|
+
}, null, 40, Bt),
|
535
535
|
o("label", {
|
536
536
|
for: c,
|
537
537
|
class: "text-sm text-gray-800 ms-3 dark:text-neutral-400"
|
@@ -545,7 +545,7 @@ function Ot(t, e, n, a, s, r) {
|
|
545
545
|
}, 8, ["visible"])
|
546
546
|
], 64);
|
547
547
|
}
|
548
|
-
const
|
548
|
+
const Nt = /* @__PURE__ */ T(At, [["render", Ut]]), Et = {}, Ht = {
|
549
549
|
xmlns: "http://www.w3.org/2000/svg",
|
550
550
|
viewBox: "0 0 24 24",
|
551
551
|
fill: "none",
|
@@ -555,12 +555,12 @@ const Ut = /* @__PURE__ */ C($t, [["render", Ot]]), Nt = {}, Et = {
|
|
555
555
|
"stroke-linejoin": "round",
|
556
556
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-columns"
|
557
557
|
};
|
558
|
-
function
|
559
|
-
return l(), i("svg",
|
560
|
-
|
558
|
+
function Rt(t, e, n, a, s, r) {
|
559
|
+
return l(), i("svg", Ht, e[0] || (e[0] = [
|
560
|
+
Qe('<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
|
563
|
+
const Wt = /* @__PURE__ */ T(Et, [["render", Rt]]), Jt = {
|
564
564
|
props: { column: Object },
|
565
565
|
emits: ["update-column"],
|
566
566
|
data() {
|
@@ -577,21 +577,21 @@ const Rt = /* @__PURE__ */ C(Nt, [["render", Ht]]), Wt = {
|
|
577
577
|
var t;
|
578
578
|
((t = this.column) == null ? void 0 : t.hidden) !== !0 && (this.value = !0);
|
579
579
|
}
|
580
|
-
},
|
581
|
-
function
|
580
|
+
}, Gt = { class: "flex w-full gap-[8px] items-centr" };
|
581
|
+
function Kt(t, e, n, a, s, r) {
|
582
582
|
var u, f;
|
583
|
-
return l(), i("label",
|
584
|
-
|
583
|
+
return l(), i("label", Gt, [
|
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
|
+
[Xe, 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:
|
593
|
+
const Qt = /* @__PURE__ */ T(Jt, [["render", Kt]]), Xt = {
|
594
|
+
components: { IconColumns: Wt, AdminTableColumnsHiddenItem: Qt },
|
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
|
-
},
|
604
|
-
function
|
603
|
+
}, Yt = { 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" }, Zt = { class: "py-[10px] px-[10px] w-[260px]" }, es = { 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
|
+
function ts(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
610
|
reference: A(() => [
|
611
|
-
o("button",
|
612
|
-
|
611
|
+
o("button", Yt, [
|
612
|
+
x(u, {
|
613
613
|
height: "20",
|
614
614
|
width: "16"
|
615
615
|
})
|
616
616
|
])
|
617
617
|
]),
|
618
618
|
default: A(() => [
|
619
|
-
o("div",
|
619
|
+
o("div", Zt, [
|
620
620
|
e[0] || (e[0] = o("h2", { class: "text-sm mb-[8px]" }, "Оберіть колонки, щоб приховати", -1)),
|
621
|
-
o("ul",
|
622
|
-
(l(!0), i($, null, V(n.columns, (h,
|
623
|
-
|
621
|
+
o("ul", es, [
|
622
|
+
(l(!0), i($, 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
|
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 ss = /* @__PURE__ */ T(Xt, [["render", ts]]), ns = {}, ls = {
|
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 os(t, e, n, a, s, r) {
|
645
|
+
return l(), i("svg", ls, 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 rs = /* @__PURE__ */ T(ns, [["render", os]]), as = {
|
655
|
+
components: { IconPlus: O, IconMinus: rs },
|
671
656
|
props: {
|
672
657
|
title: String,
|
673
658
|
defaultValue: { type: Boolean, default: () => !1 }
|
@@ -675,35 +660,35 @@ const is = /* @__PURE__ */ C(os, [["render", as]]), cs = {
|
|
675
660
|
data() {
|
676
661
|
return { expanded: this.defaultValue };
|
677
662
|
}
|
678
|
-
},
|
679
|
-
function
|
663
|
+
}, is = { class: "hs-accordion" }, cs = { class: "py-0.5 flex items-center gap-x-0.5 w-full" }, us = { class: "text-sm font-medium" }, ds = { class: "relative inline-block w-full duration-150 cursor-pointer before:block before:absolute b" };
|
664
|
+
function ps(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", is, [
|
669
|
+
o("div", cs, [
|
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", us, 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
|
-
|
686
|
+
x(E, { name: "fade" }, {
|
702
687
|
default: A(() => [
|
703
|
-
|
704
|
-
|
688
|
+
N(o("div", ds, [
|
689
|
+
Ye(t.$slots, "default", {}, void 0, !0)
|
705
690
|
], 512), [
|
706
|
-
[
|
691
|
+
[Ie, s.expanded]
|
707
692
|
])
|
708
693
|
]),
|
709
694
|
_: 3
|
@@ -712,48 +697,48 @@ function hs(t, e, n, a, s, r) {
|
|
712
697
|
])
|
713
698
|
]);
|
714
699
|
}
|
715
|
-
const
|
700
|
+
const bs = /* @__PURE__ */ T(as, [["render", ps], ["__scopeId", "data-v-c6318482"]]), hs = {
|
716
701
|
components: {
|
717
|
-
AdminComponentIs:
|
718
|
-
AdminTree:
|
719
|
-
VsNoData:
|
720
|
-
VsWidgetComments:
|
721
|
-
VsWidgetMap:
|
722
|
-
VsWidgetFileList:
|
702
|
+
AdminComponentIs: U,
|
703
|
+
AdminTree: bs,
|
704
|
+
VsNoData: Oe,
|
705
|
+
VsWidgetComments: Ue,
|
706
|
+
VsWidgetMap: Ne,
|
707
|
+
VsWidgetFileList: Ee
|
723
708
|
},
|
724
709
|
props: { table: String, columns: Array, row: Object }
|
725
|
-
},
|
710
|
+
}, fs = {
|
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
|
+
}, ms = {
|
729
714
|
class: "border-l",
|
730
715
|
style: { height: "calc(100vh - 360px)" }
|
731
|
-
},
|
732
|
-
function
|
716
|
+
}, gs = { class: "flex items-center justify-between py-1 gap-x-4" }, xs = { class: "col-span-1 w-[50%]" }, ys = { class: "inline-flex items-center gap-x-2 text-[13px] text-gray-500 dark:text-neutral-500" }, _s = { class: "col-span-2 w-[50%]" }, ks = { class: "font-medium text-[13px] text-gray-800 dark:text-neutral-200" }, vs = { class: "table-info-card" }, ws = { class: "table-info-card" };
|
717
|
+
function Cs(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", fs, [
|
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",
|
724
|
+
o("div", ms, [
|
740
725
|
(d = (m = t.$route) == null ? void 0 : m.query) != null && d.card ? (l(), i($, { key: 0 }, [
|
741
|
-
n.row ? (l(),
|
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
732
|
default: A(() => [
|
748
|
-
(l(!0), i($, null, V(n.columns, (
|
749
|
-
o("dt",
|
750
|
-
o("p",
|
733
|
+
(l(!0), i($, null, V(n.columns, (g) => (l(), i("dl", gs, [
|
734
|
+
o("dt", xs, [
|
735
|
+
o("p", ys, 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", _s, [
|
738
|
+
o("p", ks, [
|
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
755
|
default: A(() => {
|
771
|
-
var
|
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
776
|
default: A(() => {
|
792
|
-
var
|
777
|
+
var g;
|
793
778
|
return [
|
794
|
-
o("div",
|
795
|
-
|
796
|
-
id: (
|
779
|
+
o("div", vs, [
|
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
792
|
default: A(() => {
|
808
|
-
var
|
793
|
+
var g, C;
|
809
794
|
return [
|
810
|
-
o("div",
|
811
|
-
|
812
|
-
|
813
|
-
|
795
|
+
o("div", ws, [
|
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 $s = /* @__PURE__ */ T(hs, [["render", Cs]]), As = {}, Ts = {
|
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 Is(t, e, n, a, s, r) {
|
823
|
+
return l(), i("svg", Ts, e[0] || (e[0] = [
|
838
824
|
o("rect", {
|
839
825
|
width: "18",
|
840
826
|
height: "18",
|
@@ -846,31 +832,14 @@ 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
|
850
|
-
class: "h21yx vs0hq",
|
851
|
-
xmlns: "http://www.w3.org/2000/svg",
|
852
|
-
width: "24",
|
853
|
-
height: "24",
|
854
|
-
viewBox: "0 0 24 24",
|
855
|
-
fill: "none",
|
856
|
-
stroke: "currentColor",
|
857
|
-
"stroke-width": "2",
|
858
|
-
"stroke-linecap": "round",
|
859
|
-
"stroke-linejoin": "round"
|
860
|
-
};
|
861
|
-
function Ms(t, e, n, a, s, r) {
|
862
|
-
return l(), i("svg", js, e[0] || (e[0] = [
|
863
|
-
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
|
-
]));
|
865
|
-
}
|
866
|
-
const qs = /* @__PURE__ */ C(Fs, [["render", Ms]]), Ps = {
|
835
|
+
const Ss = /* @__PURE__ */ T(As, [["render", Is]]), Vs = {
|
867
836
|
emits: ["filterChange"],
|
868
837
|
props: {
|
869
838
|
scheme: { type: Object },
|
870
839
|
onFilters: { type: Number },
|
871
840
|
table: { type: String }
|
872
841
|
},
|
873
|
-
components: { IconFilter:
|
842
|
+
components: { IconFilter: He },
|
874
843
|
data() {
|
875
844
|
return {
|
876
845
|
isFilters: !1
|
@@ -881,32 +850,32 @@ const qs = /* @__PURE__ */ C(Fs, [["render", Ms]]), Ps = {
|
|
881
850
|
this.isFilters && t.classList.contains("filter-container") && (this.isFilters = !1);
|
882
851
|
}
|
883
852
|
}
|
884
|
-
},
|
885
|
-
function
|
853
|
+
}, Ds = { key: 0 }, Fs = { 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" };
|
854
|
+
function js(t, e, n, a, s, r) {
|
886
855
|
const u = p("IconFilter"), f = p("VsFilter");
|
887
856
|
return l(), i($, null, [
|
888
857
|
o("button", {
|
889
858
|
onClick: e[0] || (e[0] = (y) => s.isFilters = !s.isFilters),
|
890
859
|
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
860
|
}, [
|
892
|
-
|
861
|
+
x(u, {
|
893
862
|
height: "16",
|
894
863
|
width: "16"
|
895
864
|
}),
|
896
865
|
e[4] || (e[4] = j(" Фільтри ")),
|
897
|
-
n.onFilters ? (l(), i("span",
|
866
|
+
n.onFilters ? (l(), i("span", Ds, I(n.onFilters), 1)) : v("", !0)
|
898
867
|
]),
|
899
|
-
|
868
|
+
x(E, { name: "fade" }, {
|
900
869
|
default: A(() => {
|
901
870
|
var y;
|
902
871
|
return [
|
903
|
-
|
872
|
+
N(o("div", {
|
904
873
|
onClick: e[3] || (e[3] = (...h) => r.closeFilter && r.closeFilter(...h)),
|
905
874
|
style: { height: "100vh" },
|
906
875
|
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
876
|
}, [
|
908
|
-
o("div",
|
909
|
-
(y = n.scheme) != null && y.length ? (l(),
|
877
|
+
o("div", Fs, [
|
878
|
+
(y = n.scheme) != null && y.length ? (l(), _(f, {
|
910
879
|
key: 0,
|
911
880
|
ref: "filter",
|
912
881
|
scheme: n.scheme,
|
@@ -918,10 +887,10 @@ function zs(t, e, n, a, s, r) {
|
|
918
887
|
onFilterChange: e[1] || (e[1] = (h) => t.$emit("filterChange", h)),
|
919
888
|
closeFilterBtn: !0,
|
920
889
|
onFilterClose: e[2] || (e[2] = (h) => s.isFilters = !1)
|
921
|
-
}, null, 8, ["scheme", "token"])) :
|
890
|
+
}, null, 8, ["scheme", "token"])) : v("", !0)
|
922
891
|
])
|
923
892
|
], 512), [
|
924
|
-
[
|
893
|
+
[Ie, s.isFilters]
|
925
894
|
])
|
926
895
|
];
|
927
896
|
}),
|
@@ -929,25 +898,25 @@ function zs(t, e, n, a, s, r) {
|
|
929
898
|
})
|
930
899
|
], 64);
|
931
900
|
}
|
932
|
-
const
|
901
|
+
const Ms = /* @__PURE__ */ T(Vs, [["render", js]]), qs = {
|
933
902
|
props: { tabsList: { type: Array, default: () => [] }, filterState: String }
|
934
|
-
},
|
903
|
+
}, Ps = {
|
935
904
|
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
905
|
"aria-label": "Tabs",
|
937
906
|
role: "tablist",
|
938
907
|
"aria-orientation": "horizontal"
|
939
|
-
},
|
940
|
-
function
|
941
|
-
return l(), i("nav",
|
908
|
+
}, Bs = ["onClick"];
|
909
|
+
function Ls(t, e, n, a, s, r) {
|
910
|
+
return l(), i("nav", Ps, [
|
942
911
|
(l(!0), i($, null, V(n.tabsList, (u) => (l(), i("button", {
|
943
912
|
onClick: (f) => t.$emit("update:filterState", u == null ? void 0 : u.name),
|
944
913
|
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
914
|
" 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
915
|
}])
|
947
|
-
}, I(u == null ? void 0 : u.label), 11,
|
916
|
+
}, I(u == null ? void 0 : u.label), 11, Bs))), 256))
|
948
917
|
]);
|
949
918
|
}
|
950
|
-
const
|
919
|
+
const zs = /* @__PURE__ */ T(qs, [["render", Ls]]), Os = {}, Us = {
|
951
920
|
xmlns: "http://www.w3.org/2000/svg",
|
952
921
|
viewBox: "0 0 24 24",
|
953
922
|
fill: "none",
|
@@ -957,8 +926,8 @@ const Rs = /* @__PURE__ */ C(Us, [["render", Hs]]), Ws = {}, Js = {
|
|
957
926
|
"stroke-linejoin": "round",
|
958
927
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-filter"
|
959
928
|
};
|
960
|
-
function
|
961
|
-
return l(), i("svg",
|
929
|
+
function Ns(t, e, n, a, s, r) {
|
930
|
+
return l(), i("svg", Us, e[0] || (e[0] = [
|
962
931
|
o("path", {
|
963
932
|
stroke: "none",
|
964
933
|
d: "M0 0h24v24H0z",
|
@@ -967,52 +936,52 @@ function Zs(t, e, n, a, s, r) {
|
|
967
936
|
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
937
|
]));
|
969
938
|
}
|
970
|
-
const
|
971
|
-
components: { IconFilter2:
|
939
|
+
const Es = /* @__PURE__ */ T(Os, [["render", Ns]]), Hs = {
|
940
|
+
components: { IconFilter2: Es, IconCheck2: Re },
|
972
941
|
props: { filterCustom: String, customList: Array }
|
973
|
-
},
|
974
|
-
function
|
942
|
+
}, Rs = { 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" }, Ws = { class: "flex flex-col p-[2px] gap-[2px] w-[170px]" }, Js = ["onClick"], Gs = { class: "text-sm text-gray-800 ms-2" };
|
943
|
+
function Ks(t, e, n, a, s, r) {
|
975
944
|
const u = p("IconFilter2"), f = p("IconCheck2"), y = p("VsPopover");
|
976
|
-
return l(),
|
945
|
+
return l(), _(y, {
|
977
946
|
ref: "popover",
|
978
947
|
placement: "bottom"
|
979
948
|
}, {
|
980
949
|
reference: A(() => [
|
981
|
-
o("button",
|
982
|
-
|
950
|
+
o("button", Rs, [
|
951
|
+
x(u, {
|
983
952
|
height: "20",
|
984
953
|
width: "20"
|
985
954
|
})
|
986
955
|
])
|
987
956
|
]),
|
988
957
|
default: A(() => [
|
989
|
-
o("div",
|
990
|
-
(l(!0), i($, null, V(n.customList, (h,
|
958
|
+
o("div", Ws, [
|
959
|
+
(l(!0), i($, null, V(n.customList, (h, k) => {
|
991
960
|
var c;
|
992
961
|
return l(), i("button", {
|
993
962
|
onClick: (m) => {
|
994
963
|
var d;
|
995
964
|
t.$emit("update:filterCustom", h == null ? void 0 : h.name), (d = t.$refs) == null || d.popover.togglePopover();
|
996
965
|
},
|
997
|
-
key:
|
966
|
+
key: k,
|
998
967
|
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
968
|
}, [
|
1000
969
|
o("span", {
|
1001
970
|
class: "block w-1 h-3 border-0 rounded-full appearance-none shrink-0 checked:bg-none",
|
1002
|
-
style:
|
971
|
+
style: B({ backgroundColor: ((c = t.option) == null ? void 0 : c.color) || "#ffffff" })
|
1003
972
|
}, null, 4),
|
1004
|
-
o("span",
|
1005
|
-
n.filterCustom === (h == null ? void 0 : h.name) ? (l(),
|
973
|
+
o("span", Gs, I(h == null ? void 0 : h.label), 1),
|
974
|
+
n.filterCustom === (h == null ? void 0 : h.name) ? (l(), _(f, {
|
1006
975
|
key: 0,
|
1007
976
|
class: "ml-auto size-3 shrink-0"
|
1008
|
-
})) :
|
1009
|
-
], 10,
|
977
|
+
})) : v("", !0)
|
978
|
+
], 10, Js);
|
1010
979
|
}), 128)),
|
1011
980
|
o("button", {
|
1012
981
|
class: "flex items-center px-3 py-1 rounded-md cursor-pointer group hover:bg-gray-100",
|
1013
982
|
onClick: e[0] || (e[0] = (h) => {
|
1014
|
-
var
|
1015
|
-
t.$emit("update:filterCustom", void 0), (
|
983
|
+
var k;
|
984
|
+
t.$emit("update:filterCustom", void 0), (k = t.$refs) == null || k.popover.togglePopover();
|
1016
985
|
})
|
1017
986
|
}, " Скинути фільтри ")
|
1018
987
|
])
|
@@ -1020,73 +989,73 @@ function tn(t, e, n, a, s, r) {
|
|
1020
989
|
_: 1
|
1021
990
|
}, 512);
|
1022
991
|
}
|
1023
|
-
const
|
992
|
+
const Qs = /* @__PURE__ */ T(Hs, [["render", Ks]]), Xs = { class: "flex items-center gap-x-2" }, Ys = {
|
1024
993
|
__name: "admin-table-custom-buttons",
|
1025
994
|
props: {
|
1026
995
|
slots: Object
|
1027
996
|
},
|
1028
997
|
setup(t) {
|
1029
|
-
var f, y, h,
|
1030
|
-
const { asyncTemplateSlot: e } = (c = (
|
1031
|
-
var m, d, w,
|
998
|
+
var f, y, h, k, c;
|
999
|
+
const { asyncTemplateSlot: e } = (c = (k = (h = (y = (f = Se()) == 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 = () => {
|
1000
|
+
var m, d, w, g, C;
|
1032
1001
|
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", (
|
1002
|
+
const S = e("PanelLeft", (g = s.slots) == null ? void 0 : g.panelLeft, [
|
1034
1003
|
"name"
|
1035
1004
|
]);
|
1036
1005
|
a.value = S;
|
1037
1006
|
} else
|
1038
|
-
a.value = (
|
1007
|
+
a.value = (C = s.slots) == null ? void 0 : C.panelLeft;
|
1039
1008
|
}, u = () => {
|
1040
|
-
var m, d, w,
|
1009
|
+
var m, d, w, g, C;
|
1041
1010
|
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", (
|
1011
|
+
const S = e("PanelRight", (g = s.slots) == null ? void 0 : g.panelRight, [
|
1043
1012
|
"name"
|
1044
1013
|
]);
|
1045
1014
|
n.value = S;
|
1046
1015
|
} else
|
1047
|
-
n.value = (
|
1016
|
+
n.value = (C = s.slots) == null ? void 0 : C.panelRight;
|
1048
1017
|
};
|
1049
|
-
return r(), u(), (m, d) => (l(), i("div",
|
1050
|
-
(l(),
|
1051
|
-
(l(),
|
1018
|
+
return r(), u(), (m, d) => (l(), i("div", Xs, [
|
1019
|
+
(l(), _(z(a.value))),
|
1020
|
+
(l(), _(z(n.value)))
|
1052
1021
|
]));
|
1053
1022
|
}
|
1054
|
-
},
|
1023
|
+
}, Zs = (t, e = 300) => {
|
1055
1024
|
let n;
|
1056
1025
|
return function(...a) {
|
1057
1026
|
clearTimeout(n), n = setTimeout(() => {
|
1058
1027
|
t.apply(this, a);
|
1059
1028
|
}, e);
|
1060
1029
|
};
|
1061
|
-
},
|
1030
|
+
}, en = {
|
1062
1031
|
__name: "admin-custom-button-add",
|
1063
1032
|
props: {
|
1064
1033
|
slots: Object
|
1065
1034
|
},
|
1066
1035
|
setup(t) {
|
1067
1036
|
var r, u, f, y, h;
|
1068
|
-
const { asyncTemplateSlot: e } = (h = (y = (f = (u = (r =
|
1037
|
+
const { asyncTemplateSlot: e } = (h = (y = (f = (u = (r = Se()) == 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
1038
|
return (() => {
|
1070
|
-
var
|
1071
|
-
if ((
|
1072
|
-
const
|
1039
|
+
var k, c, m, d, w;
|
1040
|
+
if ((k = a.slots) != null && k.addButton || (n.value = "div"), (m = (c = a.slots) == null ? void 0 : c.addButton) != null && m.includes("<")) {
|
1041
|
+
const g = e("addButton", (d = a.slots) == null ? void 0 : d.addButton, [
|
1073
1042
|
"IconPlus"
|
1074
1043
|
]);
|
1075
|
-
n.value =
|
1044
|
+
n.value = g;
|
1076
1045
|
} else
|
1077
1046
|
n.value = (w = a.slots) == null ? void 0 : w.addButton;
|
1078
|
-
})(), (
|
1047
|
+
})(), (k, c) => n.value ? (l(), _(z(n.value), {
|
1079
1048
|
key: 0,
|
1080
|
-
IconPlus:
|
1081
|
-
})) :
|
1049
|
+
IconPlus: O
|
1050
|
+
})) : v("", !0);
|
1082
1051
|
}
|
1083
|
-
},
|
1052
|
+
}, tn = {
|
1084
1053
|
key: 0,
|
1085
1054
|
class: "px-4 py-3 text-sm text-gray-800 font-[500]"
|
1086
|
-
},
|
1055
|
+
}, sn = {
|
1087
1056
|
key: 1,
|
1088
1057
|
class: "px-4 py-3 text-sm text-gray-800 font-[700]"
|
1089
|
-
},
|
1058
|
+
}, nn = {
|
1090
1059
|
__name: "admin-table-totals-list",
|
1091
1060
|
props: {
|
1092
1061
|
columns: { type: Array, default: () => [] },
|
@@ -1100,35 +1069,35 @@ const sn = /* @__PURE__ */ C(Ks, [["render", tn]]), nn = { class: "flex items-ce
|
|
1100
1069
|
return l(), i($, {
|
1101
1070
|
key: a == null ? void 0 : a.name
|
1102
1071
|
}, [
|
1103
|
-
(s = t.agg) != null && s[a == null ? void 0 : a.name] ? (l(), i("td",
|
1104
|
-
|
1072
|
+
(s = t.agg) != null && s[a == null ? void 0 : a.name] ? (l(), i("td", tn, [
|
1073
|
+
x(U, {
|
1105
1074
|
column: a,
|
1106
1075
|
row: t.agg
|
1107
1076
|
}, null, 8, ["column", "row"])
|
1108
|
-
])) : (l(), i("td",
|
1077
|
+
])) : (l(), i("td", sn))
|
1109
1078
|
], 64);
|
1110
1079
|
}), 128))
|
1111
1080
|
]));
|
1112
1081
|
}
|
1113
|
-
},
|
1082
|
+
}, ln = {
|
1114
1083
|
props: { table: String, title: String },
|
1115
1084
|
components: {
|
1116
|
-
AdminTableControl:
|
1117
|
-
AdminTableExport:
|
1118
|
-
AdminTableColumnsHidden:
|
1119
|
-
AdminTableColumn:
|
1085
|
+
AdminTableControl: gt,
|
1086
|
+
AdminTableExport: Nt,
|
1087
|
+
AdminTableColumnsHidden: ss,
|
1088
|
+
AdminTableColumn: rt,
|
1120
1089
|
AdminNodata: We,
|
1121
|
-
IconPlus:
|
1090
|
+
IconPlus: O,
|
1122
1091
|
IconSearch: Je,
|
1123
|
-
AdminTableCardInfo:
|
1124
|
-
IconOpenCard:
|
1125
|
-
AdminComponentIs:
|
1126
|
-
AdminTableFilters:
|
1127
|
-
AdminTableTabs:
|
1128
|
-
AdminTableCustomFilters:
|
1129
|
-
AdminTableCustomButtons:
|
1130
|
-
AdminCustomButtonAdd:
|
1131
|
-
AdminTableTotalsList:
|
1092
|
+
AdminTableCardInfo: $s,
|
1093
|
+
IconOpenCard: Ss,
|
1094
|
+
AdminComponentIs: U,
|
1095
|
+
AdminTableFilters: Ms,
|
1096
|
+
AdminTableTabs: zs,
|
1097
|
+
AdminTableCustomFilters: Qs,
|
1098
|
+
AdminTableCustomButtons: Ys,
|
1099
|
+
AdminCustomButtonAdd: en,
|
1100
|
+
AdminTableTotalsList: nn
|
1132
1101
|
},
|
1133
1102
|
data() {
|
1134
1103
|
return {
|
@@ -1184,7 +1153,7 @@ const sn = /* @__PURE__ */ C(Ks, [["render", tn]]), nn = { class: "flex items-ce
|
|
1184
1153
|
this.tableData = null, await this.getTableData();
|
1185
1154
|
},
|
1186
1155
|
searchValue: {
|
1187
|
-
handler:
|
1156
|
+
handler: Zs(async function(t) {
|
1188
1157
|
var e;
|
1189
1158
|
await this.getTableData(), this.$router.push({
|
1190
1159
|
...this.$route,
|
@@ -1230,8 +1199,8 @@ const sn = /* @__PURE__ */ C(Ks, [["render", tn]]), nn = { class: "flex items-ce
|
|
1230
1199
|
},
|
1231
1200
|
methods: {
|
1232
1201
|
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 = ((
|
1202
|
+
var t, e, n, a, s, r, u, f, y, h, k, c, m, d, w, g, C;
|
1203
|
+
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
1204
|
},
|
1236
1205
|
rowWidth(t) {
|
1237
1206
|
var n, a;
|
@@ -1245,7 +1214,7 @@ const sn = /* @__PURE__ */ C(Ks, [["render", tn]]), nn = { class: "flex items-ce
|
|
1245
1214
|
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
1215
|
},
|
1247
1216
|
async getTableData() {
|
1248
|
-
var t, e, n, a, s, r, u, f, y, h,
|
1217
|
+
var t, e, n, a, s, r, u, f, y, h, k;
|
1249
1218
|
try {
|
1250
1219
|
const { data: c } = await F.get(`/api/template/table/${this.table}`), m = await F.get(`/api/table-data/${this.table}`, {
|
1251
1220
|
params: {
|
@@ -1264,7 +1233,7 @@ const sn = /* @__PURE__ */ C(Ks, [["render", tn]]), nn = { class: "flex items-ce
|
|
1264
1233
|
}, 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
1234
|
var w;
|
1266
1235
|
(w = this.visibleColumns) != null && w.includes(d == null ? void 0 : d.name) ? d.hidden = !1 : d.hidden = !0;
|
1267
|
-
}) : this.visibleColumns = (
|
1236
|
+
}) : 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
1237
|
} catch {
|
1269
1238
|
}
|
1270
1239
|
},
|
@@ -1312,36 +1281,36 @@ const sn = /* @__PURE__ */ C(Ks, [["render", tn]]), nn = { class: "flex items-ce
|
|
1312
1281
|
});
|
1313
1282
|
}
|
1314
1283
|
}
|
1315
|
-
},
|
1284
|
+
}, on = { class: "w-[calc(100vw - 320px)] bg-gray-50" }, rn = { class: "h-[76px] mt-[15px] flex items-center justify-between mx-[20px] px-[20px] bg-white border rounded-xl" }, an = { class: "text-xl font-medium" }, cn = {
|
1316
1285
|
style: { height: "calc(100vh - 155px)" },
|
1317
1286
|
class: "bg-gray-50 p-[20px] flex pt-[10px] lg:w-[calc(100vw-260px)] w-[100vw]"
|
1318
|
-
},
|
1287
|
+
}, un = { class: "bg-white w-full rounded-xl border p-[20px] pr-0" }, dn = { class: "flex" }, pn = { class: "flex gap-[6px] ml-auto" }, bn = { class: "inline-block w-full align-middle" }, hn = {
|
1319
1288
|
key: 0,
|
1320
1289
|
class: "relative min-w-full divide-y divide-gray-200 table-fixed w-max dark:divide-neutral-700"
|
1321
|
-
},
|
1290
|
+
}, fn = { class: "sticky top-[-1px] bg-white w-full after:absolute after:content-[''] after:block after:w-full after:h-px after:bg-stone-200" }, mn = { class: "right-0 border-t border-stone-200" }, gn = {
|
1322
1291
|
key: 0,
|
1323
1292
|
class: "w-[70px] sticky right-0 top-0"
|
1324
|
-
},
|
1293
|
+
}, xn = { class: "divide-y divide-gray-200" }, yn = { class: "px-4 py-3 text-sm text-gray-600" }, _n = ["onClick"], kn = ["onClick"], vn = { class: "p-[20px] flex justify-start items-center w-full" }, wn = { class: "w-[200px] md:inline-flex hidden" }, Cn = { class: "text-sm text-gray-600 dark:text-neutral-400" }, $n = { class: "font-semibold text-gray-800 dark:text-neutral-200" }, An = { key: 0 }, Tn = {
|
1325
1294
|
key: 0,
|
1326
1295
|
class: "font-semibold text-gray-800 dark:text-neutral-200"
|
1327
1296
|
};
|
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",
|
1297
|
+
function In(t, e, n, a, s, r) {
|
1298
|
+
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;
|
1299
|
+
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"), Ve = p("AdminTableControl"), De = p("AdminTableTotalsList"), Fe = p("AdminNodata"), je = p("VsPagination"), Me = p("AdminTableCardInfo");
|
1300
|
+
return l(), i("div", on, [
|
1301
|
+
o("div", rn, [
|
1302
|
+
o("h2", an, I(n.title), 1),
|
1334
1303
|
r.isForm ? (l(), i($, { key: 0 }, [
|
1335
|
-
(R = (H = s.tableData) == null ? void 0 : H.slots) != null && R.addButton ? (l(),
|
1304
|
+
(R = (H = s.tableData) == null ? void 0 : H.slots) != null && R.addButton ? (l(), _(u, {
|
1336
1305
|
key: 0,
|
1337
1306
|
slots: (W = s.tableData) == null ? void 0 : W.slots
|
1338
|
-
}, null, 8, ["slots"])) : (l(),
|
1307
|
+
}, null, 8, ["slots"])) : (l(), _(y, {
|
1339
1308
|
key: 1,
|
1340
|
-
to: `/add?table=${(
|
1309
|
+
to: `/add?table=${(G = (J = t.$route) == null ? void 0 : J.params) == null ? void 0 : G.catchAll}`,
|
1341
1310
|
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
1311
|
}, {
|
1343
1312
|
default: A(() => [
|
1344
|
-
|
1313
|
+
x(f, {
|
1345
1314
|
height: "16",
|
1346
1315
|
width: "16"
|
1347
1316
|
}),
|
@@ -1349,51 +1318,51 @@ function Mn(t, e, n, a, s, r) {
|
|
1349
1318
|
]),
|
1350
1319
|
_: 1
|
1351
1320
|
}, 8, ["to"]))
|
1352
|
-
], 64)) :
|
1321
|
+
], 64)) : v("", !0)
|
1353
1322
|
]),
|
1354
|
-
o("div",
|
1355
|
-
o("div",
|
1356
|
-
(
|
1323
|
+
o("div", cn, [
|
1324
|
+
o("div", un, [
|
1325
|
+
(Q = (K = s.tableData) == null ? void 0 : K.filterState) != null && Q.length ? (l(), _(h, {
|
1357
1326
|
key: 0,
|
1358
|
-
tabsList: (
|
1327
|
+
tabsList: (X = s.tableData) == null ? void 0 : X.filterState,
|
1359
1328
|
filterState: s.filterState,
|
1360
1329
|
"onUpdate:filterState": e[0] || (e[0] = (b) => s.filterState = b)
|
1361
|
-
}, null, 8, ["tabsList", "filterState"])) :
|
1362
|
-
o("div",
|
1330
|
+
}, null, 8, ["tabsList", "filterState"])) : v("", !0),
|
1331
|
+
o("div", dn, [
|
1363
1332
|
o("div", {
|
1364
1333
|
class: D([s.isVisibleCardInfo ? "w-[calc(100%-360px)]" : "w-full"])
|
1365
1334
|
}, [
|
1366
1335
|
o("div", {
|
1367
1336
|
class: D(["flex sm:grid sm:grid-cols-2 gap-x-2 sm:gap-x-5 mb-[10px] relative", { "pr-[20px]": !s.isVisibleCardInfo }])
|
1368
1337
|
}, [
|
1369
|
-
|
1338
|
+
x(k, {
|
1370
1339
|
height: "14",
|
1371
1340
|
width: "14",
|
1372
1341
|
class: "absolute top-[10px] left-[14px] text-gray-500 z-[1]"
|
1373
1342
|
}),
|
1374
|
-
|
1343
|
+
x(c, {
|
1375
1344
|
modelValue: s.searchValue,
|
1376
1345
|
"onUpdate:modelValue": e[1] || (e[1] = (b) => s.searchValue = b),
|
1377
1346
|
placeholder: "Пошук...",
|
1378
1347
|
clearable: !0,
|
1379
1348
|
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
1349
|
}, null, 8, ["modelValue"]),
|
1381
|
-
o("div",
|
1382
|
-
(
|
1350
|
+
o("div", pn, [
|
1351
|
+
(Y = s.tableData) != null && Y.slots ? (l(), _(m, {
|
1383
1352
|
key: 0,
|
1384
|
-
slots: (
|
1385
|
-
}, null, 8, ["slots"])) :
|
1386
|
-
(te = (ee = s.tableData) == null ? void 0 : ee.filterCustom) != null && te.length ? (l(),
|
1353
|
+
slots: (Z = s.tableData) == null ? void 0 : Z.slots
|
1354
|
+
}, null, 8, ["slots"])) : v("", !0),
|
1355
|
+
(te = (ee = s.tableData) == null ? void 0 : ee.filterCustom) != null && te.length ? (l(), _(d, {
|
1387
1356
|
key: 1,
|
1388
1357
|
customList: (se = s.tableData) == null ? void 0 : se.filterCustom,
|
1389
1358
|
filterCustom: s.filterCustom,
|
1390
1359
|
"onUpdate:filterCustom": e[2] || (e[2] = (b) => s.filterCustom = b)
|
1391
|
-
}, null, 8, ["customList", "filterCustom"])) :
|
1392
|
-
|
1360
|
+
}, null, 8, ["customList", "filterCustom"])) : v("", !0),
|
1361
|
+
x(w, {
|
1393
1362
|
columns: (ne = s.tableData) == null ? void 0 : ne.columns,
|
1394
1363
|
onUpdateColumns: e[3] || (e[3] = (b) => s.tableData.columns = b)
|
1395
1364
|
}, null, 8, ["columns"]),
|
1396
|
-
((le = s.tableData) == null ? void 0 : le.export) !== !1 ? (l(),
|
1365
|
+
((le = s.tableData) == null ? void 0 : le.export) !== !1 ? (l(), _(g, {
|
1397
1366
|
key: 2,
|
1398
1367
|
table: n.table,
|
1399
1368
|
columns: (oe = s.tableData) == null ? void 0 : oe.columns,
|
@@ -1401,19 +1370,19 @@ function Mn(t, e, n, a, s, r) {
|
|
1401
1370
|
"filter-state": s.filterState,
|
1402
1371
|
"filter-custom": s.filterCustom,
|
1403
1372
|
filters: s.filters
|
1404
|
-
}, null, 8, ["table", "columns", "page", "filter-state", "filter-custom", "filters"])) :
|
1405
|
-
(re = s.filterScheme) != null && re.length ? (l(),
|
1373
|
+
}, null, 8, ["table", "columns", "page", "filter-state", "filter-custom", "filters"])) : v("", !0),
|
1374
|
+
(re = s.filterScheme) != null && re.length ? (l(), _(C, {
|
1406
1375
|
key: 3,
|
1407
1376
|
scheme: s.filterScheme,
|
1408
1377
|
onFilters: s.onFilters,
|
1409
1378
|
table: n.table,
|
1410
1379
|
onFilterChange: r.filterChange
|
1411
|
-
}, null, 8, ["scheme", "onFilters", "table", "onFilterChange"])) :
|
1380
|
+
}, null, 8, ["scheme", "onFilters", "table", "onFilterChange"])) : v("", !0),
|
1412
1381
|
o("button", {
|
1413
1382
|
onClick: e[4] || (e[4] = (...b) => r.toggleCardInfo && r.toggleCardInfo(...b)),
|
1414
1383
|
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
1384
|
}, [
|
1416
|
-
|
1385
|
+
x(S, {
|
1417
1386
|
class: D({ "rotate-180 duration-300": !s.isVisibleCardInfo })
|
1418
1387
|
}, null, 8, ["class"])
|
1419
1388
|
])
|
@@ -1423,18 +1392,18 @@ function Mn(t, e, n, a, s, r) {
|
|
1423
1392
|
class: D(["flex items-start justify-start w-full space-y-5", { "pr-[20px]": !s.isVisibleCardInfo }])
|
1424
1393
|
}, [
|
1425
1394
|
o("div", {
|
1426
|
-
style:
|
1395
|
+
style: B({
|
1427
1396
|
height: (ie = (ae = s.tableData) == null ? void 0 : ae.filterState) != null && ie.length ? "calc(100vh - 370px)" : "calc(100vh - 330px)"
|
1428
1397
|
}),
|
1429
1398
|
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
1399
|
}, [
|
1431
|
-
o("div",
|
1432
|
-
r.isNoData ? (l(),
|
1433
|
-
o("thead",
|
1434
|
-
o("tr",
|
1435
|
-
(l(!0), i($, null, V(r.columns, (b) => (l(),
|
1400
|
+
o("div", bn, [
|
1401
|
+
r.isNoData ? (l(), _(Fe, { key: 1 })) : (l(), i("table", hn, [
|
1402
|
+
o("thead", fn, [
|
1403
|
+
o("tr", mn, [
|
1404
|
+
(l(!0), i($, null, V(r.columns, (b) => (l(), _(q, {
|
1436
1405
|
key: b.name,
|
1437
|
-
style:
|
1406
|
+
style: B({
|
1438
1407
|
width: r.rowWidth(b == null ? void 0 : b.name),
|
1439
1408
|
textAlign: b == null ? void 0 : b.align,
|
1440
1409
|
wordBreak: b == null ? void 0 : b.wrap
|
@@ -1445,66 +1414,66 @@ function Mn(t, e, n, a, s, r) {
|
|
1445
1414
|
}, null, 8, ["style", "data", "activeColumn", "onChangeActive"]))), 128)),
|
1446
1415
|
(ue = (ce = r.getActions) == null ? void 0 : ce.filter(
|
1447
1416
|
(b) => b !== "add" && b !== "view"
|
1448
|
-
)) != null && ue.length ? (l(), i("th",
|
1417
|
+
)) != null && ue.length ? (l(), i("th", gn)) : v("", !0)
|
1449
1418
|
])
|
1450
1419
|
]),
|
1451
|
-
o("tbody",
|
1452
|
-
(l(!0), i($, null, V((de = s.tableData) == null ? void 0 : de.rows, (b,
|
1453
|
-
var ge, xe, ye, _e,
|
1420
|
+
o("tbody", xn, [
|
1421
|
+
(l(!0), i($, null, V((de = s.tableData) == null ? void 0 : de.rows, (b, qe) => {
|
1422
|
+
var ge, xe, ye, _e, ke, ve, we, Ce, $e, Ae;
|
1454
1423
|
return l(), i("tr", {
|
1455
|
-
key:
|
1424
|
+
key: qe,
|
1456
1425
|
class: D({
|
1457
1426
|
"bg-gray-50": ((xe = (ge = t.$route) == null ? void 0 : ge.query) == null ? void 0 : xe.card) === (b == null ? void 0 : b.id)
|
1458
1427
|
})
|
1459
1428
|
}, [
|
1460
|
-
o("td",
|
1429
|
+
o("td", yn, [
|
1461
1430
|
o("button", {
|
1462
1431
|
onClick: () => r.pushToCard(b == null ? void 0 : b.id),
|
1463
1432
|
class: D(["text-sm font-medium", [
|
1464
1433
|
((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
1434
|
]])
|
1466
1435
|
}, [
|
1467
|
-
|
1436
|
+
x(P, {
|
1468
1437
|
row: b,
|
1469
1438
|
column: r.columns[0],
|
1470
1439
|
table: n.table,
|
1471
1440
|
onUpdateTable: r.getTableData
|
1472
1441
|
}, null, 8, ["row", "column", "table", "onUpdateTable"])
|
1473
|
-
], 10,
|
1442
|
+
], 10, _n)
|
1474
1443
|
]),
|
1475
1444
|
(l(!0), i($, null, V((_e = r.columns) == null ? void 0 : _e.slice(1), (M) => (l(), i("td", {
|
1476
|
-
onClick: (
|
1445
|
+
onClick: (jn) => r.changeActiveCardInfo(b == null ? void 0 : b.id),
|
1477
1446
|
class: D(["px-3 py-3 text-sm text-gray-600 text-start", { "cursor-pointer": s.isVisibleCardInfo }]),
|
1478
1447
|
key: M.name
|
1479
1448
|
}, [
|
1480
|
-
|
1449
|
+
x(P, {
|
1481
1450
|
row: b,
|
1482
1451
|
column: M,
|
1483
1452
|
table: n.table,
|
1484
1453
|
onUpdateTable: r.getTableData
|
1485
1454
|
}, null, 8, ["row", "column", "table", "onUpdateTable"])
|
1486
|
-
], 10,
|
1487
|
-
(
|
1455
|
+
], 10, kn))), 128)),
|
1456
|
+
(ve = (ke = r.getActions) == null ? void 0 : ke.filter(
|
1488
1457
|
(M) => M !== "add" && M !== "view"
|
1489
|
-
)) != null &&
|
1458
|
+
)) != null && ve.length ? (l(), i("td", {
|
1490
1459
|
key: 0,
|
1491
1460
|
class: D(["text-center sticky right-0 w-[80px] px-[10px]", {
|
1492
1461
|
"bg-gray-50": ((Ce = (we = t.$route) == null ? void 0 : we.query) == null ? void 0 : Ce.card) === (b == null ? void 0 : b.id),
|
1493
1462
|
"bg-white": ((Ae = ($e = t.$route) == null ? void 0 : $e.query) == null ? void 0 : Ae.card) !== (b == null ? void 0 : b.id)
|
1494
1463
|
}])
|
1495
1464
|
}, [
|
1496
|
-
|
1465
|
+
x(Ve, {
|
1497
1466
|
actions: r.getActions,
|
1498
1467
|
isForm: r.isForm,
|
1499
1468
|
item: b,
|
1500
1469
|
table: n.table,
|
1501
1470
|
onUpdateTable: r.getTableData
|
1502
1471
|
}, null, 8, ["actions", "isForm", "item", "table", "onUpdateTable"])
|
1503
|
-
], 2)) :
|
1472
|
+
], 2)) : v("", !0)
|
1504
1473
|
], 2);
|
1505
1474
|
}), 128))
|
1506
1475
|
]),
|
1507
|
-
|
1476
|
+
x(De, {
|
1508
1477
|
columns: r.columns,
|
1509
1478
|
agg: (pe = s.tableData) == null ? void 0 : pe.agg
|
1510
1479
|
}, null, 8, ["columns", "agg"])
|
@@ -1512,17 +1481,17 @@ function Mn(t, e, n, a, s, r) {
|
|
1512
1481
|
])
|
1513
1482
|
], 4)
|
1514
1483
|
], 2),
|
1515
|
-
o("div",
|
1516
|
-
o("div",
|
1517
|
-
o("p",
|
1518
|
-
o("span",
|
1484
|
+
o("div", vn, [
|
1485
|
+
o("div", wn, [
|
1486
|
+
o("p", Cn, [
|
1487
|
+
o("span", $n, [
|
1519
1488
|
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",
|
1489
|
+
s.filters || s.searchValue ? (l(), i("span", An, " з")) : v("", !0)
|
1521
1490
|
]),
|
1522
|
-
s.filters || s.searchValue ? (l(), i("span",
|
1491
|
+
s.filters || s.searchValue ? (l(), i("span", Tn, I(" " + ((he = s.tableData) == null ? void 0 : he.filtered) || 0), 1)) : v("", !0)
|
1523
1492
|
])
|
1524
1493
|
]),
|
1525
|
-
Math.ceil(((fe = s.tableData) == null ? void 0 : fe.filtered) / s.limit) > 1 ? (l(),
|
1494
|
+
Math.ceil(((fe = s.tableData) == null ? void 0 : fe.filtered) / s.limit) > 1 ? (l(), _(je, {
|
1526
1495
|
key: 0,
|
1527
1496
|
goTo: !1,
|
1528
1497
|
class: "justify-end",
|
@@ -1533,19 +1502,19 @@ function Mn(t, e, n, a, s, r) {
|
|
1533
1502
|
pageSizes: [10, 16, 20],
|
1534
1503
|
onPageSizeChange: r.changeLimit,
|
1535
1504
|
backgroundColor: "#F3F4F6"
|
1536
|
-
}, null, 8, ["default-page", "total", "pageSize", "onPageChange", "onPageSizeChange"])) :
|
1505
|
+
}, null, 8, ["default-page", "total", "pageSize", "onPageChange", "onPageSizeChange"])) : v("", !0)
|
1537
1506
|
])
|
1538
1507
|
], 2),
|
1539
|
-
|
1508
|
+
x(E, { name: "slide-fade" }, {
|
1540
1509
|
default: A(() => {
|
1541
1510
|
var b;
|
1542
1511
|
return [
|
1543
|
-
s.isVisibleCardInfo ? (l(),
|
1512
|
+
s.isVisibleCardInfo ? (l(), _(Me, {
|
1544
1513
|
key: 0,
|
1545
1514
|
table: n.table,
|
1546
1515
|
columns: (b = s.tableData) == null ? void 0 : b.columns,
|
1547
1516
|
row: r.activeCardRow
|
1548
|
-
}, null, 8, ["table", "columns", "row"])) :
|
1517
|
+
}, null, 8, ["table", "columns", "row"])) : v("", !0)
|
1549
1518
|
];
|
1550
1519
|
}),
|
1551
1520
|
_: 1
|
@@ -1555,8 +1524,8 @@ function Mn(t, e, n, a, s, r) {
|
|
1555
1524
|
])
|
1556
1525
|
]);
|
1557
1526
|
}
|
1558
|
-
const
|
1559
|
-
components: { AdminTable:
|
1527
|
+
const Sn = /* @__PURE__ */ T(ln, [["render", In], ["__scopeId", "data-v-e94dc211"]]), Vn = {
|
1528
|
+
components: { AdminTable: Sn },
|
1560
1529
|
data() {
|
1561
1530
|
return {
|
1562
1531
|
table: !1,
|
@@ -1574,7 +1543,7 @@ const qn = /* @__PURE__ */ C(dn, [["render", Mn], ["__scopeId", "data-v-e94dc211
|
|
1574
1543
|
},
|
1575
1544
|
title(t) {
|
1576
1545
|
var e;
|
1577
|
-
t && (document.title = (((e =
|
1546
|
+
t && (document.title = (((e = Ge.value) == null ? void 0 : e.titlePrefix) || "") + t);
|
1578
1547
|
}
|
1579
1548
|
},
|
1580
1549
|
async mounted() {
|
@@ -1611,10 +1580,10 @@ const qn = /* @__PURE__ */ C(dn, [["render", Mn], ["__scopeId", "data-v-e94dc211
|
|
1611
1580
|
}
|
1612
1581
|
}
|
1613
1582
|
}
|
1614
|
-
},
|
1615
|
-
function
|
1583
|
+
}, Dn = ["innerHTML"];
|
1584
|
+
function Fn(t, e, n, a, s, r) {
|
1616
1585
|
const u = p("AdminTable");
|
1617
|
-
return s.table ? (l(),
|
1586
|
+
return s.table ? (l(), _(u, {
|
1618
1587
|
key: 0,
|
1619
1588
|
table: s.table,
|
1620
1589
|
title: s.title
|
@@ -1623,9 +1592,9 @@ function Bn(t, e, n, a, s, r) {
|
|
1623
1592
|
class: "w-full bg-gray-50",
|
1624
1593
|
style: { height: "calc(100vh - 120px)" },
|
1625
1594
|
innerHTML: s.interface
|
1626
|
-
}, null, 8,
|
1595
|
+
}, null, 8, Dn));
|
1627
1596
|
}
|
1628
|
-
const
|
1597
|
+
const Pn = /* @__PURE__ */ T(Vn, [["render", Fn]]);
|
1629
1598
|
export {
|
1630
|
-
|
1599
|
+
Pn as default
|
1631
1600
|
};
|