@opengis/admin 0.2.133 → 0.2.135
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/add-page-C9y9ue4y.js +119 -0
- package/dist/{admin-interface-CgXFerXl.js → admin-interface-CDQq6VA5.js} +323 -348
- package/dist/{admin-view-t-gzhVnl.js → admin-view-DYCrsu38.js} +256 -211
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +83 -83
- package/dist/{card-view-Dtf6Ap9G.js → card-view-8AANCbYd.js} +1 -1
- package/dist/edit-page-BQlPi-MI.js +138 -0
- package/dist/{import-file-CztGvKRc.js → import-file-D-sIzmab.js} +24986 -23627
- package/dist/profile-page-BMjBEe0z.js +78 -0
- package/dist/style.css +1 -1
- package/dist/user-B_2kh6ic.js +5 -0
- package/package.json +1 -1
- package/server/helpers/list/utils/button.js +5 -5
- package/server/routes/data/controllers/utils/conditions.js +20 -20
- package/server/templates/pt/card-print.pt.hbs +2 -2
- package/dist/add-page-DQ70Si9f.js +0 -104
- package/dist/edit-page-BWRXfML4.js +0 -125
@@ -1,6 +1,6 @@
|
|
1
|
-
import { _ as
|
2
|
-
import { openBlock as r, createElementBlock as i, createTextVNode as P, toDisplayString as
|
3
|
-
const
|
1
|
+
import { _ as A, g as Be, h as Oe, i as Ne, f as j, I as Ue, j as De, k as N, A as U, V as Ee, l as He, m as Re, n as We, o as Je, p as Ge, q as Ke, a as Qe, r as Xe, t as Ye, u as Ie, s as Ze } from "./import-file-D-sIzmab.js";
|
2
|
+
import { openBlock as r, createElementBlock as i, createTextVNode as P, toDisplayString as $, createElementVNode as l, normalizeClass as I, createCommentVNode as v, resolveComponent as p, Fragment as T, createVNode as x, withCtx as S, createBlock as k, renderList as D, withModifiers as et, createStaticVNode as tt, withDirectives as M, vModelCheckbox as st, Transition as z, vModelText as nt, renderSlot as lt, vShow as E, Teleport as rt, getCurrentInstance as Pe, ref as B, resolveDynamicComponent as O, defineComponent as at, normalizeStyle as Ve } from "vue";
|
3
|
+
const ot = {
|
4
4
|
data() {
|
5
5
|
return {
|
6
6
|
currentSort: ""
|
@@ -46,10 +46,10 @@ const rt = {
|
|
46
46
|
},
|
47
47
|
handleClickSortBtn(t) {
|
48
48
|
this.$emit("change-active", this.data.name), this.currentSort = this.changeCurrentSort(t);
|
49
|
-
const e = this.$route.query, { sort: n, ...
|
49
|
+
const e = this.$route.query, { sort: n, ...o } = e, s = this.currentSort ? `${this.data.name}-${this.currentSort}` : "";
|
50
50
|
this.$router.replace({
|
51
51
|
query: {
|
52
|
-
...
|
52
|
+
...o,
|
53
53
|
...s && { sort: s }
|
54
54
|
}
|
55
55
|
});
|
@@ -58,23 +58,23 @@ const rt = {
|
|
58
58
|
return `${this.data.name}-${t}` === this.selectedSortParam;
|
59
59
|
}
|
60
60
|
}
|
61
|
-
},
|
61
|
+
}, it = {
|
62
62
|
scope: "col",
|
63
63
|
class: "pe-2 py-1 text-start"
|
64
|
-
},
|
64
|
+
}, dt = { class: "w-[24px]" }, ut = {
|
65
65
|
key: 1,
|
66
66
|
class: "flex items-center px-1 py-3 font-medium text-gray-800 text-start gap-x-1 dark:text-neutral-200"
|
67
67
|
};
|
68
|
-
function
|
69
|
-
return r(), i("th",
|
70
|
-
|
68
|
+
function ct(t, e, n, o, s, a) {
|
69
|
+
return r(), i("th", it, [
|
70
|
+
a.getVisibleIcon ? (r(), i("button", {
|
71
71
|
key: 0,
|
72
72
|
type: "button",
|
73
73
|
class: "flex items-center px-1 py-3 font-medium text-gray-800 text-start gap-x-1 dark:text-neutral-200",
|
74
|
-
onClick: e[0] || (e[0] = (u) =>
|
74
|
+
onClick: e[0] || (e[0] = (u) => a.handleClickSortBtn(s.currentSort))
|
75
75
|
}, [
|
76
|
-
P(
|
77
|
-
l("span",
|
76
|
+
P($(a.label) + " ", 1),
|
77
|
+
l("span", dt, [
|
78
78
|
s.currentSort ? (r(), i("svg", {
|
79
79
|
key: 0,
|
80
80
|
class: I(["shrink-0 size-3.5", { "rotate-180": s.currentSort === "asc" }]),
|
@@ -92,10 +92,10 @@ function dt(t, e, n, a, s, o) {
|
|
92
92
|
l("path", { d: "M12 19V5" }, null, -1)
|
93
93
|
]), 2)) : v("", !0)
|
94
94
|
])
|
95
|
-
])) : (r(), i("p",
|
95
|
+
])) : (r(), i("p", ut, $(a.label), 1))
|
96
96
|
]);
|
97
97
|
}
|
98
|
-
const
|
98
|
+
const pt = /* @__PURE__ */ A(ot, [["render", ct]]), ht = {
|
99
99
|
components: {
|
100
100
|
IconMore: Be,
|
101
101
|
IconDelete: Oe,
|
@@ -178,20 +178,20 @@ const ut = /* @__PURE__ */ w(rt, [["render", dt]]), ct = {
|
|
178
178
|
});
|
179
179
|
}
|
180
180
|
}
|
181
|
-
},
|
181
|
+
}, bt = { class: "inline-flex" }, ft = { 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" }, gt = { class: "flex flex-col items-start" }, mt = ["onClick"], xt = { class: "text-gray-800" }, yt = {
|
182
182
|
key: 1,
|
183
183
|
class: "h-[1px] w-[80%] bg-gray-200 ml-auto mr-auto"
|
184
|
-
},
|
185
|
-
function
|
184
|
+
}, kt = { class: "flex justify-end p-[16px] pr-0 gap-x-3" };
|
185
|
+
function vt(t, e, n, o, s, a) {
|
186
186
|
const u = p("IconMore"), f = p("IconEdit"), h = p("router-link"), b = p("IconDelete"), d = p("VsPopover"), _ = p("VsConfirm");
|
187
|
-
return r(), i(
|
188
|
-
l("div",
|
187
|
+
return r(), i(T, null, [
|
188
|
+
l("div", bt, [
|
189
189
|
x(d, {
|
190
190
|
trigger: "click",
|
191
191
|
placement: "bottom-left"
|
192
192
|
}, {
|
193
193
|
reference: S(() => [
|
194
|
-
l("button",
|
194
|
+
l("button", ft, [
|
195
195
|
x(u, {
|
196
196
|
height: "16",
|
197
197
|
width: "16"
|
@@ -199,9 +199,9 @@ function yt(t, e, n, a, s, o) {
|
|
199
199
|
])
|
200
200
|
]),
|
201
201
|
default: S(() => {
|
202
|
-
var m, g, C, y,
|
202
|
+
var m, g, C, y, w;
|
203
203
|
return [
|
204
|
-
l("div",
|
204
|
+
l("div", gt, [
|
205
205
|
(m = n.actions) != null && m.includes("edit") && n.isForm ? (r(), k(h, {
|
206
206
|
key: 0,
|
207
207
|
to: `/edit?table=${(C = (g = t.$route) == null ? void 0 : g.params) == null ? void 0 : C.catchAll}&id=${(y = n.item) == null ? void 0 : y.id}`,
|
@@ -213,18 +213,18 @@ function yt(t, e, n, a, s, o) {
|
|
213
213
|
]),
|
214
214
|
_: 1
|
215
215
|
}, 8, ["to"])) : v("", !0),
|
216
|
-
(r(!0), i(
|
216
|
+
(r(!0), i(T, null, D(a.getCustomActions, (V, L) => (r(), i("button", {
|
217
217
|
key: L,
|
218
|
-
onClick: (q) =>
|
218
|
+
onClick: (q) => a.customButtonAction(V),
|
219
219
|
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"
|
220
220
|
}, [
|
221
221
|
x(b, { class: "opacity-0" }),
|
222
|
-
l("span",
|
223
|
-
], 8,
|
224
|
-
n.isForm ? (r(), i("div",
|
225
|
-
(
|
222
|
+
l("span", xt, $(V == null ? void 0 : V.label), 1)
|
223
|
+
], 8, mt))), 128)),
|
224
|
+
n.isForm ? (r(), i("div", yt)) : v("", !0),
|
225
|
+
(w = n.actions) != null && w.includes("del") ? (r(), i("button", {
|
226
226
|
key: 2,
|
227
|
-
onClick: e[0] || (e[0] =
|
227
|
+
onClick: e[0] || (e[0] = et((...V) => a.openConfirm && a.openConfirm(...V), ["stop"])),
|
228
228
|
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"
|
229
229
|
}, [
|
230
230
|
x(b),
|
@@ -244,7 +244,7 @@ function yt(t, e, n, a, s, o) {
|
|
244
244
|
}, {
|
245
245
|
default: S(() => [
|
246
246
|
e[6] || (e[6] = l("p", { class: "mt-1 text-sm text-gray-600 dark:text-neutral-400" }, " Ви впевнені, що хочете видалити цей об'єкт? ", -1)),
|
247
|
-
l("div",
|
247
|
+
l("div", kt, [
|
248
248
|
l("button", {
|
249
249
|
type: "button",
|
250
250
|
class: "inline-flex items-center px-3 py-2 text-xs font-medium duration-300 border rounded-lg shadow-sm hover:bg-gray-100 gap-x-2 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50",
|
@@ -253,7 +253,7 @@ function yt(t, e, n, a, s, o) {
|
|
253
253
|
l("button", {
|
254
254
|
type: "button",
|
255
255
|
class: "inline-flex items-center px-3 py-2 text-xs font-medium text-white duration-300 bg-red-500 rounded-lg gap-x-2 hover:bg-red-700 disabled:opacity-50 disabled:pointer-events-none",
|
256
|
-
onClick: e[2] || (e[2] = (...m) =>
|
256
|
+
onClick: e[2] || (e[2] = (...m) => a.deleteElement && a.deleteElement(...m))
|
257
257
|
}, " Так, я впевнена(ий) ")
|
258
258
|
])
|
259
259
|
]),
|
@@ -261,7 +261,7 @@ function yt(t, e, n, a, s, o) {
|
|
261
261
|
}, 8, ["visible"])
|
262
262
|
], 64);
|
263
263
|
}
|
264
|
-
const
|
264
|
+
const _t = /* @__PURE__ */ A(ht, [["render", vt]]), Ct = {}, wt = {
|
265
265
|
class: "flex-shrink-0 mt-0.5 size-3.5",
|
266
266
|
xmlns: "http://www.w3.org/2000/svg",
|
267
267
|
viewBox: "0 0 24 24",
|
@@ -271,15 +271,15 @@ const kt = /* @__PURE__ */ w(ct, [["render", yt]]), vt = {}, _t = {
|
|
271
271
|
"stroke-linecap": "round",
|
272
272
|
"stroke-linejoin": "round"
|
273
273
|
};
|
274
|
-
function
|
275
|
-
return r(), i("svg",
|
274
|
+
function $t(t, e, n, o, s, a) {
|
275
|
+
return r(), i("svg", wt, e[0] || (e[0] = [
|
276
276
|
l("path", { d: "m3 16 4 4 4-4" }, null, -1),
|
277
277
|
l("path", { d: "M7 20V4" }, null, -1),
|
278
278
|
l("path", { d: "m21 8-4-4-4 4" }, null, -1),
|
279
279
|
l("path", { d: "M17 4v16" }, null, -1)
|
280
280
|
]));
|
281
281
|
}
|
282
|
-
const
|
282
|
+
const Tt = /* @__PURE__ */ A(Ct, [["render", $t]]), At = {}, St = {
|
283
283
|
xmlns: "http://www.w3.org/2000/svg",
|
284
284
|
width: "24",
|
285
285
|
height: "24",
|
@@ -291,8 +291,8 @@ const wt = /* @__PURE__ */ w(vt, [["render", Ct]]), $t = {}, Tt = {
|
|
291
291
|
"stroke-linejoin": "round",
|
292
292
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-rosette-discount-check"
|
293
293
|
};
|
294
|
-
function
|
295
|
-
return r(), i("svg",
|
294
|
+
function It(t, e, n, o, s, a) {
|
295
|
+
return r(), i("svg", St, e[0] || (e[0] = [
|
296
296
|
l("path", {
|
297
297
|
stroke: "none",
|
298
298
|
d: "M0 0h24v24H0z",
|
@@ -302,8 +302,8 @@ function At(t, e, n, a, s, o) {
|
|
302
302
|
l("path", { d: "M9 12l2 2l4 -4" }, null, -1)
|
303
303
|
]));
|
304
304
|
}
|
305
|
-
const
|
306
|
-
components: { IconExport:
|
305
|
+
const Vt = /* @__PURE__ */ A(At, [["render", It]]), Dt = {
|
306
|
+
components: { IconExport: Tt, IconChevronDown: Ue, IconSuccess: Vt },
|
307
307
|
props: {
|
308
308
|
table: String,
|
309
309
|
columns: Array,
|
@@ -367,17 +367,17 @@ const St = /* @__PURE__ */ w($t, [["render", At]]), It = {
|
|
367
367
|
custom: this.filterCustom || null
|
368
368
|
},
|
369
369
|
responseType: "blob"
|
370
|
-
}), n = await e.data.text(),
|
370
|
+
}), n = await e.data.text(), o = n != null && n.includes(";") ? null : JSON == null ? void 0 : JSON.parse(n), s = new Blob([e.data], {
|
371
371
|
type: "application/octet-stream"
|
372
|
-
}),
|
373
|
-
if (u.href =
|
372
|
+
}), a = window.URL.createObjectURL(s), u = document.createElement("a");
|
373
|
+
if (u.href = a, u.setAttribute(
|
374
374
|
"download",
|
375
375
|
`${this.table.split(".")[0]}.${this.format}`
|
376
|
-
), document.body.appendChild(u), typeof
|
376
|
+
), document.body.appendChild(u), typeof o == "string") {
|
377
377
|
this.exportTable();
|
378
378
|
return;
|
379
379
|
}
|
380
|
-
u.click(), document.body.removeChild(u), window.URL.revokeObjectURL(
|
380
|
+
u.click(), document.body.removeChild(u), window.URL.revokeObjectURL(a), this.$notify({
|
381
381
|
type: "success",
|
382
382
|
title: "Експорт",
|
383
383
|
message: "Файл успішно експортовано!"
|
@@ -405,25 +405,25 @@ const St = /* @__PURE__ */ w($t, [["render", At]]), It = {
|
|
405
405
|
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";
|
406
406
|
}
|
407
407
|
}
|
408
|
-
},
|
408
|
+
}, Pt = {
|
409
409
|
key: 0,
|
410
410
|
class: "flex flex-col items-center"
|
411
|
-
},
|
411
|
+
}, Ft = {
|
412
412
|
key: 1,
|
413
413
|
class: "p-4"
|
414
|
-
},
|
414
|
+
}, jt = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, Lt = { class: "flex items-center gap-[10px] -ml-[10px] my-[10px]" }, Mt = ["onClick"], zt = {
|
415
415
|
key: 0,
|
416
416
|
class: "block h-[8px] w-[8px] rounded-full bg-blue-500"
|
417
|
-
},
|
417
|
+
}, qt = { class: "mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]" }, Bt = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, Ot = { class: "mt-2 space-y-2" }, Nt = ["id", "onChange"], Ut = ["for"], Et = {
|
418
418
|
key: 0,
|
419
419
|
class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
|
420
|
-
},
|
420
|
+
}, Ht = {
|
421
421
|
key: 1,
|
422
422
|
class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
|
423
423
|
};
|
424
|
-
function
|
424
|
+
function Rt(t, e, n, o, s, a) {
|
425
425
|
const u = p("IconExport"), f = p("IconSuccess"), h = p("VsCheckbox"), b = p("VsDialog");
|
426
|
-
return r(), i(
|
426
|
+
return r(), i(T, null, [
|
427
427
|
l("button", {
|
428
428
|
onClick: e[0] || (e[0] = (d) => s.isOpen = !0),
|
429
429
|
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"
|
@@ -442,7 +442,7 @@ function Et(t, e, n, a, s, o) {
|
|
442
442
|
closeClickBack: !0
|
443
443
|
}, {
|
444
444
|
footer: S(() => [
|
445
|
-
s.isSuccessTemplate ? (r(), i("div",
|
445
|
+
s.isSuccessTemplate ? (r(), i("div", Et, [
|
446
446
|
l("button", {
|
447
447
|
type: "button",
|
448
448
|
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",
|
@@ -453,7 +453,7 @@ function Et(t, e, n, a, s, o) {
|
|
453
453
|
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",
|
454
454
|
onClick: e[3] || (e[3] = (d) => s.isSuccessTemplate = !1)
|
455
455
|
}, " Вигрузити ще ")
|
456
|
-
])) : (r(), i("div",
|
456
|
+
])) : (r(), i("div", Ht, [
|
457
457
|
l("button", {
|
458
458
|
type: "button",
|
459
459
|
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,23 +462,23 @@ function Et(t, e, n, a, s, o) {
|
|
462
462
|
l("button", {
|
463
463
|
type: "button",
|
464
464
|
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",
|
465
|
-
onClick: e[5] || (e[5] = (...d) =>
|
465
|
+
onClick: e[5] || (e[5] = (...d) => a.exportTable && a.exportTable(...d))
|
466
466
|
}, " Завантажити таблицю ")
|
467
467
|
]))
|
468
468
|
]),
|
469
469
|
default: S(() => [
|
470
|
-
s.isSuccessTemplate ? (r(), i("div",
|
470
|
+
s.isSuccessTemplate ? (r(), i("div", Pt, [
|
471
471
|
x(f, {
|
472
472
|
height: "100",
|
473
473
|
width: "100",
|
474
474
|
class: "text-green-200 mb-[20px]"
|
475
475
|
}),
|
476
476
|
e[8] || (e[8] = l("h2", null, "Звіт сформовано і збережено", -1))
|
477
|
-
])) : (r(), i("div",
|
478
|
-
l("div",
|
477
|
+
])) : (r(), i("div", Ft, [
|
478
|
+
l("div", jt, [
|
479
479
|
e[9] || (e[9] = l("h2", { class: "text-sm font-[600] text-gray-500" }, " Виберіть стовпці таблиці для експорту: ", -1)),
|
480
|
-
l("div",
|
481
|
-
(r(!0), i(
|
480
|
+
l("div", Lt, [
|
481
|
+
(r(!0), i(T, null, D(s.actions, (d) => (r(), i("button", {
|
482
482
|
key: d == null ? void 0 : d.name,
|
483
483
|
onClick: d == null ? void 0 : d.function,
|
484
484
|
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"
|
@@ -486,13 +486,13 @@ function Et(t, e, n, a, s, o) {
|
|
486
486
|
l("span", {
|
487
487
|
class: I(["h-[14px] w-[14px] border rounded-full flex items-center justify-center", { "border-blue-500": (d == null ? void 0 : d.name) === s.activeAction }])
|
488
488
|
}, [
|
489
|
-
(d == null ? void 0 : d.name) === s.activeAction ? (r(), i("span",
|
489
|
+
(d == null ? void 0 : d.name) === s.activeAction ? (r(), i("span", zt)) : v("", !0)
|
490
490
|
], 2),
|
491
|
-
P(" " +
|
492
|
-
], 8,
|
491
|
+
P(" " + $(d == null ? void 0 : d.label), 1)
|
492
|
+
], 8, Mt))), 128))
|
493
493
|
]),
|
494
|
-
l("div",
|
495
|
-
(r(!0), i(
|
494
|
+
l("div", qt, [
|
495
|
+
(r(!0), i(T, null, D(n.columns, (d, _) => (r(), i("div", {
|
496
496
|
class: "flex items-center",
|
497
497
|
key: _,
|
498
498
|
style: { width: "calc((100% - 10px) / 2)" }
|
@@ -507,10 +507,10 @@ function Et(t, e, n, a, s, o) {
|
|
507
507
|
]))), 128))
|
508
508
|
])
|
509
509
|
]),
|
510
|
-
l("div",
|
510
|
+
l("div", Bt, [
|
511
511
|
e[10] || (e[10] = l("h2", { class: "text-sm font-[600] text-gray-500" }, "Виберіть формат таблиці:", -1)),
|
512
|
-
l("div",
|
513
|
-
(r(!0), i(
|
512
|
+
l("div", Ot, [
|
513
|
+
(r(!0), i(T, null, D(s.tableFormats, (d, _) => (r(), i("div", {
|
514
514
|
class: "flex items-center",
|
515
515
|
key: _
|
516
516
|
}, [
|
@@ -519,12 +519,12 @@ function Et(t, e, n, a, s, o) {
|
|
519
519
|
name: "hs-pro-duecmfm",
|
520
520
|
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",
|
521
521
|
id: d,
|
522
|
-
onChange: (m) =>
|
523
|
-
}, null, 40,
|
522
|
+
onChange: (m) => a.selectFormat(d)
|
523
|
+
}, null, 40, Nt),
|
524
524
|
l("label", {
|
525
525
|
for: d,
|
526
526
|
class: "text-sm text-gray-800 ms-3 dark:text-neutral-400"
|
527
|
-
}, " Формат " +
|
527
|
+
}, " Формат " + $(d), 9, Ut)
|
528
528
|
]))), 128))
|
529
529
|
])
|
530
530
|
])
|
@@ -534,7 +534,7 @@ function Et(t, e, n, a, s, o) {
|
|
534
534
|
}, 8, ["visible"])
|
535
535
|
], 64);
|
536
536
|
}
|
537
|
-
const
|
537
|
+
const Wt = /* @__PURE__ */ A(Dt, [["render", Rt]]), Jt = {}, Gt = {
|
538
538
|
xmlns: "http://www.w3.org/2000/svg",
|
539
539
|
viewBox: "0 0 24 24",
|
540
540
|
fill: "none",
|
@@ -544,12 +544,12 @@ const Ht = /* @__PURE__ */ w(It, [["render", Et]]), Rt = {}, Wt = {
|
|
544
544
|
"stroke-linejoin": "round",
|
545
545
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-columns"
|
546
546
|
};
|
547
|
-
function
|
548
|
-
return r(), i("svg",
|
549
|
-
|
547
|
+
function Kt(t, e, n, o, s, a) {
|
548
|
+
return r(), i("svg", Gt, e[0] || (e[0] = [
|
549
|
+
tt('<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)
|
550
550
|
]));
|
551
551
|
}
|
552
|
-
const
|
552
|
+
const Qt = /* @__PURE__ */ A(Jt, [["render", Kt]]), Xt = {
|
553
553
|
props: { column: Object },
|
554
554
|
emits: ["update-column"],
|
555
555
|
components: {
|
@@ -569,19 +569,19 @@ const Gt = /* @__PURE__ */ w(Rt, [["render", Jt]]), Kt = {
|
|
569
569
|
var t;
|
570
570
|
((t = this.column) == null ? void 0 : t.hidden) !== !0 && (this.value = !0);
|
571
571
|
}
|
572
|
-
},
|
573
|
-
function
|
572
|
+
}, Yt = { class: "flex justify-between items-center py-1.5 px-3 cursor-pointer rounded-lg hover:bg-gray-100 has-[:disabled]:opacity-50 has-[:disabled]:pointer-events-none dark:hover:bg-neutral-800" }, Zt = { class: "flex justify-between flex-1 items-center gap-x-2.5 cursor-pointer text-[13px] text-gray-800 dark:text-neutral-300" };
|
573
|
+
function es(t, e, n, o, s, a) {
|
574
574
|
var f, h;
|
575
575
|
const u = p("IconCheck2");
|
576
|
-
return r(), i("div",
|
577
|
-
l("label",
|
578
|
-
P(
|
576
|
+
return r(), i("div", Yt, [
|
577
|
+
l("label", Zt, [
|
578
|
+
P($(((f = n.column) == null ? void 0 : f.ua) || ((h = n.column) == null ? void 0 : h.title)) + " ", 1),
|
579
579
|
M(l("input", {
|
580
580
|
type: "checkbox",
|
581
581
|
"onUpdate:modelValue": e[0] || (e[0] = (b) => s.value = b),
|
582
582
|
class: "hidden"
|
583
583
|
}, null, 512), [
|
584
|
-
[
|
584
|
+
[st, s.value]
|
585
585
|
]),
|
586
586
|
l("span", {
|
587
587
|
class: I(["flex items-center justify-center text-white border border-gray-300 rounded shrink-0 size-4 focus:ring-blue-500", [s.value ? "bg-blue-600 border-0" : "bg-white"]])
|
@@ -594,8 +594,8 @@ function Yt(t, e, n, a, s, o) {
|
|
594
594
|
])
|
595
595
|
]);
|
596
596
|
}
|
597
|
-
const
|
598
|
-
components: { IconColumns:
|
597
|
+
const ts = /* @__PURE__ */ A(Xt, [["render", es]]), ss = {
|
598
|
+
components: { IconColumns: Qt, AdminTableColumnsHiddenItem: ts },
|
599
599
|
emits: ["update-columns"],
|
600
600
|
props: { columns: Array },
|
601
601
|
data() {
|
@@ -609,8 +609,8 @@ const Zt = /* @__PURE__ */ w(Kt, [["render", Yt]]), es = {
|
|
609
609
|
var t;
|
610
610
|
return (t = this.columns) == null ? void 0 : t.filter(
|
611
611
|
(e) => {
|
612
|
-
var n,
|
613
|
-
return ((s = (n = e == null ? void 0 : e.ua) == null ? void 0 : n.toLowerCase()) == null ? void 0 : s.includes((
|
612
|
+
var n, o, s, a, u, f;
|
613
|
+
return ((s = (n = e == null ? void 0 : e.ua) == null ? void 0 : n.toLowerCase()) == null ? void 0 : s.includes((o = this.searchValue) == null ? void 0 : o.toLowerCase())) || ((f = (a = e == null ? void 0 : e.title) == null ? void 0 : a.toLowerCase()) == null ? void 0 : f.includes((u = this.searchValue) == null ? void 0 : u.toLowerCase()));
|
614
614
|
}
|
615
615
|
);
|
616
616
|
}
|
@@ -624,31 +624,31 @@ const Zt = /* @__PURE__ */ w(Kt, [["render", Yt]]), es = {
|
|
624
624
|
e && !e.contains(t.target) && (this.visible = !1, document.removeEventListener("click", this.handleClickOutside));
|
625
625
|
},
|
626
626
|
updateColumn(t) {
|
627
|
-
const e = this.columns.findIndex((
|
627
|
+
const e = this.columns.findIndex((o) => (o == null ? void 0 : o.name) === (t == null ? void 0 : t.name)), n = this.columns;
|
628
628
|
n[e] = t, this.$emit("update-columns", [...n]);
|
629
629
|
}
|
630
630
|
},
|
631
631
|
beforeUnmount() {
|
632
632
|
document.removeEventListener("click", this.handleClickOutside);
|
633
633
|
}
|
634
|
-
},
|
634
|
+
}, ns = {
|
635
635
|
class: "relative",
|
636
636
|
ref: "wrapper"
|
637
|
-
},
|
637
|
+
}, ls = {
|
638
638
|
key: 0,
|
639
639
|
class: "absolute left-[50%] top-[110%] translate-x-[-50%] z-10 w-64 transition-[opacity,margin] duration bg-white rounded-xl shadow-lg dark:bg-neutral-900"
|
640
|
-
},
|
640
|
+
}, rs = { class: "relative p-1 border-gray-200 border-y dark:border-neutral-800" }, as = { class: "p-1 pt-3 max-h-80 overflow-y-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500" }, os = {
|
641
641
|
key: 0,
|
642
642
|
class: "block px-3 mb-2 text-xs text-gray-500 dark:text-neutral-500"
|
643
|
-
},
|
643
|
+
}, is = { class: "space-y-1" }, ds = {
|
644
644
|
key: 1,
|
645
645
|
class: "flex items-center px-3 text-[13px] py-1.5 px-3 rounded-md cursor-pointer group"
|
646
646
|
};
|
647
|
-
function
|
647
|
+
function us(t, e, n, o, s, a) {
|
648
648
|
const u = p("IconColumns"), f = p("AdminTableColumnsHiddenItem");
|
649
|
-
return r(), i("div",
|
649
|
+
return r(), i("div", ns, [
|
650
650
|
l("button", {
|
651
|
-
onClick: e[0] || (e[0] = (...h) =>
|
651
|
+
onClick: e[0] || (e[0] = (...h) => a.toggleVisible && a.toggleVisible(...h)),
|
652
652
|
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"
|
653
653
|
}, [
|
654
654
|
x(u, {
|
@@ -660,27 +660,27 @@ function is(t, e, n, a, s, o) {
|
|
660
660
|
default: S(() => {
|
661
661
|
var h, b;
|
662
662
|
return [
|
663
|
-
s.visible ? (r(), i("div",
|
663
|
+
s.visible ? (r(), i("div", ls, [
|
664
664
|
e[2] || (e[2] = l("div", { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-2 text-sm font-medium text-gray-800" }, " Колонки ", -1)),
|
665
|
-
l("div",
|
665
|
+
l("div", rs, [
|
666
666
|
M(l("input", {
|
667
667
|
"onUpdate:modelValue": e[1] || (e[1] = (d) => s.searchValue = d),
|
668
668
|
type: "text",
|
669
669
|
class: "py-1.5 px-3 block w-full border-transparent rounded-lg sm:text-sm text-base placeholder:text-gray-500 hover:bg-gray-100 focus:outline-none focus:border-transparent focus:ring-0 focus:bg-gray-100 disabled:opacity-100 disabled:pointer-events-none dark:bg-transparent dark:border-transparent dark:text-neutral-400 dark:placeholder:text-neutral-400 dark:hover:bg-neutral-800 dark:focus:ring-neutral-600 dark:focus:bg-neutral-800",
|
670
|
-
placeholder: "
|
670
|
+
placeholder: "Пошук",
|
671
671
|
autofocus: ""
|
672
672
|
}, null, 512), [
|
673
|
-
[
|
673
|
+
[nt, s.searchValue]
|
674
674
|
])
|
675
675
|
]),
|
676
|
-
l("div",
|
677
|
-
(h =
|
678
|
-
l("div",
|
679
|
-
(b =
|
676
|
+
l("div", as, [
|
677
|
+
(h = a.filteredColumn) != null && h.length ? (r(), i("span", os, " Оберіть колонки для відображення ")) : v("", !0),
|
678
|
+
l("div", is, [
|
679
|
+
(b = a.filteredColumn) != null && b.length ? (r(!0), i(T, { key: 0 }, D(a.filteredColumn, (d, _) => (r(), k(f, {
|
680
680
|
key: _,
|
681
681
|
column: d,
|
682
|
-
onUpdateColumn:
|
683
|
-
}, null, 8, ["column", "onUpdateColumn"]))), 128)) : (r(), i("div",
|
682
|
+
onUpdateColumn: a.updateColumn
|
683
|
+
}, null, 8, ["column", "onUpdateColumn"]))), 128)) : (r(), i("div", ds, " Нічого не знайдено "))
|
684
684
|
])
|
685
685
|
])
|
686
686
|
])) : v("", !0)
|
@@ -690,7 +690,7 @@ function is(t, e, n, a, s, o) {
|
|
690
690
|
})
|
691
691
|
], 512);
|
692
692
|
}
|
693
|
-
const
|
693
|
+
const cs = /* @__PURE__ */ A(ss, [["render", us]]), ps = {}, hs = {
|
694
694
|
xmlns: "http://www.w3.org/2000/svg",
|
695
695
|
viewBox: "0 0 24 24",
|
696
696
|
fill: "none",
|
@@ -700,8 +700,8 @@ const ds = /* @__PURE__ */ w(es, [["render", is]]), us = {}, cs = {
|
|
700
700
|
"stroke-linejoin": "round",
|
701
701
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-minus"
|
702
702
|
};
|
703
|
-
function
|
704
|
-
return r(), i("svg",
|
703
|
+
function bs(t, e, n, o, s, a) {
|
704
|
+
return r(), i("svg", hs, e[0] || (e[0] = [
|
705
705
|
l("path", {
|
706
706
|
stroke: "none",
|
707
707
|
d: "M0 0h24v24H0z",
|
@@ -710,8 +710,8 @@ function ps(t, e, n, a, s, o) {
|
|
710
710
|
l("path", { d: "M5 12l14 0" }, null, -1)
|
711
711
|
]));
|
712
712
|
}
|
713
|
-
const
|
714
|
-
components: { IconPlus: N, IconMinus:
|
713
|
+
const fs = /* @__PURE__ */ A(ps, [["render", bs]]), gs = {
|
714
|
+
components: { IconPlus: N, IconMinus: fs },
|
715
715
|
props: {
|
716
716
|
title: String,
|
717
717
|
defaultValue: { type: Boolean, default: () => !1 }
|
@@ -719,18 +719,18 @@ const hs = /* @__PURE__ */ w(us, [["render", ps]]), bs = {
|
|
719
719
|
data() {
|
720
720
|
return { expanded: this.defaultValue };
|
721
721
|
}
|
722
|
-
},
|
723
|
-
function
|
722
|
+
}, ms = { class: "hs-accordion" }, xs = { class: "py-0.5 flex items-center gap-x-0.5 w-full" }, ys = { class: "text-sm font-medium" }, ks = { class: "relative inline-block w-full duration-150 cursor-pointer before:block before:absolute b" };
|
723
|
+
function vs(t, e, n, o, s, a) {
|
724
724
|
const u = p("IconPlus"), f = p("IconMinus");
|
725
725
|
return r(), i("div", null, [
|
726
726
|
l("div", null, [
|
727
|
-
l("div",
|
728
|
-
l("div",
|
727
|
+
l("div", ms, [
|
728
|
+
l("div", xs, [
|
729
729
|
l("div", {
|
730
730
|
onClick: e[0] || (e[0] = (h) => s.expanded = !s.expanded),
|
731
731
|
class: "rounded-md cursor-pointer grow"
|
732
732
|
}, [
|
733
|
-
l("span",
|
733
|
+
l("span", ys, $(n.title), 1)
|
734
734
|
]),
|
735
735
|
l("button", {
|
736
736
|
class: "flex items-center justify-center rounded-md size-6 hover:bg-gray-100",
|
@@ -744,8 +744,8 @@ function ys(t, e, n, a, s, o) {
|
|
744
744
|
]),
|
745
745
|
x(z, { name: "fade" }, {
|
746
746
|
default: S(() => [
|
747
|
-
M(l("div",
|
748
|
-
|
747
|
+
M(l("div", ks, [
|
748
|
+
lt(t.$slots, "default", {}, void 0, !0)
|
749
749
|
], 512), [
|
750
750
|
[E, s.expanded]
|
751
751
|
])
|
@@ -756,32 +756,32 @@ function ys(t, e, n, a, s, o) {
|
|
756
756
|
])
|
757
757
|
]);
|
758
758
|
}
|
759
|
-
const
|
759
|
+
const _s = /* @__PURE__ */ A(gs, [["render", vs], ["__scopeId", "data-v-c6318482"]]), Cs = {
|
760
760
|
components: {
|
761
761
|
AdminComponentIs: U,
|
762
|
-
AdminTree:
|
762
|
+
AdminTree: _s,
|
763
763
|
VsNoData: Ee,
|
764
764
|
VsWidgetComments: He,
|
765
765
|
VsWidgetMap: Re,
|
766
766
|
VsWidgetFileList: We
|
767
767
|
},
|
768
768
|
props: { table: String, columns: Array, row: Object }
|
769
|
-
},
|
769
|
+
}, ws = {
|
770
770
|
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",
|
771
771
|
style: { height: "calc(100vh - 310px)" }
|
772
|
-
},
|
772
|
+
}, $s = {
|
773
773
|
class: "border-l",
|
774
774
|
style: { height: "calc(100vh - 360px)" }
|
775
|
-
},
|
776
|
-
function
|
775
|
+
}, Ts = { class: "flow-root mt-[10px]" }, As = { class: "-my-3 text-sm divide-y divide-gray-100" }, Ss = { class: "flex py-3 sm:grid-cols-3 sm:gap-4" }, Is = { class: "font-medium text-black w-[50%]" }, Vs = { class: "text-gray-700 sm:col-span-2 w-[50%]" }, Ds = { class: "table-info-card" }, Ps = { class: "table-info-card" };
|
776
|
+
function Fs(t, e, n, o, s, a) {
|
777
777
|
var m, g, C;
|
778
778
|
const u = p("AdminComponentIs"), f = p("AdminTree"), h = p("VsWidgetMap"), b = p("VsNoData"), d = p("VsWidgetComments"), _ = p("VsWidgetFileList");
|
779
|
-
return r(), i("div",
|
779
|
+
return r(), i("div", ws, [
|
780
780
|
e[0] || (e[0] = l("div", { class: "p-[10px] pl-[18px] pb-[18px] border-b" }, [
|
781
781
|
l("h2", { class: "text-sm font-medium" }, "Інформація про об'єкт")
|
782
782
|
], -1)),
|
783
|
-
l("div",
|
784
|
-
(g = (m = t.$route) == null ? void 0 : m.query) != null && g.card ? (r(), i(
|
783
|
+
l("div", $s, [
|
784
|
+
(g = (m = t.$route) == null ? void 0 : m.query) != null && g.card ? (r(), i(T, { key: 0 }, [
|
785
785
|
n.row ? (r(), k(f, {
|
786
786
|
key: 0,
|
787
787
|
defaultValue: !0,
|
@@ -789,11 +789,11 @@ function Ds(t, e, n, a, s, o) {
|
|
789
789
|
class: "border-b p-[10px] py-[16px]"
|
790
790
|
}, {
|
791
791
|
default: S(() => [
|
792
|
-
l("div",
|
793
|
-
l("dl",
|
794
|
-
(r(!0), i(
|
795
|
-
l("dt",
|
796
|
-
l("dd",
|
792
|
+
l("div", Ts, [
|
793
|
+
l("dl", As, [
|
794
|
+
(r(!0), i(T, null, D(n.columns, (y) => (r(), i("div", Ss, [
|
795
|
+
l("dt", Is, $((y == null ? void 0 : y.ua) || (y == null ? void 0 : y.title)), 1),
|
796
|
+
l("dd", Vs, [
|
797
797
|
x(u, {
|
798
798
|
row: n.row,
|
799
799
|
column: y,
|
@@ -812,11 +812,11 @@ function Ds(t, e, n, a, s, o) {
|
|
812
812
|
class: "border-b p-[10px] py-[16px]"
|
813
813
|
}, {
|
814
814
|
default: S(() => {
|
815
|
-
var y,
|
815
|
+
var y, w;
|
816
816
|
return [
|
817
817
|
(y = n.row) != null && y.geom ? (r(), k(h, {
|
818
818
|
key: 0,
|
819
|
-
geometry: (
|
819
|
+
geometry: (w = n.row) == null ? void 0 : w.geom,
|
820
820
|
zoom: 14
|
821
821
|
}, null, 8, ["geometry"])) : (r(), k(b, {
|
822
822
|
key: 1,
|
@@ -835,7 +835,7 @@ function Ds(t, e, n, a, s, o) {
|
|
835
835
|
default: S(() => {
|
836
836
|
var y;
|
837
837
|
return [
|
838
|
-
l("div",
|
838
|
+
l("div", Ds, [
|
839
839
|
x(d, {
|
840
840
|
id: (y = n.row) == null ? void 0 : y.id
|
841
841
|
}, null, 8, ["id"])
|
@@ -849,12 +849,12 @@ function Ds(t, e, n, a, s, o) {
|
|
849
849
|
class: "border-b p-[10px] py-[16px]"
|
850
850
|
}, {
|
851
851
|
default: S(() => {
|
852
|
-
var y,
|
852
|
+
var y, w;
|
853
853
|
return [
|
854
|
-
l("div",
|
854
|
+
l("div", Ps, [
|
855
855
|
(r(), k(_, {
|
856
856
|
key: (y = n.row) == null ? void 0 : y.id,
|
857
|
-
id: (
|
857
|
+
id: (w = n.row) == null ? void 0 : w.id
|
858
858
|
}, null, 8, ["id"]))
|
859
859
|
])
|
860
860
|
];
|
@@ -868,7 +868,7 @@ function Ds(t, e, n, a, s, o) {
|
|
868
868
|
])
|
869
869
|
]);
|
870
870
|
}
|
871
|
-
const
|
871
|
+
const js = /* @__PURE__ */ A(Cs, [["render", Fs]]), Ls = {
|
872
872
|
emits: ["filterChange"],
|
873
873
|
props: {
|
874
874
|
scheme: { type: Object },
|
@@ -886,13 +886,13 @@ const Ps = /* @__PURE__ */ w(vs, [["render", Ds]]), Fs = {
|
|
886
886
|
this.isFilters && t.classList.contains("filter-container") && (this.isFilters = !1);
|
887
887
|
}
|
888
888
|
}
|
889
|
-
},
|
889
|
+
}, Ms = {
|
890
890
|
key: 0,
|
891
891
|
class: "px-[7px] text-[10px] py-[1px] font-[700] text-white bg-blue-500 rounded-full"
|
892
|
-
},
|
893
|
-
function
|
892
|
+
}, zs = { class: "filter-content h-screen bg-white w-[400px] overflow-x-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" };
|
893
|
+
function qs(t, e, n, o, s, a) {
|
894
894
|
const u = p("IconFilter"), f = p("VsFilter");
|
895
|
-
return r(), i(
|
895
|
+
return r(), i(T, null, [
|
896
896
|
l("button", {
|
897
897
|
onClick: e[0] || (e[0] = (h) => s.isFilters = !s.isFilters),
|
898
898
|
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"
|
@@ -902,19 +902,19 @@ function Ms(t, e, n, a, s, o) {
|
|
902
902
|
width: "16"
|
903
903
|
}),
|
904
904
|
e[4] || (e[4] = P(" Фільтри ")),
|
905
|
-
n.onFilters ? (r(), i("span",
|
905
|
+
n.onFilters ? (r(), i("span", Ms, $(n.onFilters), 1)) : v("", !0)
|
906
906
|
]),
|
907
907
|
x(z, { name: "fade" }, {
|
908
908
|
default: S(() => {
|
909
909
|
var h;
|
910
910
|
return [
|
911
|
-
(r(), k(
|
911
|
+
(r(), k(rt, { to: "#modal" }, [
|
912
912
|
M(l("div", {
|
913
|
-
onClick: e[3] || (e[3] = (...b) =>
|
913
|
+
onClick: e[3] || (e[3] = (...b) => a.closeFilter && a.closeFilter(...b)),
|
914
914
|
style: { height: "100vh" },
|
915
915
|
class: "fixed filter-container top-0 flex justify-end items-center z-[12] right-0 left-0 bottom-0 bg-[rgba(0,0,0,0.2)]"
|
916
916
|
}, [
|
917
|
-
l("div",
|
917
|
+
l("div", zs, [
|
918
918
|
(h = n.scheme) != null && h.length ? (r(), k(f, {
|
919
919
|
key: 0,
|
920
920
|
ref: "filter",
|
@@ -941,25 +941,25 @@ function Ms(t, e, n, a, s, o) {
|
|
941
941
|
})
|
942
942
|
], 64);
|
943
943
|
}
|
944
|
-
const
|
944
|
+
const Bs = /* @__PURE__ */ A(Ls, [["render", qs]]), Os = {
|
945
945
|
props: { tabsList: { type: Array, default: () => [] }, filterState: String }
|
946
|
-
},
|
946
|
+
}, Ns = {
|
947
947
|
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",
|
948
948
|
"aria-label": "Tabs",
|
949
949
|
role: "tablist",
|
950
950
|
"aria-orientation": "horizontal"
|
951
|
-
},
|
952
|
-
function
|
953
|
-
return r(), i("nav",
|
954
|
-
(r(!0), i(
|
951
|
+
}, Us = ["onClick"];
|
952
|
+
function Es(t, e, n, o, s, a) {
|
953
|
+
return r(), i("nav", Ns, [
|
954
|
+
(r(!0), i(T, null, D(n.tabsList, (u) => (r(), i("button", {
|
955
955
|
onClick: (f) => t.$emit("update:filterState", u == null ? void 0 : u.name),
|
956
956
|
class: I(["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", {
|
957
957
|
" 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
|
958
958
|
}])
|
959
|
-
},
|
959
|
+
}, $(u == null ? void 0 : u.label), 11, Us))), 256))
|
960
960
|
]);
|
961
961
|
}
|
962
|
-
const
|
962
|
+
const Hs = /* @__PURE__ */ A(Os, [["render", Es]]), Rs = {}, Ws = {
|
963
963
|
xmlns: "http://www.w3.org/2000/svg",
|
964
964
|
viewBox: "0 0 24 24",
|
965
965
|
fill: "none",
|
@@ -969,8 +969,8 @@ const Us = /* @__PURE__ */ w(qs, [["render", Ns]]), Es = {}, Hs = {
|
|
969
969
|
"stroke-linejoin": "round",
|
970
970
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-filter"
|
971
971
|
};
|
972
|
-
function
|
973
|
-
return r(), i("svg",
|
972
|
+
function Js(t, e, n, o, s, a) {
|
973
|
+
return r(), i("svg", Ws, e[0] || (e[0] = [
|
974
974
|
l("path", {
|
975
975
|
stroke: "none",
|
976
976
|
d: "M0 0h24v24H0z",
|
@@ -979,18 +979,18 @@ function Rs(t, e, n, a, s, o) {
|
|
979
979
|
l("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)
|
980
980
|
]));
|
981
981
|
}
|
982
|
-
const
|
983
|
-
components: { IconFilter2:
|
982
|
+
const Gs = /* @__PURE__ */ A(Rs, [["render", Js]]), Ks = {
|
983
|
+
components: { IconFilter2: Gs, IconCheck2: De },
|
984
984
|
props: { filterCustom: String, customList: Array }
|
985
|
-
},
|
986
|
-
function
|
985
|
+
}, Qs = { 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" }, Xs = { class: "flex flex-col p-[2px] gap-[2px] w-[170px]" }, Ys = ["onClick"], Zs = { class: "text-sm text-gray-800" };
|
986
|
+
function en(t, e, n, o, s, a) {
|
987
987
|
const u = p("IconFilter2"), f = p("IconCheck2"), h = p("VsPopover");
|
988
988
|
return r(), k(h, {
|
989
989
|
ref: "popover",
|
990
990
|
placement: "bottom"
|
991
991
|
}, {
|
992
992
|
reference: S(() => [
|
993
|
-
l("button",
|
993
|
+
l("button", Qs, [
|
994
994
|
x(u, {
|
995
995
|
height: "20",
|
996
996
|
width: "20"
|
@@ -998,8 +998,8 @@ function Ys(t, e, n, a, s, o) {
|
|
998
998
|
])
|
999
999
|
]),
|
1000
1000
|
default: S(() => [
|
1001
|
-
l("div",
|
1002
|
-
(r(!0), i(
|
1001
|
+
l("div", Xs, [
|
1002
|
+
(r(!0), i(T, null, D(n.customList, (b, d) => (r(), i("button", {
|
1003
1003
|
onClick: (_) => {
|
1004
1004
|
var m;
|
1005
1005
|
t.$emit("update:filterCustom", b == null ? void 0 : b.name), (m = t.$refs) == null || m.popover.togglePopover();
|
@@ -1007,12 +1007,12 @@ function Ys(t, e, n, a, s, o) {
|
|
1007
1007
|
key: d,
|
1008
1008
|
class: I(["flex items-center px-3 py-1 rounded-md cursor-pointer group hover:bg-gray-100", { "bg-gray-100": n.filterCustom === (b == null ? void 0 : b.name) }])
|
1009
1009
|
}, [
|
1010
|
-
l("span",
|
1010
|
+
l("span", Zs, $(b == null ? void 0 : b.label), 1),
|
1011
1011
|
n.filterCustom === (b == null ? void 0 : b.name) ? (r(), k(f, {
|
1012
1012
|
key: 0,
|
1013
1013
|
class: "ml-auto size-3 shrink-0"
|
1014
1014
|
})) : v("", !0)
|
1015
|
-
], 10,
|
1015
|
+
], 10, Ys))), 128)),
|
1016
1016
|
l("button", {
|
1017
1017
|
class: "flex items-center px-3 py-1 rounded-md cursor-pointer group hover:bg-gray-100",
|
1018
1018
|
onClick: e[0] || (e[0] = (b) => {
|
@@ -1025,70 +1025,63 @@ function Ys(t, e, n, a, s, o) {
|
|
1025
1025
|
_: 1
|
1026
1026
|
}, 512);
|
1027
1027
|
}
|
1028
|
-
const
|
1028
|
+
const tn = /* @__PURE__ */ A(Ks, [["render", en]]), sn = { class: "flex items-center gap-x-2" }, nn = {
|
1029
1029
|
__name: "admin-table-custom-buttons",
|
1030
1030
|
props: {
|
1031
1031
|
slots: Object
|
1032
1032
|
},
|
1033
1033
|
setup(t) {
|
1034
1034
|
var f, h, b, d, _;
|
1035
|
-
const { asyncTemplateSlot: e } = (_ = (d = (b = (h = (f = Pe()) == null ? void 0 : f.appContext) == null ? void 0 : h.app) == null ? void 0 : b.config) == null ? void 0 : d.globalProperties) == null ? void 0 : _.utils, n = B(""),
|
1036
|
-
var m, g, C, y,
|
1037
|
-
if ((m = s.slots) != null && m.panelLeft || (
|
1035
|
+
const { asyncTemplateSlot: e } = (_ = (d = (b = (h = (f = Pe()) == null ? void 0 : f.appContext) == null ? void 0 : h.app) == null ? void 0 : b.config) == null ? void 0 : d.globalProperties) == null ? void 0 : _.utils, n = B(""), o = B(""), s = t, a = () => {
|
1036
|
+
var m, g, C, y, w;
|
1037
|
+
if ((m = s.slots) != null && m.panelLeft || (o.value = "div"), (C = (g = s.slots) == null ? void 0 : g.panelLeft) != null && C.includes("<")) {
|
1038
1038
|
const V = e("PanelLeft", (y = s.slots) == null ? void 0 : y.panelLeft, [
|
1039
1039
|
"name"
|
1040
1040
|
]);
|
1041
|
-
|
1041
|
+
o.value = V;
|
1042
1042
|
} else
|
1043
|
-
|
1043
|
+
o.value = (w = s.slots) == null ? void 0 : w.panelLeft;
|
1044
1044
|
}, u = () => {
|
1045
|
-
var m, g, C, y,
|
1045
|
+
var m, g, C, y, w;
|
1046
1046
|
if ((m = s.slots) != null && m.panelRight || (n.value = "div"), (C = (g = s.slots) == null ? void 0 : g.panelRight) != null && C.includes("<")) {
|
1047
1047
|
const V = e("PanelRight", (y = s.slots) == null ? void 0 : y.panelRight, [
|
1048
1048
|
"name"
|
1049
1049
|
]);
|
1050
1050
|
n.value = V;
|
1051
1051
|
} else
|
1052
|
-
n.value = (
|
1052
|
+
n.value = (w = s.slots) == null ? void 0 : w.panelRight;
|
1053
1053
|
};
|
1054
|
-
return
|
1055
|
-
(r(), k(O(
|
1054
|
+
return a(), u(), (m, g) => (r(), i("div", sn, [
|
1055
|
+
(r(), k(O(o.value))),
|
1056
1056
|
(r(), k(O(n.value)))
|
1057
1057
|
]));
|
1058
1058
|
}
|
1059
|
-
},
|
1060
|
-
let n;
|
1061
|
-
return function(...a) {
|
1062
|
-
clearTimeout(n), n = setTimeout(() => {
|
1063
|
-
t.apply(this, a);
|
1064
|
-
}, e);
|
1065
|
-
};
|
1066
|
-
}, nn = {
|
1059
|
+
}, ln = {
|
1067
1060
|
__name: "admin-custom-button-add",
|
1068
1061
|
props: {
|
1069
1062
|
slots: Object
|
1070
1063
|
},
|
1071
1064
|
setup(t) {
|
1072
|
-
var
|
1073
|
-
const { asyncTemplateSlot: e } = (b = (h = (f = (u = (
|
1065
|
+
var a, u, f, h, b;
|
1066
|
+
const { asyncTemplateSlot: e } = (b = (h = (f = (u = (a = Pe()) == null ? void 0 : a.appContext) == null ? void 0 : u.app) == null ? void 0 : f.config) == null ? void 0 : h.globalProperties) == null ? void 0 : b.utils, n = B(""), o = t;
|
1074
1067
|
return (() => {
|
1075
1068
|
var d, _, m, g, C;
|
1076
|
-
if ((d =
|
1077
|
-
const y = e("addButton", (g =
|
1069
|
+
if ((d = o.slots) != null && d.addButton || (n.value = "div"), (m = (_ = o.slots) == null ? void 0 : _.addButton) != null && m.includes("<")) {
|
1070
|
+
const y = e("addButton", (g = o.slots) == null ? void 0 : g.addButton, [
|
1078
1071
|
"IconPlus"
|
1079
1072
|
]);
|
1080
1073
|
n.value = y;
|
1081
1074
|
} else
|
1082
|
-
n.value = (C =
|
1075
|
+
n.value = (C = o.slots) == null ? void 0 : C.addButton;
|
1083
1076
|
})(), (d, _) => n.value ? (r(), k(O(n.value), {
|
1084
1077
|
key: 0,
|
1085
1078
|
IconPlus: N
|
1086
1079
|
})) : v("", !0);
|
1087
1080
|
}
|
1088
|
-
},
|
1081
|
+
}, rn = {
|
1089
1082
|
key: 0,
|
1090
1083
|
class: "px-1 py-3 text-gray-800 font-[500]"
|
1091
|
-
},
|
1084
|
+
}, an = {
|
1092
1085
|
key: 1,
|
1093
1086
|
class: "px-1 py-3 text-gray-800 font-[700]"
|
1094
1087
|
}, on = {
|
@@ -1100,42 +1093,22 @@ const Zs = /* @__PURE__ */ w(Js, [["render", Ys]]), en = { class: "flex items-ce
|
|
1100
1093
|
},
|
1101
1094
|
setup(t) {
|
1102
1095
|
return (e, n) => (r(), i("tr", null, [
|
1103
|
-
(r(!0), i(
|
1096
|
+
(r(!0), i(T, null, D(t.columns, (o) => {
|
1104
1097
|
var s;
|
1105
|
-
return r(), i(
|
1106
|
-
key:
|
1098
|
+
return r(), i(T, {
|
1099
|
+
key: o == null ? void 0 : o.name
|
1107
1100
|
}, [
|
1108
|
-
(s = t.agg) != null && s[
|
1101
|
+
(s = t.agg) != null && s[o == null ? void 0 : o.name] ? (r(), i("td", rn, [
|
1109
1102
|
x(U, {
|
1110
|
-
column:
|
1103
|
+
column: o,
|
1111
1104
|
row: t.agg
|
1112
1105
|
}, null, 8, ["column", "row"])
|
1113
|
-
])) : (r(), i("td",
|
1106
|
+
])) : (r(), i("td", an))
|
1114
1107
|
], 64);
|
1115
1108
|
}), 128))
|
1116
1109
|
]));
|
1117
1110
|
}
|
1118
|
-
},
|
1119
|
-
xmlns: "http://www.w3.org/2000/svg",
|
1120
|
-
viewBox: "0 0 24 24",
|
1121
|
-
fill: "none",
|
1122
|
-
stroke: "currentColor",
|
1123
|
-
"stroke-width": "2",
|
1124
|
-
"stroke-linecap": "round",
|
1125
|
-
"stroke-linejoin": "round",
|
1126
|
-
class: "icon icon-tabler icons-tabler-outline icon-tabler-chevron-down"
|
1127
|
-
};
|
1128
|
-
function un(t, e, n, a, s, o) {
|
1129
|
-
return r(), i("svg", dn, e[0] || (e[0] = [
|
1130
|
-
l("path", {
|
1131
|
-
stroke: "none",
|
1132
|
-
d: "M0 0h24v24H0z",
|
1133
|
-
fill: "none"
|
1134
|
-
}, null, -1),
|
1135
|
-
l("path", { d: "M6 9l6 6l6 -6" }, null, -1)
|
1136
|
-
]));
|
1137
|
-
}
|
1138
|
-
const cn = /* @__PURE__ */ w(an, [["render", un]]), pn = {}, hn = {
|
1111
|
+
}, dn = {}, un = {
|
1139
1112
|
xmlns: "http://www.w3.org/2000/svg",
|
1140
1113
|
viewBox: "0 0 24 24",
|
1141
1114
|
fill: "none",
|
@@ -1145,8 +1118,8 @@ const cn = /* @__PURE__ */ w(an, [["render", un]]), pn = {}, hn = {
|
|
1145
1118
|
"stroke-linejoin": "round",
|
1146
1119
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-check"
|
1147
1120
|
};
|
1148
|
-
function
|
1149
|
-
return r(), i("svg",
|
1121
|
+
function cn(t, e, n, o, s, a) {
|
1122
|
+
return r(), i("svg", un, e[0] || (e[0] = [
|
1150
1123
|
l("path", {
|
1151
1124
|
stroke: "none",
|
1152
1125
|
d: "M0 0h24v24H0z",
|
@@ -1155,8 +1128,8 @@ function bn(t, e, n, a, s, o) {
|
|
1155
1128
|
l("path", { d: "M5 12l5 5l10 -10" }, null, -1)
|
1156
1129
|
]));
|
1157
1130
|
}
|
1158
|
-
const
|
1159
|
-
components: { IconChevronDown:
|
1131
|
+
const pn = /* @__PURE__ */ A(dn, [["render", cn]]), hn = at({
|
1132
|
+
components: { IconChevronDown: Ge, IconCheck: pn },
|
1160
1133
|
props: {
|
1161
1134
|
total: { type: Number, default: () => 0 },
|
1162
1135
|
pageSize: { type: Number, default: () => 20 },
|
@@ -1222,10 +1195,10 @@ const fn = /* @__PURE__ */ w(pn, [["render", bn]]), gn = lt({
|
|
1222
1195
|
},
|
1223
1196
|
updatePages(t) {
|
1224
1197
|
const e = Math.floor(this.maxPages / 2);
|
1225
|
-
let n = Math.max(t - e, 1),
|
1226
|
-
|
1227
|
-
{ length:
|
1228
|
-
(s,
|
1198
|
+
let n = Math.max(t - e, 1), o = n + this.maxPages - 1;
|
1199
|
+
o > this.pagesCount && (o = this.pagesCount, n = Math.max(o - this.maxPages + 1, 1)), this.pages = Array.from(
|
1200
|
+
{ length: o - n + 1 },
|
1201
|
+
(s, a) => n + a
|
1229
1202
|
);
|
1230
1203
|
},
|
1231
1204
|
handleClickPrev() {
|
@@ -1235,16 +1208,16 @@ const fn = /* @__PURE__ */ w(pn, [["render", bn]]), gn = lt({
|
|
1235
1208
|
this.disableNextClick || (this.setCurrentPage(parseInt(this.page) + 1), this.updatePages(this.page), this.$emit("nextClick"));
|
1236
1209
|
},
|
1237
1210
|
setCurrentPage(t) {
|
1238
|
-
|
1211
|
+
this.page = t, this.$emit("pageChange", this.page, this.pageSizeLocal), this.updatePages(t);
|
1239
1212
|
}
|
1240
1213
|
}
|
1241
|
-
}),
|
1214
|
+
}), bn = { class: "flex items-center w-full" }, fn = { class: "flex items-center mx-[8px]" }, gn = { class: "min-h-[38px] flex justify-center items-center text-stone-500 py-2 px-1.5 text-sm" }, mn = {
|
1242
1215
|
key: 0,
|
1243
1216
|
class: "flex items-center justify-center ml-3 gap-x-5"
|
1244
|
-
},
|
1245
|
-
function
|
1217
|
+
}, xn = { class: "relative" }, yn = { class: "z-50 bg-white shadow-md rounded-lg p-1 space-y-0.5 dark:bg-neutral-800 dark:border dark:border-neutral-700 dark:divide-neutral-700 absolute bottom-[100%]" }, kn = ["onClick"];
|
1218
|
+
function vn(t, e, n, o, s, a) {
|
1246
1219
|
const u = p("IconChevronDown"), f = p("IconCheck");
|
1247
|
-
return r(), i("nav",
|
1220
|
+
return r(), i("nav", bn, [
|
1248
1221
|
l("button", {
|
1249
1222
|
type: "button",
|
1250
1223
|
onClick: e[0] || (e[0] = (...h) => t.handleClickPrev && t.handleClickPrev(...h)),
|
@@ -1256,15 +1229,15 @@ function wn(t, e, n, a, s, o) {
|
|
1256
1229
|
class: "rotate-90"
|
1257
1230
|
})
|
1258
1231
|
], 2),
|
1259
|
-
l("div",
|
1232
|
+
l("div", fn, [
|
1260
1233
|
l("span", {
|
1261
1234
|
ref: "currentPage",
|
1262
1235
|
contenteditable: "true",
|
1263
1236
|
onBlur: e[1] || (e[1] = (h) => t.handleSetPage(h.target.innerText)),
|
1264
1237
|
class: "min-h-[38px] max-h-[38px] overflow-hidden min-w-[38px] flex justify-center items-center bg-stone-100 text-stone-800 py-2 px-3 text-sm rounded-lg disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-700 dark:text-white"
|
1265
|
-
},
|
1238
|
+
}, $(t.page), 545),
|
1266
1239
|
e[4] || (e[4] = l("span", { class: "min-h-[38px] flex justify-center items-center text-stone-500 py-2 px-1.5 text-sm" }, "з", -1)),
|
1267
|
-
l("span",
|
1240
|
+
l("span", gn, $(t.pagesCount), 1)
|
1268
1241
|
]),
|
1269
1242
|
l("button", {
|
1270
1243
|
type: "button",
|
@@ -1277,22 +1250,22 @@ function wn(t, e, n, a, s, o) {
|
|
1277
1250
|
class: "-rotate-90"
|
1278
1251
|
})
|
1279
1252
|
], 2),
|
1280
|
-
t.pageSizes.length ? (r(), i("div",
|
1281
|
-
l("div",
|
1282
|
-
M(l("div",
|
1283
|
-
(r(!0), i(
|
1253
|
+
t.pageSizes.length ? (r(), i("div", mn, [
|
1254
|
+
l("div", xn, [
|
1255
|
+
M(l("div", yn, [
|
1256
|
+
(r(!0), i(T, null, D(t.pageSizes, (h) => (r(), i("button", {
|
1284
1257
|
type: "button",
|
1285
1258
|
class: "w-full flex items-center gap-x-3.5 py-2 px-3 rounded-lg text-sm",
|
1286
1259
|
onClick: (b) => t.pageSizeLocal = h
|
1287
1260
|
}, [
|
1288
|
-
P(
|
1261
|
+
P($(h) + " ", 1),
|
1289
1262
|
h === t.pageSizeLocal ? (r(), k(f, {
|
1290
1263
|
key: 0,
|
1291
1264
|
width: "14",
|
1292
1265
|
height: "14",
|
1293
1266
|
class: "text-blue-600"
|
1294
1267
|
})) : v("", !0)
|
1295
|
-
], 8,
|
1268
|
+
], 8, kn))), 256))
|
1296
1269
|
], 512), [
|
1297
1270
|
[E, t.isDropdownOpen]
|
1298
1271
|
]),
|
@@ -1302,7 +1275,7 @@ function wn(t, e, n, a, s, o) {
|
|
1302
1275
|
class: "text-sm h-[32px] min-w-8 py-3 px-3.5 inline-flex items-center gap-x-1 rounded-lg border border-gray-200 text-gray-800 shadow-sm hover:bg-gray-50 focus:outline-none focus:bg-gray-100 disabled:opacity-50 disabled:pointer-events-none dark:border-neutral-700 dark:text-white dark:hover:bg-neutral-700 dark:focus:bg-neutral-700",
|
1303
1276
|
onClick: e[3] || (e[3] = (h) => t.isDropdownOpen = !t.isDropdownOpen)
|
1304
1277
|
}, [
|
1305
|
-
P(
|
1278
|
+
P($(t.pageSizeLocal) + " ", 1),
|
1306
1279
|
x(u, {
|
1307
1280
|
height: "16",
|
1308
1281
|
width: "16"
|
@@ -1312,26 +1285,27 @@ function wn(t, e, n, a, s, o) {
|
|
1312
1285
|
])) : v("", !0)
|
1313
1286
|
]);
|
1314
1287
|
}
|
1315
|
-
const
|
1316
|
-
props: { table: String, title: String },
|
1288
|
+
const _n = /* @__PURE__ */ A(hn, [["render", vn]]), Cn = {
|
1289
|
+
props: { table: String, title: String, search: String },
|
1317
1290
|
components: {
|
1318
|
-
AdminTableControl:
|
1319
|
-
AdminTableExport:
|
1320
|
-
|
1321
|
-
|
1322
|
-
|
1291
|
+
AdminTableControl: _t,
|
1292
|
+
AdminTableExport: Wt,
|
1293
|
+
// AdminTablePrint,
|
1294
|
+
AdminTableColumnsHidden: cs,
|
1295
|
+
AdminTableColumn: pt,
|
1296
|
+
AdminNodata: Ke,
|
1323
1297
|
IconPlus: N,
|
1324
|
-
IconSearch:
|
1325
|
-
AdminTableCardInfo:
|
1326
|
-
IconOpenCard:
|
1298
|
+
IconSearch: Qe,
|
1299
|
+
AdminTableCardInfo: js,
|
1300
|
+
IconOpenCard: Xe,
|
1327
1301
|
AdminComponentIs: U,
|
1328
|
-
AdminTableFilters:
|
1329
|
-
AdminTableTabs:
|
1330
|
-
AdminTableCustomFilters:
|
1331
|
-
AdminTableCustomButtons:
|
1332
|
-
AdminCustomButtonAdd:
|
1302
|
+
AdminTableFilters: Bs,
|
1303
|
+
AdminTableTabs: Hs,
|
1304
|
+
AdminTableCustomFilters: tn,
|
1305
|
+
AdminTableCustomButtons: nn,
|
1306
|
+
AdminCustomButtonAdd: ln,
|
1333
1307
|
AdminTableTotalsList: on,
|
1334
|
-
AdminTablePagination:
|
1308
|
+
AdminTablePagination: _n
|
1335
1309
|
},
|
1336
1310
|
data() {
|
1337
1311
|
return {
|
@@ -1366,8 +1340,8 @@ const $n = /* @__PURE__ */ w(gn, [["render", wn]]), Tn = {
|
|
1366
1340
|
return (e = (t = this.tableData) == null ? void 0 : t.columns) == null ? void 0 : e.filter((n) => (n == null ? void 0 : n.hidden) !== !0);
|
1367
1341
|
},
|
1368
1342
|
isForm() {
|
1369
|
-
var t, e, n,
|
1370
|
-
return ((t = this.tableData) == null ? void 0 : t.form) && (((n = (e = this.tableData) == null ? void 0 : e.actions) == null ? void 0 : n.includes("add")) || ((s = (
|
1343
|
+
var t, e, n, o, s;
|
1344
|
+
return ((t = this.tableData) == null ? void 0 : t.form) && (((n = (e = this.tableData) == null ? void 0 : e.actions) == null ? void 0 : n.includes("add")) || ((s = (o = this.tableData) == null ? void 0 : o.actions) == null ? void 0 : s.includes("edit")));
|
1371
1345
|
},
|
1372
1346
|
isNoData() {
|
1373
1347
|
var t, e;
|
@@ -1376,8 +1350,8 @@ const $n = /* @__PURE__ */ w(gn, [["render", wn]]), Tn = {
|
|
1376
1350
|
activeCardRow() {
|
1377
1351
|
var t, e;
|
1378
1352
|
return ((e = (t = this.tableData) == null ? void 0 : t.rows) == null ? void 0 : e.find((n) => {
|
1379
|
-
var
|
1380
|
-
return (n == null ? void 0 : n.id) === ((s = (
|
1353
|
+
var o, s;
|
1354
|
+
return (n == null ? void 0 : n.id) === ((s = (o = this.$route) == null ? void 0 : o.query) == null ? void 0 : s.card);
|
1381
1355
|
})) || {};
|
1382
1356
|
},
|
1383
1357
|
getActions() {
|
@@ -1390,7 +1364,7 @@ const $n = /* @__PURE__ */ w(gn, [["render", wn]]), Tn = {
|
|
1390
1364
|
this.tableData = null, await this.getTableData();
|
1391
1365
|
},
|
1392
1366
|
searchValue: {
|
1393
|
-
handler:
|
1367
|
+
handler: Ye(async function(t) {
|
1394
1368
|
var e;
|
1395
1369
|
await this.getTableData(), this.$router.push({
|
1396
1370
|
...this.$route,
|
@@ -1400,8 +1374,8 @@ const $n = /* @__PURE__ */ w(gn, [["render", wn]]), Tn = {
|
|
1400
1374
|
},
|
1401
1375
|
$route: {
|
1402
1376
|
handler(t, e) {
|
1403
|
-
var n,
|
1404
|
-
((n = t == null ? void 0 : t.params) == null ? void 0 : n.catchAll) !== ((
|
1377
|
+
var n, o;
|
1378
|
+
((n = t == null ? void 0 : t.params) == null ? void 0 : n.catchAll) !== ((o = e == null ? void 0 : e.params) == null ? void 0 : o.catchAll) && (this.visibleColumns = [], this.unmountedData(), this.getFilters());
|
1405
1379
|
},
|
1406
1380
|
deep: !0
|
1407
1381
|
},
|
@@ -1427,24 +1401,24 @@ const $n = /* @__PURE__ */ w(gn, [["render", wn]]), Tn = {
|
|
1427
1401
|
}), this.getTableData();
|
1428
1402
|
},
|
1429
1403
|
columns(t) {
|
1430
|
-
var e, n,
|
1431
|
-
this.visibleColumns = t == null ? void 0 : t.map((
|
1404
|
+
var e, n, o, s;
|
1405
|
+
this.visibleColumns = t == null ? void 0 : t.map((a) => a == null ? void 0 : a.name), this.initialHiddenColumns === ((e = this.visibleColumns) == null ? void 0 : e.join(",")) && (this.visibleColumns = []), this.$router.replace({
|
1432
1406
|
...this.$route,
|
1433
1407
|
query: {
|
1434
1408
|
...(n = this.$route) == null ? void 0 : n.query,
|
1435
|
-
columns: (
|
1409
|
+
columns: (o = this.visibleColumns) != null && o.length ? (s = this.visibleColumns) == null ? void 0 : s.join(",") : void 0
|
1436
1410
|
}
|
1437
1411
|
});
|
1438
1412
|
}
|
1439
1413
|
},
|
1440
1414
|
methods: {
|
1441
1415
|
async checkUrlMounted() {
|
1442
|
-
var t, e, n,
|
1443
|
-
this.page = ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1, this.limit = ((
|
1416
|
+
var t, e, n, o, s, a, u, f, h, b, d, _, m, g, C, y, w, V, L;
|
1417
|
+
this.page = ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1, this.limit = ((o = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : o.limit) || 20, this.filters = ((u = decodeURI((a = (s = this.$route) == null ? void 0 : s.query) == null ? void 0 : a.filter)) == null ? void 0 : u.replaceAll("+", " ")) || null, this.filters && (this.onFilters = ((h = (f = this.filters) == null ? void 0 : f.split("=")) == null ? void 0 : h.length) - 1), this.filterState = ((d = (b = this.$route) == null ? void 0 : b.query) == null ? void 0 : d.filterState) || null, this.filterCustom = ((m = (_ = this.$route) == null ? void 0 : _.query) == null ? void 0 : m.custom) || null, this.searchValue = ((C = (g = this.$route) == null ? void 0 : g.query) == null ? void 0 : C.search) || "", this.visibleColumns = ((V = (w = (y = this.$route) == null ? void 0 : y.query) == null ? void 0 : w.columns) == null ? void 0 : V.split(",")) || [], (L = this.$route) != null && L.query.card && (this.isVisibleCardInfo = !0);
|
1444
1418
|
},
|
1445
1419
|
rowWidth(t) {
|
1446
|
-
var n,
|
1447
|
-
const e = (
|
1420
|
+
var n, o;
|
1421
|
+
const e = (o = (n = this.tableData) == null ? void 0 : n.columns) == null ? void 0 : o.find((s) => s.name === t);
|
1448
1422
|
if (e) {
|
1449
1423
|
const s = e == null ? void 0 : e.width;
|
1450
1424
|
return typeof s == "number" ? `${s}px` : s != null && s.includes("px") ? s : `${s}px`;
|
@@ -1454,7 +1428,7 @@ const $n = /* @__PURE__ */ w(gn, [["render", wn]]), Tn = {
|
|
1454
1428
|
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 = "";
|
1455
1429
|
},
|
1456
1430
|
async getTableData() {
|
1457
|
-
var t, e, n,
|
1431
|
+
var t, e, n, o, s, a, u, f, h, b, d;
|
1458
1432
|
try {
|
1459
1433
|
const { data: _ } = await j.get(`/api/template/table/${this.table}`), m = await j.get(`/api/table-data/${this.table}`, {
|
1460
1434
|
params: {
|
@@ -1470,7 +1444,7 @@ const $n = /* @__PURE__ */ w(gn, [["render", wn]]), Tn = {
|
|
1470
1444
|
this.tableData = {
|
1471
1445
|
..._,
|
1472
1446
|
...(m == null ? void 0 : m.data) || {}
|
1473
|
-
}, this.initialHiddenColumns = (
|
1447
|
+
}, this.initialHiddenColumns = (a = (s = (o = (n = this.tableData) == null ? void 0 : n.columns) == null ? void 0 : o.filter((g) => (g == null ? void 0 : g.hidden) !== !0)) == null ? void 0 : s.map((g) => g == null ? void 0 : g.name)) == null ? void 0 : a.join(","), (u = this.visibleColumns) != null && u.length ? (f = this.tableData) == null || f.columns.forEach((g) => {
|
1474
1448
|
var C;
|
1475
1449
|
(C = this.visibleColumns) != null && C.includes(g == null ? void 0 : g.name) ? g.hidden = !1 : g.hidden = !0;
|
1476
1450
|
}) : this.visibleColumns = (d = (b = (h = this.tableData) == null ? void 0 : h.columns) == null ? void 0 : b.filter((g) => (g == null ? void 0 : g.hidden) !== !0)) == null ? void 0 : d.map((g) => g == null ? void 0 : g.name);
|
@@ -1490,7 +1464,7 @@ const $n = /* @__PURE__ */ w(gn, [["render", wn]]), Tn = {
|
|
1490
1464
|
},
|
1491
1465
|
async handlePageChange(t, e) {
|
1492
1466
|
const n = this.$route.query;
|
1493
|
-
this.page = t, await this.$router.replace({ query: { ...n, page: t, limit: e } }), await this.getTableData();
|
1467
|
+
this.page = t, this.limit = e, await this.$router.replace({ query: { ...n, page: t, limit: e } }), await this.getTableData();
|
1494
1468
|
},
|
1495
1469
|
async filterChange({ url: t, state: e }) {
|
1496
1470
|
var n;
|
@@ -1528,26 +1502,26 @@ const $n = /* @__PURE__ */ w(gn, [["render", wn]]), Tn = {
|
|
1528
1502
|
];
|
1529
1503
|
}
|
1530
1504
|
}
|
1531
|
-
},
|
1505
|
+
}, wn = { class: "w-[calc(100vw - 320px)] bg-gray-50" }, $n = { class: "h-[76px] mt-[15px] flex items-center justify-between mx-[20px] px-[20px] bg-white border rounded-xl" }, Tn = { class: "text-lg font-semibold text-gray-800 dark:text-neutral-200" }, An = {
|
1532
1506
|
style: { height: "calc(100vh - 155px)" },
|
1533
1507
|
class: "bg-gray-50 p-[20px] flex pt-[10px] lg:w-[calc(100vw-260px)] w-[100vw]"
|
1534
|
-
},
|
1508
|
+
}, Sn = { class: "bg-white w-full rounded-xl border p-[20px] pr-0" }, In = { class: "flex" }, Vn = { class: "flex gap-[6px] ml-auto" }, Dn = { class: "inline-block w-full align-middle" }, Pn = {
|
1535
1509
|
key: 0,
|
1536
1510
|
class: "relative min-w-full text-[13px] divide-y divide-gray-200 table-fixed w-max dark:divide-neutral-700"
|
1537
|
-
},
|
1511
|
+
}, Fn = { class: "sticky top-[-1px] z-[2] bg-white w-full after:absolute after:content-[''] after:block after:w-full after:h-px after:bg-stone-200" }, jn = { class: "right-0" }, Ln = {
|
1538
1512
|
key: 0,
|
1539
1513
|
class: "w-[70px] sticky right-0 top-0"
|
1540
|
-
},
|
1514
|
+
}, Mn = { class: "divide-y divide-gray-200 z-[1] relative" }, zn = ["onClick"], qn = ["onClick"], Bn = { class: "p-[10px] flex justify-start items-end w-full" }, On = { class: "w-[200px] md:inline-flex hidden" }, Nn = { class: "text-sm text-gray-600 dark:text-neutral-400" }, Un = { class: "font-semibold text-gray-800 dark:text-neutral-200" }, En = { key: 0 }, Hn = {
|
1541
1515
|
key: 0,
|
1542
1516
|
class: "font-semibold text-gray-800 dark:text-neutral-200"
|
1543
1517
|
};
|
1544
|
-
function
|
1545
|
-
var H, R, W, J, G, K, Q, X, Y, Z, ee, te, se, ne, le, re,
|
1546
|
-
const u = p("AdminCustomButtonAdd"), f = p("IconPlus"), h = p("router-link"), b = p("AdminTableTabs"), d = p("IconSearch"), _ = p("VsText"), m = p("AdminTableCustomButtons"), g = p("AdminTableCustomFilters"), C = p("AdminTableColumnsHidden"), y = p("AdminTableExport"),
|
1547
|
-
return r(), i("div",
|
1548
|
-
l("div",
|
1549
|
-
l("h2",
|
1550
|
-
|
1518
|
+
function Rn(t, e, n, o, s, a) {
|
1519
|
+
var H, R, W, J, G, K, Q, X, Y, Z, ee, te, se, ne, le, re, ae, oe, ie, de, ue, ce, pe, he, be, fe, ge;
|
1520
|
+
const u = p("AdminCustomButtonAdd"), f = p("IconPlus"), h = p("router-link"), b = p("AdminTableTabs"), d = p("IconSearch"), _ = p("VsText"), m = p("AdminTableCustomButtons"), g = p("AdminTableCustomFilters"), C = p("AdminTableColumnsHidden"), y = p("AdminTableExport"), w = p("AdminTableFilters"), V = p("IconOpenCard"), L = p("AdminTableColumn"), q = p("AdminComponentIs"), Fe = p("AdminTableControl"), je = p("AdminTableTotalsList"), Le = p("AdminNodata"), Me = p("AdminTablePagination"), ze = p("AdminTableCardInfo");
|
1521
|
+
return r(), i("div", wn, [
|
1522
|
+
l("div", $n, [
|
1523
|
+
l("h2", Tn, $(n.title), 1),
|
1524
|
+
a.isForm ? (r(), i(T, { key: 0 }, [
|
1551
1525
|
(R = (H = s.tableData) == null ? void 0 : H.slots) != null && R.addButton ? (r(), k(u, {
|
1552
1526
|
key: 0,
|
1553
1527
|
slots: (W = s.tableData) == null ? void 0 : W.slots
|
@@ -1567,15 +1541,15 @@ function Gn(t, e, n, a, s, o) {
|
|
1567
1541
|
}, 8, ["to"]))
|
1568
1542
|
], 64)) : v("", !0)
|
1569
1543
|
]),
|
1570
|
-
l("div",
|
1571
|
-
l("div",
|
1544
|
+
l("div", An, [
|
1545
|
+
l("div", Sn, [
|
1572
1546
|
(Q = (K = s.tableData) == null ? void 0 : K.filterState) != null && Q.length ? (r(), k(b, {
|
1573
1547
|
key: 0,
|
1574
1548
|
tabsList: (X = s.tableData) == null ? void 0 : X.filterState,
|
1575
1549
|
filterState: s.filterState,
|
1576
1550
|
"onUpdate:filterState": e[0] || (e[0] = (c) => s.filterState = c)
|
1577
1551
|
}, null, 8, ["tabsList", "filterState"])) : v("", !0),
|
1578
|
-
l("div",
|
1552
|
+
l("div", In, [
|
1579
1553
|
l("div", {
|
1580
1554
|
class: I([s.isVisibleCardInfo ? "w-[calc(100%-360px)]" : "w-full"])
|
1581
1555
|
}, [
|
@@ -1590,11 +1564,11 @@ function Gn(t, e, n, a, s, o) {
|
|
1590
1564
|
x(_, {
|
1591
1565
|
modelValue: s.searchValue,
|
1592
1566
|
"onUpdate:modelValue": e[1] || (e[1] = (c) => s.searchValue = c),
|
1593
|
-
placeholder: "Пошук...",
|
1567
|
+
placeholder: n.search || "Пошук...",
|
1594
1568
|
clearable: !0,
|
1595
1569
|
class: "[&>input]:py-[7px] [&>input]:max-h-[36px] [&>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"
|
1596
|
-
}, null, 8, ["modelValue"]),
|
1597
|
-
l("div",
|
1570
|
+
}, null, 8, ["modelValue", "placeholder"]),
|
1571
|
+
l("div", Vn, [
|
1598
1572
|
(Y = s.tableData) != null && Y.slots ? (r(), k(m, {
|
1599
1573
|
key: 0,
|
1600
1574
|
slots: (Z = s.tableData) == null ? void 0 : Z.slots
|
@@ -1618,15 +1592,15 @@ function Gn(t, e, n, a, s, o) {
|
|
1618
1592
|
"filter-custom": s.filterCustom,
|
1619
1593
|
filters: s.filters
|
1620
1594
|
}, null, 8, ["table", "columns", "page", "filter-state", "filter-custom", "filters"])) : v("", !0),
|
1621
|
-
(
|
1595
|
+
(ae = s.filterScheme) != null && ae.length ? (r(), k(w, {
|
1622
1596
|
key: 3,
|
1623
1597
|
scheme: s.filterScheme,
|
1624
1598
|
onFilters: s.onFilters,
|
1625
1599
|
table: n.table,
|
1626
|
-
onFilterChange:
|
1600
|
+
onFilterChange: a.filterChange
|
1627
1601
|
}, null, 8, ["scheme", "onFilters", "table", "onFilterChange"])) : v("", !0),
|
1628
1602
|
l("button", {
|
1629
|
-
onClick: e[4] || (e[4] = (...c) =>
|
1603
|
+
onClick: e[4] || (e[4] = (...c) => a.toggleCardInfo && a.toggleCardInfo(...c)),
|
1630
1604
|
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"
|
1631
1605
|
}, [
|
1632
1606
|
x(V, {
|
@@ -1640,32 +1614,32 @@ function Gn(t, e, n, a, s, o) {
|
|
1640
1614
|
}, [
|
1641
1615
|
l("div", {
|
1642
1616
|
style: Ve({
|
1643
|
-
height: (ie = (
|
1617
|
+
height: (ie = (oe = s.tableData) == null ? void 0 : oe.filterState) != null && ie.length ? "calc(100vh - 370px)" : "calc(100vh - 310px)"
|
1644
1618
|
}),
|
1645
1619
|
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"
|
1646
1620
|
}, [
|
1647
|
-
l("div",
|
1648
|
-
|
1649
|
-
l("thead",
|
1650
|
-
l("tr",
|
1651
|
-
(r(!0), i(
|
1621
|
+
l("div", Dn, [
|
1622
|
+
a.isNoData ? (r(), k(Le, { key: 1 })) : (r(), i("table", Pn, [
|
1623
|
+
l("thead", Fn, [
|
1624
|
+
l("tr", jn, [
|
1625
|
+
(r(!0), i(T, null, D(a.columns, (c) => (r(), k(L, {
|
1652
1626
|
key: c.name,
|
1653
1627
|
style: Ve({
|
1654
|
-
width:
|
1628
|
+
width: a.rowWidth(c == null ? void 0 : c.name),
|
1655
1629
|
textAlign: c == null ? void 0 : c.align,
|
1656
1630
|
wordBreak: c == null ? void 0 : c.wrap
|
1657
1631
|
}),
|
1658
1632
|
data: c,
|
1659
1633
|
activeColumn: s.activeColumn,
|
1660
|
-
onChangeActive:
|
1634
|
+
onChangeActive: a.changeActiveColumn
|
1661
1635
|
}, null, 8, ["style", "data", "activeColumn", "onChangeActive"]))), 128)),
|
1662
|
-
(ue = (de =
|
1636
|
+
(ue = (de = a.getActions) == null ? void 0 : de.filter(
|
1663
1637
|
(c) => c !== "add" && c !== "view"
|
1664
|
-
)) != null && ue.length ? (r(), i("th",
|
1638
|
+
)) != null && ue.length ? (r(), i("th", Ln)) : v("", !0)
|
1665
1639
|
])
|
1666
1640
|
]),
|
1667
|
-
l("tbody",
|
1668
|
-
(r(!0), i(
|
1641
|
+
l("tbody", Mn, [
|
1642
|
+
(r(!0), i(T, null, D((ce = s.tableData) == null ? void 0 : ce.rows, (c, qe) => {
|
1669
1643
|
var me, xe, ye, ke, ve, _e, Ce, we, $e, Te, Ae, Se;
|
1670
1644
|
return r(), i("tr", {
|
1671
1645
|
key: (c == null ? void 0 : c.id) || qe,
|
@@ -1675,41 +1649,41 @@ function Gn(t, e, n, a, s, o) {
|
|
1675
1649
|
}, [
|
1676
1650
|
l("td", {
|
1677
1651
|
class: I(["px-1 py-3 text-gray-600 pe-4", [
|
1678
|
-
(ye =
|
1652
|
+
(ye = a.columns[0]) != null && ye.align ? `text-${((ke = a.columns[0]) == null ? void 0 : ke.align) || "left"}` : ""
|
1679
1653
|
]])
|
1680
1654
|
}, [
|
1681
1655
|
l("button", {
|
1682
1656
|
onClick: (F) => {
|
1683
|
-
|
1657
|
+
a.pushToCard(c == null ? void 0 : c.id), a.pushToLinkCard(a.columns[0], c);
|
1684
1658
|
},
|
1685
|
-
class: I(["font-medium", [
|
1686
|
-
...
|
1659
|
+
class: I(["font-medium text-start", [
|
1660
|
+
...a.getCustomStyles(a.columns[0]),
|
1687
1661
|
((ve = this.tableData) == null ? void 0 : ve.card) === !1 ? "" : " text-blue-600 decoration-2 focus:outline-none focus:underline hover:text-blue-600 hover:underline"
|
1688
1662
|
]])
|
1689
1663
|
}, [
|
1690
1664
|
x(q, {
|
1691
1665
|
row: c,
|
1692
|
-
column:
|
1666
|
+
column: a.columns[0],
|
1693
1667
|
table: n.table,
|
1694
|
-
onUpdateTable:
|
1668
|
+
onUpdateTable: a.getTableData
|
1695
1669
|
}, null, 8, ["row", "column", "table", "onUpdateTable"])
|
1696
|
-
], 10,
|
1670
|
+
], 10, zn)
|
1697
1671
|
], 2),
|
1698
|
-
(r(!0), i(
|
1699
|
-
onClick: (
|
1700
|
-
|
1672
|
+
(r(!0), i(T, null, D((_e = a.columns) == null ? void 0 : _e.slice(1), (F) => (r(), i("td", {
|
1673
|
+
onClick: (Qn) => {
|
1674
|
+
a.changeActiveCardInfo(c == null ? void 0 : c.id), a.pushToLinkCard(F, c);
|
1701
1675
|
},
|
1702
|
-
class: I(["px-1 py-3 text-gray-600 pe-3",
|
1676
|
+
class: I(["px-1 py-3 text-gray-600 pe-3", a.getCustomStyles(F)]),
|
1703
1677
|
key: F.name
|
1704
1678
|
}, [
|
1705
1679
|
x(q, {
|
1706
1680
|
row: c,
|
1707
1681
|
column: F,
|
1708
1682
|
table: n.table,
|
1709
|
-
onUpdateTable:
|
1683
|
+
onUpdateTable: a.getTableData
|
1710
1684
|
}, null, 8, ["row", "column", "table", "onUpdateTable"])
|
1711
|
-
], 10,
|
1712
|
-
(we = (Ce =
|
1685
|
+
], 10, qn))), 128)),
|
1686
|
+
(we = (Ce = a.getActions) == null ? void 0 : Ce.filter(
|
1713
1687
|
(F) => F !== "add" && F !== "view"
|
1714
1688
|
)) != null && we.length ? (r(), i("td", {
|
1715
1689
|
key: 0,
|
@@ -1719,40 +1693,40 @@ function Gn(t, e, n, a, s, o) {
|
|
1719
1693
|
}])
|
1720
1694
|
}, [
|
1721
1695
|
x(Fe, {
|
1722
|
-
actions:
|
1723
|
-
isForm:
|
1696
|
+
actions: a.getActions,
|
1697
|
+
isForm: a.isForm,
|
1724
1698
|
item: c,
|
1725
1699
|
table: n.table,
|
1726
|
-
onUpdateTable:
|
1700
|
+
onUpdateTable: a.getTableData
|
1727
1701
|
}, null, 8, ["actions", "isForm", "item", "table", "onUpdateTable"])
|
1728
1702
|
], 2)) : v("", !0)
|
1729
1703
|
], 2);
|
1730
1704
|
}), 128))
|
1731
1705
|
]),
|
1732
1706
|
x(je, {
|
1733
|
-
columns:
|
1707
|
+
columns: a.columns,
|
1734
1708
|
agg: (pe = s.tableData) == null ? void 0 : pe.agg
|
1735
1709
|
}, null, 8, ["columns", "agg"])
|
1736
1710
|
]))
|
1737
1711
|
])
|
1738
1712
|
], 4)
|
1739
1713
|
], 2),
|
1740
|
-
l("div",
|
1741
|
-
l("div",
|
1742
|
-
l("p",
|
1743
|
-
l("span",
|
1744
|
-
P(
|
1745
|
-
s.filters || s.searchValue ? (r(), i("span",
|
1714
|
+
l("div", Bn, [
|
1715
|
+
l("div", On, [
|
1716
|
+
l("p", Nn, [
|
1717
|
+
l("span", Un, [
|
1718
|
+
P($(s.filters || s.searchValue ? "Відображено" : "Об'єктів") + " " + $(((he = s.tableData) == null ? void 0 : he.count) || "0 ") + " ", 1),
|
1719
|
+
s.filters || s.searchValue ? (r(), i("span", En, " з")) : v("", !0)
|
1746
1720
|
]),
|
1747
|
-
s.filters || s.searchValue ? (r(), i("span",
|
1721
|
+
s.filters || s.searchValue ? (r(), i("span", Hn, $(" " + ((be = s.tableData) == null ? void 0 : be.filtered) || 0), 1)) : v("", !0)
|
1748
1722
|
])
|
1749
1723
|
]),
|
1750
1724
|
Math.ceil(((fe = s.tableData) == null ? void 0 : fe.filtered) / s.limit) > 1 ? (r(), k(Me, {
|
1751
1725
|
key: 0,
|
1752
1726
|
class: "justify-end",
|
1753
|
-
"default-page": parseInt(
|
1727
|
+
"default-page": parseInt(a.defaultPage),
|
1754
1728
|
total: ((ge = s.tableData) == null ? void 0 : ge.filtered) || 0,
|
1755
|
-
onPageChange:
|
1729
|
+
onPageChange: a.handlePageChange,
|
1756
1730
|
pageSize: parseInt(s.limit),
|
1757
1731
|
pageSizes: [10, 20, 50, 100]
|
1758
1732
|
}, null, 8, ["default-page", "total", "onPageChange", "pageSize"])) : v("", !0)
|
@@ -1766,7 +1740,7 @@ function Gn(t, e, n, a, s, o) {
|
|
1766
1740
|
key: 0,
|
1767
1741
|
table: n.table,
|
1768
1742
|
columns: (c = s.tableData) == null ? void 0 : c.columns,
|
1769
|
-
row:
|
1743
|
+
row: a.activeCardRow
|
1770
1744
|
}, null, 8, ["table", "columns", "row"])) : v("", !0)
|
1771
1745
|
];
|
1772
1746
|
}),
|
@@ -1777,13 +1751,13 @@ function Gn(t, e, n, a, s, o) {
|
|
1777
1751
|
])
|
1778
1752
|
]);
|
1779
1753
|
}
|
1780
|
-
const
|
1781
|
-
components: { AdminTable:
|
1754
|
+
const Wn = /* @__PURE__ */ A(Cn, [["render", Rn], ["__scopeId", "data-v-27cc637b"]]), Jn = {
|
1755
|
+
components: { AdminTable: Wn },
|
1782
1756
|
data() {
|
1783
1757
|
return {
|
1784
1758
|
table: !1,
|
1785
1759
|
interface: "",
|
1786
|
-
|
1760
|
+
search: ""
|
1787
1761
|
};
|
1788
1762
|
},
|
1789
1763
|
watch: {
|
@@ -1796,7 +1770,7 @@ const Kn = /* @__PURE__ */ w(Tn, [["render", Gn], ["__scopeId", "data-v-5afc3bf5
|
|
1796
1770
|
},
|
1797
1771
|
title(t) {
|
1798
1772
|
var e;
|
1799
|
-
t && (document.title = (((e =
|
1773
|
+
t && (document.title = (((e = Ze.value) == null ? void 0 : e.titlePrefix) || "") + t);
|
1800
1774
|
}
|
1801
1775
|
},
|
1802
1776
|
async mounted() {
|
@@ -1810,16 +1784,16 @@ const Kn = /* @__PURE__ */ w(Tn, [["render", Gn], ["__scopeId", "data-v-5afc3bf5
|
|
1810
1784
|
}), e;
|
1811
1785
|
},
|
1812
1786
|
async checkPageType() {
|
1813
|
-
var
|
1787
|
+
var o, s;
|
1814
1788
|
const t = this.flattenMenu(Ie.value);
|
1815
1789
|
t != null && t.length || this.$router.replace("/404");
|
1816
|
-
const e = t == null ? void 0 : t.find((
|
1790
|
+
const e = t == null ? void 0 : t.find((a) => {
|
1817
1791
|
var u, f;
|
1818
|
-
return (
|
1792
|
+
return (a == null ? void 0 : a.path) == ((f = (u = this.$route) == null ? void 0 : u.params) == null ? void 0 : f.catchAll);
|
1819
1793
|
});
|
1820
|
-
this.title = e == null ? void 0 : e.ua, e || this.$router.replace("/404"), e != null && e.component && this.$router.replace((s = (
|
1794
|
+
this.title = e == null ? void 0 : e.ua, e || this.$router.replace("/404"), e != null && e.component && this.$router.replace((s = (o = this.$route) == null ? void 0 : o.params) == null ? void 0 : s.catchAll);
|
1821
1795
|
const n = e == null ? void 0 : e.table;
|
1822
|
-
this.table = n || !1, !n && this.getInterface();
|
1796
|
+
this.table = n || !1, this.search = (e == null ? void 0 : e.search) || "", !n && this.getInterface();
|
1823
1797
|
},
|
1824
1798
|
async getInterface() {
|
1825
1799
|
var t, e;
|
@@ -1833,21 +1807,22 @@ const Kn = /* @__PURE__ */ w(Tn, [["render", Gn], ["__scopeId", "data-v-5afc3bf5
|
|
1833
1807
|
}
|
1834
1808
|
}
|
1835
1809
|
}
|
1836
|
-
},
|
1837
|
-
function
|
1810
|
+
}, Gn = ["innerHTML"];
|
1811
|
+
function Kn(t, e, n, o, s, a) {
|
1838
1812
|
const u = p("AdminTable");
|
1839
1813
|
return s.table ? (r(), k(u, {
|
1840
1814
|
key: 0,
|
1841
1815
|
table: s.table,
|
1842
|
-
title:
|
1843
|
-
|
1816
|
+
title: t.title,
|
1817
|
+
search: s.search
|
1818
|
+
}, null, 8, ["table", "title", "search"])) : (r(), i("div", {
|
1844
1819
|
key: 1,
|
1845
1820
|
class: "w-full bg-gray-50",
|
1846
1821
|
style: { height: "calc(100vh - 120px)" },
|
1847
1822
|
innerHTML: s.interface
|
1848
|
-
}, null, 8,
|
1823
|
+
}, null, 8, Gn));
|
1849
1824
|
}
|
1850
|
-
const
|
1825
|
+
const Zn = /* @__PURE__ */ A(Jn, [["render", Kn]]);
|
1851
1826
|
export {
|
1852
|
-
|
1827
|
+
Zn as default
|
1853
1828
|
};
|