@opengis/admin 0.3.25 → 0.3.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{add-page-BI4K8Lzk.js → add-page-C6DwbJjf.js} +25 -20
- package/dist/{admin-interface-DDP6KpGO.js → admin-interface-BrB1qb2I.js} +559 -597
- package/dist/{admin-view-C--DkpIG.js → admin-view-CZJ6KMWm.js} +6 -6
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +72 -72
- package/dist/{card-view-CPwz8aJg.js → card-view-CpED7yAp.js} +3 -3
- package/dist/edit-page-DBVGsNB1.js +145 -0
- package/dist/{import-file-B8gDejaq.js → import-file-CPyXYrIv.js} +18540 -18651
- package/dist/{profile-page-C5UftUwo.js → profile-page-HrN4f8PO.js} +5 -5
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/server/helpers/list/descriptionList.js +1 -1
- package/server/helpers/list/tableList.js +5 -5
- package/server/helpers/list/utils/buttonDel.js +1 -1
- package/server/helpers/list/utils/buttonEdit.js +1 -1
- package/dist/edit-page-BsDJ8lKP.js +0 -140
@@ -1,6 +1,6 @@
|
|
1
|
-
import { _ as
|
2
|
-
import {
|
3
|
-
const
|
1
|
+
import { _ as S, g as Je, h as Ge, i as Qe, f as M, I as Xe, s as E, j as Ue, k as Q, A as X, V as Ye, l as Ze, m as et, n as tt, o as st, p as nt, q as lt, a as at, r as rt, t as ot, u as Ee } from "./import-file-CPyXYrIv.js";
|
2
|
+
import { openBlock as r, createElementBlock as i, createTextVNode as P, toDisplayString as A, createElementVNode as a, normalizeClass as w, createCommentVNode as k, resolveComponent as f, Fragment as $, createVNode as x, withCtx as D, createBlock as v, renderList as V, withModifiers as it, createStaticVNode as dt, withDirectives as U, vModelCheckbox as ut, Transition as W, vModelText as ct, renderSlot as ht, vShow as Y, Teleport as pt, getCurrentInstance as Re, ref as J, resolveDynamicComponent as G, defineComponent as bt, withKeys as ft, normalizeStyle as K } from "vue";
|
3
|
+
const gt = {
|
4
4
|
data() {
|
5
5
|
return {
|
6
6
|
currentSort: ""
|
@@ -61,27 +61,27 @@ const ht = {
|
|
61
61
|
return `${this.data.name}-${t}` === this.selectedSortParam;
|
62
62
|
}
|
63
63
|
}
|
64
|
-
},
|
64
|
+
}, mt = {
|
65
65
|
scope: "col",
|
66
|
-
class: "
|
66
|
+
class: "text-start",
|
67
67
|
ref: "column"
|
68
|
-
},
|
68
|
+
}, xt = { class: "w-[24px]" }, yt = {
|
69
69
|
key: 1,
|
70
70
|
class: "flex items-center px-1 py-3 font-medium text-gray-800 text-start gap-x-1 dark:text-neutral-200"
|
71
71
|
};
|
72
|
-
function
|
73
|
-
return r(), i("th",
|
74
|
-
|
72
|
+
function vt(t, e, n, o, s, l) {
|
73
|
+
return r(), i("th", mt, [
|
74
|
+
l.getVisibleIcon ? (r(), i("button", {
|
75
75
|
key: 0,
|
76
76
|
type: "button",
|
77
|
-
class: "flex items-center px-1 py-
|
78
|
-
onClick: e[0] || (e[0] = (c) =>
|
77
|
+
class: "flex items-center px-1 py-2 font-medium text-gray-800 text-start gap-x-1 dark:text-neutral-200",
|
78
|
+
onClick: e[0] || (e[0] = (c) => l.handleClickSortBtn(s.currentSort))
|
79
79
|
}, [
|
80
|
-
|
81
|
-
|
80
|
+
P(A(l.label) + " ", 1),
|
81
|
+
a("span", xt, [
|
82
82
|
s.currentSort ? (r(), i("svg", {
|
83
83
|
key: 0,
|
84
|
-
class:
|
84
|
+
class: w(["shrink-0 size-3.5", { "rotate-180": s.currentSort === "asc" }]),
|
85
85
|
xmlns: "http://www.w3.org/2000/svg",
|
86
86
|
width: "24",
|
87
87
|
height: "24",
|
@@ -92,18 +92,18 @@ function mt(t, e, n, o, s, a) {
|
|
92
92
|
"stroke-linecap": "round",
|
93
93
|
"stroke-linejoin": "round"
|
94
94
|
}, e[1] || (e[1] = [
|
95
|
-
|
96
|
-
|
97
|
-
]), 2)) :
|
95
|
+
a("path", { d: "m5 12 7-7 7 7" }, null, -1),
|
96
|
+
a("path", { d: "M12 19V5" }, null, -1)
|
97
|
+
]), 2)) : k("", !0)
|
98
98
|
])
|
99
|
-
])) : (r(), i("p",
|
99
|
+
])) : (r(), i("p", yt, A(l.label), 1))
|
100
100
|
], 512);
|
101
101
|
}
|
102
|
-
const
|
102
|
+
const kt = /* @__PURE__ */ S(gt, [["render", vt]]), _t = {
|
103
103
|
components: {
|
104
|
-
IconMore:
|
105
|
-
IconDelete:
|
106
|
-
IconEdit:
|
104
|
+
IconMore: Je,
|
105
|
+
IconDelete: Ge,
|
106
|
+
IconEdit: Qe
|
107
107
|
},
|
108
108
|
emits: ["updateTable"],
|
109
109
|
props: {
|
@@ -182,82 +182,82 @@ const xt = /* @__PURE__ */ T(ht, [["render", mt]]), yt = {
|
|
182
182
|
}), await this.$emit("update-table"));
|
183
183
|
}
|
184
184
|
}
|
185
|
-
},
|
185
|
+
}, Ct = { class: "inline-flex" }, wt = { 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" }, $t = { class: "flex flex-col items-start" }, St = ["onClick"], Tt = { class: "text-gray-800" }, At = {
|
186
186
|
key: 1,
|
187
187
|
class: "h-[1px] w-[80%] bg-gray-200 ml-auto mr-auto"
|
188
|
-
},
|
189
|
-
function
|
190
|
-
const c =
|
188
|
+
}, It = { class: "flex justify-end p-[16px] pr-0 gap-x-3" };
|
189
|
+
function Dt(t, e, n, o, s, l) {
|
190
|
+
const c = f("IconMore"), g = f("IconEdit"), p = f("router-link"), b = f("IconDelete"), d = f("VsPopover"), y = f("VsConfirm");
|
191
191
|
return r(), i($, null, [
|
192
|
-
|
193
|
-
|
192
|
+
a("div", Ct, [
|
193
|
+
x(d, {
|
194
194
|
trigger: "click",
|
195
195
|
placement: "bottom-left"
|
196
196
|
}, {
|
197
|
-
reference:
|
198
|
-
|
199
|
-
|
197
|
+
reference: D(() => [
|
198
|
+
a("button", wt, [
|
199
|
+
x(c, {
|
200
200
|
height: "16",
|
201
201
|
width: "16"
|
202
202
|
})
|
203
203
|
])
|
204
204
|
]),
|
205
|
-
default:
|
206
|
-
var
|
205
|
+
default: D(() => {
|
206
|
+
var m, h, _, C, I;
|
207
207
|
return [
|
208
|
-
|
209
|
-
(
|
208
|
+
a("div", $t, [
|
209
|
+
(m = n.actions) != null && m.includes("edit") && n.isForm ? (r(), v(p, {
|
210
210
|
key: 0,
|
211
|
-
to: `/edit?table=${(
|
211
|
+
to: `/edit?table=${(_ = (h = t.$route) == null ? void 0 : h.params) == null ? void 0 : _.catchAll}&id=${(C = n.item) == null ? void 0 : C.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
|
-
default:
|
215
|
-
|
216
|
-
e[4] || (e[4] =
|
214
|
+
default: D(() => [
|
215
|
+
x(g, { color: "#000" }),
|
216
|
+
e[4] || (e[4] = P(" Редагувати "))
|
217
217
|
]),
|
218
218
|
_: 1
|
219
|
-
}, 8, ["to"])) :
|
220
|
-
(r(!0), i($, null, V(
|
221
|
-
key:
|
222
|
-
onClick: (
|
219
|
+
}, 8, ["to"])) : k("", !0),
|
220
|
+
(r(!0), i($, null, V(l.getCustomActions, (T, F) => (r(), i("button", {
|
221
|
+
key: F,
|
222
|
+
onClick: (j) => l.customButtonAction(T),
|
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
|
-
|
227
|
-
], 8,
|
228
|
-
n.isForm ? (r(), i("div",
|
229
|
-
(
|
225
|
+
x(b, { class: "opacity-0" }),
|
226
|
+
a("span", Tt, A(T == null ? void 0 : T.label), 1)
|
227
|
+
], 8, St))), 128)),
|
228
|
+
n.isForm ? (r(), i("div", At)) : k("", !0),
|
229
|
+
(I = n.actions) != null && I.includes("del") ? (r(), i("button", {
|
230
230
|
key: 2,
|
231
|
-
onClick: e[0] || (e[0] =
|
231
|
+
onClick: e[0] || (e[0] = it((...T) => l.openConfirm && l.openConfirm(...T), ["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
|
-
|
235
|
-
e[5] || (e[5] =
|
236
|
-
])) :
|
234
|
+
x(b),
|
235
|
+
e[5] || (e[5] = a("span", { class: "text-gray-800" }, "Видалити", -1))
|
236
|
+
])) : k("", !0)
|
237
237
|
])
|
238
238
|
];
|
239
239
|
}),
|
240
240
|
_: 1
|
241
241
|
})
|
242
242
|
]),
|
243
|
-
y
|
243
|
+
x(y, {
|
244
244
|
visible: s.isDeleteConfirm,
|
245
|
-
"onUpdate:visible": e[3] || (e[3] = (
|
245
|
+
"onUpdate:visible": e[3] || (e[3] = (m) => s.isDeleteConfirm = m),
|
246
246
|
size: "small",
|
247
247
|
title: "Ви впевнені?"
|
248
248
|
}, {
|
249
|
-
default:
|
250
|
-
e[6] || (e[6] =
|
251
|
-
|
252
|
-
|
249
|
+
default: D(() => [
|
250
|
+
e[6] || (e[6] = a("p", { class: "mt-1 text-sm text-gray-600 dark:text-neutral-400" }, " Ви впевнені, що хочете видалити цей об'єкт? ", -1)),
|
251
|
+
a("div", It, [
|
252
|
+
a("button", {
|
253
253
|
type: "button",
|
254
254
|
class: "inline-flex items-center px-3 py-2 text-xs font-medium duration-300 border rounded-lg shadow-sm hover:bg-gray-100 gap-x-2 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50",
|
255
|
-
onClick: e[1] || (e[1] = (
|
255
|
+
onClick: e[1] || (e[1] = (m) => s.isDeleteConfirm = !1)
|
256
256
|
}, " Скасувати "),
|
257
|
-
|
257
|
+
a("button", {
|
258
258
|
type: "button",
|
259
259
|
class: "inline-flex items-center px-3 py-2 text-xs font-medium text-white duration-300 bg-red-500 rounded-lg gap-x-2 hover:bg-red-700 disabled:opacity-50 disabled:pointer-events-none",
|
260
|
-
onClick: e[2] || (e[2] = (...
|
260
|
+
onClick: e[2] || (e[2] = (...m) => l.deleteElement && l.deleteElement(...m))
|
261
261
|
}, " Так, я впевнена(ий) ")
|
262
262
|
])
|
263
263
|
]),
|
@@ -265,7 +265,7 @@ function At(t, e, n, o, s, a) {
|
|
265
265
|
}, 8, ["visible"])
|
266
266
|
], 64);
|
267
267
|
}
|
268
|
-
const
|
268
|
+
const Vt = /* @__PURE__ */ S(_t, [["render", Dt]]), Pt = {}, Ft = {
|
269
269
|
class: "flex-shrink-0 mt-0.5 size-3.5",
|
270
270
|
xmlns: "http://www.w3.org/2000/svg",
|
271
271
|
viewBox: "0 0 24 24",
|
@@ -275,15 +275,15 @@ const St = /* @__PURE__ */ T(yt, [["render", At]]), It = {}, Dt = {
|
|
275
275
|
"stroke-linecap": "round",
|
276
276
|
"stroke-linejoin": "round"
|
277
277
|
};
|
278
|
-
function
|
279
|
-
return r(), i("svg",
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
278
|
+
function jt(t, e, n, o, s, l) {
|
279
|
+
return r(), i("svg", Ft, e[0] || (e[0] = [
|
280
|
+
a("path", { d: "m3 16 4 4 4-4" }, null, -1),
|
281
|
+
a("path", { d: "M7 20V4" }, null, -1),
|
282
|
+
a("path", { d: "m21 8-4-4-4 4" }, null, -1),
|
283
|
+
a("path", { d: "M17 4v16" }, null, -1)
|
284
284
|
]));
|
285
285
|
}
|
286
|
-
const
|
286
|
+
const Lt = /* @__PURE__ */ S(Pt, [["render", jt]]), Mt = {}, zt = {
|
287
287
|
xmlns: "http://www.w3.org/2000/svg",
|
288
288
|
width: "24",
|
289
289
|
height: "24",
|
@@ -295,19 +295,19 @@ const Pt = /* @__PURE__ */ T(It, [["render", Vt]]), Ft = {}, jt = {
|
|
295
295
|
"stroke-linejoin": "round",
|
296
296
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-rosette-discount-check"
|
297
297
|
};
|
298
|
-
function
|
299
|
-
return r(), i("svg",
|
300
|
-
|
298
|
+
function qt(t, e, n, o, s, l) {
|
299
|
+
return r(), i("svg", zt, e[0] || (e[0] = [
|
300
|
+
a("path", {
|
301
301
|
stroke: "none",
|
302
302
|
d: "M0 0h24v24H0z",
|
303
303
|
fill: "none"
|
304
304
|
}, null, -1),
|
305
|
-
|
306
|
-
|
305
|
+
a("path", { d: "M5 7.2a2.2 2.2 0 0 1 2.2 -2.2h1a2.2 2.2 0 0 0 1.55 -.64l.7 -.7a2.2 2.2 0 0 1 3.12 0l.7 .7c.412 .41 .97 .64 1.55 .64h1a2.2 2.2 0 0 1 2.2 2.2v1c0 .58 .23 1.138 .64 1.55l.7 .7a2.2 2.2 0 0 1 0 3.12l-.7 .7a2.2 2.2 0 0 0 -.64 1.55v1a2.2 2.2 0 0 1 -2.2 2.2h-1a2.2 2.2 0 0 0 -1.55 .64l-.7 .7a2.2 2.2 0 0 1 -3.12 0l-.7 -.7a2.2 2.2 0 0 0 -1.55 -.64h-1a2.2 2.2 0 0 1 -2.2 -2.2v-1a2.2 2.2 0 0 0 -.64 -1.55l-.7 -.7a2.2 2.2 0 0 1 0 -3.12l.7 -.7a2.2 2.2 0 0 0 .64 -1.55v-1" }, null, -1),
|
306
|
+
a("path", { d: "M9 12l2 2l4 -4" }, null, -1)
|
307
307
|
]));
|
308
308
|
}
|
309
|
-
const
|
310
|
-
components: { IconExport:
|
309
|
+
const Bt = /* @__PURE__ */ S(Mt, [["render", qt]]), Ot = {
|
310
|
+
components: { IconExport: Lt, IconChevronDown: Xe, IconSuccess: Bt },
|
311
311
|
props: {
|
312
312
|
table: String,
|
313
313
|
columns: Array,
|
@@ -340,6 +340,11 @@ const Mt = /* @__PURE__ */ T(Ft, [["render", Lt]]), zt = {
|
|
340
340
|
t || (this.format = "", this.cols = [], this.activeAction = "", this.isSuccessTemplate = !1);
|
341
341
|
}
|
342
342
|
},
|
343
|
+
computed: {
|
344
|
+
color() {
|
345
|
+
return E.value.sidebarColor || "blue";
|
346
|
+
}
|
347
|
+
},
|
343
348
|
methods: {
|
344
349
|
async exportTable() {
|
345
350
|
var t;
|
@@ -373,15 +378,15 @@ const Mt = /* @__PURE__ */ T(Ft, [["render", Lt]]), zt = {
|
|
373
378
|
responseType: "blob"
|
374
379
|
}), n = await e.data.text(), o = n != null && n.includes(";") ? null : JSON == null ? void 0 : JSON.parse(n), s = new Blob([e.data], {
|
375
380
|
type: "application/octet-stream"
|
376
|
-
}),
|
377
|
-
if (c.href =
|
381
|
+
}), l = window.URL.createObjectURL(s), c = document.createElement("a");
|
382
|
+
if (c.href = l, c.setAttribute(
|
378
383
|
"download",
|
379
384
|
`${this.table.split(".")[0]}.${this.format}`
|
380
385
|
), document.body.appendChild(c), typeof o == "string") {
|
381
386
|
this.exportTable();
|
382
387
|
return;
|
383
388
|
}
|
384
|
-
c.click(), document.body.removeChild(c), window.URL.revokeObjectURL(
|
389
|
+
c.click(), document.body.removeChild(c), window.URL.revokeObjectURL(l), this.$notify({
|
385
390
|
type: "success",
|
386
391
|
title: "Експорт",
|
387
392
|
message: "Файл успішно експортовано!"
|
@@ -409,126 +414,126 @@ const Mt = /* @__PURE__ */ T(Ft, [["render", Lt]]), zt = {
|
|
409
414
|
this.cols = (e = (t = this.columns) == null ? void 0 : t.filter((n) => (n == null ? void 0 : n.hidden) !== !0)) == null ? void 0 : e.map((n) => n == null ? void 0 : n.name), this.activeAction = "choceVisible";
|
410
415
|
}
|
411
416
|
}
|
412
|
-
},
|
417
|
+
}, Nt = {
|
413
418
|
key: 0,
|
414
419
|
class: "flex flex-col items-center"
|
415
|
-
},
|
420
|
+
}, Et = {
|
416
421
|
key: 1,
|
417
422
|
class: "p-4"
|
418
|
-
},
|
423
|
+
}, Ut = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, Rt = { class: "flex items-center gap-[10px] -ml-[10px] my-[10px]" }, Ht = ["onClick"], Wt = {
|
419
424
|
key: 0,
|
420
425
|
class: "block h-[8px] w-[8px] rounded-full bg-blue-500"
|
421
|
-
},
|
426
|
+
}, Kt = { 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" }, Gt = { class: "mt-2 space-y-2" }, Qt = ["id", "onChange"], Xt = ["for"], Yt = {
|
422
427
|
key: 0,
|
423
428
|
class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
|
424
|
-
},
|
429
|
+
}, Zt = {
|
425
430
|
key: 1,
|
426
431
|
class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
|
427
432
|
};
|
428
|
-
function
|
429
|
-
const c =
|
433
|
+
function es(t, e, n, o, s, l) {
|
434
|
+
const c = f("IconExport"), g = f("IconSuccess"), p = f("VsCheckbox"), b = f("VsDialog");
|
430
435
|
return r(), i($, null, [
|
431
|
-
|
436
|
+
a("button", {
|
432
437
|
onClick: e[0] || (e[0] = (d) => s.isOpen = !0),
|
433
438
|
class: "py-2 max-h-[34px] px-2.5 md:inline-flex hidden items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"
|
434
439
|
}, [
|
435
|
-
|
440
|
+
x(c, {
|
436
441
|
height: "16",
|
437
442
|
width: "16"
|
438
443
|
}),
|
439
|
-
e[7] || (e[7] =
|
444
|
+
e[7] || (e[7] = P(" Експорт "))
|
440
445
|
]),
|
441
|
-
|
446
|
+
x(b, {
|
442
447
|
visible: s.isOpen,
|
443
448
|
"onUpdate:visible": e[6] || (e[6] = (d) => s.isOpen = d),
|
444
449
|
title: "Експорт таблиці",
|
445
450
|
size: "small",
|
446
451
|
closeClickBack: !0
|
447
452
|
}, {
|
448
|
-
footer:
|
449
|
-
s.isSuccessTemplate ? (r(), i("div",
|
450
|
-
|
453
|
+
footer: D(() => [
|
454
|
+
s.isSuccessTemplate ? (r(), i("div", Yt, [
|
455
|
+
a("button", {
|
451
456
|
type: "button",
|
452
457
|
class: "inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-gray-800 align-middle bg-white border border-gray-200 rounded-lg shadow-sm text-nowrap text-start hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700",
|
453
458
|
onClick: e[2] || (e[2] = (d) => s.isOpen = !1)
|
454
459
|
}, " Закрити "),
|
455
|
-
|
460
|
+
a("button", {
|
456
461
|
type: "button",
|
457
462
|
class: "inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-white align-middle bg-blue-600 border border-blue-600 rounded-lg shadow-sm text-nowrap gap-x-2 text-start hover:bg-blue-700 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:ring-1 focus:ring-blue-300 dark:focus:ring-blue-500",
|
458
463
|
onClick: e[3] || (e[3] = (d) => s.isSuccessTemplate = !1)
|
459
464
|
}, " Вигрузити ще ")
|
460
|
-
])) : (r(), i("div",
|
461
|
-
|
465
|
+
])) : (r(), i("div", Zt, [
|
466
|
+
a("button", {
|
462
467
|
type: "button",
|
463
468
|
class: "inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-gray-800 align-middle bg-white border border-gray-200 rounded-lg shadow-sm text-nowrap text-start hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700",
|
464
469
|
onClick: e[4] || (e[4] = (d) => s.isOpen = !1)
|
465
470
|
}, " Скасувати "),
|
466
|
-
|
471
|
+
a("button", {
|
467
472
|
type: "button",
|
468
|
-
class:
|
469
|
-
onClick: e[5] || (e[5] = (...d) =>
|
470
|
-
}, " Завантажити таблицю ")
|
473
|
+
class: w(`inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-white align-middle bg-${l.color}-700 rounded-lg shadow-sm text-nowrap gap-x-2 text-start hover:bg-${l.color}-800 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:ring-1 focus:ring-${l.color}-300 dark:focus:ring-${l.color}-500`),
|
474
|
+
onClick: e[5] || (e[5] = (...d) => l.exportTable && l.exportTable(...d))
|
475
|
+
}, " Завантажити таблицю ", 2)
|
471
476
|
]))
|
472
477
|
]),
|
473
|
-
default:
|
474
|
-
s.isSuccessTemplate ? (r(), i("div",
|
475
|
-
|
478
|
+
default: D(() => [
|
479
|
+
s.isSuccessTemplate ? (r(), i("div", Nt, [
|
480
|
+
x(g, {
|
476
481
|
height: "100",
|
477
482
|
width: "100",
|
478
483
|
class: "text-green-200 mb-[20px]"
|
479
484
|
}),
|
480
|
-
e[8] || (e[8] =
|
481
|
-
])) : (r(), i("div",
|
482
|
-
|
483
|
-
e[9] || (e[9] =
|
484
|
-
|
485
|
+
e[8] || (e[8] = a("h2", null, "Звіт сформовано і збережено", -1))
|
486
|
+
])) : (r(), i("div", Et, [
|
487
|
+
a("div", Ut, [
|
488
|
+
e[9] || (e[9] = a("h2", { class: "text-sm font-[600] text-gray-500" }, " Виберіть стовпці таблиці для експорту: ", -1)),
|
489
|
+
a("div", Rt, [
|
485
490
|
(r(!0), i($, null, V(s.actions, (d) => (r(), i("button", {
|
486
491
|
key: d == null ? void 0 : d.name,
|
487
492
|
onClick: d == null ? void 0 : d.function,
|
488
493
|
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"
|
489
494
|
}, [
|
490
|
-
|
491
|
-
class:
|
495
|
+
a("span", {
|
496
|
+
class: w(["h-[14px] w-[14px] border rounded-full flex items-center justify-center", { "border-blue-500": (d == null ? void 0 : d.name) === s.activeAction }])
|
492
497
|
}, [
|
493
|
-
(d == null ? void 0 : d.name) === s.activeAction ? (r(), i("span",
|
498
|
+
(d == null ? void 0 : d.name) === s.activeAction ? (r(), i("span", Wt)) : k("", !0)
|
494
499
|
], 2),
|
495
|
-
|
496
|
-
], 8,
|
500
|
+
P(" " + A(d == null ? void 0 : d.label), 1)
|
501
|
+
], 8, Ht))), 128))
|
497
502
|
]),
|
498
|
-
|
499
|
-
(r(!0), i($, null, V(n.columns, (d,
|
503
|
+
a("div", Kt, [
|
504
|
+
(r(!0), i($, null, V(n.columns, (d, y) => (r(), i("div", {
|
500
505
|
class: "flex items-center",
|
501
|
-
key:
|
506
|
+
key: y,
|
502
507
|
style: { width: "calc((100% - 10px) / 2)" }
|
503
508
|
}, [
|
504
|
-
|
509
|
+
x(p, {
|
505
510
|
class: "[&>label]:text-sm [&>label]:text-gray-800 [&>label]:ms-3 !gap-x-[1px] !p-0",
|
506
511
|
modelValue: s.cols,
|
507
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
512
|
+
"onUpdate:modelValue": e[1] || (e[1] = (m) => s.cols = m),
|
508
513
|
value: d == null ? void 0 : d.name,
|
509
514
|
label: d == null ? void 0 : d.ua
|
510
515
|
}, null, 8, ["modelValue", "value", "label"])
|
511
516
|
]))), 128))
|
512
517
|
])
|
513
518
|
]),
|
514
|
-
|
515
|
-
e[10] || (e[10] =
|
516
|
-
|
517
|
-
(r(!0), i($, null, V(s.tableFormats, (d,
|
519
|
+
a("div", Jt, [
|
520
|
+
e[10] || (e[10] = a("h2", { class: "text-sm font-[600] text-gray-500" }, " Виберіть формат таблиці: ", -1)),
|
521
|
+
a("div", Gt, [
|
522
|
+
(r(!0), i($, null, V(s.tableFormats, (d, y) => (r(), i("div", {
|
518
523
|
class: "flex items-center",
|
519
|
-
key:
|
524
|
+
key: y
|
520
525
|
}, [
|
521
|
-
|
526
|
+
a("input", {
|
522
527
|
type: "radio",
|
523
528
|
name: "hs-pro-duecmfm",
|
524
529
|
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",
|
525
530
|
id: d,
|
526
|
-
onChange: (
|
527
|
-
}, null, 40,
|
528
|
-
|
531
|
+
onChange: (m) => l.selectFormat(d)
|
532
|
+
}, null, 40, Qt),
|
533
|
+
a("label", {
|
529
534
|
for: d,
|
530
535
|
class: "text-sm text-gray-800 ms-3 dark:text-neutral-400"
|
531
|
-
}, " Формат " +
|
536
|
+
}, " Формат " + A(d), 9, Xt)
|
532
537
|
]))), 128))
|
533
538
|
])
|
534
539
|
])
|
@@ -538,7 +543,7 @@ function Xt(t, e, n, o, s, a) {
|
|
538
543
|
}, 8, ["visible"])
|
539
544
|
], 64);
|
540
545
|
}
|
541
|
-
const
|
546
|
+
const ts = /* @__PURE__ */ S(Ot, [["render", es]]), ss = {}, ns = {
|
542
547
|
xmlns: "http://www.w3.org/2000/svg",
|
543
548
|
viewBox: "0 0 24 24",
|
544
549
|
fill: "none",
|
@@ -548,16 +553,16 @@ const Yt = /* @__PURE__ */ T(zt, [["render", Xt]]), Zt = {}, es = {
|
|
548
553
|
"stroke-linejoin": "round",
|
549
554
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-columns"
|
550
555
|
};
|
551
|
-
function
|
552
|
-
return r(), i("svg",
|
553
|
-
|
556
|
+
function ls(t, e, n, o, s, l) {
|
557
|
+
return r(), i("svg", ns, e[0] || (e[0] = [
|
558
|
+
dt('<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)
|
554
559
|
]));
|
555
560
|
}
|
556
|
-
const
|
561
|
+
const as = /* @__PURE__ */ S(ss, [["render", ls]]), rs = {
|
557
562
|
props: { column: Object },
|
558
563
|
emits: ["update-column"],
|
559
564
|
components: {
|
560
|
-
IconCheck2:
|
565
|
+
IconCheck2: Ue
|
561
566
|
},
|
562
567
|
data() {
|
563
568
|
return {
|
@@ -569,28 +574,33 @@ const ss = /* @__PURE__ */ T(Zt, [["render", ts]]), ns = {
|
|
569
574
|
this.$emit("update-column", { ...this.column, hidden: !t });
|
570
575
|
}
|
571
576
|
},
|
577
|
+
computed: {
|
578
|
+
color() {
|
579
|
+
return E.value.sidebarColor || "blue";
|
580
|
+
}
|
581
|
+
},
|
572
582
|
mounted() {
|
573
583
|
var t;
|
574
584
|
((t = this.column) == null ? void 0 : t.hidden) !== !0 && (this.value = !0);
|
575
585
|
}
|
576
|
-
},
|
577
|
-
function
|
586
|
+
}, os = { class: "flex justify-between items-center py-1.5 px-3 cursor-pointer rounded-lg hover:bg-gray-100 has-[:disabled]:opacity-50 has-[:disabled]:pointer-events-none dark:hover:bg-neutral-800" }, is = { class: "flex justify-between flex-1 items-center gap-x-2.5 cursor-pointer text-[13px] text-gray-800 dark:text-neutral-300" };
|
587
|
+
function ds(t, e, n, o, s, l) {
|
578
588
|
var g, p;
|
579
|
-
const c =
|
580
|
-
return r(), i("div",
|
581
|
-
|
582
|
-
|
583
|
-
|
589
|
+
const c = f("IconCheck2");
|
590
|
+
return r(), i("div", os, [
|
591
|
+
a("label", is, [
|
592
|
+
P(A(((g = n.column) == null ? void 0 : g.ua) || ((p = n.column) == null ? void 0 : p.title)) + " ", 1),
|
593
|
+
U(a("input", {
|
584
594
|
type: "checkbox",
|
585
595
|
"onUpdate:modelValue": e[0] || (e[0] = (b) => s.value = b),
|
586
596
|
class: "hidden"
|
587
597
|
}, null, 512), [
|
588
|
-
[
|
598
|
+
[ut, s.value]
|
589
599
|
]),
|
590
|
-
|
591
|
-
class:
|
600
|
+
a("span", {
|
601
|
+
class: w(["flex items-center justify-center text-white border border-gray-300 rounded shrink-0 size-4 focus:ring-blue-500", [s.value ? "bg-" + l.color + "-600 border-0" : "bg-white"]])
|
592
602
|
}, [
|
593
|
-
|
603
|
+
x(c, {
|
594
604
|
height: "12",
|
595
605
|
width: "12"
|
596
606
|
})
|
@@ -598,8 +608,8 @@ function rs(t, e, n, o, s, a) {
|
|
598
608
|
])
|
599
609
|
]);
|
600
610
|
}
|
601
|
-
const
|
602
|
-
components: { IconColumns:
|
611
|
+
const us = /* @__PURE__ */ S(rs, [["render", ds]]), cs = {
|
612
|
+
components: { IconColumns: as, AdminTableColumnsHiddenItem: us },
|
603
613
|
emits: ["update-columns"],
|
604
614
|
props: { columns: Array },
|
605
615
|
data() {
|
@@ -613,8 +623,8 @@ const os = /* @__PURE__ */ T(ns, [["render", rs]]), is = {
|
|
613
623
|
var t;
|
614
624
|
return (t = this.columns) == null ? void 0 : t.filter(
|
615
625
|
(e) => {
|
616
|
-
var n, o, s,
|
617
|
-
return ((s = (n = e == null ? void 0 : e.ua) == null ? void 0 : n.toLowerCase()) == null ? void 0 : s.includes((o = this.searchValue) == null ? void 0 : o.toLowerCase())) || ((g = (
|
626
|
+
var n, o, s, l, c, g;
|
627
|
+
return ((s = (n = e == null ? void 0 : e.ua) == null ? void 0 : n.toLowerCase()) == null ? void 0 : s.includes((o = this.searchValue) == null ? void 0 : o.toLowerCase())) || ((g = (l = e == null ? void 0 : e.title) == null ? void 0 : l.toLowerCase()) == null ? void 0 : g.includes((c = this.searchValue) == null ? void 0 : c.toLowerCase()));
|
618
628
|
}
|
619
629
|
);
|
620
630
|
}
|
@@ -635,66 +645,66 @@ const os = /* @__PURE__ */ T(ns, [["render", rs]]), is = {
|
|
635
645
|
beforeUnmount() {
|
636
646
|
document.removeEventListener("click", this.handleClickOutside);
|
637
647
|
}
|
638
|
-
},
|
648
|
+
}, hs = {
|
639
649
|
class: "relative",
|
640
650
|
ref: "wrapper"
|
641
|
-
},
|
651
|
+
}, ps = {
|
642
652
|
key: 0,
|
643
653
|
class: "absolute left-[50%] top-[110%] translate-x-[-50%] z-10 w-64 transition-[opacity,margin] duration bg-white rounded-xl shadow-lg dark:bg-neutral-900"
|
644
|
-
},
|
654
|
+
}, bs = { class: "relative p-1 border-gray-200 border-y dark:border-neutral-800" }, fs = { class: "p-1 pt-3 max-h-80 overflow-y-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500" }, gs = {
|
645
655
|
key: 0,
|
646
656
|
class: "block px-3 mb-2 text-xs text-gray-500 dark:text-neutral-500"
|
647
|
-
},
|
657
|
+
}, ms = { class: "space-y-1" }, xs = {
|
648
658
|
key: 1,
|
649
659
|
class: "flex items-center px-3 text-[13px] py-1.5 px-3 rounded-md cursor-pointer group"
|
650
660
|
};
|
651
|
-
function
|
652
|
-
const c =
|
653
|
-
return r(), i("div",
|
654
|
-
|
655
|
-
onClick: e[0] || (e[0] = (...p) =>
|
661
|
+
function ys(t, e, n, o, s, l) {
|
662
|
+
const c = f("IconColumns"), g = f("AdminTableColumnsHiddenItem");
|
663
|
+
return r(), i("div", hs, [
|
664
|
+
a("button", {
|
665
|
+
onClick: e[0] || (e[0] = (...p) => l.toggleVisible && l.toggleVisible(...p)),
|
656
666
|
class: "py-2 max-h-[34px] px-2.5 md:inline-flex hidden items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"
|
657
667
|
}, [
|
658
|
-
|
668
|
+
x(c, {
|
659
669
|
height: "20",
|
660
670
|
width: "16"
|
661
671
|
})
|
662
672
|
]),
|
663
|
-
|
664
|
-
default:
|
673
|
+
x(W, { name: "fade" }, {
|
674
|
+
default: D(() => {
|
665
675
|
var p, b;
|
666
676
|
return [
|
667
|
-
s.visible ? (r(), i("div",
|
668
|
-
e[2] || (e[2] =
|
669
|
-
|
670
|
-
|
677
|
+
s.visible ? (r(), i("div", ps, [
|
678
|
+
e[2] || (e[2] = a("div", { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-2 text-sm font-medium text-gray-800" }, " Колонки ", -1)),
|
679
|
+
a("div", bs, [
|
680
|
+
U(a("input", {
|
671
681
|
"onUpdate:modelValue": e[1] || (e[1] = (d) => s.searchValue = d),
|
672
682
|
type: "text",
|
673
683
|
class: "py-1.5 px-3 block w-full border-transparent rounded-lg sm:text-sm text-base placeholder:text-gray-500 hover:bg-gray-100 focus:outline-none focus:border-transparent focus:ring-0 focus:bg-gray-100 disabled:opacity-100 disabled:pointer-events-none dark:bg-transparent dark:border-transparent dark:text-neutral-400 dark:placeholder:text-neutral-400 dark:hover:bg-neutral-800 dark:focus:ring-neutral-600 dark:focus:bg-neutral-800",
|
674
684
|
placeholder: "Пошук",
|
675
685
|
autofocus: ""
|
676
686
|
}, null, 512), [
|
677
|
-
[
|
687
|
+
[ct, s.searchValue]
|
678
688
|
])
|
679
689
|
]),
|
680
|
-
|
681
|
-
(p =
|
682
|
-
|
683
|
-
(b =
|
684
|
-
key:
|
690
|
+
a("div", fs, [
|
691
|
+
(p = l.filteredColumn) != null && p.length ? (r(), i("span", gs, " Оберіть колонки для відображення ")) : k("", !0),
|
692
|
+
a("div", ms, [
|
693
|
+
(b = l.filteredColumn) != null && b.length ? (r(!0), i($, { key: 0 }, V(l.filteredColumn, (d, y) => (r(), v(g, {
|
694
|
+
key: y,
|
685
695
|
column: d,
|
686
|
-
onUpdateColumn:
|
687
|
-
}, null, 8, ["column", "onUpdateColumn"]))), 128)) : (r(), i("div",
|
696
|
+
onUpdateColumn: l.updateColumn
|
697
|
+
}, null, 8, ["column", "onUpdateColumn"]))), 128)) : (r(), i("div", xs, " Нічого не знайдено "))
|
688
698
|
])
|
689
699
|
])
|
690
|
-
])) :
|
700
|
+
])) : k("", !0)
|
691
701
|
];
|
692
702
|
}),
|
693
703
|
_: 1
|
694
704
|
})
|
695
705
|
], 512);
|
696
706
|
}
|
697
|
-
const
|
707
|
+
const vs = /* @__PURE__ */ S(cs, [["render", ys]]), ks = {}, _s = {
|
698
708
|
xmlns: "http://www.w3.org/2000/svg",
|
699
709
|
viewBox: "0 0 24 24",
|
700
710
|
fill: "none",
|
@@ -704,18 +714,18 @@ const ms = /* @__PURE__ */ T(is, [["render", gs]]), xs = {}, ys = {
|
|
704
714
|
"stroke-linejoin": "round",
|
705
715
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-minus"
|
706
716
|
};
|
707
|
-
function
|
708
|
-
return r(), i("svg",
|
709
|
-
|
717
|
+
function Cs(t, e, n, o, s, l) {
|
718
|
+
return r(), i("svg", _s, e[0] || (e[0] = [
|
719
|
+
a("path", {
|
710
720
|
stroke: "none",
|
711
721
|
d: "M0 0h24v24H0z",
|
712
722
|
fill: "none"
|
713
723
|
}, null, -1),
|
714
|
-
|
724
|
+
a("path", { d: "M5 12l14 0" }, null, -1)
|
715
725
|
]));
|
716
726
|
}
|
717
|
-
const
|
718
|
-
components: { IconPlus:
|
727
|
+
const ws = /* @__PURE__ */ S(ks, [["render", Cs]]), $s = {
|
728
|
+
components: { IconPlus: Q, IconMinus: ws },
|
719
729
|
props: {
|
720
730
|
title: String,
|
721
731
|
defaultValue: { type: Boolean, default: () => !1 }
|
@@ -723,35 +733,35 @@ const vs = /* @__PURE__ */ T(xs, [["render", ks]]), _s = {
|
|
723
733
|
data() {
|
724
734
|
return { expanded: this.defaultValue };
|
725
735
|
}
|
726
|
-
},
|
727
|
-
function
|
728
|
-
const c =
|
736
|
+
}, Ss = { class: "hs-accordion" }, Ts = { class: "py-0.5 flex items-center gap-x-0.5 w-full" }, As = { class: "text-sm font-medium" }, Is = { class: "relative inline-block w-full duration-150 cursor-pointer before:block before:absolute b" };
|
737
|
+
function Ds(t, e, n, o, s, l) {
|
738
|
+
const c = f("IconPlus"), g = f("IconMinus");
|
729
739
|
return r(), i("div", null, [
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
|
740
|
+
a("div", null, [
|
741
|
+
a("div", Ss, [
|
742
|
+
a("div", Ts, [
|
743
|
+
a("div", {
|
734
744
|
onClick: e[0] || (e[0] = (p) => s.expanded = !s.expanded),
|
735
745
|
class: "rounded-md cursor-pointer grow"
|
736
746
|
}, [
|
737
|
-
|
747
|
+
a("span", As, A(n.title), 1)
|
738
748
|
]),
|
739
|
-
|
749
|
+
a("button", {
|
740
750
|
class: "flex items-center justify-center rounded-md size-6 hover:bg-gray-100",
|
741
751
|
onClick: e[1] || (e[1] = (p) => s.expanded = !s.expanded)
|
742
752
|
}, [
|
743
|
-
s.expanded ? (r(),
|
753
|
+
s.expanded ? (r(), v(g, {
|
744
754
|
key: 1,
|
745
755
|
width: "14"
|
746
|
-
})) : (r(),
|
756
|
+
})) : (r(), v(c, { key: 0 }))
|
747
757
|
])
|
748
758
|
]),
|
749
|
-
|
750
|
-
default:
|
751
|
-
|
752
|
-
|
759
|
+
x(W, { name: "fade" }, {
|
760
|
+
default: D(() => [
|
761
|
+
U(a("div", Is, [
|
762
|
+
ht(t.$slots, "default", {}, void 0, !0)
|
753
763
|
], 512), [
|
754
|
-
[
|
764
|
+
[Y, s.expanded]
|
755
765
|
])
|
756
766
|
]),
|
757
767
|
_: 3
|
@@ -760,126 +770,66 @@ function As(t, e, n, o, s, a) {
|
|
760
770
|
])
|
761
771
|
]);
|
762
772
|
}
|
763
|
-
const
|
773
|
+
const Vs = /* @__PURE__ */ S($s, [["render", Ds], ["__scopeId", "data-v-c6318482"]]), Ps = {
|
764
774
|
components: {
|
765
|
-
AdminComponentIs:
|
766
|
-
AdminTree:
|
767
|
-
VsNoData:
|
768
|
-
VsWidgetComments:
|
769
|
-
VsWidgetMap:
|
770
|
-
VsWidgetFileList:
|
775
|
+
AdminComponentIs: X,
|
776
|
+
AdminTree: Vs,
|
777
|
+
VsNoData: Ye,
|
778
|
+
VsWidgetComments: Ze,
|
779
|
+
VsWidgetMap: et,
|
780
|
+
VsWidgetFileList: tt
|
771
781
|
},
|
772
782
|
props: { table: String, columns: Array, row: Object }
|
773
|
-
},
|
774
|
-
class: "hs-accordion
|
783
|
+
}, Fs = {
|
784
|
+
class: "pl-2 hs-accordion 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",
|
775
785
|
style: { height: "calc(100vh - 310px)" }
|
776
|
-
},
|
777
|
-
|
778
|
-
|
779
|
-
},
|
780
|
-
function
|
781
|
-
var
|
782
|
-
const c =
|
783
|
-
return r(), i("div",
|
784
|
-
e[0] || (e[0] =
|
785
|
-
|
786
|
+
}, js = {
|
787
|
+
style: { height: "calc(100vh - 360px)" },
|
788
|
+
class: "pl-2"
|
789
|
+
}, Ls = { class: "flow-root mt-[10px]" }, Ms = { class: "divide-y divide-gray-100 text-[12px]" }, zs = { class: "grid grid-cols-1 gap-1 py-3 even:bg-gray-50 sm:grid-cols-3 sm:gap-4" }, qs = { class: "font-medium text-gray-900" }, Bs = { class: "text-gray-700 sm:col-span-2" };
|
790
|
+
function Os(t, e, n, o, s, l) {
|
791
|
+
var b, d, y, m;
|
792
|
+
const c = f("AdminComponentIs"), g = f("VsWidgetFileList"), p = f("VsNoData");
|
793
|
+
return r(), i("div", Fs, [
|
794
|
+
e[0] || (e[0] = a("div", { class: "pl-[10px] py-[9px]" }, [
|
795
|
+
a("h2", { class: "text-sm font-medium text-center" }, "Інформація про об'єкт")
|
786
796
|
], -1)),
|
787
|
-
|
788
|
-
(
|
789
|
-
|
790
|
-
|
791
|
-
|
792
|
-
|
793
|
-
|
794
|
-
|
795
|
-
|
796
|
-
|
797
|
-
|
798
|
-
|
799
|
-
l("dt", Ls, S((m == null ? void 0 : m.ua) || (m == null ? void 0 : m.title)), 1),
|
800
|
-
l("dd", Ms, [
|
801
|
-
y(c, {
|
802
|
-
row: n.row,
|
803
|
-
column: m,
|
804
|
-
table: n.table
|
805
|
-
}, null, 8, ["row", "column", "table"])
|
806
|
-
])
|
807
|
-
]))), 256))
|
808
|
-
])
|
809
|
-
])
|
810
|
-
]),
|
811
|
-
_: 1
|
812
|
-
})) : v("", !0),
|
813
|
-
(C = n.row) != null && C.geom ? (r(), k(g, {
|
814
|
-
key: 1,
|
815
|
-
title: "Карта",
|
816
|
-
class: "border-b p-[10px] py-[16px]"
|
817
|
-
}, {
|
818
|
-
default: I(() => {
|
819
|
-
var m, w;
|
820
|
-
return [
|
821
|
-
(m = n.row) != null && m.geom ? (r(), k(p, {
|
822
|
-
key: 0,
|
823
|
-
geometry: (w = n.row) == null ? void 0 : w.geom,
|
824
|
-
zoom: 14
|
825
|
-
}, null, 8, ["geometry"])) : (r(), k(b, {
|
826
|
-
key: 1,
|
827
|
-
title: "У об'єкта відсутня геометрія",
|
828
|
-
text: "",
|
829
|
-
class: "[&>div]:h-[200px] [&>div]:min-h-[400px] h-[400px]"
|
830
|
-
}))
|
831
|
-
];
|
832
|
-
}),
|
833
|
-
_: 1
|
834
|
-
})) : v("", !0),
|
835
|
-
y(g, {
|
836
|
-
title: "Коментарі",
|
837
|
-
class: "border-b p-[10px] py-[16px]"
|
838
|
-
}, {
|
839
|
-
default: I(() => {
|
840
|
-
var m;
|
841
|
-
return [
|
842
|
-
l("div", zs, [
|
843
|
-
y(d, {
|
844
|
-
id: (m = n.row) == null ? void 0 : m.id
|
845
|
-
}, null, 8, ["id"])
|
846
|
-
])
|
847
|
-
];
|
848
|
-
}),
|
849
|
-
_: 1
|
850
|
-
}),
|
851
|
-
y(g, {
|
852
|
-
title: "Файли",
|
853
|
-
class: "border-b p-[10px] py-[16px]"
|
854
|
-
}, {
|
855
|
-
default: I(() => {
|
856
|
-
var m, w;
|
857
|
-
return [
|
858
|
-
l("div", qs, [
|
859
|
-
(r(), k(_, {
|
860
|
-
key: (m = n.row) == null ? void 0 : m.id,
|
861
|
-
id: (w = n.row) == null ? void 0 : w.id
|
862
|
-
}, null, 8, ["id"]))
|
797
|
+
a("div", js, [
|
798
|
+
(d = (b = t.$route) == null ? void 0 : b.query) != null && d.card ? (r(), i($, { key: 0 }, [
|
799
|
+
a("div", Ls, [
|
800
|
+
a("dl", Ms, [
|
801
|
+
(r(!0), i($, null, V(n.columns, (h) => (r(), i("div", zs, [
|
802
|
+
a("dt", qs, A((h == null ? void 0 : h.ua) || (h == null ? void 0 : h.title)), 1),
|
803
|
+
a("dd", Bs, [
|
804
|
+
x(c, {
|
805
|
+
row: n.row,
|
806
|
+
column: h,
|
807
|
+
table: n.table
|
808
|
+
}, null, 8, ["row", "column", "table"])
|
863
809
|
])
|
864
|
-
]
|
865
|
-
|
866
|
-
|
867
|
-
|
868
|
-
|
810
|
+
]))), 256))
|
811
|
+
])
|
812
|
+
]),
|
813
|
+
(r(), v(g, {
|
814
|
+
key: (y = n.row) == null ? void 0 : y.id,
|
815
|
+
id: (m = n.row) == null ? void 0 : m.id,
|
816
|
+
class: "mt-10"
|
817
|
+
}, null, 8, ["id"]))
|
818
|
+
], 64)) : (r(), v(p, {
|
869
819
|
key: 1,
|
870
820
|
text: "Оберіть один з об'єктів в таблиці для відображення інформаціі про нього"
|
871
821
|
}))
|
872
822
|
])
|
873
823
|
]);
|
874
824
|
}
|
875
|
-
const
|
825
|
+
const Ns = /* @__PURE__ */ S(Ps, [["render", Os]]), Es = {
|
876
826
|
emits: ["filterChange"],
|
877
827
|
props: {
|
878
828
|
scheme: { type: Object },
|
879
829
|
onFilters: { type: Number },
|
880
830
|
table: { type: String }
|
881
831
|
},
|
882
|
-
components: { IconFilter:
|
832
|
+
components: { IconFilter: st },
|
883
833
|
data() {
|
884
834
|
return {
|
885
835
|
isFilters: !1
|
@@ -890,36 +840,36 @@ const Os = /* @__PURE__ */ T(Is, [["render", Bs]]), Ns = {
|
|
890
840
|
this.isFilters && t.classList.contains("filter-container") && (this.isFilters = !1);
|
891
841
|
}
|
892
842
|
}
|
893
|
-
},
|
843
|
+
}, Us = {
|
894
844
|
key: 0,
|
895
845
|
class: "px-[7px] text-[10px] py-[1px] font-[700] text-white bg-blue-500 rounded-full"
|
896
|
-
},
|
897
|
-
function
|
898
|
-
const c =
|
846
|
+
}, Rs = { class: "filter-content h-screen bg-white w-[400px] overflow-x-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar:horizontal]:h-[8px] [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500" };
|
847
|
+
function Hs(t, e, n, o, s, l) {
|
848
|
+
const c = f("IconFilter"), g = f("VsFilter");
|
899
849
|
return r(), i($, null, [
|
900
|
-
|
850
|
+
a("button", {
|
901
851
|
onClick: e[0] || (e[0] = (p) => s.isFilters = !s.isFilters),
|
902
852
|
class: "py-2 px-2.5 max-h-[34px] inline-flex items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none"
|
903
853
|
}, [
|
904
|
-
|
854
|
+
x(c, {
|
905
855
|
height: "16",
|
906
856
|
width: "16"
|
907
857
|
}),
|
908
|
-
e[4] || (e[4] =
|
909
|
-
n.onFilters ? (r(), i("span",
|
858
|
+
e[4] || (e[4] = P(" Фільтри ")),
|
859
|
+
n.onFilters ? (r(), i("span", Us, A(n.onFilters), 1)) : k("", !0)
|
910
860
|
]),
|
911
|
-
|
912
|
-
default:
|
861
|
+
x(W, { name: "fade" }, {
|
862
|
+
default: D(() => {
|
913
863
|
var p;
|
914
864
|
return [
|
915
|
-
(r(),
|
916
|
-
|
917
|
-
onClick: e[3] || (e[3] = (...b) =>
|
865
|
+
(r(), v(pt, { to: "#modal" }, [
|
866
|
+
U(a("div", {
|
867
|
+
onClick: e[3] || (e[3] = (...b) => l.closeFilter && l.closeFilter(...b)),
|
918
868
|
style: { height: "100vh" },
|
919
869
|
class: "fixed filter-container top-0 flex justify-end items-center z-[12] right-0 left-0 bottom-0 bg-[rgba(0,0,0,0.2)]"
|
920
870
|
}, [
|
921
|
-
|
922
|
-
(p = n.scheme) != null && p.length ? (r(),
|
871
|
+
a("div", Rs, [
|
872
|
+
(p = n.scheme) != null && p.length ? (r(), v(g, {
|
923
873
|
key: 0,
|
924
874
|
ref: "filter",
|
925
875
|
scheme: n.scheme,
|
@@ -933,10 +883,10 @@ function Ws(t, e, n, o, s, a) {
|
|
933
883
|
onFilterChange: e[1] || (e[1] = (b) => t.$emit("filterChange", b)),
|
934
884
|
closeFilterBtn: !0,
|
935
885
|
onFilterClose: e[2] || (e[2] = (b) => s.isFilters = !1)
|
936
|
-
}, null, 8, ["scheme", "token"])) :
|
886
|
+
}, null, 8, ["scheme", "token"])) : k("", !0)
|
937
887
|
])
|
938
888
|
], 512), [
|
939
|
-
[
|
889
|
+
[Y, s.isFilters]
|
940
890
|
])
|
941
891
|
]))
|
942
892
|
];
|
@@ -945,25 +895,25 @@ function Ws(t, e, n, o, s, a) {
|
|
945
895
|
})
|
946
896
|
], 64);
|
947
897
|
}
|
948
|
-
const
|
898
|
+
const Ws = /* @__PURE__ */ S(Es, [["render", Hs]]), Ks = {
|
949
899
|
props: { tabsList: { type: Array, default: () => [] }, filterState: String }
|
950
|
-
},
|
900
|
+
}, Js = {
|
951
901
|
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",
|
952
902
|
"aria-label": "Tabs",
|
953
903
|
role: "tablist",
|
954
904
|
"aria-orientation": "horizontal"
|
955
|
-
},
|
956
|
-
function
|
957
|
-
return r(), i("nav",
|
905
|
+
}, Gs = ["onClick"];
|
906
|
+
function Qs(t, e, n, o, s, l) {
|
907
|
+
return r(), i("nav", Js, [
|
958
908
|
(r(!0), i($, null, V(n.tabsList, (c) => (r(), i("button", {
|
959
909
|
onClick: (g) => t.$emit("update:filterState", c == null ? void 0 : c.name),
|
960
|
-
class:
|
910
|
+
class: w(["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", {
|
961
911
|
" 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": (c == null ? void 0 : c.name) === n.filterState
|
962
912
|
}])
|
963
|
-
},
|
913
|
+
}, A(c == null ? void 0 : c.label), 11, Gs))), 256))
|
964
914
|
]);
|
965
915
|
}
|
966
|
-
const
|
916
|
+
const Xs = /* @__PURE__ */ S(Ks, [["render", Qs]]), Ys = {}, Zs = {
|
967
917
|
xmlns: "http://www.w3.org/2000/svg",
|
968
918
|
viewBox: "0 0 24 24",
|
969
919
|
fill: "none",
|
@@ -973,51 +923,51 @@ const Qs = /* @__PURE__ */ T(Hs, [["render", Gs]]), Xs = {}, Ys = {
|
|
973
923
|
"stroke-linejoin": "round",
|
974
924
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-filter"
|
975
925
|
};
|
976
|
-
function
|
977
|
-
return r(), i("svg",
|
978
|
-
|
926
|
+
function en(t, e, n, o, s, l) {
|
927
|
+
return r(), i("svg", Zs, e[0] || (e[0] = [
|
928
|
+
a("path", {
|
979
929
|
stroke: "none",
|
980
930
|
d: "M0 0h24v24H0z",
|
981
931
|
fill: "none"
|
982
932
|
}, null, -1),
|
983
|
-
|
933
|
+
a("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)
|
984
934
|
]));
|
985
935
|
}
|
986
|
-
const
|
987
|
-
components: { IconFilter2:
|
936
|
+
const tn = /* @__PURE__ */ S(Ys, [["render", en]]), sn = {
|
937
|
+
components: { IconFilter2: tn, IconCheck2: Ue },
|
988
938
|
props: { filterCustom: String, customList: Array }
|
989
|
-
},
|
990
|
-
function
|
991
|
-
const c =
|
992
|
-
return r(),
|
939
|
+
}, nn = { class: "py-2 max-h-[34px] px-2.5 inline-flex items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700" }, ln = { class: "flex flex-col p-[2px] gap-[2px] w-[170px]" }, an = ["onClick"], rn = { class: "text-sm text-gray-800" };
|
940
|
+
function on(t, e, n, o, s, l) {
|
941
|
+
const c = f("IconFilter2"), g = f("IconCheck2"), p = f("VsPopover");
|
942
|
+
return r(), v(p, {
|
993
943
|
ref: "popover",
|
994
944
|
placement: "bottom"
|
995
945
|
}, {
|
996
|
-
reference:
|
997
|
-
|
998
|
-
|
946
|
+
reference: D(() => [
|
947
|
+
a("button", nn, [
|
948
|
+
x(c, {
|
999
949
|
height: "20",
|
1000
950
|
width: "20"
|
1001
951
|
})
|
1002
952
|
])
|
1003
953
|
]),
|
1004
|
-
default:
|
1005
|
-
|
954
|
+
default: D(() => [
|
955
|
+
a("div", ln, [
|
1006
956
|
(r(!0), i($, null, V(n.customList, (b, d) => (r(), i("button", {
|
1007
|
-
onClick: (
|
1008
|
-
var
|
1009
|
-
t.$emit("update:filterCustom", b == null ? void 0 : b.name), (
|
957
|
+
onClick: (y) => {
|
958
|
+
var m;
|
959
|
+
t.$emit("update:filterCustom", b == null ? void 0 : b.name), (m = t.$refs) == null || m.popover.togglePopover();
|
1010
960
|
},
|
1011
961
|
key: d,
|
1012
|
-
class:
|
962
|
+
class: w(["flex items-center px-3 py-1 rounded-md cursor-pointer group hover:bg-gray-100", { "bg-gray-100": n.filterCustom === (b == null ? void 0 : b.name) }])
|
1013
963
|
}, [
|
1014
|
-
|
1015
|
-
n.filterCustom === (b == null ? void 0 : b.name) ? (r(),
|
964
|
+
a("span", rn, A(b == null ? void 0 : b.label), 1),
|
965
|
+
n.filterCustom === (b == null ? void 0 : b.name) ? (r(), v(g, {
|
1016
966
|
key: 0,
|
1017
967
|
class: "ml-auto size-3 shrink-0"
|
1018
|
-
})) :
|
1019
|
-
], 10,
|
1020
|
-
|
968
|
+
})) : k("", !0)
|
969
|
+
], 10, an))), 128)),
|
970
|
+
a("button", {
|
1021
971
|
class: "flex items-center px-3 py-1 rounded-md cursor-pointer group hover:bg-gray-100",
|
1022
972
|
onClick: e[0] || (e[0] = (b) => {
|
1023
973
|
var d;
|
@@ -1029,67 +979,67 @@ function rn(t, e, n, o, s, a) {
|
|
1029
979
|
_: 1
|
1030
980
|
}, 512);
|
1031
981
|
}
|
1032
|
-
const
|
982
|
+
const dn = /* @__PURE__ */ S(sn, [["render", on]]), un = { class: "flex items-center gap-x-2" }, cn = {
|
1033
983
|
__name: "admin-table-custom-buttons",
|
1034
984
|
props: {
|
1035
985
|
slots: Object,
|
1036
986
|
data: Object
|
1037
987
|
},
|
1038
988
|
setup(t) {
|
1039
|
-
var g, p, b, d,
|
1040
|
-
const { asyncTemplateSlot: e } = (
|
1041
|
-
var
|
1042
|
-
if ((
|
1043
|
-
const
|
989
|
+
var g, p, b, d, y;
|
990
|
+
const { asyncTemplateSlot: e } = (y = (d = (b = (p = (g = Re()) == null ? void 0 : g.appContext) == null ? void 0 : p.app) == null ? void 0 : b.config) == null ? void 0 : d.globalProperties) == null ? void 0 : y.utils, n = J(""), o = J(""), s = t, l = () => {
|
991
|
+
var m, h, _, C, I;
|
992
|
+
if ((m = s.slots) != null && m.panelLeft || (o.value = "div"), (_ = (h = s.slots) == null ? void 0 : h.panelLeft) != null && _.includes("<")) {
|
993
|
+
const T = e("PanelLeft", (C = s.slots) == null ? void 0 : C.panelLeft, [
|
1044
994
|
"name"
|
1045
995
|
]);
|
1046
|
-
o.value =
|
996
|
+
o.value = T;
|
1047
997
|
} else
|
1048
|
-
o.value = (
|
998
|
+
o.value = (I = s.slots) == null ? void 0 : I.panelLeft;
|
1049
999
|
}, c = () => {
|
1050
|
-
var
|
1051
|
-
if ((
|
1052
|
-
const
|
1000
|
+
var m, h, _, C, I;
|
1001
|
+
if ((m = s.slots) != null && m.panelRight || (n.value = "div"), (_ = (h = s.slots) == null ? void 0 : h.panelRight) != null && _.includes("<")) {
|
1002
|
+
const T = e("PanelRight", (C = s.slots) == null ? void 0 : C.panelRight, [
|
1053
1003
|
"name"
|
1054
1004
|
]);
|
1055
|
-
n.value =
|
1005
|
+
n.value = T;
|
1056
1006
|
} else
|
1057
|
-
n.value = (
|
1007
|
+
n.value = (I = s.slots) == null ? void 0 : I.panelRight;
|
1058
1008
|
};
|
1059
|
-
return
|
1060
|
-
(r(),
|
1061
|
-
(r(),
|
1009
|
+
return l(), c(), (m, h) => (r(), i("div", un, [
|
1010
|
+
(r(), v(G(o.value), { data: t.data }, null, 8, ["data"])),
|
1011
|
+
(r(), v(G(n.value), { data: t.data }, null, 8, ["data"]))
|
1062
1012
|
]));
|
1063
1013
|
}
|
1064
|
-
},
|
1014
|
+
}, hn = {
|
1065
1015
|
__name: "admin-custom-button-add",
|
1066
1016
|
props: {
|
1067
1017
|
slots: Object
|
1068
1018
|
},
|
1069
1019
|
setup(t) {
|
1070
|
-
var
|
1071
|
-
const { asyncTemplateSlot: e } = (b = (p = (g = (c = (
|
1020
|
+
var l, c, g, p, b;
|
1021
|
+
const { asyncTemplateSlot: e } = (b = (p = (g = (c = (l = Re()) == null ? void 0 : l.appContext) == null ? void 0 : c.app) == null ? void 0 : g.config) == null ? void 0 : p.globalProperties) == null ? void 0 : b.utils, n = J(""), o = t;
|
1072
1022
|
return (() => {
|
1073
|
-
var d,
|
1074
|
-
if ((d = o.slots) != null && d.addButton || (n.value = "div"), (
|
1075
|
-
const
|
1023
|
+
var d, y, m, h, _;
|
1024
|
+
if ((d = o.slots) != null && d.addButton || (n.value = "div"), (m = (y = o.slots) == null ? void 0 : y.addButton) != null && m.includes("<")) {
|
1025
|
+
const C = e("addButton", (h = o.slots) == null ? void 0 : h.addButton, [
|
1076
1026
|
"IconPlus"
|
1077
1027
|
]);
|
1078
|
-
n.value =
|
1028
|
+
n.value = C;
|
1079
1029
|
} else
|
1080
|
-
n.value = (
|
1081
|
-
})(), (d,
|
1030
|
+
n.value = (_ = o.slots) == null ? void 0 : _.addButton;
|
1031
|
+
})(), (d, y) => n.value ? (r(), v(G(n.value), {
|
1082
1032
|
key: 0,
|
1083
|
-
IconPlus:
|
1084
|
-
})) :
|
1033
|
+
IconPlus: Q
|
1034
|
+
})) : k("", !0);
|
1085
1035
|
}
|
1086
1036
|
}, pn = {
|
1087
1037
|
key: 0,
|
1088
1038
|
class: "px-1 py-3 text-gray-800 font-[500]"
|
1089
|
-
},
|
1039
|
+
}, bn = {
|
1090
1040
|
key: 1,
|
1091
1041
|
class: "px-1 py-3 text-gray-800 font-[700]"
|
1092
|
-
},
|
1042
|
+
}, fn = {
|
1093
1043
|
__name: "admin-table-totals-list",
|
1094
1044
|
props: {
|
1095
1045
|
columns: { type: Array, default: () => [] },
|
@@ -1104,16 +1054,16 @@ const on = /* @__PURE__ */ T(tn, [["render", rn]]), dn = { class: "flex items-ce
|
|
1104
1054
|
key: o == null ? void 0 : o.name
|
1105
1055
|
}, [
|
1106
1056
|
(s = t.agg) != null && s[o == null ? void 0 : o.name] ? (r(), i("td", pn, [
|
1107
|
-
|
1057
|
+
x(X, {
|
1108
1058
|
column: o,
|
1109
1059
|
row: t.agg
|
1110
1060
|
}, null, 8, ["column", "row"])
|
1111
|
-
])) : (r(), i("td",
|
1061
|
+
])) : (r(), i("td", bn))
|
1112
1062
|
], 64);
|
1113
1063
|
}), 128))
|
1114
1064
|
]));
|
1115
1065
|
}
|
1116
|
-
},
|
1066
|
+
}, gn = {}, mn = {
|
1117
1067
|
xmlns: "http://www.w3.org/2000/svg",
|
1118
1068
|
viewBox: "0 0 24 24",
|
1119
1069
|
fill: "none",
|
@@ -1123,18 +1073,18 @@ const on = /* @__PURE__ */ T(tn, [["render", rn]]), dn = { class: "flex items-ce
|
|
1123
1073
|
"stroke-linejoin": "round",
|
1124
1074
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-check"
|
1125
1075
|
};
|
1126
|
-
function
|
1127
|
-
return r(), i("svg",
|
1128
|
-
|
1076
|
+
function xn(t, e, n, o, s, l) {
|
1077
|
+
return r(), i("svg", mn, e[0] || (e[0] = [
|
1078
|
+
a("path", {
|
1129
1079
|
stroke: "none",
|
1130
1080
|
d: "M0 0h24v24H0z",
|
1131
1081
|
fill: "none"
|
1132
1082
|
}, null, -1),
|
1133
|
-
|
1083
|
+
a("path", { d: "M5 12l5 5l10 -10" }, null, -1)
|
1134
1084
|
]));
|
1135
1085
|
}
|
1136
|
-
const
|
1137
|
-
components: { IconChevronDown:
|
1086
|
+
const yn = /* @__PURE__ */ S(gn, [["render", xn]]), vn = bt({
|
1087
|
+
components: { IconChevronDown: nt, IconCheck: yn },
|
1138
1088
|
props: {
|
1139
1089
|
total: { type: Number, default: () => 0 },
|
1140
1090
|
pageSize: { type: Number, default: () => 20 },
|
@@ -1203,7 +1153,7 @@ const xn = /* @__PURE__ */ T(fn, [["render", mn]]), yn = ct({
|
|
1203
1153
|
let n = Math.max(t - e, 1), o = n + this.maxPages - 1;
|
1204
1154
|
o > this.pagesCount && (o = this.pagesCount, n = Math.max(o - this.maxPages + 1, 1)), this.pages = Array.from(
|
1205
1155
|
{ length: o - n + 1 },
|
1206
|
-
(s,
|
1156
|
+
(s, l) => n + l
|
1207
1157
|
);
|
1208
1158
|
},
|
1209
1159
|
handleClickPrev() {
|
@@ -1219,64 +1169,64 @@ const xn = /* @__PURE__ */ T(fn, [["render", mn]]), yn = ct({
|
|
1219
1169
|
t.preventDefault(), t.target.blur();
|
1220
1170
|
}
|
1221
1171
|
}
|
1222
|
-
}), kn = { class: "flex items-center w-full" },
|
1172
|
+
}), kn = { class: "flex items-center w-full" }, _n = { class: "flex items-center mx-[8px]" }, Cn = { class: "min-h-[38px] flex justify-center items-center text-stone-500 py-2 px-1.5 text-sm" }, wn = {
|
1223
1173
|
key: 0,
|
1224
1174
|
class: "flex items-center justify-center ml-3 gap-x-5"
|
1225
|
-
},
|
1226
|
-
function An(t, e, n, o, s,
|
1227
|
-
const c =
|
1175
|
+
}, $n = { class: "relative" }, Sn = { class: "z-50 bg-white shadow-md rounded-lg p-1 space-y-0.5 dark:bg-neutral-800 dark:border dark:border-neutral-700 dark:divide-neutral-700 absolute bottom-[100%]" }, Tn = ["onClick"];
|
1176
|
+
function An(t, e, n, o, s, l) {
|
1177
|
+
const c = f("IconChevronDown"), g = f("IconCheck");
|
1228
1178
|
return r(), i("nav", kn, [
|
1229
|
-
|
1179
|
+
a("button", {
|
1230
1180
|
type: "button",
|
1231
1181
|
onClick: e[0] || (e[0] = (...p) => t.handleClickPrev && t.handleClickPrev(...p)),
|
1232
|
-
class:
|
1182
|
+
class: w(["min-h-[38px] min-w-[38px] py-2 px-2.5 inline-flex justify-center items-center gap-x-2 text-sm rounded-lg text-stone-800 hover:bg-stone-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-100", { "opacity-50 pointer-events-none": t.disablePrevClick }])
|
1233
1183
|
}, [
|
1234
|
-
|
1184
|
+
x(c, {
|
1235
1185
|
height: "16",
|
1236
1186
|
width: "16",
|
1237
1187
|
class: "rotate-90"
|
1238
1188
|
})
|
1239
1189
|
], 2),
|
1240
|
-
|
1241
|
-
|
1190
|
+
a("div", _n, [
|
1191
|
+
a("span", {
|
1242
1192
|
ref: "currentPage",
|
1243
1193
|
contenteditable: "true",
|
1244
|
-
onKeydown: e[1] || (e[1] =
|
1194
|
+
onKeydown: e[1] || (e[1] = ft((...p) => t.keydownEnter && t.keydownEnter(...p), ["enter"])),
|
1245
1195
|
onBlur: e[2] || (e[2] = (p) => t.handleSetPage(p.target.innerText)),
|
1246
1196
|
class: "min-h-[38px] max-h-[38px] overflow-hidden min-w-[38px] flex justify-center items-center bg-stone-100 text-stone-800 py-2 px-3 outline-blue-600 text-sm rounded-lg disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-700 dark:text-white"
|
1247
|
-
},
|
1248
|
-
e[5] || (e[5] =
|
1249
|
-
|
1197
|
+
}, A(t.page), 545),
|
1198
|
+
e[5] || (e[5] = a("span", { class: "min-h-[38px] flex justify-center items-center text-stone-500 py-2 px-1.5 text-sm" }, "з", -1)),
|
1199
|
+
a("span", Cn, A(t.pagesCount), 1)
|
1250
1200
|
]),
|
1251
|
-
|
1201
|
+
a("button", {
|
1252
1202
|
type: "button",
|
1253
1203
|
onClick: e[3] || (e[3] = (...p) => t.handleClickNext && t.handleClickNext(...p)),
|
1254
|
-
class:
|
1204
|
+
class: w([{ "opacity-50 pointer-events-none": t.disableNextClick }, "min-h-[38px] min-w-[38px] py-2 px-2.5 inline-flex justify-center items-center gap-x-2 text-sm rounded-lg text-stone-800 hover:bg-stone-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-100"])
|
1255
1205
|
}, [
|
1256
|
-
|
1206
|
+
x(c, {
|
1257
1207
|
height: "16",
|
1258
1208
|
width: "16",
|
1259
1209
|
class: "-rotate-90"
|
1260
1210
|
})
|
1261
1211
|
], 2),
|
1262
|
-
t.pageSizes.length ? (r(), i("div",
|
1263
|
-
|
1264
|
-
|
1212
|
+
t.pageSizes.length ? (r(), i("div", wn, [
|
1213
|
+
a("div", $n, [
|
1214
|
+
U(a("div", Sn, [
|
1265
1215
|
(r(!0), i($, null, V(t.pageSizes, (p) => (r(), i("button", {
|
1266
1216
|
type: "button",
|
1267
1217
|
class: "w-full flex items-center gap-x-3.5 py-2 px-3 rounded-lg text-sm",
|
1268
1218
|
onClick: (b) => t.pageSizeLocal = p
|
1269
1219
|
}, [
|
1270
|
-
|
1271
|
-
p === t.pageSizeLocal ? (r(),
|
1220
|
+
P(A(p) + " ", 1),
|
1221
|
+
p === t.pageSizeLocal ? (r(), v(g, {
|
1272
1222
|
key: 0,
|
1273
1223
|
width: "14",
|
1274
1224
|
height: "14",
|
1275
1225
|
class: "text-blue-600"
|
1276
|
-
})) :
|
1226
|
+
})) : k("", !0)
|
1277
1227
|
], 8, Tn))), 256))
|
1278
1228
|
], 512), [
|
1279
|
-
[
|
1229
|
+
[Y, t.isDropdownOpen]
|
1280
1230
|
]),
|
1281
1231
|
t.pageSizes.length ? (r(), i("button", {
|
1282
1232
|
key: 0,
|
@@ -1284,37 +1234,37 @@ function An(t, e, n, o, s, a) {
|
|
1284
1234
|
class: "text-sm h-[32px] min-w-8 py-3 px-3.5 inline-flex items-center gap-x-1 rounded-lg border border-gray-200 text-gray-800 shadow-sm hover:bg-gray-50 focus:outline-none focus:bg-gray-100 disabled:opacity-50 disabled:pointer-events-none dark:border-neutral-700 dark:text-white dark:hover:bg-neutral-700 dark:focus:bg-neutral-700",
|
1285
1235
|
onClick: e[4] || (e[4] = (p) => t.isDropdownOpen = !t.isDropdownOpen)
|
1286
1236
|
}, [
|
1287
|
-
|
1288
|
-
|
1237
|
+
P(A(t.pageSizeLocal) + " ", 1),
|
1238
|
+
x(c, {
|
1289
1239
|
height: "16",
|
1290
1240
|
width: "16"
|
1291
1241
|
})
|
1292
|
-
])) :
|
1242
|
+
])) : k("", !0)
|
1293
1243
|
])
|
1294
|
-
])) :
|
1244
|
+
])) : k("", !0)
|
1295
1245
|
]);
|
1296
1246
|
}
|
1297
|
-
const
|
1247
|
+
const In = /* @__PURE__ */ S(vn, [["render", An]]), Dn = {
|
1298
1248
|
props: { table: String, title: String, search: String },
|
1299
1249
|
components: {
|
1300
|
-
AdminTableControl:
|
1301
|
-
AdminTableExport:
|
1250
|
+
AdminTableControl: Vt,
|
1251
|
+
AdminTableExport: ts,
|
1302
1252
|
// AdminTablePrint,
|
1303
|
-
AdminTableColumnsHidden:
|
1304
|
-
AdminTableColumn:
|
1305
|
-
AdminNodata:
|
1306
|
-
IconPlus:
|
1307
|
-
IconSearch:
|
1308
|
-
AdminTableCardInfo:
|
1309
|
-
IconOpenCard:
|
1310
|
-
AdminComponentIs:
|
1311
|
-
AdminTableFilters:
|
1312
|
-
AdminTableTabs:
|
1313
|
-
AdminTableCustomFilters:
|
1314
|
-
AdminTableCustomButtons:
|
1315
|
-
AdminCustomButtonAdd:
|
1316
|
-
AdminTableTotalsList:
|
1317
|
-
AdminTablePagination:
|
1253
|
+
AdminTableColumnsHidden: vs,
|
1254
|
+
AdminTableColumn: kt,
|
1255
|
+
AdminNodata: lt,
|
1256
|
+
IconPlus: Q,
|
1257
|
+
IconSearch: at,
|
1258
|
+
AdminTableCardInfo: Ns,
|
1259
|
+
IconOpenCard: rt,
|
1260
|
+
AdminComponentIs: X,
|
1261
|
+
AdminTableFilters: Ws,
|
1262
|
+
AdminTableTabs: Xs,
|
1263
|
+
AdminTableCustomFilters: dn,
|
1264
|
+
AdminTableCustomButtons: cn,
|
1265
|
+
AdminCustomButtonAdd: hn,
|
1266
|
+
AdminTableTotalsList: fn,
|
1267
|
+
AdminTablePagination: In
|
1318
1268
|
},
|
1319
1269
|
data() {
|
1320
1270
|
return {
|
@@ -1341,6 +1291,12 @@ const Sn = /* @__PURE__ */ T(yn, [["render", An]]), In = {
|
|
1341
1291
|
window.removeEventListener("reloadTablePage", this.getTableData);
|
1342
1292
|
},
|
1343
1293
|
computed: {
|
1294
|
+
color() {
|
1295
|
+
return E.value.sidebarColor || "blue";
|
1296
|
+
},
|
1297
|
+
fontSize() {
|
1298
|
+
return `text-[${E.value.fontSize || 13}px]`;
|
1299
|
+
},
|
1344
1300
|
defaultPage() {
|
1345
1301
|
var t, e;
|
1346
1302
|
return ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1;
|
@@ -1374,7 +1330,7 @@ const Sn = /* @__PURE__ */ T(yn, [["render", An]]), In = {
|
|
1374
1330
|
this.tableData = null, this.columnsWidth = {}, await this.getTableData();
|
1375
1331
|
},
|
1376
1332
|
searchValue: {
|
1377
|
-
handler:
|
1333
|
+
handler: ot(async function(t) {
|
1378
1334
|
var e;
|
1379
1335
|
this.page = 1, await this.getTableData(), this.$router.push({
|
1380
1336
|
...this.$route,
|
@@ -1416,7 +1372,7 @@ const Sn = /* @__PURE__ */ T(yn, [["render", An]]), In = {
|
|
1416
1372
|
},
|
1417
1373
|
columns(t) {
|
1418
1374
|
var e, n, o, s;
|
1419
|
-
this.visibleColumns = t == null ? void 0 : t.map((
|
1375
|
+
this.visibleColumns = t == null ? void 0 : t.map((l) => l == null ? void 0 : l.name), this.initialHiddenColumns === ((e = this.visibleColumns) == null ? void 0 : e.join(",")) && (this.visibleColumns = []), this.$router.replace({
|
1420
1376
|
...this.$route,
|
1421
1377
|
query: {
|
1422
1378
|
...(n = this.$route) == null ? void 0 : n.query,
|
@@ -1427,8 +1383,8 @@ const Sn = /* @__PURE__ */ T(yn, [["render", An]]), In = {
|
|
1427
1383
|
},
|
1428
1384
|
methods: {
|
1429
1385
|
async checkUrlMounted() {
|
1430
|
-
var t, e, n, o, s,
|
1431
|
-
this.page = ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1, this.limit = ((o = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : o.limit) || 20, (
|
1386
|
+
var t, e, n, o, s, l, c, g, p, b, d, y, m, h, _, C, I, T, F, j, z;
|
1387
|
+
this.page = ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1, this.limit = ((o = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : o.limit) || 20, (l = (s = this.$route) == null ? void 0 : s.query) != null && l.filter && (this.filters = ((p = decodeURI((g = (c = this.$route) == null ? void 0 : c.query) == null ? void 0 : g.filter)) == null ? void 0 : p.replaceAll("+", " ")) || null), this.filters && (this.onFilters = ((d = (b = this.filters) == null ? void 0 : b.split("=")) == null ? void 0 : d.length) - 1), this.filterState = ((m = (y = this.$route) == null ? void 0 : y.query) == null ? void 0 : m.state) || null, this.filterCustom = ((_ = (h = this.$route) == null ? void 0 : h.query) == null ? void 0 : _.custom) || null, this.searchValue = ((I = (C = this.$route) == null ? void 0 : C.query) == null ? void 0 : I.search) || "", this.visibleColumns = ((j = (F = (T = this.$route) == null ? void 0 : T.query) == null ? void 0 : F.columns) == null ? void 0 : j.split(",")) || [], (z = this.$route) != null && z.query.card && (this.isVisibleCardInfo = !0);
|
1432
1388
|
},
|
1433
1389
|
rowWidth(t) {
|
1434
1390
|
var n, o;
|
@@ -1442,9 +1398,9 @@ const Sn = /* @__PURE__ */ T(yn, [["render", An]]), In = {
|
|
1442
1398
|
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 = "";
|
1443
1399
|
},
|
1444
1400
|
async getTableData() {
|
1445
|
-
var t, e, n, o, s,
|
1401
|
+
var t, e, n, o, s, l, c, g, p, b, d;
|
1446
1402
|
try {
|
1447
|
-
const { data:
|
1403
|
+
const { data: y } = await M.get(`/api/template/table/${this.table}`), m = await M.get(`/api/table-data/${this.table}`, {
|
1448
1404
|
params: {
|
1449
1405
|
page: this.page,
|
1450
1406
|
search: this.searchValue || null,
|
@@ -1456,17 +1412,17 @@ const Sn = /* @__PURE__ */ T(yn, [["render", An]]), In = {
|
|
1456
1412
|
}
|
1457
1413
|
});
|
1458
1414
|
this.tableData = {
|
1459
|
-
...
|
1460
|
-
...(
|
1461
|
-
}, this.initialHiddenColumns = (
|
1462
|
-
var
|
1463
|
-
(
|
1464
|
-
}) : this.visibleColumns = (d = (b = (p = this.tableData) == null ? void 0 : p.columns) == null ? void 0 : b.filter((
|
1465
|
-
var
|
1466
|
-
(
|
1467
|
-
var
|
1468
|
-
(
|
1469
|
-
(
|
1415
|
+
...y,
|
1416
|
+
...(m == null ? void 0 : m.data) || {}
|
1417
|
+
}, this.initialHiddenColumns = (l = (s = (o = (n = this.tableData) == null ? void 0 : n.columns) == null ? void 0 : o.filter((h) => (h == null ? void 0 : h.hidden) !== !0)) == null ? void 0 : s.map((h) => h == null ? void 0 : h.name)) == null ? void 0 : l.join(","), (c = this.visibleColumns) != null && c.length ? (g = this.tableData) == null || g.columns.forEach((h) => {
|
1418
|
+
var _;
|
1419
|
+
(_ = this.visibleColumns) != null && _.includes(h == null ? void 0 : h.name) ? h.hidden = !1 : h.hidden = !0;
|
1420
|
+
}) : this.visibleColumns = (d = (b = (p = this.tableData) == null ? void 0 : p.columns) == null ? void 0 : b.filter((h) => (h == null ? void 0 : h.hidden) !== !0)) == null ? void 0 : d.map((h) => h == null ? void 0 : h.name), setTimeout(() => {
|
1421
|
+
var h, _;
|
1422
|
+
(_ = (h = this.tableData) == null ? void 0 : h.columns) == null || _.forEach(({ name: C }) => {
|
1423
|
+
var I, T, F, j, z, R;
|
1424
|
+
(T = (I = this.columnsWidth) == null ? void 0 : I[C]) != null && T.ref && (this.columnsWidth[C].width = parseInt(
|
1425
|
+
(R = (z = (j = (F = this.columnsWidth) == null ? void 0 : F[C]) == null ? void 0 : j.ref) == null ? void 0 : z.getBoundingClientRect()) == null ? void 0 : R.width
|
1470
1426
|
) + "px");
|
1471
1427
|
});
|
1472
1428
|
});
|
@@ -1518,256 +1474,262 @@ const Sn = /* @__PURE__ */ T(yn, [["render", An]]), In = {
|
|
1518
1474
|
},
|
1519
1475
|
getCustomStyles(t) {
|
1520
1476
|
return [
|
1521
|
-
t != null && t.link ? " text-blue-
|
1477
|
+
t != null && t.link ? " text-blue-800 hover:underline decoration-1" : "",
|
1522
1478
|
t != null && t.align ? ` text-${(t == null ? void 0 : t.align) || "left"}` : "",
|
1523
1479
|
`text-${(t == null ? void 0 : t.wrap) || "wrap"}`
|
1524
1480
|
];
|
1525
1481
|
}
|
1526
1482
|
}
|
1527
|
-
},
|
1528
|
-
key: 0,
|
1529
|
-
class: "relative min-w-full text-[13px] divide-y divide-gray-200 table-fixed w-max dark:divide-neutral-700"
|
1530
|
-
}, qn = { class: "sticky top-[-1px] z-[2] bg-white w-full after:absolute after:content-[''] after:block after:w-full after:h-px after:bg-stone-200" }, Bn = { class: "right-0" }, On = {
|
1483
|
+
}, Vn = { class: "w-[calc(100vw - 320px)] bg-gray-100" }, Pn = { class: "h-[76px] mt-[15px] flex items-center justify-between mx-[20px] px-[20px] bg-white rounded-xl" }, Fn = { class: "text-lg font-semibold text-gray-800 dark:text-neutral-200" }, jn = { class: "bg-white w-full rounded-xl p-[20px] pr-0" }, Ln = { class: "flex" }, Mn = { class: "flex gap-[6px] ml-auto" }, zn = { class: "inline-block w-full align-middle" }, qn = { class: "sticky top-[-1px] z-[2] bg-white w-full after:absolute after:content-[''] after:block after:w-full after:h-px after:bg-stone-200" }, Bn = { class: "right-0" }, On = {
|
1531
1484
|
key: 0,
|
1532
1485
|
class: "w-[70px] sticky right-0 top-0"
|
1533
|
-
}, Nn = { class: "divide-y divide-gray-200 z-[1] relative" }, En = ["onClick"], Un = ["onClick"],
|
1534
|
-
function
|
1535
|
-
var
|
1536
|
-
const c =
|
1537
|
-
return r(), i("div",
|
1538
|
-
|
1539
|
-
|
1540
|
-
|
1541
|
-
(
|
1486
|
+
}, Nn = { class: "divide-y divide-gray-200 z-[1] relative text-gray-600" }, En = ["onClick"], Un = ["onClick"], Rn = ["onClick"], Hn = { class: "px-1 py-2 flex justify-start items-end w-full" }, Wn = { class: "w-[200px] md:inline-flex hidden" }, Kn = { class: "text-sm text-gray-600 dark:text-neutral-400" }, Jn = { class: "font-semibold text-gray-800 dark:text-neutral-200" }, Gn = { key: 0 };
|
1487
|
+
function Qn(t, e, n, o, s, l) {
|
1488
|
+
var Z, ee, te, se, ne, le, ae, re, oe, ie, de, ue, ce, he, pe, be, fe, ge, me, xe, ye, ve, ke, _e, Ce, we, $e, Se, Te, Ae, Ie, De, Ve;
|
1489
|
+
const c = f("AdminCustomButtonAdd"), g = f("IconPlus"), p = f("router-link"), b = f("AdminTableTabs"), d = f("IconSearch"), y = f("VsText"), m = f("AdminTableCustomButtons"), h = f("AdminTableCustomFilters"), _ = f("AdminTableColumnsHidden"), C = f("AdminTableExport"), I = f("AdminTableFilters"), T = f("IconOpenCard"), F = f("AdminTableColumn"), j = f("AdminComponentIs"), z = f("AdminTableControl"), R = f("AdminTableTotalsList"), He = f("AdminNodata"), We = f("AdminTablePagination"), Ke = f("AdminTableCardInfo");
|
1490
|
+
return r(), i("div", Vn, [
|
1491
|
+
a("div", Pn, [
|
1492
|
+
a("h2", Fn, A(n.title), 1),
|
1493
|
+
l.isForm ? (r(), i($, { key: 0 }, [
|
1494
|
+
(ee = (Z = s.tableData) == null ? void 0 : Z.slots) != null && ee.addButton ? (r(), v(c, {
|
1542
1495
|
key: 0,
|
1543
|
-
slots: (
|
1544
|
-
}, null, 8, ["slots"])) : (r(),
|
1496
|
+
slots: (te = s.tableData) == null ? void 0 : te.slots
|
1497
|
+
}, null, 8, ["slots"])) : (r(), v(p, {
|
1545
1498
|
key: 1,
|
1546
|
-
to: `/add?table=${(
|
1547
|
-
class:
|
1499
|
+
to: `/add?table=${(ne = (se = t.$route) == null ? void 0 : se.params) == null ? void 0 : ne.catchAll}`,
|
1500
|
+
class: w(`inline-flex items-center px-3 py-2 text-sm font-medium text-white duration-300 bg-${l.color}-700 border border-transparent rounded-lg gap-x-2 hover:bg-${l.color}-800 hover:text-white`)
|
1548
1501
|
}, {
|
1549
|
-
default:
|
1550
|
-
|
1502
|
+
default: D(() => [
|
1503
|
+
x(g, {
|
1551
1504
|
height: "16",
|
1552
1505
|
width: "16"
|
1553
1506
|
}),
|
1554
|
-
e[5] || (e[5] =
|
1507
|
+
e[5] || (e[5] = P(" Додати "))
|
1555
1508
|
]),
|
1556
1509
|
_: 1
|
1557
|
-
}, 8, ["to"]))
|
1558
|
-
], 64)) :
|
1510
|
+
}, 8, ["to", "class"]))
|
1511
|
+
], 64)) : k("", !0)
|
1559
1512
|
]),
|
1560
|
-
|
1561
|
-
style:
|
1562
|
-
height: ((
|
1513
|
+
a("div", {
|
1514
|
+
style: K({
|
1515
|
+
height: ((le = t.$adminSettings) == null ? void 0 : le.header) === !1 ? "calc(100vh - 100px)" : "calc(100vh - 155px)"
|
1563
1516
|
}),
|
1564
|
-
class: "bg-gray-
|
1517
|
+
class: "bg-gray-100 p-[20px] flex pt-[10px] lg:w-[calc(100vw-260px)] w-[100vw]"
|
1565
1518
|
}, [
|
1566
|
-
|
1567
|
-
(
|
1519
|
+
a("div", jn, [
|
1520
|
+
(re = (ae = s.tableData) == null ? void 0 : ae.filterState) != null && re.length ? (r(), v(b, {
|
1568
1521
|
key: 0,
|
1569
|
-
tabsList: (
|
1522
|
+
tabsList: (oe = s.tableData) == null ? void 0 : oe.filterState,
|
1570
1523
|
filterState: s.filterState,
|
1571
1524
|
"onUpdate:filterState": e[0] || (e[0] = (u) => s.filterState = u)
|
1572
|
-
}, null, 8, ["tabsList", "filterState"])) :
|
1573
|
-
|
1574
|
-
|
1575
|
-
class:
|
1525
|
+
}, null, 8, ["tabsList", "filterState"])) : k("", !0),
|
1526
|
+
a("div", Ln, [
|
1527
|
+
a("div", {
|
1528
|
+
class: w([s.isVisibleCardInfo ? "w-[calc(100%-360px)]" : "w-full"])
|
1576
1529
|
}, [
|
1577
|
-
|
1578
|
-
class:
|
1530
|
+
a("div", {
|
1531
|
+
class: w(["flex sm:grid sm:grid-cols-2 gap-x-2 sm:gap-x-5 mb-[10px] relative", { "pr-[20px]": !s.isVisibleCardInfo }])
|
1579
1532
|
}, [
|
1580
|
-
|
1533
|
+
x(d, {
|
1581
1534
|
height: "14",
|
1582
1535
|
width: "14",
|
1583
1536
|
class: "absolute top-[10px] left-[14px] text-gray-500 z-[1]"
|
1584
1537
|
}),
|
1585
|
-
y
|
1538
|
+
x(y, {
|
1586
1539
|
modelValue: s.searchValue,
|
1587
1540
|
"onUpdate:modelValue": e[1] || (e[1] = (u) => s.searchValue = u),
|
1588
1541
|
placeholder: n.search || "Пошук...",
|
1589
1542
|
clearable: !0,
|
1590
1543
|
class: "[&>input]:py-[7px] [&>input]:max-h-[36px] [&>input]:ps-10 [&>input]:pe-8 [&>input]:block [&>input]:w-full [&>input]:bg-gray-100 [&>input]:border-transparent [&>input]:rounded-lg [&>input]:text-sm [&>input]:focus:bg-white [&>input]:focus:border-blue-500 [&>input]:focus:ring-blue-500 [&>input]:disabled:opacity-50 [&>input]:disabled:pointer-events-none [&>input]:dark:bg-neutral-700 [&>input]:dark:border-transparent [&>input]:dark:text-neutral-400 [&>input]:dark:placeholder:text-neutral-400 dark:focus:bg-neutral-800 dark:focus:ring-neutral-600"
|
1591
1544
|
}, null, 8, ["modelValue", "placeholder"]),
|
1592
|
-
|
1593
|
-
(
|
1545
|
+
a("div", Mn, [
|
1546
|
+
(ie = s.tableData) != null && ie.slots ? (r(), v(m, {
|
1594
1547
|
key: 0,
|
1595
1548
|
data: s.tableData,
|
1596
|
-
slots: (
|
1597
|
-
}, null, 8, ["data", "slots"])) :
|
1598
|
-
(
|
1549
|
+
slots: (de = s.tableData) == null ? void 0 : de.slots
|
1550
|
+
}, null, 8, ["data", "slots"])) : k("", !0),
|
1551
|
+
(ce = (ue = s.tableData) == null ? void 0 : ue.filterCustom) != null && ce.length ? (r(), v(h, {
|
1599
1552
|
key: 1,
|
1600
|
-
customList: (
|
1553
|
+
customList: (he = s.tableData) == null ? void 0 : he.filterCustom,
|
1601
1554
|
filterCustom: s.filterCustom,
|
1602
1555
|
"onUpdate:filterCustom": e[2] || (e[2] = (u) => s.filterCustom = u)
|
1603
|
-
}, null, 8, ["customList", "filterCustom"])) :
|
1604
|
-
|
1556
|
+
}, null, 8, ["customList", "filterCustom"])) : k("", !0),
|
1557
|
+
x(_, {
|
1605
1558
|
columns: (pe = s.tableData) == null ? void 0 : pe.columns,
|
1606
1559
|
onUpdateColumns: e[3] || (e[3] = (u) => s.tableData.columns = u)
|
1607
1560
|
}, null, 8, ["columns"]),
|
1608
|
-
((
|
1561
|
+
((be = s.tableData) == null ? void 0 : be.export) !== !1 ? (r(), v(C, {
|
1609
1562
|
key: 2,
|
1610
1563
|
table: n.table,
|
1611
|
-
columns: (
|
1564
|
+
columns: (fe = s.tableData) == null ? void 0 : fe.columns,
|
1612
1565
|
page: s.page,
|
1613
1566
|
"filter-state": s.filterState,
|
1614
1567
|
"filter-custom": s.filterCustom,
|
1615
1568
|
filters: s.filters
|
1616
|
-
}, null, 8, ["table", "columns", "page", "filter-state", "filter-custom", "filters"])) :
|
1617
|
-
(
|
1569
|
+
}, null, 8, ["table", "columns", "page", "filter-state", "filter-custom", "filters"])) : k("", !0),
|
1570
|
+
(ge = s.filterScheme) != null && ge.length ? (r(), v(I, {
|
1618
1571
|
key: 3,
|
1619
1572
|
scheme: s.filterScheme,
|
1620
1573
|
onFilters: s.onFilters,
|
1621
1574
|
table: n.table,
|
1622
|
-
onFilterChange:
|
1623
|
-
}, null, 8, ["scheme", "onFilters", "table", "onFilterChange"])) :
|
1624
|
-
|
1625
|
-
onClick: e[4] || (e[4] = (...u) =>
|
1575
|
+
onFilterChange: l.filterChange
|
1576
|
+
}, null, 8, ["scheme", "onFilters", "table", "onFilterChange"])) : k("", !0),
|
1577
|
+
a("button", {
|
1578
|
+
onClick: e[4] || (e[4] = (...u) => l.toggleCardInfo && l.toggleCardInfo(...u)),
|
1626
1579
|
class: "py-2 px-2.5 max-h-[34px] md:inline-flex hidden items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"
|
1627
1580
|
}, [
|
1628
|
-
|
1629
|
-
class:
|
1581
|
+
x(T, {
|
1582
|
+
class: w({ "rotate-180 duration-300": !s.isVisibleCardInfo })
|
1630
1583
|
}, null, 8, ["class"])
|
1631
1584
|
])
|
1632
1585
|
])
|
1633
1586
|
], 2),
|
1634
|
-
|
1635
|
-
class:
|
1587
|
+
a("div", {
|
1588
|
+
class: w(["flex items-start justify-start w-full space-y-5", { "pr-[20px]": !s.isVisibleCardInfo }])
|
1636
1589
|
}, [
|
1637
|
-
|
1638
|
-
style:
|
1639
|
-
height: `calc(100vh - ${((
|
1590
|
+
a("div", {
|
1591
|
+
style: K({
|
1592
|
+
height: `calc(100vh - ${((me = t.$adminSettings) == null ? void 0 : me.header) === !1 ? (ye = (xe = s.tableData) == null ? void 0 : xe.filterState) != null && ye.length ? 330 : 270 : (ke = (ve = s.tableData) == null ? void 0 : ve.filterState) != null && ke.length ? 380 : 320}px)`
|
1640
1593
|
}),
|
1641
1594
|
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"
|
1642
1595
|
}, [
|
1643
|
-
|
1644
|
-
|
1645
|
-
|
1646
|
-
|
1647
|
-
|
1648
|
-
|
1649
|
-
|
1596
|
+
a("div", zn, [
|
1597
|
+
l.isNoData ? (r(), v(He, { key: 1 })) : (r(), i("table", {
|
1598
|
+
key: 0,
|
1599
|
+
class: w([l.fontSize, "relative min-w-full divide-y divide-gray-200 table-fixed w-max dark:divide-neutral-700 my-2"])
|
1600
|
+
}, [
|
1601
|
+
a("thead", qn, [
|
1602
|
+
a("tr", Bn, [
|
1603
|
+
(r(!0), i($, null, V(l.columns, (u) => {
|
1604
|
+
var q, B;
|
1605
|
+
return r(), v(F, {
|
1650
1606
|
key: u.name,
|
1651
|
-
style:
|
1652
|
-
width: ((
|
1607
|
+
style: K({
|
1608
|
+
width: ((B = (q = s.columnsWidth) == null ? void 0 : q[u == null ? void 0 : u.name]) == null ? void 0 : B.width) || l.rowWidth(u == null ? void 0 : u.name),
|
1653
1609
|
textAlign: u == null ? void 0 : u.align,
|
1654
1610
|
wordBreak: u == null ? void 0 : u.wrap
|
1655
1611
|
}),
|
1656
1612
|
data: u,
|
1657
1613
|
activeColumn: s.activeColumn,
|
1658
|
-
onUpdateRef: (
|
1659
|
-
var
|
1660
|
-
(
|
1614
|
+
onUpdateRef: (H) => {
|
1615
|
+
var O, N;
|
1616
|
+
(N = (O = s.columnsWidth) == null ? void 0 : O[u == null ? void 0 : u.name]) != null && N.ref || (s.columnsWidth[u.name] = { ref: H });
|
1661
1617
|
},
|
1662
|
-
onChangeActive:
|
1618
|
+
onChangeActive: l.changeActiveColumn
|
1663
1619
|
}, null, 8, ["style", "data", "activeColumn", "onUpdateRef", "onChangeActive"]);
|
1664
1620
|
}), 128)),
|
1665
|
-
(
|
1621
|
+
(Ce = (_e = l.getActions) == null ? void 0 : _e.filter(
|
1666
1622
|
(u) => u !== "add" && u !== "view"
|
1667
|
-
)) != null &&
|
1623
|
+
)) != null && Ce.length ? (r(), i("th", On)) : k("", !0)
|
1668
1624
|
])
|
1669
1625
|
]),
|
1670
|
-
|
1671
|
-
(r(!0), i($, null, V((
|
1672
|
-
var
|
1626
|
+
a("tbody", Nn, [
|
1627
|
+
(r(!0), i($, null, V((we = s.tableData) == null ? void 0 : we.rows, (u, q) => {
|
1628
|
+
var B, H, O, N, Pe, Fe, je, Le, Me, ze, qe, Be, Oe, Ne;
|
1673
1629
|
return r(), i("tr", {
|
1674
|
-
key: (u == null ? void 0 : u.id) ||
|
1675
|
-
class:
|
1676
|
-
"bg-gray-
|
1630
|
+
key: (u == null ? void 0 : u.id) || q,
|
1631
|
+
class: w({
|
1632
|
+
"bg-gray-100": ((H = (B = t.$route) == null ? void 0 : B.query) == null ? void 0 : H.card) === (u == null ? void 0 : u.id),
|
1633
|
+
"odd:bg-gray-50": ((N = (O = t.$route) == null ? void 0 : O.query) == null ? void 0 : N.card) !== (u == null ? void 0 : u.id)
|
1677
1634
|
})
|
1678
1635
|
}, [
|
1679
|
-
|
1680
|
-
class:
|
1681
|
-
(
|
1636
|
+
a("td", {
|
1637
|
+
class: w(["px-1 py-2.5 pr-5", [
|
1638
|
+
(Pe = l.columns[0]) != null && Pe.align ? `text-${((Fe = l.columns[0]) == null ? void 0 : Fe.align) || "left"}` : ""
|
1682
1639
|
]]),
|
1683
|
-
onClick: (
|
1640
|
+
onClick: (L) => l.changeActiveCardInfo(u == null ? void 0 : u.id)
|
1684
1641
|
}, [
|
1685
|
-
|
1686
|
-
onClick: (
|
1687
|
-
|
1642
|
+
a("button", {
|
1643
|
+
onClick: (L) => {
|
1644
|
+
l.pushToCard(u == null ? void 0 : u.id), l.pushToLinkCard(l.columns[0], u);
|
1688
1645
|
},
|
1689
|
-
class:
|
1690
|
-
...
|
1691
|
-
((
|
1646
|
+
class: w(["font-medium text-start", [
|
1647
|
+
...l.getCustomStyles(l.columns[0]),
|
1648
|
+
((je = this.tableData) == null ? void 0 : je.card) === !1 ? "" : ` text-${l.color}-800 decoration-2 focus:outline-none focus:underline hover:text-${l.color}-700 hover:underline`
|
1692
1649
|
]])
|
1693
1650
|
}, [
|
1694
|
-
|
1651
|
+
x(j, {
|
1695
1652
|
row: u,
|
1696
|
-
column:
|
1653
|
+
column: l.columns[0],
|
1697
1654
|
table: n.table,
|
1698
|
-
onUpdateTable:
|
1655
|
+
onUpdateTable: l.getTableData
|
1699
1656
|
}, null, 8, ["row", "column", "table", "onUpdateTable"])
|
1700
1657
|
], 10, Un)
|
1701
1658
|
], 10, En),
|
1702
|
-
(r(!0), i($, null, V((
|
1703
|
-
onClick: (
|
1704
|
-
|
1659
|
+
(r(!0), i($, null, V((Le = l.columns) == null ? void 0 : Le.slice(1), (L) => (r(), i("td", {
|
1660
|
+
onClick: (tl) => {
|
1661
|
+
l.changeActiveCardInfo(u == null ? void 0 : u.id), l.pushToLinkCard(L, u);
|
1705
1662
|
},
|
1706
|
-
class:
|
1707
|
-
key:
|
1663
|
+
class: w(["px-1 py-2.5 pr-5", l.getCustomStyles(L)]),
|
1664
|
+
key: L.name
|
1708
1665
|
}, [
|
1709
|
-
|
1666
|
+
x(j, {
|
1710
1667
|
row: u,
|
1711
|
-
column:
|
1668
|
+
column: L,
|
1712
1669
|
table: n.table,
|
1713
|
-
onUpdateTable:
|
1670
|
+
onUpdateTable: l.getTableData
|
1714
1671
|
}, null, 8, ["row", "column", "table", "onUpdateTable"])
|
1715
|
-
], 10,
|
1716
|
-
(
|
1717
|
-
(
|
1718
|
-
)) != null &&
|
1672
|
+
], 10, Rn))), 128)),
|
1673
|
+
(ze = (Me = l.getActions) == null ? void 0 : Me.filter(
|
1674
|
+
(L) => L !== "add" && L !== "view"
|
1675
|
+
)) != null && ze.length ? (r(), i("td", {
|
1719
1676
|
key: 0,
|
1720
|
-
class:
|
1721
|
-
"bg-gray-50": ((
|
1722
|
-
"bg-white": ((
|
1677
|
+
class: w(["text-center sticky right-0 w-[80px] px-[10px]", {
|
1678
|
+
"bg-gray-50": ((Be = (qe = t.$route) == null ? void 0 : qe.query) == null ? void 0 : Be.card) === (u == null ? void 0 : u.id) || !(q % 2),
|
1679
|
+
"bg-white": ((Ne = (Oe = t.$route) == null ? void 0 : Oe.query) == null ? void 0 : Ne.card) !== (u == null ? void 0 : u.id) && q % 2
|
1723
1680
|
}])
|
1724
1681
|
}, [
|
1725
|
-
|
1726
|
-
actions:
|
1727
|
-
isForm:
|
1682
|
+
x(z, {
|
1683
|
+
actions: l.getActions,
|
1684
|
+
isForm: l.isForm,
|
1728
1685
|
item: u,
|
1729
1686
|
table: n.table,
|
1730
|
-
onUpdateTable:
|
1687
|
+
onUpdateTable: l.getTableData
|
1731
1688
|
}, null, 8, ["actions", "isForm", "item", "table", "onUpdateTable"])
|
1732
|
-
], 2)) :
|
1689
|
+
], 2)) : k("", !0)
|
1733
1690
|
], 2);
|
1734
1691
|
}), 128))
|
1735
1692
|
]),
|
1736
|
-
|
1737
|
-
columns:
|
1738
|
-
agg: (
|
1693
|
+
x(R, {
|
1694
|
+
columns: l.columns,
|
1695
|
+
agg: ($e = s.tableData) == null ? void 0 : $e.agg
|
1739
1696
|
}, null, 8, ["columns", "agg"])
|
1740
|
-
]))
|
1697
|
+
], 2))
|
1741
1698
|
])
|
1742
1699
|
], 4)
|
1743
1700
|
], 2),
|
1744
|
-
|
1745
|
-
|
1746
|
-
|
1747
|
-
|
1701
|
+
a("div", Hn, [
|
1702
|
+
a("div", Wn, [
|
1703
|
+
a("p", Kn, [
|
1704
|
+
a("span", Jn, [
|
1705
|
+
P(" Об'єктів: " + A(Intl.NumberFormat("ua").format(
|
1706
|
+
s.limit < ((Se = s.tableData) == null ? void 0 : Se.filtered) ? s.limit : (Te = s.tableData) == null ? void 0 : Te.filtered
|
1707
|
+
)) + " ", 1),
|
1708
|
+
s.limit < ((Ae = s.tableData) == null ? void 0 : Ae.filtered) ? (r(), i("span", Gn, " з " + A(Intl.NumberFormat("ua").format(((Ie = s.tableData) == null ? void 0 : Ie.filtered) || 0)), 1)) : k("", !0)
|
1709
|
+
])
|
1748
1710
|
])
|
1749
1711
|
]),
|
1750
|
-
Math.ceil((
|
1712
|
+
Math.ceil((De = s.tableData) == null ? void 0 : De.filtered) > 10 ? (r(), v(We, {
|
1751
1713
|
key: 0,
|
1752
|
-
class: "justify-end",
|
1753
|
-
"default-page": parseInt(
|
1754
|
-
total: ((
|
1755
|
-
onPageChange:
|
1714
|
+
class: "justify-end mr-10",
|
1715
|
+
"default-page": parseInt(l.defaultPage),
|
1716
|
+
total: ((Ve = s.tableData) == null ? void 0 : Ve.filtered) || 0,
|
1717
|
+
onPageChange: l.handlePageChange,
|
1756
1718
|
pageSize: parseInt(s.limit),
|
1757
1719
|
pageSizes: [10, 20, 50, 100]
|
1758
|
-
}, null, 8, ["default-page", "total", "onPageChange", "pageSize"])) :
|
1720
|
+
}, null, 8, ["default-page", "total", "onPageChange", "pageSize"])) : k("", !0)
|
1759
1721
|
])
|
1760
1722
|
], 2),
|
1761
|
-
|
1762
|
-
default:
|
1723
|
+
x(W, { name: "slide-fade" }, {
|
1724
|
+
default: D(() => {
|
1763
1725
|
var u;
|
1764
1726
|
return [
|
1765
|
-
s.isVisibleCardInfo ? (r(),
|
1727
|
+
s.isVisibleCardInfo ? (r(), v(Ke, {
|
1766
1728
|
key: 0,
|
1767
1729
|
table: n.table,
|
1768
1730
|
columns: (u = s.tableData) == null ? void 0 : u.columns,
|
1769
|
-
row:
|
1770
|
-
}, null, 8, ["table", "columns", "row"])) :
|
1731
|
+
row: l.activeCardRow
|
1732
|
+
}, null, 8, ["table", "columns", "row"])) : k("", !0)
|
1771
1733
|
];
|
1772
1734
|
}),
|
1773
1735
|
_: 1
|
@@ -1777,8 +1739,8 @@ function Gn(t, e, n, o, s, a) {
|
|
1777
1739
|
], 4)
|
1778
1740
|
]);
|
1779
1741
|
}
|
1780
|
-
const
|
1781
|
-
components: { AdminTable:
|
1742
|
+
const Xn = /* @__PURE__ */ S(Dn, [["render", Qn], ["__scopeId", "data-v-8eb7de31"]]), Yn = {
|
1743
|
+
components: { AdminTable: Xn },
|
1782
1744
|
data() {
|
1783
1745
|
return {
|
1784
1746
|
table: !1,
|
@@ -1790,13 +1752,13 @@ const Qn = /* @__PURE__ */ T(In, [["render", Gn], ["__scopeId", "data-v-76a3cec3
|
|
1790
1752
|
$route: {
|
1791
1753
|
async handler() {
|
1792
1754
|
var t;
|
1793
|
-
(t =
|
1755
|
+
(t = Ee) != null && t.value || await this.getMenu(), await this.checkPageType();
|
1794
1756
|
},
|
1795
1757
|
deep: !0
|
1796
1758
|
},
|
1797
1759
|
title(t) {
|
1798
1760
|
var e;
|
1799
|
-
t && (document.title = (((e =
|
1761
|
+
t && (document.title = (((e = E.value) == null ? void 0 : e.titlePrefix) || "") + t);
|
1800
1762
|
}
|
1801
1763
|
},
|
1802
1764
|
async mounted() {
|
@@ -1811,11 +1773,11 @@ const Qn = /* @__PURE__ */ T(In, [["render", Gn], ["__scopeId", "data-v-76a3cec3
|
|
1811
1773
|
},
|
1812
1774
|
async checkPageType() {
|
1813
1775
|
var o, s;
|
1814
|
-
const t = this.flattenMenu(
|
1776
|
+
const t = this.flattenMenu(Ee.value);
|
1815
1777
|
t != null && t.length || this.$router.replace("/404");
|
1816
|
-
const e = t == null ? void 0 : t.find((
|
1778
|
+
const e = t == null ? void 0 : t.find((l) => {
|
1817
1779
|
var c, g;
|
1818
|
-
return (
|
1780
|
+
return (l == null ? void 0 : l.path) == ((g = (c = this.$route) == null ? void 0 : c.params) == null ? void 0 : g.catchAll);
|
1819
1781
|
});
|
1820
1782
|
this.title = e == null ? void 0 : e.ua, e || this.$router.replace("/404"), e != null && e.component && this.$router.replace((s = (o = this.$route) == null ? void 0 : o.params) == null ? void 0 : s.catchAll);
|
1821
1783
|
const n = e == null ? void 0 : e.table;
|
@@ -1833,10 +1795,10 @@ const Qn = /* @__PURE__ */ T(In, [["render", Gn], ["__scopeId", "data-v-76a3cec3
|
|
1833
1795
|
}
|
1834
1796
|
}
|
1835
1797
|
}
|
1836
|
-
},
|
1837
|
-
function
|
1838
|
-
const c =
|
1839
|
-
return s.table ? (r(),
|
1798
|
+
}, Zn = ["innerHTML"];
|
1799
|
+
function el(t, e, n, o, s, l) {
|
1800
|
+
const c = f("AdminTable");
|
1801
|
+
return s.table ? (r(), v(c, {
|
1840
1802
|
key: 0,
|
1841
1803
|
table: s.table,
|
1842
1804
|
title: t.title,
|
@@ -1846,9 +1808,9 @@ function Zn(t, e, n, o, s, a) {
|
|
1846
1808
|
class: "w-full bg-gray-50",
|
1847
1809
|
style: { height: "calc(100vh - 120px)" },
|
1848
1810
|
innerHTML: s.interface
|
1849
|
-
}, null, 8,
|
1811
|
+
}, null, 8, Zn));
|
1850
1812
|
}
|
1851
|
-
const
|
1813
|
+
const ll = /* @__PURE__ */ S(Yn, [["render", el]]);
|
1852
1814
|
export {
|
1853
|
-
|
1815
|
+
ll as default
|
1854
1816
|
};
|