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