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