@opengis/admin 0.2.27 → 0.2.29
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/README.md +8 -2
- package/dist/{IconChevronDown-H8JooCxL.js → IconChevronDown-DQ12qtGI.js} +1 -1
- package/dist/{add-page-DXzuVNRB.js → add-page-Y_TnL59n.js} +1 -1
- package/dist/{admin-interface-C2c1mmYC.js → admin-interface-BN4VlWnS.js} +410 -382
- package/dist/{admin-view-CH5ugpkG.js → admin-view-w3zV6-2d.js} +2 -2
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +52 -52
- package/dist/{card-view-CHd5AODz.js → card-view-BaYUdmoI.js} +1 -1
- package/dist/{edit-page-Burzk1u4.js → edit-page-BETxgHdR.js} +1 -1
- package/dist/{import-file-BEg7UgB4.js → import-file-BeXEUt4k.js} +6379 -6438
- package/dist/style.css +1 -1
- package/package.json +5 -5
- package/server/helpers/list/utils/button.js +5 -5
- package/server/routes/data/controllers/tableFilter.js +2 -2
- package/server/routes/data/controllers/utils/conditions.js +20 -20
@@ -1,7 +1,7 @@
|
|
1
|
-
import { _ as
|
2
|
-
import { openBlock as o, createElementBlock as
|
3
|
-
import { I as
|
4
|
-
const
|
1
|
+
import { _ as C, d as qe, e as Pe, f as Be, c as F, V as Le, g as ze, h as Ue, i as Oe, A as Ne, I as Ee, u as Ce, s as He } from "./import-file-BeXEUt4k.js";
|
2
|
+
import { openBlock as o, createElementBlock as c, createTextVNode as j, toDisplayString as T, createCommentVNode as w, resolveComponent as p, Fragment as I, createElementVNode as l, createVNode as y, withCtx as $, createBlock as _, renderList as D, withModifiers as Re, normalizeClass as V, createStaticVNode as Ae, withDirectives as z, vModelCheckbox as We, resolveDynamicComponent as q, Transition as U, renderSlot as Ze, vShow as Ie, getCurrentInstance as Te, ref as L, normalizeStyle as $e } from "vue";
|
3
|
+
import { I as Ge } from "./IconChevronDown-DQ12qtGI.js";
|
4
|
+
const Je = {
|
5
5
|
data() {
|
6
6
|
return {
|
7
7
|
currentSort: ""
|
@@ -47,10 +47,10 @@ const Re = {
|
|
47
47
|
},
|
48
48
|
handleClickSortBtn(t) {
|
49
49
|
this.$emit("change-active", this.data.name), this.currentSort = this.changeCurrentSort(t);
|
50
|
-
const e = this.$route.query, { sort: s, ...
|
50
|
+
const e = this.$route.query, { sort: s, ...a } = e, n = this.currentSort ? `${this.data.name}-${this.currentSort}` : "";
|
51
51
|
this.$router.replace({
|
52
52
|
query: {
|
53
|
-
...
|
53
|
+
...a,
|
54
54
|
...n && { sort: n }
|
55
55
|
}
|
56
56
|
});
|
@@ -59,10 +59,10 @@ const Re = {
|
|
59
59
|
return `${this.data.name}-${t}` === this.selectedSortParam;
|
60
60
|
}
|
61
61
|
}
|
62
|
-
},
|
62
|
+
}, Ke = {
|
63
63
|
scope: "col",
|
64
64
|
class: "text-start px-2 py-1"
|
65
|
-
},
|
65
|
+
}, Qe = {
|
66
66
|
class: "flex-shrink-0 size-3.5",
|
67
67
|
xmlns: "http://www.w3.org/2000/svg",
|
68
68
|
width: "24",
|
@@ -73,37 +73,37 @@ const Re = {
|
|
73
73
|
"stroke-width": "2",
|
74
74
|
"stroke-linecap": "round",
|
75
75
|
"stroke-linejoin": "round"
|
76
|
-
},
|
76
|
+
}, Xe = {
|
77
77
|
key: 0,
|
78
78
|
d: "m7 15 5 5 5-5"
|
79
|
-
},
|
79
|
+
}, Ye = {
|
80
80
|
key: 1,
|
81
81
|
d: "m7 9 5-5 5 5"
|
82
|
-
},
|
82
|
+
}, et = {
|
83
83
|
key: 1,
|
84
84
|
class: "text-sm text-stone-500 px-[4px] py-2.5 text-start font-normal"
|
85
85
|
};
|
86
|
-
function
|
87
|
-
return o(),
|
88
|
-
r.getVisibleIcon ? (o(),
|
86
|
+
function tt(t, e, s, a, n, r) {
|
87
|
+
return o(), c("th", Ke, [
|
88
|
+
r.getVisibleIcon ? (o(), c("button", {
|
89
89
|
key: 0,
|
90
90
|
type: "button",
|
91
91
|
class: "text-sm text-stone-500 px-[4px] py-2.5 text-start font-normal flex items-center gap-[6px]",
|
92
92
|
onClick: e[0] || (e[0] = (u) => r.handleClickSortBtn(n.currentSort))
|
93
93
|
}, [
|
94
|
-
j(
|
95
|
-
(o(),
|
96
|
-
n.currentSort === "asc" || n.currentSort === "" ? (o(),
|
97
|
-
n.currentSort === "desc" || n.currentSort === "" ? (o(),
|
94
|
+
j(T(r.label) + " ", 1),
|
95
|
+
(o(), c("svg", Qe, [
|
96
|
+
n.currentSort === "asc" || n.currentSort === "" ? (o(), c("path", Xe)) : w("", !0),
|
97
|
+
n.currentSort === "desc" || n.currentSort === "" ? (o(), c("path", Ye)) : w("", !0)
|
98
98
|
]))
|
99
|
-
])) : (o(),
|
99
|
+
])) : (o(), c("p", et, T(r.label), 1))
|
100
100
|
]);
|
101
101
|
}
|
102
|
-
const
|
102
|
+
const nt = /* @__PURE__ */ C(Je, [["render", tt]]), st = {
|
103
103
|
components: {
|
104
|
-
IconMore:
|
105
|
-
IconDelete:
|
106
|
-
IconEdit:
|
104
|
+
IconMore: qe,
|
105
|
+
IconDelete: Pe,
|
106
|
+
IconEdit: Be
|
107
107
|
},
|
108
108
|
emits: ["updateTable"],
|
109
109
|
props: {
|
@@ -182,74 +182,74 @@ const Xe = /* @__PURE__ */ w(Re, [["render", Qe]]), Ye = {
|
|
182
182
|
});
|
183
183
|
}
|
184
184
|
}
|
185
|
-
},
|
185
|
+
}, lt = { class: "hs-dropdown [--placement:bottom-right] inline-flex" }, ot = { 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" }, rt = { class: "flex flex-col items-start" }, at = ["onClick"], it = { class: "text-gray-800" }, ct = {
|
186
186
|
key: 1,
|
187
187
|
class: "h-[1px] w-[80%] bg-gray-200 ml-auto mr-auto"
|
188
|
-
},
|
189
|
-
function
|
190
|
-
const u = p("IconMore"), f = p("IconEdit"), h = p("router-link"), m = p("IconDelete"), v = p("VsPopover"),
|
191
|
-
return o(),
|
192
|
-
l("div",
|
193
|
-
|
188
|
+
}, ut = { class: "p-4" }, dt = { class: "flex justify-end mt-4 gap-x-3" };
|
189
|
+
function bt(t, e, s, a, n, r) {
|
190
|
+
const u = p("IconMore"), f = p("IconEdit"), h = p("router-link"), m = p("IconDelete"), v = p("VsPopover"), i = p("VsDialog");
|
191
|
+
return o(), c(I, null, [
|
192
|
+
l("div", lt, [
|
193
|
+
y(v, {
|
194
194
|
trigger: "click",
|
195
195
|
placement: "bottom-left"
|
196
196
|
}, {
|
197
197
|
reference: $(() => [
|
198
|
-
l("button",
|
199
|
-
|
198
|
+
l("button", ot, [
|
199
|
+
y(u, {
|
200
200
|
height: "16",
|
201
201
|
width: "16"
|
202
202
|
})
|
203
203
|
])
|
204
204
|
]),
|
205
205
|
default: $(() => {
|
206
|
-
var g, d,
|
206
|
+
var g, d, k, x, A;
|
207
207
|
return [
|
208
|
-
l("div",
|
208
|
+
l("div", rt, [
|
209
209
|
(g = s.actions) != null && g.includes("edit") && s.isForm ? (o(), _(h, {
|
210
210
|
key: 0,
|
211
|
-
to: `/edit?table=${(
|
211
|
+
to: `/edit?table=${(k = (d = t.$route) == null ? void 0 : d.params) == null ? void 0 : k.catchAll}&id=${(x = s.item) == null ? void 0 : x.id}`,
|
212
212
|
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"
|
213
213
|
}, {
|
214
214
|
default: $(() => [
|
215
|
-
|
215
|
+
y(f, { color: "#000" }),
|
216
216
|
e[4] || (e[4] = j(" Редагувати "))
|
217
217
|
]),
|
218
218
|
_: 1
|
219
|
-
}, 8, ["to"])) :
|
220
|
-
(o(!0),
|
221
|
-
key:
|
219
|
+
}, 8, ["to"])) : w("", !0),
|
220
|
+
(o(!0), c(I, null, D(r.getCustomActions, (S, P) => (o(), c("button", {
|
221
|
+
key: P,
|
222
222
|
onClick: (B) => r.customButtonAction(S),
|
223
223
|
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"
|
224
224
|
}, [
|
225
|
-
|
226
|
-
l("span",
|
227
|
-
], 8,
|
228
|
-
s.isForm ? (o(),
|
229
|
-
(A = s.actions) != null && A.includes("del") ? (o(),
|
225
|
+
y(m, { class: "opacity-0" }),
|
226
|
+
l("span", it, T(S == null ? void 0 : S.label), 1)
|
227
|
+
], 8, at))), 128)),
|
228
|
+
s.isForm ? (o(), c("div", ct)) : w("", !0),
|
229
|
+
(A = s.actions) != null && A.includes("del") ? (o(), c("button", {
|
230
230
|
key: 2,
|
231
|
-
onClick: e[0] || (e[0] =
|
231
|
+
onClick: e[0] || (e[0] = Re((...S) => r.openConfirm && r.openConfirm(...S), ["stop"])),
|
232
232
|
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"
|
233
233
|
}, [
|
234
|
-
|
234
|
+
y(m),
|
235
235
|
e[5] || (e[5] = l("span", { class: "text-gray-800" }, "Видалити", -1))
|
236
|
-
])) :
|
236
|
+
])) : w("", !0)
|
237
237
|
])
|
238
238
|
];
|
239
239
|
}),
|
240
240
|
_: 1
|
241
241
|
})
|
242
242
|
]),
|
243
|
-
|
243
|
+
y(i, {
|
244
244
|
visible: n.isDeleteConfirm,
|
245
245
|
"onUpdate:visible": e[3] || (e[3] = (g) => n.isDeleteConfirm = g),
|
246
246
|
size: "small",
|
247
247
|
title: "Ви впевнені?"
|
248
248
|
}, {
|
249
249
|
default: $(() => [
|
250
|
-
l("div",
|
250
|
+
l("div", ut, [
|
251
251
|
e[6] || (e[6] = l("p", { class: "mt-1 text-gray-500 dark:text-neutral-500" }, " Ви впевнені, що хочете видалити цей об'єкт? ", -1)),
|
252
|
-
l("div",
|
252
|
+
l("div", dt, [
|
253
253
|
l("button", {
|
254
254
|
type: "button",
|
255
255
|
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",
|
@@ -267,7 +267,7 @@ function it(t, e, s, i, n, r) {
|
|
267
267
|
}, 8, ["visible"])
|
268
268
|
], 64);
|
269
269
|
}
|
270
|
-
const
|
270
|
+
const pt = /* @__PURE__ */ C(st, [["render", bt]]), ht = {}, ft = {
|
271
271
|
class: "flex-shrink-0 mt-0.5 size-3.5",
|
272
272
|
xmlns: "http://www.w3.org/2000/svg",
|
273
273
|
viewBox: "0 0 24 24",
|
@@ -277,15 +277,15 @@ const ct = /* @__PURE__ */ w(Ye, [["render", it]]), ut = {}, dt = {
|
|
277
277
|
"stroke-linecap": "round",
|
278
278
|
"stroke-linejoin": "round"
|
279
279
|
};
|
280
|
-
function
|
281
|
-
return o(),
|
280
|
+
function mt(t, e, s, a, n, r) {
|
281
|
+
return o(), c("svg", ft, e[0] || (e[0] = [
|
282
282
|
l("path", { d: "m3 16 4 4 4-4" }, null, -1),
|
283
283
|
l("path", { d: "M7 20V4" }, null, -1),
|
284
284
|
l("path", { d: "m21 8-4-4-4 4" }, null, -1),
|
285
285
|
l("path", { d: "M17 4v16" }, null, -1)
|
286
286
|
]));
|
287
287
|
}
|
288
|
-
const
|
288
|
+
const gt = /* @__PURE__ */ C(ht, [["render", mt]]), xt = {}, yt = {
|
289
289
|
xmlns: "http://www.w3.org/2000/svg",
|
290
290
|
width: "24",
|
291
291
|
height: "24",
|
@@ -297,8 +297,8 @@ const pt = /* @__PURE__ */ w(ut, [["render", bt]]), ht = {}, ft = {
|
|
297
297
|
"stroke-linejoin": "round",
|
298
298
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-rosette-discount-check"
|
299
299
|
};
|
300
|
-
function
|
301
|
-
return o(),
|
300
|
+
function _t(t, e, s, a, n, r) {
|
301
|
+
return o(), c("svg", yt, e[0] || (e[0] = [
|
302
302
|
l("path", {
|
303
303
|
stroke: "none",
|
304
304
|
d: "M0 0h24v24H0z",
|
@@ -308,8 +308,8 @@ function mt(t, e, s, i, n, r) {
|
|
308
308
|
l("path", { d: "M9 12l2 2l4 -4" }, null, -1)
|
309
309
|
]));
|
310
310
|
}
|
311
|
-
const
|
312
|
-
components: { IconExport:
|
311
|
+
const vt = /* @__PURE__ */ C(xt, [["render", _t]]), kt = {
|
312
|
+
components: { IconExport: gt, IconChevronDown: Ge, IconSuccess: vt },
|
313
313
|
props: {
|
314
314
|
table: String,
|
315
315
|
columns: Array,
|
@@ -375,11 +375,11 @@ const gt = /* @__PURE__ */ w(ht, [["render", mt]]), xt = {
|
|
375
375
|
responseType: "blob"
|
376
376
|
}), s = new Blob([e.data], {
|
377
377
|
type: "application/octet-stream"
|
378
|
-
}),
|
379
|
-
n.href =
|
378
|
+
}), a = window.URL.createObjectURL(s), n = document.createElement("a");
|
379
|
+
n.href = a, n.setAttribute(
|
380
380
|
"download",
|
381
381
|
`${this.table.split(".")[0]}.${this.format}`
|
382
|
-
), document.body.appendChild(n), n.click(), document.body.removeChild(n), window.URL.revokeObjectURL(
|
382
|
+
), document.body.appendChild(n), n.click(), document.body.removeChild(n), window.URL.revokeObjectURL(a), this.$notify({
|
383
383
|
type: "success",
|
384
384
|
title: "Експорт",
|
385
385
|
message: "Файл успішно експортовано!"
|
@@ -407,118 +407,118 @@ const gt = /* @__PURE__ */ w(ht, [["render", mt]]), xt = {
|
|
407
407
|
this.cols = (e = (t = this.columns) == null ? void 0 : t.filter((s) => (s == null ? void 0 : s.hidden) !== !0)) == null ? void 0 : e.map((s) => s == null ? void 0 : s.name), this.activeAction = "choceVisible";
|
408
408
|
}
|
409
409
|
}
|
410
|
-
},
|
410
|
+
}, wt = {
|
411
411
|
key: 0,
|
412
412
|
class: "flex flex-col items-center"
|
413
|
-
},
|
413
|
+
}, Ct = {
|
414
414
|
key: 1,
|
415
415
|
class: "p-4"
|
416
|
-
},
|
416
|
+
}, $t = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, At = { class: "flex items-center" }, It = { class: "flex items-center gap-[10px] ml-auto" }, Tt = ["onClick"], St = {
|
417
417
|
key: 0,
|
418
418
|
class: "block h-[8px] w-[8px] rounded-full bg-blue-500"
|
419
|
-
},
|
419
|
+
}, Vt = { class: "mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]" }, Dt = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, Ft = { class: "mt-2 space-y-2" }, jt = ["id", "onChange"], Mt = ["for"], qt = {
|
420
420
|
key: 0,
|
421
421
|
class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
|
422
|
-
},
|
422
|
+
}, Pt = {
|
423
423
|
key: 1,
|
424
424
|
class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
|
425
425
|
};
|
426
|
-
function
|
426
|
+
function Bt(t, e, s, a, n, r) {
|
427
427
|
const u = p("IconExport"), f = p("IconChevronDown"), h = p("IconSuccess"), m = p("VsCheckbox"), v = p("VsDialog");
|
428
|
-
return o(),
|
428
|
+
return o(), c(I, null, [
|
429
429
|
l("button", {
|
430
|
-
onClick: e[0] || (e[0] = (
|
430
|
+
onClick: e[0] || (e[0] = (i) => n.isOpen = !0),
|
431
431
|
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 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"
|
432
432
|
}, [
|
433
|
-
|
433
|
+
y(u, {
|
434
434
|
height: "16",
|
435
435
|
width: "16"
|
436
436
|
}),
|
437
437
|
e[7] || (e[7] = j(" Експорт ")),
|
438
|
-
|
438
|
+
y(f, {
|
439
439
|
height: "12",
|
440
440
|
width: "16"
|
441
441
|
})
|
442
442
|
]),
|
443
|
-
|
443
|
+
y(v, {
|
444
444
|
visible: n.isOpen,
|
445
|
-
"onUpdate:visible": e[6] || (e[6] = (
|
445
|
+
"onUpdate:visible": e[6] || (e[6] = (i) => n.isOpen = i),
|
446
446
|
title: "Експорт таблиці",
|
447
447
|
size: "small",
|
448
448
|
closeClickBack: !0
|
449
449
|
}, {
|
450
450
|
footer: $(() => [
|
451
|
-
n.isSuccessTemplate ? (o(),
|
451
|
+
n.isSuccessTemplate ? (o(), c("div", qt, [
|
452
452
|
l("button", {
|
453
453
|
type: "button",
|
454
454
|
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",
|
455
|
-
onClick: e[2] || (e[2] = (
|
455
|
+
onClick: e[2] || (e[2] = (i) => n.isOpen = !1)
|
456
456
|
}, " Закрити "),
|
457
457
|
l("button", {
|
458
458
|
type: "button",
|
459
459
|
class: "inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-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",
|
460
|
-
onClick: e[3] || (e[3] = (
|
460
|
+
onClick: e[3] || (e[3] = (i) => n.isSuccessTemplate = !1)
|
461
461
|
}, " Вигрузити ще ")
|
462
|
-
])) : (o(),
|
462
|
+
])) : (o(), c("div", Pt, [
|
463
463
|
l("button", {
|
464
464
|
type: "button",
|
465
465
|
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",
|
466
|
-
onClick: e[4] || (e[4] = (
|
466
|
+
onClick: e[4] || (e[4] = (i) => n.isOpen = !1)
|
467
467
|
}, " Скасувати "),
|
468
468
|
l("button", {
|
469
469
|
type: "button",
|
470
470
|
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",
|
471
|
-
onClick: e[5] || (e[5] = (...
|
471
|
+
onClick: e[5] || (e[5] = (...i) => r.exportTable && r.exportTable(...i))
|
472
472
|
}, " Завантажити таблицю ")
|
473
473
|
]))
|
474
474
|
]),
|
475
475
|
default: $(() => [
|
476
|
-
n.isSuccessTemplate ? (o(),
|
477
|
-
|
476
|
+
n.isSuccessTemplate ? (o(), c("div", wt, [
|
477
|
+
y(h, {
|
478
478
|
height: "100",
|
479
479
|
width: "100",
|
480
480
|
class: "text-green-200 mb-[20px]"
|
481
481
|
}),
|
482
482
|
e[8] || (e[8] = l("h2", null, "Звіт сформовано і збережено", -1))
|
483
|
-
])) : (o(),
|
484
|
-
l("div",
|
485
|
-
l("div",
|
483
|
+
])) : (o(), c("div", Ct, [
|
484
|
+
l("div", $t, [
|
485
|
+
l("div", At, [
|
486
486
|
e[9] || (e[9] = l("h2", { class: "text-sm text-gray-500" }, " Виберіть стовпці таблиці для експорту: ", -1)),
|
487
|
-
l("div",
|
488
|
-
(o(!0),
|
489
|
-
key:
|
490
|
-
onClick:
|
487
|
+
l("div", It, [
|
488
|
+
(o(!0), c(I, null, D(n.actions, (i) => (o(), c("button", {
|
489
|
+
key: i == null ? void 0 : i.name,
|
490
|
+
onClick: i == null ? void 0 : i.function,
|
491
491
|
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"
|
492
492
|
}, [
|
493
493
|
l("span", {
|
494
|
-
class: V(["h-[14px] w-[14px] border rounded-full flex items-center justify-center", { "border-blue-500": (
|
494
|
+
class: V(["h-[14px] w-[14px] border rounded-full flex items-center justify-center", { "border-blue-500": (i == null ? void 0 : i.name) === n.activeAction }])
|
495
495
|
}, [
|
496
|
-
(
|
496
|
+
(i == null ? void 0 : i.name) === n.activeAction ? (o(), c("span", St)) : w("", !0)
|
497
497
|
], 2),
|
498
|
-
j(" " +
|
499
|
-
], 8,
|
498
|
+
j(" " + T(i == null ? void 0 : i.label), 1)
|
499
|
+
], 8, Tt))), 128))
|
500
500
|
])
|
501
501
|
]),
|
502
|
-
l("div",
|
503
|
-
(o(!0),
|
502
|
+
l("div", Vt, [
|
503
|
+
(o(!0), c(I, null, D(s.columns, (i, g) => (o(), c("div", {
|
504
504
|
class: "flex items-center",
|
505
505
|
key: g,
|
506
506
|
style: { width: "calc((100% - 10px) / 2)" }
|
507
507
|
}, [
|
508
|
-
|
508
|
+
y(m, {
|
509
509
|
class: "[&>label]:text-sm [&>label]:text-gray-800 [&>label]:ms-3 !gap-x-[1px] !p-0",
|
510
510
|
modelValue: n.cols,
|
511
511
|
"onUpdate:modelValue": e[1] || (e[1] = (d) => n.cols = d),
|
512
|
-
value:
|
513
|
-
label:
|
512
|
+
value: i == null ? void 0 : i.name,
|
513
|
+
label: i == null ? void 0 : i.ua
|
514
514
|
}, null, 8, ["modelValue", "value", "label"])
|
515
515
|
]))), 128))
|
516
516
|
])
|
517
517
|
]),
|
518
|
-
l("div",
|
518
|
+
l("div", Dt, [
|
519
519
|
e[10] || (e[10] = l("h2", { class: "text-sm text-gray-500" }, "Виберіть формат таблиці:", -1)),
|
520
|
-
l("div",
|
521
|
-
(o(!0),
|
520
|
+
l("div", Ft, [
|
521
|
+
(o(!0), c(I, null, D(n.tableFormats, (i, g) => (o(), c("div", {
|
522
522
|
class: "flex items-center",
|
523
523
|
key: g
|
524
524
|
}, [
|
@@ -526,13 +526,13 @@ function jt(t, e, s, i, n, r) {
|
|
526
526
|
type: "radio",
|
527
527
|
name: "hs-pro-duecmfm",
|
528
528
|
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",
|
529
|
-
id:
|
530
|
-
onChange: (d) => r.selectFormat(
|
531
|
-
}, null, 40,
|
529
|
+
id: i,
|
530
|
+
onChange: (d) => r.selectFormat(i)
|
531
|
+
}, null, 40, jt),
|
532
532
|
l("label", {
|
533
|
-
for:
|
533
|
+
for: i,
|
534
534
|
class: "text-sm text-gray-800 ms-3 dark:text-neutral-400"
|
535
|
-
}, " Формат " +
|
535
|
+
}, " Формат " + T(i), 9, Mt)
|
536
536
|
]))), 128))
|
537
537
|
])
|
538
538
|
])
|
@@ -542,7 +542,7 @@ function jt(t, e, s, i, n, r) {
|
|
542
542
|
}, 8, ["visible"])
|
543
543
|
], 64);
|
544
544
|
}
|
545
|
-
const
|
545
|
+
const Lt = /* @__PURE__ */ C(kt, [["render", Bt]]), zt = {}, Ut = {
|
546
546
|
xmlns: "http://www.w3.org/2000/svg",
|
547
547
|
viewBox: "0 0 24 24",
|
548
548
|
fill: "none",
|
@@ -552,12 +552,12 @@ const Mt = /* @__PURE__ */ w(xt, [["render", jt]]), qt = {}, Lt = {
|
|
552
552
|
"stroke-linejoin": "round",
|
553
553
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-columns"
|
554
554
|
};
|
555
|
-
function
|
556
|
-
return o(),
|
557
|
-
|
555
|
+
function Ot(t, e, s, a, n, r) {
|
556
|
+
return o(), c("svg", Ut, e[0] || (e[0] = [
|
557
|
+
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)
|
558
558
|
]));
|
559
559
|
}
|
560
|
-
const
|
560
|
+
const Nt = /* @__PURE__ */ C(zt, [["render", Ot]]), Et = {
|
561
561
|
props: { column: Object },
|
562
562
|
emits: ["update-column"],
|
563
563
|
data() {
|
@@ -574,50 +574,50 @@ const zt = /* @__PURE__ */ w(qt, [["render", Pt]]), Bt = {
|
|
574
574
|
var t;
|
575
575
|
((t = this.column) == null ? void 0 : t.hidden) !== !0 && (this.value = !0);
|
576
576
|
}
|
577
|
-
},
|
578
|
-
function
|
577
|
+
}, Ht = { class: "flex w-full gap-[8px] items-centr" };
|
578
|
+
function Rt(t, e, s, a, n, r) {
|
579
579
|
var u, f;
|
580
|
-
return o(),
|
581
|
-
|
580
|
+
return o(), c("label", Ht, [
|
581
|
+
z(l("input", {
|
582
582
|
"onUpdate:modelValue": e[0] || (e[0] = (h) => n.value = h),
|
583
583
|
type: "checkbox"
|
584
584
|
}, null, 512), [
|
585
|
-
[
|
585
|
+
[We, n.value]
|
586
586
|
]),
|
587
|
-
j(" " +
|
587
|
+
j(" " + T(((u = s.column) == null ? void 0 : u.ua) || ((f = s.column) == null ? void 0 : f.title)), 1)
|
588
588
|
]);
|
589
589
|
}
|
590
|
-
const
|
591
|
-
components: { IconColumns:
|
590
|
+
const Wt = /* @__PURE__ */ C(Et, [["render", Rt]]), Zt = {
|
591
|
+
components: { IconColumns: Nt, AdminTableColumnsHiddenItem: Wt },
|
592
592
|
emits: ["update-columns"],
|
593
593
|
props: { columns: Array },
|
594
594
|
methods: {
|
595
595
|
updateColumn(t) {
|
596
|
-
const e = this.columns.findIndex((
|
596
|
+
const e = this.columns.findIndex((a) => (a == null ? void 0 : a.name) === (t == null ? void 0 : t.name)), s = this.columns;
|
597
597
|
s[e] = t, this.$emit("update-columns", [...s]);
|
598
598
|
}
|
599
599
|
}
|
600
|
-
},
|
601
|
-
function
|
600
|
+
}, Gt = { 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 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" }, Jt = { class: "py-[10px] px-[10px] w-[260px]" }, Kt = { 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" };
|
601
|
+
function Qt(t, e, s, a, n, r) {
|
602
602
|
const u = p("IconColumns"), f = p("AdminTableColumnsHiddenItem"), h = p("VsPopover");
|
603
603
|
return o(), _(h, {
|
604
604
|
trigger: "click",
|
605
605
|
placement: "bottom"
|
606
606
|
}, {
|
607
607
|
reference: $(() => [
|
608
|
-
l("button",
|
609
|
-
|
608
|
+
l("button", Gt, [
|
609
|
+
y(u, {
|
610
610
|
height: "20",
|
611
611
|
width: "16"
|
612
612
|
})
|
613
613
|
])
|
614
614
|
]),
|
615
615
|
default: $(() => [
|
616
|
-
l("div",
|
616
|
+
l("div", Jt, [
|
617
617
|
e[0] || (e[0] = l("h2", { class: "text-sm mb-[8px]" }, "Оберіть колонки, щоб приховати", -1)),
|
618
|
-
l("ul",
|
619
|
-
(o(!0),
|
620
|
-
|
618
|
+
l("ul", Kt, [
|
619
|
+
(o(!0), c(I, null, D(s.columns, (m, v) => (o(), c("li", { key: v }, [
|
620
|
+
y(f, {
|
621
621
|
column: m,
|
622
622
|
onUpdateColumn: r.updateColumn
|
623
623
|
}, null, 8, ["column", "onUpdateColumn"])
|
@@ -628,14 +628,14 @@ function Zt(t, e, s, i, n, r) {
|
|
628
628
|
_: 1
|
629
629
|
});
|
630
630
|
}
|
631
|
-
const
|
631
|
+
const Xt = /* @__PURE__ */ C(Zt, [["render", Qt]]), Yt = {}, en = {
|
632
632
|
class: "hidden sm:block shrink-0 size-3",
|
633
633
|
xmlns: "http://www.w3.org/2000/svg",
|
634
634
|
fill: "currentColor",
|
635
635
|
viewBox: "0 0 16 16"
|
636
636
|
};
|
637
|
-
function
|
638
|
-
return o(),
|
637
|
+
function tn(t, e, s, a, n, r) {
|
638
|
+
return o(), c("svg", en, e[0] || (e[0] = [
|
639
639
|
l("path", {
|
640
640
|
"fill-rule": "evenodd",
|
641
641
|
"clip-rule": "evenodd",
|
@@ -643,24 +643,24 @@ function Qt(t, e, s, i, n, r) {
|
|
643
643
|
}, null, -1)
|
644
644
|
]));
|
645
645
|
}
|
646
|
-
const
|
646
|
+
const O = /* @__PURE__ */ C(Yt, [["render", tn]]), nn = {
|
647
647
|
props: { row: Object, column: Object, table: String }
|
648
648
|
};
|
649
|
-
function
|
650
|
-
var u, f, h, m, v,
|
651
|
-
return o(), _(
|
649
|
+
function sn(t, e, s, a, n, r) {
|
650
|
+
var u, f, h, m, v, i, g, d;
|
651
|
+
return o(), _(q(
|
652
652
|
((u = s.column) == null ? void 0 : u.format) === "custom" ? (f = s.column) == null ? void 0 : f.component : `table-format-${((m = (h = s.column) == null ? void 0 : h.format) == null ? void 0 : m.toLowerCase()) || "text"}`
|
653
653
|
), {
|
654
|
-
onUpdateTable: e[0] || (e[0] = (
|
654
|
+
onUpdateTable: e[0] || (e[0] = (k) => t.$emit("update-table")),
|
655
655
|
name: (v = s.column) == null ? void 0 : v.name,
|
656
656
|
data: s.row,
|
657
|
-
value: (g = s.row) == null ? void 0 : g[(
|
657
|
+
value: (g = s.row) == null ? void 0 : g[(i = s.column) == null ? void 0 : i.name],
|
658
658
|
table: s.table,
|
659
659
|
column: s.column,
|
660
660
|
edit: (d = s.column) == null ? void 0 : d.edit
|
661
661
|
}, null, 40, ["name", "data", "value", "table", "column", "edit"]);
|
662
662
|
}
|
663
|
-
const
|
663
|
+
const Se = /* @__PURE__ */ C(nn, [["render", sn]]), ln = {}, on = {
|
664
664
|
xmlns: "http://www.w3.org/2000/svg",
|
665
665
|
viewBox: "0 0 24 24",
|
666
666
|
fill: "none",
|
@@ -670,8 +670,8 @@ const $e = /* @__PURE__ */ w(Xt, [["render", Yt]]), en = {}, tn = {
|
|
670
670
|
"stroke-linejoin": "round",
|
671
671
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-minus"
|
672
672
|
};
|
673
|
-
function
|
674
|
-
return o(),
|
673
|
+
function rn(t, e, s, a, n, r) {
|
674
|
+
return o(), c("svg", on, e[0] || (e[0] = [
|
675
675
|
l("path", {
|
676
676
|
stroke: "none",
|
677
677
|
d: "M0 0h24v24H0z",
|
@@ -680,8 +680,8 @@ function nn(t, e, s, i, n, r) {
|
|
680
680
|
l("path", { d: "M5 12l14 0" }, null, -1)
|
681
681
|
]));
|
682
682
|
}
|
683
|
-
const
|
684
|
-
components: { IconPlus:
|
683
|
+
const an = /* @__PURE__ */ C(ln, [["render", rn]]), cn = {
|
684
|
+
components: { IconPlus: O, IconMinus: an },
|
685
685
|
props: {
|
686
686
|
title: String,
|
687
687
|
defaultValue: { type: Boolean, default: () => !1 }
|
@@ -689,18 +689,18 @@ const sn = /* @__PURE__ */ w(en, [["render", nn]]), ln = {
|
|
689
689
|
data() {
|
690
690
|
return { expanded: this.defaultValue };
|
691
691
|
}
|
692
|
-
},
|
693
|
-
function
|
692
|
+
}, un = { class: "hs-accordion" }, dn = { class: "py-0.5 flex items-center gap-x-0.5 w-full" }, bn = { class: "text-sm font-medium" }, pn = { class: "relative inline-block w-full duration-150 cursor-pointer before:block before:absolute b" };
|
693
|
+
function hn(t, e, s, a, n, r) {
|
694
694
|
const u = p("IconPlus"), f = p("IconMinus");
|
695
|
-
return o(),
|
695
|
+
return o(), c("div", null, [
|
696
696
|
l("div", null, [
|
697
|
-
l("div",
|
698
|
-
l("div",
|
697
|
+
l("div", un, [
|
698
|
+
l("div", dn, [
|
699
699
|
l("div", {
|
700
700
|
onClick: e[0] || (e[0] = (h) => n.expanded = !n.expanded),
|
701
701
|
class: "rounded-md cursor-pointer grow"
|
702
702
|
}, [
|
703
|
-
l("span",
|
703
|
+
l("span", bn, T(s.title), 1)
|
704
704
|
]),
|
705
705
|
l("button", {
|
706
706
|
class: "flex items-center justify-center rounded-md size-6 hover:bg-gray-100",
|
@@ -712,12 +712,12 @@ function un(t, e, s, i, n, r) {
|
|
712
712
|
})) : (o(), _(u, { key: 0 }))
|
713
713
|
])
|
714
714
|
]),
|
715
|
-
|
715
|
+
y(U, { name: "fade" }, {
|
716
716
|
default: $(() => [
|
717
|
-
|
718
|
-
|
717
|
+
z(l("div", pn, [
|
718
|
+
Ze(t.$slots, "default", {}, void 0, !0)
|
719
719
|
], 512), [
|
720
|
-
[
|
720
|
+
[Ie, n.expanded]
|
721
721
|
])
|
722
722
|
]),
|
723
723
|
_: 3
|
@@ -726,32 +726,32 @@ function un(t, e, s, i, n, r) {
|
|
726
726
|
])
|
727
727
|
]);
|
728
728
|
}
|
729
|
-
const
|
729
|
+
const fn = /* @__PURE__ */ C(cn, [["render", hn], ["__scopeId", "data-v-c6318482"]]), mn = {
|
730
730
|
components: {
|
731
|
-
AdminComponentIs:
|
732
|
-
AdminTree:
|
733
|
-
VsNoData:
|
734
|
-
VsWidgetComments:
|
735
|
-
VsWidgetMap:
|
736
|
-
VsWidgetFileList:
|
731
|
+
AdminComponentIs: Se,
|
732
|
+
AdminTree: fn,
|
733
|
+
VsNoData: Le,
|
734
|
+
VsWidgetComments: ze,
|
735
|
+
VsWidgetMap: Ue,
|
736
|
+
VsWidgetFileList: Oe
|
737
737
|
},
|
738
738
|
props: { table: String, columns: Array, row: Object }
|
739
|
-
},
|
739
|
+
}, gn = {
|
740
740
|
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",
|
741
741
|
style: { height: "calc(100vh - 310px)" }
|
742
|
-
},
|
742
|
+
}, xn = {
|
743
743
|
class: "border-l",
|
744
744
|
style: { height: "calc(100vh - 360px)" }
|
745
|
-
},
|
746
|
-
function
|
747
|
-
var g, d,
|
748
|
-
const u = p("AdminComponentIs"), f = p("AdminTree"), h = p("VsWidgetMap"), m = p("VsNoData"), v = p("VsWidgetComments"),
|
749
|
-
return o(),
|
745
|
+
}, yn = { class: "flex items-center justify-between py-1 gap-x-4" }, _n = { class: "col-span-1" }, vn = { class: "inline-flex items-center gap-x-2 text-[13px] text-gray-500 dark:text-neutral-500" }, kn = { class: "col-span-2" }, wn = { class: "font-medium text-[13px] text-gray-800 dark:text-neutral-200" }, Cn = { class: "table-info-card" }, $n = { class: "table-info-card" };
|
746
|
+
function An(t, e, s, a, n, r) {
|
747
|
+
var g, d, k;
|
748
|
+
const u = p("AdminComponentIs"), f = p("AdminTree"), h = p("VsWidgetMap"), m = p("VsNoData"), v = p("VsWidgetComments"), i = p("VsWidgetFileList");
|
749
|
+
return o(), c("div", gn, [
|
750
750
|
e[0] || (e[0] = l("div", { class: "p-[10px] pl-[18px] pb-[18px] border-b" }, [
|
751
751
|
l("h2", { class: "text-sm font-medium" }, "Інформація про об'єкт")
|
752
752
|
], -1)),
|
753
|
-
l("div",
|
754
|
-
(d = (g = t.$route) == null ? void 0 : g.query) != null && d.card ? (o(),
|
753
|
+
l("div", xn, [
|
754
|
+
(d = (g = t.$route) == null ? void 0 : g.query) != null && d.card ? (o(), c(I, { key: 0 }, [
|
755
755
|
s.row ? (o(), _(f, {
|
756
756
|
key: 0,
|
757
757
|
defaultValue: !0,
|
@@ -759,15 +759,15 @@ function kn(t, e, s, i, n, r) {
|
|
759
759
|
class: "border-b p-[10px] py-[16px]"
|
760
760
|
}, {
|
761
761
|
default: $(() => [
|
762
|
-
(o(!0),
|
763
|
-
l("dt",
|
764
|
-
l("p",
|
762
|
+
(o(!0), c(I, null, D(s.columns, (x) => (o(), c("dl", yn, [
|
763
|
+
l("dt", _n, [
|
764
|
+
l("p", vn, T((x == null ? void 0 : x.ua) || (x == null ? void 0 : x.title)) + ": ", 1)
|
765
765
|
]),
|
766
|
-
l("dd",
|
767
|
-
l("p",
|
768
|
-
|
766
|
+
l("dd", kn, [
|
767
|
+
l("p", wn, [
|
768
|
+
y(u, {
|
769
769
|
row: s.row,
|
770
|
-
column:
|
770
|
+
column: x,
|
771
771
|
table: s.table
|
772
772
|
}, null, 8, ["row", "column", "table"])
|
773
773
|
])
|
@@ -775,16 +775,16 @@ function kn(t, e, s, i, n, r) {
|
|
775
775
|
]))), 256))
|
776
776
|
]),
|
777
777
|
_: 1
|
778
|
-
})) :
|
779
|
-
(
|
778
|
+
})) : w("", !0),
|
779
|
+
(k = s.row) != null && k.geom ? (o(), _(f, {
|
780
780
|
key: 1,
|
781
781
|
title: "Карта",
|
782
782
|
class: "border-b p-[10px] py-[16px]"
|
783
783
|
}, {
|
784
784
|
default: $(() => {
|
785
|
-
var
|
785
|
+
var x, A;
|
786
786
|
return [
|
787
|
-
(
|
787
|
+
(x = s.row) != null && x.geom ? (o(), _(h, {
|
788
788
|
key: 0,
|
789
789
|
geometry: (A = s.row) == null ? void 0 : A.geom,
|
790
790
|
zoom: 14
|
@@ -797,33 +797,33 @@ function kn(t, e, s, i, n, r) {
|
|
797
797
|
];
|
798
798
|
}),
|
799
799
|
_: 1
|
800
|
-
})) :
|
801
|
-
|
800
|
+
})) : w("", !0),
|
801
|
+
y(f, {
|
802
802
|
title: "Коментарі",
|
803
803
|
class: "border-b p-[10px] py-[16px]"
|
804
804
|
}, {
|
805
805
|
default: $(() => {
|
806
|
-
var
|
806
|
+
var x;
|
807
807
|
return [
|
808
|
-
l("div",
|
809
|
-
|
810
|
-
id: (
|
808
|
+
l("div", Cn, [
|
809
|
+
y(v, {
|
810
|
+
id: (x = s.row) == null ? void 0 : x.id
|
811
811
|
}, null, 8, ["id"])
|
812
812
|
])
|
813
813
|
];
|
814
814
|
}),
|
815
815
|
_: 1
|
816
816
|
}),
|
817
|
-
|
817
|
+
y(f, {
|
818
818
|
title: "Файли",
|
819
819
|
class: "border-b p-[10px] py-[16px]"
|
820
820
|
}, {
|
821
821
|
default: $(() => {
|
822
|
-
var
|
822
|
+
var x;
|
823
823
|
return [
|
824
|
-
l("div",
|
825
|
-
|
826
|
-
id: (
|
824
|
+
l("div", $n, [
|
825
|
+
y(i, {
|
826
|
+
id: (x = s.row) == null ? void 0 : x.id
|
827
827
|
}, null, 8, ["id"])
|
828
828
|
])
|
829
829
|
];
|
@@ -837,7 +837,7 @@ function kn(t, e, s, i, n, r) {
|
|
837
837
|
])
|
838
838
|
]);
|
839
839
|
}
|
840
|
-
const
|
840
|
+
const In = /* @__PURE__ */ C(mn, [["render", An]]), Tn = {}, Sn = {
|
841
841
|
class: "hidden xl:block shrink-0 size-4",
|
842
842
|
xmlns: "http://www.w3.org/2000/svg",
|
843
843
|
viewBox: "0 0 24 24",
|
@@ -847,8 +847,8 @@ const wn = /* @__PURE__ */ w(bn, [["render", kn]]), Cn = {}, $n = {
|
|
847
847
|
"stroke-linecap": "round",
|
848
848
|
"stroke-linejoin": "round"
|
849
849
|
};
|
850
|
-
function
|
851
|
-
return o(),
|
850
|
+
function Vn(t, e, s, a, n, r) {
|
851
|
+
return o(), c("svg", Sn, e[0] || (e[0] = [
|
852
852
|
l("rect", {
|
853
853
|
width: "18",
|
854
854
|
height: "18",
|
@@ -860,7 +860,7 @@ function An(t, e, s, i, n, r) {
|
|
860
860
|
l("path", { d: "m8 9 3 3-3 3" }, null, -1)
|
861
861
|
]));
|
862
862
|
}
|
863
|
-
const
|
863
|
+
const Dn = /* @__PURE__ */ C(Tn, [["render", Vn]]), Fn = {}, jn = {
|
864
864
|
class: "h21yx vs0hq",
|
865
865
|
xmlns: "http://www.w3.org/2000/svg",
|
866
866
|
width: "24",
|
@@ -872,15 +872,15 @@ const In = /* @__PURE__ */ w(Cn, [["render", An]]), Tn = {}, Sn = {
|
|
872
872
|
"stroke-linecap": "round",
|
873
873
|
"stroke-linejoin": "round"
|
874
874
|
};
|
875
|
-
function
|
876
|
-
return o(),
|
877
|
-
|
875
|
+
function Mn(t, e, s, a, n, r) {
|
876
|
+
return o(), c("svg", jn, e[0] || (e[0] = [
|
877
|
+
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)
|
878
878
|
]));
|
879
879
|
}
|
880
|
-
const
|
880
|
+
const qn = /* @__PURE__ */ C(Fn, [["render", Mn]]), Pn = {
|
881
881
|
emits: ["filterChange"],
|
882
882
|
props: { scheme: { type: Object }, onFilters: { type: Number } },
|
883
|
-
components: { IconFilter:
|
883
|
+
components: { IconFilter: qn },
|
884
884
|
data() {
|
885
885
|
return {
|
886
886
|
isFilters: !1
|
@@ -891,34 +891,34 @@ const Dn = /* @__PURE__ */ w(Tn, [["render", Vn]]), Fn = {
|
|
891
891
|
this.isFilters && t.classList.contains("filter-container") && (this.isFilters = !1);
|
892
892
|
}
|
893
893
|
}
|
894
|
-
},
|
894
|
+
}, Bn = {
|
895
895
|
key: 0,
|
896
896
|
class: "font-medium text-[10px] py-0.5 px-[5px] bg-gray-800 text-white leading-3 rounded-full dark:bg-neutral-500"
|
897
|
-
},
|
898
|
-
function
|
897
|
+
}, Ln = { 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" };
|
898
|
+
function zn(t, e, s, a, n, r) {
|
899
899
|
const u = p("IconFilter"), f = p("VsFilter");
|
900
|
-
return o(),
|
900
|
+
return o(), c(I, null, [
|
901
901
|
l("button", {
|
902
902
|
onClick: e[0] || (e[0] = (h) => n.isFilters = !n.isFilters),
|
903
903
|
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 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"
|
904
904
|
}, [
|
905
|
-
|
905
|
+
y(u, {
|
906
906
|
height: "16",
|
907
907
|
width: "16"
|
908
908
|
}),
|
909
909
|
e[4] || (e[4] = j(" Фільтри ")),
|
910
|
-
s.onFilters ? (o(),
|
910
|
+
s.onFilters ? (o(), c("span", Bn, T(s.onFilters), 1)) : w("", !0)
|
911
911
|
]),
|
912
|
-
|
912
|
+
y(U, { name: "fade" }, {
|
913
913
|
default: $(() => {
|
914
914
|
var h;
|
915
915
|
return [
|
916
|
-
|
916
|
+
z(l("div", {
|
917
917
|
onClick: e[3] || (e[3] = (...m) => r.closeFilter && r.closeFilter(...m)),
|
918
918
|
style: { height: "100vh" },
|
919
919
|
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)]"
|
920
920
|
}, [
|
921
|
-
l("div",
|
921
|
+
l("div", Ln, [
|
922
922
|
(h = s.scheme) != null && h.length ? (o(), _(f, {
|
923
923
|
key: 0,
|
924
924
|
ref: "filter",
|
@@ -930,10 +930,10 @@ function qn(t, e, s, i, n, r) {
|
|
930
930
|
onFilterChange: e[1] || (e[1] = (m) => t.$emit("filterChange", m)),
|
931
931
|
closeFilterBtn: !0,
|
932
932
|
onFilterClose: e[2] || (e[2] = (m) => n.isFilters = !1)
|
933
|
-
}, null, 8, ["scheme"])) :
|
933
|
+
}, null, 8, ["scheme"])) : w("", !0)
|
934
934
|
])
|
935
935
|
], 512), [
|
936
|
-
[
|
936
|
+
[Ie, n.isFilters]
|
937
937
|
])
|
938
938
|
];
|
939
939
|
}),
|
@@ -941,25 +941,25 @@ function qn(t, e, s, i, n, r) {
|
|
941
941
|
})
|
942
942
|
], 64);
|
943
943
|
}
|
944
|
-
const
|
944
|
+
const Un = /* @__PURE__ */ C(Pn, [["render", zn]]), On = {
|
945
945
|
props: { tabsList: { type: Array, default: () => [] }, filterState: String }
|
946
|
-
},
|
946
|
+
}, Nn = {
|
947
947
|
class: "relative flex space-x-1 mb-[20px] after:absolute after:w-[99%] after:bottom-0 after:inset-x-0 after:border-b-2 after:border-gray-200 dark:after:border-neutral-700",
|
948
948
|
"aria-label": "Tabs",
|
949
949
|
role: "tablist",
|
950
950
|
"aria-orientation": "horizontal"
|
951
|
-
},
|
952
|
-
function
|
953
|
-
return o(),
|
954
|
-
(o(!0),
|
951
|
+
}, En = ["onClick"];
|
952
|
+
function Hn(t, e, s, a, n, r) {
|
953
|
+
return o(), c("nav", Nn, [
|
954
|
+
(o(!0), c(I, null, D(s.tabsList, (u) => (o(), c("button", {
|
955
955
|
onClick: (f) => t.$emit("update:filterState", u == null ? void 0 : u.name),
|
956
956
|
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", {
|
957
957
|
" font-semibold after:absolute after:bottom-[-8px] after:left-2.5 after:right-2.5 after:z-10 after:h-0.5 after:bg-gray-800": (u == null ? void 0 : u.name) === s.filterState
|
958
958
|
}])
|
959
|
-
},
|
959
|
+
}, T(u == null ? void 0 : u.label), 11, En))), 256))
|
960
960
|
]);
|
961
961
|
}
|
962
|
-
const
|
962
|
+
const Rn = /* @__PURE__ */ C(On, [["render", Hn]]), Wn = {}, Zn = {
|
963
963
|
xmlns: "http://www.w3.org/2000/svg",
|
964
964
|
viewBox: "0 0 24 24",
|
965
965
|
fill: "none",
|
@@ -969,8 +969,8 @@ const On = /* @__PURE__ */ w(Pn, [["render", Un]]), En = {}, Nn = {
|
|
969
969
|
"stroke-linejoin": "round",
|
970
970
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-filter"
|
971
971
|
};
|
972
|
-
function
|
973
|
-
return o(),
|
972
|
+
function Gn(t, e, s, a, n, r) {
|
973
|
+
return o(), c("svg", Zn, e[0] || (e[0] = [
|
974
974
|
l("path", {
|
975
975
|
stroke: "none",
|
976
976
|
d: "M0 0h24v24H0z",
|
@@ -979,34 +979,34 @@ function Hn(t, e, s, i, n, r) {
|
|
979
979
|
l("path", { d: "M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z" }, null, -1)
|
980
980
|
]));
|
981
981
|
}
|
982
|
-
const
|
983
|
-
components: { IconFilter2:
|
982
|
+
const Jn = /* @__PURE__ */ C(Wn, [["render", Gn]]), Kn = {
|
983
|
+
components: { IconFilter2: Jn },
|
984
984
|
props: { filterCustom: String, customList: Array }
|
985
|
-
},
|
986
|
-
function
|
985
|
+
}, Qn = { 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 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" }, Xn = { class: "flex flex-col gap-[4px]" }, Yn = ["onClick"];
|
986
|
+
function es(t, e, s, a, n, r) {
|
987
987
|
const u = p("IconFilter2"), f = p("VsPopover");
|
988
988
|
return o(), _(f, {
|
989
989
|
ref: "popover",
|
990
990
|
placement: "bottom"
|
991
991
|
}, {
|
992
992
|
reference: $(() => [
|
993
|
-
l("button",
|
994
|
-
|
993
|
+
l("button", Qn, [
|
994
|
+
y(u, {
|
995
995
|
height: "20",
|
996
996
|
width: "20"
|
997
997
|
})
|
998
998
|
])
|
999
999
|
]),
|
1000
1000
|
default: $(() => [
|
1001
|
-
l("div",
|
1002
|
-
(o(!0),
|
1001
|
+
l("div", Xn, [
|
1002
|
+
(o(!0), c(I, null, D(s.customList, (h, m) => (o(), c("button", {
|
1003
1003
|
onClick: (v) => {
|
1004
|
-
var
|
1005
|
-
t.$emit("update:filterCustom", h == null ? void 0 : h.name), (
|
1004
|
+
var i;
|
1005
|
+
t.$emit("update:filterCustom", h == null ? void 0 : h.name), (i = t.$refs) == null || i.popover.togglePopover();
|
1006
1006
|
},
|
1007
1007
|
key: m,
|
1008
1008
|
class: V(["p-[8px] block rounded-lg w-[140px] text-start hover:bg-gray-100 !duration-300", { "bg-gray-100": s.filterCustom === (h == null ? void 0 : h.name) }])
|
1009
|
-
},
|
1009
|
+
}, T(h == null ? void 0 : h.label), 11, Yn))), 128)),
|
1010
1010
|
l("button", {
|
1011
1011
|
class: "p-[8px] block rounded-lg w-[140px] text-start hover:bg-gray-100 !duration-300",
|
1012
1012
|
onClick: e[0] || (e[0] = (h) => {
|
@@ -1019,61 +1019,84 @@ function Kn(t, e, s, i, n, r) {
|
|
1019
1019
|
_: 1
|
1020
1020
|
}, 512);
|
1021
1021
|
}
|
1022
|
-
const
|
1022
|
+
const ts = /* @__PURE__ */ C(Kn, [["render", es]]), ns = { class: "flex items-center gap-x-2" }, ss = {
|
1023
1023
|
__name: "admin-table-custom-buttons",
|
1024
1024
|
props: {
|
1025
1025
|
slots: Object
|
1026
1026
|
},
|
1027
1027
|
setup(t) {
|
1028
|
-
var f, h, m, v,
|
1029
|
-
const { asyncTemplateSlot: e } = (
|
1030
|
-
var g, d,
|
1031
|
-
if ((g = n.slots) != null && g.panelLeft || (
|
1032
|
-
const S = e("PanelLeft", (
|
1028
|
+
var f, h, m, v, i;
|
1029
|
+
const { asyncTemplateSlot: e } = (i = (v = (m = (h = (f = Te()) == null ? void 0 : f.appContext) == null ? void 0 : h.app) == null ? void 0 : m.config) == null ? void 0 : v.globalProperties) == null ? void 0 : i.utils, s = L(""), a = L(""), n = t, r = () => {
|
1030
|
+
var g, d, k, x, A;
|
1031
|
+
if ((g = n.slots) != null && g.panelLeft || (a.value = "div"), (k = (d = n.slots) == null ? void 0 : d.panelLeft) != null && k.includes("<")) {
|
1032
|
+
const S = e("PanelLeft", (x = n.slots) == null ? void 0 : x.panelLeft, [
|
1033
1033
|
"name"
|
1034
1034
|
]);
|
1035
|
-
|
1035
|
+
a.value = S;
|
1036
1036
|
} else
|
1037
|
-
|
1037
|
+
a.value = (A = n.slots) == null ? void 0 : A.panelLeft;
|
1038
1038
|
}, u = () => {
|
1039
|
-
var g, d,
|
1040
|
-
if ((g = n.slots) != null && g.panelRight || (s.value = "div"), (
|
1041
|
-
const S = e("PanelRight", (
|
1039
|
+
var g, d, k, x, A;
|
1040
|
+
if ((g = n.slots) != null && g.panelRight || (s.value = "div"), (k = (d = n.slots) == null ? void 0 : d.panelRight) != null && k.includes("<")) {
|
1041
|
+
const S = e("PanelRight", (x = n.slots) == null ? void 0 : x.panelRight, [
|
1042
1042
|
"name"
|
1043
1043
|
]);
|
1044
1044
|
s.value = S;
|
1045
1045
|
} else
|
1046
1046
|
s.value = (A = n.slots) == null ? void 0 : A.panelRight;
|
1047
1047
|
};
|
1048
|
-
return r(), u(), (g, d) => (o(),
|
1049
|
-
(o(), _(
|
1050
|
-
(o(), _(
|
1048
|
+
return r(), u(), (g, d) => (o(), c("div", ns, [
|
1049
|
+
(o(), _(q(a.value))),
|
1050
|
+
(o(), _(q(s.value)))
|
1051
1051
|
]));
|
1052
1052
|
}
|
1053
|
-
},
|
1053
|
+
}, ls = (t, e = 300) => {
|
1054
1054
|
let s;
|
1055
|
-
return function(...
|
1055
|
+
return function(...a) {
|
1056
1056
|
clearTimeout(s), s = setTimeout(() => {
|
1057
|
-
t.apply(this,
|
1057
|
+
t.apply(this, a);
|
1058
1058
|
}, e);
|
1059
1059
|
};
|
1060
|
-
},
|
1060
|
+
}, os = {
|
1061
|
+
__name: "admin-custom-button-add",
|
1062
|
+
props: {
|
1063
|
+
slots: Object
|
1064
|
+
},
|
1065
|
+
setup(t) {
|
1066
|
+
var r, u, f, h, m;
|
1067
|
+
const { asyncTemplateSlot: e } = (m = (h = (f = (u = (r = Te()) == null ? void 0 : r.appContext) == null ? void 0 : u.app) == null ? void 0 : f.config) == null ? void 0 : h.globalProperties) == null ? void 0 : m.utils, s = L(""), a = t;
|
1068
|
+
return (() => {
|
1069
|
+
var v, i, g, d, k;
|
1070
|
+
if ((v = a.slots) != null && v.addButton || (s.value = "div"), (g = (i = a.slots) == null ? void 0 : i.addButton) != null && g.includes("<")) {
|
1071
|
+
const x = e("addButton", (d = a.slots) == null ? void 0 : d.addButton, [
|
1072
|
+
"IconPlus"
|
1073
|
+
]);
|
1074
|
+
s.value = x;
|
1075
|
+
} else
|
1076
|
+
s.value = (k = a.slots) == null ? void 0 : k.addButton;
|
1077
|
+
})(), (v, i) => s.value ? (o(), _(q(s.value), {
|
1078
|
+
key: 0,
|
1079
|
+
IconPlus: O
|
1080
|
+
})) : w("", !0);
|
1081
|
+
}
|
1082
|
+
}, rs = {
|
1061
1083
|
props: { table: String, title: String },
|
1062
1084
|
components: {
|
1063
|
-
AdminTableControl:
|
1064
|
-
AdminTableExport:
|
1065
|
-
AdminTableColumnsHidden:
|
1066
|
-
AdminTableColumn:
|
1067
|
-
AdminNodata:
|
1068
|
-
IconPlus:
|
1069
|
-
IconSearch:
|
1070
|
-
AdminTableCardInfo:
|
1071
|
-
IconOpenCard:
|
1072
|
-
AdminComponentIs:
|
1073
|
-
AdminTableFilters:
|
1074
|
-
AdminTableTabs:
|
1075
|
-
AdminTableCustomFilters:
|
1076
|
-
AdminTableCustomButtons:
|
1085
|
+
AdminTableControl: pt,
|
1086
|
+
AdminTableExport: Lt,
|
1087
|
+
AdminTableColumnsHidden: Xt,
|
1088
|
+
AdminTableColumn: nt,
|
1089
|
+
AdminNodata: Ne,
|
1090
|
+
IconPlus: O,
|
1091
|
+
IconSearch: Ee,
|
1092
|
+
AdminTableCardInfo: In,
|
1093
|
+
IconOpenCard: Dn,
|
1094
|
+
AdminComponentIs: Se,
|
1095
|
+
AdminTableFilters: Un,
|
1096
|
+
AdminTableTabs: Rn,
|
1097
|
+
AdminTableCustomFilters: ts,
|
1098
|
+
AdminTableCustomButtons: ss,
|
1099
|
+
AdminCustomButtonAdd: os
|
1077
1100
|
},
|
1078
1101
|
data() {
|
1079
1102
|
return {
|
@@ -1115,8 +1138,8 @@ const Qn = /* @__PURE__ */ w(Wn, [["render", Kn]]), Xn = { class: "flex items-ce
|
|
1115
1138
|
activeCardRow() {
|
1116
1139
|
var t, e;
|
1117
1140
|
return ((e = (t = this.tableData) == null ? void 0 : t.rows) == null ? void 0 : e.find((s) => {
|
1118
|
-
var
|
1119
|
-
return (s == null ? void 0 : s.id) === ((n = (
|
1141
|
+
var a, n;
|
1142
|
+
return (s == null ? void 0 : s.id) === ((n = (a = this.$route) == null ? void 0 : a.query) == null ? void 0 : n.card);
|
1120
1143
|
})) || {};
|
1121
1144
|
},
|
1122
1145
|
getActions() {
|
@@ -1129,7 +1152,7 @@ const Qn = /* @__PURE__ */ w(Wn, [["render", Kn]]), Xn = { class: "flex items-ce
|
|
1129
1152
|
this.tableData = null, await this.getTableData();
|
1130
1153
|
},
|
1131
1154
|
searchValue: {
|
1132
|
-
handler:
|
1155
|
+
handler: ls(async function(t) {
|
1133
1156
|
var e;
|
1134
1157
|
await this.getTableData(), this.$router.push({
|
1135
1158
|
...this.$route,
|
@@ -1139,8 +1162,8 @@ const Qn = /* @__PURE__ */ w(Wn, [["render", Kn]]), Xn = { class: "flex items-ce
|
|
1139
1162
|
},
|
1140
1163
|
$route: {
|
1141
1164
|
handler(t, e) {
|
1142
|
-
var s,
|
1143
|
-
((s = t == null ? void 0 : t.params) == null ? void 0 : s.catchAll) !== ((
|
1165
|
+
var s, a;
|
1166
|
+
((s = t == null ? void 0 : t.params) == null ? void 0 : s.catchAll) !== ((a = e == null ? void 0 : e.params) == null ? void 0 : a.catchAll) && (this.visibleColumns = [], this.unmountedData(), this.getFilters());
|
1144
1167
|
},
|
1145
1168
|
deep: !0
|
1146
1169
|
},
|
@@ -1163,24 +1186,24 @@ const Qn = /* @__PURE__ */ w(Wn, [["render", Kn]]), Xn = { class: "flex items-ce
|
|
1163
1186
|
}), this.getTableData();
|
1164
1187
|
},
|
1165
1188
|
columns(t) {
|
1166
|
-
var e, s,
|
1189
|
+
var e, s, a, n;
|
1167
1190
|
this.visibleColumns = t == null ? void 0 : t.map((r) => r == null ? void 0 : r.name), this.initialHiddenColumns === ((e = this.visibleColumns) == null ? void 0 : e.join(",")) && (this.visibleColumns = []), this.$router.replace({
|
1168
1191
|
...this.$route,
|
1169
1192
|
query: {
|
1170
1193
|
...(s = this.$route) == null ? void 0 : s.query,
|
1171
|
-
columns: (
|
1194
|
+
columns: (a = this.visibleColumns) != null && a.length ? (n = this.visibleColumns) == null ? void 0 : n.join(",") : void 0
|
1172
1195
|
}
|
1173
1196
|
});
|
1174
1197
|
}
|
1175
1198
|
},
|
1176
1199
|
methods: {
|
1177
1200
|
async checkUrlMounted() {
|
1178
|
-
var t, e, s,
|
1179
|
-
this.page = ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1, this.limit = ((
|
1201
|
+
var t, e, s, a, n, r, u, f, h, m, v, i, g, d, k, x, A;
|
1202
|
+
this.page = ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1, this.limit = ((a = (s = this.$route) == null ? void 0 : s.query) == null ? void 0 : a.limit) || 20, this.filters = ((u = decodeURI((r = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : r.filter)) == null ? void 0 : u.replaceAll("+", " ")) || null, this.filterState = ((h = (f = this.$route) == null ? void 0 : f.query) == null ? void 0 : h.filterState) || null, this.filterCustom = ((v = (m = this.$route) == null ? void 0 : m.query) == null ? void 0 : v.custom) || null, this.searchValue = ((g = (i = this.$route) == null ? void 0 : i.query) == null ? void 0 : g.search) || "", this.visibleColumns = ((x = (k = (d = this.$route) == null ? void 0 : d.query) == null ? void 0 : k.columns) == null ? void 0 : x.split(",")) || [], (A = this.$route) != null && A.query.card && (this.isVisibleCardInfo = !0);
|
1180
1203
|
},
|
1181
1204
|
rowWidth(t) {
|
1182
|
-
var s,
|
1183
|
-
const e = (
|
1205
|
+
var s, a;
|
1206
|
+
const e = (a = (s = this.tableData) == null ? void 0 : s.columns) == null ? void 0 : a.find((n) => n.name === t);
|
1184
1207
|
if (e) {
|
1185
1208
|
const n = e == null ? void 0 : e.width;
|
1186
1209
|
return typeof n == "number" ? `${n}px` : n != null && n.includes("px") ? n : `${n}px`;
|
@@ -1190,9 +1213,9 @@ const Qn = /* @__PURE__ */ w(Wn, [["render", Kn]]), Xn = { class: "flex items-ce
|
|
1190
1213
|
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 = "";
|
1191
1214
|
},
|
1192
1215
|
async getTableData() {
|
1193
|
-
var t, e, s,
|
1216
|
+
var t, e, s, a, n, r, u, f, h, m, v;
|
1194
1217
|
try {
|
1195
|
-
const { data:
|
1218
|
+
const { data: i } = await F.get(`/api/template/table/${this.table}`), g = await F.get(`/api/table-data/${this.table}`, {
|
1196
1219
|
params: {
|
1197
1220
|
page: this.page,
|
1198
1221
|
search: this.searchValue || null,
|
@@ -1204,11 +1227,11 @@ const Qn = /* @__PURE__ */ w(Wn, [["render", Kn]]), Xn = { class: "flex items-ce
|
|
1204
1227
|
}
|
1205
1228
|
});
|
1206
1229
|
this.tableData = {
|
1207
|
-
...
|
1230
|
+
...i,
|
1208
1231
|
...(g == null ? void 0 : g.data) || {}
|
1209
|
-
}, this.initialHiddenColumns = (r = (n = (
|
1210
|
-
var
|
1211
|
-
(
|
1232
|
+
}, this.initialHiddenColumns = (r = (n = (a = (s = this.tableData) == null ? void 0 : s.columns) == null ? void 0 : a.filter((d) => (d == null ? void 0 : d.hidden) !== !0)) == null ? void 0 : n.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) => {
|
1233
|
+
var k;
|
1234
|
+
(k = this.visibleColumns) != null && k.includes(d == null ? void 0 : d.name) ? d.hidden = !1 : d.hidden = !0;
|
1212
1235
|
}) : this.visibleColumns = (v = (m = (h = this.tableData) == null ? void 0 : h.columns) == null ? void 0 : m.filter((d) => (d == null ? void 0 : d.hidden) !== !0)) == null ? void 0 : v.map((d) => d == null ? void 0 : d.name);
|
1213
1236
|
} catch {
|
1214
1237
|
}
|
@@ -1257,102 +1280,107 @@ const Qn = /* @__PURE__ */ w(Wn, [["render", Kn]]), Xn = { class: "flex items-ce
|
|
1257
1280
|
});
|
1258
1281
|
}
|
1259
1282
|
}
|
1260
|
-
},
|
1283
|
+
}, as = { class: "w-[calc(100vw - 320px)] bg-gray-50" }, is = { class: "h-[76px] mt-[15px] flex items-center justify-between mx-[20px] px-[20px] bg-white border rounded-xl" }, cs = { class: "text-xl font-medium" }, us = {
|
1261
1284
|
style: { height: "calc(100vh - 155px)", width: "calc(100vw - 260px)" },
|
1262
1285
|
class: "bg-gray-50 p-[20px] flex pt-[10px]"
|
1263
|
-
},
|
1286
|
+
}, ds = { class: "bg-white w-full rounded-xl border p-[20px] pr-0" }, bs = { class: "flex" }, ps = { class: "flex gap-[6px] ml-auto" }, hs = { class: "inline-block w-full align-middle" }, fs = {
|
1264
1287
|
key: 0,
|
1265
1288
|
class: "relative min-w-full divide-y divide-gray-200 table-fixed w-max dark:divide-neutral-700"
|
1266
|
-
},
|
1289
|
+
}, ms = { class: "sticky top-[-1px] bg-white w-full after:absolute after:content-[''] after:block after:w-full after:h-px after:bg-stone-200" }, gs = { class: "right-0 border-t border-stone-200" }, xs = {
|
1267
1290
|
key: 0,
|
1268
1291
|
class: "w-[70px] sticky right-0 top-0"
|
1269
|
-
},
|
1292
|
+
}, ys = { class: "divide-y divide-gray-200" }, _s = { class: "px-4 py-3 text-sm text-gray-600" }, vs = ["onClick"], ks = ["onClick"], ws = { class: "p-[20px] flex justify-start items-center w-full" }, Cs = { class: "w-[200px]" }, $s = { class: "text-sm text-gray-600 dark:text-neutral-400" }, As = { class: "font-semibold text-gray-800 dark:text-neutral-200" }, Is = { key: 0 }, Ts = {
|
1270
1293
|
key: 0,
|
1271
1294
|
class: "font-semibold text-gray-800 dark:text-neutral-200"
|
1272
1295
|
};
|
1273
|
-
function
|
1274
|
-
var
|
1275
|
-
const u = p("
|
1276
|
-
return o(),
|
1277
|
-
l("div",
|
1278
|
-
l("h2",
|
1279
|
-
r.isForm ? (o(),
|
1280
|
-
|
1281
|
-
|
1282
|
-
|
1283
|
-
|
1284
|
-
|
1285
|
-
|
1286
|
-
|
1287
|
-
|
1288
|
-
|
1289
|
-
|
1290
|
-
|
1291
|
-
|
1292
|
-
|
1296
|
+
function Ss(t, e, s, a, n, r) {
|
1297
|
+
var N, E, H, R, W, Z, G, J, K, Q, X, Y, ee, te, ne, se, le, oe, re, ae, ie, ce, ue, de, be, pe;
|
1298
|
+
const u = p("AdminCustomButtonAdd"), f = p("IconPlus"), h = p("router-link"), m = p("AdminTableTabs"), v = p("IconSearch"), i = p("VsText"), g = p("AdminTableCustomButtons"), d = p("AdminTableCustomFilters"), k = p("AdminTableColumnsHidden"), x = p("AdminTableExport"), A = p("AdminTableFilters"), S = p("IconOpenCard"), P = p("AdminTableColumn"), B = p("AdminComponentIs"), Ve = p("AdminTableControl"), De = p("AdminNodata"), Fe = p("VsPagination"), je = p("AdminTableCardInfo");
|
1299
|
+
return o(), c("div", as, [
|
1300
|
+
l("div", is, [
|
1301
|
+
l("h2", cs, T(s.title), 1),
|
1302
|
+
r.isForm ? (o(), c(I, { key: 0 }, [
|
1303
|
+
(E = (N = n.tableData) == null ? void 0 : N.slots) != null && E.addButton ? (o(), _(u, {
|
1304
|
+
key: 0,
|
1305
|
+
slots: (H = n.tableData) == null ? void 0 : H.slots
|
1306
|
+
}, null, 8, ["slots"])) : (o(), _(h, {
|
1307
|
+
key: 1,
|
1308
|
+
to: `/add?table=${(W = (R = t.$route) == null ? void 0 : R.params) == null ? void 0 : W.catchAll}`,
|
1309
|
+
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"
|
1310
|
+
}, {
|
1311
|
+
default: $(() => [
|
1312
|
+
y(f, {
|
1313
|
+
height: "16",
|
1314
|
+
width: "16"
|
1315
|
+
}),
|
1316
|
+
e[5] || (e[5] = j(" Додати "))
|
1317
|
+
]),
|
1318
|
+
_: 1
|
1319
|
+
}, 8, ["to"]))
|
1320
|
+
], 64)) : w("", !0)
|
1293
1321
|
]),
|
1294
|
-
l("div",
|
1295
|
-
l("div",
|
1296
|
-
(
|
1322
|
+
l("div", us, [
|
1323
|
+
l("div", ds, [
|
1324
|
+
(G = (Z = n.tableData) == null ? void 0 : Z.filterState) != null && G.length ? (o(), _(m, {
|
1297
1325
|
key: 0,
|
1298
|
-
tabsList: (
|
1326
|
+
tabsList: (J = n.tableData) == null ? void 0 : J.filterState,
|
1299
1327
|
filterState: n.filterState,
|
1300
1328
|
"onUpdate:filterState": e[0] || (e[0] = (b) => n.filterState = b)
|
1301
|
-
}, null, 8, ["tabsList", "filterState"])) :
|
1302
|
-
l("div",
|
1329
|
+
}, null, 8, ["tabsList", "filterState"])) : w("", !0),
|
1330
|
+
l("div", bs, [
|
1303
1331
|
l("div", {
|
1304
1332
|
class: V([n.isVisibleCardInfo ? "w-[calc(100%-360px)]" : "w-full"])
|
1305
1333
|
}, [
|
1306
1334
|
l("div", {
|
1307
1335
|
class: V(["flex sm:grid sm:grid-cols-2 gap-x-2 sm:gap-x-5 mb-[10px] relative", { "pr-[20px]": !n.isVisibleCardInfo }])
|
1308
1336
|
}, [
|
1309
|
-
|
1337
|
+
y(v, {
|
1310
1338
|
height: "14",
|
1311
1339
|
width: "14",
|
1312
1340
|
class: "absolute top-[10px] left-[14px] text-gray-500 z-[1]"
|
1313
1341
|
}),
|
1314
|
-
|
1342
|
+
y(i, {
|
1315
1343
|
modelValue: n.searchValue,
|
1316
1344
|
"onUpdate:modelValue": e[1] || (e[1] = (b) => n.searchValue = b),
|
1317
1345
|
placeholder: "Пошук...",
|
1318
1346
|
clearable: !0,
|
1319
1347
|
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"
|
1320
1348
|
}, null, 8, ["modelValue"]),
|
1321
|
-
l("div",
|
1322
|
-
(
|
1349
|
+
l("div", ps, [
|
1350
|
+
(K = n.tableData) != null && K.slots ? (o(), _(g, {
|
1323
1351
|
key: 0,
|
1324
|
-
slots: (
|
1325
|
-
}, null, 8, ["slots"])) :
|
1326
|
-
(
|
1352
|
+
slots: (Q = n.tableData) == null ? void 0 : Q.slots
|
1353
|
+
}, null, 8, ["slots"])) : w("", !0),
|
1354
|
+
(Y = (X = n.tableData) == null ? void 0 : X.filterCustom) != null && Y.length ? (o(), _(d, {
|
1327
1355
|
key: 1,
|
1328
|
-
customList: (
|
1356
|
+
customList: (ee = n.tableData) == null ? void 0 : ee.filterCustom,
|
1329
1357
|
filterCustom: n.filterCustom,
|
1330
1358
|
"onUpdate:filterCustom": e[2] || (e[2] = (b) => n.filterCustom = b)
|
1331
|
-
}, null, 8, ["customList", "filterCustom"])) :
|
1332
|
-
|
1333
|
-
columns: (
|
1359
|
+
}, null, 8, ["customList", "filterCustom"])) : w("", !0),
|
1360
|
+
y(k, {
|
1361
|
+
columns: (te = n.tableData) == null ? void 0 : te.columns,
|
1334
1362
|
onUpdateColumns: e[3] || (e[3] = (b) => n.tableData.columns = b)
|
1335
1363
|
}, null, 8, ["columns"]),
|
1336
|
-
((
|
1364
|
+
((ne = n.tableData) == null ? void 0 : ne.export) !== !1 ? (o(), _(x, {
|
1337
1365
|
key: 2,
|
1338
1366
|
table: s.table,
|
1339
|
-
columns: (
|
1367
|
+
columns: (se = n.tableData) == null ? void 0 : se.columns,
|
1340
1368
|
page: n.page,
|
1341
1369
|
"filter-state": n.filterState,
|
1342
1370
|
"filter-custom": n.filterCustom,
|
1343
1371
|
filters: n.filters
|
1344
|
-
}, null, 8, ["table", "columns", "page", "filter-state", "filter-custom", "filters"])) :
|
1345
|
-
(
|
1372
|
+
}, null, 8, ["table", "columns", "page", "filter-state", "filter-custom", "filters"])) : w("", !0),
|
1373
|
+
(le = n.filterScheme) != null && le.length ? (o(), _(A, {
|
1346
1374
|
key: 3,
|
1347
1375
|
scheme: n.filterScheme,
|
1348
1376
|
onFilters: n.onFilters,
|
1349
1377
|
onFilterChange: r.filterChange
|
1350
|
-
}, null, 8, ["scheme", "onFilters", "onFilterChange"])) :
|
1378
|
+
}, null, 8, ["scheme", "onFilters", "onFilterChange"])) : w("", !0),
|
1351
1379
|
l("button", {
|
1352
1380
|
onClick: e[4] || (e[4] = (...b) => r.toggleCardInfo && r.toggleCardInfo(...b)),
|
1353
1381
|
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 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"
|
1354
1382
|
}, [
|
1355
|
-
|
1383
|
+
y(S, {
|
1356
1384
|
class: V({ "rotate-180 duration-300": !n.isVisibleCardInfo })
|
1357
1385
|
}, null, 8, ["class"])
|
1358
1386
|
])
|
@@ -1362,18 +1390,18 @@ function Cs(t, e, s, i, n, r) {
|
|
1362
1390
|
class: V(["flex items-start justify-start w-full space-y-5", { "pr-[20px]": !n.isVisibleCardInfo }])
|
1363
1391
|
}, [
|
1364
1392
|
l("div", {
|
1365
|
-
style:
|
1366
|
-
height: (
|
1393
|
+
style: $e({
|
1394
|
+
height: (re = (oe = n.tableData) == null ? void 0 : oe.filterState) != null && re.length ? "calc(100vh - 370px)" : "calc(100vh - 330px)"
|
1367
1395
|
}),
|
1368
1396
|
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"
|
1369
1397
|
}, [
|
1370
|
-
l("div",
|
1371
|
-
r.isNoData ? (o(), _(
|
1372
|
-
l("thead",
|
1373
|
-
l("tr",
|
1374
|
-
(o(!0),
|
1398
|
+
l("div", hs, [
|
1399
|
+
r.isNoData ? (o(), _(De, { key: 1 })) : (o(), c("table", fs, [
|
1400
|
+
l("thead", ms, [
|
1401
|
+
l("tr", gs, [
|
1402
|
+
(o(!0), c(I, null, D(r.columns, (b) => (o(), _(P, {
|
1375
1403
|
key: b.name,
|
1376
|
-
style:
|
1404
|
+
style: $e({
|
1377
1405
|
width: r.rowWidth(b == null ? void 0 : b.name),
|
1378
1406
|
textAlign: b == null ? void 0 : b.align,
|
1379
1407
|
wordBreak: b == null ? void 0 : b.wrap
|
@@ -1382,60 +1410,60 @@ function Cs(t, e, s, i, n, r) {
|
|
1382
1410
|
activeColumn: n.activeColumn,
|
1383
1411
|
onChangeActive: r.changeActiveColumn
|
1384
1412
|
}, null, 8, ["style", "data", "activeColumn", "onChangeActive"]))), 128)),
|
1385
|
-
(
|
1413
|
+
(ie = (ae = r.getActions) == null ? void 0 : ae.filter((b) => b !== "add")) != null && ie.length ? (o(), c("th", xs)) : w("", !0)
|
1386
1414
|
])
|
1387
1415
|
]),
|
1388
|
-
l("tbody",
|
1389
|
-
(o(!0),
|
1390
|
-
var
|
1391
|
-
return o(),
|
1392
|
-
key:
|
1416
|
+
l("tbody", ys, [
|
1417
|
+
(o(!0), c(I, null, D((ce = n.tableData) == null ? void 0 : ce.rows, (b, Me) => {
|
1418
|
+
var he, fe, me, ge, xe, ye, _e, ve, ke, we;
|
1419
|
+
return o(), c("tr", {
|
1420
|
+
key: Me,
|
1393
1421
|
class: V({
|
1394
|
-
"bg-gray-50": ((
|
1422
|
+
"bg-gray-50": ((fe = (he = t.$route) == null ? void 0 : he.query) == null ? void 0 : fe.card) === (b == null ? void 0 : b.id)
|
1395
1423
|
})
|
1396
1424
|
}, [
|
1397
|
-
l("td",
|
1425
|
+
l("td", _s, [
|
1398
1426
|
l("button", {
|
1399
1427
|
onClick: () => r.pushToCard(b == null ? void 0 : b.id),
|
1400
1428
|
class: V(["text-sm font-medium", [
|
1401
|
-
((
|
1429
|
+
((me = n.tableData) == null ? void 0 : me.card) === !1 ? "" : "text-blue-600 decoration-2 focus:outline-none focus:underline hover:text-blue-600 hover:underline"
|
1402
1430
|
]])
|
1403
1431
|
}, [
|
1404
|
-
|
1432
|
+
y(B, {
|
1405
1433
|
row: b,
|
1406
1434
|
column: r.columns[0],
|
1407
1435
|
table: s.table,
|
1408
1436
|
onUpdateTable: r.getTableData
|
1409
1437
|
}, null, 8, ["row", "column", "table", "onUpdateTable"])
|
1410
|
-
], 10,
|
1438
|
+
], 10, vs)
|
1411
1439
|
]),
|
1412
|
-
(o(!0),
|
1413
|
-
onClick: (
|
1440
|
+
(o(!0), c(I, null, D((ge = r.columns) == null ? void 0 : ge.slice(1), (M) => (o(), c("td", {
|
1441
|
+
onClick: (Ms) => r.changeActiveCardInfo(b == null ? void 0 : b.id),
|
1414
1442
|
class: V(["px-3 py-3 text-sm text-gray-600 text-start", { "cursor-pointer": n.isVisibleCardInfo }]),
|
1415
|
-
key:
|
1443
|
+
key: M.name
|
1416
1444
|
}, [
|
1417
|
-
|
1445
|
+
y(B, {
|
1418
1446
|
row: b,
|
1419
|
-
column:
|
1447
|
+
column: M,
|
1420
1448
|
table: s.table,
|
1421
1449
|
onUpdateTable: r.getTableData
|
1422
1450
|
}, null, 8, ["row", "column", "table", "onUpdateTable"])
|
1423
|
-
], 10,
|
1424
|
-
(
|
1451
|
+
], 10, ks))), 128)),
|
1452
|
+
(ye = (xe = r.getActions) == null ? void 0 : xe.filter((M) => M !== "add")) != null && ye.length ? (o(), c("td", {
|
1425
1453
|
key: 0,
|
1426
1454
|
class: V(["text-center sticky right-0 w-[80px] px-[10px]", {
|
1427
|
-
"bg-gray-50": ((
|
1428
|
-
"bg-white": ((
|
1455
|
+
"bg-gray-50": ((ve = (_e = t.$route) == null ? void 0 : _e.query) == null ? void 0 : ve.card) === (b == null ? void 0 : b.id),
|
1456
|
+
"bg-white": ((we = (ke = t.$route) == null ? void 0 : ke.query) == null ? void 0 : we.card) !== (b == null ? void 0 : b.id)
|
1429
1457
|
}])
|
1430
1458
|
}, [
|
1431
|
-
|
1459
|
+
y(Ve, {
|
1432
1460
|
actions: r.getActions,
|
1433
1461
|
isForm: r.isForm,
|
1434
1462
|
item: b,
|
1435
1463
|
table: s.table,
|
1436
1464
|
onUpdateTable: r.getTableData
|
1437
1465
|
}, null, 8, ["actions", "isForm", "item", "table", "onUpdateTable"])
|
1438
|
-
], 2)) :
|
1466
|
+
], 2)) : w("", !0)
|
1439
1467
|
], 2);
|
1440
1468
|
}), 128))
|
1441
1469
|
])
|
@@ -1443,40 +1471,40 @@ function Cs(t, e, s, i, n, r) {
|
|
1443
1471
|
])
|
1444
1472
|
], 4)
|
1445
1473
|
], 2),
|
1446
|
-
l("div",
|
1447
|
-
l("div",
|
1448
|
-
l("p",
|
1449
|
-
l("span",
|
1450
|
-
j(
|
1451
|
-
n.filters || n.searchValue ? (o(),
|
1474
|
+
l("div", ws, [
|
1475
|
+
l("div", Cs, [
|
1476
|
+
l("p", $s, [
|
1477
|
+
l("span", As, [
|
1478
|
+
j(T(n.filters || n.searchValue ? "Знайдено" : "Об'єктів") + " " + T(((ue = n.tableData) == null ? void 0 : ue.count) || "0 ") + " ", 1),
|
1479
|
+
n.filters || n.searchValue ? (o(), c("span", Is, " з")) : w("", !0)
|
1452
1480
|
]),
|
1453
|
-
n.filters || n.searchValue ? (o(),
|
1481
|
+
n.filters || n.searchValue ? (o(), c("span", Ts, T(" " + ((de = n.tableData) == null ? void 0 : de.filtered) || 0), 1)) : w("", !0)
|
1454
1482
|
])
|
1455
1483
|
]),
|
1456
|
-
Math.ceil(((
|
1484
|
+
Math.ceil(((be = n.tableData) == null ? void 0 : be.filtered) / n.limit) > 1 ? (o(), _(Fe, {
|
1457
1485
|
key: 0,
|
1458
1486
|
goTo: !1,
|
1459
1487
|
class: "justify-end",
|
1460
1488
|
"default-page": parseInt(r.defaultPage),
|
1461
|
-
total: ((
|
1489
|
+
total: ((pe = n.tableData) == null ? void 0 : pe.filtered) || 0,
|
1462
1490
|
pageSize: parseInt(n.limit),
|
1463
1491
|
onPageChange: r.handlePageChange,
|
1464
1492
|
pageSizes: [10, 16, 20],
|
1465
1493
|
onPageSizeChange: r.changeLimit,
|
1466
1494
|
backgroundColor: "#F3F4F6"
|
1467
|
-
}, null, 8, ["default-page", "total", "pageSize", "onPageChange", "onPageSizeChange"])) :
|
1495
|
+
}, null, 8, ["default-page", "total", "pageSize", "onPageChange", "onPageSizeChange"])) : w("", !0)
|
1468
1496
|
])
|
1469
1497
|
], 2),
|
1470
|
-
|
1498
|
+
y(U, { name: "slide-fade" }, {
|
1471
1499
|
default: $(() => {
|
1472
1500
|
var b;
|
1473
1501
|
return [
|
1474
|
-
n.isVisibleCardInfo ? (o(), _(
|
1502
|
+
n.isVisibleCardInfo ? (o(), _(je, {
|
1475
1503
|
key: 0,
|
1476
1504
|
table: s.table,
|
1477
1505
|
columns: (b = n.tableData) == null ? void 0 : b.columns,
|
1478
1506
|
row: r.activeCardRow
|
1479
|
-
}, null, 8, ["table", "columns", "row"])) :
|
1507
|
+
}, null, 8, ["table", "columns", "row"])) : w("", !0)
|
1480
1508
|
];
|
1481
1509
|
}),
|
1482
1510
|
_: 1
|
@@ -1486,8 +1514,8 @@ function Cs(t, e, s, i, n, r) {
|
|
1486
1514
|
])
|
1487
1515
|
]);
|
1488
1516
|
}
|
1489
|
-
const
|
1490
|
-
components: { AdminTable:
|
1517
|
+
const Vs = /* @__PURE__ */ C(rs, [["render", Ss], ["__scopeId", "data-v-b3ac1cf0"]]), Ds = {
|
1518
|
+
components: { AdminTable: Vs },
|
1491
1519
|
data() {
|
1492
1520
|
return {
|
1493
1521
|
table: !1,
|
@@ -1499,13 +1527,13 @@ const $s = /* @__PURE__ */ w(ts, [["render", Cs], ["__scopeId", "data-v-b5d925ab
|
|
1499
1527
|
$route: {
|
1500
1528
|
async handler() {
|
1501
1529
|
var t;
|
1502
|
-
(t =
|
1530
|
+
(t = Ce) != null && t.value || await this.getMenu(), await this.checkPageType();
|
1503
1531
|
},
|
1504
1532
|
deep: !0
|
1505
1533
|
},
|
1506
1534
|
title(t) {
|
1507
1535
|
var e;
|
1508
|
-
t && (document.title = (((e =
|
1536
|
+
t && (document.title = (((e = He.value) == null ? void 0 : e.titlePrefix) || "") + t);
|
1509
1537
|
}
|
1510
1538
|
},
|
1511
1539
|
async mounted() {
|
@@ -1519,14 +1547,14 @@ const $s = /* @__PURE__ */ w(ts, [["render", Cs], ["__scopeId", "data-v-b5d925ab
|
|
1519
1547
|
}), e;
|
1520
1548
|
},
|
1521
1549
|
async checkPageType() {
|
1522
|
-
var
|
1523
|
-
const t = this.flattenMenu(
|
1550
|
+
var a, n;
|
1551
|
+
const t = this.flattenMenu(Ce.value);
|
1524
1552
|
t != null && t.length || this.$router.replace("/404");
|
1525
1553
|
const e = t == null ? void 0 : t.find((r) => {
|
1526
1554
|
var u, f;
|
1527
1555
|
return (r == null ? void 0 : r.path) == ((f = (u = this.$route) == null ? void 0 : u.params) == null ? void 0 : f.catchAll);
|
1528
1556
|
});
|
1529
|
-
this.title = e == null ? void 0 : e.ua, e || this.$router.replace("/404"), e != null && e.component && this.$router.replace((n = (
|
1557
|
+
this.title = e == null ? void 0 : e.ua, e || this.$router.replace("/404"), e != null && e.component && this.$router.replace((n = (a = this.$route) == null ? void 0 : a.params) == null ? void 0 : n.catchAll);
|
1530
1558
|
const s = e == null ? void 0 : e.table;
|
1531
1559
|
this.table = s || !1, !s && this.getInterface();
|
1532
1560
|
},
|
@@ -1542,21 +1570,21 @@ const $s = /* @__PURE__ */ w(ts, [["render", Cs], ["__scopeId", "data-v-b5d925ab
|
|
1542
1570
|
}
|
1543
1571
|
}
|
1544
1572
|
}
|
1545
|
-
},
|
1546
|
-
function
|
1573
|
+
}, Fs = ["innerHTML"];
|
1574
|
+
function js(t, e, s, a, n, r) {
|
1547
1575
|
const u = p("AdminTable");
|
1548
1576
|
return n.table ? (o(), _(u, {
|
1549
1577
|
key: 0,
|
1550
1578
|
table: n.table,
|
1551
1579
|
title: n.title
|
1552
|
-
}, null, 8, ["table", "title"])) : (o(),
|
1580
|
+
}, null, 8, ["table", "title"])) : (o(), c("div", {
|
1553
1581
|
key: 1,
|
1554
1582
|
class: "w-full bg-gray-50",
|
1555
1583
|
style: { height: "calc(100vh - 120px)" },
|
1556
1584
|
innerHTML: n.interface
|
1557
|
-
}, null, 8,
|
1585
|
+
}, null, 8, Fs));
|
1558
1586
|
}
|
1559
|
-
const
|
1587
|
+
const Ls = /* @__PURE__ */ C(Ds, [["render", js]]);
|
1560
1588
|
export {
|
1561
|
-
|
1589
|
+
Ls as default
|
1562
1590
|
};
|