@opengis/admin 0.1.92 → 0.1.94
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{IconChevronDown-KI0JSsHM.js → IconChevronDown-Ckqp2kHy.js} +1 -1
- package/dist/{add-page-BCXXk3_G.js → add-page-CA861uWt.js} +32 -31
- package/dist/{admin-interface-DeVqzwQ5.js → admin-interface-CwikaMBm.js} +369 -375
- package/dist/{admin-view-ueou40jT.js → admin-view-DqduP4RF.js} +2 -2
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +43 -43
- package/dist/{card-view-Ct56P9CD.js → card-view-DZF9Tt0-.js} +1 -1
- package/dist/{edit-page-WUjuzYcQ.js → edit-page-WEzJslvP.js} +1 -1
- package/dist/{import-file-Cobra4kl.js → import-file-BW7hdzkG.js} +17704 -17307
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/card-page-Cs-WOWvI.js +0 -364
@@ -1,7 +1,7 @@
|
|
1
|
-
import { _ as
|
2
|
-
import { openBlock as
|
3
|
-
import { I as
|
4
|
-
const
|
1
|
+
import { _ as v, d as Ve, c as F, V as Ie, e as De, f as Fe, g as je, A as Me, I as qe, u as ye, s as ze } from "./import-file-BW7hdzkG.js";
|
2
|
+
import { openBlock as o, createElementBlock as a, createTextVNode as j, toDisplayString as T, createCommentVNode as w, createStaticVNode as L, Fragment as S, createElementVNode as l, resolveComponent as h, createVNode as x, withCtx as $, createBlock as _, renderList as D, withModifiers as Le, normalizeClass as I, withDirectives as P, vModelCheckbox as Pe, resolveDynamicComponent as z, Transition as B, renderSlot as Be, vShow as ke, getCurrentInstance as Ue, ref as _e, normalizeStyle as ve } from "vue";
|
3
|
+
import { I as Oe } from "./IconChevronDown-Ckqp2kHy.js";
|
4
|
+
const Ee = {
|
5
5
|
data() {
|
6
6
|
return {
|
7
7
|
currentSort: ""
|
@@ -59,10 +59,10 @@ const Oe = {
|
|
59
59
|
return `${this.data.name}-${t}` === this.selectedSortParam;
|
60
60
|
}
|
61
61
|
}
|
62
|
-
},
|
62
|
+
}, Ne = {
|
63
63
|
scope: "col",
|
64
64
|
class: "text-start px-2 py-1"
|
65
|
-
},
|
65
|
+
}, He = {
|
66
66
|
class: "flex-shrink-0 size-3.5",
|
67
67
|
xmlns: "http://www.w3.org/2000/svg",
|
68
68
|
width: "24",
|
@@ -73,33 +73,33 @@ const Oe = {
|
|
73
73
|
"stroke-width": "2",
|
74
74
|
"stroke-linecap": "round",
|
75
75
|
"stroke-linejoin": "round"
|
76
|
-
},
|
76
|
+
}, Re = {
|
77
77
|
key: 0,
|
78
78
|
d: "m7 15 5 5 5-5"
|
79
|
-
},
|
79
|
+
}, We = {
|
80
80
|
key: 1,
|
81
81
|
d: "m7 9 5-5 5 5"
|
82
|
-
},
|
82
|
+
}, Ze = {
|
83
83
|
key: 1,
|
84
|
-
class: "text-sm text-stone-500 px-[4px] py-2.5 text-start font-normal
|
84
|
+
class: "text-sm text-stone-500 px-[4px] py-2.5 text-start font-normal"
|
85
85
|
};
|
86
|
-
function Ge(t, e, s, i, n,
|
87
|
-
return
|
88
|
-
|
86
|
+
function Ge(t, e, s, i, n, r) {
|
87
|
+
return o(), a("th", Ne, [
|
88
|
+
r.getVisibleIcon ? (o(), a("button", {
|
89
89
|
key: 0,
|
90
90
|
type: "button",
|
91
|
-
class: "text-sm text-stone-500 px-[4px] py-2.5 text-start font-normal
|
92
|
-
onClick: e[0] || (e[0] = (u) =>
|
91
|
+
class: "text-sm text-stone-500 px-[4px] py-2.5 text-start font-normal flex items-center gap-[6px]",
|
92
|
+
onClick: e[0] || (e[0] = (u) => r.handleClickSortBtn(n.currentSort))
|
93
93
|
}, [
|
94
|
-
|
95
|
-
(
|
96
|
-
n.currentSort === "asc" || n.currentSort === "" ? (
|
97
|
-
n.currentSort === "desc" || n.currentSort === "" ? (
|
94
|
+
j(T(r.label) + " ", 1),
|
95
|
+
(o(), a("svg", He, [
|
96
|
+
n.currentSort === "asc" || n.currentSort === "" ? (o(), a("path", Re)) : w("", !0),
|
97
|
+
n.currentSort === "desc" || n.currentSort === "" ? (o(), a("path", We)) : w("", !0)
|
98
98
|
]))
|
99
|
-
])) : (
|
99
|
+
])) : (o(), a("p", Ze, T(r.label), 1))
|
100
100
|
]);
|
101
101
|
}
|
102
|
-
const
|
102
|
+
const Je = /* @__PURE__ */ v(Ee, [["render", Ge]]), Ke = {}, Qe = {
|
103
103
|
class: "flex-shrink-0 size-3.5",
|
104
104
|
xmlns: "http://www.w3.org/2000/svg",
|
105
105
|
viewBox: "0 0 24 24",
|
@@ -109,21 +109,21 @@ const Ze = /* @__PURE__ */ k(Oe, [["render", Ge]]), Je = {}, Ke = {
|
|
109
109
|
"stroke-linecap": "round",
|
110
110
|
"stroke-linejoin": "round"
|
111
111
|
};
|
112
|
-
function
|
113
|
-
return
|
114
|
-
|
112
|
+
function Xe(t, e, s, i, n, r) {
|
113
|
+
return o(), a("svg", Qe, e[0] || (e[0] = [
|
114
|
+
L('<path d="M3 6h18"></path><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"></path><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"></path><line x1="10" x2="10" y1="11" y2="17"></line><line x1="14" x2="14" y1="11" y2="17"></line>', 5)
|
115
115
|
]));
|
116
116
|
}
|
117
|
-
const
|
117
|
+
const Ye = /* @__PURE__ */ v(Ke, [["render", Xe]]), et = {
|
118
118
|
props: {
|
119
119
|
height: { type: String, default: "16" },
|
120
120
|
width: { type: String, default: "12" },
|
121
121
|
color: { type: String, default: "black" }
|
122
122
|
}
|
123
|
-
},
|
124
|
-
function
|
125
|
-
return
|
126
|
-
(
|
123
|
+
}, tt = { style: { display: "none" } }, nt = ["height", "width", "fill"];
|
124
|
+
function st(t, e, s, i, n, r) {
|
125
|
+
return o(), a(S, null, [
|
126
|
+
(o(), a("svg", tt, e[0] || (e[0] = [
|
127
127
|
l("symbol", {
|
128
128
|
id: "icon-pencil",
|
129
129
|
viewBox: "0 0 32 32"
|
@@ -131,20 +131,20 @@ function nt(t, e, s, i, n, o) {
|
|
131
131
|
l("path", { d: "M27 0c2.761 0 5 2.239 5 5 0 1.126-0.372 2.164-1 3l-2 2-7-7 2-2c0.836-0.628 1.874-1 3-1zM2 23l-2 9 9-2 18.5-18.5-7-7-18.5 18.5zM22.362 11.362l-14 14-1.724-1.724 14-14 1.724 1.724z" })
|
132
132
|
], -1)
|
133
133
|
]))),
|
134
|
-
(
|
134
|
+
(o(), a("svg", {
|
135
135
|
height: s.height,
|
136
136
|
width: s.width,
|
137
137
|
fill: s.color
|
138
138
|
}, e[1] || (e[1] = [
|
139
139
|
l("use", { "xlink:href": "#icon-pencil" }, null, -1)
|
140
|
-
]), 8,
|
140
|
+
]), 8, nt))
|
141
141
|
], 64);
|
142
142
|
}
|
143
|
-
const
|
143
|
+
const lt = /* @__PURE__ */ v(et, [["render", st]]), ot = {
|
144
144
|
components: {
|
145
|
-
IconMore:
|
146
|
-
IconDelete:
|
147
|
-
IconEdit:
|
145
|
+
IconMore: Ve,
|
146
|
+
IconDelete: Ye,
|
147
|
+
IconEdit: lt
|
148
148
|
},
|
149
149
|
emits: ["updateTable"],
|
150
150
|
props: {
|
@@ -220,20 +220,20 @@ const st = /* @__PURE__ */ k(Ye, [["render", nt]]), lt = {
|
|
220
220
|
});
|
221
221
|
}
|
222
222
|
}
|
223
|
-
}, rt = { class: "hs-dropdown [--placement:bottom-right] inline-flex" },
|
223
|
+
}, rt = { class: "hs-dropdown [--placement:bottom-right] inline-flex" }, at = { 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" }, it = { class: "flex flex-col items-start" }, ct = ["onClick"], ut = { class: "text-gray-800" }, dt = {
|
224
224
|
key: 1,
|
225
225
|
class: "h-[1px] w-[80%] bg-gray-200 ml-auto mr-auto"
|
226
|
-
},
|
227
|
-
function pt(t, e, s, i, n,
|
228
|
-
const u =
|
229
|
-
return
|
226
|
+
}, bt = { class: "p-4" }, ht = { class: "flex justify-end mt-4 gap-x-3" };
|
227
|
+
function pt(t, e, s, i, n, r) {
|
228
|
+
const u = h("IconMore"), f = h("IconEdit"), p = h("router-link"), m = h("IconDelete"), k = h("VsPopover"), c = h("VsDialog");
|
229
|
+
return o(), a(S, null, [
|
230
230
|
l("div", rt, [
|
231
|
-
x(
|
231
|
+
x(k, {
|
232
232
|
trigger: "click",
|
233
233
|
placement: "bottom-left"
|
234
234
|
}, {
|
235
235
|
reference: $(() => [
|
236
|
-
l("button",
|
236
|
+
l("button", at, [
|
237
237
|
x(u, {
|
238
238
|
height: "16",
|
239
239
|
width: "16"
|
@@ -241,32 +241,32 @@ function pt(t, e, s, i, n, o) {
|
|
241
241
|
])
|
242
242
|
]),
|
243
243
|
default: $(() => {
|
244
|
-
var g, d, C, y,
|
244
|
+
var g, d, C, y, A;
|
245
245
|
return [
|
246
|
-
l("div",
|
247
|
-
(g = s.actions) != null && g.includes("edit") && s.isForm ? (
|
246
|
+
l("div", it, [
|
247
|
+
(g = s.actions) != null && g.includes("edit") && s.isForm ? (o(), _(p, {
|
248
248
|
key: 0,
|
249
249
|
to: `/edit?table=${(C = (d = t.$route) == null ? void 0 : d.params) == null ? void 0 : C.catchAll}&id=${(y = s.item) == null ? void 0 : y.id}`,
|
250
250
|
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"
|
251
251
|
}, {
|
252
252
|
default: $(() => [
|
253
|
-
x(
|
254
|
-
e[4] || (e[4] =
|
253
|
+
x(f, { color: "#000" }),
|
254
|
+
e[4] || (e[4] = j(" Редагувати "))
|
255
255
|
]),
|
256
256
|
_: 1
|
257
257
|
}, 8, ["to"])) : w("", !0),
|
258
|
-
(
|
259
|
-
key:
|
260
|
-
onClick: (U) =>
|
258
|
+
(o(!0), a(S, null, D(r.getCustomActions, (V, M) => (o(), a("button", {
|
259
|
+
key: M,
|
260
|
+
onClick: (U) => r.customButtonAction(V),
|
261
261
|
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"
|
262
262
|
}, [
|
263
263
|
x(m, { class: "opacity-0" }),
|
264
|
-
l("span",
|
265
|
-
], 8,
|
266
|
-
s.isForm ? (
|
267
|
-
(
|
264
|
+
l("span", ut, T(V == null ? void 0 : V.label), 1)
|
265
|
+
], 8, ct))), 128)),
|
266
|
+
s.isForm ? (o(), a("div", dt)) : w("", !0),
|
267
|
+
(A = s.actions) != null && A.includes("del") ? (o(), a("button", {
|
268
268
|
key: 2,
|
269
|
-
onClick: e[0] || (e[0] =
|
269
|
+
onClick: e[0] || (e[0] = Le((...V) => r.openConfirm && r.openConfirm(...V), ["stop"])),
|
270
270
|
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"
|
271
271
|
}, [
|
272
272
|
x(m),
|
@@ -285,7 +285,7 @@ function pt(t, e, s, i, n, o) {
|
|
285
285
|
title: "Ви впевнені?"
|
286
286
|
}, {
|
287
287
|
default: $(() => [
|
288
|
-
l("div",
|
288
|
+
l("div", bt, [
|
289
289
|
e[6] || (e[6] = l("p", { class: "mt-1 text-gray-500 dark:text-neutral-500" }, " Ви впевнені, що хочете видалити цей об'єкт? ", -1)),
|
290
290
|
l("div", ht, [
|
291
291
|
l("button", {
|
@@ -296,7 +296,7 @@ function pt(t, e, s, i, n, o) {
|
|
296
296
|
l("button", {
|
297
297
|
type: "button",
|
298
298
|
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",
|
299
|
-
onClick: e[2] || (e[2] = (...g) =>
|
299
|
+
onClick: e[2] || (e[2] = (...g) => r.deleteElement && r.deleteElement(...g))
|
300
300
|
}, " Так, я впевнена/ий ")
|
301
301
|
])
|
302
302
|
])
|
@@ -305,7 +305,7 @@ function pt(t, e, s, i, n, o) {
|
|
305
305
|
}, 8, ["visible"])
|
306
306
|
], 64);
|
307
307
|
}
|
308
|
-
const ft = /* @__PURE__ */
|
308
|
+
const ft = /* @__PURE__ */ v(ot, [["render", pt]]), mt = {}, gt = {
|
309
309
|
class: "flex-shrink-0 mt-0.5 size-3.5",
|
310
310
|
xmlns: "http://www.w3.org/2000/svg",
|
311
311
|
viewBox: "0 0 24 24",
|
@@ -315,15 +315,15 @@ const ft = /* @__PURE__ */ k(lt, [["render", pt]]), bt = {}, mt = {
|
|
315
315
|
"stroke-linecap": "round",
|
316
316
|
"stroke-linejoin": "round"
|
317
317
|
};
|
318
|
-
function
|
319
|
-
return
|
318
|
+
function xt(t, e, s, i, n, r) {
|
319
|
+
return o(), a("svg", gt, e[0] || (e[0] = [
|
320
320
|
l("path", { d: "m3 16 4 4 4-4" }, null, -1),
|
321
321
|
l("path", { d: "M7 20V4" }, null, -1),
|
322
322
|
l("path", { d: "m21 8-4-4-4 4" }, null, -1),
|
323
323
|
l("path", { d: "M17 4v16" }, null, -1)
|
324
324
|
]));
|
325
325
|
}
|
326
|
-
const
|
326
|
+
const yt = /* @__PURE__ */ v(mt, [["render", xt]]), _t = {}, vt = {
|
327
327
|
xmlns: "http://www.w3.org/2000/svg",
|
328
328
|
width: "24",
|
329
329
|
height: "24",
|
@@ -335,8 +335,8 @@ const xt = /* @__PURE__ */ k(bt, [["render", gt]]), yt = {}, _t = {
|
|
335
335
|
"stroke-linejoin": "round",
|
336
336
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-rosette-discount-check"
|
337
337
|
};
|
338
|
-
function kt(t, e, s, i, n,
|
339
|
-
return
|
338
|
+
function kt(t, e, s, i, n, r) {
|
339
|
+
return o(), a("svg", vt, e[0] || (e[0] = [
|
340
340
|
l("path", {
|
341
341
|
stroke: "none",
|
342
342
|
d: "M0 0h24v24H0z",
|
@@ -346,8 +346,8 @@ function kt(t, e, s, i, n, o) {
|
|
346
346
|
l("path", { d: "M9 12l2 2l4 -4" }, null, -1)
|
347
347
|
]));
|
348
348
|
}
|
349
|
-
const
|
350
|
-
components: { IconExport:
|
349
|
+
const wt = /* @__PURE__ */ v(_t, [["render", kt]]), Ct = {
|
350
|
+
components: { IconExport: yt, IconChevronDown: Oe, IconSuccess: wt },
|
351
351
|
props: {
|
352
352
|
table: String,
|
353
353
|
columns: Array,
|
@@ -445,25 +445,25 @@ const vt = /* @__PURE__ */ k(yt, [["render", kt]]), wt = {
|
|
445
445
|
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";
|
446
446
|
}
|
447
447
|
}
|
448
|
-
},
|
448
|
+
}, $t = {
|
449
449
|
key: 0,
|
450
450
|
class: "flex flex-col items-center"
|
451
|
-
},
|
451
|
+
}, At = {
|
452
452
|
key: 1,
|
453
453
|
class: "p-4"
|
454
|
-
}, St = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" },
|
454
|
+
}, St = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, Tt = { class: "flex items-center" }, Vt = { class: "flex items-center gap-[10px] ml-auto" }, It = ["onClick"], Dt = {
|
455
455
|
key: 0,
|
456
456
|
class: "block h-[8px] w-[8px] rounded-full bg-blue-500"
|
457
|
-
},
|
457
|
+
}, Ft = { class: "mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]" }, jt = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, Mt = { class: "mt-2 space-y-2" }, qt = ["id", "onChange"], zt = ["for"], Lt = {
|
458
458
|
key: 0,
|
459
459
|
class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
|
460
|
-
},
|
460
|
+
}, Pt = {
|
461
461
|
key: 1,
|
462
462
|
class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
|
463
463
|
};
|
464
|
-
function
|
465
|
-
const u =
|
466
|
-
return
|
464
|
+
function Bt(t, e, s, i, n, r) {
|
465
|
+
const u = h("IconExport"), f = h("IconChevronDown"), p = h("IconSuccess"), m = h("VsCheckbox"), k = h("VsDialog");
|
466
|
+
return o(), a(S, null, [
|
467
467
|
l("button", {
|
468
468
|
onClick: e[0] || (e[0] = (c) => n.isOpen = !0),
|
469
469
|
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"
|
@@ -472,13 +472,13 @@ function Lt(t, e, s, i, n, o) {
|
|
472
472
|
height: "16",
|
473
473
|
width: "16"
|
474
474
|
}),
|
475
|
-
e[7] || (e[7] =
|
476
|
-
x(
|
475
|
+
e[7] || (e[7] = j(" Експорт ")),
|
476
|
+
x(f, {
|
477
477
|
height: "12",
|
478
478
|
width: "16"
|
479
479
|
})
|
480
480
|
]),
|
481
|
-
x(
|
481
|
+
x(k, {
|
482
482
|
visible: n.isOpen,
|
483
483
|
"onUpdate:visible": e[6] || (e[6] = (c) => n.isOpen = c),
|
484
484
|
title: "Експорт таблиці",
|
@@ -486,7 +486,7 @@ function Lt(t, e, s, i, n, o) {
|
|
486
486
|
closeClickBack: !0
|
487
487
|
}, {
|
488
488
|
footer: $(() => [
|
489
|
-
n.isSuccessTemplate ? (
|
489
|
+
n.isSuccessTemplate ? (o(), a("div", Lt, [
|
490
490
|
l("button", {
|
491
491
|
type: "button",
|
492
492
|
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",
|
@@ -497,7 +497,7 @@ function Lt(t, e, s, i, n, o) {
|
|
497
497
|
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",
|
498
498
|
onClick: e[3] || (e[3] = (c) => n.isSuccessTemplate = !1)
|
499
499
|
}, " Вигрузити ще ")
|
500
|
-
])) : (
|
500
|
+
])) : (o(), a("div", Pt, [
|
501
501
|
l("button", {
|
502
502
|
type: "button",
|
503
503
|
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",
|
@@ -506,39 +506,39 @@ function Lt(t, e, s, i, n, o) {
|
|
506
506
|
l("button", {
|
507
507
|
type: "button",
|
508
508
|
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",
|
509
|
-
onClick: e[5] || (e[5] = (...c) =>
|
509
|
+
onClick: e[5] || (e[5] = (...c) => r.exportTable && r.exportTable(...c))
|
510
510
|
}, " Завантажити таблицю ")
|
511
511
|
]))
|
512
512
|
]),
|
513
513
|
default: $(() => [
|
514
|
-
n.isSuccessTemplate ? (
|
515
|
-
x(
|
514
|
+
n.isSuccessTemplate ? (o(), a("div", $t, [
|
515
|
+
x(p, {
|
516
516
|
height: "100",
|
517
517
|
width: "100",
|
518
518
|
class: "text-green-200 mb-[20px]"
|
519
519
|
}),
|
520
520
|
e[8] || (e[8] = l("h2", null, "Звіт сформовано і збережено", -1))
|
521
|
-
])) : (
|
521
|
+
])) : (o(), a("div", At, [
|
522
522
|
l("div", St, [
|
523
|
-
l("div",
|
523
|
+
l("div", Tt, [
|
524
524
|
e[9] || (e[9] = l("h2", { class: "text-sm text-gray-500" }, " Виберіть стовпці таблиці для експорту: ", -1)),
|
525
|
-
l("div",
|
526
|
-
(
|
525
|
+
l("div", Vt, [
|
526
|
+
(o(!0), a(S, null, D(n.actions, (c) => (o(), a("button", {
|
527
527
|
key: c == null ? void 0 : c.name,
|
528
528
|
onClick: c == null ? void 0 : c.function,
|
529
529
|
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"
|
530
530
|
}, [
|
531
531
|
l("span", {
|
532
|
-
class:
|
532
|
+
class: I(["h-[14px] w-[14px] border rounded-full flex items-center justify-center", { "border-blue-500": (c == null ? void 0 : c.name) === n.activeAction }])
|
533
533
|
}, [
|
534
|
-
(c == null ? void 0 : c.name) === n.activeAction ? (
|
534
|
+
(c == null ? void 0 : c.name) === n.activeAction ? (o(), a("span", Dt)) : w("", !0)
|
535
535
|
], 2),
|
536
|
-
|
537
|
-
], 8,
|
536
|
+
j(" " + T(c == null ? void 0 : c.label), 1)
|
537
|
+
], 8, It))), 128))
|
538
538
|
])
|
539
539
|
]),
|
540
|
-
l("div",
|
541
|
-
(
|
540
|
+
l("div", Ft, [
|
541
|
+
(o(!0), a(S, null, D(s.columns, (c, g) => (o(), a("div", {
|
542
542
|
class: "flex items-center",
|
543
543
|
key: g,
|
544
544
|
style: { width: "calc((100% - 10px) / 2)" }
|
@@ -553,10 +553,10 @@ function Lt(t, e, s, i, n, o) {
|
|
553
553
|
]))), 128))
|
554
554
|
])
|
555
555
|
]),
|
556
|
-
l("div",
|
556
|
+
l("div", jt, [
|
557
557
|
e[10] || (e[10] = l("h2", { class: "text-sm text-gray-500" }, "Виберіть формат таблиці:", -1)),
|
558
558
|
l("div", Mt, [
|
559
|
-
(
|
559
|
+
(o(!0), a(S, null, D(n.tableFormats, (c, g) => (o(), a("div", {
|
560
560
|
class: "flex items-center",
|
561
561
|
key: g
|
562
562
|
}, [
|
@@ -565,12 +565,12 @@ function Lt(t, e, s, i, n, o) {
|
|
565
565
|
name: "hs-pro-duecmfm",
|
566
566
|
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",
|
567
567
|
id: c,
|
568
|
-
onChange: (d) =>
|
569
|
-
}, null, 40,
|
568
|
+
onChange: (d) => r.selectFormat(c)
|
569
|
+
}, null, 40, qt),
|
570
570
|
l("label", {
|
571
571
|
for: c,
|
572
572
|
class: "text-sm text-gray-800 ms-3 dark:text-neutral-400"
|
573
|
-
}, " Формат " +
|
573
|
+
}, " Формат " + T(c), 9, zt)
|
574
574
|
]))), 128))
|
575
575
|
])
|
576
576
|
])
|
@@ -580,7 +580,7 @@ function Lt(t, e, s, i, n, o) {
|
|
580
580
|
}, 8, ["visible"])
|
581
581
|
], 64);
|
582
582
|
}
|
583
|
-
const
|
583
|
+
const Ut = /* @__PURE__ */ v(Ct, [["render", Bt]]), Ot = {}, Et = {
|
584
584
|
xmlns: "http://www.w3.org/2000/svg",
|
585
585
|
viewBox: "0 0 24 24",
|
586
586
|
fill: "none",
|
@@ -590,12 +590,12 @@ const Pt = /* @__PURE__ */ k(wt, [["render", Lt]]), Ut = {}, Ot = {
|
|
590
590
|
"stroke-linejoin": "round",
|
591
591
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-columns"
|
592
592
|
};
|
593
|
-
function
|
594
|
-
return
|
595
|
-
|
593
|
+
function Nt(t, e, s, i, n, r) {
|
594
|
+
return o(), a("svg", Et, e[0] || (e[0] = [
|
595
|
+
L('<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)
|
596
596
|
]));
|
597
597
|
}
|
598
|
-
const
|
598
|
+
const Ht = /* @__PURE__ */ v(Ot, [["render", Nt]]), Rt = {
|
599
599
|
props: { column: Object },
|
600
600
|
emits: ["update-column"],
|
601
601
|
data() {
|
@@ -612,21 +612,21 @@ const Nt = /* @__PURE__ */ k(Ut, [["render", Et]]), Ht = {
|
|
612
612
|
var t;
|
613
613
|
((t = this.column) == null ? void 0 : t.hidden) !== !0 && (this.value = !0);
|
614
614
|
}
|
615
|
-
},
|
616
|
-
function
|
617
|
-
var u,
|
618
|
-
return
|
619
|
-
|
620
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
615
|
+
}, Wt = { class: "flex w-full gap-[8px] items-centr" };
|
616
|
+
function Zt(t, e, s, i, n, r) {
|
617
|
+
var u, f;
|
618
|
+
return o(), a("label", Wt, [
|
619
|
+
P(l("input", {
|
620
|
+
"onUpdate:modelValue": e[0] || (e[0] = (p) => n.value = p),
|
621
621
|
type: "checkbox"
|
622
622
|
}, null, 512), [
|
623
|
-
[
|
623
|
+
[Pe, n.value]
|
624
624
|
]),
|
625
|
-
|
625
|
+
j(" " + T(((u = s.column) == null ? void 0 : u.ua) || ((f = s.column) == null ? void 0 : f.title)), 1)
|
626
626
|
]);
|
627
627
|
}
|
628
|
-
const Gt = /* @__PURE__ */
|
629
|
-
components: { IconColumns:
|
628
|
+
const Gt = /* @__PURE__ */ v(Rt, [["render", Zt]]), Jt = {
|
629
|
+
components: { IconColumns: Ht, AdminTableColumnsHiddenItem: Gt },
|
630
630
|
emits: ["update-columns"],
|
631
631
|
props: { columns: Array },
|
632
632
|
methods: {
|
@@ -635,15 +635,15 @@ const Gt = /* @__PURE__ */ k(Ht, [["render", Wt]]), Zt = {
|
|
635
635
|
s[e] = t, this.$emit("update-columns", [...s]);
|
636
636
|
}
|
637
637
|
}
|
638
|
-
},
|
639
|
-
function
|
640
|
-
const u =
|
641
|
-
return
|
638
|
+
}, Kt = { 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" }, Qt = { class: "py-[10px] px-[10px] w-[260px]" }, Xt = { 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" };
|
639
|
+
function Yt(t, e, s, i, n, r) {
|
640
|
+
const u = h("IconColumns"), f = h("AdminTableColumnsHiddenItem"), p = h("VsPopover");
|
641
|
+
return o(), _(p, {
|
642
642
|
trigger: "click",
|
643
643
|
placement: "bottom"
|
644
644
|
}, {
|
645
645
|
reference: $(() => [
|
646
|
-
l("button",
|
646
|
+
l("button", Kt, [
|
647
647
|
x(u, {
|
648
648
|
height: "20",
|
649
649
|
width: "16"
|
@@ -651,13 +651,13 @@ function Xt(t, e, s, i, n, o) {
|
|
651
651
|
])
|
652
652
|
]),
|
653
653
|
default: $(() => [
|
654
|
-
l("div",
|
654
|
+
l("div", Qt, [
|
655
655
|
e[0] || (e[0] = l("h2", { class: "text-sm mb-[8px]" }, "Оберіть колонки, щоб приховати", -1)),
|
656
|
-
l("ul",
|
657
|
-
(
|
658
|
-
x(
|
656
|
+
l("ul", Xt, [
|
657
|
+
(o(!0), a(S, null, D(s.columns, (m, k) => (o(), a("li", { key: k }, [
|
658
|
+
x(f, {
|
659
659
|
column: m,
|
660
|
-
onUpdateColumn:
|
660
|
+
onUpdateColumn: r.updateColumn
|
661
661
|
}, null, 8, ["column", "onUpdateColumn"])
|
662
662
|
]))), 128))
|
663
663
|
])
|
@@ -666,14 +666,14 @@ function Xt(t, e, s, i, n, o) {
|
|
666
666
|
_: 1
|
667
667
|
});
|
668
668
|
}
|
669
|
-
const
|
669
|
+
const en = /* @__PURE__ */ v(Jt, [["render", Yt]]), tn = {}, nn = {
|
670
670
|
class: "hidden sm:block shrink-0 size-3",
|
671
671
|
xmlns: "http://www.w3.org/2000/svg",
|
672
672
|
fill: "currentColor",
|
673
673
|
viewBox: "0 0 16 16"
|
674
674
|
};
|
675
|
-
function
|
676
|
-
return
|
675
|
+
function sn(t, e, s, i, n, r) {
|
676
|
+
return o(), a("svg", nn, e[0] || (e[0] = [
|
677
677
|
l("path", {
|
678
678
|
"fill-rule": "evenodd",
|
679
679
|
"clip-rule": "evenodd",
|
@@ -681,22 +681,16 @@ function nn(t, e, s, i, n, o) {
|
|
681
681
|
}, null, -1)
|
682
682
|
]));
|
683
683
|
}
|
684
|
-
const we = /* @__PURE__ */
|
685
|
-
function rn(t, e, s, i, n, o) {
|
686
|
-
return r(), a("div", ln, e[0] || (e[0] = [
|
687
|
-
B('<div><div class="p-5 min-h-[500px] flex flex-col justify-center items-center text-center"><svg class="w-48 mx-auto" viewBox="0 0 178 90" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="27" y="50.5" width="124" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="27" y="50.5" width="124" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-50 dark:stroke-neutral-700/10"></rect><rect x="34.5" y="58" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="61" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="73" width="77" height="6" rx="3" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-100 dark:stroke-neutral-700/30"></rect><rect x="27" y="36" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><rect x="59" y="39" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><rect x="59" y="51" width="92" height="6" rx="3" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><g filter="url(#filter1)"><rect x="12" y="6" width="154" height="40" rx="8" fill="currentColor" class="fill-white dark:fill-neutral-800" shape-rendering="crispEdges"></rect><rect x="12.5" y="6.5" width="153" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-100 dark:stroke-neutral-700/60" shape-rendering="crispEdges"></rect><rect x="20" y="14" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect><rect x="52" y="17" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect><rect x="52" y="29" width="106" height="6" rx="3" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect></g><defs><filter id="filter1" x="0" y="0" width="178" height="64" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="6"></feOffset><feGaussianBlur stdDeviation="6"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.03 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1187_14810"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1187_14810" result="shape"></feBlend></filter></defs></svg><div class="max-w-sm mx-auto mt-6"><p class="font-medium text-gray-800 dark:text-neutral-200"> Дані для відображення відсутні </p><p class="mt-2 text-sm text-gray-500 dark:text-neutral-500"> Змініть параметри пошуку або спробуйте пізніше </p></div></div></div>', 1)
|
688
|
-
]));
|
689
|
-
}
|
690
|
-
const on = /* @__PURE__ */ k(sn, [["render", rn]]), an = {
|
684
|
+
const we = /* @__PURE__ */ v(tn, [["render", sn]]), ln = {
|
691
685
|
props: { row: Object, column: Object, table: String }
|
692
686
|
};
|
693
|
-
function
|
694
|
-
var u,
|
695
|
-
return
|
696
|
-
((u = s.column) == null ? void 0 : u.format) === "custom" ? (
|
687
|
+
function on(t, e, s, i, n, r) {
|
688
|
+
var u, f, p, m, k, c, g, d;
|
689
|
+
return o(), _(z(
|
690
|
+
((u = s.column) == null ? void 0 : u.format) === "custom" ? (f = s.column) == null ? void 0 : f.component : `table-format-${((m = (p = s.column) == null ? void 0 : p.format) == null ? void 0 : m.toLowerCase()) || "text"}`
|
697
691
|
), {
|
698
692
|
onUpdateTable: e[0] || (e[0] = (C) => t.$emit("update-table")),
|
699
|
-
name: (
|
693
|
+
name: (k = s.column) == null ? void 0 : k.name,
|
700
694
|
data: s.row,
|
701
695
|
value: (g = s.row) == null ? void 0 : g[(c = s.column) == null ? void 0 : c.name],
|
702
696
|
table: s.table,
|
@@ -704,7 +698,7 @@ function cn(t, e, s, i, n, o) {
|
|
704
698
|
edit: (d = s.column) == null ? void 0 : d.edit
|
705
699
|
}, null, 40, ["name", "data", "value", "table", "column", "edit"]);
|
706
700
|
}
|
707
|
-
const Ce = /* @__PURE__ */
|
701
|
+
const Ce = /* @__PURE__ */ v(ln, [["render", on]]), rn = {}, an = {
|
708
702
|
xmlns: "http://www.w3.org/2000/svg",
|
709
703
|
viewBox: "0 0 24 24",
|
710
704
|
fill: "none",
|
@@ -714,8 +708,8 @@ const Ce = /* @__PURE__ */ k(an, [["render", cn]]), un = {}, dn = {
|
|
714
708
|
"stroke-linejoin": "round",
|
715
709
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-minus"
|
716
710
|
};
|
717
|
-
function
|
718
|
-
return
|
711
|
+
function cn(t, e, s, i, n, r) {
|
712
|
+
return o(), a("svg", an, e[0] || (e[0] = [
|
719
713
|
l("path", {
|
720
714
|
stroke: "none",
|
721
715
|
d: "M0 0h24v24H0z",
|
@@ -724,8 +718,8 @@ function hn(t, e, s, i, n, o) {
|
|
724
718
|
l("path", { d: "M5 12l14 0" }, null, -1)
|
725
719
|
]));
|
726
720
|
}
|
727
|
-
const
|
728
|
-
components: { IconPlus: we, IconMinus:
|
721
|
+
const un = /* @__PURE__ */ v(rn, [["render", cn]]), dn = {
|
722
|
+
components: { IconPlus: we, IconMinus: un },
|
729
723
|
props: {
|
730
724
|
title: String,
|
731
725
|
defaultValue: { type: Boolean, default: () => !1 }
|
@@ -733,35 +727,35 @@ const pn = /* @__PURE__ */ k(un, [["render", hn]]), fn = {
|
|
733
727
|
data() {
|
734
728
|
return { expanded: this.defaultValue };
|
735
729
|
}
|
736
|
-
}, bn = { class: "hs-accordion" },
|
737
|
-
function
|
738
|
-
const u =
|
739
|
-
return
|
730
|
+
}, bn = { class: "hs-accordion" }, hn = { class: "py-0.5 flex items-center gap-x-0.5 w-full" }, pn = { class: "text-sm font-medium" }, fn = { class: "relative inline-block w-full duration-150 cursor-pointer before:block before:absolute b" };
|
731
|
+
function mn(t, e, s, i, n, r) {
|
732
|
+
const u = h("IconPlus"), f = h("IconMinus");
|
733
|
+
return o(), a("div", null, [
|
740
734
|
l("div", null, [
|
741
735
|
l("div", bn, [
|
742
|
-
l("div",
|
736
|
+
l("div", hn, [
|
743
737
|
l("div", {
|
744
|
-
onClick: e[0] || (e[0] = (
|
738
|
+
onClick: e[0] || (e[0] = (p) => n.expanded = !n.expanded),
|
745
739
|
class: "rounded-md cursor-pointer grow"
|
746
740
|
}, [
|
747
|
-
l("span",
|
741
|
+
l("span", pn, T(s.title), 1)
|
748
742
|
]),
|
749
743
|
l("button", {
|
750
744
|
class: "flex items-center justify-center rounded-md size-6 hover:bg-gray-100",
|
751
|
-
onClick: e[1] || (e[1] = (
|
745
|
+
onClick: e[1] || (e[1] = (p) => n.expanded = !n.expanded)
|
752
746
|
}, [
|
753
|
-
n.expanded ? (
|
747
|
+
n.expanded ? (o(), _(f, {
|
754
748
|
key: 1,
|
755
749
|
width: "14"
|
756
|
-
})) : (
|
750
|
+
})) : (o(), _(u, { key: 0 }))
|
757
751
|
])
|
758
752
|
]),
|
759
|
-
x(
|
753
|
+
x(B, { name: "fade" }, {
|
760
754
|
default: $(() => [
|
761
|
-
|
762
|
-
|
755
|
+
P(l("div", fn, [
|
756
|
+
Be(t.$slots, "default", {}, void 0, !0)
|
763
757
|
], 512), [
|
764
|
-
[
|
758
|
+
[ke, n.expanded]
|
765
759
|
])
|
766
760
|
]),
|
767
761
|
_: 3
|
@@ -770,45 +764,45 @@ function yn(t, e, s, i, n, o) {
|
|
770
764
|
])
|
771
765
|
]);
|
772
766
|
}
|
773
|
-
const
|
767
|
+
const gn = /* @__PURE__ */ v(dn, [["render", mn], ["__scopeId", "data-v-c6318482"]]), xn = {
|
774
768
|
components: {
|
775
769
|
AdminComponentIs: Ce,
|
776
|
-
AdminTree:
|
777
|
-
VsNoData:
|
770
|
+
AdminTree: gn,
|
771
|
+
VsNoData: Ie,
|
778
772
|
VsWidgetComments: De,
|
779
773
|
VsWidgetMap: Fe,
|
780
|
-
VsWidgetFileList:
|
774
|
+
VsWidgetFileList: je
|
781
775
|
},
|
782
776
|
props: { table: String, columns: Array, row: Object }
|
783
|
-
},
|
777
|
+
}, yn = {
|
784
778
|
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",
|
785
779
|
style: { height: "calc(100vh - 310px)" }
|
786
|
-
},
|
780
|
+
}, _n = {
|
787
781
|
class: "border-l",
|
788
782
|
style: { height: "calc(100vh - 360px)" }
|
789
|
-
},
|
790
|
-
function
|
783
|
+
}, vn = { class: "flex items-center justify-between py-1 gap-x-4" }, kn = { class: "col-span-1" }, wn = { class: "inline-flex items-center gap-x-2 text-[13px] text-gray-500 dark:text-neutral-500" }, Cn = { class: "col-span-2" }, $n = { class: "font-medium text-[13px] text-gray-800 dark:text-neutral-200" }, An = { class: "table-info-card" }, Sn = { class: "table-info-card" };
|
784
|
+
function Tn(t, e, s, i, n, r) {
|
791
785
|
var g, d, C;
|
792
|
-
const u =
|
793
|
-
return
|
786
|
+
const u = h("AdminComponentIs"), f = h("AdminTree"), p = h("VsWidgetMap"), m = h("VsNoData"), k = h("VsWidgetComments"), c = h("VsWidgetFileList");
|
787
|
+
return o(), a("div", yn, [
|
794
788
|
e[0] || (e[0] = l("div", { class: "p-[10px] pl-[18px] pb-[18px] border-b" }, [
|
795
789
|
l("h2", { class: "text-sm font-medium" }, "Інформація про об'єкт")
|
796
790
|
], -1)),
|
797
|
-
l("div",
|
798
|
-
(d = (g = t.$route) == null ? void 0 : g.query) != null && d.card ? (
|
799
|
-
s.row ? (
|
791
|
+
l("div", _n, [
|
792
|
+
(d = (g = t.$route) == null ? void 0 : g.query) != null && d.card ? (o(), a(S, { key: 0 }, [
|
793
|
+
s.row ? (o(), _(f, {
|
800
794
|
key: 0,
|
801
795
|
defaultValue: !0,
|
802
796
|
title: "Основна інформація",
|
803
797
|
class: "border-b p-[10px] py-[16px]"
|
804
798
|
}, {
|
805
799
|
default: $(() => [
|
806
|
-
(
|
807
|
-
l("dt",
|
808
|
-
l("p",
|
800
|
+
(o(!0), a(S, null, D(s.columns, (y) => (o(), a("dl", vn, [
|
801
|
+
l("dt", kn, [
|
802
|
+
l("p", wn, T((y == null ? void 0 : y.ua) || (y == null ? void 0 : y.title)) + ": ", 1)
|
809
803
|
]),
|
810
|
-
l("dd",
|
811
|
-
l("p",
|
804
|
+
l("dd", Cn, [
|
805
|
+
l("p", $n, [
|
812
806
|
x(u, {
|
813
807
|
row: s.row,
|
814
808
|
column: y,
|
@@ -820,19 +814,19 @@ function Dn(t, e, s, i, n, o) {
|
|
820
814
|
]),
|
821
815
|
_: 1
|
822
816
|
})) : w("", !0),
|
823
|
-
(C = s.row) != null && C.geom ? (
|
817
|
+
(C = s.row) != null && C.geom ? (o(), _(f, {
|
824
818
|
key: 1,
|
825
819
|
title: "Карта",
|
826
820
|
class: "border-b p-[10px] py-[16px]"
|
827
821
|
}, {
|
828
822
|
default: $(() => {
|
829
|
-
var y,
|
823
|
+
var y, A;
|
830
824
|
return [
|
831
|
-
(y = s.row) != null && y.geom ? (
|
825
|
+
(y = s.row) != null && y.geom ? (o(), _(p, {
|
832
826
|
key: 0,
|
833
|
-
geometry: (
|
827
|
+
geometry: (A = s.row) == null ? void 0 : A.geom,
|
834
828
|
zoom: 14
|
835
|
-
}, null, 8, ["geometry"])) : (
|
829
|
+
}, null, 8, ["geometry"])) : (o(), _(m, {
|
836
830
|
key: 1,
|
837
831
|
title: "У об'єкта відсутня геометрія",
|
838
832
|
text: "",
|
@@ -842,15 +836,15 @@ function Dn(t, e, s, i, n, o) {
|
|
842
836
|
}),
|
843
837
|
_: 1
|
844
838
|
})) : w("", !0),
|
845
|
-
x(
|
839
|
+
x(f, {
|
846
840
|
title: "Коментарі",
|
847
841
|
class: "border-b p-[10px] py-[16px]"
|
848
842
|
}, {
|
849
843
|
default: $(() => {
|
850
844
|
var y;
|
851
845
|
return [
|
852
|
-
l("div",
|
853
|
-
x(
|
846
|
+
l("div", An, [
|
847
|
+
x(k, {
|
854
848
|
id: (y = s.row) == null ? void 0 : y.id
|
855
849
|
}, null, 8, ["id"])
|
856
850
|
])
|
@@ -858,14 +852,14 @@ function Dn(t, e, s, i, n, o) {
|
|
858
852
|
}),
|
859
853
|
_: 1
|
860
854
|
}),
|
861
|
-
x(
|
855
|
+
x(f, {
|
862
856
|
title: "Файли",
|
863
857
|
class: "border-b p-[10px] py-[16px]"
|
864
858
|
}, {
|
865
859
|
default: $(() => {
|
866
860
|
var y;
|
867
861
|
return [
|
868
|
-
l("div",
|
862
|
+
l("div", Sn, [
|
869
863
|
x(c, {
|
870
864
|
id: (y = s.row) == null ? void 0 : y.id
|
871
865
|
}, null, 8, ["id"])
|
@@ -874,14 +868,14 @@ function Dn(t, e, s, i, n, o) {
|
|
874
868
|
}),
|
875
869
|
_: 1
|
876
870
|
})
|
877
|
-
], 64)) : (
|
871
|
+
], 64)) : (o(), _(m, {
|
878
872
|
key: 1,
|
879
873
|
text: "Оберіть один з об'єктів в таблиці для відображення інформаціі про нього"
|
880
874
|
}))
|
881
875
|
])
|
882
876
|
]);
|
883
877
|
}
|
884
|
-
const
|
878
|
+
const Vn = /* @__PURE__ */ v(xn, [["render", Tn]]), In = {}, Dn = {
|
885
879
|
class: "hidden xl:block shrink-0 size-4",
|
886
880
|
xmlns: "http://www.w3.org/2000/svg",
|
887
881
|
viewBox: "0 0 24 24",
|
@@ -891,8 +885,8 @@ const Fn = /* @__PURE__ */ k(kn, [["render", Dn]]), Mn = {}, jn = {
|
|
891
885
|
"stroke-linecap": "round",
|
892
886
|
"stroke-linejoin": "round"
|
893
887
|
};
|
894
|
-
function
|
895
|
-
return
|
888
|
+
function Fn(t, e, s, i, n, r) {
|
889
|
+
return o(), a("svg", Dn, e[0] || (e[0] = [
|
896
890
|
l("rect", {
|
897
891
|
width: "18",
|
898
892
|
height: "18",
|
@@ -904,7 +898,7 @@ function qn(t, e, s, i, n, o) {
|
|
904
898
|
l("path", { d: "m8 9 3 3-3 3" }, null, -1)
|
905
899
|
]));
|
906
900
|
}
|
907
|
-
const
|
901
|
+
const jn = /* @__PURE__ */ v(In, [["render", Fn]]), Mn = {}, qn = {
|
908
902
|
class: "h21yx vs0hq",
|
909
903
|
xmlns: "http://www.w3.org/2000/svg",
|
910
904
|
width: "24",
|
@@ -916,15 +910,15 @@ const Bn = /* @__PURE__ */ k(Mn, [["render", qn]]), zn = {}, Ln = {
|
|
916
910
|
"stroke-linecap": "round",
|
917
911
|
"stroke-linejoin": "round"
|
918
912
|
};
|
919
|
-
function
|
920
|
-
return
|
921
|
-
|
913
|
+
function zn(t, e, s, i, n, r) {
|
914
|
+
return o(), a("svg", qn, e[0] || (e[0] = [
|
915
|
+
L('<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)
|
922
916
|
]));
|
923
917
|
}
|
924
|
-
const
|
918
|
+
const Ln = /* @__PURE__ */ v(Mn, [["render", zn]]), Pn = {
|
925
919
|
emits: ["filterChange"],
|
926
920
|
props: { scheme: { type: Object }, onFilters: { type: Number } },
|
927
|
-
components: { IconFilter:
|
921
|
+
components: { IconFilter: Ln },
|
928
922
|
data() {
|
929
923
|
return {
|
930
924
|
isFilters: !1
|
@@ -935,35 +929,35 @@ const Un = /* @__PURE__ */ k(zn, [["render", Pn]]), On = {
|
|
935
929
|
this.isFilters && t.classList.contains("filter-container") && (this.isFilters = !1);
|
936
930
|
}
|
937
931
|
}
|
938
|
-
},
|
932
|
+
}, Bn = {
|
939
933
|
key: 0,
|
940
934
|
class: "font-medium text-[10px] py-0.5 px-[5px] bg-gray-800 text-white leading-3 rounded-full dark:bg-neutral-500"
|
941
|
-
},
|
942
|
-
function
|
943
|
-
const u =
|
944
|
-
return
|
935
|
+
}, Un = { 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" };
|
936
|
+
function On(t, e, s, i, n, r) {
|
937
|
+
const u = h("IconFilter"), f = h("VsFilter");
|
938
|
+
return o(), a(S, null, [
|
945
939
|
l("button", {
|
946
|
-
onClick: e[0] || (e[0] = (
|
940
|
+
onClick: e[0] || (e[0] = (p) => n.isFilters = !n.isFilters),
|
947
941
|
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"
|
948
942
|
}, [
|
949
943
|
x(u, {
|
950
944
|
height: "16",
|
951
945
|
width: "16"
|
952
946
|
}),
|
953
|
-
e[4] || (e[4] =
|
954
|
-
s.onFilters ? (
|
947
|
+
e[4] || (e[4] = j(" Фільтри ")),
|
948
|
+
s.onFilters ? (o(), a("span", Bn, T(s.onFilters), 1)) : w("", !0)
|
955
949
|
]),
|
956
|
-
x(
|
950
|
+
x(B, { name: "fade" }, {
|
957
951
|
default: $(() => {
|
958
|
-
var
|
952
|
+
var p;
|
959
953
|
return [
|
960
|
-
|
961
|
-
onClick: e[3] || (e[3] = (...m) =>
|
954
|
+
P(l("div", {
|
955
|
+
onClick: e[3] || (e[3] = (...m) => r.closeFilter && r.closeFilter(...m)),
|
962
956
|
style: { height: "100vh" },
|
963
957
|
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)]"
|
964
958
|
}, [
|
965
|
-
l("div",
|
966
|
-
(
|
959
|
+
l("div", Un, [
|
960
|
+
(p = s.scheme) != null && p.length ? (o(), _(f, {
|
967
961
|
key: 0,
|
968
962
|
ref: "filter",
|
969
963
|
scheme: s.scheme,
|
@@ -977,7 +971,7 @@ function Hn(t, e, s, i, n, o) {
|
|
977
971
|
}, null, 8, ["scheme"])) : w("", !0)
|
978
972
|
])
|
979
973
|
], 512), [
|
980
|
-
[
|
974
|
+
[ke, n.isFilters]
|
981
975
|
])
|
982
976
|
];
|
983
977
|
}),
|
@@ -985,25 +979,25 @@ function Hn(t, e, s, i, n, o) {
|
|
985
979
|
})
|
986
980
|
], 64);
|
987
981
|
}
|
988
|
-
const
|
982
|
+
const En = /* @__PURE__ */ v(Pn, [["render", On]]), Nn = {
|
989
983
|
props: { tabsList: { type: Array, default: () => [] }, filterState: String }
|
990
|
-
},
|
984
|
+
}, Hn = {
|
991
985
|
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",
|
992
986
|
"aria-label": "Tabs",
|
993
987
|
role: "tablist",
|
994
988
|
"aria-orientation": "horizontal"
|
995
|
-
},
|
996
|
-
function
|
997
|
-
return
|
998
|
-
(
|
999
|
-
onClick: (
|
1000
|
-
class:
|
989
|
+
}, Rn = ["onClick"];
|
990
|
+
function Wn(t, e, s, i, n, r) {
|
991
|
+
return o(), a("nav", Hn, [
|
992
|
+
(o(!0), a(S, null, D(s.tabsList, (u) => (o(), a("button", {
|
993
|
+
onClick: (f) => t.$emit("update:filterState", u == null ? void 0 : u.name),
|
994
|
+
class: I(["hs-tab-active:after:bg-gray-800 hs-tab-active:text-gray-800 px-2.5 py-1.5 mb-2 relative inline-flex justify-center items-center gap-x-2 hover:bg-gray-100 text-gray-500 hover:text-gray-800 text-sm rounded-lg disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-100 after:absolute after:-bottom-2 after:inset-x-0 after:z-10 after:h-0.5 after:pointer-events-none dark:hs-tab-active:text-neutral-200 dark:hs-tab-active:after:bg-neutral-400 dark:text-neutral-500 dark:hover:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700 active", {
|
1001
995
|
" 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
|
1002
996
|
}])
|
1003
|
-
},
|
997
|
+
}, T(u == null ? void 0 : u.label), 11, Rn))), 256))
|
1004
998
|
]);
|
1005
999
|
}
|
1006
|
-
const
|
1000
|
+
const Zn = /* @__PURE__ */ v(Nn, [["render", Wn]]), Gn = {}, Jn = {
|
1007
1001
|
xmlns: "http://www.w3.org/2000/svg",
|
1008
1002
|
viewBox: "0 0 24 24",
|
1009
1003
|
fill: "none",
|
@@ -1013,8 +1007,8 @@ const Kn = /* @__PURE__ */ k(Wn, [["render", Jn]]), Qn = {}, Xn = {
|
|
1013
1007
|
"stroke-linejoin": "round",
|
1014
1008
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-filter"
|
1015
1009
|
};
|
1016
|
-
function
|
1017
|
-
return
|
1010
|
+
function Kn(t, e, s, i, n, r) {
|
1011
|
+
return o(), a("svg", Jn, e[0] || (e[0] = [
|
1018
1012
|
l("path", {
|
1019
1013
|
stroke: "none",
|
1020
1014
|
d: "M0 0h24v24H0z",
|
@@ -1023,18 +1017,18 @@ function Yn(t, e, s, i, n, o) {
|
|
1023
1017
|
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)
|
1024
1018
|
]));
|
1025
1019
|
}
|
1026
|
-
const
|
1027
|
-
components: { IconFilter2:
|
1020
|
+
const Qn = /* @__PURE__ */ v(Gn, [["render", Kn]]), Xn = {
|
1021
|
+
components: { IconFilter2: Qn },
|
1028
1022
|
props: { filterCustom: String, customList: Array }
|
1029
|
-
},
|
1030
|
-
function
|
1031
|
-
const u =
|
1032
|
-
return
|
1023
|
+
}, Yn = { 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" }, es = { class: "flex flex-col gap-[4px]" }, ts = ["onClick"];
|
1024
|
+
function ns(t, e, s, i, n, r) {
|
1025
|
+
const u = h("IconFilter2"), f = h("VsPopover");
|
1026
|
+
return o(), _(f, {
|
1033
1027
|
ref: "popover",
|
1034
1028
|
placement: "bottom"
|
1035
1029
|
}, {
|
1036
1030
|
reference: $(() => [
|
1037
|
-
l("button",
|
1031
|
+
l("button", Yn, [
|
1038
1032
|
x(u, {
|
1039
1033
|
height: "20",
|
1040
1034
|
width: "20"
|
@@ -1042,18 +1036,18 @@ function rs(t, e, s, i, n, o) {
|
|
1042
1036
|
])
|
1043
1037
|
]),
|
1044
1038
|
default: $(() => [
|
1045
|
-
l("div",
|
1046
|
-
(
|
1047
|
-
onClick: (
|
1039
|
+
l("div", es, [
|
1040
|
+
(o(!0), a(S, null, D(s.customList, (p, m) => (o(), a("button", {
|
1041
|
+
onClick: (k) => {
|
1048
1042
|
var c;
|
1049
|
-
t.$emit("update:filterCustom",
|
1043
|
+
t.$emit("update:filterCustom", p == null ? void 0 : p.name), (c = t.$refs) == null || c.popover.togglePopover();
|
1050
1044
|
},
|
1051
1045
|
key: m,
|
1052
|
-
class:
|
1053
|
-
},
|
1046
|
+
class: I(["p-[8px] block rounded-lg w-[140px] text-start hover:bg-gray-100 !duration-300", { "bg-gray-100": s.filterCustom === (p == null ? void 0 : p.name) }])
|
1047
|
+
}, T(p == null ? void 0 : p.label), 11, ts))), 128)),
|
1054
1048
|
l("button", {
|
1055
1049
|
class: "p-[8px] block rounded-lg w-[140px] text-start hover:bg-gray-100 !duration-300",
|
1056
|
-
onClick: e[0] || (e[0] = (
|
1050
|
+
onClick: e[0] || (e[0] = (p) => {
|
1057
1051
|
var m;
|
1058
1052
|
t.$emit("update:filterCustom", void 0), (m = t.$refs) == null || m.popover.togglePopover();
|
1059
1053
|
})
|
@@ -1063,61 +1057,61 @@ function rs(t, e, s, i, n, o) {
|
|
1063
1057
|
_: 1
|
1064
1058
|
}, 512);
|
1065
1059
|
}
|
1066
|
-
const
|
1060
|
+
const ss = /* @__PURE__ */ v(Xn, [["render", ns]]), ls = { class: "flex items-center gap-x-2" }, os = {
|
1067
1061
|
__name: "admin-table-custom-buttons",
|
1068
1062
|
props: {
|
1069
1063
|
slots: Object
|
1070
1064
|
},
|
1071
1065
|
setup(t) {
|
1072
|
-
var
|
1073
|
-
const { asyncTemplateSlot: e } = (c = (
|
1074
|
-
var g, d, C, y,
|
1066
|
+
var f, p, m, k, c;
|
1067
|
+
const { asyncTemplateSlot: e } = (c = (k = (m = (p = (f = Ue()) == null ? void 0 : f.appContext) == null ? void 0 : p.app) == null ? void 0 : m.config) == null ? void 0 : k.globalProperties) == null ? void 0 : c.utils, s = _e(""), i = _e(""), n = t, r = () => {
|
1068
|
+
var g, d, C, y, A;
|
1075
1069
|
if ((g = n.slots) != null && g.panelLeft || (i.value = "div"), (C = (d = n.slots) == null ? void 0 : d.panelLeft) != null && C.includes("<")) {
|
1076
|
-
const
|
1070
|
+
const V = e("PanelLeft", (y = n.slots) == null ? void 0 : y.panelLeft, [
|
1077
1071
|
"name"
|
1078
1072
|
]);
|
1079
|
-
i.value =
|
1073
|
+
i.value = V;
|
1080
1074
|
} else
|
1081
|
-
i.value = (
|
1075
|
+
i.value = (A = n.slots) == null ? void 0 : A.panelLeft;
|
1082
1076
|
}, u = () => {
|
1083
|
-
var g, d, C, y,
|
1077
|
+
var g, d, C, y, A;
|
1084
1078
|
if ((g = n.slots) != null && g.panelRight || (s.value = "div"), (C = (d = n.slots) == null ? void 0 : d.panelRight) != null && C.includes("<")) {
|
1085
|
-
const
|
1079
|
+
const V = e("PanelRight", (y = n.slots) == null ? void 0 : y.panelRight, [
|
1086
1080
|
"name"
|
1087
1081
|
]);
|
1088
|
-
s.value =
|
1082
|
+
s.value = V;
|
1089
1083
|
} else
|
1090
|
-
s.value = (
|
1084
|
+
s.value = (A = n.slots) == null ? void 0 : A.panelRight;
|
1091
1085
|
};
|
1092
|
-
return
|
1093
|
-
(
|
1094
|
-
(
|
1086
|
+
return r(), u(), (g, d) => (o(), a("div", ls, [
|
1087
|
+
(o(), _(z(i.value))),
|
1088
|
+
(o(), _(z(s.value)))
|
1095
1089
|
]));
|
1096
1090
|
}
|
1097
|
-
},
|
1091
|
+
}, rs = (t, e = 300) => {
|
1098
1092
|
let s;
|
1099
1093
|
return function(...i) {
|
1100
1094
|
clearTimeout(s), s = setTimeout(() => {
|
1101
1095
|
t.apply(this, i);
|
1102
1096
|
}, e);
|
1103
1097
|
};
|
1104
|
-
},
|
1098
|
+
}, as = {
|
1105
1099
|
props: { table: String, title: String },
|
1106
1100
|
components: {
|
1107
1101
|
AdminTableControl: ft,
|
1108
|
-
AdminTableExport:
|
1109
|
-
AdminTableColumnsHidden:
|
1110
|
-
AdminTableColumn:
|
1111
|
-
AdminNodata:
|
1102
|
+
AdminTableExport: Ut,
|
1103
|
+
AdminTableColumnsHidden: en,
|
1104
|
+
AdminTableColumn: Je,
|
1105
|
+
AdminNodata: Me,
|
1112
1106
|
IconPlus: we,
|
1113
|
-
IconSearch:
|
1114
|
-
AdminTableCardInfo:
|
1115
|
-
IconOpenCard:
|
1107
|
+
IconSearch: qe,
|
1108
|
+
AdminTableCardInfo: Vn,
|
1109
|
+
IconOpenCard: jn,
|
1116
1110
|
AdminComponentIs: Ce,
|
1117
|
-
AdminTableFilters:
|
1118
|
-
AdminTableTabs:
|
1119
|
-
AdminTableCustomFilters:
|
1120
|
-
AdminTableCustomButtons:
|
1111
|
+
AdminTableFilters: En,
|
1112
|
+
AdminTableTabs: Zn,
|
1113
|
+
AdminTableCustomFilters: ss,
|
1114
|
+
AdminTableCustomButtons: os
|
1121
1115
|
},
|
1122
1116
|
data() {
|
1123
1117
|
return {
|
@@ -1173,7 +1167,7 @@ const os = /* @__PURE__ */ k(ts, [["render", rs]]), as = { class: "flex items-ce
|
|
1173
1167
|
this.tableData = null, await this.getTableData();
|
1174
1168
|
},
|
1175
1169
|
searchValue: {
|
1176
|
-
handler:
|
1170
|
+
handler: rs(async function(t) {
|
1177
1171
|
var e;
|
1178
1172
|
await this.getTableData(), this.$router.push({
|
1179
1173
|
...this.$route,
|
@@ -1208,7 +1202,7 @@ const os = /* @__PURE__ */ k(ts, [["render", rs]]), as = { class: "flex items-ce
|
|
1208
1202
|
},
|
1209
1203
|
columns(t) {
|
1210
1204
|
var e, s, i, n;
|
1211
|
-
this.visibleColumns = t == null ? void 0 : t.map((
|
1205
|
+
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({
|
1212
1206
|
...this.$route,
|
1213
1207
|
query: {
|
1214
1208
|
...(s = this.$route) == null ? void 0 : s.query,
|
@@ -1219,8 +1213,8 @@ const os = /* @__PURE__ */ k(ts, [["render", rs]]), as = { class: "flex items-ce
|
|
1219
1213
|
},
|
1220
1214
|
methods: {
|
1221
1215
|
async checkUrlMounted() {
|
1222
|
-
var t, e, s, i, n,
|
1223
|
-
this.page = ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1, this.limit = ((i = (s = this.$route) == null ? void 0 : s.query) == null ? void 0 : i.limit) || 20, this.filters = ((u = decodeURI((
|
1216
|
+
var t, e, s, i, n, r, u, f, p, m, k, c, g, d, C, y, A;
|
1217
|
+
this.page = ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1, this.limit = ((i = (s = this.$route) == null ? void 0 : s.query) == null ? void 0 : i.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 = ((p = (f = this.$route) == null ? void 0 : f.query) == null ? void 0 : p.filterState) || null, this.filterCustom = ((k = (m = this.$route) == null ? void 0 : m.query) == null ? void 0 : k.custom) || null, this.searchValue = ((g = (c = this.$route) == null ? void 0 : c.query) == null ? void 0 : g.search) || "", this.visibleColumns = ((y = (C = (d = this.$route) == null ? void 0 : d.query) == null ? void 0 : C.columns) == null ? void 0 : y.split(",")) || [], (A = this.$route) != null && A.query.card && (this.isVisibleCardInfo = !0);
|
1224
1218
|
},
|
1225
1219
|
rowWidth(t) {
|
1226
1220
|
var s, i;
|
@@ -1234,7 +1228,7 @@ const os = /* @__PURE__ */ k(ts, [["render", rs]]), as = { class: "flex items-ce
|
|
1234
1228
|
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 = "";
|
1235
1229
|
},
|
1236
1230
|
async getTableData() {
|
1237
|
-
var t, e, s, i, n,
|
1231
|
+
var t, e, s, i, n, r, u, f, p, m, k;
|
1238
1232
|
try {
|
1239
1233
|
const { data: c } = await F.get(`/api/template/table/${this.table}`), g = await F.get(`/api/table-data/${this.table}`, {
|
1240
1234
|
params: {
|
@@ -1250,10 +1244,10 @@ const os = /* @__PURE__ */ k(ts, [["render", rs]]), as = { class: "flex items-ce
|
|
1250
1244
|
this.tableData = {
|
1251
1245
|
...c,
|
1252
1246
|
...(g == null ? void 0 : g.data) || {}
|
1253
|
-
}, this.initialHiddenColumns = (
|
1247
|
+
}, this.initialHiddenColumns = (r = (n = (i = (s = this.tableData) == null ? void 0 : s.columns) == null ? void 0 : i.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) => {
|
1254
1248
|
var C;
|
1255
1249
|
(C = this.visibleColumns) != null && C.includes(d == null ? void 0 : d.name) ? d.hidden = !1 : d.hidden = !0;
|
1256
|
-
}) : this.visibleColumns = (
|
1250
|
+
}) : this.visibleColumns = (k = (m = (p = this.tableData) == null ? void 0 : p.columns) == null ? void 0 : m.filter((d) => (d == null ? void 0 : d.hidden) !== !0)) == null ? void 0 : k.map((d) => d == null ? void 0 : d.name);
|
1257
1251
|
} catch {
|
1258
1252
|
}
|
1259
1253
|
},
|
@@ -1301,26 +1295,26 @@ const os = /* @__PURE__ */ k(ts, [["render", rs]]), as = { class: "flex items-ce
|
|
1301
1295
|
});
|
1302
1296
|
}
|
1303
1297
|
}
|
1304
|
-
},
|
1298
|
+
}, is = { class: "w-[calc(100vw - 320px)] bg-gray-50" }, cs = { class: "h-[76px] mt-[15px] flex items-center justify-between mx-[20px] px-[20px] bg-white border rounded-xl" }, us = { class: "text-xl font-medium" }, ds = {
|
1305
1299
|
style: { height: "calc(100vh - 155px)", width: "calc(100vw - 260px)" },
|
1306
1300
|
class: "bg-gray-50 p-[20px] flex pt-[10px]"
|
1307
|
-
}, bs = { class: "bg-white w-full rounded-xl border p-[20px] pr-0" },
|
1301
|
+
}, bs = { class: "bg-white w-full rounded-xl border p-[20px] pr-0" }, hs = { class: "flex" }, ps = { class: "flex gap-[6px] ml-auto" }, fs = { class: "inline-block w-full align-middle" }, ms = {
|
1308
1302
|
key: 0,
|
1309
|
-
class: "relative min-w-full divide-y divide-gray-200 table-fixed dark:divide-neutral-700"
|
1310
|
-
},
|
1303
|
+
class: "relative w-max min-w-full divide-y divide-gray-200 table-fixed dark:divide-neutral-700"
|
1304
|
+
}, gs = { class: "sticky top-[-1px] bg-white w-full after:absolute after:content-[''] after:block after:w-full after:h-px after:bg-stone-200" }, xs = { class: "right-0 border-t border-stone-200" }, ys = {
|
1311
1305
|
key: 0,
|
1312
1306
|
class: "w-[70px] sticky right-0 top-0"
|
1313
|
-
},
|
1307
|
+
}, _s = { class: "divide-y divide-gray-200" }, vs = { class: "px-4 py-3 text-sm text-gray-600" }, ks = ["onClick"], ws = ["onClick"], Cs = { class: "p-[20px] flex justify-start items-center w-full" }, $s = { class: "w-[200px]" }, As = { class: "text-sm text-gray-600 dark:text-neutral-400" }, Ss = { class: "font-semibold text-gray-800 dark:text-neutral-200" }, Ts = { key: 0 }, Vs = {
|
1314
1308
|
key: 0,
|
1315
1309
|
class: "font-semibold text-gray-800 dark:text-neutral-200"
|
1316
1310
|
};
|
1317
|
-
function
|
1318
|
-
var O, E, N, H, R, W,
|
1319
|
-
const u =
|
1320
|
-
return
|
1321
|
-
l("div",
|
1322
|
-
l("h2",
|
1323
|
-
|
1311
|
+
function Is(t, e, s, i, n, r) {
|
1312
|
+
var O, E, N, H, R, W, Z, G, J, K, Q, X, Y, ee, te, ne, se, le, oe, re, ae, ie;
|
1313
|
+
const u = h("IconPlus"), f = h("router-link"), p = h("AdminTableTabs"), m = h("IconSearch"), k = h("VsText"), c = h("AdminTableCustomButtons"), g = h("AdminTableCustomFilters"), d = h("AdminTableColumnsHidden"), C = h("AdminTableExport"), y = h("AdminTableFilters"), A = h("IconOpenCard"), V = h("AdminTableColumn"), M = h("AdminComponentIs"), U = h("AdminTableControl"), $e = h("AdminNodata"), Ae = h("VsPagination"), Se = h("AdminTableCardInfo");
|
1314
|
+
return o(), a("div", is, [
|
1315
|
+
l("div", cs, [
|
1316
|
+
l("h2", us, T(s.title), 1),
|
1317
|
+
r.isForm ? (o(), _(f, {
|
1324
1318
|
key: 0,
|
1325
1319
|
to: `/add?table=${(E = (O = t.$route) == null ? void 0 : O.params) == null ? void 0 : E.catchAll}`,
|
1326
1320
|
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"
|
@@ -1330,52 +1324,52 @@ function Ms(t, e, s, i, n, o) {
|
|
1330
1324
|
height: "16",
|
1331
1325
|
width: "16"
|
1332
1326
|
}),
|
1333
|
-
e[5] || (e[5] =
|
1327
|
+
e[5] || (e[5] = j(" Додати "))
|
1334
1328
|
]),
|
1335
1329
|
_: 1
|
1336
1330
|
}, 8, ["to"])) : w("", !0)
|
1337
1331
|
]),
|
1338
|
-
l("div",
|
1332
|
+
l("div", ds, [
|
1339
1333
|
l("div", bs, [
|
1340
|
-
(H = (N = n.tableData) == null ? void 0 : N.filterState) != null && H.length ? (
|
1334
|
+
(H = (N = n.tableData) == null ? void 0 : N.filterState) != null && H.length ? (o(), _(p, {
|
1341
1335
|
key: 0,
|
1342
1336
|
tabsList: (R = n.tableData) == null ? void 0 : R.filterState,
|
1343
1337
|
filterState: n.filterState,
|
1344
|
-
"onUpdate:filterState": e[0] || (e[0] = (
|
1338
|
+
"onUpdate:filterState": e[0] || (e[0] = (b) => n.filterState = b)
|
1345
1339
|
}, null, 8, ["tabsList", "filterState"])) : w("", !0),
|
1346
|
-
l("div",
|
1340
|
+
l("div", hs, [
|
1347
1341
|
l("div", {
|
1348
|
-
class:
|
1342
|
+
class: I([n.isVisibleCardInfo ? "w-[calc(100%-360px)]" : "w-full"])
|
1349
1343
|
}, [
|
1350
1344
|
l("div", {
|
1351
|
-
class:
|
1345
|
+
class: I(["flex sm:grid sm:grid-cols-2 gap-x-2 sm:gap-x-5 mb-[10px] relative", { "pr-[20px]": !n.isVisibleCardInfo }])
|
1352
1346
|
}, [
|
1353
1347
|
x(m, {
|
1354
1348
|
height: "14",
|
1355
1349
|
width: "14",
|
1356
1350
|
class: "absolute top-[10px] left-[14px] text-gray-500 z-[1]"
|
1357
1351
|
}),
|
1358
|
-
x(
|
1352
|
+
x(k, {
|
1359
1353
|
modelValue: n.searchValue,
|
1360
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
1354
|
+
"onUpdate:modelValue": e[1] || (e[1] = (b) => n.searchValue = b),
|
1361
1355
|
placeholder: "Пошук...",
|
1362
1356
|
clearable: !0,
|
1363
1357
|
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"
|
1364
1358
|
}, null, 8, ["modelValue"]),
|
1365
|
-
l("div",
|
1366
|
-
(W = n.tableData) != null && W.slots ? (
|
1359
|
+
l("div", ps, [
|
1360
|
+
(W = n.tableData) != null && W.slots ? (o(), _(c, {
|
1367
1361
|
key: 0,
|
1368
|
-
slots: (
|
1362
|
+
slots: (Z = n.tableData) == null ? void 0 : Z.slots
|
1369
1363
|
}, null, 8, ["slots"])) : w("", !0),
|
1370
|
-
(J = (
|
1364
|
+
(J = (G = n.tableData) == null ? void 0 : G.filterCustom) != null && J.length ? (o(), _(g, {
|
1371
1365
|
key: 1,
|
1372
1366
|
customList: (K = n.tableData) == null ? void 0 : K.filterCustom,
|
1373
1367
|
filterCustom: n.filterCustom,
|
1374
|
-
"onUpdate:filterCustom": e[2] || (e[2] = (
|
1368
|
+
"onUpdate:filterCustom": e[2] || (e[2] = (b) => n.filterCustom = b)
|
1375
1369
|
}, null, 8, ["customList", "filterCustom"])) : w("", !0),
|
1376
1370
|
x(d, {
|
1377
1371
|
columns: (Q = n.tableData) == null ? void 0 : Q.columns,
|
1378
|
-
onUpdateColumns: e[3] || (e[3] = (
|
1372
|
+
onUpdateColumns: e[3] || (e[3] = (b) => n.tableData.columns = b)
|
1379
1373
|
}, null, 8, ["columns"]),
|
1380
1374
|
x(C, {
|
1381
1375
|
table: s.table,
|
@@ -1385,98 +1379,98 @@ function Ms(t, e, s, i, n, o) {
|
|
1385
1379
|
"filter-custom": n.filterCustom,
|
1386
1380
|
filters: n.filters
|
1387
1381
|
}, null, 8, ["table", "columns", "page", "filter-state", "filter-custom", "filters"]),
|
1388
|
-
(Y = n.filterScheme) != null && Y.length ? (
|
1382
|
+
(Y = n.filterScheme) != null && Y.length ? (o(), _(y, {
|
1389
1383
|
key: 2,
|
1390
1384
|
scheme: n.filterScheme,
|
1391
1385
|
onFilters: n.onFilters,
|
1392
|
-
onFilterChange:
|
1386
|
+
onFilterChange: r.filterChange
|
1393
1387
|
}, null, 8, ["scheme", "onFilters", "onFilterChange"])) : w("", !0),
|
1394
1388
|
l("button", {
|
1395
|
-
onClick: e[4] || (e[4] = (...
|
1389
|
+
onClick: e[4] || (e[4] = (...b) => r.toggleCardInfo && r.toggleCardInfo(...b)),
|
1396
1390
|
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"
|
1397
1391
|
}, [
|
1398
|
-
x(
|
1399
|
-
class:
|
1392
|
+
x(A, {
|
1393
|
+
class: I({ "rotate-180 duration-300": !n.isVisibleCardInfo })
|
1400
1394
|
}, null, 8, ["class"])
|
1401
1395
|
])
|
1402
1396
|
])
|
1403
1397
|
], 2),
|
1404
1398
|
l("div", {
|
1405
|
-
class:
|
1399
|
+
class: I(["flex items-start justify-start w-full space-y-5", { "pr-[20px]": !n.isVisibleCardInfo }])
|
1406
1400
|
}, [
|
1407
1401
|
l("div", {
|
1408
|
-
style:
|
1402
|
+
style: ve({
|
1409
1403
|
height: (te = (ee = n.tableData) == null ? void 0 : ee.filterState) != null && te.length ? "calc(100vh - 370px)" : "calc(100vh - 330px)"
|
1410
1404
|
}),
|
1411
1405
|
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"
|
1412
1406
|
}, [
|
1413
|
-
l("div",
|
1414
|
-
|
1415
|
-
l("thead",
|
1416
|
-
l("tr",
|
1417
|
-
(
|
1418
|
-
key:
|
1419
|
-
style:
|
1420
|
-
width:
|
1421
|
-
textAlign:
|
1422
|
-
wordBreak:
|
1407
|
+
l("div", fs, [
|
1408
|
+
r.isNoData ? (o(), _($e, { key: 1 })) : (o(), a("table", ms, [
|
1409
|
+
l("thead", gs, [
|
1410
|
+
l("tr", xs, [
|
1411
|
+
(o(!0), a(S, null, D(r.columns, (b) => (o(), _(V, {
|
1412
|
+
key: b.name,
|
1413
|
+
style: ve({
|
1414
|
+
width: r.rowWidth(b == null ? void 0 : b.name),
|
1415
|
+
textAlign: b == null ? void 0 : b.align,
|
1416
|
+
wordBreak: b == null ? void 0 : b.wrap
|
1423
1417
|
}),
|
1424
|
-
data:
|
1418
|
+
data: b,
|
1425
1419
|
activeColumn: n.activeColumn,
|
1426
|
-
onChangeActive:
|
1420
|
+
onChangeActive: r.changeActiveColumn
|
1427
1421
|
}, null, 8, ["style", "data", "activeColumn", "onChangeActive"]))), 128)),
|
1428
|
-
(se = (ne =
|
1422
|
+
(se = (ne = r.getActions) == null ? void 0 : ne.filter((b) => b !== "add")) != null && se.length ? (o(), a("th", ys)) : w("", !0)
|
1429
1423
|
])
|
1430
1424
|
]),
|
1431
|
-
l("tbody",
|
1432
|
-
(
|
1433
|
-
var ce, ue, de, he, pe, fe,
|
1434
|
-
return
|
1435
|
-
key:
|
1436
|
-
class:
|
1437
|
-
"bg-gray-50": ((ue = (ce = t.$route) == null ? void 0 : ce.query) == null ? void 0 : ue.card) === (
|
1425
|
+
l("tbody", _s, [
|
1426
|
+
(o(!0), a(S, null, D((le = n.tableData) == null ? void 0 : le.rows, (b, Te) => {
|
1427
|
+
var ce, ue, de, be, he, pe, fe, me, ge, xe;
|
1428
|
+
return o(), a("tr", {
|
1429
|
+
key: Te,
|
1430
|
+
class: I({
|
1431
|
+
"bg-gray-50": ((ue = (ce = t.$route) == null ? void 0 : ce.query) == null ? void 0 : ue.card) === (b == null ? void 0 : b.id)
|
1438
1432
|
})
|
1439
1433
|
}, [
|
1440
|
-
l("td",
|
1434
|
+
l("td", vs, [
|
1441
1435
|
l("button", {
|
1442
|
-
onClick: () =>
|
1443
|
-
class:
|
1436
|
+
onClick: () => r.pushToCard(b == null ? void 0 : b.id),
|
1437
|
+
class: I(["text-sm font-medium", [
|
1444
1438
|
((de = n.tableData) == null ? void 0 : de.card) === !1 ? "" : "text-blue-600 decoration-2 focus:outline-none focus:underline hover:text-blue-600 hover:underline"
|
1445
1439
|
]])
|
1446
1440
|
}, [
|
1447
|
-
x(
|
1448
|
-
row:
|
1449
|
-
column:
|
1441
|
+
x(M, {
|
1442
|
+
row: b,
|
1443
|
+
column: r.columns[0],
|
1450
1444
|
table: s.table,
|
1451
|
-
onUpdateTable:
|
1445
|
+
onUpdateTable: r.getTableData
|
1452
1446
|
}, null, 8, ["row", "column", "table", "onUpdateTable"])
|
1453
|
-
], 10,
|
1447
|
+
], 10, ks)
|
1454
1448
|
]),
|
1455
|
-
(
|
1456
|
-
onClick: (
|
1457
|
-
class:
|
1449
|
+
(o(!0), a(S, null, D((be = r.columns) == null ? void 0 : be.slice(1), (q) => (o(), a("td", {
|
1450
|
+
onClick: (qs) => r.changeActiveCardInfo(b == null ? void 0 : b.id),
|
1451
|
+
class: I(["px-3 py-3 text-sm text-gray-600 text-start whitespace-nowrap", { "cursor-pointer": n.isVisibleCardInfo }]),
|
1458
1452
|
key: q.name
|
1459
1453
|
}, [
|
1460
|
-
x(
|
1461
|
-
row:
|
1454
|
+
x(M, {
|
1455
|
+
row: b,
|
1462
1456
|
column: q,
|
1463
1457
|
table: s.table,
|
1464
|
-
onUpdateTable:
|
1458
|
+
onUpdateTable: r.getTableData
|
1465
1459
|
}, null, 8, ["row", "column", "table", "onUpdateTable"])
|
1466
|
-
], 10,
|
1467
|
-
(
|
1460
|
+
], 10, ws))), 128)),
|
1461
|
+
(pe = (he = r.getActions) == null ? void 0 : he.filter((q) => q !== "add")) != null && pe.length ? (o(), a("td", {
|
1468
1462
|
key: 0,
|
1469
|
-
class:
|
1470
|
-
"bg-gray-50": ((me = (
|
1471
|
-
"bg-white": ((xe = (ge = t.$route) == null ? void 0 : ge.query) == null ? void 0 : xe.card) !== (
|
1463
|
+
class: I(["text-center sticky right-0 w-[80px] px-[10px]", {
|
1464
|
+
"bg-gray-50": ((me = (fe = t.$route) == null ? void 0 : fe.query) == null ? void 0 : me.card) === (b == null ? void 0 : b.id),
|
1465
|
+
"bg-white": ((xe = (ge = t.$route) == null ? void 0 : ge.query) == null ? void 0 : xe.card) !== (b == null ? void 0 : b.id)
|
1472
1466
|
}])
|
1473
1467
|
}, [
|
1474
1468
|
x(U, {
|
1475
|
-
actions:
|
1476
|
-
isForm:
|
1477
|
-
item:
|
1469
|
+
actions: r.getActions,
|
1470
|
+
isForm: r.isForm,
|
1471
|
+
item: b,
|
1478
1472
|
table: s.table,
|
1479
|
-
onUpdateTable:
|
1473
|
+
onUpdateTable: r.getTableData
|
1480
1474
|
}, null, 8, ["actions", "isForm", "item", "table", "onUpdateTable"])
|
1481
1475
|
], 2)) : w("", !0)
|
1482
1476
|
], 2);
|
@@ -1486,39 +1480,39 @@ function Ms(t, e, s, i, n, o) {
|
|
1486
1480
|
])
|
1487
1481
|
], 4)
|
1488
1482
|
], 2),
|
1489
|
-
l("div",
|
1490
|
-
l("div",
|
1491
|
-
l("p",
|
1492
|
-
l("span",
|
1493
|
-
|
1494
|
-
n.filters || n.searchValue ? (
|
1483
|
+
l("div", Cs, [
|
1484
|
+
l("div", $s, [
|
1485
|
+
l("p", As, [
|
1486
|
+
l("span", Ss, [
|
1487
|
+
j(T(n.filters || n.searchValue ? "Знайдено" : "Об'єктів") + " " + T(((oe = n.tableData) == null ? void 0 : oe.count) || "0 ") + " ", 1),
|
1488
|
+
n.filters || n.searchValue ? (o(), a("span", Ts, " з")) : w("", !0)
|
1495
1489
|
]),
|
1496
|
-
n.filters || n.searchValue ? (
|
1490
|
+
n.filters || n.searchValue ? (o(), a("span", Vs, T(" " + ((re = n.tableData) == null ? void 0 : re.filtered) || 0), 1)) : w("", !0)
|
1497
1491
|
])
|
1498
1492
|
]),
|
1499
|
-
Math.ceil(((ae = n.tableData) == null ? void 0 : ae.filtered) / n.limit) > 1 ? (
|
1493
|
+
Math.ceil(((ae = n.tableData) == null ? void 0 : ae.filtered) / n.limit) > 1 ? (o(), _(Ae, {
|
1500
1494
|
key: 0,
|
1501
1495
|
goTo: !1,
|
1502
1496
|
class: "justify-end",
|
1503
|
-
"default-page": parseInt(
|
1497
|
+
"default-page": parseInt(r.defaultPage),
|
1504
1498
|
total: ((ie = n.tableData) == null ? void 0 : ie.filtered) || 0,
|
1505
1499
|
pageSize: parseInt(n.limit),
|
1506
|
-
onPageChange:
|
1500
|
+
onPageChange: r.handlePageChange,
|
1507
1501
|
pageSizes: [10, 16, 20],
|
1508
|
-
onPageSizeChange:
|
1502
|
+
onPageSizeChange: r.changeLimit,
|
1509
1503
|
backgroundColor: "#F3F4F6"
|
1510
1504
|
}, null, 8, ["default-page", "total", "pageSize", "onPageChange", "onPageSizeChange"])) : w("", !0)
|
1511
1505
|
])
|
1512
1506
|
], 2),
|
1513
|
-
x(
|
1507
|
+
x(B, { name: "slide-fade" }, {
|
1514
1508
|
default: $(() => {
|
1515
|
-
var
|
1509
|
+
var b;
|
1516
1510
|
return [
|
1517
|
-
n.isVisibleCardInfo ? (
|
1511
|
+
n.isVisibleCardInfo ? (o(), _(Se, {
|
1518
1512
|
key: 0,
|
1519
1513
|
table: s.table,
|
1520
|
-
columns: (
|
1521
|
-
row:
|
1514
|
+
columns: (b = n.tableData) == null ? void 0 : b.columns,
|
1515
|
+
row: r.activeCardRow
|
1522
1516
|
}, null, 8, ["table", "columns", "row"])) : w("", !0)
|
1523
1517
|
];
|
1524
1518
|
}),
|
@@ -1529,8 +1523,8 @@ function Ms(t, e, s, i, n, o) {
|
|
1529
1523
|
])
|
1530
1524
|
]);
|
1531
1525
|
}
|
1532
|
-
const
|
1533
|
-
components: { AdminTable:
|
1526
|
+
const Ds = /* @__PURE__ */ v(as, [["render", Is], ["__scopeId", "data-v-6b80b456"]]), Fs = {
|
1527
|
+
components: { AdminTable: Ds },
|
1534
1528
|
data() {
|
1535
1529
|
return {
|
1536
1530
|
table: !1,
|
@@ -1548,7 +1542,7 @@ const js = /* @__PURE__ */ k(us, [["render", Ms], ["__scopeId", "data-v-ef9b0865
|
|
1548
1542
|
},
|
1549
1543
|
title(t) {
|
1550
1544
|
var e;
|
1551
|
-
t && (document.title = (((e =
|
1545
|
+
t && (document.title = (((e = ze.value) == null ? void 0 : e.titlePrefix) || "") + t);
|
1552
1546
|
}
|
1553
1547
|
},
|
1554
1548
|
async mounted() {
|
@@ -1565,9 +1559,9 @@ const js = /* @__PURE__ */ k(us, [["render", Ms], ["__scopeId", "data-v-ef9b0865
|
|
1565
1559
|
var i, n;
|
1566
1560
|
const t = this.flattenMenu(ye.value);
|
1567
1561
|
t != null && t.length || this.$router.replace("/404");
|
1568
|
-
const e = t == null ? void 0 : t.find((
|
1569
|
-
var u,
|
1570
|
-
return (
|
1562
|
+
const e = t == null ? void 0 : t.find((r) => {
|
1563
|
+
var u, f;
|
1564
|
+
return (r == null ? void 0 : r.path) == ((f = (u = this.$route) == null ? void 0 : u.params) == null ? void 0 : f.catchAll);
|
1571
1565
|
});
|
1572
1566
|
this.title = e == null ? void 0 : e.ua, e || this.$router.replace("/404"), e != null && e.component && this.$router.replace((n = (i = this.$route) == null ? void 0 : i.params) == null ? void 0 : n.catchAll);
|
1573
1567
|
const s = e == null ? void 0 : e.table;
|
@@ -1585,21 +1579,21 @@ const js = /* @__PURE__ */ k(us, [["render", Ms], ["__scopeId", "data-v-ef9b0865
|
|
1585
1579
|
}
|
1586
1580
|
}
|
1587
1581
|
}
|
1588
|
-
},
|
1589
|
-
function
|
1590
|
-
const u =
|
1591
|
-
return n.table ? (
|
1582
|
+
}, js = ["innerHTML"];
|
1583
|
+
function Ms(t, e, s, i, n, r) {
|
1584
|
+
const u = h("AdminTable");
|
1585
|
+
return n.table ? (o(), _(u, {
|
1592
1586
|
key: 0,
|
1593
1587
|
table: n.table,
|
1594
1588
|
title: n.title
|
1595
|
-
}, null, 8, ["table", "title"])) : (
|
1589
|
+
}, null, 8, ["table", "title"])) : (o(), a("div", {
|
1596
1590
|
key: 1,
|
1597
1591
|
class: "w-full bg-gray-50",
|
1598
1592
|
style: { height: "calc(100vh - 120px)" },
|
1599
1593
|
innerHTML: n.interface
|
1600
|
-
}, null, 8,
|
1594
|
+
}, null, 8, js));
|
1601
1595
|
}
|
1602
|
-
const
|
1596
|
+
const Bs = /* @__PURE__ */ v(Fs, [["render", Ms]]);
|
1603
1597
|
export {
|
1604
|
-
|
1598
|
+
Bs as default
|
1605
1599
|
};
|